/* ==========================================================================
   Carter's Collection — Design System
   ========================================================================== */

:root {
  /* Dark (default) */
  --bg: #0F0E0C;
  --surface: #171513;
  --surface-alt: #1F1C18;
  --border: #2E2A24;
  --text: #EDE6D8;
  --text-muted: #9A9384;
  --text-faint: #5E594F;
  --gold: #C9A961;
  --gold-hover: #B08F4A;
  --rose: #B88787;

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 48px);

  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --tracking-display: -0.01em;
  --tracking-label: 0.15em;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="light"] {
  --bg: #F5EFE6;
  --surface: #EDE5D7;
  --surface-alt: #E4DAC8;
  --border: #D0C6B3;
  --text: #1A1814;
  --text-muted: #6B6457;
  --text-faint: #A39B89;
  --gold: #B08F4A;
  --gold-hover: #8D7239;
  --rose: #9D6E6E;
}

/* Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

/* Typography
   ========================================================================== */
.display, h1, h2, h3, .h-display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: var(--tracking-display);
  line-height: 1.05;
  color: var(--text);
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }

.eyebrow, .label-sm {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 56ch;
}

p { color: var(--text); }

/* Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding-block: clamp(72px, 12vw, 160px); }
.section-tight { padding-block: clamp(48px, 8vw, 96px); }

/* Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: var(--annc-h, 0px);
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), border-color 0.35s var(--ease), padding 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  padding: 12px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  text-decoration: none;
}
.logo svg { width: 34px; height: 34px; }
.logo .logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
}

/* ===== Apothecary Wordmark Logo ===== */
.logo--wordmark { gap: 0; }

/* Compact: single-line wordmark with rule on either side (header / mobile nav) */
.wm-compact {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.wm-compact .wm-rule {
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}
.wm-compact .wm-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1;
  white-space: nowrap;
}
.wm-compact .wm-name em {
  font-style: italic;
  font-weight: 400;
}

/* Full (stacked) wordmark with eyebrows above & below (footer) */
.wm-full {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.wm-full .wm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 500;
}
.wm-full .wm-eyebrow .wm-rule {
  display: inline-block;
  width: 20px;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}
.wm-full .wm-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1;
}
.wm-full .wm-name em {
  font-style: italic;
  font-weight: 400;
}

/* Light-mode color tuning for the wordmark */
[data-theme="light"] .wm-compact .wm-rule,
[data-theme="light"] .wm-full .wm-eyebrow {
  color: #B08F4A;
}
[data-theme="light"] .wm-compact .wm-rule { background: #B08F4A; }

/* Responsive: shrink compact wordmark on small screens */
@media (max-width: 640px) {
  .wm-compact .wm-rule { width: 12px; }
  .wm-compact { gap: 8px; }
  .wm-compact .wm-name { font-size: 1.1rem; }
}
@media (max-width: 420px) {
  .wm-compact .wm-rule { display: none; }
  .wm-compact { gap: 0; }
}
.nav-primary { display: flex; gap: 36px; align-items: center; }
.nav-primary a {
  font-size: 0.78rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text);
  font-weight: 500;
  position: relative;
  transition: color 0.2s var(--ease);
}
.nav-primary a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-primary a:hover { color: var(--gold); }
.nav-primary a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
  transition: background 0.25s var(--ease);
  color: var(--text);
}
.icon-btn:hover { background: var(--surface-alt); color: var(--gold); }
.icon-btn svg { width: 18px; height: 18px; }

.cart-count {
  position: absolute;
  top: 4px; right: 2px;
  min-width: 16px; height: 16px;
  background: var(--gold);
  color: #0F0E0C;
  font-size: 0.625rem;
  font-weight: 600;
  border-radius: 999px;
  display: none;
  align-items: center; justify-content: center;
  padding: 0 4px;
}
.cart-count.is-visible { display: inline-flex; }

