/* ============================================================
   Forum Imports Home — Main Stylesheet
   Niche: Imported artisan tableware & serving accessories
   Design language: warm, earthy, artisanal, globally inspired
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture, svg { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

/* ---------- Design Tokens ---------- */
:root {
  --color-bg:             #FAF6F0;
  --color-surface:        #FFFFFF;
  --color-surface-alt:    #F2EAE0;
  --color-border:         #E6DBC9;
  --color-text-primary:   #2B241E;
  --color-text-secondary: #665A4C;
  --color-text-muted:     #9A8C7A;
  --color-accent:         #BB5B2C;
  --color-accent-hover:   #97481F;
  --color-accent-fg:      #FFFFFF;
  --color-success:        #6C7A4C;
  --color-warning:        #C08F2E;
  --color-error:          #A23B27;

  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 16px; --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(43,36,30,0.06);
  --shadow-md: 0 4px 16px rgba(43,36,30,0.08);
  --shadow-lg: 0 12px 40px rgba(43,36,30,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;
  --max-width: 1280px;
}

body {
  background: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.15; color: var(--color-text-primary); }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.6vw + 1rem, 2.4rem); }
h3 { font-size: clamp(1.25rem, 1.6vw + 1rem, 1.6rem); }
h4 { font-size: 1.1rem; }
p { color: var(--color-text-secondary); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-md); }
@media (min-width: 768px) { .container { padding: 0 var(--space-xl); } }

.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; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: var(--radius-sm);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius-full); border: 1px solid transparent;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em;
  transition: all var(--transition-fast); text-align: center; white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--color-accent); color: var(--color-accent-fg); }
.btn-primary:hover:not(:disabled) { background: var(--color-accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--color-text-primary); color: var(--color-bg); }
.btn-secondary:hover:not(:disabled) { background: #1a1611; }
.btn-ghost { background: transparent; border-color: var(--color-border); color: var(--color-text-primary); }
.btn-ghost:hover:not(:disabled) { background: var(--color-surface-alt); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; width: 100%; }
.btn-block { width: 100%; }

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: 4px 10px; border-radius: var(--radius-full); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; background: var(--color-surface-alt); color: var(--color-text-secondary); }
.badge-sale { background: var(--color-error); color: #fff; }
.badge-new { background: var(--color-success); color: #fff; }
.badge-out { background: var(--color-text-muted); color: #fff; }
.badge-accent { background: var(--color-accent); color: #fff; }

/* ---------- Announcement bar ---------- */
.announcement-bar { background: var(--color-text-primary); color: var(--color-bg); text-align: center; padding: 10px var(--space-md); font-size: 0.85rem; letter-spacing: 0.02em; }
.announcement-bar strong { color: #fff; }

/* ---------- Nav ---------- */
.nav { background: var(--color-bg); border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 100; }
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: 16px 0; }
.nav-logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--color-text-primary); letter-spacing: -0.01em; }
.nav-links { display: none; gap: var(--space-lg); align-items: center; }
.nav-links a { font-weight: 600; font-size: 0.95rem; color: var(--color-text-primary); transition: color var(--transition-fast); position: relative; }
.nav-links a:hover { color: var(--color-accent); }
.nav-dropdown { position: relative; }
.nav-dropdown::after { content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 16px; }
.nav-dropdown-menu { display: none; position: absolute; top: calc(100% + 14px); left: 0; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: var(--space-sm); min-width: 240px; z-index: 50; }
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu, .nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); }
.nav-dropdown-menu a:hover { background: var(--color-surface-alt); }
.nav-actions { display: flex; align-items: center; gap: var(--space-md); }
.nav-icon-btn { background: none; border: none; padding: 6px; position: relative; color: var(--color-text-primary); display: flex; }
.nav-icon-btn svg { width: 22px; height: 22px; }
.cart-count { position: absolute; top: -4px; right: -4px; background: var(--color-accent); color: #fff; font-size: 0.65rem; font-weight: 700; min-width: 17px; height: 17px; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
.hamburger { display: flex; background: none; border: none; padding: 4px; color: var(--color-text-primary); }
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .hamburger { display: none; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu { position: fixed; inset: 0; background: var(--color-bg); z-index: 200; display: none; flex-direction: column; padding: var(--space-md); overflow-y: auto; }
.mobile-menu.open { display: flex; }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-lg); }
.mobile-menu a { display: block; padding: 14px 4px; font-size: 1.1rem; font-weight: 600; border-bottom: 1px solid var(--color-border); }
.mobile-menu-close { background: none; border: none; }

