/* ============================================
   THE WORM MASTER GARDEN — Design System
   Niche: Outdoor Garden & Patio Furniture
   Palette: Forest green, warm terracotta, natural cream
   ============================================ */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); color: var(--color-text-primary); background: var(--color-bg); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* --- CSS Variables --- */
:root {
  --color-bg: #FAF7F2;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F2EDE4;
  --color-border: #E0D9CC;
  --color-text-primary: #2D2A24;
  --color-text-secondary: #5C564B;
  --color-text-muted: #8A8275;
  --color-accent: #3D6B3D;
  --color-accent-hover: #2F5630;
  --color-accent-fg: #FFFFFF;
  --color-accent-light: #E8F0E4;
  --color-terracotta: #C26B4A;
  --color-terracotta-hover: #A85638;
  --color-terracotta-light: #F5E6DE;
  --color-gold: #B8924A;
  --color-success: #3D8B3D;
  --color-warning: #D4961E;
  --color-error: #C2453D;
  --color-sale: #C2453D;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(45,42,36,0.08);
  --shadow-md: 0 4px 12px rgba(45,42,36,0.10);
  --shadow-lg: 0 12px 32px rgba(45,42,36,0.14);

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  --container-max: 1280px;
  --header-height: 72px;
}

/* --- Accessibility --- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* --- Container --- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-lg); width: 100%; }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm); padding: 12px 28px; font-size: 14px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; border-radius: var(--radius-sm); transition: all var(--transition-base); cursor: pointer; white-space: nowrap; border: 2px solid transparent; }
.btn-primary { background: var(--color-accent); color: var(--color-accent-fg); border-color: var(--color-accent); }
.btn-primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--color-terracotta); color: #fff; border-color: var(--color-terracotta); }
.btn-secondary:hover { background: var(--color-terracotta-hover); border-color: var(--color-terracotta-hover); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--color-text-primary); border-color: var(--color-border); }
.btn-ghost:hover { background: var(--color-surface-alt); border-color: var(--color-text-secondary); }
.btn-lg { padding: 16px 40px; font-size: 16px; }
.btn-sm { padding: 8px 18px; font-size: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* --- Badges --- */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; border-radius: var(--radius-sm); }
.badge-sale { background: var(--color-sale); color: #fff; }
.badge-new { background: var(--color-accent); color: #fff; }
.badge-out { background: var(--color-text-muted); color: #fff; }
.badge-count { background: var(--color-terracotta); color: #fff; border-radius: var(--radius-full); min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; padding: 0 6px; }

/* --- Announcement Bar --- */
.announcement-bar { background: var(--color-accent); color: #fff; text-align: center; padding: 10px var(--space-lg); font-size: 13px; font-weight: 500; letter-spacing: 0.02em; }
.announcement-bar strong { font-weight: 700; }

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 0 rgba(45, 42, 36, 0.04), 0 4px 16px rgba(45, 42, 36, 0.04);
  height: var(--header-height);
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: var(--space-md);
  min-height: var(--header-height);
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -0.02em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 4px 0;
}
.nav-logo span { color: var(--color-terracotta); }
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 var(--space-sm);
}
.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: 8px 10px;
  white-space: nowrap;
  line-height: 1.2;
  border-radius: var(--radius-sm);
}
.nav-link:hover { color: var(--color-accent); }
.nav-link.active { color: var(--color-accent); font-weight: 600; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 10px;
  right: 10px;
  width: auto;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-base);
  border-radius: 2px;
}
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); width: auto; }
.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-sm);
  flex-shrink: 0;
}
.nav-icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
  position: relative;
  flex-shrink: 0;
}
.nav-icon-btn:hover { background: var(--color-surface-alt); color: var(--color-accent); }
.nav-icon-btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.nav-cart-count { position: absolute; top: 2px; right: 2px; }

/* --- Hamburger / Mobile Menu --- */
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.hamburger:hover { background: var(--color-surface-alt); }
.hamburger:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.hamburger span {
  width: 20px;
  height: 2px;
  background: var(--color-text-primary);
  transition: all var(--transition-base);
  border-radius: 2px;
  display: block;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-surface);
  z-index: 99;
  padding: var(--space-lg) var(--space-lg) var(--space-xl);
  transform: translateX(-100%);
  transition: transform var(--transition-base);
  overflow-y: auto;
  border-top: 1px solid var(--color-border);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-link {
  display: block;
  padding: 14px 4px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-primary);
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}
.mobile-menu-link:hover,
.mobile-menu-link:focus-visible {
  color: var(--color-accent);
  padding-left: 8px;
  outline: none;
}

/* --- Search Bar --- */
.search-bar {
  position: relative;
  width: 200px;
  max-width: 28vw;
  flex-shrink: 1;
}
.search-input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 38px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface-alt);
  font-size: 13px;
  line-height: 1;
  transition: all var(--transition-fast);
  color: var(--color-text-primary);
}
.search-input::placeholder { color: var(--color-text-muted); }
.search-input:focus {
  border-color: var(--color-accent);
  background: var(--color-surface);
  box-shadow: 0 0 0 3px var(--color-accent-light);
  outline: none;
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 280px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 400px;
  overflow-y: auto;
  z-index: 200;
  display: none;
}
.search-results.show { display: block; }
.search-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-fast);
  cursor: pointer;
}
.search-item:hover,
.search-item:focus-visible { background: var(--color-surface-alt); outline: none; }
.search-item:last-child { border-bottom: none; }
.search-item img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.search-item-info h4 { font-size: 14px; font-weight: 600; color: var(--color-text-primary); margin-bottom: 2px; }
.search-item-info p { font-size: 13px; color: var(--color-accent); font-weight: 600; }
.search-empty { padding: var(--space-xl); text-align: center; color: var(--color-text-muted); font-size: 14px; }

