/* ===========================================================================
   Everlastings by Emaline — Design System Stylesheet
   v1.4.3 Track B (B1)
   ---------------------------------------------------------------------------
   Order:
     1. Tokens (color, spacing, typography, shadow, radius, transition, z, layout)
     2. Reset + base
     3. Typography (h1-h6, body)
     4. Layout primitives (container, sections, breakpoints)
     5. Header / Nav / Footer
     6. Base components (buttons, cards, forms, images, badges, errors)
     7. Skeleton loading
     8. Lightbox
     9. Email-CTA: product interest, exit-intent modal, contemplation popup
    10. Cookie consent banner (B1.5)
    11. Page-specific helpers (placeholder map, breadcrumb, etc.)

   Brand tokens copied verbatim from `assets/docs/BRAND.md`.
   =========================================================================== */


/* ---------------------------------------------------------------------------
   1. TOKENS
   --------------------------------------------------------------------------- */

:root {
  /* === Color (BRAND.md > CSS Custom Properties) === */
  --color-plum:       #4A1942;
  --color-lavender:   #B8A5C8;
  --color-fog:        #D4D4D4;
  --color-cream:      #FFF8E7;
  --color-gold:       #D4AF7A;
  --color-ink:        #1A1A1A;
  --color-star-blue:  #1B3A52;
  --color-amethyst:   #9B6B9E;

  --bg-primary:       var(--color-cream);
  --bg-secondary:     var(--color-fog);
  --bg-dark:          var(--color-ink);

  --text-primary:     var(--color-ink);
  --text-secondary:   #5A5A5A;
  --text-muted:       #8A8A8A;
  --text-inverse:     var(--color-cream);

  --accent-primary:   var(--color-plum);
  --accent-hover:     var(--color-lavender);
  --accent-gold:      var(--color-gold);

  /* === Typography === */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                  "Helvetica Neue", Arial, sans-serif;

  --text-xs:   0.75rem;     /* 12px - captions */
  --text-sm:   0.875rem;    /* 14px - small labels */
  --text-base: 1rem;        /* 16px - body */
  --text-lg:   1.125rem;    /* 18px - large body */
  --text-xl:   1.25rem;     /* 20px */
  --text-2xl:  1.5rem;      /* 24px */
  --text-3xl:  2rem;        /* 32px - section headings */
  --text-4xl:  2.5rem;      /* 40px - page titles */
  --text-5xl:  3rem;        /* 48px - hero display */

  --leading-tight:  1.2;
  --leading-snug:   1.4;
  --leading-normal: 1.6;
  --leading-loose:  1.8;

  /* === Spacing === */
  --space-xs:   0.25rem;   /* 4px */
  --space-sm:   0.5rem;    /* 8px */
  --space-md:   1rem;      /* 16px */
  --space-lg:   1.5rem;    /* 24px */
  --space-xl:   2rem;      /* 32px */
  --space-2xl:  3rem;      /* 48px */
  --space-3xl:  4rem;      /* 64px */

  /* === Shadow === */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.10);

  /* === Radius === */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* === Transition === */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* === Z-index === */
  --z-header:      100;
  --z-modal:       200;
  --z-lightbox:    300;
  --z-cookie:      400;   /* sits above modal so it's never hidden */

  /* === Layout === */
  --header-height: 64px;
  --container-max: 1280px;
  --container-padding: var(--space-lg);
}


