/* ==========================================================================
   V | STORE — DESIGN SYSTEM
   Theme: Premium Feminine Minimalism with Restrained Liquid Glass Accents
   ========================================================================== */

:root {
  /* Surface & Canvas Colors */
  --color-canvas: #FAF8F6;
  --color-surface: #FFFFFF;
  --color-surface-subtle: #F6F1EE;
  --color-surface-card: #FFFFFF;
  
  /* Text & Contrast Hierarchy */
  --color-text-primary: #241E22;
  --color-text-secondary: #64565F;
  --color-text-muted: #968890;
  
  /* Refined Feminine Palette (Muted Rose, Mauve, Taupe) */
  --color-rose: #C27686;
  --color-rose-hover: #AF6474;
  --color-rose-light: #F8EDEF;
  --color-rose-subtle: rgba(194, 118, 134, 0.12);
  
  --color-mauve: #8B6B7A;
  --color-taupe: #B5A8A1;
  --color-taupe-light: #EBE5E1;
  
  /* Semantic Status Indicators */
  --color-success: #4A8C6F;
  --color-success-bg: #EDF6F1;
  --color-warning: #B38641;
  --color-warning-bg: #FAF4EB;
  --color-danger: #BA4E5D;
  --color-danger-bg: #FBEFF1;

  /* Liquid Glass Design Tokens */
  --glass-bg: rgba(255, 255, 255, 0.78);
  --glass-bg-hover: rgba(255, 255, 255, 0.90);
  --glass-blur: blur(18px) saturate(160%);
  --glass-border: 1px solid rgba(255, 255, 255, 0.65);
  --glass-border-subtle: 1px solid rgba(194, 118, 134, 0.16);
  --glass-highlight: inset 0 1px 1px 0 rgba(255, 255, 255, 0.85);
  --glass-shadow: 0 8px 32px 0 rgba(45, 30, 38, 0.06);

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(36, 30, 34, 0.04);
  --shadow-sm: 0 3px 10px rgba(36, 30, 34, 0.05);
  --shadow-md: 0 8px 24px -4px rgba(36, 30, 34, 0.08);
  --shadow-lg: 0 16px 40px -8px rgba(36, 30, 34, 0.12);
  --shadow-focus: 0 0 0 3px rgba(194, 118, 134, 0.28);

  /* Typography */
  --font-family-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-family-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  /* Layout & Spacing */
  --container-max: 1180px;
  --header-height: 70px;
  --bottom-nav-height: 64px;

  /* Motion & Transitions */
  --motion-fast: 150ms cubic-bezier(0.2, 0, 0, 1);
  --motion-normal: 250ms cubic-bezier(0.2, 0, 0, 1);
  --motion-spring: 350ms cubic-bezier(0.34, 1.4, 0.64, 1);
}

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

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

body {
  font-family: var(--font-family-body);
  background-color: var(--color-canvas);
  color: var(--color-text-primary);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: calc(var(--bottom-nav-height) + 24px);
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--motion-fast);
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

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

/* ==========================================================================
   ACCESSIBILITY: REDUCED MOTION
   ========================================================================== */
@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;
  }
}

/* ==========================================================================
   CONTAINER & LAYOUT
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ==========================================================================
   LIQUID GLASS NAVBAR
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: var(--glass-border-subtle);
  box-shadow: var(--glass-shadow);
  transition: background var(--motion-normal);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #F9EEF1 0%, #F1D9E0 100%);
  border: 1px solid rgba(194, 118, 134, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-rose);
  box-shadow: var(--shadow-xs);
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
  background: var(--color-rose-light);
  color: var(--color-rose);
  border: 1px solid rgba(194, 118, 134, 0.2);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 0.5rem 0.25rem;
  position: relative;
  transition: color var(--motion-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-rose);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-rose);
  border-radius: var(--radius-pill);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-button-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  border: 1px solid var(--color-taupe-light);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  transition: all var(--motion-fast);
}

.search-button-trigger:hover {
  border-color: var(--color-rose);
  color: var(--color-text-secondary);
  box-shadow: var(--shadow-xs);
}

/* ==========================================================================
   COMPACT HERO SECTION (Mobile-First: Products in 1st Viewport)
   ========================================================================== */
.hero {
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
  position: relative;
}

.hero-surface {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 237, 239, 0.6) 100%);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--glass-shadow);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .hero-surface {
    padding: 2.25rem 2.5rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.hero-content {
  max-width: 580px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-rose);
  background: var(--color-surface);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(194, 118, 134, 0.2);
  margin-bottom: 0.65rem;
}

.hero-title {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 2rem;
  }
}

.hero-description {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.hero-features-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.hero-feature-icon {
  color: var(--color-rose);
}

/* ==========================================================================
   CATEGORY NAVIGATION (Glass Pills)
   ========================================================================== */
.categories-bar {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.categories-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-top: 0.25rem;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  border: 1px solid var(--color-taupe-light);
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
  transition: all var(--motion-fast);
  cursor: pointer;
}

.cat-pill:hover {
  border-color: var(--color-rose);
  color: var(--color-rose);
  transform: translateY(-1px);
}

.cat-pill.active {
  background: var(--color-rose);
  border-color: var(--color-rose);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(194, 118, 134, 0.35);
}

.cat-pill-count {
  font-size: 0.72rem;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.06);
}

.cat-pill.active .cat-pill-count {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* ==========================================================================
   PRODUCT GRID & SECTION HEADERS
   ========================================================================== */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.section-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

@media (min-width: 640px) {
  .section-title {
    font-size: 1.35rem;
  }
}

.section-subtitle {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.section-action-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-rose);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap var(--motion-fast);
}

.section-action-link:hover {
  gap: 0.45rem;
}

/* Responsive Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 440px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

/* ==========================================================================
   PRODUCT CARD COMPONENT
   ========================================================================== */
.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-taupe-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: transform var(--motion-normal), box-shadow var(--motion-normal), border-color var(--motion-normal);
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(194, 118, 134, 0.4);
  box-shadow: var(--shadow-md);
}

.card-top {
  padding: 0.35rem 1rem 0.5rem 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.brand-badge-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-mauve);
  background: var(--color-surface-subtle);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs);
  letter-spacing: 0.02em;
}

.status-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
}

.status-badge.best-seller {
  background: var(--color-rose-light);
  color: var(--color-rose);
  border: 1px solid rgba(194, 118, 134, 0.25);
}

.status-badge.out-of-stock {
  background: #F3F1F1;
  color: #8C8086;
}

.status-badge.low-stock {
  background: var(--color-warning-bg);
  color: var(--color-warning);
}

