/* ============================================
   ALTERVAPE WEB SHOP - Main Stylesheet
   ============================================ */

:root {
  --primary: #00B548;
  --primary-dark: #007A32;
  --primary-light: rgba(0, 181, 72, 0.10);
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --surface-elevated: #F0F1F3;
  --card: #FFFFFF;
  --border: #E2E4E8;
  --border-light: #D0D3D9;
  --text: #0F1115;
  --text-secondary: #555B67;
  --text-muted: #9AA0AC;
  --error: #E53935;
  --warning: #F59E0B;
  --success: #00B548;
  --info: #0288D1;
  --white: #FFFFFF;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --transition: all 0.2s ease;
  --nav-height: 62px;
  --cats-bar-height: 40px;
  --bottom-nav-height: 64px;
  --nav-gap: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }
input, textarea, select { font-family: inherit; outline: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #F0F1F3; }
::-webkit-scrollbar-thumb { background: #C8CDD6; border-radius: 3px; }

/* ══════════════════════════════
   TOP NAVBAR
══════════════════════════════ */
#shop-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(226,228,232,0.8);
  display: flex;
  flex-direction: column;
  padding: 0;
  z-index: 1000;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05), 0 4px 20px rgba(0,0,0,0.04);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.nav-top-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  /* No fixed height — let padding control it so the row
     is content-height only and cats row sits immediately below */
  padding: 10px 28px 0;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}
#shop-nav.scrolled {
  background: rgba(255,255,255,0.99);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 6px 28px rgba(0,0,0,0.08);
}

.nav-logo {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 2.5px;
  color: var(--text);
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}
.nav-logo span { color: var(--primary); }
.nav-logo::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 2px rgba(0,181,72,0.25);
  flex-shrink: 0;
}

.nav-search {
  width: 100%;
  max-width: 560px;
  justify-self: center;
  position: relative;
}
.nav-search input {
  width: 100%;
  background: #F3F4F6;
  border: 1.5px solid transparent;
  border-radius: var(--radius-full);
  color: var(--text);
  padding: 10px 40px 10px 44px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s ease;
  outline: none;
}
.nav-search input:focus {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,181,72,0.12);
}
.nav-search input::placeholder { color: var(--text-muted); font-weight: 400; }
.nav-search .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 14px;
}
.nav-search .search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 15px;
  display: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--border);
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: var(--transition);
}
.nav-search .search-clear:hover { background: var(--border-light); }

.nav-actions { display: flex; align-items: center; gap: 6px; justify-self: end; }

.nav-btn {
  position: relative;
  width: 40px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
}
.nav-btn:hover {
  background: #F3F4F6;
  color: var(--primary);
  transform: scale(1.04);
}
.nav-btn .badge {
  position: absolute;
  top: 3px; right: 3px;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid #fff;
  line-height: 1;
}

.nav-divider {
  width: 1px;
  height: 22px;
  background: var(--border);
  margin: 0 2px;
  flex-shrink: 0;
}

/* Mobile search icon button — hidden on desktop */
#nav-mobile-search-btn {
  display: none;
  width: 40px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
  flex-shrink: 0;
}
#nav-mobile-search-btn:hover {
  background: #F3F4F6;
  color: var(--primary);
}
#nav-mobile-search-btn.search-open { color: var(--primary); background: var(--primary-light); }

/* Mobile search bar
   Hidden: translateY(-100%) slides it above its top edge (= nav-height) → invisible.
   Open:   translateY(0) → flush below navbar.
   z-index 1050 → above nav shadow (nav=1000). */
#nav-mobile-search-bar {
  position: fixed;
  /* Default: parked above the screen, out of sight */
  top: -200px;
  left: 0;
  right: 0;
  background: #ffffff;
  padding: 14px 16px 16px;
  border-bottom: 2px solid var(--primary);
  box-shadow: 0 6px 20px rgba(0,0,0,0.14);
  z-index: 1050;
  opacity: 0;
  transition: top 0.28s cubic-bezier(0.4,0,0.2,1),
              opacity 0.28s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
  display: block;
}
#nav-mobile-search-bar.open {
  top: var(--nav-height);
  opacity: 1;
  pointer-events: auto;
}
#mobile-search-form {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}
#mobile-search-input {
  width: 100%;
  font-size: 16px;
  padding: 13px 44px 13px 48px;
  background: #F3F4F6;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
#mobile-search-input:focus {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,181,72,0.15);
}
#mobile-search-input::placeholder { color: var(--text-muted); }
#mobile-search-form .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
#mobile-search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  font-size: 14px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}
@media (min-width: 641px) {
  #nav-mobile-search-bar { display: none !important; }
}

/* Live search dropdown */
#search-live-drop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  z-index: 2000;
  max-height: 400px;
  overflow-y: auto;
  display: none;
}
#search-live-drop.visible { display: block; }
.search-drop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border-light);
}
.search-drop-item:last-child { border-bottom: none; }
.search-drop-item:hover { background: var(--primary-light); }
.search-drop-thumb {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--surface-elevated);
  flex-shrink: 0;
}
.search-drop-info { flex: 1; min-width: 0; }
.search-drop-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-drop-price { font-size: 12px; color: var(--primary); font-weight: 700; margin-top: 2px; }
.search-drop-empty { padding: 20px; text-align: center; color: var(--text-muted); font-size: 13px; }
.search-drop-footer { padding: 10px 14px; text-align: center; font-size: 13px; font-weight: 600; color: var(--primary); cursor: pointer; border-top: 1px solid var(--border-light); }
.search-drop-footer:hover { background: var(--primary-light); }

/* Mobile live search drop — attaches to the mobile bar */
#mobile-search-live-wrap { position: relative; }

.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 8px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.nav-user-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.nav-user-btn .avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#nav-login-btn {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  padding: 8px 18px;
}
#nav-login-btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

/* ══════════════════════════════
   DESKTOP NAV CATEGORIES ROW
   (inside #shop-nav, no separator)
══════════════════════════════ */

/* entry animation — items fly up one by one */
@keyframes chipIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-categories {
  /* hidden by default on mobile */
  display: none;
  width: 100%;
  overflow: hidden;
  /* extra 2px so the bottom chip shadow isn't clipped */
  max-height: calc(var(--cats-bar-height) + 2px);
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1),
              opacity    0.35s cubic-bezier(0.4,0,0.2,1);
  opacity: 1;
  will-change: max-height, opacity;
  /* flush below the top row — no gap, no border */
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}
.nav-categories.cats-hidden {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.nav-cats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: var(--cats-bar-height);
  padding: 0 28px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-cats-inner::-webkit-scrollbar { display: none; }

/* plain text chips */
.nav-cat-chip {
  flex-shrink: 0;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  background: transparent;
  border: 1.5px solid transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, transform 0.15s ease;
  opacity: 0;
  animation: chipIn 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
.nav-cat-chip:nth-child(1)  { animation-delay: 0.04s; }
.nav-cat-chip:nth-child(2)  { animation-delay: 0.08s; }
.nav-cat-chip:nth-child(3)  { animation-delay: 0.12s; }
.nav-cat-chip:nth-child(4)  { animation-delay: 0.16s; }
.nav-cat-chip:nth-child(5)  { animation-delay: 0.20s; }
.nav-cat-chip:nth-child(6)  { animation-delay: 0.24s; }
.nav-cat-chip:nth-child(7)  { animation-delay: 0.28s; }
.nav-cat-chip:nth-child(8)  { animation-delay: 0.32s; }
.nav-cat-chip:nth-child(9)  { animation-delay: 0.36s; }
.nav-cat-chip:nth-child(10) { animation-delay: 0.40s; }
.nav-cat-chip:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: rgba(0,181,72,0.3);
  transform: translateY(-1px);
}
.nav-cat-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,181,72,0.25);
}

/* On desktop: show the categories row */
@media (min-width: 641px) {
  .nav-categories { display: block; }
  /* nav-v2 owns body padding; keep app flush so hero slider sits
     directly under the navbar */
  #shop-app         { padding-top: 0; }
  .product-gallery  { top: calc(var(--nav-h-total) + 12px); }
  .cart-summary     { top: calc(var(--nav-h-total) + 12px); }
}

/* ══════════════════════════════
   BOTTOM NAV (mobile)
══════════════════════════════ */
#bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bottom-nav-height);
  background: rgba(255,255,255,0.97);
  border-top: 1px solid var(--border);
  z-index: 999;
  backdrop-filter: blur(12px);
}
.bottom-nav-inner {
  display: flex;
  height: 100%;
}
.bnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}
.bnav-item .bnav-icon { font-size: 22px; line-height: 1; }
.bnav-item.active { color: var(--primary); }
.bnav-item .badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 18px);
  background: var(--primary);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
}

/* ══════════════════════════════
   MAIN LAYOUT
══════════════════════════════ */
#shop-app {
  /* body already has padding-top:var(--nav-h-total) for the nav v2.
     No extra spacing here so full-bleed elements (hero slider) sit
     flush against the navbar. */
  padding-top: 0;
  min-height: 100vh;
}

/* Page container */
.page { display: none; min-height: calc(100vh - var(--nav-height)); }
.page.active { display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ══════════════════════════════
   BUTTONS
══════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover:not(:disabled) { background: #00a843; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover:not(:disabled) { background: var(--primary-light); }
.btn-ghost {
  background: var(--surface-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.btn-danger {
  background: var(--error);
  color: var(--white);
}
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-full { width: 100%; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: var(--radius-md); font-size: 18px; }
.btn-icon-sm { width: 32px; height: 32px; padding: 0; border-radius: var(--radius-sm); font-size: 16px; }

/* ══════════════════════════════
   CARDS & SURFACES
══════════════════════════════ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

/* ══════════════════════════════
   FORM ELEMENTS
══════════════════════════════ */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-input {
  width: 100%;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  padding: 12px 14px;
  font-size: 15px;
  transition: var(--transition);
}
.form-input:focus { border-color: var(--primary); }
.form-input::placeholder { color: var(--text-muted); }
.form-input.error { border-color: var(--error); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.form-error { color: var(--error); font-size: 12px; margin-top: 4px; }
textarea.form-input { resize: vertical; min-height: 80px; }

/* ══════════════════════════════
   HOME PAGE
══════════════════════════════ */
/* ── Hero Slider (replaces static hero-banner) ── */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #1A1A2E;
  /* No margin/border-radius — full width flush */
}
.hs-track {
  position: relative;
  width: 100%;
  height: clamp(320px, 52vw, 580px);
}
.hs-slide {
  position: absolute;
  inset: 0;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  opacity: 0;
  transition: opacity 0.65s ease;
  pointer-events: none;
}
.hs-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.hs-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(5,5,15,0.82) 0%, rgba(5,5,15,0.45) 55%, rgba(5,5,15,0.10) 100%);
}
.hs-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px clamp(20px, 6vw, 80px);
  max-width: 680px;
  color: #fff;
}
.hs-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(0,181,72,0.18);
  border: 1px solid rgba(0,181,72,0.45);
  color: #4ade80;
  border-radius: 50px;
  padding: 4px 14px;
  margin-bottom: 14px;
  width: fit-content;
}
.hs-title {
  font-size: clamp(28px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  margin: 0 0 14px;
  color: #fff;
}
.hs-title span { color: #4ade80; }
.hs-sub {
  font-size: clamp(13px, 1.6vw, 16px);
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
  margin: 0 0 28px;
  max-width: 480px;
}
.hs-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hs-btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.hs-btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,181,72,0.38);
}
.hs-btn--primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.hs-btn--outline {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(4px);
}
.hs-btn--outline:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }

/* Arrows */
.hs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}
.hs-arrow:hover { background: rgba(0,181,72,0.75); border-color: transparent; }
.hs-arrow--prev { left: 16px; }
.hs-arrow--next { right: 16px; }

/* Dots */
.hs-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
}
.hs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.22s ease;
}
.hs-dot.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}

