@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

/* ============================================================
   E-TRAIL BANGLADESH — DESIGN SYSTEM v2
   Font: Instrument Sans + Cormorant Garamond (display)
   Radius: 0px or 4px only
   Layout: max-width 1280px, centered, gutters 80/40/20px
   ============================================================ */

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
 

  /* Modern browsers: auto dark */
  --bg-main: light-dark(#fafafa, #09090b);
  --bg-surface: light-dark(#ffffff, #18181b);
  --bg-surface-hover: light-dark(#f4f4f5, #27272a);
  --text-primary: light-dark(#09090b, #fafafa);
  --text-secondary: light-dark(#52525b, #a1a1aa);
  --text-tertiary: light-dark(#71717a, #71717a);
  --border-subtle: light-dark(#e4e4e7, #27272a);
  --border-strong: light-dark(#d4d4d8, #3f3f46);
  --accent: light-dark(#059669, #10b981);
  --accent-hover: light-dark(#047857, #34d399);
  --accent-surface: light-dark(#ecfdf5, #022c22);
  --accent-text: light-dark(#065f46, #6ee7b7);
  --danger: light-dark(#dc2626, #f87171);
  --warning: light-dark(#d97706, #fbbf24);
  --dark-bg: light-dark(#09090b, #f9fafb);


  /* Typography */
  --font-sans: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Instrument Sans', Georgia, serif;

  /* Spacing scale */
  --gap-xs: 8px;
  --gap-sm: 12px;
  --gap-md: 20px;
  --gap-lg: 40px;
  --gap-xl: 80px;

  /* Layout */
  --content-max: 1280px;
  --pad-desktop: 80px;
  --pad-tablet: 40px;
  --pad-mobile: 20px;
  --header-h: 64px;
  --bottom-nav-h: 60px;

  /* Radius — ONLY 0 or 4px */
  --r0: 0px;
  --r4: 4px;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, .06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, .08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .12);

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ── RESET ───────────────────────────────────────────────── */
@layer reset {

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

  html {
    color-scheme: light dark;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  html::-webkit-scrollbar {
    display: none;
  }

  body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    background: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: var(--header-h);
    padding-bottom: var(--bottom-nav-h);
  }

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

  a {
    text-decoration: none;
    color: inherit;
  }

  button {
    cursor: pointer;
    font-family: var(--font-sans);
    border: none;
    background: none;
  }

  input,
  select,
  textarea {
    font-family: var(--font-sans);
    font-size: inherit;
  }

  ul,
  ol {
    list-style: none;
  }
}

/* ── LAYOUT SYSTEM ───────────────────────────────────────── */
/*
  Three breakpoints:
    mobile  < 768px   → pad 20px, no max-width constraint
    tablet  768–1439px → pad 40px, no max-width constraint
    desktop ≥ 1440px  → pad 80px, content max-width 1280px centered

  The "container" class gives the inner 1280px max-width centering.
  Sections get padding via .section / .wrap.
*/

.wrap {
  width: 100%;
  padding-left: var(--pad-mobile);
  padding-right: var(--pad-mobile);
}

.section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.section-sm {
  padding-top: 40px;
  padding-bottom: 40px;
}

.section-lg {
  padding-top: 160px;
  padding-bottom: 160px;
}

/* inner content width cap */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .wrap {
    padding-left: var(--pad-tablet);
    padding-right: var(--pad-tablet);
  }
}

@media (min-width: 1440px) {
  .wrap {
    padding-left: var(--pad-desktop);
    padding-right: var(--pad-desktop);
  }

  body {
    padding-bottom: 0;
  }
}

/* Shorthand: section + wrap together */
.s-wrap {
  width: 100%;
  padding-left: var(--pad-mobile);
  padding-right: var(--pad-mobile);
  padding-top: 80px;
  padding-bottom: 80px;
}

@media (min-width: 768px) {
  .s-wrap {
    padding-left: var(--pad-tablet);
    padding-right: var(--pad-tablet);
  }
}

@media (min-width: 1440px) {
  .s-wrap {
    padding-left: var(--pad-desktop);
    padding-right: var(--pad-desktop);
  }
}

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
.d-xl {
  font-family: var(--font-display);
  font-size: clamp(44px, 10vw, 80px);
  font-weight: 300;
  line-height: .92;
  letter-spacing: -.025em;
}

.d-lg {
  font-family: var(--font-display);
  font-size: clamp(34px, 7vw, 60px);
  font-weight: 300;
  line-height: .95;
  letter-spacing: -.02em;
}

.d-md {
  font-family: var(--font-display);
  font-size: clamp(24px, 5vw, 44px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -.015em;
}

.d-sm {
  font-family: var(--font-display);
  font-size: clamp(20px, 3.5vw, 30px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.01em;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.text-muted {
  color: var(--text-secondary);
}

.text-xs {
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: .03em;
}

.text-sm {
  font-size: 13px;
  color: var(--text-secondary);
}

em,
.em {
  font-style: italic;
  color: var(--accent);
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r4);
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .2s var(--ease), transform .15s var(--ease),
    opacity .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  user-select: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(.98);
}

.btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-dark {
  background: var(--text-primary);
  color: var(--bg-main);
}

.btn-dark:hover {
  opacity: .85;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-outline:hover {
  background: var(--bg-surface-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-surface-hover);
  border-radius: var(--r4);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 11px;
}

.btn-lg {
  padding: 15px 32px;
  font-size: 13px;
}

.btn-xl {
  padding: 18px 40px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  padding: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--r4);
}

.btn.added {
  background: var(--accent) !important;
  color: #fff !important;
}

/* ── FORM ELEMENTS ───────────────────────────────────────── */
.input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: var(--bg-main);
  border: 1px solid var(--border-strong);
  border-radius: var(--r4);
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  transition: border-color .2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.input:focus {
  border-color: var(--accent);
}

.input::placeholder {
  color: var(--text-tertiary);
}

.input-sm {
  height: 40px;
  font-size: 13px;
}

.input-lg {
  height: 56px;
  font-size: 15px;
  padding: 0 18px;
}

textarea.input {
  height: auto;
  padding: 14px;
  resize: vertical;
  min-height: 100px;
}

select.input {
  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='%2371717a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

input[type=number] {
  -moz-appearance: textfield;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: .02em;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-hint {
  font-size: 11px;
  color: var(--text-tertiary);
}

.form-error {
  font-size: 11px;
  color: var(--danger);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ── SEARCH BAR ──────────────────────────────────────────── */
.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-main);
  border: 1px solid var(--border-strong);
  border-radius: var(--r4);
  overflow: hidden;
  transition: border-color .2s var(--ease);
}

.search-bar:focus-within {
  border-color: var(--accent);
}

.search-bar-icon {
  padding: 0 14px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.search-bar-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-primary);
  height: 50px;
  min-width: 0;
}

.search-bar input::placeholder {
  color: var(--text-tertiary);
}

.search-bar .btn {
  border-radius: 0;
  height: 100%;
  flex-shrink: 0;
  padding: 0 20px;
}

/* ── DIVIDERS & SURFACES ─────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border-subtle);
}

.divider-or {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-tertiary);
  font-size: 12px;
}

.divider-or::before,
.divider-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r4);
}

.card-body {
  padding: 20px;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.card-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
}

/* ── BADGE / TAG ─────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--r4);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-green {
  background: var(--accent-surface);
  color: var(--accent-text);
}

.badge-dark {
  background: var(--text-primary);
  color: var(--bg-main);
}

.badge-outline {
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
}

.badge-red {
  background: #fef2f2;
  color: var(--danger);
}

.badge-amber {
  background: #fffbeb;
  color: var(--warning);
}

.tag {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r4);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .2s, color .2s, background .2s;
  -webkit-tap-highlight-color: transparent;
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tag.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-surface);
}

/* ── TABS ────────────────────────────────────────────────── */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ── ACCORDION ───────────────────────────────────────────── */
.accordion-list {
  display: flex;
  flex-direction: column;
}

.accordion-item {
  border-bottom: 1px solid var(--border-subtle);
}

.accordion-item:first-child {
  border-top: 1px solid var(--border-subtle);
}

.accordion-btn {
  width: 100%;
  text-align: left;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}

.accordion-icon {
  flex-shrink: 0;
  transition: transform .3s var(--ease), color .3s;
  color: var(--text-tertiary);
}

.accordion-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.accordion-body {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease), padding-bottom .35s var(--ease);
}

.accordion-item.open .accordion-body {
  max-height: 300px;
  padding-bottom: 20px;
}

/* ── STARS ───────────────────────────────────────────────── */
.stars {
  display: flex;
  gap: 2px;
  line-height: 1;
}

.star-fill {
  color: #f59e0b;
  font-size: 13px;
}

.star-empty {
  color: var(--border-strong);
  font-size: 13px;
}

.rating-num {
  font-size: 12px;
  color: var(--text-secondary);
  margin-left: 4px;
}

/* ── BREADCRUMB ──────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-tertiary);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.bc-sep {
  color: var(--border-strong);
}

/* ── QUANTITY CONTROL ────────────────────────────────────── */
.qty-ctrl {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--r4);
  overflow: hidden;
  height: 40px;
  background: var(--bg-surface);
}

.qty-btn {
  width: 36px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 18px;
  transition: background .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font-sans);
}

.qty-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.qty-val {
  width: 44px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  outline: none;
  -moz-appearance: textfield;
}

/* ── PRODUCT CARD ────────────────────────────────────────── */
.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r4);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.product-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.product-img {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg-surface-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.product-img-sq {
  aspect-ratio: 1;
}

.product-img-wide {
  aspect-ratio: 16/9;
}

.product-img-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-tertiary);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  width: 100%;
  height: 100%;
}

.product-img-inner svg {
  width: 32px;
  height: 32px;
  opacity: .25;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--r4);
  letter-spacing: .06em;
  text-transform: uppercase;
  pointer-events: none;
}

.product-badge-dark {
  background: var(--text-primary);
  color: var(--bg-main);
}

.product-badge-amber {
  background: var(--warning);
  color: #fff;
}

.product-wish {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: var(--r4);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
}

.product-wish:hover {
  background: var(--bg-surface-hover);
}

.product-wish svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: fill .15s, stroke .15s;
}

.product-wish.active svg {
  fill: var(--danger);
  stroke: var(--danger);
}

.product-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-cat {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 10px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.price-main {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--text-primary);
}

.price-old {
  font-size: 12px;
  color: var(--text-tertiary);
  text-decoration: line-through;
}

.price-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-surface);
  padding: 2px 6px;
  border-radius: var(--r4);
}

.product-atc {
  margin-top: 12px;
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: var(--r4);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: opacity .2s, transform .15s, background .2s;
  -webkit-tap-highlight-color: transparent;
}

.product-atc:hover:not(:disabled) {
  background: var(--accent-hover);
  opacity: .95;
  transform: translateY(-1px);
}

.product-atc:active:not(:disabled) {
  transform: scale(.98);
}

.product-atc:disabled {
  background: var(--border-strong) !important;
  color: var(--text-secondary) !important;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none !important;
}

.product-atc svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.product-atc.added {
  background: var(--accent-hover);
}

/* Horizontal card */
.product-card-h {
  display: grid;
  grid-template-columns: 100px 1fr;
  flex-direction: unset;
}

.product-card-h .product-img {
  aspect-ratio: auto;
  height: 100%;
  min-height: 110px;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-sm);
}

.grid-1 {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.col-2 {
  grid-column: span 2;
}

.col-2 .product-img {
  aspect-ratio: 16/9;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-md);
  }
}

@media (min-width: 1024px) {
  .grid-2 {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-md);
  }
}


/* Homepage Categories Grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-content: center;
}

@media (min-width: 480px) {
  .cat-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

@media (min-width: 768px) {
  .cat-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .cat-grid {
    grid-template-columns: repeat(8, 1fr);
    gap: 40px;
  }
}

.cat-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--r4);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── CATEGORY CARD ───────────────────────────────────────── */
.cat-card {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r4);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
  min-height: 110px;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.cat-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.cat-card-wide {
  flex-direction: row;
  align-items: center;
  min-height: 80px;
}

.cat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r4);
  background: var(--accent-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cat-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
}

.cat-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.cat-count {
  font-size: 11px;
  color: var(--text-tertiary);
}

.cat-arrow {
  margin-left: auto;
  color: var(--text-tertiary);
  transition: transform .2s, color .2s;
  flex-shrink: 0;
}

.cat-arrow svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.cat-card:hover .cat-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

/* ── HEADER ──────────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--header-h);
  background: rgba(250, 250, 250, .94);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border-subtle);
  transition: background .3s var(--ease);
}

@media (prefers-color-scheme: dark) {
  #site-header {
    background: rgba(9, 9, 11, .94);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
  width: 100%;
  padding-left: var(--pad-mobile);
  padding-right: var(--pad-mobile);
}

@media (min-width: 768px) {
  .header-inner {
    padding-left: var(--pad-tablet);
    padding-right: var(--pad-tablet);
    /* content aligns with .wrap > .container on wider screens */
    max-width: calc(var(--content-max) + var(--pad-tablet) * 2);
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 1440px) {
  .header-inner {
    padding-left: var(--pad-desktop);
    padding-right: var(--pad-desktop);
    max-width: calc(var(--content-max) + var(--pad-desktop) * 2);
    margin-left: auto;
    margin-right: auto;
  }
}

.site-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.site-logo .accent {
  color: var(--accent);
}

.site-logo .muted {
  color: var(--text-tertiary);
  font-weight: 300;
}

/* Mobile header actions */
.header-actions-mobile {
  display: flex;
  align-items: center;
  gap: 2px;
}

.header-actions-desktop {
  display: none;
}

.header-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--r4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  position: relative;
  transition: background .15s;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.header-btn:hover {
  background: var(--bg-surface-hover);
}

.header-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.header-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 15px;
  height: 15px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  font-family: var(--font-sans);
  line-height: 1;
}