.card-body {
  padding: 0.5rem 1rem 0.85rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text-primary);
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-duration {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-rose);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.card-description {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  line-height: 1.45;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  padding: 0.85rem 1rem;
  background: var(--bg-elevated, #FAF8F6);
  border-top: 1px solid var(--border-soft, var(--color-taupe-light));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.price-wrap {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.price-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}

.btn-card-action {
  background: var(--color-rose);
  color: #FFFFFF;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--motion-fast);
}

.btn-card-action:hover {
  background: var(--color-rose-hover);
  transform: scale(1.02);
}

.btn-card-action:active {
  transform: scale(0.97);
}

.btn-card-action.disabled {
  background: #E0D9D6;
  color: #948782;
  cursor: not-allowed;
  transform: none !important;
}

/* ==========================================================================
   PHASE 4D-B4-R2 — CARDLESS TRUST + COMPACT ACCESSIBLE FAQ
   ========================================================================== */
.trust-section { margin-bottom: 2.25rem; }
.trust-section .section-header,
.faq-section .section-header { justify-content: center; text-align: center; margin-bottom: 1rem; }
.trust-section .section-title-wrap,
.faq-section .section-title-wrap { align-items: center; }
.section-eyebrow { color: var(--brand); font-size: .68rem; font-weight: 750; letter-spacing: .14em; }
.trust-grid { display: grid; grid-template-columns: 1fr; }
.trust-item {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .72rem .35rem;
  border-bottom: 1px solid var(--border-soft);
}
.trust-item:last-child { border-bottom: 0; }
.trust-icon-box {
  width: 32px; height: 32px; flex: 0 0 32px;
  display: grid; place-items: center;
  color: var(--brand);
}
.trust-content h3 { margin: 0 0 .12rem; color: var(--text-primary); font: 700 .875rem/1.25 var(--font-family-body); }
.trust-content p { margin: 0; color: var(--text-secondary); font: 400 .8rem/1.45 var(--font-family-body); }

.faq-section { max-width: 1000px; margin: 0 auto 2.25rem; }
.faq-list {
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
}
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-item:last-child { border-bottom: 0; }
.faq-question { margin: 0; }
.faq-trigger {
  width: 100%; min-height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem .95rem;
  color: var(--text-primary); background: transparent;
  font: 700 .875rem/1.35 var(--font-family-body); text-align: left;
  cursor: pointer;
}
.faq-trigger:hover { background: var(--brand-soft); }
.faq-trigger:focus-visible { outline: 2px solid var(--brand); outline-offset: -3px; border-radius: 12px; }
.faq-chevron { flex: 0 0 auto; color: var(--brand); transform: rotate(0deg); transition: transform 280ms cubic-bezier(.22,1,.36,1); }
.faq-item.is-open .faq-chevron { transform: rotate(180deg); }
.faq-panel {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  background: var(--bg-elevated);
  transition: grid-template-rows 280ms cubic-bezier(.22,1,.36,1), opacity 180ms ease;
}
.faq-panel-inner { min-height: 0; overflow: hidden; }
.faq-panel-inner p {
  margin: 0; padding: 0 .95rem .9rem;
  color: var(--text-secondary); font: 400 .82rem/1.55 var(--font-family-body);
  opacity: 0; transform: translate3d(0,-4px,0);
  transition: opacity 200ms ease, transform 220ms cubic-bezier(.22,1,.36,1);
}
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; opacity: 1; }
.faq-item.is-open .faq-panel-inner p { opacity: 1; transform: translate3d(0,0,0); }

@media (min-width: 768px) {
  .trust-section { margin-bottom: 3rem; }
  .trust-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .trust-item { min-height: 92px; padding: .8rem 1.25rem; border-bottom: 0; border-right: 1px solid var(--border-soft); }
  .trust-item:first-child { padding-left: .4rem; }
  .trust-item:last-child { border-right: 0; padding-right: .4rem; }
  .trust-content h3 { font-size: .92rem; }
  .trust-content p { font-size: .82rem; }
  .faq-trigger { min-height: 60px; padding-inline: 1.2rem; font-size: .92rem; }
  .faq-panel-inner p { padding-inline: 1.2rem; font-size: .86rem; }
}
@media (max-width: 767px) {
  .favorite-tile { animation: none; }
  .site-footer { margin-top: 1.25rem; }
}
/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #F4EDE9;
  border-top: 1px solid var(--color-taupe-light);
  padding: 2.5rem 0 2rem 0;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-info p {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  max-width: 420px;
  margin-top: 0.5rem;
  line-height: 1.5;
}

.footer-meta {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   LIQUID GLASS QUICK-VIEW MODAL / BOTTOM SHEET
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(36, 30, 34, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--motion-normal), visibility var(--motion-normal);
}

@media (min-width: 640px) {
  .modal-backdrop {
    align-items: center;
    padding: 1.5rem;
  }
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-sheet {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform var(--motion-spring);
}

@media (min-width: 640px) {
  .modal-sheet {
    border-radius: var(--radius-lg);
    transform: scale(0.95) translateY(10px);
  }
}

.modal-backdrop.active .modal-sheet {
  transform: translateY(0);
}

@media (min-width: 640px) {
  .modal-backdrop.active .modal-sheet {
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.modal-brand-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-rose);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}

.btn-close-modal {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  transition: background var(--motion-fast);
}

.btn-close-modal:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--color-text-primary);
}

.modal-price-box {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-taupe-light);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.modal-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.modal-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.modal-features-list svg {
  color: var(--color-rose);
  flex-shrink: 0;
  margin-top: 2px;
}

.modal-notice-banner {
  background: var(--color-rose-light);
  border: 1px solid rgba(194, 118, 134, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin-bottom: 1.25rem;
  display: flex;
  gap: 0.6rem;
}

.modal-notice-text {
  font-size: 0.78rem;
  color: var(--color-text-secondary);
  line-height: 1.45;
}

.modal-notice-text strong {
  color: var(--color-rose);
}

.btn-modal-checkout {
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: var(--color-rose);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(194, 118, 134, 0.35);
  transition: all var(--motion-fast);
}

.btn-modal-checkout:hover {
  background: var(--color-rose-hover);
}

.btn-modal-checkout:active {
  transform: scale(0.98);
}

/* ==========================================================================
   FLOATING MOBILE NAVIGATION (Restrained Liquid Glass)
   ========================================================================== */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: var(--glass-border);
  box-shadow: 0 -4px 20px rgba(45, 30, 38, 0.05);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .mobile-nav {
    display: none;
  }
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: var(--color-text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  transition: color var(--motion-fast);
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
  color: var(--color-rose);
}

/* ==========================================================================
   EMPTY, LOADING & ERROR STATES
   ========================================================================== */
.empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px dashed var(--color-taupe);
  margin: 1.5rem 0;
}

.empty-state-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem auto;
  border-radius: var(--radius-pill);
  background: var(--color-surface-subtle);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.35rem;
}

.empty-state-text {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  max-width: 380px;
  margin: 0 auto 1.25rem auto;
}

/* Shimmer Loading Skeleton */
.skeleton {
  background: linear-gradient(90deg, #F3EEEC 25%, #FAF5F4 50%, #F3EEEC 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-xs);
}

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

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transform: translateY(-20px);
  opacity: 0;
  transition: all var(--motion-normal);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ===================================================
   V | STORE Phase 2.5 Additions:
   Brand Profile Avatar, Marquee, Card Logos & Bottom Sheet
   =================================================== */

.brand-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-rose-subtle);
  box-shadow: 0 2px 8px rgba(194, 118, 134, 0.2);
  flex-shrink: 0;
}

/* Card Logo Stage & Standardized Holder (Phase 3C.4A) */
.product-card .card-logo-stage {
  padding: 1.2rem 1rem 0.35rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 0;
}

.card-logo-holder {
  width: 64px;
  height: 64px;
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-taupe-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-sizing: border-box;
  transition: transform var(--motion-normal), border-color var(--motion-normal), background-color var(--motion-normal), box-shadow var(--motion-normal);
  flex-shrink: 0;
}

.product-card:hover .card-logo-holder {
  background: #FFFFFF;
  border-color: rgba(194, 118, 134, 0.35);
  box-shadow: 0 4px 14px rgba(36, 30, 34, 0.07);
  transform: scale(1.03);
}

.product-brand-logo {
  max-height: 42px;
  max-width: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.04));
  display: block;
}

/* Moving Brand Logo Marquee Strip */
.brand-marquee-section {
  padding: 1.15rem 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-taupe-light);
  border-bottom: 1px solid var(--color-taupe-light);
  overflow: hidden;
  position: relative;
}

.marquee-container {
  position: relative;
}

.marquee-track-wrapper {
  display: flex;
  overflow: hidden;
  user-select: none;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-shrink: 0;
  animation: marquee-slide 30s linear infinite;
  padding: 0.2rem 0;
}

.marquee-track-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--color-cream);
  border: 1px solid var(--color-taupe-light);
  transition: transform var(--motion-fast);
  white-space: nowrap;
}

.marquee-item:hover {
  transform: translateY(-2px);
  border-color: var(--color-rose-subtle);
}

.marquee-logo {
  height: 22px;
  width: auto;
  max-width: 70px;
  object-fit: contain;
}

.marquee-brand-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

@keyframes marquee-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
  .marquee-track-wrapper {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }
}

/* Compact Hero Section */
.hero-section {
  padding: 2.25rem 0 1.75rem 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 2.25rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-banner-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-taupe-light);
  box-shadow: 0 10px 28px rgba(194, 118, 134, 0.12);
  background: var(--color-surface);
  width: 100%;
}

