/* Announcement Bar */
.announcement-bar {
  background-color: var(--color-burgundy-dark);
  color: var(--color-gold-light);
  height: var(--announcement-height);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 100;
  text-align: center;
  padding: 0 1rem;
}

.announcement-bar a {
  color: #FFFFFF;
  text-decoration: underline;
  margin-left: 0.5rem;
  font-weight: 500;
}

/* ============================================================
   SITE HEADER — Luxury Sticky Navigation
   Z-Index hierarchy:
   site-header:       200
   mega-menu:         300 (positioned absolute from site-header)
   modals:            500
   cart-drawer:       400
   mobile-nav:        2200
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  /* IMPORTANT: position:sticky + z-index creates a stacking context.
     The mega-menu uses position:fixed to escape this context and span
     full viewport width below the header. */
  background-color: rgba(250, 247, 242, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-gold-border);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1.5rem;
}

/* ============================================================
   BRAND LOGO — Supports both image and text fallback
   ============================================================ */
.brand-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  flex-shrink: 0;
  z-index: 2;
  min-width: 0;
  padding: 0;
}

/* Image logo — used when logo file is available */
.brand-logo-img {
  width: 155px;
  height: auto;
  max-width: 175px;
  max-height: 72px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

/* Text fallback — shown if image fails to load */
.brand-logo-text-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-logo-text {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--color-burgundy);
  line-height: 1;
}

.brand-logo-sub {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-top: 3px;
}

@media (max-width: 1024px) {
  .brand-logo-img {
    width: 135px;
    height: auto;
    max-width: 150px;
    max-height: 68px;
    object-position: left center;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 74px;
  }
  .brand-logo-img {
    width: 120px;
    height: auto;
    max-width: 130px;
    max-height: 60px;
    object-position: left center;
  }
  .brand-logo-text { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .brand-logo-img {
    width: 115px;
    height: auto;
    max-width: 125px;
    max-height: 56px;
    object-position: left center;
  }
}

/* ============================================================
   NAVIGATION LINKS
   ============================================================ */
nav {
  /* nav must NOT be position:relative to allow mega-menu
     to use position:fixed for full-width placement */
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 1280px) {
  .nav-links { gap: 1.5rem; }
}

@media (max-width: 1100px) {
  .nav-links { gap: 1.1rem; }
}

.nav-item {
  /* position:static so mega-menu is NOT trapped inside nav-item width */
  position: static;
}

.nav-item.mega-menu-trigger {
  /* position:static is critical — mega-menu MUST anchor to site-header, not here */
  position: static;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-charcoal);
  padding: 1.6rem 0;
  display: inline-block;
  position: relative;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 1.2rem;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--color-burgundy);
  transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after,
.mega-menu-trigger:hover .nav-link::after {
  width: 100%;
}

.nav-link:hover,
.mega-menu-trigger:hover .nav-link {
  color: var(--color-burgundy);
}

/* ============================================================
   MEGA MENU — Full-Width Panel
   Uses position:fixed to escape the sticky header stacking
   context and span the full viewport width.
   IMPORTANT: Do NOT use position:absolute here — the sticky
   header creates a stacking context that would trap absolute
   children and prevent them from covering the full page.
   ============================================================ */
.mega-menu {
  position: fixed;
  /* top is set via JS to match bottom of header */
  top: calc(var(--announcement-height) + var(--header-height));
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  background-color: #FAF7F2;
  border-top: 1px solid rgba(197, 168, 128, 0.25);
  border-bottom: 1px solid var(--color-gold-border);
  box-shadow: 0 25px 50px -10px rgba(27, 26, 25, 0.2),
              0 0 0 1px rgba(197, 168, 128, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* NO overflow:hidden — this was clipping the dropdown content */
  transform: translateY(-8px);
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.24s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.24s;
  z-index: 1050;
  padding: 2.6rem 0 3rem 0;
}

/* Invisible hover bridge between navbar and dropdown */
.mega-menu::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
  background: transparent;
}

