/* ===========================================================
   MAHO Retail — Storefront Website
   Brand palette matches the MAHO Enterprise management app
   (black + gold luxury, cream surfaces, Persian / RTL).
   =========================================================== */

:root {
  --black: #111111;
  --black-soft: #1c1c1c;
  --gold: #c8a35f;
  --gold-deep: #a9843f;
  --gold-soft: #e8d3a3;
  --cream: #fbf8f1;
  --paper: #ffffff;
  --ink: #23201a;
  --muted: #7a7368;
  --line: #ece5d6;
  --green: #2e7d32;
  --red: #c62828;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 10px rgba(17, 17, 17, .06);
  --shadow: 0 12px 34px rgba(17, 17, 17, .10);
  --shadow-gold: 0 14px 34px rgba(200, 163, 95, .32);

  --container: 1200px;
  --header-h: 74px;

  --font: "Vazirmatn", Tahoma, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 14px); }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .4em; font-weight: 800; letter-spacing: -.2px; }

p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }

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

.accent { color: var(--gold-deep); }

/* ---------- Icons (inline SVG sprite) ---------- */
.ic {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: middle;
}
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  --_bg: var(--gold);
  --_fg: #1a1509;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: var(--_bg);
  color: var(--_fg);
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.btn:active { transform: translateY(0); }
.btn-ghost { --_bg: transparent; --_fg: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .10); box-shadow: none; }
.btn-outline { --_bg: transparent; --_fg: var(--ink); border-color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: #1a1509; box-shadow: var(--shadow-gold); }
.btn-lg { padding: 15px 30px; font-size: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(17, 17, 17, .78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background .25s ease, box-shadow .25s ease, height .25s ease;
}
.site-header.scrolled { background: rgba(17, 17, 17, .96); box-shadow: 0 10px 30px rgba(0, 0, 0, .28); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; }

.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand .logo {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--gold); color: var(--gold);
  font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 700;
  background: radial-gradient(circle at 30% 25%, rgba(200, 163, 95, .28), transparent 70%);
}
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand .brand-name { font-weight: 800; font-size: 20px; letter-spacing: .5px; }
.brand .brand-sub { font-size: 11px; color: var(--gold-soft); letter-spacing: 2px; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  color: #e9e9e9; padding: 9px 13px; border-radius: 10px; font-size: 15px; font-weight: 600;
  position: relative; transition: color .18s ease, background .18s ease;
}
.main-nav a::after {
  content: ""; position: absolute; inset-inline: 13px; bottom: 5px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: center; transition: transform .22s ease;
}
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-btn {
  background: transparent; border: 1.5px solid rgba(255, 255, 255, .35); color: #fff;
  font-family: inherit; font-weight: 700; font-size: 14px; padding: 8px 14px;
  border-radius: 999px; cursor: pointer; transition: all .18s ease;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.lang-btn:hover { background: rgba(255, 255, 255, .1); border-color: var(--gold); color: var(--gold-soft); }
.lang-btn .ic { width: 16px; height: 16px; }

/* Cart button + badge */
.cart-btn { position: relative; background: transparent; border: 1.5px solid rgba(255, 255, 255, .35); color: #fff; border-radius: 999px; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; transition: .18s; }
.cart-btn:hover { border-color: var(--gold); color: var(--gold-soft); }
.cart-btn .ic { width: 20px; height: 20px; }
.cart-count { position: absolute; top: -6px; inset-inline-start: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: #1a1509; font-size: 12px; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.cart-count.empty { display: none; }
.cat-card { cursor: pointer; }

/* Overlays / modals */
.ov { position: fixed; inset: 0; background: #00000088; z-index: 150; display: none; opacity: 0; transition: opacity .25s; }
.ov.show { display: block; opacity: 1; }
.ov-body { position: absolute; }

/* Quick view (centered modal) */
.qv-modal { position: absolute; inset-inline: 0; top: 50%; margin-inline: auto; transform: translateY(-50%) scale(.96); transition: transform .25s; max-width: 620px; width: calc(100% - 32px); background: #fff; border-radius: 20px; overflow: hidden; max-height: 92vh; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.ov.show .qv-modal { transform: translateY(-50%) scale(1); }
.qv-media { position: relative; aspect-ratio: 16/10; background: linear-gradient(150deg, var(--black-soft), #2b2419); display: grid; place-items: center; color: #fff; }
.qv-media .ic { width: 88px; height: 88px; stroke-width: 1.2; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.qv-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qv-body { padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.qv-cat { color: var(--gold-deep); font-weight: 700; font-size: 14px; }
.qv-name { font-size: 23px; margin: 0; }
.qv-price { font-size: 22px; font-weight: 800; margin-top: 4px; }
.qv-price del { color: var(--muted); font-size: 15px; margin-inline-start: 8px; font-weight: 600; }
.qv-row { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 42px; height: 44px; border: 0; background: var(--cream); font-size: 20px; cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--gold); color: #1a1509; }
.qty input { width: 54px; height: 44px; border: 0; text-align: center; font-family: inherit; font-weight: 700; font-size: 16px; background: #fff; }
.qty input:focus { outline: none; }
.modal-x { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #111; cursor: pointer; font-size: 18px; box-shadow: var(--shadow-sm); }

/* Cart drawer */
.cart-drawer { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(430px, 100%); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s ease; }
[dir="rtl"] .cart-drawer { transform: translateX(-100%); }
.ov.show .cart-drawer { transform: none; }
.cart-head { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.cart-head h3 { margin: 0; font-size: 20px; }
.cart-close { background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--muted); line-height: 1; }
.cart-items { flex: 1; overflow: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.cart-empty { color: var(--muted); text-align: center; margin: 48px 12px; }
.cart-item { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.ci-media { width: 58px; height: 58px; border-radius: 10px; overflow: hidden; flex: none; display: grid; place-items: center; background: linear-gradient(150deg, var(--black-soft), #2b2419); color: #fff; position: relative; }
.ci-media .ic { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ci-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ci-info { flex: 1; min-width: 0; }
.ci-info b { display: block; font-size: 15px; }
.ci-price { color: var(--muted); font-size: 13px; }
.ci-remove { background: none; border: 0; color: var(--red); cursor: pointer; font-size: 13px; font-weight: 700; padding: 2px 0; }
.qty.sm button { width: 30px; height: 32px; font-size: 16px; }
.qty.sm input { width: 34px; height: 32px; font-size: 14px; }
.cart-foot { border-top: 1px solid var(--line); padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.cart-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 18px; }
.cart-foot .btn { justify-content: center; }
.cart-screen { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.cart-screen[hidden] { display: none; }
.ci-variant { color: var(--muted); font-size: 12.5px; }

/* Quick-view gallery */
.qv-thumbs { display: flex; gap: 8px; padding: 10px 16px 0; flex-wrap: wrap; }
.qv-thumbs img { width: 54px; height: 54px; object-fit: cover; border-radius: 9px; border: 2px solid transparent; cursor: pointer; }
.qv-thumbs img.active { border-color: var(--gold); }

/* Option chips (size / color) */
.qv-opt { margin-top: 12px; }
.qv-opt-label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 7px; color: var(--muted); }
.opt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-chip { border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 15px; font-family: inherit; font-weight: 700; font-size: 14px; cursor: pointer; transition: .15s; }
.opt-chip:hover { border-color: var(--gold); }
.opt-chip.active { background: var(--black); color: #fff; border-color: var(--black); }
.qv-msg { min-height: 18px; margin: 10px 0 0; font-size: 13.5px; font-weight: 700; color: var(--red); }
.qv-msg.ok { color: var(--green); }

/* Checkout form + tabs + account */
.link-back { background: none; border: 0; color: var(--gold-deep); font-family: inherit; font-weight: 700; font-size: 14px; cursor: pointer; padding: 0 0 8px; }
.checkout-form .field, .cart-items .field { margin-bottom: 12px; }
.cart-items .field label, .qv-body .field label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 5px; }
.cart-items .field input, .qv-body .field input { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 14px; }
.cart-items .field input:focus, .qv-body .field input:focus { outline: none; border-color: var(--gold); }
.qv-body .field select { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 14px; background: #fff; }
.qv-body .field select:focus { outline: none; border-color: var(--gold); }
.qv-body h4 { font-size: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.pay-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; margin-bottom: 8px; font-size: 13.5px; }
.pay-item .pi-num { color: var(--muted); }
.pay-item button { background: none; border: 0; color: var(--red); cursor: pointer; font-weight: 700; font-size: 13px; }
.pay-none { color: var(--muted); font-size: 13px; margin: 4px 0 10px; }
.tabs { display: flex; gap: 6px; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 16px; }
.tab { flex: 1; border: 0; background: transparent; font-family: inherit; font-weight: 700; font-size: 14px; padding: 9px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.tab.active { background: var(--black); color: #fff; }
.acct-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--gold); color: #1a1509; display: grid; place-items: center; font-weight: 800; font-size: 26px; margin: 6px auto 0; }

/* Payment methods */
.pay-methods { display: flex; flex-direction: column; gap: 8px; }
.pay-method { text-align: start; border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 12px; padding: 12px 14px; font-family: inherit; font-weight: 700; font-size: 14px; cursor: pointer; transition: .15s; position: relative; }
.pay-method:hover { border-color: var(--gold); }
.pay-method.active { border-color: var(--black); background: #fbf8f1; box-shadow: inset 0 0 0 1px var(--black); }
.pay-info { margin-top: 10px; background: var(--cream); border: 1px dashed var(--gold); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; line-height: 1.9; }
.pay-info b { color: var(--ink); }

/* Orders list */
.order-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.order-card .order-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.order-card .order-status { font-weight: 800; color: var(--gold-deep); }
.order-card ul { margin: 8px 0; padding-inline-start: 18px; font-size: 14px; }
.order-card .order-total { font-weight: 800; }
.orders-empty { color: var(--muted); text-align: center; margin: 30px 0; }
.order-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-danger-sm { border: 1.5px solid #f4c9c9; background: #fdecec; color: var(--red); border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer; }
.btn-danger-sm:hover { background: #f9dada; }
.bc-wrap { margin-top: 6px; }
.bc-code { display: block; font-size: 11px; color: var(--muted); }
.barcode { max-width: 180px; height: auto; background: #fff; border-radius: 6px; }

/* Fix quick-view zoom + make modals scrollable (also fixes account scroll) */
.qv-modal { overflow-y: auto; }
.qv-media { aspect-ratio: auto; height: 300px; }

/* Stock indicators */
.product-card.out { opacity: .9; }
.product-media .out-overlay { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: #0007; color: #fff; font-weight: 800; font-size: 16px; letter-spacing: .5px; }
.stock-note { font-size: 12.5px; font-weight: 700; margin-top: 2px; }
.stock-note.low { color: var(--gold-deep); }
.stock-note.out { color: var(--red); }
.icon-btn:disabled { opacity: .4; cursor: not-allowed; }
#payCardExtra[hidden] { display: none; }
#co_km { border: 1.5px solid var(--line); border-radius: 10px; font-family: inherit; }
.qv-opt-label { display: block; font-weight: 700; font-size: 13px; margin: 4px 0 6px; color: var(--muted); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: rgba(255, 255, 255, .08); cursor: pointer; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: #fff; margin-inline: auto; border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span::before { transform: translateY(-7px); }
.nav-toggle span::after { transform: translateY(5px); }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: rotate(-45deg) translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  color: #fff;
  background:
    radial-gradient(1100px 620px at 82% -8%, rgba(200, 163, 95, .30), transparent 60%),
    radial-gradient(900px 520px at 5% 110%, rgba(200, 163, 95, .16), transparent 60%),
    linear-gradient(155deg, #0e0e0e 0%, #1a1712 55%, #221c12 100%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(700px 500px at 75% 20%, #000, transparent 75%);
          mask-image: radial-gradient(700px 500px at 75% 20%, #000, transparent 75%);
  opacity: .5; pointer-events: none;
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 20px;
  background: rgba(200, 163, 95, .14); border: 1px solid rgba(200, 163, 95, .4);
  color: var(--gold-soft); font-size: 13px; font-weight: 700; letter-spacing: .5px;
}
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); margin-bottom: 18px; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--gold-soft), var(--gold) 45%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: clamp(16px, 2vw, 19px); color: #d9d4c8; max-width: 560px; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: flex; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-size: 30px; color: #fff; }
.hero-stats .stat span { font-size: 13px; color: var(--gold-soft); letter-spacing: .5px; }

/* Hero visual: stacked "cards" collage built purely with CSS */
.hero-visual { position: relative; height: 460px; }
.hero-card {
  position: absolute; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(145deg, #26211a, #14110c);
  border: 1px solid rgba(200, 163, 95, .28);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .45);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px; color: #fff;
}
.hero-card .tag { align-self: flex-start; background: var(--gold); color: #1a1509; font-weight: 800; font-size: 12px; padding: 4px 10px; border-radius: 999px; margin-bottom: auto; }
.hero-card h4 { margin: 0; font-size: 17px; }
.hero-card span { color: var(--gold-soft); font-size: 13px; }
.hero-card::before {
  content: ""; position: absolute; inset: 0; z-index: -0;
  background: radial-gradient(120% 120% at 20% 0%, rgba(200, 163, 95, .22), transparent 55%);
}
.hero-card.c1 { inset: 0 0 auto auto; width: 62%; height: 58%; transform: rotate(-3deg); }
.hero-card.c2 { inset: auto auto 0 0; width: 58%; height: 62%; transform: rotate(2.5deg); }
.hero-card.c3 { inset: 34% 6% auto auto; width: 46%; height: 40%; transform: rotate(6deg); z-index: 3; }
.float { animation: float 6s ease-in-out infinite; }
.float.d1 { animation-delay: -2s; }
.float.d2 { animation-delay: -4s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

/* ---------- Section shell ---------- */
.section { padding: 92px 0; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 52px; }
.section-head .kicker {
  display: inline-block; color: var(--gold-deep); font-weight: 800; letter-spacing: 3px;
  font-size: 13px; margin-bottom: 12px; text-transform: uppercase;
}
.section-head h2 { font-size: clamp(26px, 3.6vw, 40px); }
.section-head p { color: var(--muted); font-size: 17px; }
.bg-paper { background: var(--paper); }

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.cat-card .ico {
  width: 66px; height: 66px; border-radius: 20px; margin: 0 auto 16px;
  display: grid; place-items: center; color: var(--gold-deep);
  background: linear-gradient(150deg, #fff, var(--cream)); border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(200, 163, 95, .12);
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.cat-card .ico .ic { width: 30px; height: 30px; stroke-width: 1.6; }
.cat-card:hover .ico { color: #fff; background: linear-gradient(150deg, var(--gold), var(--gold-deep)); transform: translateY(-2px); }
.cat-card h3 { font-size: 18px; margin-bottom: 4px; }
.cat-card p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---------- Products ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.chip {
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  padding: 9px 18px; border-radius: 999px; font-family: inherit; font-weight: 700; font-size: 14px;
  cursor: pointer; transition: all .18s ease;
}
.chip:hover { border-color: var(--gold); }
.chip.active { background: var(--black); color: #fff; border-color: var(--black); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, opacity .25s ease;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card.is-hidden { display: none; }
.product-media {
  position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center;
  color: #fff; overflow: hidden;
  background: linear-gradient(150deg, var(--black-soft), #2b2419);
}
.product-media .ic { width: 66px; height: 66px; stroke-width: 1.3; position: relative; z-index: 1; color: #fff; transition: transform .35s ease; }
.product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.product-card:hover .product-media img { transform: scale(1.05); transition: transform .4s ease; }
/* Quick-view shows the FULL image at its natural aspect (never cropped, any screen) */
.qv-media.has-img { height: 42vh; min-height: 220px; max-height: 42vh; background: #f4efe6; display: block; overflow: hidden; flex: 0 0 auto; }
.qv-media.has-img img { position: static; width: 100%; height: 100%; max-height: none; object-fit: contain; display: block; margin: 0; }
.product-card:hover .product-media .ic { transform: scale(1.08) rotate(-3deg); }
.product-media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 80% 0%, rgba(255, 255, 255, .16), transparent 60%); }
/* Per-category tinted tiles */
.product-media.m-clothing  { background: linear-gradient(150deg, #2b1a22, #4a2a38); }
.product-media.m-scarf     { background: linear-gradient(150deg, #142428, #1f3d44); }
.product-media.m-bagshoes  { background: linear-gradient(150deg, #241c14, #3f2f1f); }
.product-media.m-beauty    { background: linear-gradient(150deg, #241a2b, #3d2a4a); }
.product-media.m-accessory { background: linear-gradient(150deg, #221d12, #3a2f18); }
.product-badge {
  position: absolute; inset-block-start: 12px; inset-inline-start: 12px; z-index: 2;
  font-size: 12px; font-weight: 800; padding: 5px 11px; border-radius: 999px;
  background: var(--gold); color: #1a1509;
}
.product-badge.new { background: #fff; color: var(--black); border: 1px solid var(--line); }
.product-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-body .cat { font-size: 12.5px; color: var(--gold-deep); font-weight: 700; }
.product-body h3 { font-size: 17px; margin: 0; }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 12px; }
.price { font-weight: 800; font-size: 18px; }
.price small { color: var(--muted); font-weight: 600; font-size: 12px; }
.price del { color: var(--muted); font-weight: 600; font-size: 13px; margin-inline-start: 6px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--cream); cursor: pointer; display: grid; place-items: center;
  color: var(--ink); transition: all .18s ease;
}
.icon-btn .ic { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--gold); border-color: var(--gold); color: #1a1509; transform: translateY(-1px); }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature {
  padding: 26px; border-radius: var(--radius); background: var(--paper);
  border: 1px solid var(--line);
}
.feature .ico {
  width: 54px; height: 54px; border-radius: 15px; margin-bottom: 14px;
  display: grid; place-items: center; color: var(--gold-deep);
  background: linear-gradient(150deg, var(--cream), #fff); border: 1px solid var(--line);
}
.feature .ico .ic { width: 26px; height: 26px; }
.feature h3 { font-size: 18px; }
.feature p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- Stores ---------- */
.store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.store-grid.single { grid-template-columns: minmax(0, 460px); justify-content: center; }
.store-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.store-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.store-card .store-top { display: flex; align-items: center; justify-content: space-between; }
.store-card h3 { font-size: 20px; margin: 0; }
.badge-open { font-size: 12px; font-weight: 800; color: var(--green); background: #e7f5ea; padding: 4px 10px; border-radius: 999px; }
.store-row { display: flex; gap: 10px; color: var(--ink); font-size: 14.5px; align-items: flex-start; }
.store-row .ico { color: var(--gold-deep); flex: none; display: grid; place-items: center; margin-top: 2px; }
.store-row .ico .ic { width: 19px; height: 19px; }
.store-card .btn { margin-top: 8px; align-self: flex-start; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi {
  background: linear-gradient(160deg, #17140f, #221c12); color: #f3efe6;
  border: 1px solid rgba(200, 163, 95, .22); border-radius: var(--radius); padding: 26px;
}
.testi .stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 10px; }
.testi p { color: #e7e1d4; font-size: 15px; }
.testi .who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.testi .avatar {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: #1a1509; font-weight: 800;
}
.testi .who b { display: block; font-size: 15px; }
.testi .who span { font-size: 12.5px; color: var(--gold-soft); }

/* ---------- CTA / Newsletter ---------- */
.cta-band {
  background:
    radial-gradient(700px 400px at 85% 10%, rgba(200, 163, 95, .3), transparent 60%),
    linear-gradient(140deg, #0f0f0f, #201a11);
  color: #fff; border-radius: var(--radius-lg); padding: 54px; text-align: center;
  border: 1px solid rgba(200, 163, 95, .25);
}
.cta-band h2 { font-size: clamp(24px, 3.4vw, 36px); }
.cta-band p { color: #d9d4c8; max-width: 520px; margin: 0 auto 26px; }
.newsletter { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.newsletter input {
  flex: 1; padding: 14px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .06); color: #fff; font-family: inherit; font-size: 15px;
}
.newsletter input::placeholder { color: #b9b3a6; }
.newsletter input:focus { outline: none; border-color: var(--gold); }
.form-note { margin-top: 14px; font-size: 14px; min-height: 20px; }
.form-note.ok { color: #8fe0a1; }
.form-note.err { color: #ff9d9d; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #cfc9bd; padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 34px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer p { font-size: 14px; color: #a8a294; }
.footer-col h4 { color: #fff; font-size: 15px; letter-spacing: 1px; margin-bottom: 14px; }
.footer-col p .ic { width: 17px; height: 17px; color: var(--gold); margin-inline-start: 7px; vertical-align: -3px; }
.footer-col a { display: block; padding: 5px 0; color: #bdb7a9; font-size: 14px; transition: color .15s ease; }
.footer-col a:hover { color: var(--gold); }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .07); color: #fff; transition: all .18s ease;
}
.socials a .ic { width: 19px; height: 19px; }
.socials a:hover { background: var(--gold); color: #1a1509; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #8f8a7d;
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; inset-block-end: 24px; inset-inline-start: 24px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: var(--gold); color: #1a1509; box-shadow: var(--shadow-gold);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: all .25s ease;
}
.to-top .ic { width: 22px; height: 22px; stroke-width: 2.2; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; inset-block-end: 26px; inset-inline-end: 26px; z-index: 200;
  background: var(--black); color: #fff; padding: 14px 20px; border-radius: 14px;
  box-shadow: var(--shadow); border: 1px solid rgba(200, 163, 95, .4);
  transform: translateY(120%); opacity: 0; transition: all .3s cubic-bezier(.2, .8, .2, 1);
  display: flex; align-items: center; gap: 10px; font-weight: 600;
}
.toast.show { transform: none; opacity: 1; }
.toast .dot { color: var(--gold); font-size: 18px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .cat-grid, .product-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .store-grid, .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: grid; place-items: center; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(17, 17, 17, .98); padding: 10px 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    transform: translateY(-120%); transition: transform .3s ease; z-index: 99;
  }
  body.nav-open .main-nav { transform: none; }
  .main-nav a { padding: 14px 8px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .main-nav a::after { display: none; }
  .header-actions .btn:not(.nav-toggle) { display: none; }
  .site-header .container { gap: 8px; }
  .header-actions { gap: 6px; }
  .brand .brand-sub { display: none; }
  .brand .brand-name { font-size: 18px; }
  .cart-btn { width: 38px; height: 38px; }
  .lang-btn { padding: 8px 10px; }
  #langLabel { display: none; }
  .section { padding: 66px 0; }
  .cta-band { padding: 34px 22px; }
  .newsletter { flex-direction: column; }
  .newsletter .btn { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
}

@media (max-width: 460px) {
  .cat-grid, .product-grid, .feature-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* Clickable contact + copyable numbers */
.contact-link { color: inherit; text-decoration: none; transition: color .15s; }
.contact-link:hover { text-decoration: underline; }
.store-row a.contact-link:hover { color: var(--gold-deep); }
.copy-num { color: var(--gold-deep); font-weight: 700; text-decoration: underline; cursor: pointer; }
.copy-num:hover { color: #8a6a22; }

/* Customer reviews */
.review-cta { text-align: center; margin-top: 26px; }
.review-cta #reviewForm { max-width: 520px; margin: 16px auto 0; text-align: start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.review-cta textarea { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 14px; resize: vertical; }
.review-cta textarea:focus { outline: none; border-color: var(--gold); }
.rating-input { display: inline-flex; gap: 4px; direction: ltr; }
.rating-input .star { background: none; border: none; font-size: 30px; line-height: 1; cursor: pointer; color: #d9d2c2; padding: 0 2px; transition: color .12s, transform .12s; }
.rating-input .star:hover { transform: scale(1.12); }
.rating-input .star.on { color: var(--gold); }
.reviews-empty { text-align: center; color: var(--muted); padding: 18px 0; }