.hero-banner-img {
  width: 100%;
  height: auto;
  max-height: 270px;
  object-fit: contain;
  display: block;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero-banner-img {
    max-height: 220px;
  }
}

/* Upgraded Detail Modal / Responsive Sheet */
.modal-sheet {
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-scroll-content {
  overflow-y: auto;
  padding-right: 0.35rem;
  margin-bottom: 1rem;
}

.modal-logo-box {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-cream);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-taupe-light);
  padding: 4px;
  flex-shrink: 0;
}

.modal-brand-logo {
  max-height: 32px;
  max-width: 36px;
  object-fit: contain;
}

.modal-section {
  margin-bottom: 1.15rem;
}

.modal-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.modal-section-text {
  font-size: 0.86rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin: 0;
}

.modal-guide-ol {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.86rem;
}

.badge-duration-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--color-cream);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-taupe-light);
}

.modal-warning-box {
  background: #FDF2F4;
  border: 1px solid #F3CFD7;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1.15rem;
  font-size: 0.84rem;
  color: #8A3A4D;
  line-height: 1.5;
}

.modal-warranty-box {
  background: #F6F3F1;
  border: 1px solid var(--color-taupe-light);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

@media (max-width: 640px) {
  .modal-sheet {
    width: 100%;
    max-height: 85vh;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    position: fixed;
    bottom: 0;
  }
}

/* ==========================================================================
   Phase 3A: Secure Guest Checkout & Quantity UI Enhancements
   ========================================================================== */

.quantity-control-group button:hover:not(:disabled) {
  background: var(--color-rose-subtle);
  color: var(--color-rose);
}

.quantity-control-group button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.quantity-control-group input::-webkit-outer-spin-button,
.quantity-control-group input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.btn-support-chip {
  transition: all 0.2s ease;
}

.btn-support-chip:hover {
  background: var(--color-rose-light) !important;
  border-color: var(--color-rose) !important;
  transform: translateY(-1px);
}

.btn-copy-chip {
  transition: all 0.15s ease;
}

.btn-copy-chip:hover {
  background: var(--color-rose-light) !important;
  border-color: var(--color-rose) !important;
}

.credential-unit-card {
  transition: border-color 0.2s ease;
}

.credential-unit-card:hover {
  border-color: var(--color-rose) !important;
}

.footer-support-link {
  transition: color 0.15s ease;
}

.footer-support-link:hover {
  color: var(--color-rose-hover) !important;
  text-decoration: underline !important;
}

@media (max-width: 640px) {
  .checkout-container {
    padding: 0 0.5rem;
  }
}

/* Phase 3A.1: Collapsible Activation Guide (Details Disclosure) */
details.guide-disclosure summary::-webkit-details-marker,
details.guide-disclosure summary::marker {
  display: none;
}
details.guide-disclosure summary {
  cursor: pointer;
}
details.guide-disclosure summary:focus-visible {
  outline: 2px solid var(--color-rose);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}
details.guide-disclosure[open] .disclosure-chevron {
  transform: rotate(180deg);
}

/* ==========================================================================
   PHASE 4D-B2 — Homepage discovery: compact hero + Best Seller carousel
   Scoped to homepage-specific classes; regular cards/navigation stay unchanged.
   ========================================================================== */
.home-hero {
  padding: 1rem 0 0.75rem;
  position: relative;
}

.home-hero-surface {
  min-height: 276px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  padding: 1.2rem 1.1rem;
  border: 1px solid rgba(194, 118, 134, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 86% 22%, rgba(255, 255, 255, 0.95) 0 8%, transparent 28%),
    linear-gradient(135deg, #fffaf8 0%, #f8edef 52%, #eee3e8 100%);
  box-shadow: 0 14px 34px rgba(83, 56, 70, 0.09);
}

.home-hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 610px;
}

.home-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 28px;
  margin-bottom: 0.5rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(139, 107, 122, 0.2);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72);
  color: #765465;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.home-hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-rose);
  box-shadow: 0 0 0 4px rgba(194, 118, 134, 0.13);
}

.home-hero-title {
  max-width: 560px;
  margin: 0 0 0.45rem;
  color: #2f252b;
  font-size: clamp(1.7rem, 8vw, 2.45rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.home-hero-title span {
  color: var(--color-rose-hover);
}

.home-hero-description {
  max-width: 520px;
  margin: 0 0 0.5rem;
  color: #685760;
  font-size: 0.86rem;
  line-height: 1.5;
}

.home-hero-micro {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 24px;
  color: #765465;
  font-size: 0.78rem;
  font-weight: 650;
}

.home-hero-micro svg {
  color: var(--color-rose);
}

.home-hero-micro [data-hero-message] {
  transition: opacity 160ms ease, transform 160ms ease;
}

.home-hero-micro [data-hero-message].is-changing {
  opacity: 0;
  transform: translateY(5px);
}

.home-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem 0.9rem;
  margin-top: 0.65rem;
}

.home-hero-cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.68rem 1rem;
  border: 1px solid #a9556a;
  border-radius: 12px;
  background: linear-gradient(135deg, #bf6d80, #a9556a);
  color: #fff;
  box-shadow: 0 7px 17px rgba(169, 85, 106, 0.24);
  font-size: 0.84rem;
  font-weight: 750;
  transition: transform var(--motion-fast), box-shadow var(--motion-fast), background var(--motion-fast);
}

.home-hero-cta:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #b45f73, #97495c);
  box-shadow: 0 10px 22px rgba(169, 85, 106, 0.28);
}

.home-hero-cta:active {
  transform: translateY(0);
}

.home-hero-count {
  color: #7e6c75;
  font-size: 0.68rem;
  font-weight: 600;
}

.home-hero-logos {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  opacity: 0.36;
}

.home-hero-logo {
  width: 46px;
  height: 46px;
  position: absolute;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid rgba(194, 118, 134, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 8px 22px rgba(79, 53, 67, 0.08);
  animation: home-logo-drift 6s ease-in-out infinite alternate;
}

.home-hero-logo img {
  max-width: 30px;
  max-height: 30px;
}

.home-hero-logo-1 { top: 18%; right: 5%; }
.home-hero-logo-2 { top: 43%; right: 15%; animation-delay: -2s; }
.home-hero-logo-3 { bottom: 12%; right: 4%; animation-delay: -4s; }
.home-hero-logo-4 { display: none; }

.home-hero-orb {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
}

.home-hero-orb-one {
  width: 150px;
  height: 150px;
  right: -55px;
  top: -50px;
  background: rgba(213, 160, 174, 0.2);
}

.home-hero-orb-two {
  width: 95px;
  height: 95px;
  left: 48%;
  bottom: -58px;
  background: rgba(154, 125, 147, 0.14);
}

@keyframes home-logo-drift {
  from { transform: translate3d(0, 0, 0) rotate(-1deg); }
  to { transform: translate3d(0, -7px, 0) rotate(1deg); }
}

.home-hero-badge,
.home-hero-title,
.home-hero-description,
.home-hero-micro,
.home-hero-actions {
  opacity: 0;
  animation: home-hero-reveal 520ms cubic-bezier(0.2, 0.75, 0.25, 1) forwards;
}
.home-hero-title { animation-delay: 70ms; }
.home-hero-description { animation-delay: 140ms; }
.home-hero-micro { animation-delay: 200ms; }
.home-hero-actions { animation-delay: 260ms; }

@keyframes home-hero-reveal {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.best-seller-section {
  padding-top: 0.45rem;
  padding-bottom: 0.65rem;
}

.best-seller-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.45rem;
}

.section-eyebrow {
  margin-bottom: 0.1rem;
  color: var(--color-rose);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.best-seller-controls {
  display: none;
  gap: 0.45rem;
}

.carousel-arrow {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--color-taupe-light);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-mauve);
  box-shadow: var(--shadow-xs);
  transition: color var(--motion-fast), border-color var(--motion-fast), transform var(--motion-fast);
}

.carousel-arrow:hover {
  color: var(--color-rose-hover);
  border-color: rgba(194, 118, 134, 0.48);
  transform: translateY(-1px);
}