/* --- Hero --- */
.hero { position: relative; min-height: 600px; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(45,42,36,0.65) 0%, rgba(61,107,61,0.45) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; padding: var(--space-3xl) 0; max-width: 640px; }
.hero-eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: #E8F0E4; margin-bottom: var(--space-md); padding: 6px 16px; background: rgba(255,255,255,0.15); border-radius: var(--radius-full); backdrop-filter: blur(8px); }
.hero-title { font-family: var(--font-heading); font-size: clamp(36px, 6vw, 64px); font-weight: 700; color: #fff; line-height: 1.1; margin-bottom: var(--space-md); letter-spacing: -0.02em; }
.hero-subtitle { font-size: 18px; color: rgba(255,255,255,0.9); margin-bottom: var(--space-xl); line-height: 1.6; max-width: 520px; }
.hero-actions { display: flex; gap: var(--space-md); flex-wrap: wrap; }

/* --- Sections --- */
.section { padding: var(--space-2xl) 0; }
.section-alt { background: var(--color-surface-alt); }
.section-header { text-align: center; margin-bottom: var(--space-xl); }
.section-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--color-terracotta); margin-bottom: var(--space-sm); }
.section-title { font-family: var(--font-heading); font-size: clamp(28px, 4vw, 42px); font-weight: 700; color: var(--color-text-primary); line-height: 1.2; letter-spacing: -0.01em; }
.section-subtitle { font-size: 16px; color: var(--color-text-secondary); margin-top: var(--space-sm); max-width: 600px; margin-left: auto; margin-right: auto; }

/* --- Grids --- */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-lg); }

/* --- Product Card --- */
.product-card { background: var(--color-surface); border-radius: var(--radius-md); overflow: hidden; transition: all var(--transition-base); border: 1px solid var(--color-border); display: flex; flex-direction: column; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--color-accent-light); }
.product-card-img { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--color-surface-alt); }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-badges { position: absolute; top: var(--space-sm); left: var(--space-sm); display: flex; flex-direction: column; gap: 4px; z-index: 1; }
.product-card-body { padding: var(--space-md); display: flex; flex-direction: column; gap: var(--space-sm); flex: 1; }
.product-card-vendor { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); }
.product-card-title { font-size: 15px; font-weight: 600; color: var(--color-text-primary); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-title a:hover { color: var(--color-accent); }
.product-card-price-wrap { display: flex; align-items: center; gap: var(--space-sm); margin-top: auto; }
.product-card-price { font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--color-accent); }
.product-card-compare-price { font-family: var(--font-mono); font-size: 14px; color: var(--color-text-muted); text-decoration: line-through; }
.product-card-atc { margin-top: var(--space-sm); width: 100%; padding: 10px; font-size: 13px; }
.product-card-rating { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--color-text-muted); }
.product-card-rating .stars { color: var(--color-gold); letter-spacing: 1px; }

/* --- Collection Card --- */
.collection-card { position: relative; aspect-ratio: 4/3; border-radius: var(--radius-md); overflow: hidden; display: block; }
.collection-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.collection-card:hover img { transform: scale(1.08); }
.collection-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(45,42,36,0.75) 0%, rgba(45,42,36,0.2) 60%, transparent 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: var(--space-lg); }
.collection-card-title { font-family: var(--font-heading); font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.collection-card-count { font-size: 13px; color: rgba(255,255,255,0.85); }

/* --- Blog Card --- */
.blog-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--color-accent-light);
}
.blog-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  display: block;
  background: var(--color-surface-alt);
  flex-shrink: 0;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}
.blog-card-meta {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}
.blog-card-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}
.blog-card-title a:hover { color: var(--color-accent); }
.blog-card-excerpt {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.blog-card-readmore {
  display: inline-flex;
  align-items: center;
  margin-top: var(--space-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  transition: gap var(--transition-fast), color var(--transition-fast);
  gap: 4px;
}
.blog-card-readmore:hover { color: var(--color-accent-hover); gap: 8px; }
.blog-listing-grid,
.blog-related-grid {
  align-items: stretch;
}
.blog-listing-grid .blog-card,
.blog-related-grid .blog-card {
  height: 100%;
}

/* --- Trust Badges --- */
.trust-badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); padding: var(--space-xl) 0; }
.trust-item { text-align: center; padding: var(--space-lg); }
.trust-item-icon { width: 48px; height: 48px; margin: 0 auto var(--space-sm); display: flex; align-items: center; justify-content: center; background: var(--color-accent-light); border-radius: var(--radius-full); color: var(--color-accent); }
.trust-item-title { font-size: 14px; font-weight: 700; color: var(--color-text-primary); margin-bottom: 4px; }
.trust-item-desc { font-size: 12px; color: var(--color-text-muted); }