/* ---------- Search bar ---------- */
.search-bar-wrap { position: relative; display: none; }
@media (min-width: 1024px) { .search-bar-wrap { display: block; } }
.search-bar { display: flex; align-items: center; background: var(--color-surface-alt); border-radius: var(--radius-full); padding: 8px 16px; gap: 8px; min-width: 220px; }
.search-bar input { background: transparent; border: none; outline: none; width: 100%; font-size: 0.9rem; }
.search-results { position: absolute; top: 100%; margin-top: 8px; left: 0; right: 0; 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: 50; display: none; }
.search-results.show { display: block; }
.search-item { display: flex; gap: 12px; padding: 10px 14px; align-items: center; }
.search-item:hover { background: var(--color-surface-alt); }
.search-item img { width: 48px; height: 48px; object-fit: cover; border-radius: var(--radius-sm); }
.search-item-title { font-size: 0.88rem; font-weight: 600; }
.search-item-price { font-size: 0.82rem; color: var(--color-text-muted); font-family: var(--font-mono); }
.search-page-input { display: flex; gap: 10px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-full); padding: 14px 22px; max-width: 560px; margin: 0 auto; }
.search-page-input input { flex: 1; border: none; outline: none; background: none; font-size: 1rem; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 68vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,15,10,0.75) 0%, rgba(20,15,10,0.15) 60%); z-index: 1; }
.hero-content { position: relative; z-index: 2; color: #fff; padding: var(--space-xl) var(--space-md) var(--space-2xl); width: 100%; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.8rem; font-weight: 700; color: #F0D9B5; margin-bottom: var(--space-sm); }
.hero-title { color: #fff; margin-bottom: var(--space-md); max-width: 720px; }
.hero-subtitle { color: rgba(255,255,255,0.88); font-size: 1.05rem; max-width: 560px; margin-bottom: var(--space-lg); }
.hero-actions { display: flex; gap: var(--space-md); flex-wrap: wrap; }
@media (min-width: 768px) { .hero { min-height: 78vh; } .hero-content { padding: var(--space-2xl) var(--space-xl) var(--space-3xl); } }

/* ---------- Sections ---------- */
.section { padding: var(--space-2xl) 0; }
.section-alt { background: var(--color-surface-alt); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto var(--space-xl); }
.section-eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 700; color: var(--color-accent); margin-bottom: var(--space-sm); }
.section-title { margin-bottom: var(--space-sm); }
.section-subtitle { color: var(--color-text-secondary); font-size: 1.05rem; }
.section-title-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: var(--space-xl); gap: var(--space-md); flex-wrap: wrap; }