.best-seller-carousel {
  width: 100%;
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scroll-padding-inline: 1px;
  padding: 0.1rem 0.1rem 0.35rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(194, 118, 134, 0.36) transparent;
}

.best-seller-carousel::-webkit-scrollbar { height: 5px; }
.best-seller-carousel::-webkit-scrollbar-track { background: transparent; }
.best-seller-carousel::-webkit-scrollbar-thumb {
  border-radius: var(--radius-pill);
  background: rgba(194, 118, 134, 0.36);
}

.featured-product-card {
  flex: 0 0 min(78vw, 278px);
  scroll-snap-align: start;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0.65rem;
  border: 1px solid var(--color-taupe-light);
  border-radius: 17px;
  background: linear-gradient(155deg, #fff 0%, #fffaf8 100%);
  box-shadow: 0 6px 18px rgba(54, 38, 47, 0.06);
  transition: transform var(--motion-normal), border-color var(--motion-normal), box-shadow var(--motion-normal);
}

.featured-product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(194, 118, 134, 0.38);
  box-shadow: 0 10px 24px rgba(54, 38, 47, 0.09);
}

.featured-product-card.is-unavailable {
  background: #f8f5f3;
  border-color: #e6dfdb;
}

.featured-card-top,
.featured-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.featured-logo-holder {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 7px;
  border: 1px solid var(--color-taupe-light);
  border-radius: 13px;
  background: #fff;
}

.featured-logo-holder img {
  max-width: 29px;
  max-height: 29px;
}

.featured-card-body {
  min-height: 63px;
  padding: 0.42rem 0 0.28rem;
}