/* Mega Menu Active State — JS-controlled only */
.mega-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mega-menu-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .mega-menu-grid {
    gap: 1.5rem;
  }
}

.mega-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-sizing: border-box;
}

.mega-col-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-burgundy);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-gold-border);
}

.mega-col-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0;
  margin: 0;
}

.mega-col-list a {
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 400;
  color: var(--color-charcoal-light);
  text-decoration: none;
  transition: var(--transition-smooth);
  display: inline-block;
  line-height: 1.4;
}

.mega-col-list a:hover {
  color: var(--color-burgundy);
  transform: translateX(4px);
}

.mega-col-list a.view-all-link {
  color: var(--color-gold-dark);
  font-weight: 600;
  font-size: 0.82rem;
  margin-top: 0.4rem;
  letter-spacing: 0.04em;
}

.mega-col-list a.view-all-link:hover {
  color: var(--color-burgundy);
  transform: translateX(6px);
}

/* Mega Feature Card */
.mega-feature-card {
  position: relative;
  overflow: hidden;
  height: 250px;
  border-radius: 2px;
  border: 1px solid var(--color-gold-border);
  box-shadow: 0 6px 16px rgba(27, 26, 25, 0.08);
}

.mega-feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mega-feature-card:hover img {
  transform: scale(1.05);
}

.mega-feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27, 26, 25, 0.1) 30%, rgba(27, 26, 25, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: #FFFFFF;
}

.mega-badge {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  font-weight: 600;
}

.mega-feature-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: #FFFFFF;
  margin: 0.3rem 0;
  line-height: 1.2;
}

.mega-feature-link {
  font-size: 0.76rem;
  color: var(--color-gold-light);
  text-decoration: underline;
  letter-spacing: 0.08em;
  transition: var(--transition-smooth);
}

.mega-feature-link:hover {
  color: #FFFFFF;
}

/* Header Action Icons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  z-index: 2;
}

.header-action-btn {
  background: transparent;
  color: var(--color-charcoal);
  border: none;
  cursor: pointer;
  position: relative;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.header-action-btn:hover {
  color: var(--color-burgundy);
  transform: translateY(-1px);
}

.header-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  background-color: var(--color-burgundy);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--color-charcoal);
  cursor: pointer;
  padding: 0.4rem;
  z-index: 2;
}

/* ============================================================
   MOBILE NAVIGATION DRAWER
   z-index: 2200 (backdrop: 2100) — above everything
   ============================================================ */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(27, 26, 25, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
  z-index: 2100;
}

.mobile-nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 88%;
  max-width: 400px;
  height: 100vh;
  height: 100dvh; /* dynamic viewport height for mobile browsers */
  background-color: var(--color-ivory);
  border-right: 1px solid var(--color-gold-border);
  box-shadow: 10px 0 35px rgba(27, 26, 25, 0.25);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2200;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-drawer.is-open {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.6rem;
  border-bottom: 1px solid var(--color-gold-border);
}

.mobile-nav-close {
  background: transparent;
  color: var(--color-charcoal);
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.mobile-nav-close:hover {
  color: var(--color-burgundy);
}

.mobile-nav-content {
  padding: 1.5rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.mobile-nav-link {
  display: block;
  padding: 0.95rem 0;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--color-charcoal);
  text-decoration: none;
  border-bottom: 1px solid rgba(197, 168, 128, 0.18);
  transition: var(--transition-smooth);
}

.mobile-nav-link:hover {
  color: var(--color-burgundy);
  padding-left: 0.5rem;
}

/* Mobile Accordion */
.mobile-nav-accordion {
  border-bottom: 1px solid rgba(197, 168, 128, 0.18);
}

.mobile-accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0;
  background: transparent;
  border: none;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--color-charcoal);
  cursor: pointer;
  text-align: left;
}

.mobile-accordion-toggle .chevron {
  transition: transform 0.25s ease;
  color: var(--color-gold-dark);
}

