/* ============================================================
   AVETreasures.com — Premium Antiquities Storefront
   Complete Production CSS — Old-World Treasure Map Design
   ============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Colors — Brand */
  --color-primary: #1A1A2E;
  --color-primary-light: #2A2A4E;
  --color-primary-dark: #0F0F1C;
  --color-accent: #D4A843;
  --color-accent-light: #E2C06A;
  --color-accent-dark: #B8902E;
  --color-cta: #8B2252;
  --color-cta-hover: #6E1A41;
  --color-cta-active: #5A1536;
  --color-surface: #E8DCC8;
  --color-surface-light: #FFF8F0;
  --color-surface-dark: #D4C5A9;

  /* Colors — Text */
  --color-text: #2C1810;
  --color-text-secondary: #5C4A3A;
  --color-text-inverse: #FFFFFF;
  --color-text-muted: #7A6B5D;

  /* Colors — Status */
  --color-mint: #2D5A27;
  --color-ebay: #0064D2;
  --color-error: #DC2626;
  --color-success: #16A34A;
  --color-warning: #F59E0B;

  /* Typography */
  --font-heading: 'Cinzel', serif;
  --font-body: 'EB Garamond', serif;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Font Sizes */
  /* May 13 2026 — typography stepped down ~10-15% for a more elegant,
     editorial feel. Original sizes (56/36/24/20/18/16/17/14/12) preserved
     in comments for reference. */
  --fs-h1: 48px;    /* was 56px */
  --fs-h2: 30px;    /* was 36px */
  --fs-h3: 22px;    /* was 24px */
  --fs-h4: 18px;    /* was 20px */
  --fs-h5: 16px;    /* was 18px */
  --fs-h6: 15px;    /* was 16px */
  --fs-body: 16px;  /* was 17px */
  --fs-small: 13px; /* was 14px */
  --fs-xs: 11px;    /* was 12px */

  /* Line Heights — tightened heading rhythm for classic editorial feel */
  --lh-heading: 1.15;  /* was 1.2 */
  --lh-body: 1.7;
  --ls-heading: 0.01em; /* subtle letter-spacing on display headings */

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Layout */
  --container-max: 1280px;
  --container-padding: 24px;

  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(44, 24, 16, 0.08);
  --shadow-md: 0 4px 12px rgba(44, 24, 16, 0.1);
  --shadow-lg: 0 8px 24px rgba(44, 24, 16, 0.12);
  --shadow-xl: 0 16px 48px rgba(44, 24, 16, 0.15);

  /* Transitions */
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;

  /* Z-index */
  --z-header: 100;
  --z-mobile-nav: 200;
  --z-cart-drawer: 300;
  --z-toast: 400;
  --z-search: 150;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: var(--color-text);
  background-color: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
select,
textarea {
  font-family: var(--font-body);
  font-size: var(--fs-body);
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  color: var(--color-text);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }
h6 { font-size: var(--fs-h6); }

/* ============================================================
   3. ACCESSIBILITY
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  border-radius: var(--radius-md);
  z-index: 9999;
  transition: top var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
  top: var(--space-md);
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   4. LAYOUT
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--space-3xl) 0;
}

.section--surface {
  background: var(--color-surface-dark);
}

.section--navy {
  background: var(--color-primary);
}

.section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  gap: var(--space-md);
}

.section__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  position: relative;
}

.section__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin-top: var(--space-sm);
  border-radius: var(--radius-full);
}

.section__title--light {
  color: var(--color-text-inverse);
}

.section__title--light::after {
  background: var(--color-accent);
}

.section__link {
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  color: var(--color-cta);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: color var(--duration-fast) var(--ease-out);
}

.section__link:hover {
  color: var(--color-cta-hover);
}

/* ============================================================
   5. HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--color-primary);
  border-bottom: 1px solid rgba(212, 168, 67, 0.2);
  backdrop-filter: blur(8px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.header__logo-img {
  height: 48px;
  width: auto;
  /* May 13 2026 — removed brightness(0) invert(1) filter. The current
     logo PNG (1024x1024) is RGB with no alpha, so the filter was
     converting the whole square to a solid white block. Display as-is
     to match how PUA renders the same file. */
  transition: opacity var(--transition-base);
  object-fit: contain;
}

.header__logo-img:hover {
  opacity: 0.85;
}

/* Fallback text logo (when no image) */
.logo-text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: var(--fw-bold);
  color: var(--color-accent);
  letter-spacing: 0.08em;
  line-height: 1;
}

.logo-sub {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.header__nav {
  display: none;
}

.nav__list {
  display: flex;
  gap: var(--space-xl);
}

.nav__link {
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-sm) 0;
  position: relative;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--duration-normal) var(--ease-out);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-accent);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header__search-btn,
.header__cart-btn,
.header__menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  transition: color var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out);
}

.header__search-btn:hover,
.header__cart-btn:hover,
.header__menu-btn:hover {
  color: var(--color-accent);
  background: rgba(255, 255, 255, 0.08);
}

.header__cart-btn {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-cta);
  color: var(--color-text-inverse);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: var(--fw-bold);
  border-radius: var(--radius-full);
  padding: 0 4px;
  line-height: 1;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: var(--radius-full);
  transition: transform var(--duration-fast) var(--ease-out);
}

/* ============================================================
   6. SEARCH BAR
   ============================================================ */
