/* ── Georgian fonts ──────────────────────────────────────────── */
@font-face { font-family:'Mersad'; src:url('/fonts/mersad-400.woff2') format('woff2'); font-weight:400; font-display:swap; }
@font-face { font-family:'Mersad'; src:url('/fonts/mersad-500.woff2') format('woff2'); font-weight:500; font-display:swap; }
@font-face { font-family:'Mersad'; src:url('/fonts/mersad-600.woff2') format('woff2'); font-weight:600; font-display:swap; }
@font-face { font-family:'Mersad'; src:url('/fonts/mersad-700.woff2') format('woff2'); font-weight:700; font-display:swap; }
@font-face { font-family:'Mersad'; src:url('/fonts/mersad-800.woff2') format('woff2'); font-weight:800; font-display:swap; }
@font-face { font-family:'Dachi';  src:url('/fonts/dachi.woff2')  format('woff2'); font-weight:400 900; font-display:swap; }
@font-face { font-family:'Elene';  src:url('/fonts/elene.woff2')  format('woff2'); font-weight:400; font-display:optional; }
@font-face { font-family:'Hakuna'; src:url('/fonts/hakuna.woff2') format('woff2'); font-weight:400 800; font-display:optional; }

/* ── Reset & tokens ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:    #2563eb;
  --blue-rgb: 37,99,235;
  --font-display: 'Dachi', 'Mersad', sans-serif;
  --blue-d:  #1d4ed8;
  --blue-l:  #eff6ff;
  --text:    #0f172a;
  --text2:   #475569;
  --muted:   #94a3b8;
  --border:  #e2e8f0;
  --bg:      #f8fafc;
  --surface: #ffffff;
  --green:   #16a34a;
  --red:     #dc2626;
  --orange:  #ea580c;
  --yellow:  #d97706;
  --r:       10px;
  --r-lg:    16px;
  --shadow:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 20px 40px rgba(0,0,0,.12);
  --glow-blue: 0 0 0 4px rgba(var(--blue-rgb),.12);
}

/* ── Selection ───────────────────────────────────────────────── */
::selection { background: rgba(var(--blue-rgb),.15); color: var(--text); }

/* ── Custom scrollbar ────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

html { font-size: 16px; scroll-behavior: smooth; scrollbar-gutter: stable; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: 'Mersad', 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--surface);
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, .08), 0 4px 6px -4px rgba(15, 23, 42, .06);
}
.hd-nav {
  padding: 1rem;
}
.hd-wrap {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 40px;
}

.logo {
  display: flex; align-items: center; gap: 0.625rem;
  flex-shrink: 0; min-width: 0;
}
.logo-icon {
  color: var(--blue); display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--blue-l); flex-shrink: 0;
}
.logo-stack { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em;
  color: var(--text); line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.logo-sub {
  font-size: 0.68rem; color: var(--muted); font-weight: 500;
  letter-spacing: 0.02em;
}

.hd-main {
  flex: 1; display: flex; align-items: center; gap: 0.25rem;
  min-width: 0; overflow: visible;
}

.hd-all-cats-wrap { position: relative; flex-shrink: 0; }
.hd-all-cats-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.9rem; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 0.875rem; font-weight: 600;
  white-space: nowrap; transition: border-color .15s, background .15s, color .15s;
}
.hd-all-cats-btn svg { color: var(--blue); flex-shrink: 0; }
.hd-all-cats-btn:hover,
.hd-all-cats-wrap.is-open .hd-all-cats-btn {
  border-color: var(--blue); background: var(--blue-l); color: var(--blue-d);
}
.hd-all-cats-wrap .nav-caret { font-size: 0.55rem; opacity: 0.55; margin-left: 0.1rem; transition: transform .15s; }
.hd-all-cats-wrap.is-open .nav-caret { transform: rotate(180deg); }

.mega-panel {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  min-width: min(720px, calc(100vw - 2rem)); max-width: 720px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-lg);
  z-index: 220; padding: 1rem; overflow: hidden;
}
.hd-all-cats-wrap.is-open .mega-panel { display: block; }
body.mega-open { overflow: hidden; touch-action: none; }
.mega-panel-body {
  display: flex; align-items: stretch; gap: 0;
  min-height: 140px;
}
.mega-grid {
  flex: 1; min-width: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.25rem 1rem; max-height: 360px; overflow-y: auto;
  padding-right: 0.75rem;
}
.mega-spotlight {
  width: 168px; flex-shrink: 0;
  margin-left: auto;
  padding-left: 0.85rem;
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0.5rem;
}
.mega-spot-label {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: #ea580c;
}
.mega-spot-link {
  display: flex; flex-direction: column; gap: 0.45rem;
  padding: 0.35rem; border-radius: 10px;
  transition: background .12s;
}
.mega-spot-link:hover { background: var(--bg); }
.mega-spot-img {
  width: 100%; aspect-ratio: 1; object-fit: contain;
  background: #fff; border: 1px solid var(--border);
  border-radius: 10px; padding: 0.35rem;
}
.mega-spot-img--empty {
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.mega-spot-title {
  font-size: 0.72rem; font-weight: 600; line-height: 1.35;
  color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.mega-spot-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem;
}
.mega-spot-price {
  font-size: 0.82rem; font-weight: 700; color: var(--blue);
}
.mega-spot-price.sale { color: #dc2626; }
.mega-spot-old {
  font-size: 0.68rem; color: var(--muted);
}
.mega-spot-views {
  font-size: 0.65rem; color: var(--muted);
  display: inline-flex; align-items: center; gap: 0.2rem;
}
.mega-col { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.mega-head {
  font-size: 0.82rem; font-weight: 700; color: var(--text);
  padding: 0.35rem 0.5rem; border-radius: 8px;
  transition: background .12s, color .12s;
}
.mega-head:hover { background: var(--blue-l); color: var(--blue); }
.mega-link {
  font-size: 0.78rem; color: var(--text2); padding: 0.3rem 0.5rem;
  border-radius: 8px; transition: background .12s, color .12s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mega-link:hover { background: var(--bg); color: var(--text); }
.mega-foot {
  display: block; margin-top: 0.75rem; padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem; font-weight: 700; color: var(--blue);
}
.mega-foot:hover { color: var(--blue-d); }

.hd-cats {
  flex: 1; display: flex; align-items: center; gap: 0.125rem;
  min-width: 0; overflow: visible;
}
.nav-cat {
  padding: 0.45rem 0.75rem; border-radius: 8px;
  font-size: 0.875rem; font-weight: 500; color: var(--text2);
  white-space: nowrap; transition: background .12s, color .12s;
}
.nav-cat:hover { background: var(--bg); color: var(--text); }

.hd-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

.hd-search { position: relative; display: flex; align-items: center; }
.hd-search .fa, .hd-search i { position: absolute; left: 0.75rem; color: var(--muted); pointer-events: none; z-index: 1; }
.hd-search-input {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 0.55rem 0.85rem 0.55rem 2.25rem;
  font-size: 0.875rem; color: var(--text); background: var(--bg);
  outline: none; width: 180px; transition: border-color .15s, width .2s, background .15s, box-shadow .15s;
}
.hd-search-input:focus {
  border-color: var(--blue); background: #fff; width: 220px;
  box-shadow: var(--glow-blue);
}

.hd-cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.55rem 0.95rem; border-radius: 10px; border: none;
  background: var(--blue); color: #fff;
  font-size: 0.875rem; font-weight: 700;
  transition: background .15s, transform .1s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(var(--blue-rgb), .28);
}
.hd-cart-btn:hover { background: var(--blue-d); }
.hd-cart-btn:active { transform: scale(.98); }
.hd-cart-label { white-space: nowrap; }
.hd-cart-btn .cart-count {
  position: static; min-width: 20px; height: 20px;
  background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.35);
  font-size: 0.68rem;
}
.hd-cart-btn .cart-count:empty,
.hd-cart-btn .cart-count[data-count="0"] { display: none; }

.cart-trigger {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--text);
  transition: border-color .12s, background .12s;
}
.cart-trigger:hover { border-color: var(--blue); background: var(--blue-l); color: var(--blue); }
.cart-count {
  position: absolute; top: -5px; right: -5px;
  background: var(--blue); color: #fff;
  font-size: 0.65rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 99px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--surface);
  transition: transform .15s;
}
.cart-count:empty, .cart-count[data-count="0"] { display: none; }

/* ── Hero ────────────────────────────────────────────────────── */
@keyframes heroShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero {
  background: linear-gradient(-45deg, #0f172a, var(--blue-d), var(--blue), var(--blue-d));
  background-size: 300% 300%;
  animation: heroShift 14s ease infinite;
  color: #fff; padding: 4rem 1.5rem 3rem; position: relative; overflow: visible;
}
.hero--home {
  padding: 4.75rem 1.5rem 4.5rem;
}
.hero-catalog-bar {
  max-width: 1280px; width: calc(100% - 3rem);
  margin: -2.75rem auto 1.5rem;
  position: relative; z-index: 20;
  border-radius: var(--r-lg);
  box-shadow: 0 4px 20px rgba(0,0,0,.1), 0 1px 4px rgba(0,0,0,.06);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex; align-items: stretch;
  overflow: hidden;
}
/* Left: title + count */
.hero-catalog-bar__title {
  display: flex; align-items: center; gap: 0.75rem;
  flex-shrink: 0;
  margin: 0; padding: 0.875rem 1.25rem;
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--text);
  border-right: 1px solid var(--border);
  background: #fff;
  white-space: nowrap;
}
.hero-catalog-bar__label { color: var(--blue); }
.hero-catalog-bar__count {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Mersad', sans-serif;
  font-size: 0.75rem; font-weight: 700;
  color: var(--blue); background: var(--blue-l);
  border: 1px solid var(--blue); border-radius: 99px;
  padding: 0.2rem 0.6rem; line-height: 1;
}
/* Right: sort bar fills remaining space */
.hero-catalog-bar__sort {
  flex: 1; display: flex; align-items: center;
  padding: 0 1.25rem;
  background: var(--surface);
}
.hero-catalog-bar .sort-bar { margin-left: 0; flex: 1; justify-content: flex-end; }
.hero-catalog-bar .sort-seg { margin-left: auto; }