/* ---------- 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-md); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-lg); }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2,1fr); } .grid-4 { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4,1fr); } }

/* ---------- Cards ---------- */
.collection-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; display: block; box-shadow: var(--shadow-sm); transition: box-shadow var(--transition-base); }
.collection-card:hover { box-shadow: var(--shadow-lg); }
.collection-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-base); }
.collection-card:hover img { transform: scale(1.05); }
.collection-card-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,15,10,0.75) 0%, transparent 55%); display: flex; flex-direction: column; justify-content: flex-end; padding: var(--space-lg); }
.collection-card-title { color: #fff; margin-bottom: 4px; }
.collection-card-desc { color: rgba(255,255,255,0.85); font-size: 0.85rem; }
.collection-card-count { color: #F0D9B5; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 6px; }

.product-card { background: var(--color-surface); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); transition: box-shadow var(--transition-base), transform var(--transition-base); display: flex; flex-direction: column; height: 100%; }
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-card-media { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--color-surface-alt); }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity var(--transition-base); }
.product-card-media .img-hover { position: absolute; inset: 0; opacity: 0; }
.product-card:hover .img-hover { opacity: 1; }
.product-card-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.product-card-body { padding: var(--space-md); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card-vendor { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); }
.product-card-title { font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; color: var(--color-text-primary); line-height: 1.35; }
.product-card-price-row { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; font-family: var(--font-mono); }
.product-card-price { font-weight: 700; font-size: 1rem; color: var(--color-text-primary); }
.product-card-compare { text-decoration: line-through; color: var(--color-text-muted); font-size: 0.85rem; }
.product-card-atc { margin-top: 10px; }
.quick-add-btn { width: 100%; padding: 10px; border-radius: var(--radius-full); background: var(--color-text-primary); color: #fff; font-weight: 700; font-size: 0.85rem; border: none; transition: background var(--transition-fast); }
.quick-add-btn:hover:not(:disabled) { background: var(--color-accent); }
.quick-add-btn:disabled { background: var(--color-text-muted); }

.blog-card { display: flex; flex-direction: column; background: var(--color-surface); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); transition: box-shadow var(--transition-base); }
.blog-card:hover { box-shadow: var(--shadow-md); }
.blog-card-media { aspect-ratio: 16/10; overflow: hidden; background: var(--color-surface-alt); }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: var(--space-md); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card-meta { font-size: 0.78rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.blog-card-title { font-size: 1.1rem; }
.blog-card-excerpt { font-size: 0.9rem; color: var(--color-text-secondary); }
.blog-card-link { margin-top: auto; font-weight: 700; color: var(--color-accent); font-size: 0.88rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.82rem; color: var(--color-text-muted); padding: var(--space-md) 0; }
.breadcrumb a { color: var(--color-text-secondary); font-weight: 600; }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb-sep { color: var(--color-text-muted); }

/* ---------- Collection page ---------- */
.collection-hero { position: relative; height: 280px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: var(--radius-lg); margin-bottom: var(--space-xl); }
.collection-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.collection-hero-overlay { position: absolute; inset: 0; background: rgba(20,15,10,0.5); }
.collection-hero-content { position: relative; z-index: 2; text-align: center; color: #fff; padding: 0 var(--space-md); }
.collection-hero-content h1 { color: #fff; }
.collection-hero-count { color: #F0D9B5; font-weight: 700; margin-top: 6px; }

.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-lg); flex-wrap: wrap; gap: var(--space-md); }
.toolbar-count { color: var(--color-text-secondary); font-size: 0.9rem; }
.sort-select { padding: 10px 16px; border-radius: var(--radius-full); border: 1px solid var(--color-border); background: var(--color-surface); font-size: 0.88rem; font-weight: 600; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: var(--space-xl); }
.pagination-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--color-border); background: var(--color-surface); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; }
.pagination-btn.active { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.pagination-btn:hover:not(.active) { background: var(--color-surface-alt); }
.pagination-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.empty-state { text-align: center; padding: var(--space-3xl) var(--space-md); }
.empty-state h3 { margin-bottom: var(--space-sm); }

/* ---------- Product page ---------- */
.product-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); padding: var(--space-lg) 0 var(--space-2xl); }
@media (min-width: 900px) { .product-layout { grid-template-columns: 1.1fr 1fr; gap: var(--space-2xl); } }