.search-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-search);
  background: var(--color-primary);
  padding: var(--space-md) var(--container-padding);
  transform: translateY(-100%);
  transition: transform var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-lg);
}

.search-bar.is-open {
  transform: translateY(0);
}

.search-bar__form {
  display: flex;
  align-items: center;
  max-width: 640px;
  margin: 0 auto;
  gap: var(--space-sm);
}

.search-bar__input {
  flex: 1;
  height: 48px;
  padding: 0 var(--space-md);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(212, 168, 67, 0.3);
  border-radius: var(--radius-md);
  color: var(--color-text-inverse);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  transition: border-color var(--duration-fast) var(--ease-out);
}

.search-bar__input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-bar__input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.search-bar__submit,
.search-bar__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  transition: color var(--duration-fast) var(--ease-out);
}

.search-bar__submit:hover,
.search-bar__close:hover {
  color: var(--color-accent);
}

/* ============================================================
   7. MOBILE NAV
   ============================================================ */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: var(--z-mobile-nav);
  pointer-events: none;
  visibility: hidden;
}

.mobile-nav.is-open {
  pointer-events: auto;
  visibility: visible;
}

.mobile-nav__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 46, 0.6);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.mobile-nav.is-open .mobile-nav__overlay {
  opacity: 1;
}

.mobile-nav__drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--color-surface-light);
  padding: var(--space-2xl) var(--space-lg);
  transform: translateX(100%);
  transition: transform var(--duration-normal) var(--ease-out);
  overflow-y: auto;
}

.mobile-nav.is-open .mobile-nav__drawer {
  transform: translateX(0);
}

.mobile-nav__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  border-radius: var(--radius-md);
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
}

.mobile-nav__list a {
  display: block;
  padding: var(--space-md) var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--fs-h5);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-md);
  transition: background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}

.mobile-nav__list a:hover {
  background: var(--color-surface-dark);
  color: var(--color-cta);
}

/* ============================================================
   8. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: var(--color-primary);
}

/* Carousel slides container */
.hero__slides {
  position: relative;
  width: 100%;
  min-height: 520px;
}

.hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 0;
}

.hero__slide--active {
  opacity: 1;
  z-index: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 46, 0.85) 0%,
    rgba(26, 26, 46, 0.55) 50%,
    rgba(26, 26, 46, 0.75) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: var(--space-3xl) var(--container-padding);
  margin: 0 auto;
  text-align: center;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  color: var(--color-text-inverse);
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: var(--fw-regular);
  color: rgba(255, 255, 255, 0.85);
  line-height: var(--lh-body);
  margin-bottom: var(--space-xl);
}

/* Hero Carousel Dots */
.hero__dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  z-index: 3;
}

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.hero__dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.hero__dot--active {
  background: var(--color-accent);
  transform: scale(1.3);
}

/* ============================================================
   9. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-md);
  padding: 12px 28px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.btn--primary {
  background: var(--color-cta);
  color: var(--color-text-inverse);
  border-color: var(--color-cta);
}

.btn--primary:hover {
  background: var(--color-cta-hover);
  border-color: var(--color-cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 34, 82, 0.3);
}

.btn--primary:active {
  background: var(--color-cta-active);
  border-color: var(--color-cta-active);
  transform: translateY(0);
}

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

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

.btn--ghost {
  background: transparent;
  color: var(--color-cta);
  border-color: transparent;
  padding: 8px 16px;
}

.btn--ghost:hover {
  background: rgba(139, 34, 82, 0.08);
}

.btn--ebay {
  background: var(--color-ebay);
  color: var(--color-text-inverse);
  border-color: var(--color-ebay);
}

.btn--ebay:hover {
  background: #004AAD;
  border-color: #004AAD;
}

.btn--lg {
  padding: 16px 36px;
  font-size: var(--fs-body);
}

.btn--sm {
  padding: 8px 16px;
  font-size: var(--fs-xs);
}

.btn--full {
  width: 100%;
}

/* ============================================================
   10. CATEGORIES
   ============================================================ */
.categories {
  padding: var(--space-3xl) 0;
}

.categories__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
}

.category-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(44, 24, 16, 0.2) 0%,
    rgba(44, 24, 16, 0.65) 100%
  );
  z-index: 1;
  transition: background var(--duration-normal) var(--ease-out);
}

.category-tile:hover .category-tile__overlay {
  background: linear-gradient(
    180deg,
    rgba(139, 34, 82, 0.15) 0%,
    rgba(44, 24, 16, 0.7) 100%
  );
}

.category-tile__icon {
  position: relative;
  z-index: 2;
  font-size: 32px;
  margin-bottom: var(--space-sm);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.category-tile__title {
  position: relative;
  z-index: 2;
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  color: var(--color-text-inverse);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.category-tile--ebay {
  background: var(--color-ebay);
}

/* ============================================================
   11. PRODUCT GRID
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.product-grid--4 {
  grid-template-columns: repeat(2, 1fr);
}

.product-card {
  background: var(--color-surface-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Image wrapper — 1:1 square box. Works for both:
   - static HTML: <div class="product-card__image"><img></div>
   - dynamic JS:  <div class="product-card__image-wrap"><img class="product-card__image"></div>
   Rule: product images NEVER stretched. Always 1:1 frame, image fitted with contain. */
.product-card__image-wrap,
div.product-card__image {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-surface-dark);
}

/* Image — fit within the 1:1 frame. object-fit: contain = no stretch, no crop. */
img.product-card__image,
.product-card__image-wrap > img,
div.product-card__image > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  aspect-ratio: auto;
  transition: transform var(--duration-slow) var(--ease-out);
}

