/* ======================
  1. BASE STYLES 
====================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,500&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

/* Page transition fade effect */
body.page-transition {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Lamp container and arrows positioning fix */
#lamp-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.4s ease;
}

#lamp-container.fade {
  opacity: 0;
}

.arrow {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.arrow:hover {
  color: rgba(255, 255, 255, 1);
}

.arrow-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.3rem;
  text-align: center;
}

#prev-lamp {
  left: -50px;
}

#next-lamp {
  right: -50px;
}

/* Global background for all pages */
body {
  background:
    linear-gradient(rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.58)),
    url('assets/images/cascade-bg.jpg') center/cover no-repeat;
  background-attachment: fixed;
  background-color: var(--bg-dark);
}

/* Grain texture overlay for artisan feel */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.045;
  pointer-events: none;
  z-index: 9997;
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
}

/* Remove background from .desktop-view */
.desktop-view {
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* CSS Variables */
:root {
  /* Color Scheme */
  --bg-dark: #0c1509;
  --text-light: #f2ead8;
  --text-muted: rgba(242, 234, 216, 0.6);
  --accent-green: #7a9e76;
  --accent-gold: #b8a472;
  --accent-warm: #c8824a;
  --shadow-dark: rgba(0, 0, 0, 0.65);
  --glass-dark: rgba(12, 21, 9, 0.5);
  --glass-light: rgba(255, 245, 230, 0.05);
  --glass-warm: rgba(184, 164, 114, 0.06);
  --border-subtle: rgba(242, 234, 216, 0.1);
  --border-gold: rgba(184, 164, 114, 0.28);

  /* Typography */
  --heading-font: 'Playfair Display', Georgia, serif;
  --body-font: 'EB Garamond', Georgia, serif;

  /* Spacing */
  --space-unit: 1rem;
  --space-xxs: calc(0.25 * var(--space-unit));
  --space-xs: calc(0.5 * var(--space-unit));
  --space-sm: calc(1 * var(--space-unit));
  --space-md: calc(2 * var(--space-unit));
  --space-lg: calc(3 * var(--space-unit));
  --space-xl: calc(4 * var(--space-unit));
  --header-height: 80px;
}

/* ======================
  2. HEADINGS & TYPOGRAPHY 
====================== */
h2 {
    font-family: var(--heading-font);
    font-weight: 400;
    font-style: italic;
    color: var(--text-light);
    text-shadow: none;
    text-align: center;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    letter-spacing: 0.02em;
    position: relative;
    margin-bottom: 2.5rem;
}

h2::after {
    content: '';
    width: 36px;
    height: 1px;
    background: var(--accent-gold);
    opacity: 0.6;
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
}

/* ======================
  3. HEADER COMPONENT
====================== */
header {
    text-align: center;
    padding: 2.5rem 0 0.75rem;
    position: relative;
}

header::after {
    content: '';
    display: block;
    width: 36px;
    height: 1px;
    background: var(--accent-gold);
    margin: 0.9rem auto 0;
    opacity: 0.7;
}

header h1 {
    font-family: var(--heading-font);
    font-weight: 400;
    font-size: clamp(2.2rem, 6vw, 4rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-light);
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
    margin: 0;
    text-align: center;
}

header h1 a {
    color: inherit;
    text-decoration: none;
}

header h1 a:hover {
    text-decoration: none;
}

h1 {
    font-family: var(--heading-font);
    font-weight: 400;
    font-size: clamp(2.2rem, 6vw, 4rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-light);
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
    margin: 0;
    text-align: center;
}

/* Reset Base Elements */
html {
  overflow-y: scroll;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: transparent;
  overflow-x: hidden;
  font-family: var(--body-font);
  color: var(--text-light);
}

/* ======================
  3. NAVIGATION COMPONENT
====================== */
nav {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-bottom: 1px solid var(--border-subtle);
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0 auto;
    max-width: 100%;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    font-family: var(--body-font);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 1rem 1.75rem;
    opacity: 0.65;
    position: relative;
    transition: opacity 0.3s ease;
    background: none;
    border-radius: 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.75rem;
    right: 1.75rem;
    height: 1px;
    background: var(--accent-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

nav a:hover,
nav a.active {
    opacity: 1;
    color: var(--text-light);
    background: none;
    box-shadow: none;
    border-radius: 0;
}

nav a:hover::after,
nav a.active::after {
    transform: scaleX(1);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(50, 50, 50, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.mobile-bottom-nav-container {
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.8rem;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.nav-item.active {
    color: var(--accent-green);
}

.nav-icon {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    /* Hide top nav on mobile — bottom nav handles navigation */
    nav {
        display: none !important;
    }

    .mobile-bottom-nav {
        display: block;
    }

    /* Prevent content from hiding behind the bottom nav */
    main {
        padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    }

    /* Better touch targets on bottom nav */
    .nav-item {
        padding: 0.6rem 0.5rem;
        min-width: 60px;
        font-size: 0.75rem;
    }
    .nav-icon {
        font-size: 1.4rem;
    }

    /* Bottom nav height respects notch/home bar */
    .mobile-bottom-nav {
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .subtitle {
        font-size: 1.1rem;
    }

    /* Prevent horizontal overflow globally */
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }
}

/* Body class when mobile menu is active */
body.no-scroll {
    overflow: hidden;
}

/* ======================
  4. CAROUSEL COMPONENT 
====================== */
.lamp-carousel {
    position: relative;
    max-width: 800px;
    margin: 3rem auto;
    padding: 1rem;
    text-align: center;
}

.lamp-slide {
    position: relative;
    background: transparent;
    border: none;
    padding: 0;
}

.lamp-image {
    width: 100%;
    height: auto;
    margin-bottom: 0;
}

.lamp-image img {
    max-width: 100%;
    height: auto;
    border-radius: 16px 16px 0 0;
}


/* Image Slider Arrows */
.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(180, 199, 176, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--accent-green);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-prev {
    left: -60px;
}

.slider-next {
    right: -60px;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(180, 199, 176, 0.3);
    transform: translateY(-50%) scale(1.1);
}

/* Hide slider arrows on mobile */
@media (max-width: 768px) {
    .arrow-container {
        display: none;
    }
    .slider-prev,
    .slider-next {
        display: none;
    }
}

.arrow-btn {
    font-size: 3rem;
    color: var(--accent-green);
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

.arrow-btn:hover {
    color: var(--text-light);
    transform: scale(1.2);
}

.lamp-title {
  font-family: var(--heading-font, 'Cormorant Garamond', serif);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
}

.lamp-price {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--accent-green, #b4c7b0);
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.buy-btn,
.offer-btn {
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--heading-font, 'Cormorant Garamond', serif);
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.buy-btn {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-light, #e8e5d8);
}

.offer-btn {
  background: rgba(180, 199, 176, 0.1);
  color: var(--accent-green, #b4c7b0);
}

.buy-btn:hover,
.offer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.buy-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.offer-btn:hover {
  background: rgba(180, 199, 176, 0.2);
}

.lamp-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-light, #e8e5d8);
  margin-top: 1rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 0.3px;
}

/* Responsive Carousel Adjustments */
@media (max-width: 768px) {
  .lamp-carousel {
      padding: 0.5rem;
      margin: 1.5rem auto;
  }
  
  .arrow-btn {
      width: 30px;
      height: 30px;
      font-size: 1.2rem;
  }
  
  .lamp-details {
      padding: 1rem;
      margin-top: 1rem;
  }
  
  .lamp-title {
      font-size: 1.5rem;
  }
  
  .button-group {
      flex-direction: column;
      gap: 0.5rem;
  }
  
  .lamp-description {
      font-size: 0.95rem;
  }
}

/* Main Carousel Arrow Positioning */
.arrow-container {
    position: fixed; /* Position relative to the viewport */
    top: 50%;
    transform: translateY(-50%);
    z-index: 100; /* Ensure arrows are above other content */
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3); /* Optional: slight background for visibility */
    border-radius: 8px;
    transition: background 0.3s ease;
}

.arrow-container:hover {
    background: rgba(0, 0, 0, 0.5);
}

.left-arrow-container {
    left: 2vw; /* Position on the far left */
}

.right-arrow-container {
    right: 2vw; /* Position on the far right */
}

.arrow-text {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.arrow-container:hover .arrow-text {
    opacity: 1;
}

/* Hide main arrows on mobile, rely on swipe */
@media (max-width: 768px) {
    .arrow-container {
        display: none;
    }
}


/* Navigation Transitions */
nav {
    transition: all 0.3s ease;
}

nav.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

/* Vignette Effect */
/* Removed vignette overlay to fix double background issue */
/*
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 60%, rgba(255,255,255,0.3) 100%);
    z-index: 9999;
    mix-blend-mode: overlay;
}
*/

/* ======================
  5. FOOTER COMPONENT 
====================== */
.site-footer {
  position: relative;
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(50, 50, 50, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
  pointer-events: none;
}

/* Main Content Spacing */
.section-spacing {
    padding: 2rem;
}

/* Show/Hide elements based on screen size */
@media (max-width: 768px) {
    .hamburger {
        display: none;
    }

    .site-footer {
        display: flex;
    }
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-light);
  opacity: 0.8;
}

/* Viewport Optimization */
html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    scroll-behavior: smooth;
    overscroll-behavior-y: contain;
}

/* Mobile Styles - Refined */
@media (max-width: 767px) {
    html {
        overflow-x: hidden;
    }
    
    /* Fix for background image on mobile */
    .desktop-view {
        background: 
            linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
            url('../assets/images/cascade-bg.jpg') center/cover no-repeat;
        background-attachment: scroll;
    }

    .product-card {
        margin: 1rem;
        padding: 1.5rem;
        transition: all 0.3s ease;
        border-radius: 12px;
        background: rgba(255,255,255,0.05);
    }

    .product-card:active {
        transform: scale(0.98);
        background: rgba(255,255,255,0.1);
    }

    .swiper-container {
        -webkit-overflow-scrolling: touch;
        overflow-y: auto;
    }

    .swiper-pagination {
        bottom: 20px !important;
    }

    .swiper-pagination-bullet {
        width: 12px !important;
        height: 12px !important;
        margin: 0 8px !important;
        background: var(--text-light) !important;
        opacity: 0.5 !important;
    }

    .swiper-pagination-bullet-active {
        opacity: 1 !important;
        background: var(--accent-green) !important;
    }

    button {
        min-height: 44px;
        min-width: 44px;
    }

    h1 {
        font-size: 2rem;
        margin-top: 3rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

/* Desktop Styles - Ensure mobile elements are hidden */
@media (min-width: 769px) {
  header {
      padding: 1rem 2rem;
      text-align: center;
      position: relative;
  }

  .mobile-bottom-nav,
  .mobile-nav {
      display: none !important;
  }

  nav {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-subtle);
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    position: relative;
    z-index: 999;
    margin: 0 auto;
    max-width: 100%;
  }

  main {
      max-width: 1200px;
      margin: 0 auto;
      padding: 2rem;
  }

  .hero {
      text-align: center;
      margin: 2rem 0 4rem;
  }

  .hero-content {
      display: inline-block;
      padding: 2rem 3rem;
      background-color: var(--glass-light);
      backdrop-filter: blur(5px);
      border-radius: 15px;
      border: 1px solid var(--glass-light);
  }

  .hero h2 {
      font-size: 1.8rem;
      letter-spacing: 1px;
      text-shadow: 1px 1px 3px var(--shadow-dark);
  }

  .product-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 2rem;
      margin: 3rem 0;
  }

  .product-card {
      background-color: var(--glass-light);
      backdrop-filter: blur(5px);
      border-radius: 15px;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      border: 1px solid var(--glass-light);
      width: 100%;
      max-width: 600px;
      margin: 2rem auto;
      padding: 2rem;
  }

  .product-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 20px var(--shadow-dark);
  }

  .product-image {
      height: 250px;
      overflow: hidden;
      border-radius: 15px 15px 0 0;
  }

  .product-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s ease;
  }

  .product-card:hover .product-image img {
      transform: scale(1.05);
  }

  .section-container {
      background-color: var(--glass-light);
      backdrop-filter: blur(5px);
      border-radius: 15px;
      padding: 2rem;
      margin: 3rem 0;
      border: 1px solid var(--glass-light);
  }

  .contact-info {
      margin-top: 1.5rem;
  }

  .site-footer {
      display: flex;
  }
}

/* Catalog Card Design */

.catalog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 10px rgba(180, 199, 176, 0.5);
}


/* Price Style */
.catalog-price {
  font-weight: bold;
  color: #a5db9b;
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

/* Button Style */
.catalog-btn {
  background: #4CAF50;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}
.catalog-btn:hover {
  background: #45a049;
}

/* Sold Badge in Catalog Title */
.sold-badge {
  background-color: #b33a3a;
  color: white;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 8px;
  vertical-align: middle;
  display: inline-block;
  opacity: 0.9;
}

/* Sold Ribbon Badge */
.product-card-container.sold::before,
#lamp-container.sold::before {
  content: "VENDU";
  position: absolute;
  top: 10px;
  left: -20px;
  background: #b33a3a;
  color: white;
  padding: 5px 15px;
  transform: rotate(-45deg);
  font-weight: bold;
  font-size: 12px;
  opacity: 0.85;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 10;
  border-radius: 12px;
}

.product-card-container.sold img {
  filter: grayscale(70%) brightness(90%);
}

/* Fullscreen Image Viewer */
.fs-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.fs-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.fs-image-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.fs-image-container img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.fs-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.fs-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.fs-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.fs-nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.fs-prev-btn {
  left: 20px;
}

.fs-next-btn {
  right: 20px;
}

@media (max-width: 768px) {
  .fs-close-btn,
  .fs-nav-btn {
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
  }
  
  .fs-close-btn {
    top: 10px;
    right: 10px;
  }
}

/* Visible focus outlines for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.p-header { display:flex; align-items:center; gap:12px; justify-content:space-between; margin-bottom:8px; }
.p-breadcrumb { color:#cfe7cf; text-decoration:none; font-size:14px; }
.p-title { margin:0; text-align:center; font-size:28px; }
.p-badge { padding:4px 10px; border-radius:9999px; font-size:12px; color:#fff; }
.p-badge.sale { background:#2f9e44; }
.p-badge.sold { background:#e03131; }
.p-badge.retired { background:#6c757d; }

.p-gallery { position:relative; display:flex; justify-content:center; margin:12px 0; }
.p-arrow { position:absolute; top:50%; transform:translateY(-50%); background:rgba(0,0,0,.35); color:#fff; border:0; width:36px; height:36px; border-radius:18px; cursor:pointer; }
.p-arrow#prev-img { left:8px; }
.p-arrow#next-img { right:8px; }

.p-thumbs { display:flex; gap:8px; justify-content:center; padding:0; margin:8px 0 16px 0; list-style:none; flex-wrap:wrap; }
.p-thumb { border:2px solid transparent; border-radius:8px; padding:0; background:none; cursor:pointer; }
.p-thumb.active { border-color:#2f9e44; }

.p-price-cta { display:grid; grid-template-columns: 1fr auto; gap:12px; align-items:center; margin:8px 0 16px; }
.p-price { font-size:22px; font-weight:700; }
.p-ctas { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.btn { padding:10px 14px; border-radius:8px; border:0; cursor:pointer; }
.btn:disabled { opacity:.5; cursor:not-allowed; }
.btn-primary { background:#2f9e44; color:#fff; }
.btn-secondary { background:#e9ecef; color:#212529; }

.p-details { display:grid; grid-template-columns: 1fr 1fr; gap:24px; margin-top:12px; }
.p-details h2 { font-size:16px; margin:0 0 8px 0; }
@media (max-width: 720px){
  .p-price-cta { grid-template-columns: 1fr; }
  .p-details { grid-template-columns: 1fr; }
}

.modal.hidden{display:none !important}
.modal .hidden{display:none}
.modal{position:fixed;inset:0;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;z-index:1000}
.modal-box{background:#1f1f1f;max-width:520px;width:92%;padding:16px 18px;border-radius:10px;color:#fff}
.modal-box h3{margin:0 0 10px 0}
.modal-box label{display:block;margin:10px 0 4px}
.modal-box input, .modal-box textarea{width:100%;padding:10px;border-radius:8px;border:1px solid #444;background:#111;color:#fff}
.modal-box textarea{min-height:110px;resize:vertical}
.m-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:12px}
.m-error{color:#ff6b6b;font-size:13px;margin:8px 0 0}
.m-success{background:#2f9e44;color:#fff;padding:10px 16px;border-radius:8px;max-width:520px;margin:16px auto 0;text-align:center;font-size:14px}
.hp-field{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}
