/* ============================================
   DESIGN SYSTEM — Pro Niche Site Agent
   Niche: luxury baby strollers and premium infant travel systems | Brand: SilverCross Store
   Taste-Skill: DESIGN_VARIANCE=8 MOTION_INTENSITY=6 VISUAL_DENSITY=4
   ============================================ */

/* ── 1. GOOGLE FONTS (Outfit — taste-skill approved, Inter BANNED) ── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;600;700&display=swap');

/* ── 2. CSS CUSTOM PROPERTIES ── */
:root {
  /* Brand Colors */
  --color-primary: #1a1a2e;
  --color-primary-hover: #16213e;
  --color-accent: #c9a84c;
  --color-accent-hover: #e8c97a;
  --color-accent-light: color-mix(in srgb, #c9a84c 12%, transparent);

  /* Text — Off-black only, never pure #000 (taste-skill rule) */
  --color-text: #1a1a1a;
  --color-text-muted: #6b7280;
  --color-text-light: #9ca3af;
  --color-text-inverse: #ffffff;

  /* Backgrounds */
  --color-bg: #ffffff;
  --color-bg-soft: #faf9f7;
  --color-bg-card: #f5f3ef;
  --color-bg-overlay: rgba(0, 0, 0, 0.5);

  /* Semantic */
  --color-success: #10b981;
  --color-success-bg: #ecfdf5;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-error-bg: #fef2f2;

  /* Borders */
  --color-border: #e5e7eb;
  --color-border-strong: #d1d5db;
  --color-border-focus: var(--color-accent);

  /* Typography — taste-skill: Outfit font, not Inter */
  --font-heading: 'Outfit', 'Geist', system-ui, sans-serif;
  --font-body: 'Outfit', 'Geist', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Fluid type scale */
  --text-xs: clamp(0.72rem, 1.4vw, 0.78rem);
  --text-sm: clamp(0.85rem, 1.7vw, 0.9rem);
  --text-base: clamp(1rem, 2vw, 1.05rem);
  --text-lg: clamp(1.1rem, 2.2vw, 1.2rem);
  --text-xl: clamp(1.25rem, 2.5vw, 1.35rem);
  --text-2xl: clamp(1.5rem, 3vw, 1.75rem);
  --text-3xl: clamp(1.875rem, 4vw, 2.25rem);
  --text-4xl: clamp(2.25rem, 5vw, 3rem);
  --text-5xl: clamp(3rem, 6vw, 4.5rem);

  /* Spacing — 8px grid */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 2.5rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --space-10: 5rem;
  --space-12: 6rem;
  --space-16: 8rem;
  --space-20: 10rem;

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1400px;

  /* Border Radius — rounded-[2.5rem] per taste-skill Bento paradigm */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-3xl: 40px;
  --radius-full: 9999px;

  /* Shadows — diffusion shadow per taste-skill, tinted to bg hue */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.07), 0 4px 6px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.08), 0 10px 10px rgba(0,0,0,0.03);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
  --shadow-diffusion: 0 20px 40px -15px rgba(0,0,0,0.05);
  --shadow-card-hover: 0 20px 40px rgba(0,0,0,0.10);

  /* Transitions — Spring physics cubic bezier (taste-skill: no linear) */
  --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 250ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-spring: 500ms cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Z-index — systemic layers only (taste-skill rule) */
  --z-below: -1;
  --z-base: 0;
  --z-raised: 10;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
}

/* ── 3. RESET ── */
*, *::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-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

input, button, textarea, select { font: inherit; }

p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }

ul[role='list'], ol[role='list'] { list-style: none; }

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--color-accent-hover); }

::selection {
  background-color: var(--color-accent);
  color: white;
}

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

/* ── 4. TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
  letter-spacing: -0.025em;
}

/* taste-skill: tracking-tighter for display text */
h1 { font-size: var(--text-4xl); letter-spacing: -0.04em; font-weight: 800; }
h2 { font-size: var(--text-3xl); letter-spacing: -0.03em; }
h3 { font-size: var(--text-2xl); letter-spacing: -0.02em; }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p { margin-bottom: var(--space-2); line-height: 1.75; max-width: 65ch; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }

/* ── 5. LAYOUT ── */
.container {
  width: 100%;
  max-width: var(--container-2xl);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (max-width: 768px) {
  .container { padding-inline: var(--space-2); }
}

.section { padding-block: var(--space-16); }
.section-sm { padding-block: var(--space-8); }
.section-lg { padding-block: var(--space-20); }

/* CSS Grid — taste-skill: Grid over flex-math */
.grid { display: grid; gap: var(--space-4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }

/* taste-skill: Asymmetric zig-zag (DESIGN_VARIANCE=8) */
.grid-asymmetric { grid-template-columns: 2fr 1fr; }
.grid-asymmetric-r { grid-template-columns: 1fr 2fr; }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4, .grid-asymmetric, .grid-asymmetric-r {
    grid-template-columns: 1fr;
  }
}

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }

/* ── 6. NAVIGATION ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
  transition: box-shadow var(--transition-base), background var(--transition-base);
}

/* Glassmorphism refraction — taste-skill: inner 1px border */
.site-nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md), inset 0 -1px 0 rgba(255,255,255,0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-3);
  gap: var(--space-4);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary);
  text-decoration: none;
  flex-shrink: 0;
  letter-spacing: -0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

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

/* Dropdown */
.has-dropdown { position: relative; }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 220px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-1);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), transform var(--transition-base);
  z-index: var(--z-dropdown);
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text);
}

.dropdown a:hover {
  background: var(--color-bg-soft);
  color: var(--color-accent);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  border-radius: var(--radius-md);
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition-base);
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
}
.nav-drawer.open { display: block; }

.nav-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.nav-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 100vw);
  height: 100%;
  background: white;
  padding: var(--space-6) var(--space-4);
  overflow-y: auto;
  animation: slideInRight var(--transition-spring) both;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── 7. BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7em 1.5em;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: 1;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition-base);
  /* taste-skill: tactile feedback — scale on :active */
}

/* Spring physics hover (taste-skill MOTION_INTENSITY=6) */
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(-1px) scale(0.98); }

.btn-primary {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
  box-shadow: 0 8px 20px rgba(201, 168, 76, 0.3);
}

.btn-accent {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}
.btn-accent:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 8px 20px rgba(201, 168, 76, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: white;
}

.btn-ghost {
  background: var(--color-bg-soft);
  color: var(--color-text);
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--color-bg-card);
  border-color: var(--color-border);
}

.btn-whatsapp {
  background: #25d366;
  color: white;
  border-color: #25d366;
}
.btn-whatsapp:hover {
  background: #1ebe5d;
}

.btn-lg { padding: 0.9em 2em; font-size: var(--text-base); }
.btn-sm { padding: 0.5em 1.1em; font-size: var(--text-xs); }
.btn-full { width: 100%; }

/* ── 8. HERO — Left-aligned asymmetric (taste-skill: ANTI-CENTER BIAS) ── */
.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 100dvh;
  max-height: 700px;
  background: var(--color-primary);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
}

.hero-slide.active { opacity: 1; }

.hero-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* taste-skill: stylistic fade into background */
}

/* Asymmetric gradient overlay — left content, right image fades (taste-skill rule) */
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(26, 26, 46, 0.88) 0%,
    rgba(26, 26, 46, 0.60) 45%,
    rgba(26, 26, 46, 0.10) 100%
  );
}

.hero-slide-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding: var(--space-8) var(--space-8);
  color: white;
  /* taste-skill: left-aligned hero content */
}

.hero-slide-content h1,
.hero-slide-content h2 {
  font-size: var(--text-5xl);
  font-weight: 800;
  color: white;
  margin-bottom: var(--space-3);
  letter-spacing: -0.04em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.hero-slide-content p {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.88);
  margin-bottom: var(--space-5);
  max-width: 50ch;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.35);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.hero-dots {
  position: absolute;
  bottom: var(--space-6);
  left: var(--space-8);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
}
.hero-dot.active {
  width: 28px;
  background: var(--color-accent);
}

@media (max-width: 768px) {
  .hero-slider { min-height: 500px; max-height: 600px; }
  .hero-slide-content { padding: var(--space-4); }
  .hero-slide-content h1,
  .hero-slide-content h2 { font-size: var(--text-3xl); }
  .hero-dots { left: var(--space-4); }
}

/* ── 9. TRUST BAR ── */
.trust-bar {
  background: var(--color-bg-soft);
  border-block: 1px solid var(--color-border);
  padding-block: var(--space-3);
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
}

.trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* ── 10. PRODUCT CARDS — Spotlight border + parallax tilt (taste-skill) ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: var(--space-4);
}

.product-card {
  background: var(--color-bg);
  border: 1px solid rgba(229,231,235,0.6);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  /* taste-skill: diffusion shadow */
  box-shadow: var(--shadow-diffusion);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  display: flex;
  flex-direction: column;
  /* Hardware acceleration */
  will-change: transform;
}

.product-card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.10), inset 0 0 0 1px rgba(201,168,76,0.15);
  transform: translateY(-6px);
}

.product-card-image-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-bg-soft);
  text-decoration: none;
}

.product-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card-image-wrap img {
  transform: scale(1.07);
}

.product-badge {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  background: var(--color-accent);
  color: white;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-badge-sale {
  background: #ef4444;
}

.product-card-body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.product-card-name {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.01em;
}

.product-card-price {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -0.02em;
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.stars { color: #f59e0b; letter-spacing: 1px; font-size: 0.9em; }
.product-card-btn { margin-top: auto; }

/* ── 11. COLLECTION CARDS ── */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: var(--space-4);
}

.collection-card {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  display: block;
  text-decoration: none;
  will-change: transform;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.collection-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 24px 48px rgba(0,0,0,0.14);
}

.collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.collection-card:hover img { transform: scale(1.06); }

.collection-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26,26,46,0.85) 0%,
    rgba(26,26,46,0.2) 60%,
    transparent 100%
  );
}

.collection-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4);
  color: white;
}

.collection-card-content h3 {
  color: white;
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.collection-card-content span {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
}

/* ── 12. FOOTER ── */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.7);
  padding-top: var(--space-12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-8);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 800;
  color: white;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-2);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--space-4);
  max-width: 30ch;
}

.footer-social {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  transition: all var(--transition-base);
  border: 1px solid rgba(255,255,255,0.08);
}

.social-link:hover {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.footer-col h4 {
  color: white;
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--space-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.footer-links-list a {
  color: rgba(255,255,255,0.6);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-links-list a:hover {
  color: var(--color-accent);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,0.65);
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-accent);
}

.footer-contact-item a {
  color: rgba(255,255,255,0.65);
}
.footer-contact-item a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-block: var(--space-4);
  margin-top: var(--space-10);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
}

.footer-legal-links {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: rgba(255,255,255,0.4);
  font-size: var(--text-xs);
  transition: color var(--transition-fast);
}
.footer-legal-links a:hover { color: rgba(255,255,255,0.7); }

/* ── 13. PRODUCT PAGE LAYOUT ── */
.product-page-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: start;
  margin-block: var(--space-6);
}

@media (max-width: 768px) {
  .product-page-layout { grid-template-columns: 1fr; gap: var(--space-4); }
}

.product-main-image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--color-bg-soft);
}

.product-price-block {
  margin-block: var(--space-3);
}

.product-price-main {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: -0.03em;
}

.product-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-block: var(--space-3);
}

.product-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.feature-check {
  color: var(--color-accent);
  font-weight: 700;
  flex-shrink: 0;
}

.product-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-4);
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
}

/* ── 14. BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  padding-top: var(--space-3);
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: 6px;
  color: var(--color-text-light);
}

.breadcrumb a {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb li:last-child { color: var(--color-text); font-weight: 500; }

/* ── 15. FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 1px; }

.faq-item {
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  overflow: hidden;
  margin-bottom: 8px;
  transition: box-shadow var(--transition-fast);
}

.faq-item:has(.faq-question[aria-expanded="true"]) {
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  transition: color var(--transition-fast);
}

.faq-question:hover { color: var(--color-accent); }

.faq-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
  color: var(--color-text-muted);
}

.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }

.faq-answer {
  display: none;
  padding: 0 var(--space-4) var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.75;
}

.faq-answer.open { display: block; }
.faq-answer p { max-width: none; }

/* ── 16. CONTENT/PROSE ── */
.prose {
  max-width: 75ch;
}

.prose h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.prose h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

.prose p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.prose ul, .prose ol {
  padding-left: var(--space-4);
  margin-bottom: var(--space-3);
}

.prose li {
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
}