/* ---------------------------------------------------------------------------
   2. RESET + BASE
   --------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }
img, video, picture, svg { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--accent-primary); text-decoration: underline; text-underline-offset: 0.15em; transition: color var(--transition-fast); }
a:hover { color: var(--accent-hover); }
a:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 2px; border-radius: 2px; }
input, textarea, select { font: inherit; color: inherit; }


/* ---------------------------------------------------------------------------
   3. TYPOGRAPHY
   --------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--leading-tight);
  margin: 0 0 var(--space-md) 0;
  color: var(--text-primary);
  letter-spacing: -0.005em;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); font-weight: 700; }

p { margin: 0 0 var(--space-md) 0; line-height: var(--leading-normal); }
p:last-child { margin-bottom: 0; }

.text-display    { font-family: var(--font-display); }
.text-muted      { color: var(--text-muted); }
.text-secondary  { color: var(--text-secondary); }
.text-inverse    { color: var(--text-inverse); }
.text-center     { text-align: center; }
.text-italic     { font-style: italic; }


/* ---------------------------------------------------------------------------
   4. LAYOUT PRIMITIVES + RESPONSIVE BREAKPOINTS

   Mobile-first base @ 393px (iPhone reference per .agent/2026_MOBILE_DESIGN_SPECS.md).
   Tablet 768px, desktop 1024px, large desktop 1440px.
   --------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.section-tight  { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
.section-loose  { padding-top: var(--space-3xl); padding-bottom: var(--space-3xl); }

@media (min-width: 768px) {
  :root { --container-padding: var(--space-xl); }
  h1 { font-size: 3.5rem; }
  h2 { font-size: var(--text-4xl); }
}

@media (min-width: 1024px) {
  :root { --container-padding: var(--space-2xl); }
  h1 { font-size: 4rem; }
}

@media (min-width: 1440px) {
  :root { --container-padding: var(--space-3xl); }
}


/* ---------------------------------------------------------------------------
   5. HEADER / NAV / FOOTER
   --------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--color-fog);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition-base);
}

.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.site-header__logo img { height: 40px; width: auto; }

.site-nav {
  display: none;
  gap: var(--space-lg);
}

.site-nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: var(--space-sm) 0;
  position: relative;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent-primary);
}

/* Shop dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-primary);
  border: 1px solid var(--color-fog);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-sm) 0;
  min-width: 220px;
  display: none;
  z-index: 1;
}
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu { display: block; }
.nav-dropdown__menu a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  text-transform: none;
  letter-spacing: 0;
  font-size: var(--text-base);
}
.nav-dropdown__menu a:hover { background: var(--color-fog); }

/* Mobile hamburger */
.nav-toggle {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: transform var(--transition-base);
}
.nav-toggle__bar::before { position: absolute; top: -7px; }
.nav-toggle__bar::after  { position: absolute; top:  7px; }

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--bg-primary);
  z-index: calc(var(--z-header) - 1);
  padding: var(--space-xl) var(--container-padding);
  transform: translateX(-100%);
  transition: transform var(--transition-base);
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav a {
  display: block;
  padding: var(--space-md) 0;
  font-size: var(--text-xl);
  font-family: var(--font-display);
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--color-fog);
}

/* Cart icon */
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  color: var(--text-primary);
  text-decoration: none;
}
.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--accent-primary);
  color: var(--text-inverse);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-badge[data-count="0"] { display: none; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; }
}

/* Footer */
.site-footer {
  flex-shrink: 0;
  background: var(--color-ink);
  color: var(--text-inverse);
  padding: var(--space-2xl) 0 var(--space-md) 0;
  margin-top: var(--space-3xl);
}

.site-footer a { color: var(--text-inverse); text-decoration: none; }
.site-footer a:hover { color: var(--color-gold); }

.site-footer__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__col h4 {
  font-family: var(--font-display);
  color: var(--color-gold);
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
}

.site-footer__col ul { list-style: none; padding: 0; margin: 0; }
.site-footer__col li { margin-bottom: var(--space-sm); }

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

@media (min-width: 768px) {
  .site-footer__cols { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .site-footer__cols { grid-template-columns: repeat(4, 1fr); gap: var(--space-2xl); }
  .site-footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}


/* ---------------------------------------------------------------------------
   6. BASE COMPONENTS
   --------------------------------------------------------------------------- */

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--space-lg);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast),
              border-color var(--transition-fast), transform var(--transition-fast);
  border: 1px solid transparent;
  user-select: none;
}

.btn:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 2px; }

.btn-primary {
  background: var(--accent-primary);
  color: var(--text-inverse);
}
.btn-primary:hover { background: var(--color-amethyst); color: var(--text-inverse); }