.gallery-main-wrap { border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface-alt); aspect-ratio: 1/1; margin-bottom: var(--space-md); cursor: zoom-in; position: relative; }
.gallery-main-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-base); }
.gallery-main-wrap.zoomed img { transform: scale(1.7); cursor: zoom-out; }
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumb { width: 76px; height: 76px; flex-shrink: 0; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; opacity: 0.7; transition: all var(--transition-fast); background: var(--color-surface-alt); }
.gallery-thumb.active, .gallery-thumb:hover { opacity: 1; border-color: var(--color-accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-vendor { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted); font-weight: 700; }
.product-title { margin: 8px 0 12px; }
.rating-stars { color: var(--color-warning); font-size: 0.95rem; letter-spacing: 2px; }
.rating-row { display: flex; align-items: center; gap: 10px; margin-bottom: var(--space-md); font-size: 0.88rem; color: var(--color-text-secondary); }
.product-price-wrap { display: flex; align-items: baseline; gap: 12px; margin-bottom: var(--space-md); font-family: var(--font-mono); }
.product-price { font-size: 1.8rem; font-weight: 700; }
.product-compare-price { font-size: 1.15rem; color: var(--color-text-muted); text-decoration: line-through; }
.product-save-badge { color: var(--color-error); font-weight: 700; font-size: 0.85rem; font-family: var(--font-body); }

.availability-msg { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 700; margin-bottom: var(--space-lg); }
.availability-msg.in-stock { color: var(--color-success); }
.availability-msg.out-stock { color: var(--color-error); }
.availability-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }

.option-group { margin-bottom: var(--space-lg); }
.option-label { display: flex; justify-content: space-between; font-weight: 700; font-size: 0.9rem; margin-bottom: 10px; }
.option-label .selected-value { color: var(--color-text-secondary); font-weight: 500; }
.option-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.option-btn { padding: 10px 18px; border-radius: var(--radius-full); border: 1.5px solid var(--color-border); background: var(--color-surface); font-weight: 600; font-size: 0.88rem; transition: all var(--transition-fast); }
.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; }

.qty-atc-row { display: flex; gap: var(--space-md); align-items: stretch; margin-bottom: var(--space-md); flex-wrap: wrap; }
.qty-control { display: flex; align-items: center; border: 1.5px solid var(--color-border); border-radius: var(--radius-full); overflow: hidden; }
.qty-btn { width: 42px; height: 48px; background: none; border: none; font-size: 1.1rem; font-weight: 700; color: var(--color-text-primary); }
.qty-btn:hover { background: var(--color-surface-alt); }
.qty-input { width: 44px; height: 48px; text-align: center; border: none; border-left: 1px solid var(--color-border); border-right: 1px solid var(--color-border); font-weight: 700; font-family: var(--font-mono); }
.atc-buttons { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 220px; }

.product-trust-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: var(--space-md); margin: var(--space-lg) 0; padding: var(--space-md); background: var(--color-surface-alt); border-radius: var(--radius-md); }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; font-weight: 600; color: var(--color-text-secondary); }
.trust-item svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--color-accent); }

.product-short-desc { margin: var(--space-lg) 0; color: var(--color-text-secondary); line-height: 1.7; }