/* --- Breadcrumb --- */
.breadcrumb { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-md) 0; font-size: 13px; color: var(--color-text-muted); flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb-sep { color: var(--color-border); }
.breadcrumb-item-current { color: var(--color-text-secondary); font-weight: 500; }

/* --- Product Page Layout --- */
.product-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); padding: var(--space-lg) 0 var(--space-2xl); }
.product-gallery { display: flex; flex-direction: column; gap: var(--space-md); }
.gallery-main-wrap { position: relative; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface-alt); border: 1px solid var(--color-border); }
.gallery-main-wrap img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-thumbs { display: flex; gap: var(--space-sm); overflow-x: auto; padding-bottom: 4px; }
.gallery-thumb { width: 80px; height: 80px; flex-shrink: 0; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; cursor: pointer; transition: border-color var(--transition-fast); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--color-accent); }
.gallery-thumb:hover { border-color: var(--color-accent-hover); }
.product-info { display: flex; flex-direction: column; gap: var(--space-md); }
.product-vendor { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-terracotta); }
.product-title { font-family: var(--font-heading); font-size: clamp(26px, 4vw, 36px); font-weight: 700; color: var(--color-text-primary); line-height: 1.2; letter-spacing: -0.01em; }
.product-rating-row { display: flex; align-items: center; gap: var(--space-sm); }
.rating-stars { color: var(--color-gold); font-size: 16px; letter-spacing: 2px; }
.rating-text { font-size: 13px; color: var(--color-text-muted); }
.product-price-wrap { display: flex; align-items: baseline; gap: var(--space-md); }
.product-price { font-family: var(--font-mono); font-size: 28px; font-weight: 700; color: var(--color-accent); }
.product-compare-price { font-family: var(--font-mono); font-size: 20px; color: var(--color-text-muted); text-decoration: line-through; }
.product-savings { background: var(--color-terracotta-light); color: var(--color-terracotta); padding: 4px 10px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 700; }
.product-short-desc { font-size: 15px; color: var(--color-text-secondary); line-height: 1.7; padding: var(--space-md) 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }

/* --- Option Selectors --- */
.option-group { display: flex; flex-direction: column; gap: var(--space-sm); }
.option-label { font-size: 13px; font-weight: 600; color: var(--color-text-primary); }
.option-label span { color: var(--color-text-muted); font-weight: 400; }
.option-btns { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.option-btn { padding: 8px 18px; border: 2px solid var(--color-border); border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; color: var(--color-text-secondary); background: var(--color-surface); transition: all var(--transition-fast); cursor: pointer; }
.option-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.option-btn.active { border-color: var(--color-accent); background: var(--color-accent); color: #fff; }
.option-btn.unavailable { opacity: 0.4; text-decoration: line-through; cursor: not-allowed; }

/* --- Quantity Control --- */
.qty-control { display: inline-flex; align-items: center; border: 2px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; }
.qty-btn { width: 40px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--color-text-secondary); transition: background var(--transition-fast); }
.qty-btn:hover { background: var(--color-surface-alt); color: var(--color-accent); }
.qty-input { width: 56px; height: 44px; text-align: center; border: none; border-left: 2px solid var(--color-border); border-right: 2px solid var(--color-border); font-size: 15px; font-weight: 600; color: var(--color-text-primary); background: var(--color-surface); }
.qty-input:focus { outline: none; }

/* --- Availability --- */
.availability-msg { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.availability-msg.in-stock { color: var(--color-success); }
.availability-msg.out-stock { color: var(--color-error); }

/* --- Product Actions --- */
.product-actions { display: flex; gap: var(--space-md); flex-wrap: wrap; }
.product-actions .btn { flex: 1; min-width: 180px; }

/* --- Accordions --- */
.product-accordions { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--color-border); margin-top: var(--space-md); }
.accordion { border-bottom: 1px solid var(--color-border); }
.accordion-header { width: 100%; padding: var(--space-md) 0; display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 600; color: var(--color-text-primary); text-align: left; cursor: pointer; transition: color var(--transition-fast); }
.accordion-header:hover { color: var(--color-accent); }
.accordion-icon { font-size: 20px; color: var(--color-text-muted); transition: transform var(--transition-base); }
.accordion.open .accordion-icon { transform: rotate(45deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height var(--transition-slow); }
.accordion.open .accordion-body { max-height: 2000px; }
.accordion-body-inner { padding: 0 0 var(--space-md); font-size: 14px; color: var(--color-text-secondary); line-height: 1.7; }
.accordion-body-inner h3 { font-size: 16px; font-weight: 600; color: var(--color-text-primary); margin: var(--space-md) 0 var(--space-sm); }
.accordion-body-inner ul { list-style: disc; padding-left: var(--space-lg); margin: var(--space-sm) 0; }
.accordion-body-inner li { margin-bottom: 4px; }
.accordion-body-inner p { margin-bottom: var(--space-sm); }

/* --- Sticky ATC --- */
.sticky-atc { position: fixed; bottom: 0; left: 0; right: 0; background: var(--color-surface); border-top: 1px solid var(--color-border); box-shadow: 0 -4px 16px rgba(45,42,36,0.08); padding: var(--space-md) var(--space-lg); z-index: 90; display: flex; align-items: center; gap: var(--space-md); transform: translateY(100%); transition: transform var(--transition-base); }
.sticky-atc.visible { transform: translateY(0); }
.sticky-atc-product { display: flex; align-items: center; gap: var(--space-md); flex: 1; min-width: 0; }
.sticky-atc-product img { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.sticky-atc-product-info { min-width: 0; }
.sticky-atc-product-info h4 { font-size: 14px; font-weight: 600; color: var(--color-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-atc-product-info p { font-size: 15px; font-weight: 700; color: var(--color-accent); font-family: var(--font-mono); }

/* --- Reviews Section --- */
.reviews-section { padding: var(--space-xl) 0; }
.reviews-summary { display: flex; flex-direction: column; gap: var(--space-md); padding: var(--space-lg); background: var(--color-surface-alt); border-radius: var(--radius-md); margin-bottom: var(--space-lg); }
.reviews-avg { display: flex; align-items: center; gap: var(--space-md); }
.reviews-score { font-family: var(--font-heading); font-size: 48px; font-weight: 700; color: var(--color-text-primary); line-height: 1; }
.reviews-score-detail { display: flex; flex-direction: column; gap: 2px; }
.reviews-bars { display: flex; flex-direction: column; gap: 6px; flex: 1; max-width: 300px; }
.rating-bar { display: flex; align-items: center; gap: var(--space-sm); font-size: 13px; }
.rating-bar-label { width: 40px; color: var(--color-text-muted); }
.rating-bar-track { flex: 1; height: 8px; background: var(--color-border); border-radius: var(--radius-full); overflow: hidden; }
.rating-bar-fill { height: 100%; background: var(--color-gold); border-radius: var(--radius-full); transition: width var(--transition-slow); }
.rating-bar-count { width: 30px; text-align: right; color: var(--color-text-muted); }
.review-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-lg); margin-bottom: var(--space-md); }
.review-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-sm); }
.review-author { display: flex; align-items: center; gap: var(--space-sm); }
.review-avatar { width: 40px; height: 40px; border-radius: var(--radius-full); background: var(--color-accent-light); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--color-accent); font-size: 16px; }
.review-author-name { font-size: 14px; font-weight: 600; color: var(--color-text-primary); }
.review-verified { font-size: 11px; color: var(--color-success); display: flex; align-items: center; gap: 4px; }
.review-title { font-size: 15px; font-weight: 600; color: var(--color-text-primary); margin-bottom: var(--space-xs); }
.review-body { font-size: 14px; color: var(--color-text-secondary); line-height: 1.7; }
.review-date { font-size: 12px; color: var(--color-text-muted); }