.hero--home + .hero-catalog-bar + .section-block { padding-top: 0.5rem; }
.hero--home + .hero-catalog-bar + .section-block + #home-products-section,
.hero--home + .hero-catalog-bar + #home-products-section { padding-top: 0.5rem; }
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(99,179,237,.18) 0%, transparent 65%),
              radial-gradient(ellipse at 20% 80%, rgba(29,78,216,.25) 0%, transparent 55%);
  pointer-events: none;
}
.hero-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; position: relative; z-index: 1; }
.hero-text { flex: 1; min-width: 280px; position: relative; z-index: 10; }
.hero-stats { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-eyebrow { font-family: 'Elene', 'Mersad', sans-serif; font-size: 1rem; font-weight: 400; letter-spacing: .02em; color: var(--blue); margin-bottom: 0.75rem; }
.hero-h1 { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; margin-bottom: 1rem; }
.hero-sub { font-size: 1rem; color: #cbd5e1; margin-bottom: 2rem; line-height: 1.7; font-weight: 400; }

.hero-search {
  display: flex; gap: 0; max-width: 440px;
  margin-top: 0.25rem;
  position: relative; z-index: 1;
}
.hero-search-input {
  flex: 1; border: none; border-radius: 10px 0 0 10px;
  padding: 0.85rem 1.25rem; font-size: 0.95rem; color: var(--text);
  outline: none;
  box-shadow: 0 4px 20px rgba(15, 23, 42, .18);
}
.hero-search-btn {
  background: var(--blue); color: #fff; border: none;
  border-radius: 0 10px 10px 0; padding: 0 1.25rem;
  display: flex; align-items: center; transition: background .15s;
  box-shadow: 0 4px 20px rgba(15, 23, 42, .18);
}
.hero-search-btn:hover { background: var(--blue-d); }

.live-search-form { position: relative; z-index: 1; }
.live-search-panel {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-lg);
  z-index: 50; overflow: hidden; max-height: 360px; overflow-y: auto;
}
.hero .live-search-panel { z-index: 50; }
.hd-search .live-search-panel { min-width: 280px; right: auto; z-index: 230; }
.live-search-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 0.85rem; color: var(--text);
  transition: background .12s;
}
.live-search-item:hover, .live-search-item.is-active { background: var(--bg); }
.live-search-thumb {
  width: 44px; height: 44px; border-radius: 8px; object-fit: contain;
  background: var(--bg); border: 1px solid var(--border); flex-shrink: 0;
}
.live-search-thumb-ph {
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.live-search-meta { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 0.15rem; }
.live-search-title {
  font-size: 0.85rem; font-weight: 600; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.live-search-price { font-size: 0.78rem; color: var(--blue); font-weight: 700; }
.live-search-more {
  display: block; padding: 0.65rem 0.85rem; text-align: center;
  font-size: 0.8rem; font-weight: 700; color: var(--blue);
  border-top: 1px solid var(--border); background: var(--bg);
}
.live-search-more:hover { background: var(--blue-l); }
.live-search-empty-item {
  padding: 1rem 0.85rem; font-size: 0.85rem; color: var(--muted); text-align: center;
}
.live-search-empty {
  text-align: center; color: var(--muted); font-size: 0.9rem; padding: 2rem 1rem;
}

.hero-stats { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.stat-card {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r); padding: 1rem 1.5rem; text-align: center; min-width: 80px;
  backdrop-filter: blur(4px);
}
.stat-card.sale-stat { background: rgba(234,88,12,.25); border-color: rgba(234,88,12,.4); }
.stat-num { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1; }
.stat-lbl { display: block; font-size: 0.75rem; color: var(--blue); margin-top: 0.25rem; text-transform: uppercase; letter-spacing: .06em; }

/* ── Layout wrapper ──────────────────────────────────────────── */
.inner-page { max-width: 1280px; margin: 0 auto; padding: 1.5rem 1.5rem; }
.dp-page { padding-top: 1.25rem; }

/* ── Breadcrumb ──────────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: var(--muted); margin-bottom: 1.25rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--muted); }
.bc-current { color: var(--text2); }

/* ── Category strip ──────────────────────────────────────────── */
.cats-strip { display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; padding: 1rem 1.5rem; max-width: 1280px; margin: 0 auto; }
.cats-strip::-webkit-scrollbar { display: none; }
.cat-pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.4rem 0.875rem; border-radius: 99px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 0.8rem; color: var(--text2); white-space: nowrap;
  transition: all .15s; font-weight: 500;
}
.cat-pill:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-l); }
.cat-pill.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.pill-count { font-size: 0.7rem; background: rgba(0,0,0,.08); border-radius: 99px; padding: 0.05rem 0.35rem; font-weight: 700; }
.cat-pill.active .pill-count { background: rgba(255,255,255,.25); }

/* ── Section ─────────────────────────────────────────────────── */
.section-block { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem 2.5rem; }
.hero + .section-block:not(.section-products) { padding-top: 1.25rem; }
.hero:not(.hero--home) + .section-block { padding-top: 2.5rem; }
.section-block + .section-block { padding-top: 1.5rem; }
.section-products { padding-bottom: 3rem; }
#home-products-section { scroll-margin-top: 7rem; padding-top: 0.5rem; }

/* Section header card */
.section-head {
  display: flex; flex-direction: column; gap: 0;
  margin-bottom: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.section-head-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; flex-wrap: wrap;
  padding: 1rem 1.15rem;
}
.section-toolbar {
  padding: 0.75rem 1.15rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
}
.section-head .sort-bar { margin-left: 0; width: 100%; }