/* Hover — gentle zoom hints at full image without breaking the grid. */
.product-card:hover img.product-card__image,
.product-card:hover .product-card__image-wrap > img,
.product-card:hover div.product-card__image > img {
  transform: scale(1.08);
}

.product-card__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h6);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  margin-bottom: var(--space-xs);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__brand {
  display: block;
  font-size: 12px;
  color: var(--color-text-muted, #888);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-card__price {
  font-family: var(--font-heading);
  font-size: var(--fs-h5);
  font-weight: var(--fw-bold);
  color: var(--color-cta);
  margin-top: auto;
  padding-top: var(--space-sm);
}

.product-card__compare-price {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  text-decoration: line-through;
  font-weight: var(--fw-regular);
  margin-left: var(--space-sm);
}

.product-card__badges {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

/* Condition Badge — elegant ribbon-style label */
.condition-badge {
  position: absolute;
  top: 12px;
  left: 0;
  padding: 4px 14px 4px 10px;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-surface-light);
  background: var(--color-cta);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 2;
  line-height: 1.4;
}

.condition-badge--new {
  background: #22c55e;
  color: #fff;
}

.condition-badge--good,
.condition-badge--very-good {
  background: var(--color-cta);
  color: var(--color-surface-light);
}

.condition-badge--excellent,
.condition-badge--like-new {
  background: #1a1a2e;
  color: var(--color-cta);
  border: 1px solid var(--color-cta);
}

.condition-badge--fair {
  background: #92400e;
  color: #fef3c7;
}

/* Image wrap needs relative positioning for badge */
.product-card__image-wrap {
  position: relative;
  overflow: hidden;
}

/* Stock / Scarcity Indicator */
.product-card__stock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: var(--fw-semibold);
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
  margin-top: var(--space-xs);
}

.product-card__stock i {
  font-size: 0.6rem;
}

.product-card__stock--low {
  color: #B45309;
  font-weight: var(--fw-bold);
  animation: subtlePulse 2.5s ease-in-out infinite;
}

@keyframes subtlePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

/* Product Card Footer — price left, cart button right */
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md) var(--space-md);
  gap: var(--space-sm);
}

.product-card__footer .product-card__price {
  margin: 0;
  padding: 0;
}

/* Cart Button — refined, matches brand */
.product-card__cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-cta);
  background: transparent;
  border: 2px solid var(--color-cta);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.product-card__cart-btn:hover {
  background: var(--color-cta);
  color: var(--color-surface-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-card__cart-btn i {
  font-size: 0.7rem;
}

/* ============================================================
   12. SPOTLIGHT
   ============================================================ */
.spotlight {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  padding: var(--space-3xl) 0;
}

.spotlight__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-surface-dark);
}

.spotlight__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spotlight__label {
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-sm);
}

.spotlight__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.spotlight__description {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-text-secondary);
  line-height: var(--lh-body);
  margin-bottom: var(--space-lg);
}

.spotlight__price {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  color: var(--color-cta);
  margin-bottom: var(--space-lg);
}

/* ============================================================
   13. TRUST BADGES
   ============================================================ */
.trust-badges {
  padding: var(--space-2xl) 0;
  background: var(--color-surface-dark);
}

.trust-badges__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  text-align: center;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
}

.trust-badge__icon {
  font-size: 28px;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.trust-badge__label {
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trust-badge__sub {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
  line-height: 1.4;
}

/* ============================================================
   14. NEWSLETTER
   ============================================================ */
.newsletter {
  padding: var(--space-3xl) 0;
  background: var(--color-primary);
}

.newsletter__box {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
}

.newsletter__icon {
  font-size: 36px;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.newsletter__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  color: var(--color-text-inverse);
  margin-bottom: var(--space-sm);
}

.newsletter__text {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-lg);
  line-height: var(--lh-body);
}

.newsletter__form {
  display: flex;
  gap: var(--space-sm);
  max-width: 440px;
  margin: 0 auto;
}

.newsletter__input {
  flex: 1;
  height: 48px;
  padding: 0 var(--space-md);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(212, 168, 67, 0.3);
  border-radius: var(--radius-md);
  color: var(--color-text-inverse);
  font-family: var(--font-body);
  font-size: var(--fs-body);
}

.newsletter__input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter__input:focus {
  outline: none;
  border-color: var(--color-accent);
}

/* ============================================================
   15. FOOTER
   ============================================================ */
.footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-3xl) 0 var(--space-lg);
  border-top: 1px solid rgba(212, 168, 67, 0.15);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__links a {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__links a:hover {
  color: var(--color-accent);
}

.footer__social {
  display: flex;
  gap: var(--space-md);
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  transition: all var(--duration-fast) var(--ease-out);
}

.footer__social a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: rgba(212, 168, 67, 0.1);
}

.footer__text {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer__bottom p {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.4);
}

.footer__payment {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.footer__payment img {
  height: 24px;
  opacity: 0.5;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.footer__payment img:hover {
  opacity: 0.8;
}

/* ============================================================
   16. CART DRAWER
   ============================================================ */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-cart-drawer);
  pointer-events: none;
  visibility: hidden;
}

.cart-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.cart-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 46, 0.6);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.cart-drawer.is-open .cart-drawer__overlay {
  opacity: 1;
}