.accordion { border-top: 1px solid var(--color-border); }
.accordion:last-child { border-bottom: 1px solid var(--color-border); }
.accordion-header { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; background: none; border: none; font-weight: 700; font-size: 0.98rem; text-align: left; }
.accordion-icon { transition: transform var(--transition-fast); font-size: 1.2rem; }
.accordion.open .accordion-icon { transform: rotate(45deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height var(--transition-base); }
.accordion.open .accordion-body { max-height: 800px; }
.accordion-body-inner { padding: 0 4px 18px; color: var(--color-text-secondary); line-height: 1.7; font-size: 0.94rem; }
.accordion-body-inner ul { padding-left: 20px; list-style: disc; margin-top: 8px; }

/* ---------- Sticky ATC ---------- */
.sticky-atc { position: fixed; bottom: -100px; left: 0; right: 0; background: var(--color-surface); border-top: 1px solid var(--color-border); box-shadow: 0 -4px 20px rgba(0,0,0,0.08); z-index: 90; transition: bottom var(--transition-base); padding: 12px var(--space-md); }
.sticky-atc.visible { bottom: 0; }
.sticky-atc-inner { display: flex; align-items: center; gap: var(--space-md); max-width: var(--max-width); margin: 0 auto; }
.sticky-atc-product { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.sticky-atc-product img { width: 44px; height: 44px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.sticky-atc-title { font-size: 0.85rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-atc-price { font-family: var(--font-mono); font-weight: 700; color: var(--color-accent); font-size: 0.85rem; }
.sticky-atc-btn { flex-shrink: 0; }

/* ---------- Reviews ---------- */
.reviews-section { padding: var(--space-2xl) 0; border-top: 1px solid var(--color-border); }
.reviews-summary { display: flex; flex-wrap: wrap; gap: var(--space-2xl); align-items: center; margin-bottom: var(--space-xl); padding: var(--space-xl); background: var(--color-surface-alt); border-radius: var(--radius-lg); }
.reviews-avg { text-align: center; }
.reviews-score { font-family: var(--font-heading); font-size: 3rem; font-weight: 700; }
.reviews-bars { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 6px; }
.rating-bar-row { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; }
.rating-bar-track { flex: 1; height: 6px; background: var(--color-border); border-radius: var(--radius-full); overflow: hidden; }
.rating-bar-fill { height: 100%; background: var(--color-warning); }
.review-card { padding: var(--space-lg) 0; border-bottom: 1px solid var(--color-border); }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; flex-wrap: wrap; gap: 6px; }
.review-author { font-weight: 700; font-size: 0.92rem; }
.review-verified { display: inline-flex; align-items: center; gap: 4px; color: var(--color-success); font-size: 0.75rem; font-weight: 700; margin-left: 8px; }
.review-title { font-weight: 700; margin: 6px 0 4px; }
.review-body { color: var(--color-text-secondary); font-size: 0.92rem; line-height: 1.6; }
.review-date { color: var(--color-text-muted); font-size: 0.8rem; }

/* ---------- Cart drawer ---------- */
.cart-overlay { position: fixed; inset: 0; background: rgba(20,15,10,0.5); z-index: 300; opacity: 0; pointer-events: none; transition: opacity var(--transition-base); }
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 100%; max-width: 420px; background: var(--color-bg); z-index: 301; display: flex; flex-direction: column; transform: translateX(100%); transition: transform var(--transition-base); }
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-header { display: flex; justify-content: space-between; align-items: center; padding: var(--space-lg); border-bottom: 1px solid var(--color-border); }
.cart-drawer-header h2 { font-size: 1.2rem; display: flex; align-items: center; gap: 8px; }
.cart-close-btn { background: none; border: none; font-size: 1.4rem; }
.cart-lines { flex: 1; overflow-y: auto; padding: var(--space-md) var(--space-lg); }
.cart-item { display: flex; gap: 14px; padding: var(--space-md) 0; border-bottom: 1px solid var(--color-border); }
.cart-item img { width: 74px; height: 74px; object-fit: cover; border-radius: var(--radius-md); background: var(--color-surface-alt); }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 3px; }
.cart-item-variant { font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: 8px; }
.cart-item-row { display: flex; justify-content: space-between; align-items: center; }
.cart-item-price { font-family: var(--font-mono); font-weight: 700; font-size: 0.9rem; }
.cart-item-remove { background: none; border: none; color: var(--color-text-muted); font-size: 0.78rem; text-decoration: underline; }
.cart-qty-control { display: flex; align-items: center; border: 1px solid var(--color-border); border-radius: var(--radius-full); }
.cart-qty-control button { width: 26px; height: 26px; background: none; border: none; font-size: 0.9rem; }
.cart-qty-control span { width: 24px; text-align: center; font-size: 0.85rem; font-weight: 700; }
.cart-footer { padding: var(--space-lg); border-top: 1px solid var(--color-border); }
.cart-subtotal { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 6px; font-family: var(--font-mono); font-size: 1.05rem; }
.cart-tax-note { font-size: 0.78rem; color: var(--color-text-muted); margin-bottom: var(--space-md); }
.cart-empty { text-align: center; padding: var(--space-2xl) var(--space-md); }
.cart-empty svg { width: 56px; height: 56px; color: var(--color-text-muted); margin: 0 auto 14px; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--color-text-primary); color: #fff; padding: 14px 24px; border-radius: var(--radius-full); font-weight: 600; font-size: 0.9rem; box-shadow: var(--shadow-lg); z-index: 400; opacity: 0; transition: all var(--transition-base); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-error { background: var(--color-error); }
.toast-success { background: var(--color-success); }

/* ---------- Trust badges strip ---------- */
.trust-badges { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--space-lg); }
@media (min-width: 768px) { .trust-badges { grid-template-columns: repeat(4,1fr); } }
.trust-badges .trust-item { flex-direction: column; text-align: center; background: none; gap: 10px; }
.trust-badges .trust-item svg { width: 32px; height: 32px; margin: 0 auto; }

