/* ============================================
   SOIRÈNE — Two-House Theme Layer
   Loaded AFTER style.css. Does not edit or override
   any existing component rule — only adds:
   1) a root-level "gold thread" mark that visually
      stitches Essentials + Signature into one house
   2) a scoped .zone-essentials override block so any
      existing component (buttons, cards, sections)
      re-themes automatically when nested inside it
   3) new components used by the two-collection layout
   ============================================ */

:root {
  /* The connecting thread — same exact gold on every page,
     regardless of which zone it sits in. This is the one
     constant that says "same house" no matter the palette. */
  --gold-thread: #C9A96E;
}

/* ------------------------------------------------
   Gold-thread signature mark
   Appears before every section eyebrow, site-wide,
   in both zones. Small, quiet, consistent.
------------------------------------------------- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--gold-thread);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ------------------------------------------------
   ESSENTIALS ZONE — scoped override
   Apply class="zone-essentials" to any section/wrapper.
   Every existing component inside it (product-card,
   btn, cat-vs-card, section-eyebrow, etc.) reads these
   same variable names, so it re-themes for free.
------------------------------------------------- */
.zone-essentials {
  --primary: #FFFFFF;
  --primary-soft: #F7F3ED;
  --secondary: #F1E7D8;
  --card-bg: #FFFFFF;
  --accent: #6B3236;
  --accent-dark: #4E2327;
  --accent-light: #9C6266;
  --accent-gold: #AD8A54;
  --accent-gold-light: #D8C39D;
  --text: #241B14;
  --text-soft: #5B4B3D;
  --muted: #9C8D7A;
  --border: #E9E0D2;
  --border-light: #F1E7D8;
  --white: #ffffff;
  --shadow: rgba(30, 20, 15, 0.06);
  --shadow-strong: rgba(30, 20, 15, 0.12);

  background-color: var(--primary);
  color: var(--text);
}

/* Reserved for later: product-level "mood" tags (Bold/Fresh/Soft)
   for when cotton-basics SKUs actually launch. Not used as zone
   chrome — see conversation notes on why. */
:root {
  --mood-bold: #1A1613;
  --mood-fresh: #D9C4A6;
  --mood-soft: #E8B9BE;
}

/* Section eyebrow color follows the zone's own accent,
   but the gold-thread mark (above) stays constant gold
   in both zones — that's the deliberate contrast. */
.zone-essentials .section-eyebrow { color: var(--accent); }

/* Buttons inside the essentials zone need a readable
   outline variant against a light background. */
.zone-essentials .btn-outline {
  border: 1px solid var(--accent);
  color: var(--accent);
}
.zone-essentials .btn-outline:hover {
  background: var(--accent);
  color: var(--primary);
}

/* ------------------------------------------------
   ZONE BADGE — small pill used on product cards /
   section headers to mark which collection a piece
   belongs to. Neutral by default, colored per zone.
------------------------------------------------- */
.zone-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3em 0.75em;
  border-radius: 999px;
  border: 1px solid var(--gold-thread);
  color: var(--gold-thread);
  background: transparent;
}

/* ------------------------------------------------
   CHOOSE YOUR COLLECTION — two large cards
------------------------------------------------- */
.collection-choice {
  padding: clamp(3rem, 6vw, 5.5rem) 5vw;
}
.collection-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}
@media (max-width: 860px) {
  .collection-choice-grid { grid-template-columns: 1fr; }
}
.collection-choice-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-lg, 10px);
  isolation: isolate;
}
.collection-choice-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.collection-choice-card:hover img { transform: scale(1.045); }
.collection-choice-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.collection-choice-card.is-essentials .collection-choice-shade {
  background: linear-gradient(180deg, rgba(44,32,24,0) 35%, rgba(44,32,24,0.72) 100%);
}
.collection-choice-card.is-signature .collection-choice-shade {
  background: linear-gradient(180deg, rgba(10,6,8,0.05) 30%, rgba(10,6,8,0.86) 100%);
}
.collection-choice-copy {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 2rem;
  color: #F5EEE8;
}
.collection-choice-copy .zone-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-thread);
  margin-bottom: 0.6rem;
}
.collection-choice-copy .zone-kicker::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--gold-thread);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.collection-choice-copy h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 0.4rem;
}
.collection-choice-copy p {
  font-size: 0.9rem;
  color: rgba(245,238,232,0.82);
  max-width: 34ch;
  margin-bottom: 1rem;
}
.collection-choice-copy .zone-cta {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #F5EEE8;
  border-bottom: 1px solid var(--gold-thread);
  padding-bottom: 3px;
  display: inline-block;
}