/* Desktop nav */
@media (min-width: 1024px) {
  .header-actions-mobile {
    display: none;
  }

  .header-actions-desktop {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
  }

  .header-btn-lg {
    height: 40px;
    padding: 0 14px;
    border-radius: var(--r4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    transition: color .15s, background .15s;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
  }

  .header-btn-lg:hover {
    color: var(--text-primary);
    background: var(--bg-surface-hover);
    border-radius: var(--r4);
  }

  .header-btn-lg svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
  }

  .header-btn-lg .header-badge {
    top: 3px;
    right: 3px;
  }

  .header-btn-lg.has-badge {
    position: relative;
  }

  /* Megamenu trigger */
  .mega-trigger {
    position: relative;
  }

  .mega-trigger>.header-btn-lg {
    gap: 5px;
  }

  .mega-trigger>.header-btn-lg .chevron {
    transition: transform .28s var(--ease);
  }

  .mega-trigger:hover>.header-btn-lg .chevron {
    transform: rotate(180deg);
  }

  .mega-trigger:hover .megamenu {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
  }

  .megamenu {
    position: absolute;
    top: 100%;
    left: -50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: 560px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r4);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s var(--ease), transform .28s var(--ease);
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    z-index: 100;
  }

  .mega-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--r4);
    text-decoration: none;
    color: var(--text-primary);
    transition: background .15s;
  }

  .mega-item:hover {
    background: var(--bg-surface-hover);
  }

  .mega-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--r4);
    background: var(--accent-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .mega-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.5;
  }

  .mega-label {
    font-size: 13px;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
  }

  .mega-sub {
    font-size: 11px;
    color: var(--text-tertiary);
  }

  .mega-divider {
    grid-column: span 3;
    height: 1px;
    background: var(--border-subtle);
    margin: 8px 0;
  }

  .mega-footer {
    grid-column: span 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}