/* Legacy hero-banner kept for fallback / other uses */
.hero-banner {
  background: linear-gradient(135deg, #E8F7EE 0%, #F0FBF4 60%, #FFFFFF 100%);
  border: 1px solid rgba(0,181,72,0.25);
  border-radius: var(--radius-xl);
  margin: 24px 20px;
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}
.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(0,181,72,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-subtitle { color: var(--primary); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; }
.hero-title { color: var(--text); font-size: clamp(28px, 4vw, 48px); font-weight: 900; line-height: 1.2; margin-bottom: 24px; }
.hero-title span { color: var(--primary); }
.hero-decor { font-size: clamp(80px, 12vw, 130px); line-height: 1; opacity: 0.6; user-select: none; }

.section { padding: 32px 20px; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title { font-size: 20px; font-weight: 800; color: var(--text); }
.see-all-btn {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.see-all-btn:hover { text-decoration: underline; }

/* Categories strip */
.categories-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.categories-strip::-webkit-scrollbar { display: none; }

.category-chip-img {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  min-width: 72px;
  transition: var(--transition);
}
.category-chip-img:hover .cat-img-wrap { border-color: var(--primary); transform: scale(1.05); }
.cat-img-wrap {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--surface-elevated);
  border: 2px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  transition: var(--transition);
}
.cat-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.cat-chip-label { color: var(--text-secondary); font-size: 11px; font-weight: 600; text-align: center; white-space: nowrap; }

/* Promo/loyalty banner */
.promo-banner {
  margin: 0 20px 32px;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition);
}
.promo-banner:hover { opacity: 0.9; transform: translateY(-2px); }
.promo-title { color: var(--white); font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.promo-subtitle { color: rgba(255,255,255,0.8); font-size: 13px; }

/* Featured products horizontal scroll */
.featured-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  align-items: stretch;
}
.featured-scroll::-webkit-scrollbar { display: none; }

/* Each featured card wrapper — fixed width, full height flex column */
.featured-card-wrap {
  flex: 0 0 200px;
  width: 200px;
  display: flex;
}
.featured-card-wrap .product-card {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.featured-card-wrap .product-card-body {
  flex: 1;          /* grows to push footer to bottom */
}
.featured-card-wrap .product-card-img {
  height: 200px;    /* fixed image height — all cards identical */
  flex-shrink: 0;
}

/* ══════════════════════════════
   PRODUCT CARD
══════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  /* reset <a> tag styles */
  text-decoration: none;
  color: inherit;
}
.product-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,181,72,0.15);
}

.product-card-img {
  position: relative;
  background: var(--surface-elevated);
  aspect-ratio: 1;
  overflow: hidden;
}
.product-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-img .img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--text-muted);
}