.prose table th, .prose table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.prose table th {
  font-weight: 600;
  background: var(--color-bg-soft);
  color: var(--color-text);
}

.prose table tr:hover td {
  background: var(--color-bg-soft);
}

/* ── 17. CALLOUTS ── */
.callout {
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  margin-block: var(--space-4);
  border-left: 4px solid;
}

.callout-tip {
  background: #fefce8;
  border-color: #eab308;
}

.callout-info {
  background: var(--color-bg-soft);
  border-color: var(--color-accent);
}

.callout-title {
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: 8px !important;
  color: var(--color-text);
}

/* ── 18. TOC + QUICK ANSWER ── */
.toc {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  margin-block: var(--space-5);
}

.toc-title {
  font-weight: 700;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.toc-list {
  padding-left: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc-list li { font-size: var(--text-sm); }

.quick-answer {
  background: linear-gradient(135deg, var(--color-bg-soft), var(--color-bg-card));
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  margin-block: var(--space-4);
}

.quick-answer-label {
  font-weight: 700;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 8px;
}

/* ── 19. AUTHOR BOX ── */
.author-box {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-5);
  margin-top: var(--space-8);
}

.author-box h4 {
  font-size: var(--text-lg);
  margin-bottom: 4px;
}

.author-credential {
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: var(--space-1) !important;
}

.author-bio {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: none;
}

@media (max-width: 600px) {
  .author-box { flex-direction: column; }
}

/* ── 20. REVEAL ANIMATIONS (taste-skill: staggered orchestration) ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

.stagger-child:nth-child(1) { transition-delay: 0ms; }
.stagger-child:nth-child(2) { transition-delay: 80ms; }
.stagger-child:nth-child(3) { transition-delay: 160ms; }
.stagger-child:nth-child(4) { transition-delay: 240ms; }
.stagger-child:nth-child(5) { transition-delay: 320ms; }
.stagger-child:nth-child(6) { transition-delay: 400ms; }
.stagger-child:nth-child(7) { transition-delay: 480ms; }
.stagger-child:nth-child(8) { transition-delay: 560ms; }

.animate-fadeInUp {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* Kinetic marquee (taste-skill typography animation) */
.marquee-track {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: flex;
  gap: var(--space-6);
  animation: marquee 20s linear infinite;
}

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

/* ── 21. SKELETON SHIMMER ── */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-bg-soft) 25%,
    var(--color-bg-card) 50%,
    var(--color-bg-soft) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

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

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: white;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  z-index: var(--z-sticky);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  transition: all var(--transition-base);
}

.back-to-top:hover {
  background: var(--color-accent);
  transform: translateY(-3px);
}

/* ── E-COMMERCE CART & CHECKOUT ── */
.cart-page-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-6);
  align-items: start;
}
@media (max-width: 1024px) {
  .cart-page-layout { grid-template-columns: 1fr; }
}

.cart-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-3);
  box-shadow: var(--shadow-sm);
}
.cart-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.cart-item-details { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.cart-item-title { font-weight: 700; font-size: var(--text-lg); }
.cart-item-price { color: var(--color-accent); font-weight: 600; font-size: var(--text-base); margin-top: 4px; }
.cart-item-remove { color: var(--color-error); font-size: var(--text-sm); font-weight: 600; cursor: pointer; margin-top: auto; align-self: flex-start; background: none; border: none; padding: 0; }

.cart-summary {
  background: var(--color-bg-soft);
  padding: var(--space-5);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-border);
  position: sticky;
  top: 100px;
}
.cart-summary-row { display: flex; justify-content: space-between; margin-bottom: var(--space-3); font-size: var(--text-base); }
.cart-summary-total { display: flex; justify-content: space-between; font-size: var(--text-xl); font-weight: 800; margin-top: var(--space-3); padding-top: var(--space-3); border-top: 2px solid var(--color-border); }

.checkout-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: var(--text-sm); }
.checkout-form input, .checkout-form select { width: 100%; padding: 0.9rem 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); font-family: inherit; margin-bottom: var(--space-3); }
.nav-cart { position: relative; display: flex; align-items: center; gap: 4px; font-weight: 600; color: var(--color-text); text-decoration: none; }
.nav-cart-badge { position: absolute; top: -8px; right: -12px; background: var(--color-accent); color: white; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