/* ------------------------------------------------
   CATEGORY JUMP NAV — Lingerie / Sleepwear / Bras /
   Panties quick links at the top of essentials.html
------------------------------------------------- */
.category-jump-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  padding: 2rem 5vw 0;
  max-width: 1280px;
  margin: 0 auto;
}
.category-jump-nav a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.6em 1.3em;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.category-jump-nav a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
}

.empty-cat-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 2rem 0;
}

/* ------------------------------------------------
   COMING SOON PANEL — full-width category state for
   Bras / Panties until real SKUs exist
------------------------------------------------- */
.coming-soon-panel {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.75rem;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.75rem;
  background: var(--primary-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
}
@media (max-width: 640px) {
  .coming-soon-panel { grid-template-columns: 1fr; text-align: center; }
}
.coming-soon-panel img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  filter: grayscale(15%);
  opacity: 0.85;
}
.coming-soon-panel h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.coming-soon-panel p {
  font-size: 0.92rem;
  color: var(--text-soft);
  margin-bottom: 1rem;
  max-width: 46ch;
}

   category sections on the homepage / shop page to
   say "these belong to Essentials" / "...Signature"
------------------------------------------------- */
.zone-group-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}
.zone-group-header .zone-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-thread);
  margin-bottom: 0.5rem;
}
.zone-group-header .zone-kicker::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--gold-thread);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.zone-group-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
}
.zone-group-header p {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  color: var(--text-soft);
}
.zone-group-divider {
  border: none;
  height: 1px;
  background: var(--border);
  max-width: 1280px;
  margin: 3.5rem auto;
}

/* ------------------------------------------------
   SIGNATURE INLINE — re-asserts the dark Signature
   palette for one section nested inside a .zone-essentials
   wrapper. Used on the homepage: the page is light by
   default now, with exactly one dedicated dark section
   for the Signature product showcase.
------------------------------------------------- */
.zone-signature-inline {
  --primary: #160D12;
  --primary-soft: #1C1018;
  --secondary: #221420;
  --card-bg: #271528;
  --accent: #B8274C;
  --accent-dark: #8F1C38;
  --accent-light: #D4567A;
  --accent-gold: #C9A96E;
  --accent-gold-light: #E8D5B0;
  --text: #F5EEE8;
  --text-soft: #D0BDB5;
  --muted: #8A7070;
  --border: #2E1A28;
  --border-light: #3F2438;
  --white: #ffffff;
  --shadow: rgba(184, 39, 76, 0.10);
  --shadow-strong: rgba(0, 0, 0, 0.45);

  background-color: var(--primary);
  color: var(--text);
}
.zone-signature-inline .section-eyebrow { color: var(--accent-gold); }