.featured-brand {
  margin-bottom: 0.08rem;
  color: var(--color-rose);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.featured-card-body h3 {
  min-height: 2.4em;
  color: var(--color-text-primary);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-delivery {
  margin-top: 0.18rem;
  color: var(--color-text-muted);
  font-size: 0.64rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.featured-stock {
  align-self: flex-start;
  margin-bottom: 0.45rem;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-pill);
  background: var(--color-success-bg);
  color: var(--color-success);
  font-size: 0.62rem;
  font-weight: 700;
}

.featured-stock.unavailable {
  background: #ece8e6;
  color: #756a6f;
}

.featured-card-footer {
  margin-top: auto;
  padding-top: 0.45rem;
  border-top: 1px solid var(--color-taupe-light);
}

.featured-card-footer strong {
  color: #3b2d34;
  font-size: 0.84rem;
}

.featured-buy-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  background: var(--color-rose);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 750;
  transition: background var(--motion-fast), transform var(--motion-fast);
}

.featured-buy-button:hover:not(:disabled) {
  background: var(--color-rose-hover);
  transform: translateY(-1px);
}

.featured-buy-button.is-disabled,
.featured-buy-button:disabled {
  background: #ddd6d3;
  color: #796f73;
  cursor: not-allowed;
}

.best-seller-empty {
  padding: 1rem;
  border: 1px dashed var(--color-taupe-light);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

/* JS-enhanced section entrance. Content remains visible when JS is unavailable. */
.home-motion-ready .home-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 480ms ease, transform 480ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.home-motion-ready .home-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.best-seller-section + .catalog-section {
  padding-top: 0.35rem;
}

@media (min-width: 640px) {
  .home-hero { padding-top: 1.25rem; }
  .home-hero-surface { padding: 1.5rem 1.8rem; }
  .home-hero-logos { opacity: 0.75; }
  .home-hero-logo { width: 54px; height: 54px; }
  .home-hero-logo img { max-width: 36px; max-height: 36px; }
  .home-hero-logo-1 { top: 16%; right: 9%; }
  .home-hero-logo-2 { top: 38%; right: 20%; }
  .home-hero-logo-3 { bottom: 13%; right: 8%; }
  .home-hero-logo-4 { display: grid; bottom: 10%; right: 28%; animation-delay: -3s; }
  .home-hero-content { width: 68%; }
  .best-seller-controls { display: flex; }
  .featured-product-card { flex-basis: 270px; }
}

@media (min-width: 960px) {
  .home-hero-surface { min-height: 260px; padding: 1.65rem 2.2rem; }
  .home-hero-title { font-size: 2.55rem; }
  .home-hero-description { font-size: 0.94rem; }
  .home-hero-content { width: 66%; }
  .home-hero-logo { width: 62px; height: 62px; }
  .home-hero-logo img { max-width: 42px; max-height: 42px; }
}

@media (max-width: 389px) {
  .home-hero-surface { padding: 1.35rem 1rem; }
  .home-hero-title { font-size: 1.62rem; }
  .home-hero-description { max-width: 285px; font-size: 0.82rem; }
  .home-hero-logos { opacity: 0.22; }
  .home-hero-logo-2 { right: 6%; }
  .home-hero-count { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-badge,
  .home-hero-title,
  .home-hero-description,
  .home-hero-micro,
  .home-hero-actions,
  .home-hero-logo {
    opacity: 1;
    animation: none !important;
    transform: none !important;
  }
  .home-motion-ready .home-reveal {
    opacity: 1;
    transform: none;
  }
  .best-seller-carousel {
    scroll-behavior: auto;
  }
}


/* ==========================================================================
   PHASE 4D-B3 — editorial type, compact catalog, favorite + moving rails
   ========================================================================== */
.home-hero-surface { min-height: 232px; padding: 0.8rem 1rem; }
.home-hero-title,
.section-title { font-family: var(--font-family-display); }
.home-hero-title {
  font-size: clamp(1.75rem, 7.6vw, 2.125rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.home-hero-description { font-size: clamp(0.875rem, 3.7vw, 1rem); line-height: 1.4; }
.home-hero-micro { display: none; }
.home-hero-actions { margin-top: 0.5rem; }
.home-hero-badge { min-height: 24px; margin-bottom: 0.38rem; font-size: 0.62rem; }

.favorite-rail {
  display: flex;
  gap: 0.7rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
  padding: 0.1rem 0.1rem 0.45rem;
  -webkit-overflow-scrolling: touch;
}
.favorite-tile {
  flex: 0 0 156px;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.22rem 0.4rem;
  min-width: 0;
  padding: 0.72rem;
  border: 1px solid rgba(194, 118, 134, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(12px) saturate(125%);
  box-shadow: var(--glass-highlight), 0 8px 22px rgba(72, 48, 60, 0.06);
  transition: transform var(--motion-normal), box-shadow var(--motion-normal), border-color var(--motion-normal);
}
.favorite-tile:hover { transform: translateY(-2px); border-color: rgba(194, 118, 134, 0.38); }
.favorite-tile:active { transform: scale(0.985); }
.favorite-tile.is-unavailable { background: rgba(244, 241, 239, 0.8); }
.favorite-logo {
  grid-column: 1 / -1;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 0.18rem;
  padding: 6px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--color-taupe-light);
}
.favorite-logo img { width: 48px; height: 48px; object-fit: contain; }
.favorite-tile h3 {
  grid-column: 1 / -1;
  min-height: 2.35em;
  font-family: var(--font-family-display);
  font-size: 0.92rem;
  line-height: 1.18;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.favorite-tile > strong { grid-column: 1 / -1; font-size: 0.82rem; }
.favorite-availability { color: var(--color-success); font-size: 0.65rem; font-weight: 700; }
.favorite-availability.is-unavailable { color: var(--color-danger); }
.favorite-action {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: var(--color-rose-hover);
  font-size: 0.68rem;
  font-weight: 700;
}
.favorite-action.is-disabled { color: var(--color-text-muted); cursor: not-allowed; }

.product-marquee-section { padding: 0.35rem 0 0.75rem; overflow: hidden; }
.product-marquee-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.38rem;
  color: var(--color-text-muted);
  font-size: 0.68rem;
}
.product-marquee-heading p { color: var(--color-mauve); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.product-marquee-viewport {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  touch-action: pan-x pan-y pinch-zoom;
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}
.product-marquee-viewport::-webkit-scrollbar { display: none; }
.product-marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: product-marquee-slide 42s linear infinite;
  animation-play-state: running;
}
.product-marquee-group { display: flex; flex-shrink: 0; gap: 0.65rem; padding-right: 0.65rem; }
.product-marquee-chip {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.72rem;
  white-space: nowrap;
  border: 1px solid rgba(194, 118, 134, 0.16);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.8);
  box-shadow: var(--glass-highlight), var(--shadow-xs);
  font-size: 0.74rem;
  font-weight: 650;
}
.product-marquee-chip img { width: 30px; height: 30px; object-fit: contain; }
.product-marquee-chip small { color: var(--color-rose-hover); font-size: 0.65rem; font-weight: 700; }
/* R2A: JS derives every pause reason into this single playback class. */
.product-marquee-section.is-paused .product-marquee-track { animation-play-state: paused; }
@keyframes product-marquee-slide { to { transform: translateX(-50%); } }

/* Compact solid catalog cards: stock is textual and visually precedes secondary badges. */
.product-card .card-logo-stage { padding: 0.7rem 0.7rem 0.18rem; }
.card-logo-holder { width: 58px; height: 58px; padding: 5px; }
.product-brand-logo { max-width: 48px; max-height: 48px; }
.card-top { padding: 0.2rem 0.7rem 0.3rem; align-items: center; }
.brand-badge-pill { padding: 0; background: transparent; font-size: 0.64rem; }
.status-badge { padding: 0.14rem 0.38rem; font-size: 0.58rem; }
.card-body { padding: 0.3rem 0.7rem 0.58rem; }
.card-title { margin-bottom: 0.2rem; font-size: 0.88rem; line-height: 1.22; }
.card-stock-status {
  margin-bottom: 0.24rem;
  color: var(--color-success);
  font-size: 0.66rem;
  font-weight: 700;
}
.card-stock-status.is-low { color: var(--color-warning); }
.card-stock-status.is-unavailable { color: var(--color-danger); }
.card-duration { margin-bottom: 0.25rem; font-size: 0.68rem; }
.card-duration svg { width: 12px; height: 12px; }
.card-description { margin-bottom: 0; font-size: 0.72rem; line-height: 1.35; -webkit-line-clamp: 1; }
.card-footer { padding: 0.55rem 0.7rem; gap: 0.35rem; }
.price-label { font-size: 0.56rem; }
.price-value { font-size: 0.92rem; white-space: nowrap; }
.btn-card-action { min-height: 44px; padding: 0.4rem 0.58rem; font-size: 0.7rem; flex-shrink: 0; }
.product-card:active { transform: scale(0.992); }

/* One-shot grid entry; JS removes observation after the first intersection. */
.home-motion-ready .product-grid .product-card {
  opacity: 0;
  transform: translateY(12px) scale(0.992);
  transition: opacity 420ms ease, transform 420ms cubic-bezier(0.2, 0.75, 0.25, 1), box-shadow var(--motion-normal), border-color var(--motion-normal);
}
.home-motion-ready .product-grid .product-card.is-visible { opacity: 1; transform: none; }

@media (min-width: 370px) and (max-width: 767px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.62rem; }
}
@media (min-width: 640px) {
  .home-hero-surface { min-height: 260px; padding: 1.35rem 1.8rem; }
  .home-hero-title { font-size: clamp(2.25rem, 5vw, 3rem); }
  .home-hero-micro { display: inline-flex; }
  .favorite-tile { flex-basis: 174px; }
}
@media (min-width: 960px) {
  .home-hero-surface { min-height: 300px; }
  .home-hero-title { font-size: 3rem; }
  .card-description { -webkit-line-clamp: 2; }
}
@media (max-width: 369px) {
  .home-hero-logos { opacity: 0.16; }
  .home-hero-description { max-width: 270px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-marquee-track { animation: none !important; transform: none !important; will-change: auto; }
  .product-marquee-group[aria-hidden="true"] { display: none; }
  .product-marquee-viewport { mask-image: none; -webkit-mask-image: none; }
  .home-motion-ready .product-grid .product-card { opacity: 1; transform: none; }
}


/* ==========================================================================
   PHASE 4D-B3-R1 — direction-aware motion + responsive type refinement
   ========================================================================== */
.section-title { font-size: clamp(1.375rem, 5.4vw, 1.6rem); line-height: 1.08; }
.card-title { font-family: var(--font-family-body); font-size: 0.9rem; line-height: 1.24; }
.price-value { font-size: 1rem; }
.card-stock-status { font-size: 0.72rem; }

.home-motion-ready .motion-heading {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 420ms ease, transform 420ms cubic-bezier(0.2, 0.75, 0.25, 1);
}
.home-motion-ready .motion-heading.is-visible { opacity: 1; transform: none; }
.home-motion-ready .product-grid .product-card {
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition-delay: var(--reveal-delay, 0ms);
  transition-duration: 420ms;
  transition-timing-function: cubic-bezier(0.2, 0.75, 0.25, 1);
}
.home-motion-ready .product-grid .product-card.is-visible { opacity: 1; transform: none; }
.home-motion-ready .reveal-instant,
.home-motion-ready .product-grid .product-card.reveal-instant {
  transition: none !important;
  transition-delay: 0ms !important;
}
.home-motion-ready .product-card.is-reveal-ready .card-logo-holder { transform: scale(0.98); }
.home-motion-ready .product-card.is-visible:not(.reveal-instant) .card-logo-holder {
  animation: card-logo-enter 390ms cubic-bezier(0.2, 0.75, 0.25, 1) var(--reveal-delay, 0ms) both;
}
@keyframes card-logo-enter {
  from { transform: scale(0.98); }
  72% { transform: scale(1.015); }
  to { transform: scale(1); }
}

.favorite-tile { animation: favorite-calm-float 10s ease-in-out infinite alternate; }
.favorite-tile:nth-child(2n) { animation-delay: -3.2s; animation-duration: 11.5s; }
.favorite-tile:nth-child(3n) { animation-delay: -6.1s; animation-duration: 12.5s; }
.favorite-rail:hover .favorite-tile,
.favorite-tile:focus-within { animation-play-state: paused; }
@keyframes favorite-calm-float {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -2px, 0); }
}

#catalog-search-input {
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease !important;
}
#catalog-search-input:focus {
  border-color: rgba(194, 118, 134, 0.68) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(194, 118, 134, 0.12), 0 7px 18px rgba(64, 42, 53, 0.06) !important;
}
.cat-pill {
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 140ms ease;
}
.cat-pill:active { transform: scale(0.975); }
.cat-pill.active { box-shadow: 0 5px 14px rgba(194, 118, 134, 0.18); }
.home-hero-cta:active,
.btn-card-action:active,
.favorite-action:active,
.carousel-arrow:active { transform: scale(0.975); }