.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 90vw);
  height: 100%;
  background: var(--color-surface-light);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--duration-normal) var(--ease-out);
  box-shadow: -8px 0 24px rgba(44, 24, 16, 0.15);
}

.cart-drawer.is-open .cart-drawer__panel {
  transform: translateX(0);
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 1px solid rgba(44, 24, 16, 0.1);
}

.cart-drawer__header h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
}

.cart-drawer__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text);
  transition: background var(--duration-fast) var(--ease-out);
}

.cart-drawer__close:hover {
  background: var(--color-surface-dark);
}

.cart-drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg);
}

.cart-drawer__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: var(--space-md);
  text-align: center;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: var(--fs-body);
}

.cart-drawer__footer {
  padding: var(--space-lg);
  border-top: 1px solid rgba(44, 24, 16, 0.1);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cart-drawer__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
}

.cart-drawer__total-price {
  font-size: var(--fs-h4);
  color: var(--color-cta);
}

.cart-drawer__shipping {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
  text-align: center;
}

.cart-drawer__continue {
  text-align: center;
}

.cart-drawer__continue a {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--color-cta);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Cart Item Card ─────────────────────────────────────────────
   Added 2026-05-14, refit for LIGHT theme 2026-05-15.
   Cart drawer panel uses --color-surface-light (#FFF8F0), so all
   text must be dark on cream. Gold (#D4A843) is the price accent;
   wine (#8B2252) is the destructive/remove hover state. ─────── */
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(44, 24, 16, 0.10);
}

.cart-item__image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--color-surface);
}

.cart-item__details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.cart-item__name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  color: var(--color-text);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cart-item__variant {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin: 0;
  font-style: italic;
  line-height: 1.2;
}

.cart-item__price {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin: 0;
}

.cart-item__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  gap: 0.5rem;
}

.cart-item__quantity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--color-surface-dark);
  background: var(--color-surface);
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.qty-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent-dark);
  color: var(--color-text);
}

.qty-btn:disabled,
.qty-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.qty-value {
  font-size: 14px;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
  color: var(--color-text);
}

.cart-item__remove {
  background: transparent;
  border: 1px solid rgba(44, 24, 16, 0.18);
  color: var(--color-text-muted);
  padding: 4px 10px;
  font-family: var(--font-body);
  font-size: 11px;
  cursor: pointer;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.cart-item__remove:hover {
  color: #fff;
  background: var(--color-cta);
  border-color: var(--color-cta);
}

.cart-item__remove-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

/* ── Hero Seller Trust Pill ─────────────────────────────────────
   Added 2026-05-15: prominent "moment of pride" badge on the hero
   carousel — "★★★★★ 672 sales · 100% positive · See reviews on eBay".
   Sits at the bottom-center of the hero section, above the carousel
   dots. Gold gradient pill, dark-on-cream type for max contrast vs
   the dark hero imagery. Single source of truth: the same
   [data-seller-trust] selector + initSellerTrust() in pages.js
   populates it (lives anywhere in the DOM). ─────────────────── */
.hero-trust {
  position: absolute;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 12px 22px;
  background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-accent) 55%, var(--color-accent-dark) 100%);
  border: 1px solid rgba(255, 248, 240, 0.55);
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(212, 168, 67, 0.18);
  font-family: var(--font-body);
  color: var(--color-primary-dark);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-trust.is-loaded {
  opacity: 1;
  animation: hero-trust-pulse-in 0.7s var(--ease-out, ease-out);
}

@keyframes hero-trust-pulse-in {
  0%   { opacity: 0; transform: translate(-50%, 8px) scale(0.96); }
  60%  { opacity: 1; transform: translate(-50%, 0) scale(1.02); }
  100% { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

.hero-trust__stars {
  display: inline-flex;
  gap: 2px;
  color: var(--color-cta);  /* wine-red stars on gold — strong contrast */
  font-size: 14px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
}

.hero-trust__metric {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary-dark);
  letter-spacing: 0.02em;
}

.hero-trust__metric strong {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 800;
  color: var(--color-cta);
  letter-spacing: 0;
}

.hero-trust__metric-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
}

.hero-trust__divider {
  color: rgba(15, 15, 28, 0.30);
  font-weight: 700;
  font-size: 14px;
}

.hero-trust__link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(15, 15, 28, 0.45);
  text-decoration-thickness: 1.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-left: 8px;
  border-left: 1px solid rgba(15, 15, 28, 0.18);
  transition: color 0.15s ease;
}

.hero-trust__link:hover {
  color: var(--color-cta);
  text-decoration-color: var(--color-cta);
}

.hero-trust__link i {
  font-size: 9px;
}

/* Mobile: stack the parts so the pill stays readable */
@media (max-width: 720px) {
  .hero-trust {
    bottom: 48px;
    padding: 10px 16px;
    gap: 8px;
    max-width: calc(100vw - 32px);
    border-radius: 14px;  /* slight chamfer when stacked */
  }
  .hero-trust__metric strong { font-size: 17px; }
  .hero-trust__link {
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(15, 15, 28, 0.18);
    padding: 6px 0 0;
    justify-content: center;
  }
  .hero-trust__divider { display: none; }
}

/* ── Seller Trust Badge (eBay feedback) ─────────────────────────
   Added 2026-05-14, refit for LIGHT theme 2026-05-15.
   Sits on cream/beige product page background. Card is white with
   a gold accent border + warm gold gradient sheen. ──────────── */