.mobile-accordion-toggle.is-expanded .chevron {
  transform: rotate(180deg);
}

.mobile-accordion-content {
  display: none;
  padding: 0.5rem 0 1.4rem 0.5rem;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-accordion-content.is-expanded {
  display: flex;
}

.mobile-subgroup {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-subgroup-title {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-burgundy);
  margin-bottom: 0.2rem;
}

.mobile-subgroup a {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--color-charcoal-light);
  text-decoration: none;
  padding: 0.25rem 0;
  transition: var(--transition-smooth);
}

.mobile-subgroup a:hover {
  color: var(--color-burgundy);
  padding-left: 0.35rem;
}

.mobile-subgroup a.view-all {
  color: var(--color-gold-dark);
  font-weight: 600;
  font-size: 0.82rem;
}

.mobile-nav-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-gold-border);
}

.mobile-footer-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.mobile-footer-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background-color: var(--color-cream-card);
  border: 1px solid var(--color-gold-border);
  color: var(--color-charcoal);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: var(--transition-smooth);
}

.mobile-footer-btn:hover {
  border-color: var(--color-burgundy);
  color: var(--color-burgundy);
}

.mobile-concierge {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--color-muted-gray);
}

.mobile-concierge a {
  color: var(--color-burgundy);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
}

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  /* Hide mega menus on mobile (handled by drawer instead) */
  .mega-menu { display: none !important; }
}

/* Hero Section */
.hero-section {
  position: relative;
  aspect-ratio: 1672 / 850;
  width: 100%;
  max-height: calc(100vh - var(--announcement-height) - var(--header-height));
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-charcoal);
}

.hero-picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

@media (min-width: 992px) {
  .hero-content {
    position: absolute;
    inset: 0;
    max-width: none;
    pointer-events: none;
    margin: 0;
    padding: 0;
  }
  .hero-subtitle,
  .hero-title,
  .hero-desc {
    opacity: 0;
    pointer-events: none;
  }
  .hero-cta-group {
    position: absolute;
    left: 24.2%;
    top: 45.2%;
    display: flex;
    gap: 1.4%;
    width: 33%;
    height: 8.5%;
    pointer-events: auto;
  }
  #hero-shop-wedding {
    width: 42%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
  }
  #hero-shop-wedding:hover {
    opacity: 0.2;
    background: #FFFFFF;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    border-radius: 2px;
  }
  #hero-new-arrivals {
    width: 56%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
  }
  #hero-new-arrivals:hover {
    opacity: 0.2;
    background: #FFFFFF;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    border-radius: 2px;
  }
}

@media (max-width: 991px) {
  .hero-section {
    aspect-ratio: auto;
    height: 80vh;
    min-height: 520px;
  }
  .hero-bg {
    object-position: right center;
  }
  .hero-overlay {
    background: linear-gradient(90deg, rgba(18, 16, 15, 0.98) 0%, rgba(18, 16, 15, 0.94) 50%, rgba(18, 16, 15, 0.5) 80%, transparent 100%),
                linear-gradient(180deg, rgba(18, 16, 15, 0.4) 0%, transparent 35%, rgba(18, 16, 15, 0.7) 100%);
  }
  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 540px;
    padding: 0 2rem;
    color: #FFFFFF;
  }
}

@media (max-width: 768px) {
  .hero-section {
    aspect-ratio: auto;
    height: 75vh;
    min-height: 480px;
  }
  .hero-bg {
    object-position: 85% center;
  }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(18, 16, 15, 0.9) 0%, rgba(18, 16, 15, 0.78) 45%, rgba(18, 16, 15, 0.95) 100%),
                linear-gradient(90deg, rgba(18, 16, 15, 0.96) 0%, rgba(18, 16, 15, 0.75) 65%, transparent 100%);
  }
  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 100%;
    padding: 0 1.5rem;
    color: #FFFFFF;
  }
}