/* ── OVERLAY / DRAWER ────────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  overflow: hidden;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4, 0, .2, 1);
}

.overlay.open {
  transform: none;
}

.overlay-left {
  transform: translateX(-100%);
}

.overlay-left.open {
  transform: none;
}

.overlay-up {
  transform: translateY(100%);
}

.overlay-up.open {
  transform: none;
}

.overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: var(--header-h);
  flex-shrink: 0;
  border-bottom: 1px solid var(--border-subtle);
}

.overlay-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px;
  -webkit-overflow-scrolling: touch;
}

.overlay-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

/* ── SEARCH OVERLAY: slides from top ────────────────────── */
#searchOverlay {
  transform: translateY(-100%);
}

#searchOverlay.open {
  transform: none;
}

/* Equal padding all sides — matches left/right at every breakpoint */
#searchOverlay .overlay-body {
  padding-top: var(--pad-mobile);
  padding-bottom: var(--pad-mobile);
}

@media (min-width: 768px) {
  #searchOverlay .overlay-body { padding: var(--pad-tablet); }
}

@media (min-width: 1440px) {
  #searchOverlay .overlay-body { padding: var(--pad-desktop); }
}


/* Hide the native browser × clear button inside <input type="search"> */
#searchInput::-webkit-search-cancel-button,
#searchInput::-webkit-search-decoration {
  -webkit-appearance: none;
  display: none;
}