.seller-trust {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 16px;
  margin: 12px 0;
  background: linear-gradient(135deg, var(--color-surface-light), #FCEFD3);
  border: 1px solid var(--color-accent);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(212, 168, 67, 0.15);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.seller-trust.is-loaded {
  opacity: 1;
  transform: none;
}

.seller-trust__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
}

.seller-trust__star {
  color: var(--color-accent-dark);
  font-size: 16px;
  filter: drop-shadow(0 1px 2px rgba(184, 144, 46, 0.3));
}

.seller-trust__score strong,
.seller-trust__positive strong {
  font-family: var(--font-heading);
  color: var(--color-cta);
  font-size: 16px;
  font-weight: 700;
}

.seller-trust__divider {
  color: var(--color-text-muted);
  font-weight: 700;
}

.seller-trust__link {
  font-size: 12px;
  color: var(--color-text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}

.seller-trust__link:hover {
  color: var(--color-cta);
}

.seller-trust__link i {
  font-size: 10px;
}

/* ── Filter sidebar search input (2026-05-16) ─────────────────
   Persistent search at the top of the filter sidebar so a customer
   who typed "ship" then clicks Baby sees an empty result + the
   visible "ship" in this input — telling them why. ──────────── */
.filter-group--search {
  border-bottom: 1px solid rgba(212, 168, 67, 0.20);
  padding-bottom: 14px;
  margin-bottom: 14px;
}
.filter-group__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-cta);
  margin-bottom: 10px;
}
.filter-group__label i {
  font-size: 12px;
  color: var(--color-accent-dark);
}
.filter-search-wrap {
  position: relative;
}
.filter-search-input {
  width: 100%;
  padding: 9px 32px 9px 12px;
  border: 1px solid var(--color-accent);
  border-radius: 6px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  box-shadow: inset 0 1px 2px rgba(44, 24, 16, 0.06);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.filter-search-input::placeholder {
  color: var(--color-text-muted);
  font-style: italic;
}
.filter-search-input:focus {
  outline: none;
  border-color: var(--color-cta);
  box-shadow: 0 0 0 3px rgba(139, 34, 82, 0.18);
}
/* Hide the browser-default × on type=search */
.filter-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}
.filter-search-clear {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  width: 22px; height: 22px;
  display: none;
  align-items: center; justify-content: center;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: 50%;
  font-size: 11px;
  transition: background 0.15s, color 0.15s;
}
.filter-search-clear:hover {
  background: var(--color-cta);
  color: #fff;
}

/* ── Variant Picker (eBay multi-variation listings) ─────────────
   Added 2026-05-14, refit for LIGHT theme 2026-05-15.
   Card sits on the cream PDP background. Uses a vintage-bookplate
   aesthetic: cream interior, gold border, wine-colored prompt label,
   accessible focus states. Native <select> for screen reader + mobile
   parity, styled to look premium. ──────────────────────────── */
.pdp__variant-picker {
  margin: 14px 0;
  padding: 14px 16px;
  background: var(--color-surface-light);
  border: 1.5px solid var(--color-accent);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(44, 24, 16, 0.06);
  position: relative;
}

/* Decorative corner accents to give the picker a "bookplate" feel */
.pdp__variant-picker::before,
.pdp__variant-picker::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--color-accent-dark);
}
.pdp__variant-picker::before {
  top: -1px; left: -1px;
  border-right: none;
  border-bottom: none;
  border-top-left-radius: 8px;
}
.pdp__variant-picker::after {
  bottom: -1px; right: -1px;
  border-left: none;
  border-top: none;
  border-bottom-right-radius: 8px;
}

.variant-picker__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--color-cta);
  margin-bottom: 8px;
}

.variant-picker__select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  background-color: #fff;
  border: 1px solid var(--color-accent-dark);
  border-radius: 6px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'><path fill='%238B2252' d='M7 10L0 0h14z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.variant-picker__select:hover {
  border-color: var(--color-cta);
}

.variant-picker__select:focus {
  border-color: var(--color-cta);
  outline: none;
  box-shadow: 0 0 0 3px rgba(139, 34, 82, 0.20);
}

.variant-picker__select option {
  background: #fff;
  color: var(--color-text);
  padding: 8px;
}

.variant-picker__select option:disabled {
  color: var(--color-text-muted);
  font-style: italic;
}

.variant-picker__stock {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-cta);
}

/* Disabled state for Buy Now / Add to Cart when variant required but not selected */
.btn.is-disabled,
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(35%);
}

/* ============================================================
   17. BADGES
   ============================================================ */
.badge-condition {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  background: var(--color-surface-dark);
  color: var(--color-text-secondary);
  line-height: 1;
}

.badge-ebay {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  background: rgba(0, 100, 210, 0.1);
  color: var(--color-ebay);
  line-height: 1;
}

.badge-new {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  background: rgba(139, 34, 82, 0.1);
  color: var(--color-cta);
  line-height: 1;
}

/* ============================================================
   18. BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

.breadcrumbs a {
  color: var(--color-text-secondary);
  transition: color var(--duration-fast) var(--ease-out);
}

.breadcrumbs a:hover {
  color: var(--color-cta);
}

.breadcrumbs__sep {
  color: var(--color-text-muted);
  font-size: var(--fs-xs);
}

/* ============================================================
   19. SHOP PAGE
   ============================================================ */