.hero-subtitle {
  font-family: var(--font-body);
  color: var(--color-gold);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  display: inline-block;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.005em;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #EDE8E1;
  margin-bottom: 2.5rem;
  font-weight: 400;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* Category Showcase */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

@media (max-width: 900px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 550px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
}

.category-card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--color-gold-border);
  display: block;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(27, 26, 25, 0.8) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: #FFFFFF;
  transition: var(--transition-smooth);
}

.category-card-title {
  font-size: 1.6rem;
  color: #FFFFFF;
  margin-bottom: 0.3rem;
}

.category-card-cta {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Dynamic Product Grid & 3:4 Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 850px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
}

/* ==========================================================================
   Dedicated Shop & Collection Catalog Layout (Sidebar + Centered Product Grid)
   ========================================================================== */
.shop-container,
.collection-container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.shop-layout,
.collection-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.shop-sidebar,
.filter-sidebar {
  background: var(--color-cream-card);
  border: 1px solid var(--color-gold-border);
  padding: 1.5rem;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

.shop-content,
.product-area {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Shop & Collection Product Grid:
   Large Desktop: 3 columns (Sidebar + 3 product columns)
   Medium Desktop / Tablet: 2 columns (Sidebar + 2 product columns)
   Mobile: 1 column (Filter controls + 1 product column)
*/
.shop-product-grid,
.product-area .product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1100px) {
  .shop-layout,
  .collection-layout {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 1.5rem;
  }
  .shop-product-grid,
  .product-area .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
  }
}

@media (max-width: 820px) {
  .shop-layout,
  .collection-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .shop-sidebar,
  .filter-sidebar {
    width: 100%;
  }
  .shop-product-grid,
  .product-area .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
  }
}

@media (max-width: 540px) {
  .shop-product-grid,
  .product-area .product-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
}

.product-card {
  position: relative;
  background-color: var(--color-cream-card);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.product-card-image-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: #EFEBE5;
}

.product-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease, transform 0.6s ease;
}

.product-card-image.primary {
  opacity: 1;
  z-index: 1;
}

.product-card-image.secondary {
  opacity: 0;
  z-index: 2;
}

.product-card:hover .product-card-image.secondary {
  opacity: 1;
}

.product-card:hover .product-card-image {
  transform: scale(1.03);
}

/* Floating Actions on Product Card */
.product-wishlist-btn {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 5;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-charcoal);
  transition: var(--transition-smooth);
}

.product-wishlist-btn:hover,
.product-wishlist-btn.active {
  background: #FFFFFF;
  color: var(--color-burgundy);
  transform: scale(1.1);
}

.product-badge-wrap {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.product-quick-add {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-burgundy);
  color: #FFFFFF;
  padding: 0.8rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  z-index: 5;
  transform: translateY(100%);
  opacity: 0;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.product-card:hover .product-quick-add {
  transform: translateY(0);
  opacity: 1;
}

.product-card-info {
  padding: 1.1rem 0.5rem 0.5rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.product-card-category {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--color-gold-dark);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-card-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: var(--transition-smooth);
  display: block;
  min-width: 0;
  max-width: 100%;
}

.product-card:hover .product-card-title {
  color: var(--color-burgundy);
}

.product-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: 0.2rem;
  flex-wrap: wrap;
  min-width: 0;
}

.product-price {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-burgundy);
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.product-mrp {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--color-muted-gray);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

.product-discount-tag {
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: var(--color-gold-dark);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Why MANIRII Trust Pillars */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--color-gold-border);
  border-bottom: 1px solid var(--color-gold-border);
  padding: 3.5rem 0;
}

@media (max-width: 900px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
  .trust-grid { grid-template-columns: 1fr; }
}

.trust-item {
  text-align: center;
  padding: 1rem;
}

.trust-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.2rem auto;
  color: var(--color-burgundy);
}