@media (min-width: 768px) {
  .home-hero-title { font-size: clamp(2.5rem, 5.2vw, 3rem); }
  .section-title { font-size: 1.75rem; }
  .card-title { font-size: 0.95rem; }
  .price-value { font-size: 1.04rem; }
  .card-stock-status { font-size: 0.73rem; }
}
@media (min-width: 1024px) {
  .home-hero-title { font-size: clamp(2.75rem, 3.8vw, 3.5rem); }
  .section-title { font-size: clamp(1.75rem, 2.25vw, 2.15rem); }
  .card-title { font-size: 1rem; }
  .price-value { font-size: 1.1rem; }
  .card-stock-status { font-size: 0.75rem; }
  .btn-card-action:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 7px 16px rgba(169,85,106,.2); }
}
@media (max-width: 767px) {
  .home-motion-ready .product-grid .product-card { transition-duration: 390ms; }
}
@media (prefers-reduced-motion: reduce) {
  .favorite-tile,
  .home-motion-ready .product-card.is-visible .card-logo-holder { animation: none !important; }
  .home-motion-ready .motion-heading,
  .home-motion-ready .product-grid .product-card,
  .home-motion-ready .product-grid .product-card.is-reveal-ready {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* ==========================================================================
   PHASE 4D-B3-R2 — compact favorite bubbles + stronger interaction choreography
   ========================================================================== */
.favorite-rail-mask { position: relative; overflow: hidden; margin-inline: -2px; }
.favorite-rail-mask::before,
.favorite-rail-mask::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 5px;
  width: 15px;
  pointer-events: none;
}
.favorite-rail-mask::before { left: 0; background: linear-gradient(90deg, var(--color-canvas), transparent); }
.favorite-rail-mask::after { right: 0; background: linear-gradient(270deg, var(--color-canvas), transparent); }
.favorite-rail { gap: 0.5rem; padding: 0.15rem 14px 0.4rem; }
.favorite-tile {
  flex: 0 0 124px;
  width: 124px;
  height: 124px;
  min-height: 124px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.2rem;
  padding: 0.5rem;
  border-radius: 20px;
  cursor: pointer;
  animation-duration: 12s;
}
.favorite-tile[aria-disabled="true"] { cursor: default; }
.favorite-tile:focus-visible { outline: 2px solid rgba(194,118,134,.72); outline-offset: 2px; box-shadow: 0 0 0 4px rgba(194,118,134,.12); }
.favorite-logo { width: 50px; height: 50px; min-height: 50px; margin: 0 0 0.05rem; padding: 3px; border-radius: 15px; }
.favorite-logo img { width: 44px; height: 44px; }
.favorite-tile h3 {
  min-height: 2.3em;
  margin: 0;
  font-family: var(--font-family-body);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.15;
}
.favorite-tile > strong { font-size: 0.77rem; font-weight: 650; line-height: 1.1; }
.favorite-availability {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  margin: 0;
  padding: 0.12rem 0.3rem;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.88);
  color: var(--color-danger);
  font-size: 0.56rem;
  line-height: 1.2;
}
@keyframes favorite-calm-float { from { transform: translate3d(0,0,0); } to { transform: translate3d(0,-1px,0); } }
.favorite-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(72,48,60,.1); }
.favorite-tile:active { transform: scale(.975); box-shadow: 0 3px 10px rgba(72,48,60,.06); transition-duration: 150ms; }

.home-motion-ready .motion-heading {
  transform: translateY(24px);
  transition-duration: 480ms;
  transition-timing-function: cubic-bezier(.22,1,.36,1);
}
.home-motion-ready .product-grid .product-card {
  opacity: 0;
  transform: translate3d(0,42px,0) scale(.98);
  transition-property: transform, opacity;
  transition-duration: var(--reveal-duration, 560ms), var(--reveal-opacity-duration, 420ms);
  transition-delay: var(--reveal-delay, 0ms), var(--reveal-delay, 0ms);
  transition-timing-function: cubic-bezier(.22,1,.36,1), ease-out;
}
.home-motion-ready .product-grid .product-card.is-visible { opacity: 1; transform: translate3d(0,0,0) scale(1); }
.home-motion-ready .product-card.is-visible:not(.reveal-instant) .card-logo-holder {
  animation-duration: var(--reveal-duration, 560ms);
  animation-delay: calc(var(--reveal-delay, 0ms) + 50ms);
}
.product-card:active { transform: scale(.985); box-shadow: var(--shadow-xs); }
#catalog-search-input:focus { transform: scale(1.003); transition-duration: 210ms !important; }
.cat-pill:active { transform: scale(.97); }
.product-grid.filter-result-enter .product-card:not([style*="display: none"]) { animation: filter-result-enter 260ms cubic-bezier(.22,1,.36,1) both; }
@keyframes filter-result-enter { from { opacity: .85; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (min-width: 640px) {
  .favorite-tile { flex-basis: 132px; width: 132px; height: 126px; min-height: 126px; }
}
@media (min-width: 1024px) {
  .favorite-tile h3 { font-size: 0.84rem; }
  .favorite-tile > strong { font-size: 0.8rem; }
  .product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(36,30,34,.1); }
}
@media (prefers-reduced-motion: reduce) {
  .home-motion-ready .product-grid .product-card,
  .home-motion-ready .product-grid .product-card.is-reveal-ready {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .product-grid.filter-result-enter .product-card { animation: none !important; }
}


/* B4-R2 downward-only trust choreography; no filter or layout-property animation. */
.home-motion-ready [data-trust-reveal] {
  opacity: 0;
  transform: translate3d(0,34px,0) scale(.985);
  transition: transform 540ms cubic-bezier(.22,1,.36,1), opacity 420ms ease-out;
  transition-delay: var(--trust-delay,0ms);
}
.home-motion-ready .trust-heading { --trust-delay: 0ms; transition-duration: 480ms, 400ms; }
.home-motion-ready .trust-item:nth-child(1) { --trust-delay: 0ms; }
.home-motion-ready .trust-item:nth-child(2) { --trust-delay: 90ms; }
.home-motion-ready .trust-item:nth-child(3) { --trust-delay: 180ms; }
.home-motion-ready [data-trust-reveal].is-visible { opacity: 1; transform: translate3d(0,0,0) scale(1); }
@media (min-width:768px) {
  .home-motion-ready .trust-item:nth-child(2) { --trust-delay: 80ms; }
  .home-motion-ready .trust-item:nth-child(3) { --trust-delay: 160ms; }
}
@media (prefers-reduced-motion: reduce) {
  .home-motion-ready [data-trust-reveal], .faq-panel, .faq-panel-inner p, .faq-chevron {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}

/* ==========================================================================
   PHASE 4D-B4-R1 — Theme Tokens & Floating Liquid Glass Navigation
   ========================================================================== */
:root {
  --bg-page: #FAF8F6;
  --bg-surface: #FFFFFF;
  --bg-elevated: #F6F1EE;
  --bg-glass: rgba(255, 255, 255, 0.82);
  --nav-glass-bg: rgba(255, 255, 255, 0.85);
  --text-primary: #241E22;
  --text-secondary: #64565F;
  --text-muted: #887A82;
  --border-soft: #EBE5E1;
  --border-strong: rgba(194, 118, 134, 0.32);
  --brand: #B9677A;
  --brand-hover: #A65368;
  --brand-soft: #F8EDEF;
  --success: #39795E;
  --success-soft: #EAF5EF;
  --warning: #9B6B22;
  --warning-soft: #FAF1E2;
  --danger: #A94153;
  --danger-soft: #FBECEF;
  --shadow-soft: 0 4px 16px rgba(48, 31, 40, 0.07);
  --shadow-elevated: 0 14px 36px rgba(48, 31, 40, 0.12);
  --glass-border-color: rgba(255, 255, 255, 0.75);
  --glass-highlight-color: rgba(255, 255, 255, 0.90);
  --header-height: 64px;
  --header-height-compact: 52px;
  --bottom-nav-height: 58px;
}

/* Dark Theme — Clean Warm Charcoal (Phase 4D-B4-R1) */
html[data-theme="dark"] {
  --bg-page: #171317;
  --bg-surface: #221B21;
  --bg-elevated: #2C232A;
  --bg-glass: rgba(34, 27, 33, 0.84);
  --nav-glass-bg: rgba(34, 27, 33, 0.86);
  --text-primary: #F5EEF2;
  --text-secondary: #C8BAC2;
  --text-muted: #9B8C95;
  --border-soft: rgba(245, 230, 238, 0.10);
  --border-strong: rgba(225, 154, 175, 0.28);
  --brand: #D87D94;
  --brand-hover: #E58FA5;
  --brand-soft: rgba(216, 125, 148, 0.16);
  --success: #6DBE94;
  --success-soft: rgba(60, 140, 100, 0.2);
  --warning: #E0B060;
  --warning-soft: rgba(180, 125, 40, 0.2);
  --danger: #EB7888;
  --danger-soft: rgba(185, 60, 80, 0.2);
  --shadow-soft: 0 4px 18px rgba(0, 0, 0, 0.28);
  --shadow-elevated: 0 16px 40px rgba(0, 0, 0, 0.40);
  --glass-border-color: rgba(255, 235, 242, 0.14);
  --glass-highlight-color: rgba(255, 244, 248, 0.10);

  --color-canvas: var(--bg-page);
  --color-surface: var(--bg-surface);
  --color-surface-subtle: var(--bg-elevated);
  --color-surface-card: var(--bg-surface);
  --color-text-primary: var(--text-primary);
  --color-text-secondary: var(--text-secondary);
  --color-text-muted: var(--text-muted);
  --color-rose: var(--brand);
  --color-rose-hover: var(--brand-hover);
  --color-rose-light: var(--brand-soft);
  --color-rose-subtle: rgba(216, 125, 148, 0.15);
  --color-mauve: #C8A6B3;
  --color-taupe: #9D8991;
  --color-taupe-light: var(--border-soft);
  --color-success: var(--success);
  --color-success-bg: var(--success-soft);
  --color-warning: var(--warning);
  --color-warning-bg: var(--warning-soft);
  --color-danger: var(--danger);
  --color-danger-bg: var(--danger-soft);
  --glass-bg: var(--bg-glass);
  --glass-border: 1px solid var(--glass-border-color);
  --glass-border-subtle: 1px solid var(--border-soft);
  --glass-highlight: inset 0 1px 0 var(--glass-highlight-color);
  --glass-shadow: var(--shadow-elevated);
  --shadow-xs: 0 1px 4px rgba(0, 0, 0, 0.2);
  --shadow-sm: var(--shadow-soft);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: var(--shadow-elevated);
  --shadow-focus: 0 0 0 3px rgba(216, 125, 148, 0.32);
}

body {
  background: var(--bg-page);
  color: var(--text-primary);
}

html.theme-ready body,
html.theme-ready .navbar,
html.theme-ready .mobile-nav,
html.theme-ready .product-card,
html.theme-ready .card-footer,
html.theme-ready .favorite-tile,
html.theme-ready .product-marquee-chip,
html.theme-ready .modal-sheet,
html.theme-ready .modal-price-box,
html.theme-ready .site-footer,
html.theme-ready input,
html.theme-ready select,
html.theme-ready textarea {
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

/* Theme Controls */
.theme-control {
  position: relative;
}
.theme-trigger {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  background: var(--bg-glass);
  color: var(--text-secondary);
  box-shadow: var(--shadow-soft);
  transition: color 180ms ease, border-color 180ms ease, transform 160ms ease, background-color 220ms ease;
}
.theme-trigger:hover {
  color: var(--brand);
  border-color: var(--border-strong);
}
.theme-trigger:active {
  transform: scale(.96);
}
.theme-trigger-icon {
  position: absolute;
  opacity: 0;
  transform: rotate(-12deg) scale(.9);
  transition: opacity 180ms ease, transform 180ms ease;
}
html[data-theme-preference="light"] .theme-icon-light,
html[data-theme-preference="dark"] .theme-icon-dark,
html[data-theme-preference="system"] .theme-icon-system {
  opacity: 1;
  transform: none;
}
.theme-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 9px);
  right: 0;
  width: 154px;
  padding: 6px;
  border: 1px solid var(--glass-border-color);
  border-radius: 14px;
  background: var(--bg-glass);
  box-shadow: var(--shadow-elevated);
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
}
.theme-menu[hidden] {
  display: none;
}
.theme-option {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: .82rem;
  font-weight: 650;
  text-align: left;
}
.theme-option:hover, .theme-option:focus-visible {
  background: var(--brand-soft);
  color: var(--text-primary);
}
.theme-option.is-selected {
  background: var(--brand-soft);
  color: var(--brand);
}
.theme-option-icon {
  width: 20px;
  text-align: center;
  font-size: .95rem;
}

/* ==========================================================================
   TOP NAVIGATION — FLOATING LIQUID GLASS ISLAND (Phase 4D-B4-R1)
   ========================================================================== */
.navbar {
  position: sticky;
  top: 10px;
  z-index: 50;
  margin: 10px 14px 0 14px;
  height: var(--header-height);
  border-radius: 28px;
  background: var(--nav-glass-bg);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  border: 1px solid var(--glass-border-color);
  box-shadow: 0 8px 24px rgba(45, 30, 38, 0.08), inset 0 1px 0 var(--glass-highlight-color);
  transition: transform 260ms cubic-bezier(.22,1,.36,1), background-color 220ms ease, border-color 220ms ease;
  transform: translate3d(0,0,0);
  pointer-events: auto;
}

.navbar .navbar-inner {
  height: 100%;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translate3d(0,0,0) scale(1);
  transform-origin: center;
  transition: transform 260ms cubic-bezier(.22,1,.36,1);
}
.navbar.is-compact { transform: translate3d(0,-2px,0); }
.navbar.is-compact .navbar-inner { transform: translate3d(0,-1px,0) scale(.94); }
.navbar .brand-avatar {
  width: 36px; height: 36px;
  transform: scale(1);
  transition: transform 260ms cubic-bezier(.22,1,.36,1);
}
.navbar.is-compact .brand-avatar { transform: scale(.88); }

.nav-link::before {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--brand);
  opacity: 0;
  transform: scaleX(.5);
  transition: opacity 180ms ease, transform 180ms ease;
}
.nav-link:hover::before, .nav-link.active::before {
  opacity: 1;
  transform: scaleX(1);
}
.nav-link.active::after {
  display: none;
}
.search-button-trigger {
  min-height: 42px;
  background: var(--bg-glass);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  border-radius: var(--radius-pill);
}

@media (min-width: 960px) {
  .navbar {
    max-width: var(--container-max);
    margin: 10px auto 0 auto;
    border-radius: 24px;
  }
}

/* ==========================================================================
   BOTTOM NAVIGATION — FLOATING LIQUID PILL (Phase 4D-B4-R1)
   ========================================================================== */
.mobile-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  width: min(88vw, 400px);
  max-width: 420px;
  height: var(--bottom-nav-height);
  padding: 5px 8px;
  border-radius: 32px;
  background: var(--nav-glass-bg);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  border: 1px solid var(--glass-border-color);
  box-shadow: 0 10px 32px rgba(45, 30, 38, 0.12), inset 0 1px 0 var(--glass-highlight-color);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  isolation: isolate;
  transition: transform 240ms cubic-bezier(.22,1,.36,1), background-color 220ms ease, border-color 220ms ease;
}