/* --- Cart Drawer --- */
.cart-overlay { position: fixed; inset: 0; background: rgba(45,42,36,0.5); z-index: 200; opacity: 0; visibility: hidden; transition: all var(--transition-base); }
.cart-overlay.show { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 100%; max-width: 420px; background: var(--color-surface); z-index: 201; transform: translateX(100%); transition: transform var(--transition-base); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: var(--space-lg); border-bottom: 1px solid var(--color-border); }
.cart-drawer-header h2 { font-family: var(--font-heading); font-size: 24px; font-weight: 700; display: flex; align-items: center; gap: var(--space-sm); }
.cart-close { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--color-text-muted); border-radius: var(--radius-sm); transition: all var(--transition-fast); }
.cart-close:hover { background: var(--color-surface-alt); color: var(--color-text-primary); }
.cart-lines { flex: 1; overflow-y: auto; padding: var(--space-md) var(--space-lg); }
.cart-item { display: flex; gap: var(--space-md); padding: var(--space-md) 0; border-bottom: 1px solid var(--color-border); }
.cart-item-img { width: 72px; height: 72px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; background: var(--color-surface-alt); }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title { font-size: 14px; font-weight: 600; color: var(--color-text-primary); margin-bottom: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-item-variant { font-size: 12px; color: var(--color-text-muted); margin-bottom: var(--space-sm); }
.cart-item-price { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--color-accent); }
.cart-item-controls { display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-sm); }
.cart-item-qty { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; }
.cart-item-qty button { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--color-text-secondary); }
.cart-item-qty button:hover { background: var(--color-surface-alt); }
.cart-item-qty span { width: 36px; text-align: center; font-size: 13px; font-weight: 600; }
.cart-item-remove { font-size: 12px; color: var(--color-error); }
.cart-item-remove:hover { text-decoration: underline; }
.cart-empty { text-align: center; padding: var(--space-2xl) var(--space-lg); color: var(--color-text-muted); }
.cart-empty-icon { font-size: 48px; margin-bottom: var(--space-md); }
.cart-footer { padding: var(--space-lg); border-top: 1px solid var(--color-border); }
.cart-subtotal { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-sm); }
.cart-subtotal span { font-size: 15px; color: var(--color-text-secondary); }
.cart-subtotal strong { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--color-text-primary); }
.cart-tax-note { font-size: 12px; color: var(--color-text-muted); margin-bottom: var(--space-md); text-align: center; }
.cart-free-shipping { background: var(--color-accent-light); border-radius: var(--radius-sm); padding: var(--space-sm) var(--space-md); font-size: 12px; color: var(--color-accent); font-weight: 600; text-align: center; margin-bottom: var(--space-md); }