/* Scrim */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 940;
  background: rgba(0, 0, 0, .4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}

.scrim.show {
  opacity: 1;
  pointer-events: all;
}

/* ── BOTTOM NAV (mobile only) ────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 800;
  height: var(--bottom-nav-h);
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  padding-bottom: env(safe-area-inset-bottom, 0);
  transition: transform .3s var(--ease);
}

@media (prefers-color-scheme: dark) {
  .bottom-nav {
    background: rgba(24, 24, 27, .96);
  }
}

.bottom-nav.hidden {
  transform: translateY(100%);
}

.nav-item {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color .2s;
  position: relative;
  border: none;
  background: none;
  padding: 0 4px;
  min-width: 0;
  -webkit-tap-highlight-color: transparent;
}

.nav-item.active {
  color: var(--accent);
}

.nav-item svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  flex-shrink: 0;
}

.nav-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.nav-badge {
  position: absolute;
  top: 5px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

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

/* ── PAGE HERO ───────────────────────────────────────────── */
.page-hero {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.page-hero-inner {
  padding-top: 32px;
  padding-bottom: 28px;
}

/* ── FILTER DRAWER ───────────────────────────────────────── */
.filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r4);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-primary);
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}

.filter-btn:hover {
  background: var(--bg-surface-hover);
}

