@font-face {
  font-family: 'Vazirmatn';
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-ExtraBold.woff2') format('woff2');
  font-weight: 800; font-display: swap;
}

/* پالت برگرفته از لوگوی نگین: مشکی، طلایی و زرشکیِ پرده */
:root {
  --ink: #121215;
  --ink-2: #1d1d22;
  --gold: #c9a227;
  --gold-2: #e7c96a;
  --gold-dim: #8f7318;
  --wine: #7e2027;
  --ivory: #f3ede1;
  --paper: #fcfaf6;
  --line: #e2d9c6;
  --text: #24242a;
  --muted: #74707e;
  --navy: #1e2a52;
  --navy-soft: #33436f;
  --ok: #2f7a5b;
  --danger: #b23b3b;

  --r-lg: 20px;
  --r-md: 13px;
  --shadow: 0 18px 40px -26px rgba(18, 18, 21, .6);
  --maxw: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  font-family: 'Vazirmatn', 'IRANSans', 'Segoe UI', Tahoma, sans-serif;
  background: var(--paper);
  color: var(--text);
  line-height: 1.85;
  font-size: 15px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }

/* ---------- سربرگ ---------- */
.topbar { background: var(--ink); color: #cfc6ad; font-size: 12.5px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-block: 8px; flex-wrap: wrap; }
.topbar a { color: var(--gold-2); }
.topbar .phones { display: flex; gap: 14px; flex-wrap: wrap; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 250, 246, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; padding-block: 12px; }

.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; letter-spacing: -.4px; }
.brand img { width: 48px; height: 48px; border-radius: 50%; flex: none; }
.brand small { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: -7px; }