/* ---------- Icon feature grid (Why choose us) ---------- */
.icon-feature { text-align: center; padding: var(--space-lg); }
.icon-feature-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--color-accent); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-md); }
.icon-feature-icon svg { width: 26px; height: 26px; }
.icon-feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.icon-feature p { font-size: 0.9rem; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 18px 4px; background: none; border: none; text-align: left; font-weight: 700; font-size: 1rem; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--transition-base); }
.faq-item.open .faq-answer { max-height: 600px; }
.faq-answer-inner { padding: 0 4px 18px; color: var(--color-text-secondary); line-height: 1.7; }
.faq-icon { font-size: 1.3rem; transition: transform var(--transition-fast); }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ---------- Newsletter ---------- */
.newsletter-section { text-align: center; }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; max-width: 440px; margin: var(--space-lg) auto 0; }
@media (min-width: 540px) { .newsletter-form { flex-direction: row; } }
.newsletter-form input { flex: 1; padding: 14px 20px; border-radius: var(--radius-full); border: 1px solid var(--color-border); background: var(--color-surface); }
.newsletter-msg { margin-top: 10px; font-size: 0.85rem; font-weight: 600; }
.newsletter-msg.success { color: var(--color-success); }
.newsletter-msg.error { color: var(--color-error); }

/* ---------- Lifestyle banner ---------- */
.lifestyle-banner { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 340px; display: flex; align-items: center; }
.lifestyle-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lifestyle-banner-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,15,10,0.7) 30%, transparent 90%); }
.lifestyle-banner-content { position: relative; z-index: 2; padding: var(--space-2xl); max-width: 460px; color: #fff; }
.lifestyle-banner-content h2 { color: #fff; }
.lifestyle-banner-content p { color: rgba(255,255,255,0.88); margin: var(--space-md) 0; }

/* ---------- Educational / guide section ---------- */
.guide-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
@media (min-width: 768px) { .guide-grid { grid-template-columns: repeat(3,1fr); } }
.guide-card { padding: var(--space-lg); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.guide-card-num { font-family: var(--font-heading); font-size: 1.8rem; color: var(--color-accent); margin-bottom: 10px; }

/* ---------- Footer ---------- */
.footer { background: var(--color-text-primary); color: #E9E1D6; padding: var(--space-2xl) 0 var(--space-lg); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); margin-bottom: var(--space-xl); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-logo { font-family: var(--font-heading); font-size: 1.4rem; color: #fff; margin-bottom: var(--space-sm); }
.footer-desc { font-size: 0.88rem; color: #C9BEAC; line-height: 1.6; margin-bottom: var(--space-md); }
.footer-col h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-md); }
.footer-col a { display: block; color: #C9BEAC; font-size: 0.88rem; margin-bottom: 10px; transition: color var(--transition-fast); }
.footer-col a:hover { color: #fff; }
.footer-contact-item { display: flex; gap: 10px; align-items: center; color: #C9BEAC; font-size: 0.84rem; margin-bottom: 8px; line-height: 1.4; }
.footer-contact-item svg { width: 15px; height: 15px; flex-shrink: 0; opacity: 0.8; }
.social-links { display: flex; gap: 12px; margin-top: var(--space-md); }
.social-links a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; }
.social-links a:hover { background: var(--color-accent); }
.social-links svg { width: 17px; height: 17px; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: var(--space-lg); display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; font-size: 0.8rem; color: #A99C89; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }

/* ---------- Policy / content pages ---------- */
.content-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); padding: var(--space-xl) 0 var(--space-3xl); }
@media (min-width: 900px) { .content-layout { grid-template-columns: 220px 1fr; } }
.content-sidebar { display: flex; flex-direction: column; gap: 4px; }
.content-sidebar a { padding: 10px 14px; border-radius: var(--radius-md); font-weight: 600; font-size: 0.9rem; color: var(--color-text-secondary); }
.content-sidebar a.active, .content-sidebar a:hover { background: var(--color-surface-alt); color: var(--color-text-primary); }
.prose { max-width: 760px; line-height: 1.8; color: var(--color-text-secondary); }
.prose h1, .prose h2, .prose h3 { color: var(--color-text-primary); margin: var(--space-lg) 0 var(--space-sm); }
.prose h1:first-child, .prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: var(--space-md); }
.prose ul, .prose ol { margin: 0 0 var(--space-md) 20px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--color-accent); text-decoration: underline; }
.prose img { border-radius: var(--radius-md); margin: var(--space-md) 0; }
.prose table { margin: var(--space-md) 0; }
.prose th, .prose td { border: 1px solid var(--color-border); padding: 8px 12px; text-align: left; }

/* ---------- Contact form ---------- */
.form-group { margin-bottom: var(--space-md); }
.form-label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; }
.form-input, .form-textarea, .form-select { width: 100%; padding: 12px 16px; border: 1.5px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); font-size: 0.95rem; }
.form-textarea { resize: vertical; min-height: 120px; }
.form-error { color: var(--color-error); font-size: 0.8rem; margin-top: 4px; display: none; }
.form-group.invalid .form-input, .form-group.invalid .form-textarea { border-color: var(--color-error); }
.form-group.invalid .form-error { display: block; }
.contact-info-card { background: var(--color-surface-alt); border-radius: var(--radius-lg); padding: var(--space-xl); }
.contact-info-item { display: flex; gap: 14px; margin-bottom: var(--space-lg); }
.contact-info-item svg { width: 22px; height: 22px; color: var(--color-accent); flex-shrink: 0; }
.form-success-msg { background: var(--color-success); color: #fff; padding: var(--space-md); border-radius: var(--radius-md); margin-bottom: var(--space-md); display: none; }
.form-success-msg.show { display: block; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: var(--space-3xl) var(--space-md); }
.error-code { font-family: var(--font-heading); font-size: clamp(4rem,12vw,8rem); color: var(--color-accent); line-height: 1; }

/* ---------- Skeleton loading ---------- */
.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-md); }
@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(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { width: 20px; height: 20px; border: 2.5px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; }
.fade-in { animation: fadeIn 0.4s ease; }
.slide-up { animation: slideUp 0.4s ease; }

/* ---------- Related products / recently viewed ---------- */
.related-section { padding-top: var(--space-2xl); border-top: 1px solid var(--color-border); }

/* ---------- Table of accepted payments ---------- */
.payment-icons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: var(--space-sm); }
.payment-icons span { padding: 6px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 0.75rem; font-weight: 700; color: var(--color-text-secondary); }