.shop-header {
  padding: var(--space-2xl) 0 var(--space-lg);
}

.shop-header__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

/* Inline breadcrumbs inside .shop-header — sit between title and count. */
.breadcrumbs--inline {
  padding: 0;
  margin: var(--space-xs) 0 var(--space-sm);
  font-size: var(--fs-small);
}

.shop-header__count {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-text-secondary);
}

.shop-layout {
  display: flex;
  gap: var(--space-xl);
  padding-bottom: var(--space-3xl);
}

.shop-main {
  flex: 1;
  min-width: 0;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background: var(--color-surface-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.shop-toolbar__filter {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  padding: 8px 16px;
  border: 1px solid rgba(44, 24, 16, 0.15);
  border-radius: var(--radius-md);
  background: transparent;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.shop-toolbar__filter:hover {
  border-color: var(--color-cta);
  color: var(--color-cta);
}

.shop-toolbar__sort {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.sort-select {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--color-text);
  padding: 8px 32px 8px 12px;
  border: 1px solid rgba(44, 24, 16, 0.15);
  border-radius: var(--radius-md);
  background: var(--color-surface-light);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232C1810' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.sort-select:focus {
  outline: none;
  border-color: var(--color-accent);
}

.shop-empty {
  text-align: center;
  padding: var(--space-4xl) var(--space-lg);
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: var(--fs-body);
}

/* ============================================================
   20. FILTERS SIDEBAR
   ============================================================ */
.filters {
  width: 260px;
  flex-shrink: 0;
  display: none;
}

.filters__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.filters__header h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-h5);
  font-weight: var(--fw-bold);
}

.filters__clear {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--color-cta);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out);
}

.filters__clear:hover {
  color: var(--color-cta-hover);
}

.filters__close-mobile {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text);
}

.filter-group {
  border-bottom: 1px solid rgba(44, 24, 16, 0.1);
  padding: var(--space-md) 0;
}

.filter-group__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  padding: var(--space-sm) 0;
  cursor: pointer;
  background: none;
  border: none;
}

.filter-group__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-top: var(--space-sm);
}

/* Category cards rendered by JS on the homepage — bookplate-icon design
   (May 13 2026). Replaces the placeholder gradient tile pattern in the
   static HTML. The icons themselves carry the visual weight; the card
   just needs a light frame + hover affordance. */
.categories__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.categories__grid .category-card {
  background: #fdfaf3;
  border: 1px solid rgba(212, 168, 67, 0.25);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.categories__grid .category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 168, 67, 0.7);
  box-shadow: 0 8px 24px rgba(122, 31, 36, 0.10);
}
.categories__grid .category-card__icon {
  width: 128px;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;  /* fallback when an emoji is still displayed */
}
.categories__grid .category-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}
/* Note (2026-05-15): removed the FA-glyph fallback styling — the legacy
   categories API was returning FA names which we briefly rendered as glyphs.
   That replaced the designer-crafted static homepage tiles. We now skip the
   overwrite when the API has no bookplate art (see pages.js initHome), so
   the static <i class="fas fa-...">.category-tile__icon tiles remain. */
.categories__grid .category-card__name {
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  color: #7a1f24;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 4px 0 0;
  line-height: 1.25;
}
.categories__grid .category-card__count {
  font-size: var(--fs-xs);
  color: #6b5d4a;
  letter-spacing: 0.04em;
}

/* Gaia chat widget — sit ABOVE any cookie/consent banner.
   May 13 2026: bumped from bottom:24px to bottom:130px so the dog mascot
   clears a typical 90-110px cookie banner with breathing room. When no banner
   is present, this leaves a small gap at bottom-right which is acceptable
   (and matches how many e-commerce sites place chat widgets). */
#gaia-widget-container, #gaia-bubble {
  bottom: 130px !important;
}
/* Smaller offset on mobile where vertical space is precious */
@media (max-width: 768px) {
  #gaia-widget-container, #gaia-bubble {
    bottom: 110px !important;
    right: 12px !important;
  }
}
/* When the cookie banner is dismissed and the user scrolls, the widget body
   shouldn't grow too tall. The Gaia chat panel itself uses its own bottom
   offset internally so it stays attached to the bubble.

   Consent banners we know about get a slightly higher z-index than the
   Gaia widget container (which uses ~2147483647 internally — these are
   purely additive in case the cookie banner uses a lower z-index). */
[id*="cookie-banner"], [class*="cookie-banner"],
[class*="consent-banner"], [id*="consent-banner"],
.cc-window, .cookie-consent, #cookieConsent {
  z-index: 2147483647 !important;
}

/* May 13 2026 — collapse/expand state for filter groups */
.filter-group.is-collapsed .filter-group__content {
  display: none;
}
/* Convention: expanded = chevron UP (^), collapsed = chevron DOWN (⌄).
   The icon is fa-chevron-down (natural orientation: down), so we rotate
   180° when expanded and back to 0° when collapsed. */
.filter-group__toggle .fa-chevron-down {
  transition: transform 0.18s ease-out;
  transform: rotate(180deg);
}
.filter-group.is-collapsed .filter-group__toggle .fa-chevron-down {
  transform: rotate(0deg);
}

.filter-check {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
  cursor: pointer;
}

.filter-check input[type="checkbox"],
.filter-check input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-cta);
  cursor: pointer;
}