.nav { display: flex; gap: 3px; margin-inline-start: auto; }
.nav a {
  padding: 8px 12px; border-radius: 999px; font-size: 14.5px; color: var(--muted);
  transition: background .18s, color .18s;
}
.nav a:hover, .nav a.active { background: var(--ivory); color: var(--ink); }
.nav .nav-bm { display: none; align-items: center; gap: 8px; color: var(--gold-dim); font-weight: 700; }
.nav .nav-bm b {
  width: 27px; height: 27px; border-radius: 8px; background: var(--ink); color: var(--gold-2);
  display: grid; place-items: center; font-size: 11.5px; letter-spacing: .5px;
}
/* روی دسکتاپ دسته‌ها مستقیم در نوار می‌آیند */
.nav .nav-cats { display: contents; }
.nav .nav-group { display: none; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; cursor: pointer;
  transition: border-color .18s, transform .18s;
}
.icon-btn:hover { border-color: var(--gold); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; stroke: var(--ink); }
.badge {
  position: absolute; inset-block-start: -6px; inset-inline-start: -6px;
  min-width: 20px; height: 20px; padding-inline: 5px;
  background: var(--wine); color: #fff; border-radius: 999px;
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.menu-toggle { display: none; }
.nav a.only-mobile { display: none; }

.searchbar { border-bottom: 1px solid var(--line); background: #fff; display: none; }
.searchbar.open { display: block; }
.searchbar form { display: flex; gap: 10px; padding-block: 14px; }
.searchbar input { flex: 1; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }

/* ---------- دکمه‌ها ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--r-md); border: 1px solid transparent;
  background: var(--ink); color: var(--gold-2); font-weight: 700; font-size: 14.5px;
  cursor: pointer; transition: transform .16s, box-shadow .16s, background .16s;
}
.btn:hover { background: #000; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: none; }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1a1608; }
.btn-gold:hover { background: linear-gradient(180deg, #f0d582, var(--gold)); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--ivory); box-shadow: none; }
.btn-sm { padding: 8px 15px; font-size: 13px; border-radius: 10px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- بخش‌ها ---------- */
.section { padding-block: 66px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.eyebrow { font-size: 12px; letter-spacing: 3px; color: var(--gold-dim); font-weight: 700; margin-bottom: 6px; }
.section-head h2 { margin: 0; font-size: 29px; font-weight: 800; letter-spacing: -.6px; }
.section-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- هیرو ---------- */
.hero {
  background: radial-gradient(120% 100% at 80% 0%, #26262c 0%, var(--ink) 55%);
  color: #ece5d5; overflow: hidden; position: relative;
}
.hero::before {
  content: ''; position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; padding-block: 74px; }
.hero .eyebrow { color: var(--gold); }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.cat-chips a {
  padding: 9px 17px; border-radius: 999px; font-size: 14px; font-weight: 700;
  background: #fff; border: 1px solid var(--navy-soft); color: var(--navy);
  transition: background .16s, border-color .16s, transform .16s, color .16s;
}
.cat-chips a:hover, .cat-chips a:focus-visible {
  background: var(--navy); border-color: var(--navy); color: #fff; transform: translateY(-2px);
}

.hero h1 {
  font-size: clamp(31px, 5vw, 50px); line-height: 1.35; margin: 0 0 18px;
  font-weight: 800; letter-spacing: -1.1px; color: #fff;
}
.hero h1 em { font-style: normal; color: var(--gold-2); }
.hero p { font-size: 16.5px; color: #c9c2b3; margin: 0 0 28px; max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 30px; margin-top: 36px; padding-top: 22px; border-top: 1px dashed rgba(201, 162, 39, .45); }
.hero-stats b { display: block; font-size: 22px; font-weight: 800; color: var(--gold-2); }
.hero-stats span { font-size: 12.5px; color: #a29b8d; }

/* امضای طرح: لایه‌های پرده و رختخواب که هنگام بارگذاری روی هم می‌نشینند */
.bedstack { position: relative; height: 330px; }
.layer {
  position: absolute; inset-inline: 0; height: 74px; border-radius: 18px;
  box-shadow: 0 16px 34px -20px rgba(0, 0, 0, .9);
  animation: settle .8s cubic-bezier(.2,.8,.25,1) backwards;
}
.layer::after { content: ''; position: absolute; inset: 9px; border-radius: 11px; border: 1.5px dashed rgba(255,255,255,.22); }
.layer-1 { bottom: 0; background: #2a2a31; animation-delay: .05s; }
.layer-2 { bottom: 60px; background: var(--wine); inset-inline-start: 14px; animation-delay: .18s; }
.layer-3 { bottom: 120px; background: #3b3b44; inset-inline-start: 28px; animation-delay: .31s; }
.layer-4 { bottom: 180px; background: linear-gradient(180deg, var(--gold-2), var(--gold)); inset-inline-start: 42px; animation-delay: .44s; }
.layer-5 {
  bottom: 240px; height: 62px; background: var(--ivory); inset-inline-start: 56px;
  animation-delay: .57s; display: grid; place-items: center;
  font-weight: 700; color: var(--ink); font-size: 14px;
}
.layer-5::after { border-color: rgba(18,18,21,.18); }
@keyframes settle {
  from { transform: translateY(-26px) scale(.97); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* ---------- نوار اعتماد ---------- */
.trust { background: var(--ivory); border-bottom: 1px solid var(--line); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding-block: 24px; }
.trust div { display: flex; gap: 11px; align-items: center; font-size: 13.5px; }
.trust svg { width: 22px; height: 22px; stroke: var(--gold-dim); flex: none; }

/* ---------- دسته‌بندی ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-card {
  position: relative; border-radius: var(--r-lg); display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.cat-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow); }

.cat-card-media { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--ivory); }
.cat-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat-card:hover .cat-card-media img { transform: scale(1.05); }

.cat-card-body { display: block; padding: 16px 18px 18px; }
/* دسته بدون عکس: همان کارت ساده با دوخت تزئینی */
.cat-card.no-photo .cat-card-body { padding: 26px 22px; }
.cat-card.no-photo::before {
  content: ''; position: absolute; inset: 7px; border-radius: 15px;
  border: 1px dashed var(--line); pointer-events: none;
}
.cat-card h3 { margin: 0 0 4px; font-size: 17px; font-weight: 700; }
.cat-card p { margin: 0; font-size: 13px; color: var(--muted); }
.cat-card .go { display: block; margin-top: 12px; font-size: 13px; color: var(--gold-dim); font-weight: 700; }

/* ---------- کارت محصول ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.pcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold); }
.pcard-media { position: relative; aspect-ratio: 4/5; background: var(--ivory); overflow: hidden; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pcard:hover .pcard-media img { transform: scale(1.04); }
.off-tag {
  position: absolute; inset-block-start: 12px; inset-inline-start: 12px;
  background: var(--wine); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
}
.pcard-body { padding: 16px 17px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard-cat { font-size: 11.5px; color: var(--gold-dim); letter-spacing: 1px; font-weight: 700; }
.pcard h3 { margin: 0; font-size: 15.5px; font-weight: 700; line-height: 1.6; }
.pcard .desc { font-size: 12.5px; color: var(--muted); margin: 0; }
.pcard-price { margin-top: auto; padding-top: 12px; display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.price-now { font-size: 18px; font-weight: 800; color: var(--ink); }
.price-now small { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.price-old { font-size: 13px; color: #a5a1ac; text-decoration: line-through; }
.price-from { font-size: 11.5px; color: var(--muted); }

/* ---------- صفحه محصول ---------- */
.crumbs { font-size: 12.5px; color: var(--muted); padding-block: 18px; }
.crumbs a:hover { color: var(--gold-dim); }

.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; padding-bottom: 20px; }
.pd > * { min-width: 0; }
.gallery-main { aspect-ratio: 1/1; background: var(--ivory); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs img { width: 74px; height: 74px; object-fit: cover; border-radius: 11px; border: 2px solid transparent; cursor: pointer; transition: border-color .18s; }
.thumbs img.active, .thumbs img:hover { border-color: var(--gold); }

.pd h1 { font-size: 27px; margin: 6px 0 10px; font-weight: 800; letter-spacing: -.6px; }
.pd .meta { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; }
.pd .lead { color: #4b4b56; margin-bottom: 22px; }
.price-box {
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px;
}
.price-box .price-now { font-size: 26px; }

.variants { display: flex; gap: 9px; flex-wrap: wrap; margin: 8px 0 22px; }
.variant { padding: 10px 16px; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; font-size: 13.5px; transition: all .16s; }
.variant:hover { border-color: var(--gold); }
.variant.selected { border-color: var(--ink); background: var(--ink); color: var(--gold-2); }
.variant.out { opacity: .4; pointer-events: none; text-decoration: line-through; }

.field-label { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.qty button { width: 40px; height: 44px; background: #fff; border: 0; cursor: pointer; font-size: 18px; color: var(--ink); }
.qty button:hover { background: var(--ivory); }
.qty span { width: 46px; text-align: center; font-weight: 700; }

.buy-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pd-tabs { margin-top: 42px; border-top: 1px solid var(--line); padding-top: 28px; }
.pd-tabs h3 { font-size: 17px; margin: 0 0 10px; }
.pd-tabs p { white-space: pre-line; color: #4b4b56; margin: 0; }
.spec { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.spec li { display: flex; justify-content: space-between; gap: 10px; padding: 11px 15px; background: #fff; border: 1px solid var(--line); border-radius: 11px; font-size: 13.5px; }
.spec li span { color: var(--muted); }

/* ---------- فروشگاه ---------- */
.shop { display: grid; grid-template-columns: 250px 1fr; gap: 30px; align-items: start; padding-block: 30px 70px; }
.shop > * { min-width: 0; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; position: sticky; top: 92px; }
.filter-box { border-bottom: 1px dashed var(--line); margin-bottom: 16px; padding-bottom: 12px; }
.filter-box[open] { padding-bottom: 6px; }
.filter-box summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
  padding: 4px 0 10px; font-size: 14px; font-weight: 700; color: var(--ink);
}
.filter-box summary::-webkit-details-marker { display: none; }
.filter-box summary::after {
  content: '▾'; margin-inline-start: auto; color: var(--muted);
  transition: transform .2s; font-size: 13px;
}
.filter-box[open] summary::after { transform: rotate(180deg); }
.filter-box summary b {
  font-weight: 500; font-size: 12.5px; color: var(--gold-dim);
  background: var(--ivory); padding: 3px 10px; border-radius: 999px;
}
.filter-box ul { margin-bottom: 4px; }

.filters h4 { margin: 0 0 12px; font-size: 14px; }
.filters ul { list-style: none; padding: 0; margin: 0 0 22px; }
.filters li a { display: block; padding: 7px 11px; border-radius: 9px; font-size: 13.5px; color: var(--muted); }
.filters li a:hover { background: var(--ivory); color: var(--ink); }
.filters li a.active { background: var(--ink); color: var(--gold-2); font-weight: 700; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.shop-toolbar select { padding: 10px 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--r-lg); }

.pager { display: flex; gap: 7px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; padding-inline: 10px; border: 1px solid var(--line); border-radius: 11px; background: #fff; font-size: 14px; }
.pager .current { background: var(--ink); color: var(--gold-2); border-color: var(--ink); font-weight: 700; }

/* ---------- سبد و فرم‌ها ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; padding-block: 26px 70px; }
.cart-layout > * { min-width: 0; }
.cart-row { display: grid; grid-template-columns: 88px 1fr auto; gap: 15px; align-items: center; padding: 15px 0; border-bottom: 1px dashed var(--line); }
.cart-row:last-child { border-bottom: 0; }
.cart-row img { width: 88px; height: 88px; object-fit: cover; border-radius: 12px; }
.cart-row h4 { margin: 0 0 3px; font-size: 15px; }
.cart-row .v { font-size: 12.5px; color: var(--muted); }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 14px; }
.summary-line.total { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 14px; font-weight: 800; font-size: 17px; color: var(--ink); }
.note-free { background: var(--ivory); border: 1px solid var(--line); border-radius: 11px; padding: 11px 14px; font-size: 12.5px; color: var(--gold-dim); margin-bottom: 14px; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.form-grid .full { grid-column: 1 / -1; }
.input, textarea.input, select.input { width: 100%; padding: 12px 15px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); transition: border-color .16s; }
.input:focus { border-color: var(--gold); outline: none; background: #fff; }
label.lb { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }

.alert { padding: 13px 17px; border-radius: 12px; font-size: 14px; margin-bottom: 18px; }
.alert-ok { background: #e6f4ee; color: var(--ok); }
.alert-err { background: #fbeaea; color: var(--danger); }

.success-box { text-align: center; padding: 60px 20px; }
.success-box .code { font-size: 30px; font-weight: 800; color: var(--gold-dim); letter-spacing: 2px; }

/* ---------- پابرگ ---------- */
.site-footer { background: var(--ink); color: #b0a999; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; padding-block: 48px 32px; }
.footer-grid > * { min-width: 0; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-brand img { width: 56px; height: 56px; border-radius: 50%; }
.footer-brand b { color: #fff; font-size: 17px; display: block; }
.footer-brand span { font-size: 12px; color: var(--gold); }
.site-footer h5 { color: var(--gold-2); font-size: 14.5px; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; font-size: 13.5px; }
.site-footer li { margin-bottom: 8px; }
.site-footer a:hover { color: var(--gold-2); }
.site-footer p { font-size: 13.5px; margin: 0 0 12px; }
.footer-bottom {
  border-top: 1px solid rgba(201,162,39,.2); padding-block: 16px; font-size: 12.5px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center;
}

/* نشان سازنده: بیزینس محمدی */
.bm-badge { display: inline-flex; align-items: center; gap: 9px; color: #b0a999; }
.bm-badge:hover { color: var(--gold-2); }
.bm-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(145deg, #232329, #101013);
  border: 1px solid rgba(201,162,39,.55);
  display: grid; place-items: center;
  font-weight: 800; font-size: 13px; letter-spacing: .5px;
  color: var(--gold-2);
  transition: border-color .18s, transform .18s;
}
.bm-badge:hover .bm-mark { border-color: var(--gold-2); transform: translateY(-2px); }

.toast {
  position: fixed; inset-block-end: 24px; inset-inline-start: 24px; z-index: 100;
  background: var(--ink); color: var(--gold-2); padding: 13px 20px; border-radius: 12px;
  font-size: 14px; box-shadow: var(--shadow); transform: translateY(20px); opacity: 0;
  transition: .25s; pointer-events: none;
}
.toast.show { transform: none; opacity: 1; }

/* ---------- واکنش‌گرا ---------- */
@media (max-width: 1000px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 48px; }
  .bedstack { height: 270px; max-width: 420px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .trust .wrap { grid-template-columns: repeat(2, 1fr); }
  .shop { grid-template-columns: 1fr; }
  .filters { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .pd { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 720px) {
  .menu-toggle { display: grid; }
  .nav .nav-bm { display: flex; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; }
  /* روی موبایل: «دسته‌بندی‌ها» کلید باز و بسته شدن است */
  .nav .nav-cats { display: block; max-height: 0; overflow: hidden; transition: max-height .28s ease; }
  .nav .nav-cats.open { max-height: 640px; }
  .nav .nav-cats a { display: block; }
  .nav a.only-mobile { display: block; }
  .nav .nav-group {
    display: flex; align-items: center; width: 100%;
    background: var(--ivory); border: 0; cursor: pointer;
    padding: 12px 14px; margin-top: 6px; border-radius: 11px;
    font: inherit; font-size: 14.5px; font-weight: 700; color: var(--ink); text-align: start;
  }
  .nav .nav-group::after {
    content: '▾'; margin-inline-start: auto; color: var(--muted);
    font-size: 13px; transition: transform .25s;
  }
  .nav .nav-group[aria-expanded="true"]::after { transform: rotate(180deg); }
  .nav { max-height: calc(100vh - 120px); overflow-y: auto; }
  .nav {
    position: absolute; inset-block-start: 100%; inset-inline: 0; background: #fff;
    flex-direction: column; padding: 14px; gap: 2px; border-bottom: 1px solid var(--line);
    transform: translateY(-140%); transition: transform .25s; z-index: 40;
  }
  .nav.open { transform: none; }
  .nav a { padding: 12px 14px; }
  .brand img { width: 42px; height: 42px; }
  .brand { font-size: 17px; }
  .product-grid, .product-grid.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 13px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding-block: 44px; }
  .section-head h2 { font-size: 23px; }
  .form-grid, .spec { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 70px 1fr; }
  .cart-row img { width: 70px; height: 70px; }
  .hero-stats { gap: 18px; }
  .pcard-body { padding: 12px 13px 14px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 430px) {
  .topbar .wrap { justify-content: center; }
  .topbar .phones { gap: 10px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- پیگیری سفارش ---------- */
.track-tabs { display: flex; gap: 6px; margin-bottom: 18px; }
.track-tab {
  flex: 1; padding: 10px 12px; border-radius: 11px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  font-size: 13.5px; font-weight: 700; transition: background .16s, color .16s, border-color .16s;
}
.track-tab.active { background: var(--ink); border-color: var(--ink); color: var(--gold-2); }
.track-pane[hidden] { display: none; }

.found-order {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 15px; margin-top: 10px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; transition: border-color .16s, transform .16s;
}
.found-order:hover { border-color: var(--gold); transform: translateY(-2px); }
.found-order b { display: block; font-size: 14.5px; }
.found-order small { color: var(--muted); font-size: 12.5px; }

/* ---------- آیکون‌ها و راه‌های ارتباط ---------- */
.ico { flex: none; }

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.contact-card {
  display: flex; align-items: center; gap: 13px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  transition: border-color .16s, transform .16s, box-shadow .16s;
}
.contact-card:not(.as-info):hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); }
.contact-card b { display: block; font-size: 15px; }
.contact-card small { color: var(--muted); font-size: 12.5px; }
.contact-card .ci {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: grid; place-items: center; color: #fff;
}
.ci-phone     { background: linear-gradient(140deg, #2f7a5b, #1f5c43); }
.ci-whatsapp  { background: linear-gradient(140deg, #3fbf6f, #128c7e); }
.ci-instagram { background: linear-gradient(140deg, #f0a72e, #d62976 55%, #7638fa); }
.ci-telegram  { background: linear-gradient(140deg, #45b4e8, #1c8bc4); }
.ci-clock     { background: linear-gradient(140deg, #3fbf6f, #23805a); }

/* ---------- نقشه زنده ---------- */
.map-live {
  margin-top: 14px; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; background: var(--ivory);
}
.map-live iframe { width: 100%; height: 300px; border: 0; display: block; }

.map-apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.map-app {
  display: flex; align-items: center; gap: 11px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  transition: border-color .16s, transform .16s;
}
.map-app:hover { transform: translateY(-2px); }
.map-app b { display: block; font-size: 14.5px; }
.map-app small { color: var(--muted); font-size: 12px; }
.map-app .map-mark {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff;
}
/* نشان کوتاه هر برنامه نقشه — طرح اختصاصی این سایت */
.map-neshan .map-mark { background: linear-gradient(140deg, #3f6ef0, #2545b8); }
.map-neshan:hover { border-color: #3f6ef0; }
.map-balad  .map-mark { background: linear-gradient(140deg, #2fb98a, #1a7f5e); }
.map-balad:hover { border-color: #2fb98a; }
.map-gmaps  .map-mark { background: linear-gradient(140deg, #e35c4b, #b8362a); }
.map-gmaps:hover { border-color: #e35c4b; }

.map-empty {
  margin-top: 14px; padding: 26px; text-align: center; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--r-lg); background: #fff;
}
.map-empty p { margin: 8px 0 0; font-size: 13.5px; }

/* ---------- پابرگ: شماره‌ها و شبکه‌ها ---------- */
.foot-contact a { display: flex; align-items: center; gap: 8px; }
.foot-contact .ico { opacity: .75; }

.social-row { display: flex; gap: 9px; margin-top: 14px; flex-wrap: wrap; }
.social {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  color: #fff; transition: transform .16s, filter .16s;
}
.social:hover { transform: translateY(-3px); filter: brightness(1.12); }

@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
  .map-apps { grid-template-columns: 1fr; }
  .map-live iframe { height: 240px; }
}

/* ---------- صفحه خطا ---------- */
.err-page { background: var(--ink); color: #fff; padding-block: 72px 84px; text-align: center; position: relative; overflow: hidden; }
.err-page::before {
  content: ''; position: absolute; inset-block-start: -120px; inset-inline-start: 50%;
  width: 520px; height: 520px; transform: translateX(50%);
  background: radial-gradient(circle, rgba(201,162,39,.16), transparent 68%);
  pointer-events: none;
}
.err-page .wrap { position: relative; }

.err-code {
  font-size: clamp(86px, 20vw, 168px); font-weight: 800; line-height: 1;
  letter-spacing: -4px; margin-bottom: 6px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold-dim));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.err-page h1 { font-size: clamp(22px, 4vw, 30px); margin: 0 0 10px; font-weight: 800; letter-spacing: -.6px; }
.err-desc { color: #c9c2b3; max-width: 46ch; margin: 0 auto 26px; font-size: 15.5px; }

.err-search { display: flex; gap: 10px; max-width: 520px; margin: 0 auto 22px; flex-wrap: wrap; }
.err-search .input {
  flex: 1; min-width: 200px; background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.16); color: #fff;
}
.err-search .input::placeholder { color: #8d8779; }

.err-cats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 26px; }
.err-cats a {
  padding: 8px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  border: 1px solid rgba(255,255,255,.18); color: #ded7c7; transition: all .16s;
}
.err-cats a:hover { background: var(--gold); border-color: var(--gold); color: #1a1608; }

.err-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.err-actions .btn-ghost { border-color: rgba(255,255,255,.22); color: #ded7c7; }
.err-actions .btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }

.err-phone { color: #a9a294; font-size: 13.5px; margin-top: 26px; }
.err-phone a { color: var(--gold-2); }

@media (max-width: 720px) {
  .err-page { padding-block: 52px 62px; }
  .err-actions .btn { width: 100%; }
}