.hamburger { display: none; }

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  padding: 24px var(--gutter);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav-header { display: flex; justify-content: space-between; align-items: center; }
.mobile-nav ul { list-style: none; margin-top: 64px; }
.mobile-nav ul li { border-top: 1px solid var(--border); }
.mobile-nav ul li:last-child { border-bottom: 1px solid var(--border); }
.mobile-nav ul a {
  display: block;
  padding: 24px 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(80px, 12vh, 140px);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,14,12,0.55) 0%, rgba(15,14,12,0.15) 35%, rgba(15,14,12,0.85) 100%),
    linear-gradient(90deg, rgba(15,14,12,0.55) 0%, transparent 60%);
}
.hero-content { position: relative; max-width: 720px; }
.hero-content .eyebrow { color: var(--gold); margin-bottom: 20px; }
.hero h1 {
  color: #EDE6D8;
  font-size: clamp(3.25rem, 8vw, 6.5rem);
  font-weight: 400;
  margin-bottom: 22px;
}
.hero h1 em { font-style: italic; color: var(--gold); font-weight: 400; }
.hero-sub {
  color: #C9C2B4;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  max-width: 52ch;
  margin-bottom: 36px;
  line-height: 1.6;
}
.hero-cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 0.78rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: #0F0E0C;
}
.btn-primary:hover { background: var(--gold-hover); color: #0F0E0C; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline:hover { background: var(--gold); color: #0F0E0C; }
.btn-block { width: 100%; }

/* Section heading
   ========================================================================== */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
}
.section-head .eyebrow { display: block; margin-bottom: 10px; color: var(--gold); }
.section-head h2 { max-width: 16ch; }
.section-head .link {
  font-size: 0.78rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  transition: color 0.2s var(--ease);
  white-space: nowrap;
}
.section-head .link:hover { color: var(--gold); }

/* Collection cards (homepage feature)
   ========================================================================== */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.collection-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface);
  display: block;
}
.collection-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.collection-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,14,12,0) 35%, rgba(15,14,12,0.85) 100%);
}
.collection-card-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(20px, 3vw, 36px);
  z-index: 1;
  color: #EDE6D8;
}
.collection-card-body .eyebrow { color: var(--gold); margin-bottom: 8px; }
.collection-card-body h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  color: #EDE6D8;
  margin-bottom: 10px;
}
.collection-card-body .arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 8px;
}
.collection-card:hover img { transform: scale(1.04); }

/* Product Grid + Cards
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px) clamp(20px, 2.5vw, 32px);
}
.product-grid-4 { grid-template-columns: repeat(4, 1fr); }

.product-card {
  display: block;
  text-align: left;
  transition: transform 0.35s var(--ease);
}
.product-card-media {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 18px;
  border: 1px solid var(--border);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.product-card-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.product-card-media.placeholder {
  background: linear-gradient(135deg, #1F1C18 0%, #2E2A24 60%, #1F1C18 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.product-card-media.placeholder span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gold);
  text-align: center;
  letter-spacing: 0.01em;
}
.product-card:hover { transform: translateY(-4px); }
.product-card:hover .product-card-media {
  border-color: var(--gold);
  box-shadow: 0 12px 36px rgba(201, 169, 97, 0.10);
}
.product-card:hover .product-card-media img { transform: scale(1.03); }

.product-card-body { display: flex; flex-direction: column; gap: 6px; }
.product-card-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--text);
  line-height: 1.2;
}
.product-card-notes {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  font-style: italic;
}
.product-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  gap: 12px;
}
.product-card-price {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.add-to-cart-btn {
  font-size: 0.7rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  padding: 8px 14px;
  border: 1px solid var(--gold);
  transition: all 0.25s var(--ease);
  background: transparent;
}
.add-to-cart-btn:hover { background: var(--gold); color: #0F0E0C; }
.add-to-cart-btn.is-added { background: var(--gold); color: #0F0E0C; }

/* Filter chips
   ========================================================================== */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.filter-chip {
  padding: 9px 18px;
  border: 1px solid var(--border);
  font-size: 0.72rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.25s var(--ease);
  background: transparent;
  border-radius: 999px;
}
.filter-chip:hover { color: var(--text); border-color: var(--text-muted); }
.filter-chip.is-active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