.btn-secondary {
  background: transparent;
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}
.btn-secondary:hover { background: var(--accent-primary); color: var(--text-inverse); }

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
}
.btn-ghost:hover { color: var(--accent-primary); }

.btn[disabled],
.btn-disabled {
  background: var(--color-fog);
  color: var(--text-muted);
  border-color: var(--color-fog);
  cursor: not-allowed;
  opacity: 0.7;
}
.btn[disabled]:hover { background: var(--color-fog); color: var(--text-muted); }

.btn-sm  { min-height: 36px; padding: 0 var(--space-md); font-size: var(--text-sm); }
.btn-lg  { min-height: 52px; padding: 0 var(--space-xl); font-size: var(--text-lg); }
.btn-block { display: flex; width: 100%; }

/* === Cards === */
.card {
  background: var(--bg-primary);
  border: 1px solid var(--color-fog);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.card__media {
  aspect-ratio: 4 / 5;
  background: var(--color-fog);
  overflow: hidden;
  position: relative;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__body { padding: var(--space-md); }
.card__title { font-family: var(--font-display); font-size: var(--text-xl); margin: 0 0 var(--space-xs) 0; }
.card__price { font-size: var(--text-base); color: var(--text-secondary); margin: 0; }

/* === Forms === */
.form-field { margin-bottom: var(--space-md); }
.form-label { display: block; font-size: var(--text-sm); font-weight: 500; margin-bottom: var(--space-xs); }
.form-help  { display: block; font-size: var(--text-xs); color: var(--text-muted); margin-top: var(--space-xs); }

.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-fog);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: var(--text-base);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

textarea { min-height: 120px; resize: vertical; }

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(74, 25, 66, 0.15);
}

.form-control[aria-invalid="true"] { border-color: #B23A3A; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  cursor: pointer;
  margin-bottom: var(--space-md);
}
.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--accent-primary);
}

/* === Images (utility) === */
.img-portrait {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  display: block;
}

/* === Badges === */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-secondary);
}

.badge-sold {
  background: var(--color-fog);
  color: var(--text-muted);
}

.badge-featured {
  background: var(--bg-primary);
  border: 1px solid var(--color-gold);
  color: var(--accent-primary);
}

/* Overlay placement on top of card media */
.card__media .badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: 1;
}

/* === Errors / empty states === */
.error-state,
.empty-state {
  background: var(--color-fog);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  font-size: var(--text-base);
}

.error-state h3,
.empty-state h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin: 0 0 var(--space-sm) 0;
}

.inline-error {
  color: #B23A3A;
  font-size: var(--text-sm);
  margin-top: var(--space-xs);
}

/* === Utility === */
.hidden { display: none !important; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ---------------------------------------------------------------------------
   7. SKELETON LOADING (shimmer)
   --------------------------------------------------------------------------- */

.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-fog) 25%,
    #e0e0e0 50%,
    var(--color-fog) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
  color: transparent;
  user-select: none;
}

.skeleton-card {
  border-radius: var(--radius-md);
  overflow: hidden;
}
.skeleton-card__media { aspect-ratio: 4 / 5; }
.skeleton-card__line  { height: 1em; margin: var(--space-xs) var(--space-md); }
.skeleton-card__line--short { width: 60%; }

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; }
}


/* ---------------------------------------------------------------------------
   8. LIGHTBOX
   --------------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}
.lightbox.is-open { display: flex; }

.lightbox img,
.lightbox video {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--color-cream);
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.18); }

.lightbox-close { top: var(--space-md); right: var(--space-md); }
.lightbox-prev  { left: var(--space-md);  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: var(--space-md); top: 50%; transform: translateY(-50%); }


/* ---------------------------------------------------------------------------
   9. EMAIL-CTA COMPONENTS
   --------------------------------------------------------------------------- */

/* Product-page interest CTA (lives in sticky card) */
.interest-cta {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px dashed var(--color-fog);
}
.interest-cta__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: var(--space-sm);
}
.interest-form { display: flex; flex-direction: column; gap: var(--space-sm); }