.filter-price {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.filter-price__input {
  width: 80px;
  height: 36px;
  padding: 0 var(--space-sm);
  border: 1px solid rgba(44, 24, 16, 0.15);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--color-text);
  background: var(--color-surface-light);
}

.filter-price__input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.filter-price__sep {
  color: var(--color-text-muted);
  font-size: var(--fs-small);
}

/* ============================================================
   21. PRODUCT DETAIL PAGE (PDP)
   ============================================================ */
.pdp {
  padding: var(--space-lg) 0 var(--space-3xl);
}

.pdp__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.pdp__gallery {
  position: relative;
}

.pdp__main-image {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-dark);
  cursor: zoom-in;
  position: relative;
}

.pdp__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp__zoom-lens {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-md);
  background: rgba(212, 168, 67, 0.1);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.pdp__main-image:hover .pdp__zoom-lens {
  opacity: 1;
}

.pdp__thumbnails {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  overflow-x: auto;
}

.pdp__thumbnails img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: all var(--duration-fast) var(--ease-out);
}

.pdp__thumbnails img:hover,
.pdp__thumbnails img.is-active {
  border-color: var(--color-accent);
  opacity: 1;
}

.pdp__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.pdp__badges {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.pdp__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  line-height: 1.2;
}

.pdp__price {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  color: var(--color-cta);
}

.pdp__price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
}

.pdp__compare-price {
  font-family: var(--font-body);
  font-size: var(--fs-h4);
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.pdp__description {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-text-secondary);
  line-height: var(--lh-body);
}

.pdp__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.pdp__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-top: 1px solid rgba(44, 24, 16, 0.1);
  border-bottom: 1px solid rgba(44, 24, 16, 0.1);
}

.pdp__trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
}

.pdp__trust-item svg,
.pdp__trust-item i {
  color: var(--color-accent);
}

.pdp__specs {
  padding: var(--space-lg) 0;
}

.pdp__specs-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-md);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid rgba(44, 24, 16, 0.08);
}

.specs-table td {
  padding: var(--space-sm) var(--space-md) var(--space-sm) 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  vertical-align: top;
}

.specs-table td:first-child {
  font-weight: var(--fw-medium);
  color: var(--color-text);
  white-space: nowrap;
  width: 40%;
}

.specs-table td:last-child {
  color: var(--color-text-secondary);
}

.pdp__share {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) 0;
}

.pdp__share span {
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
}

.pdp__share a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(44, 24, 16, 0.15);
  color: var(--color-text-secondary);
  transition: all var(--duration-fast) var(--ease-out);
}

.pdp__share a:hover {
  border-color: var(--color-cta);
  color: var(--color-cta);
  background: rgba(139, 34, 82, 0.05);
}

/* ============================================================
   22. PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-xl) 0;
}

.pagination__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  border: 1px solid rgba(44, 24, 16, 0.15);
  border-radius: var(--radius-md);
  background: var(--color-surface-light);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.pagination__btn:hover {
  border-color: var(--color-cta);
  color: var(--color-cta);
}

.pagination__btn--active {
  background: var(--color-cta);
  color: var(--color-text-inverse);
  border-color: var(--color-cta);
}

.pagination__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================================================
   23. SKELETON LOADING
   ============================================================ */
.skeleton {
  pointer-events: none;
}

.skeleton__image {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    110deg,
    var(--color-surface-dark) 30%,
    var(--color-surface) 50%,
    var(--color-surface-dark) 70%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton__text {
  height: 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(
    110deg,
    var(--color-surface-dark) 30%,
    var(--color-surface) 50%,
    var(--color-surface-dark) 70%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  margin-top: var(--space-sm);
}

.skeleton__text--short {
  width: 60%;
}

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

.product-card .skeleton {
  display: flex;
  flex-direction: column;
}

.product-card .skeleton .skeleton__image {
  width: 100%;
}

.product-card .skeleton .skeleton__text {
  margin: var(--space-sm) var(--space-md);
}

/* ============================================================
   24. TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-surface-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--color-text);
  pointer-events: auto;
  animation: toast-in var(--duration-normal) var(--ease-out);
  border-left: 4px solid transparent;
}

.toast--success {
  border-left-color: var(--color-success);
}

.toast--error {
  border-left-color: var(--color-error);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============================================================
   25. SCROLL ANIMATIONS
   ============================================================ */
/* Elements visible by default — only animate when JS is loaded */
.animate-on-scroll {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js-loaded .animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
}

html.js-loaded .animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   26. CHECKOUT RESULT
   ============================================================ */
.checkout-result {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: var(--space-3xl) var(--container-padding);
}

.checkout-result__card {
  max-width: 480px;
  width: 100%;
  background: var(--color-surface-light);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.checkout-result__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-size: 28px;
}

.checkout-result__icon--success {
  background: rgba(22, 163, 74, 0.1);
  color: var(--color-success);
}

.checkout-result__icon--cancel {
  background: rgba(220, 38, 38, 0.1);
  color: var(--color-error);
}

.checkout-result__message {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.checkout-result__detail {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  line-height: var(--lh-body);
}

.checkout-result__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* ============================================================
   27. ABOUT PAGE
   ============================================================ */
.about-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  background: var(--color-primary);
  overflow: hidden;
}

.about-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 46, 0.9) 0%,
    rgba(26, 26, 46, 0.7) 100%
  );
  z-index: 1;
}

