/* ── 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-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);
}

html { font-size: 16px; scroll-behavior: smooth; -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: rgba(255,255,255,.95);
  backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.hd-wrap {
  max-width: 1280px; margin: 0 auto;
  padding: 0 1.5rem; height: 64px;
  display: flex; align-items: center; gap: 1rem;
}

.logo { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.logo-icon { color: var(--blue); display: flex; }
.logo-text { font-family: 'Hakuna', 'Mersad', sans-serif; font-size: 1.2rem; font-weight: 700; letter-spacing: 0.01em; color: var(--text); }
.logo-sub { font-size: 0.7rem; color: var(--muted); font-weight: 500; padding: 0.1rem 0.4rem; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; margin-left: 0.25rem; }

.hd-cats { flex: 1; display: flex; gap: 0.125rem; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.hd-cats::-webkit-scrollbar { display: none; }
.nav-cat { padding: 0.3rem 0.7rem; border-radius: 6px; font-size: 0.8rem; 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 svg { position: absolute; left: 0.6rem; color: var(--muted); pointer-events: none; }
.hd-search-input {
  border: 1px solid var(--border); border-radius: 8px;
  padding: 0.4rem 0.75rem 0.4rem 2rem;
  font-size: 0.85rem; color: var(--text); background: var(--bg);
  outline: none; width: 160px; transition: border-color .15s, width .2s, background .15s;
}
.hd-search-input:focus { border-color: var(--blue); background: #fff; width: 200px; }

.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 ────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #1d4ed8 100%);
  color: #fff; padding: 4rem 1.5rem 3rem;
}
.hero-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.hero-text { flex: 1; min-width: 280px; }
.hero-eyebrow { font-family: 'Elene', 'Mersad', sans-serif; font-size: 1rem; font-weight: 400; letter-spacing: .02em; color: #93c5fd; margin-bottom: 0.75rem; }
.hero-h1 { font-family: 'Dachi', 'Mersad', sans-serif; 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: 1.75rem; line-height: 1.7; font-weight: 400; }

.hero-search { display: flex; gap: 0; max-width: 440px; }
.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;
}
.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;
}
.hero-search-btn:hover { background: var(--blue-d); }

.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: 'Dachi', 'Mersad', sans-serif; font-size: 2rem; font-weight: 700; line-height: 1; }
.stat-lbl { display: block; font-size: 0.75rem; color: #93c5fd; 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; }
.section-hd { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.section-title { font-family: 'Dachi', 'Mersad', sans-serif; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.title-accent { margin-right: 0.25rem; }
.section-count { font-size: 0.78rem; font-weight: 600; background: #f1f5f9; color: var(--text2); border-radius: 99px; padding: 0.15rem 0.5rem; vertical-align: middle; }

/* ── Sort bar ────────────────────────────────────────────────── */
.sort-bar { display: flex; align-items: center; gap: 0.35rem; margin-left: auto; flex-wrap: wrap; }
.sort-label { font-size: 0.78rem; color: var(--muted); }
.sort-opt { font-size: 0.75rem; padding: 0.2rem 0.6rem; border-radius: 99px; border: 1px solid var(--border); color: var(--text2); background: var(--surface); white-space: nowrap; transition: all .12s; }
.sort-opt:hover { background: var(--bg); color: var(--text); }
.sort-opt.active { background: var(--blue); border-color: var(--blue); color: #fff; }

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

/* ── 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 .2s, transform .2s;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-card.is-out { opacity: .7; }

.c-img-link { display: block; }
.c-img { aspect-ratio: 1; background: var(--bg); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.c-img img { width: 100%; height: 100%; object-fit: contain; padding: 0.75rem; transition: transform .25s; }
.product-card:hover .c-img img { transform: scale(1.06); }
.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: 'Dachi', 'Mersad', sans-serif; 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; }

/* ── 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: 84px; }
.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 #bfdbfe;
  border-radius: 99px; padding: 0.2rem 0.75rem;
}
.dp-title { font-family: 'Dachi', 'Mersad', sans-serif; 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: 'Dachi', 'Mersad', sans-serif; font-size: 2rem; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.dp-sale-price { font-family: 'Dachi', 'Mersad', sans-serif; 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: var(--blue); color: #fff; font-size: 1rem; font-weight: 700;
  transition: background .15s;
}
.btn-add-main:hover { background: var(--blue-d); }
.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: 'Dachi', 'Mersad', sans-serif; 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: 'Dachi', 'Mersad', sans-serif; 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: var(--blue); color: #fff; font-size: 1rem; font-weight: 700;
  transition: background .15s;
}
.btn-checkout:hover { background: var(--blue-d); }

/* ── 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(37,99,235,.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: 'Dachi', 'Mersad', sans-serif; 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 { background: var(--text); color: #94a3b8; margin-top: auto; }
.ft-wrap { max-width: 1280px; margin: 0 auto; padding: 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ft-brand { display: flex; flex-direction: column; gap: 0.2rem; }
.ft-name { font-size: 0.95rem; font-weight: 700; color: #e2e8f0; }
.ft-tagline { font-size: 0.78rem; }
.ft-ephoto { display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: #60a5fa; transition: color .12s; }
.ft-ephoto:hover { color: #93c5fd; }

/* ── Dark / Light mode ───────────────────────────────────────── */
[data-theme="dark"] {
  --blue:    #3b82f6;
  --blue-d:  #2563eb;
  --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: rgba(7,13,26,.96); border-bottom-color: var(--border); }
[data-theme="dark"] .hero { background: linear-gradient(135deg, #010409 0%, #0c1828 55%, #1a3a6e 100%); }
[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"] .hd-search-input:focus { background: #1e293b; }
[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-opt { background: var(--surface); border-color: var(--border); color: var(--text2); }
[data-theme="dark"] .sort-opt:hover { background: #1e293b; }
[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 { background: #1e293b; border-color: var(--border); }
[data-theme="dark"] .section-count { background: #1e293b; color: var(--text2); }

/* ── 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; gap: 0.125rem; }
.hd-nav-link {
  padding: 0.3rem 0.75rem; border-radius: 6px;
  font-size: 0.85rem; 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); }

/* ── 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-sep { height: 1px; background: var(--border); margin: 0.4rem 0; }

/* ── Footer improvements ─────────────────────────────────────── */
.ft-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 2rem; flex-wrap: wrap;
  margin-bottom: 1.25rem; padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ft-links { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; }
.ft-link { font-size: 0.875rem; color: #94a3b8; transition: color .12s; }
.ft-link:hover { color: #e2e8f0; }
.ft-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ft-copy { font-size: 0.78rem; color: #475569; }
.ft-tagline { font-size: 0.78rem; color: #64748b; margin-top: 0.2rem; }

/* ── About page ──────────────────────────────────────────────── */
.about-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #1d4ed8 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: #93c5fd;
  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: 'Dachi', 'Mersad', sans-serif;
  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-icon { font-size: 2.25rem; margin-bottom: 0.875rem; display: block; }
.feature-title { font-family: 'Dachi', 'Mersad', sans-serif; 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: 'Dachi', 'Mersad', sans-serif;
  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: 'Dachi', 'Mersad', sans-serif;
  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: 'Dachi', 'Mersad', sans-serif;
  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; }
}

@media (max-width: 768px) {
  .hero { padding: 2.5rem 1.25rem 2rem; }
  .hero-h1 { font-size: 2.5rem; }
  .dp-layout { grid-template-columns: 1fr; }
  .dp-gallery { position: static; }
  .hd-cats { display: none; }
  .hd-nav-links { display: none; }
  .hd-search { display: none; }
  .logo-sub { display: none; }
  .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; }
}

@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-wrap { padding: 0 1rem; gap: 0.5rem; }
  .hero-stats { gap: 0.5rem; }
  .stat-card { padding: 0.75rem 1rem; }
  .stat-num { font-size: 1.5rem; }
  .about-features { grid-template-columns: 1fr 1fr; }
  .ft-top { flex-direction: column; gap: 1.25rem; }
  .ft-links { gap: 0.875rem; }
}

/* ── 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(--accent); 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(--text-muted);
  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(--surface-2); color: var(--text); }
a.nav-dd-item { color: var(--text-muted); }
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(--text-muted); text-decoration: none; gap: 0.5rem; }
.nav-dd-item.has-sub:hover > a { background: var(--surface-2); 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(--text-muted);
  text-decoration: none; transition: background 0.1s;
}
.nav-sub-item:hover { background: var(--surface-2); color: var(--text); }

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

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