/* --- Toast --- */
.toast { position: fixed; bottom: var(--space-xl); right: var(--space-xl); padding: var(--space-md) var(--space-lg); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 600; z-index: 300; opacity: 0; transform: translateY(20px); transition: all var(--transition-base); max-width: 360px; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { background: var(--color-success); color: #fff; }
.toast-error { background: var(--color-error); color: #fff; }

/* --- Pagination --- */
.pagination { display: flex; align-items: center; justify-content: center; gap: var(--space-sm); padding: var(--space-xl) 0; }
.pagination-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; color: var(--color-text-secondary); transition: all var(--transition-fast); background: var(--color-surface); }
.pagination-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.pagination-btn.active { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.pagination-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* --- Sort Bar --- */
.sort-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-md) 0; border-bottom: 1px solid var(--color-border); margin-bottom: var(--space-lg); flex-wrap: wrap; }
.sort-bar-count { font-size: 14px; color: var(--color-text-muted); }
.sort-bar select { padding: 8px 16px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 14px; color: var(--color-text-primary); background: var(--color-surface); cursor: pointer; }
.sort-bar select:focus { border-color: var(--color-accent); outline: none; }

/* --- Footer --- */
.footer { background: var(--color-text-primary); color: rgba(255,255,255,0.7); padding: var(--space-2xl) 0 var(--space-lg); margin-top: var(--space-2xl); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); margin-bottom: var(--space-xl); }
.footer-logo { font-family: var(--font-heading); font-size: 28px; font-weight: 700; color: #fff; margin-bottom: var(--space-md); }
.footer-logo span { color: var(--color-terracotta); }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.6; margin-bottom: var(--space-md); max-width: 320px; }
.footer-col h3 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: var(--space-md); letter-spacing: 0.05em; text-transform: uppercase; }
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.6); transition: color var(--transition-fast); }
.footer-col a:hover { color: var(--color-terracotta); }
.footer-contact-item { display: flex; align-items: flex-start; gap: var(--space-sm); font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: var(--space-sm); }
.social-links { display: flex; gap: var(--space-sm); margin-top: var(--space-md); }
.social-links a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); transition: all var(--transition-fast); }
.social-links a:hover { background: var(--color-terracotta); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: var(--space-lg); display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-payments { display: flex; gap: var(--space-sm); align-items: center; }
.footer-payments span { font-size: 11px; color: rgba(255,255,255,0.4); letter-spacing: 0.05em; }

/* --- Full Cart Page --- */
.cart-page { padding: var(--space-lg) 0 var(--space-2xl); }
.cart-page-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); }
.cart-page-items { background: var(--color-surface); border-radius: var(--radius-md); border: 1px solid var(--color-border); overflow: hidden; }
.cart-page-header { display: grid; grid-template-columns: 1fr 120px 80px 40px; padding: var(--space-md); border-bottom: 1px solid var(--color-border); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted); }
.cart-page-item { display: grid; grid-template-columns: 1fr 120px 80px 40px; padding: var(--space-md); border-bottom: 1px solid var(--color-border); align-items: center; gap: var(--space-md); }
.cart-page-item:last-child { border-bottom: none; }
.cart-page-item-product { display: flex; gap: var(--space-md); align-items: center; }
.cart-page-item-product img { width: 80px; height: 80px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.cart-page-item-product-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.cart-page-item-product-info p { font-size: 12px; color: var(--color-text-muted); }
.cart-page-item-price { font-family: var(--font-mono); font-weight: 600; color: var(--color-text-primary); }
.cart-page-item-remove { text-align: center; }
.cart-page-summary { background: var(--color-surface); border-radius: var(--radius-md); border: 1px solid var(--color-border); padding: var(--space-lg); position: sticky; top: calc(var(--header-height) + var(--space-md)); }
.cart-page-summary h3 { font-family: var(--font-heading); font-size: 22px; font-weight: 700; margin-bottom: var(--space-md); }
.cart-page-summary-row { display: flex; justify-content: space-between; padding: var(--space-sm) 0; font-size: 14px; color: var(--color-text-secondary); }
.cart-page-summary-row.total { border-top: 1px solid var(--color-border); margin-top: var(--space-sm); padding-top: var(--space-md); font-size: 18px; font-weight: 700; color: var(--color-text-primary); }
.cart-page-summary-row.total strong { font-family: var(--font-mono); color: var(--color-accent); }
.cart-page-summary .btn { margin-top: var(--space-md); }

/* --- Checkout Page --- */
.checkout-page { padding: var(--space-lg) 0 var(--space-2xl); }
.checkout-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); }
.checkout-form-section { background: var(--color-surface); border-radius: var(--radius-md); border: 1px solid var(--color-border); padding: var(--space-lg); margin-bottom: var(--space-lg); }
.checkout-form-section h3 { font-family: var(--font-heading); font-size: 22px; font-weight: 700; margin-bottom: var(--space-md); display: flex; align-items: center; gap: var(--space-sm); }
.checkout-form-section h3 .step-num { width: 28px; height: 28px; background: var(--color-accent); color: #fff; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; font-size: 14px; font-family: var(--font-body); }
.form-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--color-text-primary); }
.form-group label .required { color: var(--color-error); }
.form-input { padding: 12px 16px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 15px; color: var(--color-text-primary); background: var(--color-surface); transition: all var(--transition-fast); }
.form-input:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-light); outline: none; }
.form-input.error { border-color: var(--color-error); }
.form-error { font-size: 12px; color: var(--color-error); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.form-row-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-md); }