.about-hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: var(--space-3xl) var(--container-padding);
  margin: 0 auto;
  text-align: center;
}

.about-hero__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  color: var(--color-text-inverse);
  margin-bottom: var(--space-md);
}

.about-hero__subtitle {
  font-family: var(--font-body);
  font-size: 20px;
  color: rgba(255, 255, 255, 0.8);
  line-height: var(--lh-body);
}

.about-story {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  padding: var(--space-3xl) 0;
}

.about-story__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.about-story__content p {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-text-secondary);
  line-height: var(--lh-body);
}

.about-story__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.about-story__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-story__image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--color-surface-dark) 0%,
    var(--color-surface) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--color-accent);
  opacity: 0.5;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.value-card {
  background: var(--color-surface-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.value-card__icon {
  font-size: 36px;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.value-card h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-h5);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.value-card p {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.about-dual {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  padding: var(--space-3xl) 0;
}

.about-dual__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.about-dual__content h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
}

.about-dual__content p {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-text-secondary);
  line-height: var(--lh-body);
}

.about-dual__buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ── Header social icons ───────────────────────────────────── */
.header__social {
  display: none;
}

.header__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--color-text-inverse);
  font-size: 15px;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.header__social a:hover {
  color: var(--color-accent);
}

/* ============================================================
   28. RESPONSIVE — TABLET (768px+)
   ============================================================ */
@media (min-width: 768px) {
  :root {
    --container-padding: 32px;
  }

  .header__nav {
    display: block;
  }

  .header__menu-btn {
    display: none;
  }

  .header__social {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-grid--4 {
    grid-template-columns: repeat(3, 1fr);
  }

  .trust-badges__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .spotlight {
    flex-direction: row;
    align-items: center;
  }

  .spotlight__image {
    flex: 1;
  }

  .spotlight__content {
    flex: 1;
  }

  .pdp__layout {
    grid-template-columns: 1fr 1fr;
  }

  .about-story {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .about-dual {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .newsletter__form {
    flex-direction: row;
  }

  .checkout-result__actions {
    flex-direction: row;
    justify-content: center;
  }

  .categories__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================================
   29. RESPONSIVE — DESKTOP (1024px+)
   ============================================================ */
@media (min-width: 1024px) {
  :root {
    --container-padding: 40px;
  }

  .product-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .filters {
    display: block;
  }

  .shop-toolbar__filter {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .values-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero__title {
    font-size: 64px;
  }

  .hero__subtitle {
    font-size: 22px;
  }
}

/* ============================================================
   30. RESPONSIVE — SMALL MOBILE (max 480px)
   ============================================================ */
@media (max-width: 480px) {
  :root {
    --fs-h1: 36px;
    --fs-h2: 28px;
    --fs-h3: 22px;
    --container-padding: 16px;
  }

  .hero {
    min-height: 400px;
  }

  .hero__content {
    padding: var(--space-2xl) var(--container-padding);
  }

  .categories__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .toast-container {
    left: var(--space-md);
    right: var(--space-md);
    bottom: var(--space-md);
  }

  .toast {
    width: 100%;
  }

  .newsletter__form {
    flex-direction: column;
  }

  .pdp__title {
    font-size: var(--fs-h3);
  }

  .pdp__price {
    font-size: var(--fs-h3);
  }

  .shop-header__title {
    font-size: var(--fs-h2);
  }

  .about-hero__title {
    font-size: var(--fs-h2);
  }

  .about-hero {
    min-height: 300px;
  }
}

/* ============================================================
   31. FILTERS MOBILE OVERLAY
   ============================================================ */
@media (max-width: 1023px) {
  .filters {
    position: fixed;
    inset: 0;
    z-index: var(--z-mobile-nav);
    background: var(--color-surface-light);
    padding: var(--space-lg);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform var(--duration-normal) var(--ease-out);
    width: min(320px, 85vw);
  }

  .filters.is-open {
    display: block;
    transform: translateX(0);
  }

  .filters__close-mobile {
    display: flex;
  }
}

/* ============================================================
   32. PRINT STYLES
   ============================================================ */
@media print {
  .header,
  .footer,
  .cart-drawer,
  .toast-container,
  .mobile-nav,
  .search-bar,
  .newsletter {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  .container {
    max-width: none;
    padding: 0;
  }

  .product-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* ============================================================
   33. UTILITY CLASSES
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-center {
  text-align: center;
}

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

/* ============================================================
   Cookie Consent Banner
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 1.25rem;
  background: var(--color-surface-light);
  box-shadow: 0 -4px 20px rgba(0,0,0,.15);
  font-family: var(--font-body);
  transform: translateY(100%);
  transition: transform .4s ease;
}
.cookie-banner.is-visible {
  transform: translateY(0);
}
.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-banner__text {
  flex: 1;
  min-width: 280px;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--color-text);
}
.cookie-banner__text a {
  color: var(--color-accent);
  text-decoration: underline;
}
.cookie-banner__actions {
  display: flex;
  gap: .75rem;
  flex-shrink: 0;
}
.cookie-banner__btn {
  padding: .6rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity .2s;
}
.cookie-banner__btn:hover { opacity: .85; }
.cookie-banner__btn--accept {
  background: var(--color-cta);
  color: #fff;
}
.cookie-banner__btn--decline {
  background: transparent;
  border: 1px solid var(--color-accent);
  color: var(--color-text);
}