.filter-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.filter-group {
  margin-bottom: 24px;
}

.filter-group-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  transition: color .15s;
  -webkit-tap-highlight-color: transparent;
}

.filter-check:last-child {
  border-bottom: none;
}

.filter-check:hover {
  color: var(--accent);
}

.filter-check input {
  display: none;
}

.filter-check-box {
  width: 18px;
  height: 18px;
  border-radius: var(--r4);
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s;
}

.filter-check input:checked~.filter-check-box {
  background: var(--accent);
  border-color: var(--accent);
}

.filter-check input:checked~.filter-check-box::after {
  content: '✓';
  font-size: 11px;
  color: #fff;
  font-weight: 900;
}

.filter-check-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-tertiary);
}

/* ── SORT ROW ────────────────────────────────────────────── */
.sort-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sort-label {
  font-size: 12px;
  color: var(--text-tertiary);
}

select.sort-select {
  height: 38px;
  padding: 0 32px 0 12px;
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r4);
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
  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='%2371717a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  -webkit-appearance: none;
  appearance: none;
}

.result-count {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-left: auto;
}

/* ── PAGINATION ──────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 32px 0;
}

.page-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--r4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: background .15s, border-color .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}

.page-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.page-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* ── CART ────────────────────────────────────────────────── */
.cart-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.cart-item-img {
  width: 84px;
  height: 106px;
  border-radius: var(--r4);
  background: var(--bg-surface-hover);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-item-img svg {
  width: 26px;
  height: 26px;
  opacity: .25;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

.cart-item-cat {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 3px;
}

.cart-item-name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 4px;
}

.cart-item-var {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.cart-item-remove {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-size: 12px;
  color: var(--text-tertiary);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: color .15s;
  -webkit-tap-highlight-color: transparent;
}

.cart-item-remove:hover {
  color: var(--danger);
}

.cart-item-remove svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.order-summary {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r4);
  overflow: hidden;
}

.order-sum-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
}