/* ------------------------------------------------
   HERO CAROUSEL — 3 slides (Signature / Essentials /
   Offers), auto-advancing. Text stays light on every
   slide regardless of page theme, since each slide is
   a photo with the same dark scrim as every other hero
   on the site — this is independent of light/dark zone.
------------------------------------------------- */
.hero-carousel { position: relative; }
.hero-carousel .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease;
  z-index: 1;
}
.hero-carousel .hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.hero-carousel .hero-slide .hero-vs-title,
.hero-carousel .hero-slide .hero-vs-sub,
.hero-carousel .hero-slide .hero-vs-privacy,
.hero-carousel .hero-slide .hero-vs-eyebrow {
  color: #F5EEE8;
}
.hero-carousel .hero-slide .hero-vs-eyebrow { color: #E8D5B0; }
.hero-carousel .hero-slide .hero-vs-privacy { color: #d7c4bd; }
.hero-carousel .hero-slide .hero-vs-sub { color: #eadbd6; }

.hero-carousel-dots {
  position: absolute;
  z-index: 3;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
}
.hero-carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(245,238,232,0.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.hero-carousel-dots button.is-active {
  background: #C9A96E;
  border-color: #C9A96E;
}
@media (prefers-reduced-motion: reduce) {
  .hero-carousel .hero-slide { transition: none; }
}

/* ------------------------------------------------
   PRODUCT CARD FIX — .product-card, .product-category,
   .product-price, and .product-cod-badge all have
   hardcoded dark colors elsewhere in style.css (left
   over from when the whole site was dark-only), which
   don't respond to CSS variables at all. That made
   product names unreadable — dark text on a hardcoded
   dark card — on the light Essentials/Signature-showcase
   zones. These overrides re-theme just those properties
   for cards nested inside .zone-essentials.
------------------------------------------------- */
.zone-essentials .product-card {
  background: var(--card-bg);
  border-color: var(--border);
  box-shadow: 0 8px 24px var(--shadow);
}
.zone-essentials .product-category {
  color: var(--muted);
}
.zone-essentials .product-price {
  color: var(--accent-gold);
}
.zone-essentials .product-cod-badge {
  color: var(--accent-gold);
}

/* ------------------------------------------------
   SIZE GUIDE ACCORDION — product-detail.html.
   Uses the page's existing var() tokens, so it
   matches whichever theme the page is in automatically.
------------------------------------------------- */
.size-guide-accordion {
  margin: 0 0 1.5rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg, 10px);
  overflow: hidden;
}
.size-guide-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.1rem;
  background: var(--card-bg);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
}
.size-guide-chevron {
  transition: transform 0.25s ease;
  color: var(--accent-gold);
}
.size-guide-toggle.is-open .size-guide-chevron {
  transform: rotate(180deg);
}
.size-guide-panel {
  padding: 1.1rem;
  background: var(--secondary);
  border-top: 1px solid var(--border-light);
}
.size-guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}
.size-guide-table th,
.size-guide-table td {
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-soft);
  white-space: nowrap;
}
.size-guide-table th {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.size-guide-table td:first-child,
.size-guide-table th:first-child {
  color: var(--accent-gold);
  font-weight: 600;
}
.size-guide-note {
  font-size: 0.76rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.size-guide-measure-header {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.85rem;
  font-weight: 600;
}
.size-guide-measure-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
@media (max-width: 560px) {
  .size-guide-measure-grid { grid-template-columns: repeat(2, 1fr); }
  .size-guide-table { font-size: 0.72rem; }
  .size-guide-table th, .size-guide-table td { padding: 0.4rem; white-space: normal; }
}
.size-guide-measure-item {
  text-align: center;
  padding: 0.75rem 0.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius, 6px);
}
.size-guide-measure-icon {
  display: block;
  font-size: 1.3rem;
  color: var(--accent-gold);
  margin-bottom: 0.35rem;
}
.size-guide-measure-item strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.size-guide-measure-item p {
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ------------------------------------------------
   OFFER BANNER FIX — same issue as the product-card
   fix above: .offer-banner's background gradient has a
   hardcoded 96%-opacity near-black color stop baked in,
   which doesn't respond to CSS variables at all. Its text
   already correctly uses var(--text)/var(--text-soft), so
   it was rendering dark-on-dark. This gives it a light-
   appropriate version of the same glow effect.
------------------------------------------------- */
.zone-essentials .offer-banner {
  background:
    linear-gradient(110deg, rgba(156,78,82,0.07), var(--card-bg) 48%, rgba(173,138,84,0.10)),
    var(--card-bg);
  border-color: var(--border);
}

/* ------------------------------------------------
   LEOPARD GIFT OFFER FIX — same hardcoded-background
   issue again. This section sits inside the light zone
   on the homepage, so per the "only one dark section"
   rule it needs to actually go light, not stay dark.
------------------------------------------------- */
.zone-essentials .leopard-gift-offer {
  border-color: var(--border);
  background:
    radial-gradient(circle at 10% 20%, rgba(156,78,82,0.08), transparent 38%),
    var(--card-bg);
}