/* Page header
   ========================================================================== */
.page-header { padding-top: clamp(140px, 18vh, 200px); padding-bottom: clamp(48px, 7vw, 88px); }
.page-header .eyebrow { color: var(--gold); margin-bottom: 18px; display: block; }
.page-header h1 { margin-bottom: 24px; }
.page-header p { max-width: 60ch; color: var(--text-muted); }

/* Story strip (homepage)
   ========================================================================== */
.story-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.story-strip-media { aspect-ratio: 4 / 5; overflow: hidden; }
.story-strip-media img { width: 100%; height: 100%; object-fit: cover; }
.story-strip h2 { margin-bottom: 24px; }
.story-strip p { color: var(--text-muted); margin-bottom: 16px; max-width: 50ch; }
.story-strip .btn { margin-top: 18px; }

/* Newsletter
   ========================================================================== */
.newsletter {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.newsletter .eyebrow { color: var(--gold); margin-bottom: 14px; display: block; }
.newsletter h2 { max-width: 18ch; margin: 0 auto 18px; }
.newsletter p { color: var(--text-muted); max-width: 48ch; margin: 0 auto 32px; }
.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 520px;
  margin: 0 auto;
  border: 1px solid var(--border);
}
.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 16px 20px;
  color: var(--text);
  outline: none;
  letter-spacing: 0.01em;
}
.newsletter-form input::placeholder { color: var(--text-faint); }
.newsletter-form button { padding: 0 28px; background: var(--gold); color: #0F0E0C; font-size: 0.74rem; letter-spacing: var(--tracking-label); text-transform: uppercase; font-weight: 500; transition: background 0.2s var(--ease); }
.newsletter-form button:hover { background: var(--gold-hover); }

/* Footer
   ========================================================================== */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand .logo { margin-bottom: 18px; }
.footer-brand p { color: var(--text-muted); max-width: 32ch; font-size: 0.9rem; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
  font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--gold); }
.footer-socials { display: flex; gap: 14px; margin-top: 12px; }
.footer-socials a {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: all 0.25s var(--ease);
  color: var(--text-muted);
}
.footer-socials a:hover { color: var(--gold); border-color: var(--gold); }
.footer-socials svg { width: 16px; height: 16px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-faint);
}

/* Toast
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--surface);
  border: 1px solid var(--gold);
  color: var(--text);
  padding: 16px 22px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 300;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  pointer-events: none;
  box-shadow: 0 12px 36px rgba(0,0,0,0.4);
}
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }

/* Scroll-reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  * { animation: none !important; transition: none !important; }
}

/* About page
   ========================================================================== */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.about-intro-media { aspect-ratio: 4 / 5; overflow: hidden; }
.about-intro-media img { width: 100%; height: 100%; object-fit: cover; }
.about-intro .eyebrow { color: var(--gold); display: block; margin-bottom: 18px; }
.about-intro h2 { margin-bottom: 24px; }
.about-intro p { color: var(--text-muted); margin-bottom: 16px; max-width: 52ch; line-height: 1.7; }

.about-fullbleed {
  position: relative;
  height: 70vh;
  min-height: 480px;
  overflow: hidden;
  margin: clamp(60px, 10vw, 120px) 0;
}
.about-fullbleed img { width: 100%; height: 100%; object-fit: cover; }
.about-fullbleed::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(15,14,12,0.4) 0%, transparent 50%);
}

.about-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
}
.about-two-col h3 { margin-bottom: 18px; }
.about-two-col p { color: var(--text-muted); margin-bottom: 14px; }

.visit-box {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  margin-top: clamp(60px, 10vw, 120px);
}
.visit-box .eyebrow { color: var(--gold); margin-bottom: 18px; display: block; }
.visit-box h3 { margin-bottom: 18px; }
.visit-box p { color: var(--text-muted); margin-bottom: 6px; }