/* --- Card Payment Form --- */
.card-form { margin-top: var(--space-md); }
.card-form .card-preview { background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%); border-radius: var(--radius-md); padding: var(--space-lg); color: #fff; margin-bottom: var(--space-lg); min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.card-form .card-preview::before { content: ''; position: absolute; top: -50%; right: -20%; width: 200px; height: 200px; background: rgba(255,255,255,0.08); border-radius: 50%; }
.card-preview-chip { width: 40px; height: 30px; background: rgba(255,255,255,0.25); border-radius: var(--radius-sm); }
.card-preview-number { font-family: var(--font-mono); font-size: 20px; letter-spacing: 2px; }
.card-preview-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.card-preview-name { font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; }
.card-preview-brand { font-size: 18px; font-weight: 700; font-style: italic; }
.card-input-group { position: relative; }
.card-input-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--color-text-muted); pointer-events: none; }

/* --- Order Confirmation --- */
.confirmation-page { padding: var(--space-2xl) 0; text-align: center; }
.confirmation-icon { width: 80px; height: 80px; margin: 0 auto var(--space-lg); background: var(--color-success); border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 40px; }
.confirmation-title { font-family: var(--font-heading); font-size: clamp(32px, 5vw, 48px); font-weight: 700; color: var(--color-text-primary); margin-bottom: var(--space-md); }
.confirmation-subtitle { font-size: 18px; color: var(--color-text-secondary); margin-bottom: var(--space-xl); max-width: 560px; margin-left: auto; margin-right: auto; }
.order-summary-box { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-lg); max-width: 640px; margin: 0 auto var(--space-xl); text-align: left; }
.order-summary-box h3 { font-family: var(--font-heading); font-size: 22px; font-weight: 700; margin-bottom: var(--space-md); padding-bottom: var(--space-sm); border-bottom: 1px solid var(--color-border); }
.order-item { display: flex; gap: var(--space-md); padding: var(--space-sm) 0; border-bottom: 1px solid var(--color-border); }
.order-item:last-child { border-bottom: none; }
.order-item img { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; }
.order-item-info { flex: 1; }
.order-item-info h4 { font-size: 14px; font-weight: 600; }
.order-item-info p { font-size: 12px; color: var(--color-text-muted); }
.order-total-row { display: flex; justify-content: space-between; padding: var(--space-sm) 0; font-size: 14px; }
.order-total-row.grand { border-top: 1px solid var(--color-border); margin-top: var(--space-sm); padding-top: var(--space-md); font-size: 18px; font-weight: 700; }
.order-total-row.grand strong { font-family: var(--font-mono); color: var(--color-accent); }

/* --- Page Content (About, Contact, Policies) --- */
.page-content { padding: var(--space-lg) 0 var(--space-2xl); }
.page-content-inner { max-width: 800px; margin: 0 auto; }
.page-content h1 { font-family: var(--font-heading); font-size: clamp(28px, 4vw, 40px); font-weight: 700; margin-bottom: var(--space-lg); }
.page-content h2 { font-family: var(--font-heading); font-size: 24px; font-weight: 700; margin: var(--space-lg) 0 var(--space-sm); color: var(--color-text-primary); }
.page-content h3 { font-size: 18px; font-weight: 600; margin: var(--space-md) 0 var(--space-sm); color: var(--color-text-primary); }
.page-content p { font-size: 15px; color: var(--color-text-secondary); line-height: 1.8; margin-bottom: var(--space-md); }
.page-content ul { list-style: disc; padding-left: var(--space-lg); margin-bottom: var(--space-md); }
.page-content li { font-size: 15px; color: var(--color-text-secondary); line-height: 1.8; margin-bottom: 4px; }
.page-content table { margin: var(--space-md) 0; }
.page-content th, .page-content td { padding: var(--space-sm) var(--space-md); border: 1px solid var(--color-border); text-align: left; font-size: 14px; }
.page-content th { background: var(--color-surface-alt); font-weight: 600; }