.mobile-nav-indicator {
  position: absolute;
  z-index: -1;
  top: 5px;
  bottom: 5px;
  left: 8px;
  width: calc((100% - 16px) / 4);
  border-radius: 24px;
  background: var(--brand-soft);
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 1px 0 var(--glass-highlight-color);
  transform: translate3d(calc(var(--active-index, 0) * 100%), 0, 0);
  transition: transform 300ms cubic-bezier(.22, 1, .36, 1), opacity 180ms ease;
  pointer-events: none;
}

.mobile-nav-indicator.is-hidden {
  opacity: 0;
}

.mobile-nav-item {
  position: relative;
  z-index: 1;
  flex: 1 1 25%;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-secondary);
  font-size: 0.68rem;
  font-weight: 600;
  transition: color 180ms ease, transform 150ms ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item svg {
  width: 19px;
  height: 19px;
  transition: stroke-width 180ms ease, transform 180ms ease;
}

.mobile-nav-item.active {
  color: var(--brand);
  font-weight: 750;
}

.mobile-nav-item.active svg {
  stroke-width: 2.3;
}

.mobile-nav-item:active, .mobile-nav-item.is-pressed {
  transform: scale(0.95);
}

@media (min-width: 960px) {
  .mobile-nav {
    display: none !important;
  }
}

body {
  padding-bottom: calc(var(--bottom-nav-height) + 10px + env(safe-area-inset-bottom, 0px) + 24px);
}

@media (min-width: 960px) {
  body {
    padding-bottom: 0;
  }
}

/* ==========================================================================
   DARK COMPONENT SURFACES & EXCEPTIONS (Phase 4D-B4-R1)
   ========================================================================== */