/* Contact section
   ========================================================================== */
#contact { scroll-margin-top: 100px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  padding: clamp(40px, 6vw, 72px) 0;
  border-top: 1px solid var(--border);
}
.contact-head .eyebrow { color: var(--gold); margin-bottom: 14px; display: block; }
.contact-head h2 { margin-bottom: 18px; }
.contact-head p { color: var(--text-muted); max-width: 36ch; }
.contact-cards {
  display: grid;
  gap: 20px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(28px, 3.6vw, 36px);
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.contact-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  background: rgba(196, 159, 96, 0.04);
}
.contact-card-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact-card-email {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  color: var(--text);
  word-break: break-all;
  margin-top: 4px;
}
.contact-card-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.55;
}
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* Product detail page
   ========================================================================== */
.product-detail {
  padding-top: clamp(120px, 16vh, 180px);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.product-gallery { position: sticky; top: 100px; }
.product-gallery-main {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.product-gallery-thumbs button {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
  padding: 0;
}
.product-gallery-thumbs button:hover, .product-gallery-thumbs button.is-active { border-color: var(--gold); }
.product-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product-info .eyebrow { color: var(--gold); margin-bottom: 14px; display: block; }
.product-info h1 { font-size: clamp(2rem, 4vw, 3.25rem); margin-bottom: 16px; }
.product-info .product-price {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 30px;
  font-variant-numeric: tabular-nums;
}
.product-info .product-desc {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 50ch;
}

.notes-pyramid {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 30px;
}
.notes-pyramid h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 16px;
}
.notes-row { display: flex; padding: 8px 0; border-top: 1px solid var(--border); gap: 16px; }
.notes-row:first-of-type { border-top: none; }
.notes-row dt { width: 100px; font-size: 0.85rem; color: var(--text-muted); font-style: italic; flex-shrink: 0; }
.notes-row dd { font-size: 0.9rem; }

.size-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.size-pill {
  flex: 1;
  padding: 14px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 0.78rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.2s var(--ease);
  cursor: pointer;
}
.size-pill:hover { border-color: var(--text-muted); }
.size-pill.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

.qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.qty-row .label-sm { color: var(--text-muted); }
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
}
.qty-stepper button {
  width: 44px; height: 44px;
  font-size: 1.1rem;
  color: var(--text);
  transition: background 0.2s var(--ease);
}
.qty-stepper button:hover { background: var(--surface-alt); }
.qty-stepper .qty-value {
  width: 48px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.cta-row { display: flex; gap: 12px; margin-bottom: 30px; }
.cta-row .btn { flex: 1; }

.expandable {
  border-top: 1px solid var(--border);
}
.expandable:last-of-type { border-bottom: 1px solid var(--border); }
.expandable summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-weight: 500;
}
.expandable summary::-webkit-details-marker { display: none; }
.expandable summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--gold);
  transition: transform 0.3s var(--ease);
}
.expandable[open] summary::after { content: "−"; }
.expandable p, .expandable div {
  padding-bottom: 22px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 60ch;
}

.product-related { margin-top: clamp(80px, 12vw, 140px); }

/* Cart page
   ========================================================================== */
.cart-wrap {
  padding-top: clamp(140px, 18vh, 200px);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.cart-items { border-top: 1px solid var(--border); }
.cart-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 4px;
}
.cart-item-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }
.cart-item-actions { display: flex; align-items: center; gap: 16px; }
.cart-item-remove {
  font-size: 0.7rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 4px;
  transition: color 0.2s var(--ease);
}
.cart-item-remove:hover { color: var(--gold); text-decoration-color: var(--gold); }
.cart-item-price {
  font-size: 1rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  align-self: center;
}