/* --- Blog article content formatting (scoped) --- */
.page-content-inner.article-body h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  margin: var(--space-xl) 0 var(--space-md);
  color: var(--color-text-primary);
  line-height: 1.25;
}
.article-body h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  margin: var(--space-lg) 0 var(--space-sm);
  color: var(--color-text-primary);
  line-height: 1.3;
}
.article-body p {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}
.article-body ul,
.article-body ol {
  margin: 0 0 var(--space-lg);
  padding-left: 1.35rem;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 0.55rem;
  padding-left: 0.25rem;
}
.article-body li::marker { color: var(--color-accent); }
.article-body li strong { color: var(--color-text-primary); }
.article-body blockquote {
  margin: var(--space-lg) 0;
  padding: var(--space-md) var(--space-lg);
  border-left: 4px solid var(--color-accent);
  background: var(--color-accent-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--color-text-primary);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  line-height: 1.6;
  font-style: italic;
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body a:not(.btn):not(.blog-card-readmore):not(.share-btn) {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-body a:not(.btn):not(.blog-card-readmore):not(.share-btn):hover {
  color: var(--color-accent-hover);
}

/* --- Article detail enhancements --- */
.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) 0 var(--space-lg);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}
.article-meta-items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-lg);
}
.article-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 110px;
}
.article-meta-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.article-meta-item time,
.article-meta-item span:not(.article-meta-label) {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
}
.article-share {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.article-share-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 2px;
}
.share-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}
.share-btn:hover,
.share-btn:focus-visible {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  outline: none;
}
.page-content .article-section-title,
.article-section-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-md) !important;
  line-height: 1.25;
}
.article-takeaways {
  margin: var(--space-xl) 0;
  padding: var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.takeaway-list {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
  display: grid;
  gap: var(--space-sm);
}
.takeaway-list li {
  position: relative;
  padding: 10px 12px 10px 40px !important;
  margin: 0 !important;
  background: var(--color-surface-alt);
  border-radius: var(--radius-sm);
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: var(--color-text-secondary);
}
.takeaway-list li::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-light);
}
.article-helpful {
  margin: var(--space-xl) 0;
}
.article-helpful-inner {
  padding: var(--space-lg);
  background: linear-gradient(180deg, var(--color-accent-light) 0%, var(--color-surface) 100%);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
}
.article-helpful-intro {
  margin-bottom: var(--space-md) !important;
  color: var(--color-text-secondary);
}
.helpful-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
.helpful-point {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
}
.helpful-point-title {
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  margin: 0 0 6px !important;
  color: var(--color-accent) !important;
}
.helpful-point p {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}
.article-faq {
  margin: var(--space-xl) 0;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}
.article-faq-list {
  border-top: 1px solid var(--color-border);
}
.article-faq-item .accordion-header {
  gap: var(--space-md);
  padding: 16px 4px;
  font-size: 16px;
}
.article-faq-item .accordion-header:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.article-faq-item .accordion-body-inner {
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text-secondary);
}
.article-cta {
  margin: var(--space-xl) 0;
}
.article-cta-inner {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.page-content .article-cta-title,
.article-cta-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: #fff !important;
  margin: 0 0 var(--space-sm) !important;
  line-height: 1.25;
}
.article-cta-text {
  color: rgba(255, 255, 255, 0.92) !important;
  max-width: 520px;
  margin: 0 auto var(--space-lg) !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
}
.article-cta .btn-primary {
  background: #fff;
  color: var(--color-accent);
  border-color: #fff;
}
.article-cta .btn-primary:hover {
  background: var(--color-surface-alt);
  border-color: var(--color-surface-alt);
  color: var(--color-accent-hover);
  box-shadow: var(--shadow-md);
}
.article-footer-bar {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.article-footer-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.article-related-section .section-header { margin-bottom: var(--space-lg); }


/* --- Contact Form --- */
.contact-form { display: flex; flex-direction: column; gap: var(--space-md); max-width: 600px; margin: var(--space-lg) 0; }
.contact-info-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-md); margin: var(--space-lg) 0; }
.contact-info-item { display: flex; gap: var(--space-md); align-items: flex-start; padding: var(--space-md); background: var(--color-surface-alt); border-radius: var(--radius-md); }
.contact-info-item-icon { width: 44px; height: 44px; background: var(--color-accent-light); border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; color: var(--color-accent); flex-shrink: 0; }
.contact-info-item h4 { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.contact-info-item p { font-size: 14px; color: var(--color-text-secondary); margin: 0; }

/* --- Policy Layout --- */
.policy-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); }
.policy-sidebar { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-lg); position: sticky; top: calc(var(--header-height) + var(--space-md)); height: fit-content; }
.policy-sidebar h3 { font-family: var(--font-heading); font-size: 18px; font-weight: 700; margin-bottom: var(--space-md); }
.policy-sidebar ul { display: flex; flex-direction: column; gap: var(--space-sm); }
.policy-sidebar a { font-size: 14px; color: var(--color-text-secondary); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-sm); transition: all var(--transition-fast); display: block; }
.policy-sidebar a:hover, .policy-sidebar a.active { background: var(--color-accent-light); color: var(--color-accent); font-weight: 600; }

/* --- 404 Page --- */
.error-page { padding: var(--space-3xl) 0; text-align: center; }
.error-page h1 { font-family: var(--font-heading); font-size: clamp(60px, 12vw, 120px); font-weight: 700; color: var(--color-accent); line-height: 1; }
.error-page h2 { font-family: var(--font-heading); font-size: 28px; font-weight: 700; margin: var(--space-md) 0; }
.error-page p { font-size: 16px; color: var(--color-text-secondary); margin-bottom: var(--space-lg); }