/* Cart exit-intent modal (centered overlay) */
.exit-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}
.exit-modal.is-open { display: flex; }
.exit-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.6);
}
.exit-modal__content {
  position: relative;
  max-width: 480px;
  width: 100%;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
}
.exit-modal__close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 36px; height: 36px;
  font-size: 1.5rem;
  color: var(--text-muted);
}

/* 3-min contemplation popup (bottom-right peel-up) */
.contemplation-popup {
  position: fixed;
  bottom: 0;
  right: 0;
  max-width: 360px;
  width: calc(100% - var(--space-md));
  margin: 0 var(--space-sm);
  transform: translateY(120%);
  transition: transform var(--transition-slow);
  z-index: var(--z-modal);
  background: var(--bg-primary);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-lg);
}
.contemplation-popup.is-visible { transform: translateY(0); }
.contemplation-popup__close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 32px; height: 32px;
  font-size: 1.25rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .contemplation-popup { margin: 0 var(--space-lg); }
}


/* ---------------------------------------------------------------------------
   10. COOKIE CONSENT BANNER (B1.5 — bottom-strip soft-prompt per
       v1_4_3_B_RESEARCH_COOKIE_CONSENT.md §6)

       LCP/CLS-safe: position:fixed reserves no document space.
       Slides up via .is-visible toggle after hero LCP completes.
       Symmetrical Accept/Decline buttons (CIPA-defense — no asymmetric weighting).
   --------------------------------------------------------------------------- */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-cookie);
  background: var(--bg-primary);
  border-top: 1px solid var(--color-fog);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
  padding: var(--space-md) var(--container-padding);
  transform: translateY(110%);
  transition: transform var(--transition-slow);
}
.cookie-banner.is-visible { transform: translateY(0); }

.cookie-banner__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: stretch;
}

.cookie-banner__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-snug);
  margin: 0;
}
.cookie-banner__text a { color: var(--accent-primary); }

.cookie-banner__actions {
  display: flex;
  gap: var(--space-sm);
}
.cookie-banner__actions .btn { flex: 1; }

@media (min-width: 768px) {
  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    gap: var(--space-lg);
  }
  .cookie-banner__text { flex: 1; }
  .cookie-banner__actions { flex: 0 0 auto; }
  .cookie-banner__actions .btn { flex: 0 0 auto; }
}


/* ---------------------------------------------------------------------------
   11. PAGE-SPECIFIC HELPERS
   --------------------------------------------------------------------------- */

/* Breadcrumb (shared, used on product page) */
.breadcrumb {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}
.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-primary); }
.breadcrumb-separator { margin: 0 var(--space-xs); color: var(--text-muted); }

/* Product-page sticky card */
.product-sticky-card {
  background: var(--bg-primary);
  border: 1px solid var(--color-fog);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

@media (min-width: 768px) {
  .product-sticky-card {
    position: sticky;
    top: calc(var(--header-height) + var(--space-lg));
  }
}

.product-sticky-card .price {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--accent-primary);
  margin: var(--space-sm) 0 var(--space-lg) 0;
}

.availability-note {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: var(--space-md) 0 0 0;
  font-style: italic;
}

/* Product feature list */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-md);
}
.feature-list li {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}
.feature-list svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Story card (poetic narrative) */
.story-card {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: var(--leading-loose);
  color: var(--text-primary);
  font-style: italic;
}

/* Hero block (homepage + page heroes) */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-inverse);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(74, 25, 66, 0.35) 0%, rgba(26, 26, 26, 0.55) 100%);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: var(--space-xl) var(--container-padding);
}
.hero h1 {
  color: var(--text-inverse);
  font-size: var(--text-5xl);
  margin-bottom: var(--space-md);
}
.hero p { color: var(--text-inverse); font-size: var(--text-lg); margin-bottom: var(--space-lg); }

@media (min-width: 1024px) {
  .hero h1 { font-size: 4.5rem; }
}

/* Toast (post-form-submit confirmation) */
.toast {
  position: fixed;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--color-ink);
  color: var(--text-inverse);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  z-index: var(--z-modal);
  transition: transform var(--transition-base);
  box-shadow: var(--shadow-md);
}
.toast.is-visible { transform: translateX(-50%) translateY(0); }