.cart-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  position: sticky;
  top: 100px;
}
.cart-summary h3 { font-size: 1.5rem; margin-bottom: 24px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.summary-row.total {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 18px;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.summary-row .num { font-variant-numeric: tabular-nums; }
.summary-note {
  margin-top: 18px;
  font-size: 0.75rem;
  color: var(--text-faint);
  text-align: center;
  letter-spacing: 0.04em;
}

.empty-cart {
  text-align: center;
  padding: clamp(60px, 10vw, 120px) 24px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.empty-cart svg { width: 56px; height: 56px; color: var(--gold); margin: 0 auto 24px; }
.empty-cart h2 { margin-bottom: 16px; }
.empty-cart p { color: var(--text-muted); margin-bottom: 28px; }

/* Mode toggle icon swap */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Light-mode hero overrides — ensure readability */
:root[data-theme="light"] .hero-bg::after {
  background:
    linear-gradient(180deg, rgba(15,14,12,0.45) 0%, rgba(15,14,12,0.1) 35%, rgba(15,14,12,0.85) 100%);
}
:root[data-theme="light"] .hero h1, :root[data-theme="light"] .hero-sub { color: #F5EFE6; }

/* Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid-4 { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-primary, .header-actions .theme-toggle, .header-actions .icon-btn.cart-btn { /* keep */ }
  .nav-primary { display: none; }
  .hamburger { display: inline-flex; }
  .collections-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .story-strip { grid-template-columns: 1fr; }
  .about-intro { grid-template-columns: 1fr; }
  .about-two-col { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .cart-wrap { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .product-grid, .product-grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cart-item { grid-template-columns: 80px 1fr; grid-template-rows: auto auto; }
  .cart-item-price { grid-column: 2; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { padding: 14px 16px; text-align: center; }
  .newsletter-form button { padding: 14px; }
}

/* ===========================================================================
   Real Product Enhancements: badges, sale prices, image-fit modes, subtitles
   =========================================================================== */
.product-badge {
  position: absolute;
  top: 14px;
  left: 0;
  z-index: 2;
  background: var(--gold);
  color: #0F0E0C;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  padding: 6px 12px 6px 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  /* subtle flag tail */
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%);
  pointer-events: none;
}

/* contain (clean white bg products like His Confession) */
.product-card-media.is-contain {
  background: linear-gradient(160deg, #1B1815 0%, #221F1B 100%);
}
[data-theme="light"] .product-card-media.is-contain {
  background: linear-gradient(160deg, #ECE5D7 0%, #F5EFE6 100%);
}
.product-card-media.is-contain img {
  object-fit: contain;
  padding: 12%;
}

/* cover-cropped (HPYMRT-watermarked dress photos — crop top-left corner) */
.product-card-media.is-cropped img {
  object-fit: cover;
  transform: scale(1.12);
  transform-origin: 58% 55%;
}
.product-card:hover .product-card-media.is-cropped img {
  transform: scale(1.16);
}

/* Sale price block */
.product-card-price.has-sale {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.product-card-price.has-sale .old {
  text-decoration: line-through;
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.85rem;
}
.product-card-price.has-sale .now {
  color: var(--gold);
  font-weight: 500;
}

/* Subtitle under product name on cards */
.product-card-sub {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  margin-top: 2px;
}

/* ===========================================================================
   Product detail customizations for real products
   =========================================================================== */
.product-gallery-main {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.product-gallery-main img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.4s var(--ease);
}
.product-gallery-main.is-contain img {
  object-fit: contain;
  padding: 8%;
}
.product-gallery-main.is-cropped img {
  object-fit: cover;
  transform: scale(1.10);
  transform-origin: 58% 55%;
}
.product-gallery-main .product-badge {
  top: 18px;
}

.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.product-gallery-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.25s var(--ease);
}
.product-gallery-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.product-gallery-thumb.is-contain img {
  object-fit: contain;
  padding: 12%;
}
.product-gallery-thumb.is-cropped img {
  object-fit: cover;
  transform: scale(1.12);
  transform-origin: 58% 55%;
}
.product-gallery-thumb.is-active { border-color: var(--gold); }
.product-gallery-thumb:hover { border-color: var(--gold); }

/* Sale price on detail page */
.product-detail-price.has-sale {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
}
.product-detail-price.has-sale .old {
  text-decoration: line-through;
  color: var(--text-muted);
  font-weight: 400;
  font-size: 1.1rem;
}
.product-detail-price.has-sale .now {
  color: var(--gold);
}
.sale-tag {
  display: inline-block;
  margin-left: 10px;
  padding: 4px 10px;
  background: var(--gold);
  color: #0F0E0C;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  vertical-align: middle;
}

/* Color swatches */
.swatch-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.swatch {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.7rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-muted);
}
.swatch-chip {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  position: relative;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.swatch:hover .swatch-chip { transform: scale(1.06); border-color: var(--gold); }
.swatch.is-active .swatch-chip {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--gold);
}
.swatch.is-active { color: var(--text); }

/* Notes pyramid on fragrance detail */
.notes-pyramid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 14px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.notes-pyramid-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: baseline;
}
.notes-pyramid-row .label {
  font-size: 0.7rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.notes-pyramid-row .notes {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
}

/* Cart image fit modes (mirror card classes) */
.cart-item-media.is-contain {
  background: linear-gradient(160deg, #1B1815 0%, #221F1B 100%);
}
[data-theme="light"] .cart-item-media.is-contain {
  background: linear-gradient(160deg, #ECE5D7 0%, #F5EFE6 100%);
}
.cart-item-media.is-contain img {
  object-fit: contain;
  padding: 10%;
}
.cart-item-media.is-cropped img {
  object-fit: cover;
  transform: scale(1.12);
  transform-origin: 58% 55%;
}

/* Featured/large first tile on clothing grid */
.product-grid.has-featured > .product-card:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
.product-grid.has-featured > .product-card:first-child .product-card-media {
  aspect-ratio: 1 / 1;
}
.product-grid.has-featured > .product-card:first-child .product-card-name {
  font-size: 1.7rem;
}
@media (max-width: 860px) {
  .product-grid.has-featured > .product-card:first-child {
    grid-column: span 2;
    grid-row: auto;
  }
}
@media (max-width: 560px) {
  .product-grid.has-featured > .product-card:first-child {
    grid-column: auto;
  }
}

/* Stacked discount badge (sits below the BESTSELLER / SIGNATURE / ICONIC tag) */
.product-badge-sale {
  top: 44px;
  background: var(--bg);
  color: var(--gold);
  border: 1px solid var(--gold);
  font-size: 0.58rem;
  padding: 5px 11px 5px 13px;
}
.product-gallery-main .product-badge-sale { top: 48px; }


/* SEO: visually hidden but read by Google + screen readers */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* ============================================================
   Announcement / Offer Bar — site-wide, always visible.
   Fixed at very top; header sits just beneath it.
   ============================================================ */
:root { --annc-h: 40px; }
.cc-annc-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 110;
  height: var(--annc-h);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(90deg, var(--gold-hover), var(--gold));
  color: #1a1208;
  border-bottom: 1px solid rgba(0,0,0,0.18);
  overflow: hidden;
}
.cc-annc-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}
.cc-annc-text { font-weight: 400; }
.cc-annc-text strong { font-weight: 700; letter-spacing: 0.06em; }
.cc-annc-spark { font-size: 0.85rem; opacity: 0.85; }
.cc-annc-cta {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  letter-spacing: 0.05em;
}
.cc-annc-bar:hover .cc-annc-cta { opacity: 0.82; }

/* Push the fixed header down below the bar */
.site-header { top: var(--annc-h); }

/* Mobile: tighten copy so it fits one line */
@media (max-width: 600px) {
  :root { --annc-h: 38px; }
  .cc-annc-inner { gap: 8px; font-size: 0.7rem; padding: 0 10px; }
  .cc-annc-cta { display: none; }
}

/* Hero subline discount highlight */
.hero-sub strong { color: var(--gold); font-weight: 600; letter-spacing: 0.01em; }