.product-badge {
  position: absolute;
  top: 8px; left: 8px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.badge-discount { background: var(--error); color: var(--white); }
.badge-out { background: rgba(100,100,110,0.18); color: var(--text-muted); }
.badge-featured { background: var(--primary); color: var(--white); }

.wishlist-btn-card {
  position: absolute;
  top: 8px; right: 8px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
}
.wishlist-btn-card:hover { background: rgba(229,57,53,0.1); border-color: var(--error); }
.wishlist-btn-card.active { color: var(--error); }

.product-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-category { color: var(--primary); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.product-name { color: var(--text); font-size: 13px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price-row { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.product-price { color: var(--primary); font-size: 15px; font-weight: 800; }
.product-compare-price { color: var(--text-muted); font-size: 12px; text-decoration: line-through; }
.product-out-text { color: var(--text-muted); font-size: 12px; }

.product-card-footer {
  padding: 10px 12px 12px;
  display: flex;
  gap: 8px;
}
.add-to-cart-btn {
  flex: 1;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  padding: 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.add-to-cart-btn:hover:not(:disabled) { background: #00a843; }
.add-to-cart-btn:disabled { background: var(--surface-elevated); color: var(--text-muted); cursor: not-allowed; }
.quick-add-btn {
  width: 36px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.quick-add-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ══════════════════════════════
   SHOP PAGE
══════════════════════════════ */
.shop-header {
  padding: 24px 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.shop-title { font-size: 24px; font-weight: 900; color: var(--text); }
.shop-count { color: var(--text-muted); font-size: 14px; font-weight: 400; }

.sort-select {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}
.sort-select:focus { border-color: var(--primary); }

.categories-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 20px 16px;
  scrollbar-width: none;
}
.categories-filter::-webkit-scrollbar { display: none; }
.cat-filter-chip {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.cat-filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.cat-filter-chip.active { background: var(--primary); border-color: var(--primary); color: var(--white); }

.shop-content { padding: 0 20px 40px; }

.load-more-wrap { text-align: center; padding: 24px 0; }

/* ══════════════════════════════
   PRODUCT DETAIL PAGE
══════════════════════════════ */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 32px 20px 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.product-gallery { position: sticky; top: calc(var(--nav-height) + 16px); align-self: start; }
.main-image-wrap {
  background: var(--surface-elevated);
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
  margin-bottom: 12px;
}
.main-image-wrap img { width: 100%; height: 100%; object-fit: contain; }
.main-image-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  color: var(--text-muted);
}
.main-discount-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--error);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.thumbnails-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.thumbnails-row::-webkit-scrollbar { display: none; }
.thumbnail {
  width: 68px; height: 68px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}
.thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.thumbnail.active { border-color: var(--primary); }
.thumbnail:hover { border-color: var(--primary); }

.product-detail-info { padding: 8px 0; }
.product-detail-category { color: var(--primary); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.product-detail-name { color: var(--text); font-size: clamp(20px, 3vw, 30px); font-weight: 900; line-height: 1.3; margin-bottom: 16px; }

.price-stock-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.price-group { display: flex; align-items: baseline; gap: 10px; }
.detail-price { color: var(--primary); font-size: 28px; font-weight: 900; }
.detail-compare { color: var(--text-muted); font-size: 16px; text-decoration: line-through; }
.stock-badge {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
}
.stock-in { background: rgba(0,200,81,0.12); color: var(--primary); }
.stock-out { background: rgba(255,68,68,0.12); color: var(--error); }

.detail-sku { color: var(--text-muted); font-size: 13px; margin-bottom: 16px; }
.divider { height: 1px; background: var(--border); margin: 16px 0; }

.detail-section-title { color: var(--text); font-size: 15px; font-weight: 800; margin-bottom: 10px; }
.detail-description { color: var(--text-secondary); font-size: 15px; line-height: 1.7; margin-bottom: 20px; }

.quantity-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.qty-selector {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.qty-btn {
  width: 40px; height: 42px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover { background: var(--border); color: var(--primary); }
.qty-value { width: 44px; text-align: center; font-size: 16px; font-weight: 800; color: var(--text); }
.qty-total { color: var(--text-secondary); font-size: 14px; }
.qty-total strong { color: var(--primary); font-size: 18px; }

.detail-actions { display: flex; gap: 12px; }
.detail-wishlist-btn {
  width: 50px; height: 50px;
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  font-size: 22px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.detail-wishlist-btn:hover { border-color: var(--error); }
.detail-wishlist-btn.active { color: var(--error); border-color: var(--error); background: rgba(229,57,53,0.08); }

/* ══════════════════════════════
   CART
══════════════════════════════ */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  padding: 24px 20px 48px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.cart-items-list { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
  display: flex;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  align-items: center;
  transition: var(--transition);
}
.cart-item:hover { border-color: var(--border-light); }
.cart-item-img {
  width: 80px; height: 80px;
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--text-muted);
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { color: var(--text); font-size: 14px; font-weight: 600; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { color: var(--text-muted); font-size: 13px; margin-bottom: 10px; }
.cart-qty-row { display: flex; align-items: center; gap: 10px; }
.cart-qty-btn {
  width: 28px; height: 28px;
  border-radius: var(--radius-sm);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-qty-btn:hover { border-color: var(--primary); color: var(--primary); }
.cart-qty-val { color: var(--text); font-size: 15px; font-weight: 800; min-width: 20px; text-align: center; }
.cart-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; }
.cart-item-total { color: var(--primary); font-size: 16px; font-weight: 800; }
.cart-remove-btn {
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  background: rgba(229,57,53,0.08);
  border: 1px solid transparent;
  color: var(--error);
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-remove-btn:hover { border-color: var(--error); }

.cart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cart-title { font-size: 22px; font-weight: 900; color: var(--text); }
.clear-cart-btn { color: var(--error); font-size: 13px; font-weight: 600; background: none; border: none; cursor: pointer; }

.cart-summary {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  position: sticky;
  top: calc(var(--nav-height) + 16px);
}
.summary-title { font-size: 17px; font-weight: 800; color: var(--text); margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.summary-label { color: var(--text-secondary); font-size: 14px; }
.summary-value { color: var(--text); font-size: 14px; font-weight: 600; }
.summary-total-row { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 20px; }
.summary-total-label { color: var(--text); font-size: 17px; font-weight: 800; }
.summary-total-value { color: var(--primary); font-size: 22px; font-weight: 900; }
.promo-code-row { display: flex; gap: 8px; margin-bottom: 12px; }
.promo-code-input {
  flex: 1;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  padding: 10px 12px;
  font-size: 14px;
}
.promo-code-input:focus { border-color: var(--primary); }
.promo-code-input::placeholder { color: var(--text-muted); }
.promo-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0,181,72,0.08);
  border: 1px solid rgba(0,122,50,0.3);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 12px;
}
.promo-applied-text { color: var(--primary); font-size: 14px; font-weight: 700; }

/* ══════════════════════════════
   CHECKOUT
══════════════════════════════ */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  padding: 24px 20px 48px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}
.checkout-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  margin-bottom: 16px;
}
.checkout-section-title { color: var(--text); font-size: 16px; font-weight: 800; margin-bottom: 16px; }
.payment-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--surface-elevated);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 10px;
}
.payment-option:hover { border-color: var(--primary); }
.payment-option.active { border-color: var(--primary); background: var(--primary-light); }
.payment-option-icon { font-size: 24px; }
.payment-option-info { flex: 1; }
.payment-option-label { color: var(--text); font-size: 15px; font-weight: 700; }
.payment-option-sub { color: var(--text-muted); font-size: 12px; }
.radio-btn { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: var(--transition); }
.radio-btn.active { border-color: var(--primary); }
.radio-inner { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.loyalty-toggle-row { display: flex; align-items: center; justify-content: space-between; }
.loyalty-info h4 { color: var(--text); font-size: 15px; font-weight: 700; }
.loyalty-info p { color: var(--text-muted); font-size: 12px; }
.toggle-switch { width: 48px; height: 26px; border-radius: 13px; background: var(--border); cursor: pointer; position: relative; transition: var(--transition); flex-shrink: 0; }
.toggle-switch.on { background: var(--primary); }
.toggle-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--white); position: absolute; top: 3px; left: 3px; transition: var(--transition); }
.toggle-switch.on .toggle-thumb { transform: translateX(22px); }

/* ══════════════════════════════
   ORDER SUCCESS
══════════════════════════════ */
.order-success-page {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.order-success-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  max-width: 520px;
  width: 100%;
  text-align: center;
}
.success-icon-wrap {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E8F7EE, #C8EDD8);
  border: 2px solid rgba(0,181,72,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 48px;
}
.success-title { color: var(--text); font-size: 30px; font-weight: 900; margin-bottom: 10px; }
.success-subtitle { color: var(--text-secondary); font-size: 15px; line-height: 1.6; margin-bottom: 28px; }
.order-info-grid {
  background: var(--surface-elevated);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 24px;
  text-align: left;
}
.order-info-row { display: flex; justify-content: space-between; margin-bottom: 10px; }
.order-info-row:last-child { margin-bottom: 0; }
.order-info-label { color: var(--text-secondary); font-size: 14px; }
.order-info-value { color: var(--text); font-size: 14px; font-weight: 700; }
.loyalty-earned-banner {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.loyalty-earned-text { color: var(--warning); font-size: 14px; font-weight: 700; }

/* ══════════════════════════════
   AUTH PAGE
══════════════════════════════ */
.auth-page {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: radial-gradient(ellipse at top, rgba(0,181,72,0.06) 0%, transparent 50%);
}
.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 440px;
}
.auth-logo { text-align: center; margin-bottom: 8px; }
.auth-logo-text { font-size: 28px; font-weight: 900; letter-spacing: 2px; color: var(--text); }
.auth-logo-text span { color: var(--primary); }
.auth-tagline { color: var(--text-muted); font-size: 13px; text-align: center; margin-bottom: 28px; }
.auth-tabs { display: flex; gap: 0; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.auth-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: -1px;
}
.auth-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.auth-error { background: rgba(229,57,53,0.08); border: 1px solid rgba(229,57,53,0.3); border-radius: var(--radius-md); padding: 12px; color: var(--error); font-size: 14px; margin-bottom: 14px; display: none; }
.auth-error.show { display: block; }
.auth-divider { text-align: center; color: var(--text-muted); font-size: 12px; margin: 16px 0; }
.auth-footer { text-align: center; color: var(--text-secondary); font-size: 14px; margin-top: 20px; }

/* ══════════════════════════════
   PROFILE PAGE
══════════════════════════════ */
.profile-layout {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}
.user-hero-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  margin-bottom: 16px;
}
.user-avatar-lg {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.user-name { color: var(--text); font-size: 20px; font-weight: 800; margin-bottom: 2px; }
.user-email { color: var(--text-secondary); font-size: 14px; }
.loyalty-card {
  background: linear-gradient(135deg, #007A32, #00B548);
  border: 1px solid rgba(0,122,50,0.3);
  border-radius: var(--radius-xl);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  margin-bottom: 16px;
  transition: var(--transition);
}
.loyalty-card:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,200,81,0.15); }
.loyalty-pts-big { color: var(--white); font-size: 28px; font-weight: 900; }
.loyalty-pts-label { color: rgba(255,255,255,0.85); font-size: 13px; }
.loyalty-pts-value { color: var(--primary); font-size: 14px; font-weight: 700; }
.profile-menu { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; margin-bottom: 16px; }
.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.profile-menu-item:last-child { border-bottom: none; }
.profile-menu-item:hover { background: var(--surface); }
.menu-icon-wrap {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.menu-item-label { flex: 1; color: var(--text); font-size: 15px; font-weight: 600; }
.menu-item-arrow { color: var(--text-muted); font-size: 16px; }

/* ══════════════════════════════
   ORDERS PAGE
══════════════════════════════ */
.orders-layout { max-width: 860px; margin: 0 auto; padding: 28px 20px 48px; }
.order-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: var(--transition);
}
.order-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.order-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.order-number { color: var(--text); font-size: 15px; font-weight: 800; }
.order-status-badge {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}
.status-pending { background: rgba(255,187,51,0.15); color: var(--warning); }
.status-confirmed,.status-processing { background: rgba(51,181,229,0.15); color: var(--info); }
.status-shipped { background: rgba(100,100,255,0.15); color: #8888ff; }
.status-delivered { background: rgba(0,200,81,0.15); color: var(--primary); }
.status-cancelled { background: rgba(255,68,68,0.15); color: var(--error); }
.order-card-footer { display: flex; justify-content: space-between; align-items: center; }
.order-date { color: var(--text-muted); font-size: 13px; }
.order-total { color: var(--primary); font-size: 16px; font-weight: 800; }

/* ══════════════════════════════
   WISHLIST
══════════════════════════════ */
.wishlist-layout { max-width: 860px; margin: 0 auto; padding: 28px 20px 48px; }
.wishlist-item {
  display: flex;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 12px;
  transition: var(--transition);
  cursor: pointer;
  /* reset <a> tag styles */
  text-decoration: none;
  color: inherit;
}
.wishlist-item:hover { border-color: var(--primary); }
.wishlist-item-img {
  width: 100px; height: 100px;
  flex-shrink: 0;
  background: var(--surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--text-muted);
}
.wishlist-item-img img { width: 100%; height: 100%; object-fit: cover; }
.wishlist-item-info { flex: 1; padding: 14px 0; min-width: 0; }
.wishlist-item-name { color: var(--text); font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.wishlist-item-price { color: var(--primary); font-size: 16px; font-weight: 900; margin-bottom: 4px; }
.wishlist-item-compare { color: var(--text-muted); font-size: 13px; text-decoration: line-through; }
.wishlist-item-actions { display: flex; flex-direction: column; gap: 8px; padding: 14px; justify-content: center; flex-shrink: 0; }

/* ══════════════════════════════
   LOYALTY PAGE
══════════════════════════════ */
.loyalty-layout { max-width: 680px; margin: 0 auto; padding: 28px 20px 48px; }
.loyalty-hero {
  background: linear-gradient(135deg, #007A32, #00B548);
  border: 1px solid rgba(0,122,50,0.3);
  border-radius: var(--radius-xl);
  padding: 32px;
  text-align: center;
  margin-bottom: 20px;
}
.loyalty-star { font-size: 48px; margin-bottom: 12px; }
.loyalty-balance-big { color: var(--white); font-size: 52px; font-weight: 900; line-height: 1; }
.loyalty-balance-label { color: var(--text-muted); font-size: 14px; margin-bottom: 8px; }
.loyalty-euro-value { color: var(--primary); font-size: 20px; font-weight: 700; }
.how-it-works { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 20px; margin-bottom: 20px; }
.how-step { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.how-step:last-child { margin-bottom: 0; }
.how-step-icon { width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--primary-light); border: 1px solid var(--primary-dark); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.how-step-title { color: var(--text); font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.how-step-desc { color: var(--text-muted); font-size: 13px; }
.loyalty-history-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.loyalty-history-item:last-child { border-bottom: none; }
.loyalty-tx-icon { font-size: 22px; margin-right: 12px; }
.loyalty-tx-label { color: var(--text); font-size: 14px; font-weight: 600; }
.loyalty-tx-date { color: var(--text-muted); font-size: 12px; }
.loyalty-tx-pts { font-size: 16px; font-weight: 900; }
.loyalty-tx-pts.earn { color: var(--primary); }
.loyalty-tx-pts.spend { color: var(--error); }

/* ══════════════════════════════
   MODAL
══════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
  margin-bottom: 16px;
}
.modal-title { color: var(--text); font-size: 18px; font-weight: 800; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 22px; cursor: pointer; padding: 4px; line-height: 1; transition: var(--transition); }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 0 24px 24px; }
.modal-footer { padding: 0 24px 24px; display: flex; gap: 10px; justify-content: flex-end; }

/* ══════════════════════════════
   EMPTY STATE
══════════════════════════════ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 20px;
  text-align: center;
}
.empty-icon { font-size: 56px; margin-bottom: 16px; }
.empty-title { color: var(--text); font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.empty-subtitle { color: var(--text-secondary); font-size: 15px; line-height: 1.5; margin-bottom: 24px; max-width: 320px; }

/* ══════════════════════════════
   TOAST
══════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 12px 20px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 320px;
  box-shadow: var(--shadow);
  animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
  pointer-events: all;
}
.toast.success { border-left: 3px solid var(--primary); }
.toast.error { border-left: 3px solid var(--error); }
.toast.info { border-left: 3px solid var(--info); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; transform: translateX(20px); } }

/* ══════════════════════════════
   LOADING
══════════════════════════════ */
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}
.spinner-sm { width: 20px; height: 20px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  gap: 16px;
  color: var(--text-secondary);
}

/* ══════════════════════════════
   PAGE HEADER
══════════════════════════════ */
.page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 20px 16px;
}
.page-back-btn {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.page-back-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-header-title { color: var(--text); font-size: 22px; font-weight: 900; }

/* ══════════════════════════════
   ORDER DETAIL MODAL
══════════════════════════════ */
.order-detail-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.order-detail-item { display: flex; justify-content: space-between; }
.order-detail-item-name { color: var(--text-secondary); font-size: 14px; }
.order-detail-item-price { color: var(--text); font-size: 14px; font-weight: 600; }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 900px) {
  .product-detail-layout { grid-template-columns: 1fr; gap: 24px; }
  .product-gallery { position: static; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}

@media (max-width: 640px) {
  #shop-nav { padding: 0 14px; gap: 0; }
  .nav-top-row { padding: 10px 14px 0; gap: 12px; }
  .nav-search { display: none; }
  #nav-mobile-search-btn { display: flex !important; }
  .nav-user-btn span { display: none; }
  .nav-user-btn { padding: 0; width: 36px; height: 36px; border-radius: 50%; background: transparent !important; border: none !important; }
  .nav-user-btn .avatar { width: 32px; height: 32px; font-size: 13px; }
  #nav-login-btn { padding: 0; width: 36px; height: 36px; border-radius: 50%; background: transparent !important; border: none !important; font-size: 0; }
  #nav-login-btn::after { content: '👤'; font-size: 18px; }
  #bottom-nav { display: block; }
  #shop-app { padding-bottom: var(--bottom-nav-height); }
  .hero-banner { padding: 32px 20px; margin: 16px 12px; }
  .hero-decor { display: none; }
  /* Slider mobile */
  .hs-track { height: clamp(260px, 72vw, 380px); }
  .hs-content { padding: 32px 18px; }
  .hs-arrow { width: 34px; height: 34px; font-size: 20px; }
  .hs-arrow--prev { left: 8px; }
  .hs-arrow--next { right: 8px; }
  .hs-btn { padding: 10px 20px; font-size: 13px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .featured-card-wrap { flex: 0 0 160px; width: 160px; }
  .featured-card-wrap .product-card-img { height: 160px; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .cart-layout, .checkout-layout { padding: 16px 12px 80px; }
  .product-detail-layout { padding: 16px 12px 80px; }
  .detail-actions { flex-direction: column; }
  .detail-wishlist-btn { width: 100%; }
  .order-success-card { padding: 32px 20px; }
  .auth-card { padding: 28px 20px; }
  .section { padding: 20px 12px; }
  .container { padding: 0 12px; }
  .toast-container { bottom: calc(var(--bottom-nav-height) + 10px); right: 12px; left: 12px; }
  .toast { max-width: 100%; }
  .modal-overlay { padding: 12px; }
}

@media (max-width: 380px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .product-card-body { padding: 8px; }
  .product-name { font-size: 12px; }
}

/* ══════════════════════════════
   DESKTOP ENHANCEMENTS (≥ 1024px)
══════════════════════════════ */
@media (min-width: 1024px) {

  /* Wider navbar padding */
  #shop-nav {
    padding: 0 40px;
    gap: 28px;
  }
  .nav-search { max-width: 600px; }
  .nav-logo { font-size: 21px; letter-spacing: 3px; }
  .nav-cats-inner { padding: 0 40px; }

  /* Bottom nav hidden on desktop — top nav handles everything */
  #bottom-nav { display: none !important; }
  #shop-app { padding-bottom: 0; }

  /* Content max-width container */
  #shop-app > .page.active {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
  }
  /* Hero slider breaks out of the max-width constraint on desktop */
  .hero-slider {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
  }

  /* ── Home ── */
  .hero-banner {
    margin: 32px 40px;
    padding: 64px 56px;
    border-radius: 24px;
  }
  .hero-title { font-size: 52px; }
  .hero-decor { font-size: 140px; }
  /* Slider desktop — constrain height, bigger arrows */
  .hs-track { height: clamp(400px, 44vw, 580px); }
  .hs-arrow { width: 48px; height: 48px; font-size: 28px; }
  .hs-arrow--prev { left: 28px; }
  .hs-arrow--next { right: 28px; }
  .hs-dots { bottom: 22px; }

  .section { padding: 40px 40px; }

  .categories-strip { gap: 20px; padding-bottom: 12px; justify-content: center; flex-wrap: wrap; overflow-x: visible; }
  .category-chip-img { min-width: 90px; }
  .cat-img-wrap { width: 80px; height: 80px; font-size: 32px; }
  .cat-chip-label { font-size: 12px; }

  .featured-card-wrap { flex: 0 0 240px; width: 240px; }
  .featured-card-wrap .product-card-img { height: 240px; }
  .promo-banner { margin: 0 40px 40px; padding: 28px 36px; }

  /* ── Shop grid ── */
  .shop-header { padding: 32px 40px 20px; }
  .categories-filter { padding: 0 40px 20px; gap: 10px; }
  .shop-content { padding: 0 40px 60px; }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
  }

  /* ── Product detail ── */
  .product-detail-layout {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    padding: 40px 40px 64px;
    max-width: 1200px;
  }
  .product-detail-name { font-size: 32px; }
  .detail-price { font-size: 34px; }

  /* ── Cart / Checkout ── */
  .cart-layout {
    grid-template-columns: 1fr 400px;
    padding: 32px 40px 64px;
    max-width: 1200px;
    gap: 32px;
  }
  .checkout-layout {
    grid-template-columns: 1fr 400px;
    padding: 32px 40px 64px;
    max-width: 1200px;
    gap: 32px;
  }

  /* ── Auth ── */
  .auth-page { min-height: calc(100vh - var(--nav-height)); }
  .auth-card { max-width: 440px; padding: 48px; }

  /* ── Profile ── */
  .profile-layout { max-width: 860px; margin: 0 auto; padding: 32px 40px 64px; }

  /* ── Orders / Wishlist ── */
  .orders-layout { max-width: 980px; padding: 32px 40px 64px; }
  .wishlist-layout { max-width: 980px; padding: 32px 40px 64px; }

  /* ── Loyalty ── */
  .loyalty-layout { max-width: 760px; padding: 32px 40px 64px; }

  /* ── Page headers ── */
  .page-header { padding: 32px 40px 20px; }
  .page-header-title { font-size: 26px; }

  /* ── Toasts go bottom-right ── */
  .toast-container { bottom: 32px; right: 40px; }

  /* ── Order success ── */
  .order-success-page { padding: 64px 40px; }
  .order-success-card { max-width: 560px; padding: 56px 48px; }

  /* ── Desktop nav: show category links ── */
  .nav-desktop-links {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .nav-desktop-link {
    padding: 7px 14px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border: none;
    white-space: nowrap;
  }
  .nav-desktop-link:hover { color: var(--primary); background: var(--surface-elevated); }
  .nav-desktop-link.active { color: var(--primary); }
}

/* ── Medium screens 900–1023px ── */
@media (min-width: 900px) and (max-width: 1023px) {
  #bottom-nav { display: none !important; }
  #shop-app { padding-bottom: 0; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
  .shop-content { padding: 0 24px 48px; }
  .shop-header { padding: 24px 24px 16px; }
  .categories-filter { padding: 0 24px 16px; }
  .section { padding: 32px 24px; }
  .hero-banner { margin: 24px 24px; padding: 48px 40px; }
}

/* ============================================
   PRODUCT DETAIL PAGE — v2 (modern)
   ============================================ */
.pd-wrap{ max-width:1280px; margin:0 auto; padding:16px 20px 120px; }

/* Breadcrumb */
.pd-breadcrumb{ display:flex; flex-wrap:wrap; align-items:center; gap:6px;
  font-size:13px; color:var(--text-muted); padding:8px 0 16px; }
.pd-breadcrumb a{ color:var(--text-secondary); text-decoration:none; transition:color .15s; }
.pd-breadcrumb a:hover{ color:var(--primary); }
.pd-bc-sep{ color:var(--border-light); }
.pd-bc-current{ color:var(--text); font-weight:500;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:260px; }

/* Two-column layout */
.pd-layout{ display:grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap:48px; align-items:flex-start; }

/* Gallery */
.pd-gallery{ display:grid; gap:16px; position:sticky; top:16px;
  grid-template-columns: 80px minmax(0, 1fr); }
/* Single-image gallery — main wrap takes the whole width */
.pd-gallery.pd-gallery--single{ grid-template-columns: minmax(0, 1fr); }
/* :has() fallback for safety, in case the JS class isn't applied */
.pd-gallery:not(:has(.pd-thumbs-col)){ grid-template-columns: minmax(0, 1fr); }
.pd-thumbs-col{ display:flex; flex-direction:column; gap:10px; max-height:560px; overflow-y:auto; padding-right:4px; }
.pd-thumbs-col::-webkit-scrollbar{ width:4px; } .pd-thumbs-col::-webkit-scrollbar-thumb{ background:var(--border-light); border-radius:2px; }
.pd-thumbs-row-mobile{ display:none; }

.pd-thumb{ width:72px; height:72px; border:2px solid var(--border); border-radius:10px;
  background:var(--surface); cursor:pointer; padding:4px; overflow:hidden; transition:all .15s; flex-shrink:0; }
.pd-thumb:hover{ border-color:var(--primary-dark); }
.pd-thumb.active{ border-color:var(--primary); box-shadow:0 0 0 3px var(--primary-light); }
.pd-thumb img{ width:100%; height:100%; object-fit:cover; border-radius:6px; }

.pd-main-wrap{ position:relative; background:var(--surface); border:1px solid var(--border);
  border-radius:16px; overflow:hidden; aspect-ratio:1/1; max-height:600px; cursor:zoom-in; }
.pd-main-wrap img{ width:100%; height:100%; object-fit:contain; padding:24px;
  transition: transform .2s ease; will-change:transform; }
.pd-main-placeholder{ width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  font-size:96px; color:var(--text-muted); background:var(--surface-elevated); }
.pd-img-badges{ position:absolute; top:12px; left:12px; display:flex; flex-direction:column; gap:6px; z-index:2; pointer-events:none; }
.pd-badge{ padding:4px 10px; border-radius:6px; font-size:11px; font-weight:800; letter-spacing:.4px; color:#fff; text-transform:uppercase; }
.pd-badge-discount{ background:var(--error); }
.pd-badge-new{ background:var(--primary); }
.pd-badge-low{ background:var(--warning); color:#1a1306; }
.pd-zoom-btn{ position:absolute; top:12px; right:12px; width:36px; height:36px; border-radius:50%;
  border:none; background:rgba(255,255,255,.92); cursor:pointer; font-size:15px; z-index:3;
  box-shadow:0 2px 8px rgba(0,0,0,.12); transition:all .15s; }
.pd-zoom-btn:hover{ background:#fff; transform:scale(1.08); }
.pd-nav-arrow{ position:absolute; top:50%; transform:translateY(-50%); width:44px; height:44px;
  border-radius:50%; border:none; background:rgba(255,255,255,.92); cursor:pointer; font-size:24px;
  line-height:1; color:var(--text); box-shadow:0 2px 12px rgba(0,0,0,.12); z-index:3; opacity:0; transition:opacity .2s; }
.pd-main-wrap:hover .pd-nav-arrow{ opacity:1; }
.pd-nav-prev{ left:12px; } .pd-nav-next{ right:12px; }
.pd-nav-arrow:hover{ background:#fff; }

/* Info column */
.pd-info{ min-width:0; }
.pd-brand{ font-size:12px; font-weight:700; letter-spacing:1px; text-transform:uppercase;
  color:var(--primary); margin-bottom:6px; }
.pd-title{ font-size:30px; font-weight:800; line-height:1.2; margin:0 0 14px; color:var(--text);
  letter-spacing:-.02em; }
.pd-meta-row{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:18px;
  padding-bottom:18px; border-bottom:1px solid var(--border); }
.pd-meta-chip{ display:inline-block; padding:3px 10px; border-radius:999px; background:var(--surface-elevated);
  color:var(--text-secondary); font-size:12px; font-weight:600; }
.pd-rating{ display:inline-flex; align-items:center; gap:6px; font-size:13px; color:var(--text-muted); margin-left:auto; }
.pd-stars{ color:#FFC107; letter-spacing:1px; font-size:14px; }
.pd-rating-count{ font-size:12px; }

.pd-price-row{ display:flex; align-items:baseline; flex-wrap:wrap; gap:12px; margin-bottom:4px; }
.pd-price{ font-size:36px; font-weight:800; color:var(--text); letter-spacing:-.02em; }
.pd-compare{ font-size:18px; color:var(--text-muted); text-decoration:line-through; }
.pd-discount-pill{ background:var(--error); color:#fff; padding:4px 10px; border-radius:8px;
  font-size:13px; font-weight:800; }
.pd-savings{ color:var(--success); font-size:13px; margin-bottom:14px; }
.pd-savings b{ font-weight:700; }

.pd-stock-row{ display:flex; align-items:center; gap:8px; margin:14px 0 20px; font-size:14px; }
.pd-dot{ width:8px; height:8px; border-radius:50%; }
.pd-dot-in{ background:var(--success); box-shadow:0 0 0 3px rgba(0,181,72,.15); }
.pd-dot-low{ background:var(--warning); box-shadow:0 0 0 3px rgba(245,158,11,.15); }
.pd-dot-out{ background:var(--error); }
.pd-stock-text{ font-weight:600; }
.pd-stock-text.in{ color:var(--success); }
.pd-stock-text.low{ color:var(--warning); }
.pd-stock-text.out{ color:var(--error); }

/* Variants */
.pd-variants{ margin:20px 0 24px; display:flex; flex-direction:column; gap:18px; }
.pd-variant-group{ }
.pd-variant-label{ font-size:13px; font-weight:700; color:var(--text); margin-bottom:8px;
  display:flex; gap:6px; }
.pd-variant-label span:first-child{ color:var(--text-secondary); font-weight:600; }
.pd-variant-current{ color:var(--text); }
.pd-variant-options{ display:flex; flex-wrap:wrap; gap:8px; }
.pd-variant-opt{ position:relative; min-width:52px; padding:10px 14px; border:1.5px solid var(--border);
  background:var(--surface); border-radius:10px; font-size:14px; font-weight:600; color:var(--text);
  cursor:pointer; transition:all .15s; }
.pd-variant-opt:hover:not(:disabled){ border-color:var(--primary-dark); }
.pd-variant-opt.selected{ border-color:var(--primary); background:var(--primary-light); color:var(--primary-dark); }
.pd-variant-opt.oos, .pd-variant-opt:disabled{ color:var(--text-muted); cursor:not-allowed; opacity:.55; }
.pd-opt-strike{ position:absolute; top:50%; left:8%; right:8%; height:1px; background:var(--text-muted);
  transform:rotate(-12deg); }

.pd-short-desc{ color:var(--text-secondary); font-size:14px; line-height:1.6; margin:18px 0; }

/* Buy row */
.pd-buy-row{ display:flex; flex-wrap:wrap; align-items:stretch; gap:10px; margin:24px 0 14px; }
.pd-qty{ display:inline-flex; align-items:center; border:1.5px solid var(--border); border-radius:12px;
  background:var(--surface); overflow:hidden; }
.pd-qty-btn{ width:42px; height:48px; border:none; background:transparent; font-size:20px; font-weight:600;
  color:var(--text); cursor:pointer; transition:background .12s; }
.pd-qty-btn:hover{ background:var(--surface-elevated); }
.pd-qty-val{ width:56px; height:48px; border:none; text-align:center; font-size:16px; font-weight:700;
  background:transparent; color:var(--text); -moz-appearance:textfield; }
.pd-qty-val::-webkit-outer-spin-button, .pd-qty-val::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }

.pd-add-btn{ flex:1; min-width:200px; height:48px; display:inline-flex; align-items:center; justify-content:center;
  gap:10px; font-size:15px; font-weight:700; border-radius:12px; }
.pd-add-btn .pd-cart-total{ margin-left:auto; padding-left:12px; border-left:1px solid rgba(255,255,255,.3); opacity:.9; }
.pd-add-btn.added{ background:var(--success); }

.pd-icon-btn{ width:48px; height:48px; border:1.5px solid var(--border); background:var(--surface);
  border-radius:12px; cursor:pointer; font-size:18px; transition:all .15s;
  display:inline-flex; align-items:center; justify-content:center; color:var(--text-secondary); }
.pd-icon-btn:hover{ border-color:var(--primary); color:var(--primary); }
.pd-icon-btn.pd-wish.active{ border-color:#ff4d6d; background:rgba(255,77,109,.06); }

.pd-buynow{ width:100%; height:48px; border-radius:12px; background:var(--surface-elevated);
  color:var(--text); border:1.5px solid var(--border); font-weight:700; font-size:15px;
  cursor:pointer; transition:all .15s; }
.pd-buynow:hover{ border-color:var(--primary); color:var(--primary); }

/* Loyalty banner */
.pd-loyalty{ display:flex; align-items:center; gap:14px; margin-top:18px; padding:14px 16px;
  background:linear-gradient(135deg, rgba(0,181,72,.06), rgba(0,181,72,.02));
  border:1px solid rgba(0,181,72,.18); border-radius:12px; }
.pd-loyalty-ic{ font-size:24px; }
.pd-loyalty b{ display:block; color:var(--text); font-size:14px; }
.pd-loyalty small{ display:block; color:var(--text-muted); font-size:12px; margin-top:2px; }

/* Trust badges */
.pd-trust{ display:grid; grid-template-columns:repeat(2, 1fr); gap:10px; margin-top:22px;
  padding-top:22px; border-top:1px solid var(--border); }
.pd-trust-item{ display:flex; align-items:center; gap:10px; font-size:12px; }
.pd-trust-ic{ font-size:22px; flex-shrink:0; }
.pd-trust-item b{ display:block; color:var(--text); font-size:13px; font-weight:700; }
.pd-trust-item small{ display:block; color:var(--text-muted); font-size:11px; margin-top:1px; }

/* Tabs */
.pd-tabs{ margin-top:48px; }
.pd-tabs-nav{ display:flex; gap:0; border-bottom:1px solid var(--border); margin-bottom:24px; overflow-x:auto; }
.pd-tab{ padding:14px 22px; background:none; border:none; border-bottom:3px solid transparent;
  margin-bottom:-1px; font-size:14px; font-weight:600; color:var(--text-muted); cursor:pointer;
  transition:all .15s; white-space:nowrap; }
.pd-tab:hover{ color:var(--text); }
.pd-tab.active{ color:var(--primary); border-bottom-color:var(--primary); }
.pd-tab-panel{ display:none; color:var(--text-secondary); font-size:14px; line-height:1.7; }
.pd-tab-panel.active{ display:block; animation:pdFadeIn .25s ease; }
@keyframes pdFadeIn{ from{ opacity:0; transform:translateY(4px); } to{ opacity:1; transform:none; } }
.pd-rich-text{ white-space:pre-wrap; }
.pd-empty{ color:var(--text-muted); font-style:italic; }
.pd-tags{ margin-top:18px; display:flex; flex-wrap:wrap; gap:6px; }
.pd-tag{ padding:4px 10px; background:var(--surface-elevated); color:var(--text-secondary);
  border-radius:6px; font-size:12px; font-weight:500; }
.pd-spec-table{ width:100%; border-collapse:collapse; }
.pd-spec-table th, .pd-spec-table td{ padding:12px 14px; text-align:left; border-bottom:1px solid var(--border); font-size:14px; }
.pd-spec-table th{ width:34%; color:var(--text-secondary); font-weight:600; background:var(--surface-elevated); }
.pd-spec-table td{ color:var(--text); }
.pd-tab-panel h4{ margin:20px 0 10px; color:var(--text); font-size:15px; }
.pd-tab-panel h4:first-child{ margin-top:0; }

/* Related */
.pd-related{ margin-top:56px; padding-top:32px; border-top:1px solid var(--border); }
.pd-related-head{ display:flex; align-items:baseline; justify-content:space-between; margin-bottom:20px; }
.pd-related-head h3{ font-size:22px; font-weight:800; color:var(--text); margin:0; }
.pd-related-all{ color:var(--primary); text-decoration:none; font-size:14px; font-weight:600; }
.pd-related-all:hover{ text-decoration:underline; }
.pd-related-grid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:16px; }

/* Sticky mobile bar */
.pd-sticky-bar{ display:none; position:fixed; bottom:0; left:0; right:0; z-index:50;
  background:var(--surface); border-top:1px solid var(--border); padding:10px 14px;
  box-shadow:0 -4px 16px rgba(0,0,0,.06); align-items:center; gap:12px; }
.pd-sticky-info{ flex:1; min-width:0; }
.pd-sticky-name{ font-size:12px; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pd-sticky-price{ font-size:17px; font-weight:800; color:var(--text); }
.pd-sticky-add{ height:44px; padding:0 18px; border-radius:10px; font-weight:700; font-size:14px; white-space:nowrap; }

/* Lightbox */
.pd-lightbox{ display:none; position:fixed; inset:0; background:rgba(0,0,0,.92); z-index:1000;
  align-items:center; justify-content:center; padding:24px; }
.pd-lightbox.open{ display:flex; animation:pdFadeIn .2s ease; }
.pd-lightbox img{ max-width:90vw; max-height:88vh; object-fit:contain; border-radius:8px; }
.pd-lightbox-close{ position:absolute; top:18px; right:24px; width:44px; height:44px; border-radius:50%;
  border:none; background:rgba(255,255,255,.15); color:#fff; font-size:28px; line-height:1; cursor:pointer; }
.pd-lightbox-close:hover{ background:rgba(255,255,255,.25); }
.pd-lightbox-nav{ position:absolute; top:50%; transform:translateY(-50%); width:54px; height:54px;
  border-radius:50%; border:none; background:rgba(255,255,255,.15); color:#fff; font-size:32px;
  line-height:1; cursor:pointer; }
.pd-lightbox-nav:hover{ background:rgba(255,255,255,.25); }
.pd-lightbox-prev{ left:24px; } .pd-lightbox-next{ right:24px; }

/* Responsive */
@media (max-width: 980px){
  /* Mobile/tablet PDP CTA layout: 2-row, full-width Add to Cart */
  .pd-buy-row{ flex-wrap:wrap; gap:10px; }
  .pd-qty{ order:1; }
  .pd-icon-btn{ order:2; flex-shrink:0; }
  .pd-add-btn{ order:3; flex:1 1 100%; width:100%; min-width:0; }
  .pd-add-btn .pd-cart-total{ flex:0 0 auto; white-space:nowrap; }

  .pd-layout{ grid-template-columns:1fr; gap:28px; }
  .pd-gallery{ position:static; grid-template-columns:1fr; }
  .pd-thumbs-col{ display:none; }
  .pd-thumbs-row-mobile{ display:flex; gap:8px; overflow-x:auto; padding:6px 2px 2px; scroll-snap-type:x mandatory; }
  .pd-thumbs-row-mobile .pd-thumb{ scroll-snap-align:start; width:64px; height:64px; }
  .pd-main-wrap{ aspect-ratio:1/1; max-height:none; }
  .pd-main-wrap img{ padding:16px; }
  .pd-main-wrap:hover img{ transform:none !important; }
  .pd-title{ font-size:24px; }
  .pd-price{ font-size:28px; }
  .pd-trust{ grid-template-columns:1fr 1fr; }
  .pd-related-grid{ grid-template-columns:repeat(2, 1fr); }
  .pd-tab{ padding:12px 16px; font-size:13px; }
  .pd-sticky-bar{ display:flex; }
  .pd-wrap{ padding-bottom:80px; }
  .pd-nav-arrow{ opacity:1; }
}
@media (max-width: 480px){
  .pd-related-grid{ grid-template-columns:1fr 1fr; gap:10px; }
  /* On phones, make sure the price doesn't overflow the Add to Cart pill */
  .pd-add-btn{ height:50px; font-size:14px; padding:0 14px; }
  .pd-add-btn .pd-cart-ic{ display:none; }
  .pd-add-btn .pd-cart-total{ padding-left:10px; font-size:13px; }
}

/* Empty stars (no reviews) */
.pd-stars-empty{ color:var(--border-light); letter-spacing:1px; font-size:16px; }
.pd-rating-count{ color:var(--text-muted); }

/* Color swatches */
.pd-variant-color .pd-variant-options{ gap:10px; }
.pd-color-opt{ position:relative; width:40px; height:40px; padding:3px; border-radius:50%;
  border:2px solid var(--border); background:var(--surface); cursor:pointer; transition:all .15s;
  display:inline-flex; align-items:center; justify-content:center; }
.pd-color-opt:hover:not(:disabled){ border-color:var(--primary-dark); transform:scale(1.05); }
.pd-color-opt.selected{ border-color:var(--primary); box-shadow:0 0 0 3px var(--primary-light); }
.pd-color-opt.oos, .pd-color-opt:disabled{ opacity:.5; cursor:not-allowed; }
.pd-color-opt.oos::after{ content:''; position:absolute; top:50%; left:6px; right:6px; height:2px;
  background:var(--error); transform:rotate(-30deg); border-radius:1px; }
.pd-color-dot{ width:30px; height:30px; border-radius:50%; display:block;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.06); }

/* ════════════════════════════════════════════════════════════
   NAVBAR V2 — modern, multi-tier, accessible
   Overrides legacy #shop-nav layout (classnames new, IDs reused)
   ════════════════════════════════════════════════════════════ */
:root{
  --nav-h-utility: 36px;
  --nav-h-main: 68px;
  --nav-h-cats: 48px;
  --nav-h-total: calc(var(--nav-h-utility) + var(--nav-h-main) + var(--nav-h-cats));
  --nav-shadow: 0 1px 0 rgba(15,17,21,.04), 0 8px 24px rgba(15,17,21,.06);
  --nav-shadow-scrolled: 0 1px 0 rgba(15,17,21,.06), 0 10px 32px rgba(15,17,21,.10);
}

/* Skip link */
.skip-link{ position:fixed; top:-40px; left:12px; z-index:2000; background:var(--primary); color:#fff;
  padding:8px 14px; border-radius:8px; font-weight:700; transition:top .2s; }
.skip-link:focus{ top:12px; outline:2px solid #fff; }

/* Reset previous #shop-nav definition that used flex column */
#shop-nav.nav-v2{
  position:fixed; top:0; left:0; right:0; z-index:1000;
  background:rgba(255,255,255,.94);
  -webkit-backdrop-filter:saturate(180%) blur(20px);
  backdrop-filter:saturate(180%) blur(20px);
  border-bottom:1px solid rgba(226,228,232,.6);
  box-shadow:var(--nav-shadow);
  display:block;
  padding:0;
  transition: box-shadow .25s ease, background .25s ease;
}
#shop-nav.nav-v2.scrolled{ background:rgba(255,255,255,.98); box-shadow:var(--nav-shadow-scrolled); }

/* ─── Tier 1: utility bar ─── */
.nav-utility{ background:linear-gradient(90deg, #0a0d12 0%, #11161e 100%); color:#dadde3;
  height:var(--nav-h-utility); overflow:hidden; transition:height .25s ease, opacity .25s ease; font-size:12px; }
.nav-v2.scrolled .nav-utility{ height:0; opacity:0; pointer-events:none; }
.nav-utility-inner{ max-width:1200px; margin:0 auto; height:100%; padding:0 28px;
  display:flex; align-items:center; justify-content:space-between; gap:24px; }
.nav-utility-promo{ position:relative; flex:1; min-width:0; height:100%; overflow:hidden; }
.nav-promo-item{ position:absolute; inset:0; display:flex; align-items:center; gap:8px;
  opacity:0; transform:translateY(8px); transition:opacity .35s ease, transform .35s ease;
  white-space:nowrap; }
.nav-promo-item.active{ opacity:1; transform:translateY(0); }
.nav-promo-ic{ font-size:14px; }
.nav-utility-right{ display:flex; align-items:center; gap:14px; }
.nav-utility-link{ background:none; border:none; color:#dadde3; cursor:pointer; padding:4px 6px;
  font-size:12px; font-weight:500; display:inline-flex; align-items:center; gap:5px; border-radius:6px;
  transition:color .15s, background .15s; }
.nav-utility-link:hover{ color:#fff; background:rgba(255,255,255,.06); }
.nav-utility-sep{ width:1px; height:14px; background:rgba(255,255,255,.12); }
.nav-flag{ font-size:14px; }
.nav-caret{ font-size:9px; opacity:.7; }

/* ─── Tier 2: main row ─── */
.nav-main{ height:var(--nav-h-main); transition:height .25s ease; }
.nav-v2.scrolled .nav-main{ height:60px; }
.nav-main-inner{ max-width:1200px; margin:0 auto; height:100%; padding:0 28px;
  display:flex; align-items:center; gap:24px; }

.nav-burger{ display:none; width:42px; height:42px; border:none; background:none; cursor:pointer;
  border-radius:10px; padding:10px; flex-shrink:0; }
.nav-burger span{ display:block; height:2px; background:var(--text); border-radius:2px;
  margin:4px 0; transition:transform .25s, opacity .2s; }
.nav-burger.open span:nth-child(1){ transform:translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2){ opacity:0; }
.nav-burger.open span:nth-child(3){ transform:translateY(-6px) rotate(-45deg); }
.nav-burger:hover{ background:var(--surface-elevated); }

.nav-logo-v2{ display:inline-flex; align-items:center; gap:10px; padding:8px 4px; background:none;
  border:none; cursor:pointer; color:var(--text); flex-shrink:0; }
/* Logo icon hidden site-wide (navbar, mobile drawer, footer). Wordmark only. */
.nav-logo-mark{ display:none !important; }
.nav-logo-mark.__keep{ display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px;
  border-radius:10px; background:linear-gradient(135deg, var(--primary), var(--primary-dark));
  color:#fff; box-shadow:0 4px 12px rgba(0,181,72,.25); }
.nav-logo-text{ font-size:20px; font-weight:900; letter-spacing:2px; line-height:1; color:var(--text); }
.nav-logo-text span{ color:var(--primary); }
.nav-logo-v2:hover .nav-logo-text{ opacity:.85; transition:opacity .15s; }

/* Search */
.nav-search-v2{ position:relative; flex:1; max-width:560px; }
.nav-search-v2 input{ width:100%; height:44px; padding:0 80px 0 44px;
  border:1.5px solid var(--border); border-radius:12px; background:var(--surface-elevated);
  font-size:14px; color:var(--text); font-weight:500; transition:all .15s;
  -webkit-appearance:none; }
.nav-search-v2 input::placeholder{ color:var(--text-muted); font-weight:400; }
.nav-search-v2 input:focus{ outline:none; border-color:var(--primary); background:#fff;
  box-shadow:0 0 0 4px var(--primary-light); }
.nav-search-ic{ position:absolute; left:14px; top:50%; transform:translateY(-50%); pointer-events:none;
  color:var(--text-muted); font-size:15px; }
.nav-search-clear{ position:absolute; right:48px; top:50%; transform:translateY(-50%);
  width:22px; height:22px; border:none; border-radius:50%; background:var(--border-light); color:var(--text);
  cursor:pointer; font-size:14px; line-height:1; }
.nav-search-clear:hover{ background:var(--text-muted); color:#fff; }
.nav-search-kbd{ position:absolute; right:14px; top:50%; transform:translateY(-50%);
  padding:2px 7px; background:var(--surface); border:1px solid var(--border); border-radius:5px;
  font-family:ui-monospace, SFMono-Regular, monospace; font-size:11px; color:var(--text-muted);
  pointer-events:none; box-shadow:0 1px 0 var(--border); }
.nav-search-v2 input:focus ~ .nav-search-kbd{ opacity:0; }

/* Actions */
.nav-actions-v2{ display:flex; align-items:center; gap:4px; flex-shrink:0; }
.nav-icon-btn{ position:relative; width:42px; height:42px; border:none; background:none; cursor:pointer;
  border-radius:10px; color:var(--text-secondary); display:inline-flex; align-items:center; justify-content:center;
  transition:all .15s; }
.nav-icon-btn:hover{ background:var(--surface-elevated); color:var(--text); }
.nav-icon-btn:active{ transform:scale(.95); }
.nav-badge{ position:absolute; top:4px; right:4px; min-width:18px; height:18px; padding:0 5px;
  border-radius:9px; background:var(--primary); color:#fff; font-size:11px; font-weight:700;
  display:inline-flex; align-items:center; justify-content:center; line-height:1;
  box-shadow:0 0 0 2px #fff; }
.nav-badge.bump{ animation:navBump .45s cubic-bezier(.34,1.56,.64,1); }
@keyframes navBump{ 0%{ transform:scale(1); } 40%{ transform:scale(1.45); } 100%{ transform:scale(1); } }

#nav-mobile-search-btn{ display:none; }

.nav-user-btn-v2{ display:inline-flex; align-items:center; gap:8px; padding:0 14px; height:42px;
  border:none; border-radius:10px; cursor:pointer; font-weight:600; font-size:13px;
  background:var(--text); color:#fff; transition:all .15s; margin-left:6px; }
.nav-user-btn-v2:hover{ background:#000; transform:translateY(-1px); box-shadow:0 4px 12px rgba(0,0,0,.15); }
.nav-user-btn-v2 svg{ flex-shrink:0; }
.nav-user-loggedin{ background:var(--surface-elevated); color:var(--text); }
.nav-user-loggedin:hover{ background:var(--border); }
.nav-avatar{ width:26px; height:26px; border-radius:50%; background:linear-gradient(135deg,var(--primary),var(--primary-dark));
  color:#fff; display:inline-flex; align-items:center; justify-content:center; font-size:12px; font-weight:800; }

/* ─── Tier 3: categories ─── */
.nav-cats-v2{ height:var(--nav-h-cats); border-top:1px solid var(--border);
  background:rgba(255,255,255,.6); overflow:hidden; transition:height .25s ease; }
.nav-v2.scrolled .nav-cats-v2{ height:0; border-color:transparent; }
.nav-cats-v2 .nav-cats-inner{ max-width:1200px; margin:0 auto; height:100%; padding:0 28px;
  display:flex; align-items:center; gap:4px; overflow-x:auto; scrollbar-width:none; justify-content:center; }
.nav-cats-v2 .nav-cats-inner::-webkit-scrollbar{ display:none; }
.nav-cats-v2 .nav-cat-chip{ position:relative; display:inline-flex; align-items:center; gap:8px;
  padding:0 16px; height:36px; border:none; background:none; color:var(--text-secondary);
  border-radius:10px; cursor:pointer; font-size:13px; font-weight:600; white-space:nowrap;
  transition:all .15s; }
.nav-cats-v2 .nav-cat-chip:hover{ background:var(--surface-elevated); color:var(--text); }
.nav-cats-v2 .nav-cat-chip.active{ color:var(--primary); background:var(--primary-light); }
.nav-cats-v2 .nav-cat-chip.active::after{ content:''; position:absolute; bottom:-7px; left:50%;
  transform:translateX(-50%); width:24px; height:3px; border-radius:2px 2px 0 0; background:var(--primary); }

/* Override legacy cat chip styles that used dots/avatars */
.nav-cats-v2 .nav-cat-dot, .nav-cats-v2 .nav-cat-pill{ display:none !important; }

/* Mobile search overlay */
.nav-mobile-search-bar{ position:fixed; top:0; left:0; right:0; z-index:1100;
  background:#fff; padding:12px 16px; box-shadow:0 4px 16px rgba(0,0,0,.1);
  transform:translateY(-100%); transition:transform .25s ease; }
.nav-mobile-search-bar.open{ transform:translateY(0); }
.mobile-search-inner{ display:flex; align-items:center; gap:8px; }
.mobile-search-inner input{ flex:1; height:44px; padding:0 12px 0 40px; border:1.5px solid var(--border);
  border-radius:12px; background:var(--surface-elevated); font-size:15px; }
.mobile-search-inner .search-icon{ position:absolute; left:28px; pointer-events:none; }
.mobile-search-close{ width:42px; height:42px; border:none; background:var(--surface-elevated);
  border-radius:10px; font-size:22px; cursor:pointer; color:var(--text); }
.mobile-search-live-drop{ margin-top:10px; max-height:60vh; overflow-y:auto; background:#fff;
  border-radius:12px; box-shadow:0 8px 32px rgba(0,0,0,.08); padding:8px; }

/* Mobile drawer */
.nav-drawer{ position:fixed; top:0; left:0; bottom:0; width:320px; max-width:88vw; z-index:1200;
  background:#fff; transform:translateX(-100%); transition:transform .3s cubic-bezier(.4,0,.2,1);
  display:flex; flex-direction:column; box-shadow:8px 0 32px rgba(0,0,0,.18); }
.nav-drawer.open{ transform:translateX(0); }
.nav-drawer-backdrop{ position:fixed; inset:0; background:rgba(15,17,21,.5); z-index:1150;
  opacity:0; pointer-events:none; transition:opacity .25s; }
.nav-drawer-backdrop.open{ opacity:1; pointer-events:auto; }
.nav-drawer-header{ display:flex; align-items:center; justify-content:space-between;
  padding:16px 18px; border-bottom:1px solid var(--border); }
.nav-drawer-close{ width:38px; height:38px; border:none; background:var(--surface-elevated);
  border-radius:10px; font-size:22px; line-height:1; cursor:pointer; color:var(--text); }
.nav-drawer-body{ flex:1; overflow-y:auto; padding:12px 10px; }
.nav-drawer-link{ display:flex; align-items:center; gap:14px; width:100%; padding:14px 14px;
  background:none; border:none; cursor:pointer; font-size:15px; font-weight:600; color:var(--text);
  border-radius:10px; text-align:left; transition:background .15s; }
.nav-drawer-link:hover{ background:var(--surface-elevated); }
.nav-drawer-link span:first-child{ font-size:20px; width:24px; text-align:center; }
.nav-drawer-section-title{ padding:18px 14px 8px; font-size:11px; font-weight:800; letter-spacing:1.5px;
  text-transform:uppercase; color:var(--text-muted); }
.nav-drawer-cats{ display:flex; flex-direction:column; gap:2px; }
.nav-drawer-cat{ display:flex; align-items:center; gap:14px; width:100%; padding:12px 14px;
  background:none; border:none; cursor:pointer; font-size:14px; font-weight:500; color:var(--text-secondary);
  border-radius:10px; text-align:left; transition:background .15s; }
.nav-drawer-cat:hover{ background:var(--surface-elevated); color:var(--text); }
.nav-drawer-cat-ic{ width:32px; height:32px; border-radius:8px; background:var(--surface-elevated);
  display:inline-flex; align-items:center; justify-content:center; font-size:16px; flex-shrink:0; }
.nav-drawer-divider{ height:1px; background:var(--border); margin:12px 6px; }
.nav-drawer-footer{ border-top:1px solid var(--border); padding:14px 18px;
  display:flex; align-items:center; justify-content:space-between; gap:10px; }
.nav-drawer-footer small{ color:var(--text-muted); }

/* Body offset so content doesn't sit under the nav */
body{ padding-top: var(--nav-h-total); }
.nav-v2.scrolled ~ #shop-app, .nav-v2.scrolled ~ main{ /* no-op */ }

/* Responsive */
@media (max-width: 980px){
  :root{ --nav-h-cats: 0px; }
  .nav-cats-v2{ display:none; }
  .nav-utility{ display:none; }
  .nav-burger{ display:flex; align-items:center; justify-content:center; flex-direction:column; }
  .nav-main-inner{ padding:0 14px; gap:10px; }
  .nav-logo-text{ font-size:16px; letter-spacing:1.5px; }
  .nav-logo-mark{ width:30px; height:30px; }
  .nav-logo-mark svg{ width:22px; height:22px; }
  .nav-search-v2{ display:none; }
  #nav-mobile-search-btn{ display:inline-flex; }
  .nav-user-btn-v2 span{ display:none; }
  .nav-user-btn-v2{ width:42px; padding:0; justify-content:center; background:none; color:var(--text-secondary); }
  .nav-user-btn-v2:hover{ background:var(--surface-elevated); transform:none; box-shadow:none; }
  .nav-user-loggedin{ background:none; }
  .nav-user-loggedin .nav-avatar{ width:30px; height:30px; }
  body{ padding-top: var(--nav-h-main); }
}
@media (max-width: 480px){
  .nav-main-inner{ gap:4px; }
  .nav-icon-btn{ width:38px; height:38px; }
}

/* ============================================
   HOMEPAGE CONTENT SECTIONS (admin-managed)
   ============================================ */
.hp-section .section-header{ display:flex; align-items:flex-end; justify-content:space-between; gap:14px; padding-bottom:14px; }
.hp-section-eyebrow{ font-size:11px; font-weight:800; letter-spacing:1.6px; text-transform:uppercase;
  color:var(--primary); margin-bottom:6px; }
.hp-title-green{ color:var(--primary); }
.featured-card-wrap.hp-tilt{ transition: transform .25s ease, box-shadow .25s ease;
  transform-style: preserve-3d; will-change: transform; }
.featured-card-wrap.hp-tilt:hover{ box-shadow:0 18px 38px rgba(0,0,0,.10); }

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.av-footer{ background:linear-gradient(180deg, #0c1019 0%, #060810 100%); color:#cfd3dc;
  margin-top:64px; padding:0; }
.av-footer-inner{ max-width:1200px; margin:0 auto; padding:0 28px; }

/* Newsletter */
.av-footer-newsletter{ display:flex; align-items:center; justify-content:space-between; gap:32px;
  padding:36px 0; border-bottom:1px solid rgba(255,255,255,.08); flex-wrap:wrap; }
.av-footer-newsletter-text h3{ font-size:22px; font-weight:800; margin:0 0 4px; color:#fff; letter-spacing:-.3px; }
.av-footer-newsletter-text p{ font-size:13px; color:#9098a8; margin:0; }
.av-footer-newsletter-form{ display:flex; gap:8px; flex:0 1 460px; min-width:280px; }
.av-footer-newsletter-form input{ flex:1; height:46px; padding:0 16px; border-radius:12px;
  border:1.5px solid rgba(255,255,255,.12); background:rgba(255,255,255,.05); color:#fff;
  font-size:14px; outline:none; transition:all .15s; }
.av-footer-newsletter-form input::placeholder{ color:#6b7480; }
.av-footer-newsletter-form input:focus{ border-color:var(--primary); background:rgba(255,255,255,.08);
  box-shadow:0 0 0 4px rgba(0,181,72,.18); }
.av-footer-newsletter-form .btn{ height:46px; padding:0 22px; border-radius:12px; font-weight:700; flex-shrink:0; }

/* Columns */
.av-footer-cols{ display:grid; grid-template-columns:1.6fr repeat(4, 1fr); gap:40px;
  padding:48px 0 36px; border-bottom:1px solid rgba(255,255,255,.08); }
.av-footer-col h4{ font-size:13px; font-weight:800; letter-spacing:1.5px; text-transform:uppercase;
  color:#fff; margin:0 0 18px; }
.av-footer-col ul{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:11px; }
.av-footer-col a{ color:#9098a8; font-size:13.5px; text-decoration:none; transition:color .15s; }
.av-footer-col a:hover{ color:var(--primary); }

.av-footer-col--brand .nav-logo-mark{ width:38px; height:38px; }
.av-footer-tagline{ color:#9098a8; font-size:13px; line-height:1.6; margin:14px 0 18px; max-width:340px; }
.av-footer-contact{ display:flex; flex-direction:column; gap:8px; margin-bottom:18px; }
.av-footer-contact a, .av-footer-contact-line{ color:#9098a8; font-size:13px; text-decoration:none;
  display:inline-flex; align-items:center; gap:9px; transition:color .15s; }
.av-footer-contact a:hover{ color:#fff; }
.av-footer-contact span:first-child{ font-size:14px; }
.av-footer-social{ display:flex; gap:8px; }
.av-footer-social a{ width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.1); display:inline-flex; align-items:center; justify-content:center;
  color:#cfd3dc; transition:all .15s; }
.av-footer-social a:hover{ background:var(--primary); border-color:var(--primary); color:#fff; transform:translateY(-2px); }

/* Trust strip */
.av-footer-trust{ display:grid; grid-template-columns:repeat(4, 1fr); gap:20px;
  padding:28px 0; border-bottom:1px solid rgba(255,255,255,.08); }
.av-footer-trust-item{ display:flex; align-items:center; gap:14px; }
.av-footer-trust-item > span{ font-size:24px; width:42px; height:42px; display:inline-flex;
  align-items:center; justify-content:center; background:rgba(255,255,255,.04); border-radius:10px; }
.av-footer-trust-item b{ display:block; color:#fff; font-size:13px; font-weight:700; }
.av-footer-trust-item small{ display:block; color:#9098a8; font-size:12px; margin-top:2px; }

/* Bottom bar */
.av-footer-bottom{ display:flex; align-items:center; justify-content:space-between; gap:24px;
  padding:22px 0; flex-wrap:wrap; }
.av-footer-legal{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; color:#6b7480; }
.av-footer-legal small{ font-size:12px; color:#9098a8; }
.av-footer-legal a{ font-size:12px; color:#9098a8; text-decoration:none; transition:color .15s; }
.av-footer-legal a:hover{ color:#fff; }
.av-footer-sep{ color:#3a4050; font-size:12px; }
.av-footer-pay{ display:flex; gap:8px; flex-wrap:wrap; }
.av-pay-badge{ display:inline-flex; align-items:center; justify-content:center;
  height:30px; padding:0 12px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1);
  border-radius:7px; color:#cfd3dc; font-size:11px; font-weight:800; letter-spacing:.5px;
  font-family:ui-monospace, SFMono-Regular, monospace; }

/* Compliance / age notice */
.av-footer-compliance{ display:flex; align-items:flex-start; gap:14px;
  padding:18px 18px; margin:0 0 28px; background:rgba(245,158,11,.06);
  border:1px solid rgba(245,158,11,.18); border-radius:12px;
  font-size:12px; color:#b0b6c2; line-height:1.6; }
.av-compliance-icon{ flex-shrink:0; width:42px; height:42px; border-radius:50%;
  background:var(--warning); color:#1a1306; display:inline-flex; align-items:center; justify-content:center;
  font-weight:900; font-size:13px; letter-spacing:.5px; }
.av-footer-compliance b{ color:#fff; }

/* Responsive */
@media (max-width: 980px){
  .av-footer{ margin-top:40px; }
  .av-footer-cols{ grid-template-columns:1fr 1fr; gap:32px; padding:32px 0; }
  .av-footer-col--brand{ grid-column:1 / -1; }
  .av-footer-trust{ grid-template-columns:1fr 1fr; }
  .av-footer-newsletter{ padding:28px 0; }
  /* extra bottom padding so the mobile bottom-nav doesn't cover content */
  .av-footer-bottom{ flex-direction:column; align-items:flex-start; gap:14px; }
  body{ padding-bottom: 70px; /* room for bottom nav */ }
}
@media (max-width: 480px){
  .av-footer-cols{ grid-template-columns:1fr; }
  .av-footer-trust{ grid-template-columns:1fr; }
}

/* Hide footer on specific pages where it gets in the way */
body.no-footer #shop-footer{ display:none; }

/* ════════════════════════════════════════════════════════════
   PRODUCT CARD v2 — matches altervape.eu (clean, white, minimal)
   ════════════════════════════════════════════════════════════ */
.product-card.product-card--v2{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  box-shadow:none;
  transition: border-color .15s ease, transform .15s ease, box-shadow .2s ease;
}
.product-card.product-card--v2:hover{
  border-color:#d1d5db;
  transform:translateY(-2px);
  box-shadow:0 8px 22px rgba(15,17,21,.06);
}
.product-card--v2 .product-card-img{
  background:#fff;
  padding:16px;
  aspect-ratio:1/1;
  display:flex;
  align-items:center;
  justify-content:center;
}
.product-card--v2 .product-card-img img{
  width:100%; height:100%;
  object-fit:contain;
  transition: transform .25s ease;
}
.product-card--v2:hover .product-card-img img{ transform:scale(1.04); }
.product-card--v2 .img-placeholder{
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  font-size:46px; color:#cbd5e1;
}

.product-card--v2 .product-badge{
  position:absolute; top:10px; left:10px;
  padding:4px 9px;
  border-radius:6px;
  font-size:10.5px;
  font-weight:800;
  letter-spacing:.4px;
  text-transform:uppercase;
}
.product-card--v2 .badge-discount{ background:#ef4444; color:#fff; }
.product-card--v2 .badge-out{ background:rgba(15,17,21,.7); color:#fff; }

.product-card--v2 .wishlist-btn-card{
  position:absolute; top:10px; right:10px;
  width:32px; height:32px;
  border-radius:50%;
  background:#fff;
  border:1px solid #e5e7eb;
  color:#6b7280;
  display:inline-flex; align-items:center; justify-content:center;
  cursor:pointer;
  transition: all .15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.product-card--v2 .wishlist-btn-card:hover{ color:#e0245e; border-color:#e0245e; transform:scale(1.06); }
.product-card--v2 .wishlist-btn-card.active{ color:#e0245e; border-color:#fcd5de; background:#fff5f8; }

.product-card--v2 .product-card-body{
  padding:14px 16px 8px;
  display:flex; flex-direction:column;
  gap:6px;
  flex:1;
  min-height:96px;
}
.product-card--v2 .product-card-eyebrow{
  font-size:10.5px;
  font-weight:800;
  color:var(--primary);
  letter-spacing:1.2px;
  text-transform:uppercase;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.product-card--v2 .product-card-name{
  font-size:13.5px;
  font-weight:600;
  color:#0f172a;
  line-height:1.4;
  letter-spacing:.1px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:2.8em;
}
.product-card--v2 .product-card-price{
  margin-top:auto;
  display:flex; align-items:baseline;
  gap:8px;
  padding-top:4px;
}
.product-card--v2 .av-price-main{
  font-size:15px;
  font-weight:800;
  color:#0f172a;
  letter-spacing:-.2px;
}
.product-card--v2 .av-price-compare{
  font-size:12px;
  color:#9ca3af;
  text-decoration:line-through;
}

.product-card--v2 .product-card-footer{
  padding:8px 12px 12px;
}
.av-card-btn{
  width:100%;
  height:40px;
  border-radius:10px;
  font-size:12.5px;
  font-weight:700;
  letter-spacing:.4px;
  text-transform:uppercase;
  cursor:pointer;
  border:1.5px solid transparent;
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  transition: all .15s ease;
}
.av-card-btn--cart{
  background:var(--primary);
  color:#fff;
  border-color:var(--primary);
}
.av-card-btn--cart:hover{
  background:var(--primary-dark);
  border-color:var(--primary-dark);
  transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(0,181,72,.25);
}
.av-card-btn--options{
  background:#fff;
  color:#0f172a;
  border-color:#e5e7eb;
}
.av-card-btn--options:hover{
  background:#0f172a;
  color:#fff;
  border-color:#0f172a;
}
.av-card-btn--out{
  background:#f1f5f9;
  color:#9ca3af;
  border-color:#e5e7eb;
  cursor:not-allowed;
}

/* Responsive tweaks */
@media (max-width: 640px){
  .product-card--v2 .product-card-img{ padding:12px; }
  .product-card--v2 .product-card-body{ padding:12px 12px 6px; min-height:88px; }
  .product-card--v2 .product-card-name{ font-size:12.5px; }
  .av-card-btn{ height:38px; font-size:11.5px; }
}

/* ════════════════════════════════════════════════════════════
   PRODUCT CARD v3 — bigger, with tags + brand line + quick-view
   ════════════════════════════════════════════════════════════ */

/* Section track — grid (≤8) or horizontal slider (9+) */
.av-section{ padding:32px 28px; max-width:1280px; margin:0 auto; }
.av-section .section-header{ display:flex; justify-content:space-between; align-items:flex-end; gap:14px; padding:0 0 22px; }
.av-section-track--grid{
  display:grid;
  /* Always show full 4-column slots so card size stays consistent across sections;
     when a section has fewer products, empty cells just sit at the end. */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:18px;
}
.av-section-slider{ position:relative; }
.av-section-track--slider{
  display:flex;
  gap:18px;
  overflow-x:auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding:2px 2px 8px;
  scroll-padding-left:2px;
}
.av-section-track--slider::-webkit-scrollbar{ display:none; }
.av-section-track--slider .av-section-card{
  flex: 0 0 calc((100% - 54px) / 4);   /* 4 visible, 18px gaps */
  scroll-snap-align: start;
}
.av-section-card{ display:flex; }
.av-section-card .product-card{ width:100%; }

.av-slider-arrow{
  position:absolute; top:50%; transform:translateY(-50%);
  width:42px; height:42px; border-radius:50%;
  border:1px solid #e5e7eb;
  background:#fff;
  color:#0f172a;
  display:inline-flex; align-items:center; justify-content:center;
  cursor:pointer;
  box-shadow:0 6px 20px rgba(15,17,21,.10);
  z-index:5;
  transition:all .15s;
}
.av-slider-arrow:hover{ background:#0f172a; color:#fff; border-color:#0f172a; }
.av-slider-arrow--prev{ left:-12px; }
.av-slider-arrow--next{ right:-12px; }

/* CARD v3 overrides on top of v2 */
.product-card.product-card--v2{
  border:1px solid #eaecf0;
  border-radius:14px;
  box-shadow:none;
  display:flex; flex-direction:column;
  min-height:100%;
}
.product-card--v2 .product-card-img{
  padding:24px;
  aspect-ratio: 1/1;
}
.product-card--v2 .product-card-body{
  padding:14px 18px 10px;
  display:flex; flex-direction:column;
  gap:6px;
  flex:1;
}

/* Tag pills row (above brand) */
.product-card-tags{
  display:flex; flex-wrap:wrap; gap:6px;
  margin-bottom:2px;
}
.av-tag{
  display:inline-flex; align-items:center;
  padding:4px 10px;
  border-radius:14px;
  font-size:10.5px;
  font-weight:800;
  letter-spacing:.6px;
  text-transform:uppercase;
  line-height:1;
  white-space:nowrap;
}
.av-tag--green{
  background:#00b548;
  color:#fff;
}
.av-tag--dark{
  background:#0f172a;
  color:#fff;
}

/* Brand line — small grey uppercase between tags and title */
.product-card-brand{
  font-size:11px;
  font-weight:700;
  color:#9ca3af;
  letter-spacing:1.1px;
  text-transform:uppercase;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Title — bigger, dark blue, uppercase */
.product-card-name{
  font-size:14px;
  font-weight:700;
  color:#1e3a8a;
  line-height:1.4;
  letter-spacing:.2px;
  text-transform:uppercase;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:2.8em;
}

/* Price */
.product-card-price{
  margin-top:auto;
  padding-top:4px;
  display:flex; align-items:baseline; gap:8px;
}
.av-price-main{
  font-size:16px;
  font-weight:800;
  color:#0f172a;
  letter-spacing:-.2px;
}
.av-price-from{
  font-size:13px;
  font-weight:700;
  color:#0f172a;
  text-transform:uppercase;
  letter-spacing:.4px;
  margin-right:2px;
}
.av-price-compare{
  font-size:12px;
  color:#9ca3af;
  text-decoration:line-through;
}

/* Footer row — main CTA + quick-view square */
.product-card--v2 .product-card-footer{
  padding:6px 14px 14px;
  display:flex;
  gap:8px;
  align-items:stretch;
}
.av-card-btn{
  flex:1;
  min-width:0;
  height:44px;
  border-radius:10px;
  font-size:12.5px;
  font-weight:800;
  letter-spacing:.5px;
  text-transform:uppercase;
}
.av-card-btn--options{
  background:#fff;
  color:#0f172a;
  border-color:#d1d5db;
}
.av-card-btn--options:hover{
  background:#0f172a;
  color:#fff;
  border-color:#0f172a;
}
.av-card-quick{
  width:44px; height:44px;
  flex-shrink:0;
  border:1px solid #e5e7eb;
  border-radius:10px;
  background:#fff;
  color:#6b7280;
  display:inline-flex; align-items:center; justify-content:center;
  cursor:pointer;
  transition:all .15s;
}
.av-card-quick:hover{ border-color:var(--primary); color:var(--primary); background:rgba(0,181,72,.04); }

/* Wishlist heart in image area — slightly larger */
.product-card--v2 .wishlist-btn-card{
  width:34px; height:34px;
  top:12px; right:12px;
}

/* Responsive */
@media (max-width: 1100px){
  .av-section-track--grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
  .av-section-track--slider .av-section-card{ flex-basis: calc((100% - 36px) / 3); }
}
@media (max-width: 760px){
  .av-section{ padding:24px 16px; }
  .av-section-track--grid{ grid-template-columns: repeat(2, minmax(0,1fr)); gap:12px; }
  .av-section-track--slider{ gap:12px; }
  .av-section-track--slider .av-section-card{ flex-basis: calc((100% - 12px) / 2); }
  .av-slider-arrow{ display:none; }   /* let users swipe on touch */
  .product-card--v2 .product-card-img{ padding:14px; }
  .product-card--v2 .product-card-body{ padding:12px 14px 8px; }
  .product-card-name{ font-size:12.5px; }
  .av-price-main{ font-size:15px; }
  .av-card-btn{ height:40px; font-size:11.5px; }
  .av-card-quick{ width:40px; height:40px; }
}
@media (max-width: 420px){
  .av-section-track--grid{ grid-template-columns: 1fr 1fr; }
}

/* ════════════════════════════════════════════════════════════
   SHOP PAGE v2 — sidebar filters + product grid
   ════════════════════════════════════════════════════════════ */
.shop-wrap{ max-width:1440px; margin:0 auto; padding:24px 24px 64px;
  display:grid; grid-template-columns: 280px 1fr; gap:32px; align-items:start; }
.shop-loader{ padding:60px 24px; text-align:center; }

/* Sidebar */
.shop-sidebar{ position:sticky; top:calc(var(--nav-h-total) + 16px);
  align-self:start; max-height:calc(100vh - var(--nav-h-total) - 32px);
  overflow-y:auto; padding-right:6px; }
.shop-sidebar::-webkit-scrollbar{ width:6px; }
.shop-sidebar::-webkit-scrollbar-thumb{ background:#e2e8f0; border-radius:3px; }
.shop-sidebar-inner{ background:#fff; border:1px solid #eaecf0; border-radius:14px; padding:6px 4px; }
.shop-sidebar-head{ display:none; align-items:center; justify-content:space-between;
  padding:14px 16px; border-bottom:1px solid #eaecf0; }
.shop-sidebar-head h2{ margin:0; font-size:16px; font-weight:800; color:#0f172a; }
.shop-sidebar-close{ width:34px; height:34px; border:none; background:#f1f5f9; border-radius:8px;
  font-size:22px; line-height:1; cursor:pointer; color:#0f172a; }

.shop-sidebar-backdrop{ display:none; position:fixed; inset:0; background:rgba(15,17,21,.5);
  z-index:1100; opacity:0; pointer-events:none; transition:opacity .25s; }
.shop-sidebar-backdrop.open{ opacity:1; pointer-events:auto; }

.shop-filter-section{ padding:14px 16px; border-bottom:1px solid #f1f5f9; }
.shop-filter-section:last-of-type{ border-bottom:none; }
.shop-filter-section summary{
  cursor:pointer; list-style:none;
  font-size:12px; font-weight:800; color:#0f172a;
  text-transform:uppercase; letter-spacing:1.4px;
  display:flex; align-items:center; justify-content:space-between;
  user-select:none;
  padding:4px 0;
}
.shop-filter-section summary::-webkit-details-marker{ display:none; }
.shop-filter-section summary::after{
  content:'+'; font-size:18px; font-weight:600; color:#94a3b8; transition:transform .2s;
}
.shop-filter-section[open] summary::after{ content:'−'; }
.shop-filter-body{ margin-top:12px; display:flex; flex-direction:column; gap:4px; }
.shop-filter-scroll{ max-height:240px; overflow-y:auto; padding-right:4px; }
.shop-filter-scroll::-webkit-scrollbar{ width:4px; }
.shop-filter-scroll::-webkit-scrollbar-thumb{ background:#e2e8f0; border-radius:2px; }

.shop-filter-row{
  display:flex; align-items:center; gap:10px;
  padding:6px 4px; border-radius:6px; cursor:pointer;
  font-size:13px; color:#475569;
  transition:background .12s;
}
.shop-filter-row:hover{ background:#f8fafc; color:#0f172a; }
.shop-filter-row input[type=checkbox]{
  width:16px; height:16px; accent-color:var(--primary);
  cursor:pointer; flex-shrink:0;
}
.shop-filter-label{ flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.shop-filter-count{ font-size:11px; color:#94a3b8; font-variant-numeric:tabular-nums; flex-shrink:0; }

/* Price filter */
.shop-price-body{ gap:12px; }
.shop-price-inputs{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.shop-price-inputs label{ display:flex; flex-direction:column; gap:4px; font-size:11px; color:#94a3b8; }
.shop-price-inputs input{
  width:100%; height:36px; padding:0 10px;
  border:1.5px solid #e5e7eb; border-radius:8px; background:#fff;
  font-size:13px; font-weight:600; color:#0f172a;
  outline:none; transition:all .15s;
}
.shop-price-inputs input:focus{ border-color:var(--primary); box-shadow:0 0 0 3px rgba(0,181,72,.15); }
.shop-price-bounds{ font-size:11px; color:#94a3b8; }

/* Variant chips */
.shop-filter-body.shop-color-row{ flex-direction:row; flex-wrap:wrap; gap:8px; margin-top:14px; }
.shop-variant-chip{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 12px; border:1.5px solid #e5e7eb; background:#fff;
  border-radius:999px; font-size:12px; font-weight:600; color:#475569;
  cursor:pointer; transition:all .15s;
}
.shop-variant-chip:hover{ border-color:#cbd5e1; }
.shop-variant-chip.selected{ background:var(--primary-light); border-color:var(--primary); color:var(--primary-dark); }
.shop-variant-count{ font-size:10px; color:#94a3b8; }
.shop-color-swatch{
  width:34px; height:34px; padding:3px; border-radius:50%;
  border:2px solid #e5e7eb; background:#fff; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center;
  transition:all .15s;
}
.shop-color-swatch:hover{ transform:scale(1.06); border-color:#cbd5e1; }
.shop-color-swatch.selected{ border-color:var(--primary); box-shadow:0 0 0 3px var(--primary-light); }
.shop-color-dot{ width:24px; height:24px; border-radius:50%;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.06); display:block; }

.shop-sidebar-actions{ display:flex; gap:8px; padding:14px 16px; border-top:1px solid #f1f5f9; }
.shop-sidebar-actions .btn{ flex:1; height:40px; font-size:13px; font-weight:700; border-radius:10px; }
.shop-sidebar-apply{ display:none; }

/* Main column */
.shop-main{ min-width:0; }
.shop-toolbar{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
  gap:14px; margin-bottom:18px; }
.shop-toolbar-left{ display:flex; align-items:center; gap:12px; }
.shop-filter-toggle{ display:none; align-items:center; gap:6px;
  height:38px; padding:0 14px; border:1.5px solid #e5e7eb; background:#fff;
  border-radius:10px; cursor:pointer; font-size:13px; font-weight:700; color:#0f172a;
}
.shop-filter-toggle:hover{ border-color:var(--primary); color:var(--primary); }
.shop-title{ font-size:22px; font-weight:800; color:#0f172a; margin:0; letter-spacing:-.3px; }
.shop-count{ font-weight:500; color:#94a3b8; font-size:14px; margin-left:6px; }

.shop-toolbar-right{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.shop-search-wrap{ position:relative; }
.shop-search-wrap svg{ position:absolute; left:12px; top:50%; transform:translateY(-50%); color:#94a3b8; pointer-events:none; }
.shop-search-wrap input{
  width:240px; height:40px; padding:0 12px 0 36px;
  border:1.5px solid #e5e7eb; border-radius:10px; background:#fff;
  font-size:13px; color:#0f172a; outline:none;
  transition:all .15s;
}
.shop-search-wrap input:focus{ border-color:var(--primary); box-shadow:0 0 0 3px var(--primary-light); }
.shop-sort-select{
  height:40px; padding:0 36px 0 14px;
  border:1.5px solid #e5e7eb; border-radius:10px; background:#fff;
  font-size:13px; font-weight:600; color:#0f172a; cursor:pointer;
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position: right 12px center;
}
.shop-sort-select:focus{ outline:none; border-color:var(--primary); }

/* Active chips */
.shop-active-chips{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px; }
.shop-active-chip{
  display:inline-flex; align-items:center; gap:6px;
  padding:5px 10px 5px 12px;
  background:#0f172a; color:#fff;
  border-radius:999px; font-size:12px; font-weight:600;
}
.shop-active-chip button{
  width:18px; height:18px; border-radius:50%; border:none;
  background:rgba(255,255,255,.2); color:#fff;
  font-size:14px; line-height:1; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center;
}
.shop-active-chip button:hover{ background:rgba(255,255,255,.35); }
.shop-clear-all{
  background:none; border:none; color:#ef4444; font-size:12px; font-weight:700;
  cursor:pointer; padding:5px 8px; text-transform:uppercase; letter-spacing:.5px;
}
.shop-clear-all:hover{ text-decoration:underline; }

/* Grid (reuses .av-section-track--grid base) */
.shop-grid{
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:18px;
  min-height:200px;
}
.shop-grid .av-section-card{ display:flex; }
.shop-loading{ padding:40px; text-align:center; color:#94a3b8; }

.load-more-wrap{ margin:32px 0 0; text-align:center; }
.load-more-wrap .btn{ padding:12px 28px; }

/* Responsive */
@media (max-width: 1100px){
  .shop-wrap{ grid-template-columns: 240px 1fr; gap:20px; padding:20px 16px 64px; }
  .shop-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 880px){
  .shop-wrap{ grid-template-columns: 1fr; gap:14px; }
  .shop-sidebar{
    position:fixed !important;
    top:0 !important; left:0 !important; bottom:0 !important;
    width:320px; max-width:88vw;
    z-index:1200 !important; background:#fff;
    max-height:100vh !important;
    padding:0; margin:0;
    transform:translateX(-100%);
    transition:transform .3s cubic-bezier(.4,0,.2,1);
    box-shadow: 8px 0 32px rgba(0,0,0,.18);
    border-radius:0;
    overflow:hidden;   /* container itself doesn't scroll; the inner does */
    align-self:initial;
  }
  .shop-sidebar.open{ transform:translateX(0) !important; }
  .shop-sidebar-inner{ border:none; border-radius:0; height:100%; display:flex; flex-direction:column; padding:0; overflow-y:auto; }
  .shop-sidebar-head{ display:flex; }
  .shop-sidebar-apply{ display:inline-flex; align-items:center; justify-content:center; }
  .shop-sidebar-backdrop{ display:block; }
  .shop-filter-toggle{ display:inline-flex; }
  .shop-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap:12px; }
  .shop-search-wrap input{ width:160px; }
}
@media (max-width: 480px){
  .shop-search-wrap input{ width:100%; }
  .shop-toolbar-right{ width:100%; }
  .shop-search-wrap{ flex:1; }
}

/* Shop infinite-scroll sentinel + end-of-results message */
.shop-sentinel{ height:1px; width:100%; }
.shop-end{ text-align:center; padding:28px 16px 8px; color:#94a3b8; font-size:13px;
  font-style:italic; letter-spacing:.4px; }

/* Category chips that are actual links (redirect_url set) keep the same look */
.nav-cats-v2 .nav-cat-chip.nav-cat-chip--link{
  text-decoration: none;
  color: inherit;
}
.nav-cats-v2 .nav-cat-chip.nav-cat-chip--link:visited{ color: inherit; }