.order-sum-row:last-child {
  border-bottom: none;
}

.order-sum-label {
  color: var(--text-secondary);
  font-weight: 400;
}

.order-sum-val {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
}

.order-sum-row.total .order-sum-label {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
}

.order-sum-row.total .order-sum-val {
  font-size: 24px;
}

/* ── CHECKOUT STEPS ──────────────────────────────────────── */
.steps {
  display: flex;
  align-items: center;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
}

.step.active {
  color: var(--text-primary);
}

.step.done {
  color: var(--accent);
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  transition: background .2s, border-color .2s, color .2s;
}

.step.active .step-num {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--bg-main);
}

.step.done .step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.step-line {
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
  min-width: 20px;
}

/* ── PAYMENT OPTION ──────────────────────────────────────── */
.pay-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r4);
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
}

.pay-opt:hover {
  border-color: var(--border-strong);
}

.pay-opt.sel {
  border-color: var(--accent);
  background: var(--accent-surface);
}

.pay-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s;
}

.pay-opt.sel .pay-radio {
  border-color: var(--accent);
}

.pay-opt.sel .pay-radio::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.pay-icon {
  font-size: 22px;
}

.pay-name {
  font-size: 13px;
  font-weight: 600;
}

.pay-desc {
  font-size: 11px;
  color: var(--text-tertiary);
}

/* ── ORDER STATUS BADGES ─────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--r4);
  font-size: 11px;
  font-weight: 700;
}

.status-pending {
  background: #fffbeb;
  color: #92400e;
}

.status-processing {
  background: #eff6ff;
  color: #1e40af;
}

.status-shipped {
  background: var(--accent-surface);
  color: var(--accent-text);
}

.status-delivered {
  background: #f0fdf4;
  color: #166534;
}

.status-cancelled,
.status-canceled {
  background: #fef2f2;
  color: #991b1b;
}

.status-confirmed {
  background: #f5f3ff;
  color: #6d28d9;
}

.status-completed {
  background: #f0fdf4;
  color: #166534;
}

/* ── DASHBOARD NAV LINKS ─────────────────────────────────── */
.dash-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  background: none;
  border-left: 3px solid transparent;
  transition: background .15s, color .15s;
  width: 100%;
  text-align: left;
  font-family: var(--font-sans);
  -webkit-tap-highlight-color: transparent;
}

.dash-link:first-child {
  border-top: 1px solid var(--border-subtle);
}

.dash-link:hover {
  background: var(--bg-surface-hover);
  color: var(--accent);
}

.dash-link.active {
  color: var(--accent);
  background: var(--accent-surface);
  border-left-color: var(--accent);
}

.dash-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  flex-shrink: 0;
}

.dash-link-arrow {
  margin-left: auto;
  color: var(--text-tertiary);
}

.dash-link-arrow svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* ── PRODUCT DETAIL ──────────────────────────────────────── */
.thumb-strip {
  display: flex;
  gap: 8px;
  padding: 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.thumb-strip::-webkit-scrollbar {
  display: none;
}

.thumb {
  width: 60px;
  height: 72px;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r4);
  background: var(--bg-surface-hover);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s;
}