/* Legacy section-hd (sale blocks etc.) */
.section-hd {
  display: flex; align-items: center; gap: 0.875rem;
  margin-bottom: 1.25rem; padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--text); display: flex; align-items: center; gap: 0.5rem;
  margin: 0;
}
.section-head-row .section-title { font-size: 1.25rem; }
.title-accent { margin-right: 0.125rem; }
.section-count {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700;
  background: var(--blue-l); color: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 99px; padding: 0.15rem 0.6rem;
  vertical-align: middle; letter-spacing: 0;
}
/* ── Sort bar ────────────────────────────────────────────────── */
.sort-bar {
  display: flex; align-items: center; gap: 0.65rem;
  margin-left: auto; flex-wrap: nowrap;
  width: 100%;
}
.sort-label {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.78rem; font-weight: 600; color: var(--muted);
  white-space: nowrap; flex-shrink: 0;
}
.sort-seg {
  display: flex; flex: 1; min-width: 0;
  border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden; background: var(--surface);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.sort-seg::-webkit-scrollbar { display: none; }
.sort-opt {
  flex: 1 0 auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.25rem;
  font-size: 0.78rem; padding: 0.5rem 0.85rem;
  border: none; border-right: 1px solid var(--border);
  color: var(--text2); background: transparent;
  white-space: nowrap; transition: background .12s, color .12s;
  font-family: inherit; min-height: 38px;
}
.sort-opt:last-child { border-right: none; }
.sort-opt:hover { background: var(--bg); color: var(--text); }
.sort-opt.active {
  background: var(--blue); color: #fff;
}

/* ── Product grid ────────────────────────────────────────────── */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.products-grid--home { gap: 1.125rem; }

/* ── Product card ────────────────────────────────────────────── */
.product-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.product-card:hover {
  box-shadow: 0 8px 24px rgba(var(--blue-rgb),.12), 0 2px 6px rgba(0,0,0,.06);
  transform: translateY(-4px);
  border-color: rgba(var(--blue-rgb),.2);
}
.product-card.is-out { opacity: .7; }

.c-img-link {
  display: block;
  position: absolute; inset: 0; z-index: 1;
}
.c-img { aspect-ratio: 1; background: var(--bg); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.c-img-link img { width: 100%; height: 100%; object-fit: contain; padding: 0.75rem; transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.c-img img { width: 100%; height: 100%; object-fit: contain; padding: 0.75rem; transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.product-card:hover .c-img img,
.product-card:hover .c-img-link img { transform: scale(1.08); }
.card-no-img { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

/* badges */
.c-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; }
.badge { font-size: 0.65rem; font-weight: 700; padding: 0.2rem 0.45rem; border-radius: 5px; line-height: 1.4; white-space: nowrap; letter-spacing: .03em; }
.badge-sale { background: var(--orange); color: #fff; }
.badge-out  { background: var(--red); color: #fff; }
.badge-low  { background: #fef9c3; color: var(--yellow); border: 1px solid #fde68a; }
.badge-new  { background: #dcfce7; color: var(--green); border: 1px solid #bbf7d0; }

.c-body { padding: 0.875rem; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.c-name {
  font-size: 0.875rem; font-weight: 600; color: var(--text); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .12s;
}
.c-name:hover { color: var(--blue); }
.c-cat { font-size: 0.72rem; color: var(--muted); }
.c-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 0.625rem; border-top: 1px solid var(--border); gap: 0.5rem; }

.c-price { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text); }
.c-price.sale { color: var(--orange); }
.c-price-group { display: flex; align-items: baseline; gap: 0.3rem; }
.c-old { font-size: 0.75rem; color: var(--muted); text-decoration: line-through; font-weight: 400; }

.c-add {
  width: 34px; height: 34px; border-radius: 8px; border: none;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .12s, transform .1s;
}
.c-add:hover { background: var(--blue-d); }
.c-add:active { transform: scale(.92); }
.c-add:disabled { background: var(--border); color: var(--muted); cursor: not-allowed; }

.c-fav {
  position: absolute; top: 8px; right: 8px; z-index: 5;
  width: 34px; height: 34px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.65); background: rgba(255,255,255,.92);
  color: var(--muted); display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(15,23,42,.12);
  transition: color .15s, background .15s, transform .1s;
}
.c-fav:hover { color: #ef4444; transform: scale(1.05); }
.c-fav.is-on { color: #ef4444; background: #fff; border-color: #fecaca; }

/* Font Awesome icon sizing */
.i-xs { font-size: 0.7rem; }
.i-sm { font-size: 0.875rem; }
.i-md { font-size: 1rem; }
.i-lg { font-size: 1.125rem; }
.i-2xl { font-size: 2rem; }
.i-success { font-size: 2.5rem; color: var(--green); }
.icon-muted { color: #cbd5e1; }
.feature-icon {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--blue-l); color: var(--blue);
}
.feature-icon i { font-size: 1.25rem; }
.stock-chip i, .badge i { margin-right: 0.2rem; }
.drawer-title i, .btn-add-main i, .btn-share i, .btn-ephoto-link i,
.btn-pay i, .btn-whatsapp i, .btn-contact-submit i, .btn-checkout i,
.drawer-back i, .hd-cart-btn i, .mega-foot i { margin-right: 0.15rem; }
.title-accent i { color: var(--orange); }
.ph-title i { margin-right: 0.35rem; }
.ci-img-placeholder, .live-search-thumb-ph {
  display: flex; align-items: center; justify-content: center;
}
.qty-btn i { font-size: 0.7rem; }
.drawer-close { display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.cm-wa i { color: #16a34a; font-size: 1.25rem; }
.nav-caret i { font-size: 0.55rem; opacity: 0.55; }
.mega-foot { display: inline-flex; align-items: center; gap: 0.35rem; }
.btn-cta-primary { display: inline-flex; align-items: center; gap: 0.4rem; }

/* ── Product detail ──────────────────────────────────────────── */
.dp-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; margin-bottom: 3rem; }

.dp-gallery { position: sticky; top: 96px; }
.dp-main-img {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  aspect-ratio: 1; overflow: hidden; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.dp-main-img img { width: 100%; height: 100%; object-fit: contain; padding: 1.5rem; }
.dp-no-img { font-size: 4rem; padding: 3rem; }

.dp-thumbs { display: flex; gap: 0.5rem; margin-top: 0.75rem; overflow-x: auto; padding-bottom: 0.25rem; }
.dp-thumbs::-webkit-scrollbar { height: 4px; }
.dp-thumbs::-webkit-scrollbar-track { background: var(--bg); border-radius: 4px; }
.dp-thumbs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.thumb {
  width: 72px; height: 72px; flex-shrink: 0;
  border: 2px solid var(--border); border-radius: 8px; overflow: hidden;
  background: var(--surface); padding: 3px; cursor: pointer;
  transition: border-color .12s; outline: none;
}
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb:hover, .thumb.active { border-color: var(--blue); }

.dp-info { display: flex; flex-direction: column; gap: 0.875rem; }
.dp-cat-link {
  display: inline-block; font-size: 0.78rem; font-weight: 600;
  color: var(--blue); background: var(--blue-l); border: 1px solid var(--blue);
  border-radius: 99px; padding: 0.2rem 0.75rem;
}
.dp-title { font-family: var(--font-display); font-size: clamp(1.35rem, 3vw, 1.875rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.dp-title-en { font-size: 0.9rem; color: var(--text2); }
.dp-sku { font-size: 0.8rem; color: var(--muted); }
.dp-sku code { background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 0.1rem 0.4rem; font-size: 0.78rem; }

.dp-price-row { display: flex; align-items: baseline; gap: 0.75rem; }
.dp-price { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.dp-sale-price { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--orange); letter-spacing: -0.01em; }
.dp-old-price { font-size: 1.1rem; color: var(--muted); text-decoration: line-through; }

.sale-timer {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px;
  padding: 0.45rem 0.875rem; font-size: 0.88rem; color: var(--orange); font-weight: 600;
}
.timer-val { font-size: 1rem; font-weight: 800; font-variant-numeric: tabular-nums; }

.stock-chip { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 600; padding: 0.35rem 0.875rem; border-radius: 99px; }
.stock-chip.ok  { background: #f0fdf4; color: var(--green); border: 1px solid #bbf7d0; }
.stock-chip.out { background: #fef2f2; color: var(--red);   border: 1px solid #fecaca; }
.stock-chip.low { background: #fffbeb; color: var(--yellow); border: 1px solid #fde68a; }

.dp-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.dp-tag { font-size: 0.75rem; padding: 0.2rem 0.6rem; background: var(--bg); border: 1px solid var(--border); border-radius: 99px; color: var(--text2); }

.dp-actions { display: flex; flex-direction: column; gap: 0.625rem; }
.btn-add-main {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 1.5rem; border-radius: var(--r); border: none;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-d) 100%);
  color: #fff; font-size: 1rem; font-weight: 700;
  transition: filter .15s, transform .1s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(var(--blue-rgb),.3);
}
.btn-add-main:hover { filter: brightness(1.1); box-shadow: 0 4px 16px rgba(var(--blue-rgb),.4); }
.btn-add-main:active { transform: scale(.98); }
.btn-add-main:disabled { background: var(--border); color: var(--muted); cursor: not-allowed; }

.btn-share, .btn-ephoto-link {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.25rem; border-radius: var(--r);
  border: 1px solid var(--border); background: var(--surface);
  font-size: 0.9rem; font-weight: 600; color: var(--text2);
  transition: background .12s, border-color .12s, color .12s; cursor: pointer;
}
.btn-share:hover, .btn-ephoto-link:hover { background: var(--bg); border-color: var(--blue); color: var(--blue); }

/* ── Price history ───────────────────────────────────────────── */
.price-history { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.ph-title { padding: 0.75rem 1rem; font-size: 0.9rem; font-weight: 700; background: var(--bg); border-bottom: 1px solid var(--border); }
.ph-scroll { overflow-x: auto; }
.ph-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; white-space: nowrap; }
.ph-table th, .ph-table td { padding: 0.55rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.ph-table tr:last-child td { border-bottom: none; }
.ph-table th { color: var(--muted); font-weight: 600; background: #fafafa; }
.cl-up   { color: var(--red);   font-weight: 600; }
.cl-down { color: var(--green); font-weight: 600; }

/* ── Related section ─────────────────────────────────────────── */
.related-section { border-top: 1px solid var(--border); padding-top: 2rem; }

/* ── Empty state ─────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 5rem 2rem; }
.empty-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.empty-sub { color: var(--text2); margin-bottom: 1.5rem; }
.btn-outline { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.65rem 1.25rem; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); font-size: 0.9rem; font-weight: 600; color: var(--text2); transition: all .12s; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-l); }

/* ── Overlay ─────────────────────────────────────────────────── */
.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 300; backdrop-filter: blur(2px); }
.overlay.open { display: block; }

/* ── Drawers shared ──────────────────────────────────────────── */
.cart-drawer, .checkout-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 100vw); background: var(--surface);
  border-left: 1px solid var(--border); z-index: 400;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-lg);
}
.cart-drawer.open, .checkout-drawer.open { transform: translateX(0); }

.drawer-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.drawer-title { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; font-weight: 700; }
.drawer-close {
  width: 32px; height: 32px; border-radius: 8px; border: none;
  background: var(--bg); color: var(--text2); font-size: 1.25rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background .12s;
}
.drawer-close:hover { background: var(--border); }
.drawer-back {
  display: flex; align-items: center; gap: 0.35rem;
  border: none; background: none; color: var(--blue); font-size: 0.9rem; font-weight: 600; padding: 0;
}
.drawer-back:hover { text-decoration: underline; }

/* ── Cart ────────────────────────────────────────────────────── */
.cart-body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }
.cart-empty-msg { color: var(--muted); font-size: 0.9rem; padding: 2rem 0; text-align: center; }

.cart-item { display: flex; gap: 0.75rem; padding: 0.875rem 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.cart-item:last-child { border-bottom: none; }
.ci-img {
  width: 60px; height: 60px; flex-shrink: 0;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); padding: 4px; object-fit: contain;
}
.ci-img-placeholder { width: 60px; height: 60px; flex-shrink: 0; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.ci-info { flex: 1; min-width: 0; }
.ci-name { font-size: 0.875rem; font-weight: 600; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ci-price { font-size: 0.85rem; color: var(--text2); margin-top: 0.2rem; }
.ci-qty { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.5rem; }
.qty-btn {
  width: 26px; height: 26px; border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface); color: var(--text); font-size: 1rem;
  display: flex; align-items: center; justify-content: center; transition: background .1s;
}
.qty-btn:hover { background: var(--bg); }
.qty-val { font-size: 0.875rem; font-weight: 700; min-width: 1.5rem; text-align: center; }
.ci-del { background: none; border: none; color: var(--muted); padding: 0.25rem; margin-left: auto; align-self: flex-start; transition: color .12s; }
.ci-del:hover { color: var(--red); }

.cart-footer { padding: 1rem 1.25rem; border-top: 1px solid var(--border); flex-shrink: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; font-size: 1rem; }
.cart-total { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--text); }

.btn-checkout {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  width: 100%; padding: 0.9rem; border-radius: var(--r); border: none;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-d) 100%);
  color: #fff; font-size: 1rem; font-weight: 700;
  transition: filter .15s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(var(--blue-rgb),.3);
}
.btn-checkout:hover { filter: brightness(1.08); box-shadow: 0 4px 16px rgba(var(--blue-rgb),.4); }

/* ── Checkout form ───────────────────────────────────────────── */
.checkout-body { flex: 1; overflow-y: auto; padding: 1.25rem; }
.checkout-section-title { font-size: 0.9rem; font-weight: 700; color: var(--text2); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }

.field-group { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.875rem; }
.field-label { font-size: 0.82rem; font-weight: 600; color: var(--text2); }
.req { color: var(--red); }
.field-input {
  border: 1px solid var(--border); border-radius: 8px;
  padding: 0.65rem 0.875rem; font-size: 0.9rem; color: var(--text);
  background: var(--surface); outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.field-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(var(--blue-rgb),.1); }
.field-input.error { border-color: var(--red); }
.field-textarea { resize: vertical; min-height: 70px; }

.checkout-order-summary { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); padding: 1rem; margin: 1rem 0; }
.co-item { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 0.2rem 0; color: var(--text2); }
.co-item.total { font-size: 1rem; font-weight: 800; color: var(--text); border-top: 1px solid var(--border); padding-top: 0.5rem; margin-top: 0.25rem; }

.checkout-actions { display: flex; flex-direction: column; gap: 0.625rem; }
.btn-pay {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem; border-radius: var(--r); border: none;
  background: var(--blue); color: #fff; font-size: 1rem; font-weight: 700;
  transition: background .15s; font-family: inherit;
}
.btn-pay:hover { background: var(--blue-d); }
.btn-pay:disabled { background: var(--border); color: var(--muted); cursor: not-allowed; }
.btn-whatsapp {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem; border-radius: var(--r); border: none;
  background: #25d366; color: #fff; font-size: 0.95rem; font-weight: 700;
  transition: background .15s; font-family: inherit;
}
.btn-whatsapp:hover { background: #1da851; }

/* ── Success screen ──────────────────────────────────────────── */
.success-screen {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
}
.success-card {
  background: var(--surface); border-radius: var(--r-lg); padding: 2.5rem 2rem;
  text-align: center; max-width: 380px; width: 100%; box-shadow: var(--shadow-lg);
  animation: slideUp .3s ease;
}
@keyframes slideUp { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform: translateY(0); } }
.success-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: #f0fdf4; border: 2px solid #bbf7d0; color: var(--green);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem;
}
.success-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.success-order-num { font-size: 0.85rem; color: var(--muted); font-family: monospace; margin-bottom: 0.5rem; }
.success-msg { color: var(--text2); font-size: 0.9rem; margin-bottom: 1.5rem; }
.btn-continue {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.75rem 1.5rem; border-radius: var(--r); border: none;
  background: var(--blue); color: #fff; font-size: 0.95rem; font-weight: 700;
  cursor: pointer; transition: background .15s; font-family: inherit;
}
.btn-continue:hover { background: var(--blue-d); }

/* ── Toast ───────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%) translateY(5rem);
  background: #1e293b; color: #fff; padding: 0.7rem 1.5rem;
  border-radius: 99px; font-size: 0.875rem; font-weight: 600;
  z-index: 600; transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 4px 20px rgba(0,0,0,.25); pointer-events: none;
  white-space: nowrap; max-width: calc(100vw - 2rem);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  margin-top: auto;
  color: #94a3b8;
  background: #0b1220;
  border-top: 1px solid rgba(255, 255, 255, .06);
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(var(--blue-rgb), .18) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 100%, rgba(14, 165, 233, .12) 0%, transparent 50%);
  pointer-events: none;
}
.ft-wrap {
  position: relative; z-index: 1;
  max-width: 1280px; margin: 0 auto;
  padding: 3rem 1.5rem 1.5rem;
}
.ft-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 2rem 2.5rem;
  padding-bottom: 2rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.ft-col { display: flex; flex-direction: column; gap: 0.85rem; min-width: 0; }
.ft-col-brand { gap: 1rem; }
.ft-logo {
  display: inline-flex; align-items: center; gap: 0.75rem;
  color: #f1f5f9; transition: opacity .15s;
}
.ft-logo:hover { opacity: 0.92; }
.ft-logo-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--blue-rgb), .2); color: var(--blue);
  border: 1px solid rgba(96, 165, 250, .25);
  font-size: 1.1rem;
}
.ft-logo-stack { display: flex; flex-direction: column; gap: 0.1rem; }
.ft-name {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 700; color: #f8fafc;
  line-height: 1.2;
}
.ft-tagline { font-size: 0.72rem; color: #64748b; letter-spacing: 0.02em; }
.ft-desc {
  font-size: 0.84rem; line-height: 1.65; color: #94a3b8;
  max-width: 28rem; margin: 0;
}
.ft-desc-sm { font-size: 0.8rem; line-height: 1.6; color: #64748b; margin: 0; }
.ft-col-title {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #cbd5e1; margin: 0;
}
.ft-col-title i { color: var(--blue); opacity: 0.9; }
.ft-nav { display: flex; flex-direction: column; gap: 0.35rem; }
.ft-nav-link {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.875rem; color: #94a3b8; padding: 0.35rem 0;
  transition: color .15s, transform .15s;
}
.ft-nav-link i { width: 1rem; text-align: center; color: #64748b; transition: color .15s; }
.ft-nav-link:hover { color: #f1f5f9; transform: translateX(3px); }
.ft-nav-link:hover i { color: var(--blue); }
.ft-nav-muted { font-size: 0.85rem; color: #475569; }
.ft-social { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.15rem; }
.ft-contact-item {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.75rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
  color: #cbd5e1; transition: background .15s, border-color .15s, color .15s;
}
.ft-contact-item:hover {
  background: rgba(var(--blue-rgb), .15);
  border-color: rgba(96, 165, 250, .35);
  color: #fff;
}
.ft-contact-item .fa-whatsapp { color: #22c55e; }
.ft-cta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  margin-top: 0.25rem; padding: 0.65rem 1rem;
  border-radius: 10px; width: fit-content;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-d) 100%);
  color: #fff; font-size: 0.82rem; font-weight: 700;
  box-shadow: 0 4px 14px rgba(var(--blue-rgb), .35);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.ft-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(var(--blue-rgb), .45);
  filter: brightness(1.05);
}
.ft-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.ft-copy { font-size: 0.78rem; color: #475569; }
.ft-powered {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; color: #64748b; transition: color .15s;
}
.ft-powered strong { color: var(--blue); font-weight: 700; }
.ft-powered:hover { color: #cbd5e1; }
.ft-powered:hover strong { color: var(--blue); }

[data-theme="light"] .site-footer {
  background: #0f172a;
}
[data-theme="dark"] .site-footer::before {
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(59, 130, 246, .22) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 100%, rgba(56, 189, 248, .14) 0%, transparent 50%);
}

/* ── Dark / Light mode ───────────────────────────────────────── */
[data-theme="dark"] {
  --blue:    var(--blue);
  --blue-d:  var(--blue);
  --blue-l:  #172554;
  --text:    #f1f5f9;
  --text2:   #94a3b8;
  --muted:   #64748b;
  --border:  #1e293b;
  --bg:      #070d1a;
  --surface: #0f172a;
  --green:   #22c55e;
  --red:     #f87171;
  --orange:  #fb923c;
  --yellow:  #fbbf24;
  --shadow:  0 1px 3px rgba(0,0,0,.5), 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,.5), 0 2px 4px rgba(0,0,0,.3);
  --shadow-lg: 0 20px 40px rgba(0,0,0,.7);
}
[data-theme="dark"] body { background: var(--bg); color: var(--text); }
[data-theme="dark"] .site-header {
  background: var(--surface);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .35), 0 4px 6px -4px rgba(0, 0, 0, .25);
}
[data-theme="dark"] .logo-icon { background: #172554; }
[data-theme="dark"] .hd-all-cats-btn { background: var(--surface); }
[data-theme="dark"] .hd-search-input:focus { background: #1e293b; }
[data-theme="dark"] .mega-spot-img { background: var(--surface); }
[data-theme="dark"] .mega-spot-label { color: #fb923c; }
[data-theme="dark"] .mega-panel { box-shadow: 0 20px 40px rgba(0, 0, 0, .55); }
[data-theme="dark"] .hero {
  background: linear-gradient(-45deg, #010409, #0c1828, #1a3a6e, #0c3460);
  background-size: 300% 300%;
  animation: heroShift 14s ease infinite;
}
[data-theme="dark"] .stat-card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
[data-theme="dark"] .product-card { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .hd-search-input { background: var(--surface); border-color: var(--border); color: var(--text); }
[data-theme="dark"] .hero-search-input { background: #1e293b; color: var(--text); }
[data-theme="dark"] .field-input { background: #1e293b; border-color: var(--border); color: var(--text); }
[data-theme="dark"] .field-input:focus { background: #1e293b; border-color: var(--blue); }
[data-theme="dark"] .checkout-order-summary { background: #1e293b; border-color: var(--border); }
[data-theme="dark"] .cart-drawer, [data-theme="dark"] .checkout-drawer { background: #0f172a; border-color: var(--border); }
[data-theme="dark"] .drawer-hd { border-bottom-color: var(--border); }
[data-theme="dark"] .drawer-close { background: #1e293b; color: var(--text2); }
[data-theme="dark"] .success-card { background: #0f172a; }
[data-theme="dark"] .cat-pill { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .sort-seg { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .sort-opt { border-right-color: var(--border); color: var(--text2); }
[data-theme="dark"] .sort-opt:hover { background: #1e293b; color: var(--text); }
[data-theme="dark"] .section-count { background: #172554; border-color: var(--blue-d); color: var(--blue); }
[data-theme="dark"] .section-hd { border-bottom-color: var(--border); }
[data-theme="dark"] .section-head { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .section-toolbar { background: linear-gradient(180deg, rgba(15,23,42,.35) 0%, var(--surface) 100%); }
[data-theme="dark"] .ph-table th { background: #1e293b; }
[data-theme="dark"] .price-history { border-color: var(--border); }
[data-theme="dark"] .ph-title { background: #1e293b; }
[data-theme="dark"] .dp-main-img { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .thumb { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .logo-sub { color: var(--muted); }
[data-theme="dark"] .hero-catalog-bar {
  border-color: var(--border);
  background: var(--surface);
  box-shadow: 0 4px 20px rgba(0,0,0,.4), 0 1px 4px rgba(0,0,0,.3);
}
[data-theme="dark"] .hero-catalog-bar__title {
  background: #0f172a;
  border-right-color: var(--border);
}
[data-theme="dark"] .hero-catalog-bar__label { color: var(--blue); }
[data-theme="dark"] .hero-catalog-bar__count {
  background: rgba(var(--blue-rgb),.15);
  border-color: rgba(96,165,250,.35);
  color: var(--blue);
}
[data-theme="dark"] .hero-catalog-bar__sort { background: var(--surface); }

/* ── Theme toggle button ─────────────────────────────────────── */
.theme-toggle {
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text2); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .15s, border-color .15s, color .15s;
}
.theme-toggle:hover { background: var(--bg); color: var(--blue); border-color: var(--blue); }
.theme-icon-moon { display: none; }
.theme-icon-sun  { display: flex; }
[data-theme="dark"] .theme-icon-moon { display: flex; }
[data-theme="dark"] .theme-icon-sun  { display: none; }

/* ── Header nav links ────────────────────────────────────────── */
.hd-nav-links { display: flex; align-items: center; gap: 0.125rem; flex-shrink: 0; }
.hd-nav-link {
  padding: 0.45rem 0.8rem; border-radius: 8px;
  font-size: 0.875rem; font-weight: 500; color: var(--text2);
  white-space: nowrap; transition: background .12s, color .12s;
}
.hd-nav-link:hover { background: var(--bg); color: var(--text); }
.hd-nav-link.active { color: var(--blue); background: var(--blue-l); font-weight: 600; }

/* ── Mobile hamburger ────────────────────────────────────────── */
.hd-menu-btn {
  display: none; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text2);
  flex-shrink: 0; transition: background .12s;
}
.hd-menu-btn:hover { background: var(--bg); color: var(--text); }

/* ── Mobile dropdown menu ────────────────────────────────────── */
.mobile-menu {
  display: none; flex-direction: column; gap: 0.15rem;
  border-top: 1px solid var(--border); background: var(--surface);
  padding: 0.75rem 1rem 1rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 0.6rem 0.875rem; border-radius: 8px;
  font-size: 0.92rem; font-weight: 500; color: var(--text2);
  transition: background .12s, color .12s;
}
.mobile-menu a:hover, .mobile-menu a.active { background: var(--bg); color: var(--blue); }
.mobile-menu-label {
  padding: 0.35rem 0.875rem 0.15rem; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.mobile-menu-sep { height: 1px; background: var(--border); margin: 0.4rem 0; }

/* ── About page ──────────────────────────────────────────────── */
.about-hero {
  background: linear-gradient(135deg, #0f172a 0%, var(--blue-d) 60%, var(--blue) 100%);
  color: #fff; padding: 4.5rem 1.5rem 3.5rem; text-align: center;
}
.about-hero-inner { max-width: 640px; margin: 0 auto; }
.about-eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--blue);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  border-radius: 99px; padding: 0.3rem 0.875rem; margin-bottom: 1rem;
}
.about-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.75rem); font-weight: 700;
  line-height: 1.05; margin-bottom: 1rem;
}
.about-sub { font-size: 1.05rem; color: #cbd5e1; line-height: 1.7; }

.about-features {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem; margin: 2.5rem 0;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem; text-align: center;
  box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature-card .feature-icon { margin: 0 auto 0.875rem; }
.feature-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--text); }
.feature-desc { font-size: 0.875rem; color: var(--text2); line-height: 1.65; }

.about-cta {
  text-align: center; padding: 3rem 1.5rem 1rem;
  border-top: 1px solid var(--border); margin-top: 0.5rem;
}
.about-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700;
  margin-bottom: 0.75rem; color: var(--text);
}
.about-cta-sub { color: var(--text2); font-size: 1rem; margin-bottom: 1.75rem; line-height: 1.6; }
.btn-cta-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 1.75rem; border-radius: var(--r); border: none;
  background: var(--blue); color: #fff; font-family: 'Mersad', sans-serif;
  font-size: 1rem; font-weight: 700; transition: background .15s; margin-right: 0.75rem;
}
.btn-cta-primary:hover { background: var(--blue-d); }
.btn-cta-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 1.75rem; border-radius: var(--r);
  border: 1px solid var(--border); background: var(--surface);
  font-family: 'Mersad', sans-serif; font-size: 1rem; font-weight: 600;
  color: var(--text2); transition: all .15s;
}
.btn-cta-secondary:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-l); }

/* ── Contact page ────────────────────────────────────────────── */
.contact-page { max-width: 680px; margin: 0 auto; padding: 2.5rem 1.5rem 3rem; }
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700;
  margin-bottom: 0.5rem; color: var(--text);
}
.contact-sub { color: var(--text2); font-size: 1rem; margin-bottom: 2rem; }

.contact-methods { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.contact-method {
  display: flex; align-items: center; gap: 0.875rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 1rem 1.25rem; transition: border-color .12s, box-shadow .12s;
  flex: 1; min-width: 200px;
}
.contact-method:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.cm-icon { width: 44px; height: 44px; border-radius: 12px; background: #dcfce7; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cm-wa { background: #dcfce7; }
.cm-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.cm-value { font-size: 0.95rem; font-weight: 700; color: var(--text); }

.contact-form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 2rem; box-shadow: var(--shadow);
}
.contact-form-title {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700; margin-bottom: 1.25rem; color: var(--text);
}
.btn-contact-submit {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; padding: 0.9rem; border-radius: var(--r); border: none;
  background: var(--blue); color: #fff; font-family: 'Mersad', sans-serif;
  font-size: 1rem; font-weight: 700; transition: background .15s;
}
.btn-contact-submit:hover { background: var(--blue-d); }
.btn-contact-submit:disabled { background: var(--border); color: var(--muted); cursor: not-allowed; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .dp-layout { gap: 2rem; }
  .section-block { padding-left: 1.25rem; padding-right: 1.25rem; }
  .hero--home { padding-bottom: 3.5rem; }
  .hero-catalog-bar {
    width: calc(100% - 2rem);
    margin-top: -2.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
  }
  .hero-catalog-bar__title {
    font-size: 1.1rem; padding: 0.75rem 1rem;
    border-right: none; border-bottom: 1px solid var(--border);
    width: 100%;
  }
  .hero-catalog-bar__sort { padding: 0.6rem 1rem; width: 100%; }
  .hero-catalog-bar .sort-seg { margin-left: 0; }
  .hero-catalog-bar .sort-bar { justify-content: flex-start; }
  .hero + .section-block { padding-top: 1rem; }
  .products-grid,
  .products-grid--home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
  .hero-inner {
    flex-direction: column; align-items: stretch;
    gap: 1.5rem;
  }
  .hero-stats { justify-content: flex-start; }
  .hd-wrap { gap: 0.75rem; }
  .hd-main { flex: 1 1 100%; order: 3; }
  .hd-all-cats-btn { width: 100%; justify-content: center; }
  .mega-panel-body { flex-direction: column; }
  .mega-spotlight {
    width: 100%; margin-left: 0; margin-top: 0.75rem;
    padding-left: 0; padding-top: 0.75rem;
    border-left: none; border-top: 1px solid var(--border);
    flex-direction: row; align-items: center; gap: 0.75rem;
  }
  .mega-spot-link { flex-direction: row; align-items: center; flex: 1; gap: 0.65rem; }
  .mega-spot-img, .mega-spot-img--empty { width: 64px; height: 64px; flex-shrink: 0; }
  .section-head-row { padding: 0.9rem 1rem; }
  .section-toolbar { padding: 0.65rem 1rem; }
  .sort-bar { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .sort-seg { width: 100%; }
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem 2rem; }
  .ft-wrap { padding: 2.5rem 1.25rem 1.25rem; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .hd-nav { padding: 1rem 1.25rem; }
  .hd-nav-links { gap: 0.25rem; }
  .product-card .c-name { font-size: 0.82rem; }
  .c-foot { flex-wrap: wrap; gap: 0.35rem; }
}

@media (min-width: 768px) {
  .site-header {
    box-shadow: none;
    border-bottom: 1px solid #f3f4f6;
  }
  .hd-nav { padding: 1.5rem 1rem; }
  [data-theme="dark"] .site-header { border-bottom-color: var(--border); }
}

@media (max-width: 1100px) {
  .hd-cats { display: none; }
}

@media (max-width: 900px) {
  .hd-nav-links { display: none; }
  .hd-search { display: none; }
}

@media (max-width: 768px) {
  .ft-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .ft-col-cta .ft-cta-btn { width: 100%; }
  .ft-bar { flex-direction: column; align-items: flex-start; gap: 0.65rem; }
  .hero { padding: 2.5rem 1.25rem 2rem; }
  .hero-h1 { font-size: 2.5rem; }
  .dp-layout { grid-template-columns: 1fr; }
  .dp-gallery { position: static; }
  .hd-main { display: none; }
  .logo-sub { display: none; }
  .hd-cart-label { display: none; }
  .hd-cart-btn { padding: 0.55rem; }
  .hd-menu-btn { display: flex; }
  .about-cta-title { font-size: 1.75rem; }
  .btn-cta-primary, .btn-cta-secondary { width: 100%; justify-content: center; margin-right: 0; margin-bottom: 0.5rem; }
  .products-grid,
  .products-grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
  .section-head-row .section-title { font-size: 1.1rem; }
  .sort-opt { padding: 0.45rem 0.65rem; font-size: 0.72rem; min-height: 36px; }
}

@media (max-width: 640px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .hero-search { max-width: 100%; }
  .hd-search-input { width: 130px; }
  .hd-search-input:focus { width: 150px; }
  .cats-strip, .section-block, .inner-page { padding-left: 1rem; padding-right: 1rem; }
  .hd-nav { padding: 0.875rem 1rem; }
  .hd-wrap { gap: 0.625rem; }
  .hero-stats { gap: 0.5rem; }
  .stat-card { padding: 0.75rem 1rem; }
  .stat-num { font-size: 1.5rem; }
  .about-features { grid-template-columns: 1fr 1fr; }
}

/* ── Hierarchical Category Nav ──────────────────────────────── */
.nav-cat-wrap { position: relative; display: inline-flex; align-items: center; }
.nav-cat-wrap > .nav-cat { display: flex; align-items: center; gap: 0.25rem; }
.nav-caret { font-size: 0.55rem; opacity: 0.6; transition: transform 0.15s; margin-left: 1px; }
.nav-cat-wrap:hover .nav-caret { transform: rotate(180deg); }
.nav-cat-cnt { display: inline-flex; align-items: center; justify-content: center; min-width: 1.1rem; height: 1.1rem; padding: 0 0.3rem; font-size: 0.6rem; font-weight: 600; border-radius: 999px; background: var(--blue); color: #fff; line-height: 1; }

/* Dropdown panel */
.nav-dropdown {
  display: none; position: absolute; top: calc(100% + 6px); left: 50%;
  transform: translateX(-50%); min-width: 180px; max-width: 240px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 0.625rem; box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  z-index: 200; padding: 0.375rem; white-space: nowrap;
}
.nav-cat-wrap:hover .nav-dropdown { display: block; }
.nav-dd-item {
  display: flex; align-items: center; padding: 0.45rem 0.75rem;
  border-radius: 0.375rem; font-size: 0.8125rem; color: var(--text2);
  text-decoration: none; gap: 0.5rem; cursor: pointer; transition: background 0.1s;
}
.nav-dd-item:hover, .nav-dd-item.has-sub:hover > a { background: var(--bg); color: var(--text); }
a.nav-dd-item { color: var(--text2); }
a.nav-dd-item:hover { color: var(--text); }
.nav-dd-item.has-sub { position: relative; padding: 0; }
.nav-dd-item.has-sub > a { display: flex; align-items: center; width: 100%; padding: 0.45rem 0.75rem; border-radius: 0.375rem; color: var(--text2); text-decoration: none; gap: 0.5rem; }
.nav-dd-item.has-sub:hover > a { background: var(--bg); color: var(--text); }
.dd-arr { margin-left: auto; opacity: 0.5; font-size: 0.75rem; }

/* Sub-dropdown (grandchildren) — expands to the right */
.nav-sub-dd {
  display: none; position: absolute; left: calc(100% + 4px); top: -4px;
  min-width: 170px; max-width: 220px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 0.625rem; box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  z-index: 210; padding: 0.375rem;
}
.nav-dd-item.has-sub:hover .nav-sub-dd { display: block; }
.nav-sub-item {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.75rem;
  border-radius: 0.375rem; font-size: 0.8rem; color: var(--text2);
  text-decoration: none; transition: background 0.1s;
}
.nav-sub-item:hover { background: var(--bg); color: var(--text); }

/* ── History-based sale styles ───────────────────────────────── */
.dp-hist-sale { color: var(--blue) !important; }
.dp-hist-orig { color: var(--muted) !important; font-size: 1rem !important; opacity: 0.75; }
.hist-sale-note { margin: 0.35rem 0 0; font-size: 0.78rem; color: var(--muted); }

[data-theme="dark"] .nav-dropdown,
[data-theme="dark"] .nav-sub-dd { box-shadow: 0 8px 24px rgba(0,0,0,0.4); }

/* ── Load more ───────────────────────────────────────────────── */
.load-more-wrap { display: flex; justify-content: center; margin-top: 1.5rem; }
.btn-load-more {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.25rem; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 0.875rem; font-weight: 600;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.btn-load-more:hover:not(:disabled) { border-color: var(--blue); background: var(--blue-l); color: var(--blue-d); }
.btn-load-more:disabled { opacity: 0.7; cursor: wait; }

/* ── Favorites header badge ──────────────────────────────────── */
.hd-fav-link { display: inline-flex; align-items: center; gap: 0.35rem; }
.fav-count {
  display: none; align-items: center; justify-content: center;
  min-width: 1.1rem; height: 1.1rem; padding: 0 0.35rem;
  font-size: 0.65rem; font-weight: 700; border-radius: 999px;
  background: var(--red); color: #fff;
}
@media (max-width: 900px) {
  .hd-fav-label { display: none; }
}

/* ── PDP favorite ────────────────────────────────────────────── */
.dp-fav {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--muted); transition: color .15s, border-color .15s, background .15s;
}
.dp-fav.is-on { color: var(--red); border-color: #fecaca; background: #fef2f2; }
.dp-fav:hover { border-color: var(--blue); color: var(--blue); }
.dp-actions { flex-wrap: wrap; gap: 0.5rem; }

/* ── Payment methods ─────────────────────────────────────────── */
.pay-methods { display: flex; flex-direction: column; gap: 0.5rem; }
.pay-opt {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 0.75rem; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg);
  font-size: 0.85rem; cursor: pointer; transition: border-color .15s;
}
.pay-opt:has(input:checked) { border-color: var(--blue); background: var(--blue-l); }
.pay-opt input { accent-color: var(--blue); }
.pay-opt-disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.pay-note { font-size: 0.78rem; color: var(--muted); margin-left: 0.25rem; }
.loan-months-wrap { margin-top: 0.65rem; }

/* ── Cart stock hint ─────────────────────────────────────────── */
.ci-stock-hint { font-size: 0.68rem; color: var(--muted); margin-top: 0.15rem; }
.qty-btn.disabled, .qty-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Product detail: qty selector ───────────────────────────── */
.dp-qty-wrap {
  display: inline-flex; align-items: center; gap: 0.35rem;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); padding: 0.1rem 0.25rem;
}
.dp-qty-btn {
  width: 32px; height: 32px; border: none; background: none;
  cursor: pointer; border-radius: 6px; font-size: 1rem; color: var(--text);
  transition: background .1s;
}
.dp-qty-btn:hover { background: var(--bg); }
.dp-qty-input {
  width: 3rem; text-align: center; border: none; background: none;
  font-size: 1rem; font-weight: 600; color: var(--text);
}

/* ── Product detail: specs table ─────────────────────────────── */
.dp-specs { margin-top: 1.25rem; }
.dp-specs-title {
  font-size: 0.9rem; font-weight: 700; color: var(--text2);
  margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.04em;
}
.specs-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.specs-table th, .specs-table td {
  padding: 0.4rem 0.6rem; border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.specs-table th { color: var(--text2); font-weight: 500; width: 40%; text-align: left; }
.specs-table td { color: var(--text); }
[data-theme="dark"] .specs-table th { background: rgba(255,255,255,.04); }

/* ── PDP favorite hover (when already favorited) ─────────────── */
.dp-fav.is-on:hover { border-color: #fca5a5; background: #fee2e2; color: #ef4444; }

/* ── Fav count badge visibility ──────────────────────────────── */
.fav-count:not(:empty) { display: flex; }

/* ── About hero dark ─────────────────────────────────────────── */
[data-theme="dark"] .about-hero {
  background: linear-gradient(135deg, #010409 0%, #0c1828 60%, #1a3a6e 100%);
}

/* ── Checkout return page ────────────────────────────────────── */
.checkout-return .return-card { max-width: 480px; margin: 2rem auto; }

/* ── Global focus-visible ────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.thumb:focus-visible { box-shadow: var(--glow-blue); outline: none; }


/* === per-store header skins === */
html[data-skin="s1"] .site-header{border-bottom:3px solid var(--blue);box-shadow:none}
html[data-skin="s1"] .hd-nav-link{text-transform:uppercase;letter-spacing:.08em;font-size:.78rem;font-weight:700}
html[data-skin="s1"] .logo-text{text-transform:uppercase;letter-spacing:.03em}
html[data-skin="s2"] .site-header{background:var(--blue-l)}
html[data-skin="s2"] .logo-sub{font-style:italic}
html[data-skin="s2"] .hd-nav-link{border-radius:999px;transition:background .2s,color .2s}
html[data-skin="s2"] .hd-nav-link:hover{background:#fff;color:var(--blue-d)}
html[data-skin="s3"] .hd-nav-link{background:var(--blue-l);color:var(--blue-d);border-radius:999px;padding:.45rem .9rem;font-weight:700}
html[data-skin="s3"] .hd-nav-link:hover{background:var(--blue);color:#fff}
html[data-skin="s3"] .logo-icon{font-size:1.55rem;color:var(--blue)}
html[data-skin="s4"] .site-header{border-bottom:none;box-shadow:0 1px 0 var(--border),0 6px 16px rgba(0,0,0,.04)}
html[data-skin="s4"] .hd-nav-link{text-transform:uppercase;letter-spacing:.06em;font-size:.74rem;font-weight:500}
html[data-skin="s4"] .logo-text{font-weight:800;letter-spacing:-.02em}
html[data-skin="s5"] .site-header{border-bottom:1px solid var(--border);box-shadow:none}
html[data-skin="s5"] .hd-nav-link{text-transform:uppercase;letter-spacing:.14em;font-size:.7rem;font-weight:500;color:var(--text2)}
html[data-skin="s5"] .hd-nav-link:hover{color:var(--blue)}
html[data-skin="s5"] .logo-text{letter-spacing:.12em;text-transform:uppercase;font-weight:600;font-size:1rem}
html[data-skin="s6"] .site-header{background:var(--blue)}
html[data-skin="s6"] .hd-nav-link,html[data-skin="s6"] .logo-text,html[data-skin="s6"] .logo-icon,html[data-skin="s6"] .hd-all-cats-btn,html[data-skin="s6"] .hd-cart-btn,html[data-skin="s6"] .theme-toggle,html[data-skin="s6"] .hd-menu-btn{color:#fff}
html[data-skin="s6"] .logo-sub{color:rgba(255,255,255,.78)}
html[data-skin="s6"] .hd-nav-link:hover,html[data-skin="s6"] .hd-all-cats-btn:hover{opacity:.82}
html[data-skin="s6"] .hd-search-input{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.3);color:#fff}
html[data-skin="s6"] .hd-search-input::placeholder{color:rgba(255,255,255,.72)}
html[data-skin="s7"] .site-header{border-bottom:3px double var(--blue)}
html[data-skin="s7"] .hd-nav-link{letter-spacing:.04em}
html[data-skin="s7"] .hd-nav-link:hover{text-decoration:underline;text-underline-offset:5px}
html[data-skin="s7"] .logo-text{font-weight:800;letter-spacing:.02em}
html[data-skin="s8"] .site-header{background:var(--blue-l);border-bottom:none}
html[data-skin="s8"] .hd-nav-link{border-radius:999px}
html[data-skin="s8"] .hd-nav-link:hover{background:#fff;color:var(--blue-d)}
html[data-skin="s9"] .hd-wrap{padding-top:.55rem;padding-bottom:.55rem}
html[data-skin="s9"] .site-header{border-bottom:1px solid var(--border);box-shadow:none}
html[data-skin="s9"] .hd-nav-link{font-weight:400;letter-spacing:.04em;color:var(--text2)}
html[data-skin="s9"] .hd-nav-link:hover{color:var(--blue)}
html[data-skin="s10"] .site-header{background:#0f172a;border-bottom:1px solid rgba(255,255,255,.08)}
html[data-skin="s10"] .logo-text,html[data-skin="s10"] .logo-icon{color:#fff}
html[data-skin="s10"] .logo-sub{color:#94a3b8}
html[data-skin="s10"] .hd-nav-link,html[data-skin="s10"] .hd-all-cats-btn,html[data-skin="s10"] .hd-cart-btn,html[data-skin="s10"] .theme-toggle,html[data-skin="s10"] .hd-menu-btn{color:#e2e8f0}
html[data-skin="s10"] .hd-nav-link{text-transform:uppercase;letter-spacing:.12em;font-size:.72rem;font-weight:500}
html[data-skin="s10"] .hd-nav-link:hover{color:var(--blue)}
html[data-skin="s10"] .hd-search-input{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.15);color:#fff}
html[data-skin="s10"] .hd-search-input::placeholder{color:#64748b}


/* === per-store home layouts === */
.layout-sidebar{display:flex;gap:1.5rem;align-items:flex-start}
.cat-rail{flex:0 0 220px;position:sticky;top:90px;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:.75rem;align-self:flex-start}
.cat-rail-title{font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);padding:.4rem .6rem .5rem}
.cat-rail-nav{display:flex;flex-direction:column;gap:.15rem}
.cat-rail-link{display:block;padding:.55rem .7rem;border-radius:var(--r);color:var(--text2);font-size:.9rem;text-decoration:none;transition:background .15s,color .15s}
.cat-rail-link:hover{background:var(--blue-l);color:var(--blue-d)}
.cat-rail-link.active{background:var(--blue);color:#fff;font-weight:600}
.layout-sidebar-main{flex:1;min-width:0}
.rail-titlebar{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;margin-bottom:1rem}
.rail-h1{font-size:1.5rem;margin:0}
.rail-count{color:var(--muted);font-size:.9rem}
.rail-sort{margin-left:auto}
@media(max-width:768px){.layout-sidebar{flex-direction:column}.cat-rail{position:static;flex:1 1 auto;width:100%}.cat-rail-nav{flex-direction:row;flex-wrap:wrap}}
.compact-titlebar{display:flex;align-items:baseline;gap:.75rem;margin:.5rem 0 1rem;flex-wrap:wrap}
.compact-h1{font-size:1.6rem;margin:0}
.compact-count{color:var(--muted);font-size:.9rem}
.cat-chips{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1.25rem}
.cat-chip{padding:.4rem .9rem;border:1px solid var(--border);border-radius:999px;font-size:.85rem;color:var(--text2);text-decoration:none;transition:all .15s}
.cat-chip:hover,.cat-chip.active{background:var(--blue);color:#fff;border-color:var(--blue)}


/* numbers stay readable regardless of heading font */
.c-price,.c-price.sale,.dp-price,.dp-sale-price,.stat-num,.cart-total{font-family:'Dachi','Mersad',sans-serif}
/* === per-store product card styles (structural) === */
/* c1 — image overlay: photo fills card, title+price on dark scrim */
html[data-cards="c1"] .products-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}
html[data-cards="c1"] .product-card{position:relative;border:none;border-radius:var(--r-lg);overflow:hidden;box-shadow:0 4px 16px rgba(0,0,0,.12)}
html[data-cards="c1"] .product-card .c-img{aspect-ratio:3/4}
html[data-cards="c1"] .product-card .c-img img,html[data-cards="c1"] .product-card .c-img-link img{object-fit:cover;padding:0}
html[data-cards="c1"] .product-card .c-body{position:absolute;left:0;right:0;bottom:0;z-index:2;padding:1.7rem .8rem .7rem;background:linear-gradient(transparent,rgba(0,0,0,.85))}
html[data-cards="c1"] .product-card .c-name{color:#fff}
html[data-cards="c1"] .product-card .c-cat{color:rgba(255,255,255,.7)}
html[data-cards="c1"] .product-card .c-price{color:#fff}
html[data-cards="c1"] .product-card .c-foot{border-top:none;padding-top:.4rem}
/* c2 — horizontal list: image left, info right */
html[data-cards="c2"] .products-grid{grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:1rem}
html[data-cards="c2"] .product-card{flex-direction:row;align-items:stretch}
html[data-cards="c2"] .product-card .c-img{width:40%;flex:0 0 40%;aspect-ratio:1}
html[data-cards="c2"] .product-card .c-img img,html[data-cards="c2"] .product-card .c-img-link img{object-fit:cover;padding:0}
html[data-cards="c2"] .product-card .c-body{flex:1;justify-content:center}
/* c3 — big gallery: tall photo, centered minimal text, no chrome */
html[data-cards="c3"] .products-grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1.6rem}
html[data-cards="c3"] .product-card{border:none;box-shadow:none;background:transparent;border-radius:0;overflow:visible}
html[data-cards="c3"] .product-card .c-img{aspect-ratio:4/5;border-radius:var(--r-lg);overflow:hidden}
html[data-cards="c3"] .product-card .c-img img,html[data-cards="c3"] .product-card .c-img-link img{object-fit:cover;padding:0}
html[data-cards="c3"] .product-card .c-body{padding:.7rem .1rem 0;align-items:center;text-align:center}
html[data-cards="c3"] .product-card .c-foot{border-top:none;justify-content:center;gap:.7rem;padding-top:.4rem}
/* c4 — framed boutique: accent top bar, pill price */
html[data-cards="c4"] .product-card{border:1px solid var(--border);border-top:3px solid var(--blue);box-shadow:0 2px 10px rgba(0,0,0,.05)}
html[data-cards="c4"] .product-card .c-price{background:var(--blue-l);color:var(--blue-d);padding:.18rem .6rem;border-radius:999px}
/* c5 — compact dense grid */
html[data-cards="c5"] .products-grid{grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:.6rem}
html[data-cards="c5"] .product-card .c-body{padding:.5rem .55rem;gap:.2rem}
html[data-cards="c5"] .product-card .c-name{font-size:.8rem;-webkit-line-clamp:1}
html[data-cards="c5"] .product-card .c-foot{padding-top:.4rem}

.rail-h1,.compact-h1{font-family:var(--font-display)}

.rail-tag,.compact-tag{flex-basis:100%;width:100%;font-size:.85rem;color:var(--muted);margin-top:-.15rem}

.logo-img{height:42px;max-width:180px;object-fit:contain;display:block}