/* --- Brand Story Section --- */
.brand-story { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); align-items: center; }
.brand-story-img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; }
.brand-story-img img { width: 100%; height: 100%; object-fit: cover; }
.brand-story-content h2 { font-family: var(--font-heading); font-size: clamp(28px, 4vw, 38px); font-weight: 700; margin-bottom: var(--space-md); line-height: 1.2; }
.brand-story-content p { font-size: 15px; color: var(--color-text-secondary); line-height: 1.8; margin-bottom: var(--space-md); }
.brand-story-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); margin-top: var(--space-lg); }
.brand-story-stat { text-align: center; padding: var(--space-md); background: var(--color-surface); border-radius: var(--radius-md); border: 1px solid var(--color-border); }
.brand-story-stat-num { font-family: var(--font-heading); font-size: 32px; font-weight: 700; color: var(--color-accent); }
.brand-story-stat-label { font-size: 12px; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* --- Benefits Section --- */
.benefits-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
.benefit-card { text-align: center; padding: var(--space-xl) var(--space-lg); background: var(--color-surface); border-radius: var(--radius-md); border: 1px solid var(--color-border); transition: all var(--transition-base); }
.benefit-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.benefit-card-icon { width: 56px; height: 56px; margin: 0 auto var(--space-md); background: var(--color-accent-light); border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; color: var(--color-accent); font-size: 24px; }
.benefit-card h3 { font-family: var(--font-heading); font-size: 20px; font-weight: 700; margin-bottom: var(--space-sm); }
.benefit-card p { font-size: 14px; color: var(--color-text-secondary); line-height: 1.6; }

/* --- FAQ Section --- */
.faq-section { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-question { width: 100%; padding: var(--space-md) 0; display: flex; align-items: center; justify-content: space-between; font-size: 16px; font-weight: 600; color: var(--color-text-primary); text-align: left; cursor: pointer; }
.faq-question:hover { color: var(--color-accent); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--transition-slow); }
.faq-answer.open { max-height: 500px; }
.faq-answer p { padding: 0 0 var(--space-md); font-size: 14px; color: var(--color-text-secondary); line-height: 1.7; }

/* --- Testimonials --- */
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
.testimonial-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-lg); }
.testimonial-stars { color: var(--color-gold); font-size: 18px; letter-spacing: 2px; margin-bottom: var(--space-sm); }
.testimonial-text { font-size: 15px; color: var(--color-text-secondary); line-height: 1.7; font-style: italic; margin-bottom: var(--space-md); }
.testimonial-author { display: flex; align-items: center; gap: var(--space-sm); }
.testimonial-author-name { font-size: 14px; font-weight: 600; color: var(--color-text-primary); }
.testimonial-author-location { font-size: 12px; color: var(--color-text-muted); }

/* --- Skeleton --- */
.skeleton { background: linear-gradient(90deg, var(--color-surface-alt) 25%, var(--color-border) 50%, var(--color-surface-alt) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
.fade-in { animation: fadeIn 0.5s ease; }
.slide-up { animation: slideUp 0.5s ease; }

/* --- Spinner --- */
.spinner { width: 20px; height: 20px; border: 2px solid var(--color-border); border-top-color: var(--color-accent); border-radius: 50%; animation: spin 0.8s linear infinite; }

/* --- Responsive Breakpoints --- */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .trust-badges { grid-template-columns: repeat(4, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-info-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row-2 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .product-layout { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .brand-story { grid-template-columns: 1fr 1fr; }
  .benefits-grid { grid-template-columns: repeat(4, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
  .cart-page-layout { grid-template-columns: 1fr 360px; }
  .checkout-layout { grid-template-columns: 1fr 380px; }
  .policy-layout { grid-template-columns: 240px 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
  .contact-info-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .hamburger { display: none; }
  .mobile-menu { display: none; }
  .hero { min-height: 640px; }
}

@media (max-width: 1023px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .cart-page-header { display: none; }
  .cart-page-item { grid-template-columns: 1fr; gap: var(--space-sm); }
  .cart-page-item-product { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr; }
}

@media (max-width: 639px) {
  .container { padding: 0 var(--space-md); }
  .section { padding: var(--space-xl) 0; }
  .hero { min-height: 500px; }
  .hero-content { padding: var(--space-xl) 0; }
  .product-actions { flex-direction: column; }
  .product-actions .btn { width: 100%; }
  .sticky-atc { flex-wrap: wrap; }
  .form-row-2 { grid-template-columns: 1fr; }
  .cart-page-item-product img { width: 64px; height: 64px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}


/* --- Header & Blog responsive refinements --- */
@media (min-width: 640px) {
  .helpful-grid { grid-template-columns: repeat(2, 1fr); }
  .search-bar { width: 220px; max-width: none; }
}
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .hamburger { display: none; }
  .mobile-menu { display: none; }
  .search-bar { width: 240px; }
  .nav-link { padding: 8px 12px; font-size: 13.5px; }
  .nav-links { gap: 2px; }
}
@media (min-width: 1200px) {
  .nav-link { padding: 8px 14px; font-size: 14px; }
  .nav-links { gap: 4px; }
  .search-bar { width: 260px; }
  .nav-logo { font-size: 24px; }
}
@media (max-width: 1023px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .search-bar { width: 180px; max-width: 42vw; }
  .nav-inner { gap: var(--space-sm); }
}
@media (max-width: 639px) {
  .search-bar { display: none; }
  .article-meta-bar { flex-direction: column; }
  .article-meta-items { gap: var(--space-md); }
  .article-cta-inner { padding: var(--space-lg) var(--space-md); }
  .blog-card-title { font-size: 20px; }
}