.thumb.active {
  border-color: var(--accent);
}

.thumb svg {
  width: 18px;
  height: 18px;
  opacity: .25;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

.variant-opts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.variant-opt {
  padding: 7px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r4);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  background: var(--bg-surface);
  color: var(--text-primary);
  transition: border-color .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
}

.variant-opt:hover {
  background: var(--bg-surface-hover);
}

.variant-opt.active {
  border-color: var(--accent);
  background: var(--accent-surface);
  color: var(--accent-text);
}

.variant-opt.out {
  opacity: .4;
  cursor: not-allowed;
  text-decoration: line-through;
}

.color-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .15s, transform .15s;
  flex-shrink: 0;
}

.color-dot:hover {
  transform: scale(1.1);
}

.color-dot.active {
  box-shadow: 0 0 0 2px var(--bg-main), 0 0 0 4px var(--accent);
}

.prod-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-secondary);
}

.prod-feature:first-child {
  border-top: 1px solid var(--border-subtle);
}

.prod-feature svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  flex-shrink: 0;
}

/* Sticky ATC */
.sticky-atc {
  position: fixed;
  bottom: var(--bottom-nav-h);
  left: 0;
  right: 0;
  z-index: 700;
  background: rgba(250, 250, 250, .96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100%);
  transition: transform .3s var(--ease);
}

@media (prefers-color-scheme: dark) {
  .sticky-atc {
    background: rgba(24, 24, 27, .96);
  }
}

@media (min-width: 1024px) {
  .sticky-atc {
    bottom: 0;
    padding: 12px 80px;
  }
}

.sticky-atc.show {
  transform: none;
}

.sticky-atc-info {
  flex: 1;
  min-width: 0;
}

.sticky-atc-name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-atc-price {
  font-family: var(--font-display);
  font-size: 20px;
}

/* ── REVIEW CARD ─────────────────────────────────────────── */
.review-card {
  flex-shrink: 0;
  width: 280px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r4);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .2s;
}

.review-card:hover {
  border-color: var(--border-strong);
}

.review-text {
  font-family: var(--font-display);
  font-size: 16px;
  font-style: italic;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  flex-shrink: 0;
}

.review-name {
  font-size: 13px;
  font-weight: 600;
}

.review-loc {
  font-size: 11px;
  color: var(--text-tertiary);
}

/* ── H-SCROLL ────────────────────────────────────────────── */
.h-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

@media (min-width: 1024px) {
  .h-scroll {
    flex-wrap: wrap;
    overflow: visible;
  }

  .review-card {
    width: auto;
    flex: 1;
    min-width: 220px;
  }
}

/* ── BUNDLE CARD ─────────────────────────────────────────── */
.bundle-card {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r4);
  overflow: hidden;
}

.bundle-prods-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border-subtle);
}

.bundle-prod {
  padding: 14px 8px;
  text-align: center;
  border-right: 1px solid var(--border-subtle);
  position: relative;
}

.bundle-prod:last-child {
  border-right: none;
}

.bundle-prod-img {
  aspect-ratio: 1;
  background: var(--bg-surface-hover);
  border-radius: var(--r4);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bundle-prod-img svg {
  width: 22px;
  height: 22px;
  opacity: .25;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.bundle-prod-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.3;
}

.bundle-plus {
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-tertiary);
  z-index: 1;
}

/* ── PROMO BAND ──────────────────────────────────────────── */
.promo-band {
  background: var(--dark-bg);
  position: relative;
  overflow: hidden;
}

.promo-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(5, 150, 105, .14) 0%, transparent 70%);
  pointer-events: none;
}

.promo-watermark {
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(80px, 22vw, 160px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.04em;
  color: rgba(255, 255, 255, .04);
  user-select: none;
  pointer-events: none;
}

/* ── NEWSLETTER ──────────────────────────────────────────── */
.newsletter-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r4);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(5, 150, 105, .06) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-surface);
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
}