.trust-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.trust-desc {
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Editorial Story Section */
.editorial-section {
  background-color: var(--color-ivory-warm);
  padding: 6rem 0;
  margin: 4rem 0;
  border-top: 1px solid var(--color-gold-border);
  border-bottom: 1px solid var(--color-gold-border);
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .editorial-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.editorial-image-frame {
  position: relative;
  padding: 1rem;
  border: 1px solid var(--color-gold);
}

.editorial-image-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Newsletter Section */
.newsletter-section {
  background-color: var(--color-burgundy-dark);
  color: #FFFFFF;
  padding: 5rem 0;
  text-align: center;
}

.newsletter-box {
  max-width: 580px;
  margin: 0 auto;
}

.newsletter-box h2 {
  color: #FFFFFF;
  margin-bottom: 0.8rem;
}

.newsletter-box p {
  color: var(--color-gold-light);
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-input {
  flex: 1;
  padding: 0.9rem 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--color-gold-border);
  color: #FFFFFF;
  font-size: 0.9rem;
}

.newsletter-input::placeholder {
  color: rgba(232, 216, 195, 0.6);
}

/* Full Luxury Footer */
.site-footer {
  background-color: var(--color-charcoal);
  color: #EDE8E1;
  padding: 5rem 0 2rem 0;
  border-top: 1px solid var(--color-gold-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (max-width: 950px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (max-width: 550px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-col h4 {
  color: var(--color-gold);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col ul a {
  color: #CFC9C2;
  font-size: 0.88rem;
  transition: var(--transition-smooth);
}

.footer-col ul a:hover {
  color: var(--color-gold);
  transform: translateX(4px);
  display: inline-block;
}

.footer-bottom {
  border-top: 1px solid rgba(197, 168, 128, 0.2);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--color-muted-gray);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================================
   FOOTER BRAND SECTION — Logo + WITH YOU tagline
   ============================================================ */
.footer-brand-col {
  display: flex;
  flex-direction: column;
}

.footer-brand-logo {
  margin-bottom: 0.5rem;
}

.footer-logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1) sepia(1) saturate(0.5) brightness(0.85);
  /* Tints the logo to match footer gold tone */
}

.footer-tagline {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0;
}

/* ============================================================
   HERO GHOST BUTTON — White transparent on dark hero
   ============================================================ */
.hero-btn-ghost {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.hero-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  color: #FFFFFF !important;
}

/* ============================================================
   LEGAL PAGES — Policy / Contact / Info Pages
   ============================================================ */
.legal-page-wrapper {
  min-height: 100vh;
  background: var(--color-ivory-warm, #FDFAF5);
}

.legal-body p {
  margin-bottom: 1rem;
}

.legal-body ul,
.legal-body ol {
  margin: 0.75rem 0 1rem 1.5rem;
  line-height: 2;
}

.legal-body a {
  color: var(--color-burgundy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-body a:hover {
  opacity: 0.8;
}

.legal-section:last-of-type {
  border-bottom: none !important;
}

/* Policy Quick Link cards on contact page */
.policy-quick-link:hover {
  box-shadow: 0 4px 20px rgba(101, 14, 30, 0.12);
  transform: translateY(-2px);
  transition: all 0.25s ease;
}

/* Contact page detail cards */
.contact-detail-card:hover {
  box-shadow: 0 2px 12px rgba(101, 14, 30, 0.08);
}

/* Legal page breadcrumb */
.legal-page-wrapper .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.legal-page-wrapper .form-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-charcoal, #2C2418);
  font-weight: 600;
}

.legal-page-wrapper .form-input {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-gold-border, rgba(197,168,128,0.4));
  background: #fff;
  font-family: var(--font-sans, Inter, sans-serif);
  font-size: 0.9rem;
  color: var(--color-charcoal, #2C2418);
  border-radius: 2px;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.legal-page-wrapper .form-input:focus {
  border-color: var(--color-burgundy, #650E1E);
  box-shadow: 0 0 0 2px rgba(101, 14, 30, 0.08);
}

.legal-page-wrapper select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23650E1E' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Responsive contact page grid */
@media (max-width: 768px) {
  .legal-page-wrapper > .container > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }
}