/* ---------- Checkout page ---------- */
.checkout-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); padding: var(--space-lg) 0 var(--space-2xl); }
@media (min-width: 900px) { .checkout-layout { grid-template-columns: 1.4fr 1fr; gap: var(--space-2xl); align-items: start; } }
.checkout-section { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-xl); margin-bottom: var(--space-lg); }
.checkout-section h2 { font-size: 1.2rem; margin-bottom: var(--space-lg); }
.checkout-form-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
@media (min-width: 600px) { .checkout-form-grid { grid-template-columns: 1fr 1fr; } }
.checkout-form-grid .full { grid-column: 1 / -1; }
.checkout-summary { position: sticky; top: 100px; }
.checkout-summary-section { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-xl); }
.checkout-item { display: flex; gap: 14px; padding: var(--space-md) 0; border-bottom: 1px solid var(--color-border); }
.checkout-item img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); background: var(--color-surface-alt); }
.checkout-item-info { flex: 1; min-width: 0; }
.checkout-item-title { font-weight: 700; font-size: 0.88rem; margin-bottom: 3px; }
.checkout-item-variant { font-size: 0.78rem; color: var(--color-text-muted); margin-bottom: 6px; }
.checkout-item-row { display: flex; justify-content: space-between; align-items: center; }
.checkout-item-price { font-family: var(--font-mono); font-weight: 700; font-size: 0.88rem; }
.checkout-qty-control { display: flex; align-items: center; border: 1px solid var(--color-border); border-radius: var(--radius-full); }
.checkout-qty-control button { width: 26px; height: 26px; background: none; border: none; font-size: 0.9rem; }
.checkout-qty-control span { width: 24px; text-align: center; font-size: 0.85rem; font-weight: 700; }
.checkout-item-remove { background: none; border: none; color: var(--color-text-muted); font-size: 0.75rem; text-decoration: underline; margin-top: 4px; }
.checkout-totals { margin-top: var(--space-lg); }
.checkout-total-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.92rem; }
.checkout-total-row.grand { border-top: 2px solid var(--color-border); margin-top: 8px; padding-top: 12px; font-size: 1.15rem; font-weight: 700; font-family: var(--font-mono); }
.checkout-total-row.free { color: var(--color-success); font-weight: 700; }
.checkout-discount-row { display: flex; gap: 8px; margin: var(--space-md) 0; }
.checkout-discount-row input { flex: 1; padding: 10px 14px; border: 1.5px solid var(--color-border); border-radius: var(--radius-full); font-size: 0.88rem; }
.checkout-discount-msg { font-size: 0.82rem; margin-top: 4px; }
.checkout-discount-msg.success { color: var(--color-success); }
.checkout-discount-msg.error { color: var(--color-error); }
.checkout-empty { text-align: center; padding: var(--space-2xl) var(--space-md); }
.shipping-method-option { display: flex; justify-content: space-between; align-items: center; padding: 14px; border: 1.5px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: 10px; cursor: pointer; transition: border-color var(--transition-fast); }
.shipping-method-option:hover, .shipping-method-option.selected { border-color: var(--color-accent); }
.shipping-method-option input { accent-color: var(--color-accent); }
.shipping-method-label { font-weight: 700; font-size: 0.92rem; }
.shipping-method-desc { font-size: 0.8rem; color: var(--color-text-muted); }
.shipping-method-price { font-family: var(--font-mono); font-weight: 700; }
.payment-method-option { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: 10px; cursor: pointer; transition: border-color var(--transition-fast); }
.payment-method-option:hover, .payment-method-option.selected { border-color: var(--color-accent); }
.payment-method-option input { accent-color: var(--color-accent); }
.payment-method-label { font-weight: 700; font-size: 0.92rem; }
.payment-icons-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.payment-icon { padding: 4px 10px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 0.72rem; font-weight: 700; color: var(--color-text-secondary); }
.checkout-secure-note { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--color-text-muted); margin-top: var(--space-md); }
.checkout-secure-note svg { width: 16px; height: 16px; color: var(--color-success); }
.checkout-place-order { width: 100%; margin-top: var(--space-lg); padding: 16px; font-size: 1.05rem; }
.checkout-success { text-align: center; padding: var(--space-3xl) var(--space-md); }
.checkout-success-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--color-success); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-lg); }
.checkout-success-icon svg { width: 36px; height: 36px; }
.checkout-success h1 { margin-bottom: var(--space-md); }
.checkout-success-details { background: var(--color-surface-alt); border-radius: var(--radius-lg); padding: var(--space-xl); margin: var(--space-lg) auto; max-width: 500px; text-align: left; }
.checkout-success-detail-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.9rem; }
.checkout-success-detail-row strong { color: var(--color-text-primary); }
.billing-same-row { display: flex; align-items: center; gap: 10px; margin-bottom: var(--space-md); font-weight: 600; font-size: 0.9rem; }
.billing-same-row input { accent-color: var(--color-accent); width: 18px; height: 18px; }
.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }
.flex { display: flex; }
.gap-md { gap: var(--space-md); }
.hidden { display: none !important; }