html[data-theme="dark"] .home-hero-surface {
  background: radial-gradient(circle at 86% 22%, rgba(216,125,148,.12) 0 8%, transparent 30%), linear-gradient(135deg,#241B22 0%,#2E222B 52%,#1C161B 100%);
  border-color: rgba(216,125,148,.2);
  box-shadow: 0 16px 38px rgba(0,0,0,.36);
}
html[data-theme="dark"] .home-hero-title {
  color: var(--text-primary);
}
html[data-theme="dark"] .home-hero-description,
html[data-theme="dark"] .home-hero-micro,
html[data-theme="dark"] .home-hero-count {
  color: var(--text-secondary);
}
html[data-theme="dark"] .home-hero-badge,
html[data-theme="dark"] .home-hero-logo {
  background: rgba(44,35,42,.86);
  color: var(--text-secondary);
  border-color: var(--border-soft);
}

/* Product Cards in Dark Mode */
html[data-theme="dark"] .product-card {
  background: var(--bg-surface);
  border-color: var(--border-soft);
}
html[data-theme="dark"] .card-footer {
  background: var(--bg-elevated) !important;
  border-top-color: var(--border-soft) !important;
}
html[data-theme="dark"] .card-title {
  color: var(--text-primary);
}
html[data-theme="dark"] .card-description,
html[data-theme="dark"] .card-duration {
  color: var(--text-secondary);
}
html[data-theme="dark"] .price-label {
  color: var(--text-muted);
}
html[data-theme="dark"] .price-value {
  color: var(--text-primary);
}
html[data-theme="dark"] .btn-card-action {
  background: var(--brand);
  color: #FFFFFF;
}
html[data-theme="dark"] .btn-card-action:hover {
  background: var(--brand-hover);
}
html[data-theme="dark"] .btn-card-action.disabled {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}
html[data-theme="dark"] .status-badge.out-of-stock {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
}
html[data-theme="dark"] .status-badge.low-stock {
  background: var(--warning-soft);
  color: var(--warning);
}

/* Favorites and Marquee */
html[data-theme="dark"] .favorite-tile {
  background: var(--bg-surface);
  border-color: var(--border-soft);
  backdrop-filter: none;
}
html[data-theme="dark"] .favorite-tile.is-unavailable {
  background: var(--bg-elevated);
}
html[data-theme="dark"] .favorite-logo,
html[data-theme="dark"] .card-logo-holder,
html[data-theme="dark"] .product-card:hover .card-logo-holder,
html[data-theme="dark"] .product-marquee-chip {
  background: #F9F6F7;
  border-color: rgba(255,255,255,.2);
}
html[data-theme="dark"] .product-marquee-chip {
  color: #332A2F;
}
html[data-theme="dark"] .site-footer {
  background: var(--bg-surface);
  border-color: var(--border-soft);
}

/* Quick-View Modal in Dark Mode */
html[data-theme="dark"] .modal-sheet {
  background: var(--bg-surface) !important;
  border-color: var(--border-soft) !important;
  color: var(--text-primary) !important;
}
html[data-theme="dark"] .modal-price-box {
  background: var(--bg-elevated) !important;
  border-color: var(--border-soft) !important;
}
html[data-theme="dark"] .quantity-control-group {
  background: var(--bg-elevated) !important;
  border-color: var(--border-soft) !important;
}
html[data-theme="dark"] .btn-qty-minus,
html[data-theme="dark"] .btn-qty-plus {
  color: var(--text-primary) !important;
}
html[data-theme="dark"] #modal-input-quantity {
  color: var(--text-primary) !important;
  background: transparent !important;
}
html[data-theme="dark"] .modal-contact-section {
  background: var(--bg-elevated) !important;
  border-color: var(--border-soft) !important;
}
html[data-theme="dark"] .modal-sheet > div:last-child {
  background: var(--bg-surface) !important;
  border-top-color: var(--border-soft) !important;
}
html[data-theme="dark"] .btn-close-modal {
  background: rgba(255,255,255,.08);
}
html[data-theme="dark"] .floating-summary-card {
  background: rgba(40,33,38,.96) !important;
  border-color: var(--border-soft) !important;
}
html[data-theme="dark"] input:not([type="hidden"]),
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background-color: var(--bg-elevated) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-soft) !important;
  color-scheme: dark;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: var(--text-muted) !important;
}
html[data-theme="dark"] #catalog-search-input:focus {
  background: var(--bg-elevated) !important;
}
html[data-theme="dark"] .modal-warning-box {
  background: var(--danger-soft) !important;
  border-color: rgba(235,120,136,.28) !important;
}
html[data-theme="dark"] .modal-warning-box * {
  color: var(--text-secondary) !important;
}

/* Soft maintenance notice: operational, calm, and contained below buyer header. */
.maintenance-notice {
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 18px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-primary);
  background: color-mix(in srgb, var(--brand-soft) 60%, var(--bg-surface));
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}
.maintenance-notice__icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--brand);
  background: var(--brand-soft);
}
.maintenance-notice__icon svg { width: 18px; height: 18px; }
.maintenance-notice__content { min-width: 0; }
.maintenance-notice__title { display: block; font: 700 .93rem/1.2 var(--font-family-body); }
.maintenance-notice__message { margin: 4px 0 9px; max-width: 62ch; color: var(--text-secondary); font-size: .84rem; line-height: 1.48; }
.maintenance-notice__state { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 9px; border-radius: 999px; color: var(--warning); background: var(--warning-soft); font-size: .72rem; font-weight: 700; }
@media (max-width: 430px) {
  .maintenance-notice { width: calc(100% - 24px); margin: 10px auto 14px; padding: 13px; gap: 10px; }
  .maintenance-notice__title { font-size: .88rem; }
  .maintenance-notice__message { font-size: .8rem; }
}
html[data-theme="dark"] .modal-warranty-box {
  background: var(--brand-soft) !important;
  border-color: var(--border-soft) !important;
}
html[data-theme="dark"] .modal-warranty-box * {
  color: var(--text-secondary) !important;
}
html[data-theme="dark"] .skeleton {
  background: linear-gradient(90deg,#2b2328 25%,#3a2e35 50%,#2b2328 75%);
  background-size: 200% 100%;
}

/* Order / QRIS Compatibility */
html[data-theme="dark"] #qris-main-card,
html[data-theme="dark"] .qris-card-box {
  background: var(--bg-surface) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-soft) !important;
  box-shadow: var(--shadow-elevated) !important;
}
html[data-theme="dark"] .qr-solid-container {
  background: #FFFFFF !important;
  color: #241E22 !important;
  display: inline-block;
  padding: 12px;
  border-radius: 12px;
}
html[data-theme="dark"] .qr-solid-container * {
  color: #241E22 !important;
}

/* Responsive Navigation */
@media (max-width: 767px) {
  .search-button-trigger {
    width: 42px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .search-button-trigger span {
    display: none;
  }
  .nav-actions {
    gap: .45rem;
  }
  .container.navbar-inner {
    padding-inline: 14px;
  }
}
@media (min-width: 768px) and (max-width: 959px) {
  body {
    padding-bottom: calc(var(--bottom-nav-height) + 10px + env(safe-area-inset-bottom, 0px) + 24px);
  }
  .nav-links {
    display: none;
  }
  .mobile-nav {
    display: flex;
  }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .search-button-trigger {
    width: 42px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .search-button-trigger span {
    display: none;
  }
}
@media (min-width: 960px) {
  body {
    padding-bottom: 0;
  }
  .nav-links {
    display: flex;
    gap: clamp(.8rem, 1.4vw, 1.5rem);
  }
  .mobile-nav {
    display: none !important;
  }
}
@media (max-width: 374px) {
  .brand {
    gap: .45rem;
  }
  .brand-title {
    font-size: 1.02rem;
  }
  .brand-badge {
    font-size: .56rem;
    padding-inline: .35rem;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html.theme-ready *, html.theme-ready *::before, html.theme-ready *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
  .home-motion-ready .product-grid .product-card {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .mobile-nav-indicator, .navbar, .navbar .brand-avatar, .theme-trigger-icon {
    transition: none !important;
  }
  .mobile-nav-item:active, .mobile-nav-item.is-pressed {
    transform: none;
  }
}

/* Glass Fallbacks */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .navbar,
  .mobile-nav,
  .theme-menu {
    background: var(--bg-surface);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .navbar,
  .mobile-nav,
  .theme-menu {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: var(--bg-surface);
  }
}