/* ── TOAST ───────────────────────────────────────────────── */
.toast-wrap {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + 12px);
  left: 20px;
  right: 20px;
  z-index: 9999;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .toast-wrap {
    bottom: 20px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    min-width: 280px;
  }
}

.toast {
  background: var(--text-primary);
  color: var(--bg-main);
  padding: 12px 16px;
  border-radius: var(--r4);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  pointer-events: all;
  animation: toastUp .25s var(--ease) both;
  margin-top: 8px;
}

.toast svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.toast-green {
  background: var(--accent);
  color: #fff;
}

@keyframes toastUp {
  from {
    opacity: 0;
    transform: translateY(12px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

/* ── FOOTER ──────────────────────────────────────────────── */
#site-footer {
  background: #09090b;
  color: rgba(250, 250, 250, .6);
}

.footer-inner {
  padding-bottom: 48px;
}

@media (min-width: 1024px) {
  .footer-inner {
    padding-bottom: 60px;
  }
}

.footer-top {
  padding-top: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
  color: #fafafa;
  margin-bottom: 10px;
}

.footer-logo .accent {
  color: var(--accent);
}

.footer-tagline {
  font-size: 11px;
  opacity: .4;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--r4);
  border: 1px solid rgba(255, 255, 255, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .2s, color .2s;
  color: rgba(250, 250, 250, .4);
  -webkit-tap-highlight-color: transparent;
}

.social-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.social-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-top: 40px;
}

@media (min-width: 768px) {
  .footer-cols {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-col-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(250, 250, 250, .4);
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 13px;
  color: rgba(250, 250, 250, .55);
  cursor: pointer;
  transition: color .2s;
  text-decoration: none;
  display: block;
  font-weight: 400;
}

.footer-link:hover {
  color: #fafafa;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  margin-top: 0;
  font-size: 11px;
  color: rgba(250, 250, 250, .28);
  line-height: 1.7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@keyframes floatY {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-12px)
  }
}

@keyframes floatYL {

  0%,
  100% {
    transform: translateY(0) rotate(-4deg)
  }

  50% {
    transform: translateY(-10px) rotate(-4deg)
  }
}

@keyframes floatYR {

  0%,
  100% {
    transform: translateY(0) rotate(4deg)
  }

  50% {
    transform: translateY(-10px) rotate(4deg)
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1)
  }

  50% {
    opacity: .5;
    transform: scale(.8)
  }
}

@keyframes bounceFlt {

  0%,
  100% {
    transform: translateY(0) rotate(0)
  }

  50% {
    transform: translateY(-10px) rotate(5deg)
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%)
  }

  to {
    transform: none
  }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

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

/* ── VIEW ALL LINK ───────────────────────────────────────── */
.view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: gap .2s;
  flex-shrink: 0;
}

.view-all:hover {
  gap: 10px;
}

.view-all svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* ── EMPTY STATE ─────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 20px;
  gap: 14px;
  text-align: center;
}

.empty-state svg {
  width: 48px;
  height: 48px;
  opacity: .2;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}

.empty-state-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 300;
}

.empty-state-sub {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 260px;
}

/* ── FLASH SALE TIMER ────────────────────────────────────── */
.flash-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}

.timer-blocks {
  display: flex;
  align-items: center;
  gap: 4px;
}

.timer-block {
  background: var(--text-primary);
  color: var(--bg-main);
  min-width: 34px;
  padding: 4px 7px;
  text-align: center;
  border-radius: var(--r4);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.timer-sep {
  color: var(--text-tertiary);
  font-size: 16px;
  padding: 0 1px;
}

/* ── SECTION HEADER ROW ──────────────────────────────────── */
.sec-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── PRINT ───────────────────────────────────────────────── */
@media print {

  #site-header,
  .bottom-nav,
  .sticky-atc {
    display: none !important;
  }

  body {
    padding: 0;
  }
}