/* ==========================================================================
   تل‌مو شاپ — استایل اصلی
   ایده بصری: فاکتور / رسید. فقط در یک جا (فاکتور زنده) رنگ و کنتراست زیاد است؛
   بقیه صفحه آرام و خوانا می‌ماند.
   ========================================================================== */

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0b2239;
  --ink-2: #29445f;
  --mute: #566a7e;
  --paper: #f1f6fa;
  --white: #ffffff;
  --line: #d6e1ea;
  --blue: #1493e8;       /* رنگ برند */
  --btn: #0a6cb8;        /* دکمه‌ها (کنتراست کافی با متن سفید) */
  --btn-d: #08558f;
  --blue-l: #e2f1fc;
  --amber: #ffb41f;
  --amber-l: #fff1d0;
  --amber-d: #7a4f00;
  --ok: #0f7a40;
  --ok-l: #e2f6ea;
  --err: #b8192e;
  --err-l: #fde8eb;
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --f: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 1.0625rem/1.95 var(--f);
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--btn); text-underline-offset: 3px; }
a:hover { color: var(--btn-d); }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--r-s) var(--r-s); z-index: 100; }
.skip:focus { top: 0; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; clip-path: inset(50%); pointer-events: none; }
.ic { flex: none; vertical-align: middle; }

.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 40px); }
.section { padding: 56px 0; }
.section-tint { background: #e8f0f7; }
.section-head { margin-bottom: 28px; max-width: 46rem; }
.section-head p { color: var(--mute); margin-top: 6px; }
.gap { height: 28px; }

.h1 { font-size: clamp(1.65rem, 3.2vw, 2.25rem); font-weight: 800; line-height: 1.5; margin-bottom: 18px; }
.h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 800; line-height: 1.55; }
.h3 { font-size: 1.2rem; font-weight: 800; line-height: 1.6; margin: 28px 0 10px; }
.h4 { font-size: 1.08rem; font-weight: 700; line-height: 1.7; }
.lead { font-size: 1.12rem; color: var(--ink-2); }
.muted { color: var(--mute); }
.small { font-size: .9rem; }
.more { margin-top: 22px; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--err); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: .95rem; }
.link-btn:hover { text-decoration: underline; }

/* ---------- دکمه‌ها ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 12px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.7; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--btn); color: #fff; }
.btn-primary:hover { background: var(--btn-d); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); color: #fff; }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #ffc54d; color: var(--ink); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn-block { display: flex; width: 100%; }
.btn-lg { padding: 14px 24px; font-size: 1.1rem; }

/* ---------- سربرگ ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.header-in { display: flex; align-items: center; gap: 22px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { font-size: 1.22rem; font-weight: 800; }
.brand-text small { font-size: .74rem; color: var(--mute); direction: ltr; text-align: start; letter-spacing: .04em; }
.brand-light, .brand-light:hover { color: #fff; }
.brand-light .brand-text small { color: #9fb6cb; }
.site-nav { margin-inline-start: 8px; }
.site-nav ul { list-style: none; display: flex; gap: 2px; }
.site-nav a { display: block; padding: 8px 13px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .98rem; }
.site-nav a:hover { background: var(--blue-l); color: var(--ink); }
.site-nav a.is-active { color: var(--btn-d); font-weight: 700; background: var(--blue-l); }

/* زیرمنوی خدمات */
.site-nav .has-sub { position: relative; }
.site-nav .has-sub > a { display: flex; align-items: center; gap: 4px; }
.site-nav .has-sub > a .ic { transition: transform .15s; }
.site-nav .sub { display: none; position: absolute; top: 100%; inset-inline-start: 0; padding-top: 8px; z-index: 40; }
.site-nav .has-sub:hover .sub, .site-nav .has-sub:focus-within .sub { display: block; }
.site-nav .has-sub:hover > a .ic, .site-nav .has-sub:focus-within > a .ic { transform: rotate(180deg); }
.site-nav .sub-list { display: block; min-width: 270px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 8px; box-shadow: 0 22px 40px -24px rgba(11, 34, 57, .45); }
.site-nav .sub-list ul { display: block; margin: 2px 0 6px; padding-inline-start: 12px; border-inline-start: 2px solid var(--line); margin-inline-start: 18px; }
.site-nav .sub-list a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; font-size: .95rem; white-space: nowrap; }
.site-nav .sub-list .ic { color: var(--btn); }
.site-nav .sub-head { font-weight: 700; color: var(--ink); }
.site-nav .sub-all { border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 4px; }
.site-nav .sub-all a { color: var(--btn-d); font-weight: 600; }
.cart-pill {
  margin-inline-start: auto; display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem;
}
.cart-pill:hover { background: var(--ink-2); color: #fff; }
.cart-count { background: var(--amber); color: var(--ink); min-width: 24px; height: 24px; display: inline-grid; place-items: center; border-radius: 999px; font-size: .85rem; padding: 0 6px; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px; cursor: pointer; color: var(--ink); }

/* ---------- صفحه اول ---------- */
.hero { padding: 56px 0 68px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-copy h1 { font-size: clamp(1.9rem, 4.1vw, 2.9rem); font-weight: 800; line-height: 1.5; margin-bottom: 18px; }
.hero-copy .lead { max-width: 34rem; margin-bottom: 26px; }
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .ic { color: var(--ok); margin-top: 5px; }
.ticks-dark { margin: 8px 0 16px; }

.hero-panel {
  background: var(--ink); color: #fff; border-radius: var(--r-l); padding: 26px;
  box-shadow: 0 28px 50px -30px rgba(11, 34, 57, .6);
}
.product-panel { position: sticky; top: 92px; align-self: start; }

/* ---------- ماشین‌حساب / فاکتور زنده ---------- */
.calc { display: block; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: rgba(255,255,255,.09); border: 0; border-radius: 13px; padding: 5px; margin: 0 0 20px; min-width: 0; }
.seg-opt { position: relative; display: block; }
.seg-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg-opt span { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 8px; border-radius: 9px; color: #cfe0ef; font-weight: 600; font-size: .95rem; text-align: center; line-height: 1.5; }
.seg-opt input:checked + span { background: #fff; color: var(--ink); }
.seg-opt input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 1px; }

.calc-label { display: block; font-weight: 600; color: #dbe8f3; margin-bottom: 6px; }
.qty-input {
  width: 100%; text-align: center; font-size: 1.7rem; font-weight: 800; padding: 8px 14px; line-height: 1.6;
  background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.22); color: #fff; border-radius: 13px;
}
.qty-input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255,180,31,.28); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }
.chip { background: transparent; border: 1.5px solid rgba(255,255,255,.3); color: #fff; padding: 3px 15px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .95rem; }
.chip:hover { background: rgba(255,255,255,.14); }
.chip.is-on { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.chip:focus-visible { outline: 3px solid var(--amber); }

.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: rgba(255,255,255,.22); direction: ltr; margin: 6px 0 8px; cursor: pointer; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--amber); border: 3px solid var(--ink); box-shadow: 0 0 0 2px var(--amber); }
.range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--amber); border: 3px solid var(--ink); box-shadow: 0 0 0 2px var(--amber); }
.range:focus-visible { outline: 3px solid var(--amber); outline-offset: 6px; }
.calc .hint { color: #a9c0d4; font-size: .88rem; line-height: 1.8; }

/* فاکتور (رسید) */
.receipt { position: relative; background: #fff; color: var(--ink); border-radius: 12px 12px 0 0; padding: 16px 18px 14px; margin: 20px 0 26px; }
.receipt::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -10px; height: 10px;
  background:
    linear-gradient(135deg, #fff 5px, transparent 0) 0 0 / 14px 10px repeat-x,
    linear-gradient(-135deg, #fff 5px, transparent 0) 0 0 / 14px 10px repeat-x;
}
.receipt-head { display: flex; justify-content: space-between; gap: 12px; font-size: .84rem; color: var(--mute); border-bottom: 1.5px dashed var(--line); padding-bottom: 8px; margin-bottom: 8px; }
.receipt-rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; font-size: .96rem; }
.receipt-rows dt { color: var(--mute); }
.receipt-rows dd { font-weight: 700; text-align: end; }
.receipt-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 8px; padding-top: 12px; border-top: 1.5px dashed #9db0c2; }
.receipt-total span { font-weight: 600; }
.receipt-total strong { font-size: 1.5rem; font-weight: 800; padding: 0 6px; border-radius: 6px; }
.receipt-total strong.tick { animation: tick .6s ease-out; }
@keyframes tick { from { background: var(--amber-l); } to { background: transparent; } }
.receipt-light { border: 1.5px solid var(--line); border-radius: var(--r-m); margin: 0 0 16px; }
.receipt-light::after { display: none; }
.receipt-light .receipt-head a { font-weight: 600; }

/* ---------- لیست خدمات (شبیه منوی قیمت) ---------- */
.menu-list { border-bottom: 1px solid var(--line); }
.menu-item { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 28px 0; border-top: 1px solid var(--line); }
.menu-ic { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--blue-l); color: var(--btn-d); flex: none; }
.menu-item:nth-child(2n) .menu-ic { background: var(--amber-l); color: var(--amber-d); }
.menu-main h3 { font-size: 1.28rem; font-weight: 800; line-height: 1.6; }
.menu-main h3 a { color: var(--ink); text-decoration: none; }
.menu-main h3 a:hover { color: var(--btn); }
.menu-main > p { color: var(--mute); margin-bottom: 8px; }
.leader { display: grid; gap: 2px; max-width: 680px; }
.leader > div { display: flex; align-items: baseline; gap: 10px; }
.leader dt { flex: 1; display: flex; align-items: baseline; gap: 10px; color: var(--mute); }
.leader dt::after { content: ""; flex: 1; min-width: 18px; border-bottom: 2px dotted #aebfce; transform: translateY(-4px); }
.leader dd { font-weight: 700; }
.leader-lg { max-width: none; margin-bottom: 8px; }

/* ---------- مراحل ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.steps li { position: relative; padding-inline-end: 22px; }
.steps b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 1.15rem; margin-bottom: 12px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 21px; inset-inline-start: 56px; inset-inline-end: 8px; border-top: 2px dashed #9db3c6; }
.steps h3 { font-size: 1.1rem; font-weight: 800; }
.steps p { color: var(--mute); font-size: .98rem; }

/* ---------- نکات ---------- */
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.note-item { border-top: 3px solid var(--ink); padding-top: 16px; }
.note-item .ic { color: var(--btn); margin-bottom: 8px; }
.note-item h3 { font-size: 1.12rem; font-weight: 800; margin-bottom: 4px; }
.note-item p { color: var(--ink-2); font-size: .98rem; }

/* ---------- سؤالات ---------- */
.faq details { border-bottom: 1px solid #c4d3e0; }
.faq summary { list-style: none; cursor: pointer; padding: 15px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--btn); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 16px; color: var(--ink-2); max-width: 44rem; }

/* ---------- دعوت به تماس ---------- */
.cta { background: var(--ink); color: #fff; padding: 40px 0; }
.cta-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta p { color: #bcd0e2; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- پاورقی ---------- */
.site-footer { background: #071a2d; color: #bcd0e2; padding: 48px 0 28px; font-size: .96rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1fr 1.4fr; gap: 30px; }
.foot-about p { margin-top: 12px; max-width: 24rem; }
.foot-col h2 { font-size: 1rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.foot-col ul { list-style: none; display: grid; gap: 6px; }
.site-footer a { color: #d7e6f3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; }
.foot-contact .ic { margin-top: 6px; color: #7fb8e6; }
.foot-biz { font-weight: 700; color: #fff; }
.foot-badges { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.foot-badges img { background: #fff; border-radius: 10px; padding: 4px; max-height: 92px; }
.foot-note { margin-top: 30px; padding-top: 22px; border-top: 1px solid #17314c; font-size: .88rem; color: #8ea6bc; max-width: 54rem; }
.foot-copy { margin-top: 6px; font-size: .88rem; color: #8ea6bc; }

/* ---------- صفحه محصول ---------- */
.crumbs { font-size: .92rem; color: var(--mute); margin-bottom: 22px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: #9db0c2; }
.crumbs a { color: var(--mute); }
.crumbs [aria-current] { color: var(--ink-2); }

/* دسته‌بندی‌ها */
.section-head-gap { margin-top: 52px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.cat-card { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-m); padding: 18px 20px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.cat-card:hover { border-color: var(--btn); color: var(--ink); transform: translateY(-2px); }
.cat-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--blue-l); color: var(--btn-d); flex: none; }
.cat-ic-sm { width: 40px; height: 40px; border-radius: 12px; }
.cat-card:nth-child(2n) .cat-ic { background: var(--amber-l); color: var(--amber-d); }
.cat-body { display: grid; gap: 2px; }
.cat-body strong { font-size: 1.12rem; font-weight: 800; }
.cat-short { color: var(--mute); font-size: .94rem; }
.cat-meta { font-size: .86rem; color: var(--btn-d); font-weight: 600; }
.cat-go { color: var(--mute); }
.cat-card:hover .cat-go { color: var(--btn); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; }
.jump a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.jump a:hover { border-color: var(--btn); color: var(--ink); }
.jump a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.jump .ic { color: var(--btn); }
.jump a.is-active .ic { color: #fff; }
.cat-block + .cat-block { margin-top: 44px; }
.cat-title { display: flex; align-items: center; gap: 12px; font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.cat-title a { color: var(--ink); text-decoration: none; }
.cat-title a:hover { color: var(--btn); }
.sub-block { margin-top: 26px; scroll-margin-top: 90px; }
.sub-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: 1.15rem; font-weight: 800; margin-bottom: 4px; }
.sub-title a { color: var(--ink); text-decoration: none; }
.sub-title a:hover { color: var(--btn); }
.sub-title span { font-size: .94rem; font-weight: 400; color: var(--mute); }
.cat-hero { display: flex; gap: 18px; align-items: center; margin-bottom: 24px; }
.cat-hero .h1 { margin-bottom: 0; }
.cat-hero .cat-ic { width: 68px; height: 68px; border-radius: 20px; }
.menu-cat { display: inline-block; font-size: .84rem; font-weight: 600; color: var(--btn-d); text-decoration: none; margin-bottom: 2px; }
.menu-cat:hover { text-decoration: underline; }
.related { margin-top: 48px; }
.product-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 52px; align-items: start; }
.product-title { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.product-title h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.5; }
.product-info .lead { margin-bottom: 10px; }

/* ---------- متن حقوقی ---------- */
.prose { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 32px 36px; margin-top: 18px; }
.prose h2 { font-size: 1.2rem; font-weight: 800; margin: 26px 0 6px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 8px; }
.prose ul { padding-inline-start: 22px; margin: 6px 0; }

/* ---------- سبد و فرم‌ها ---------- */
.empty { text-align: center; background: #fff; border: 1.5px dashed #b4c4d3; border-radius: var(--r-m); padding: 52px 20px; display: grid; gap: 10px; justify-items: center; }
.empty .ic { color: var(--mute); }
.cart-grid { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.cart-side { position: sticky; top: 92px; }
.cart-lines { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 8px 24px 20px; }
.cart-line { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-line .menu-ic { width: 54px; height: 54px; border-radius: 15px; }
.cart-line-main h2 a { color: var(--ink); text-decoration: none; }
.cart-qty { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-weight: 600; }
.cart-qty input { width: 130px; text-align: center; padding: 6px 10px; border: 1.5px solid #b4c4d3; border-radius: 10px; font-weight: 700; }
.cart-line-price { text-align: end; display: grid; gap: 8px; justify-items: end; }
.cart-line-price strong { font-size: 1.1rem; }
.cart-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding-top: 20px; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 28px; }
.form-card fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.form-card legend { font-weight: 800; font-size: 1.15rem; padding: 0; margin-bottom: 14px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 14px; border: 1.5px solid #aebfce; border-radius: 11px; background: #fff; line-height: 1.7;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--btn); box-shadow: 0 0 0 3px rgba(20,147,232,.22); }
.field .opt { font-weight: 400; color: var(--mute); }
.hint { font-size: .9rem; color: var(--mute); margin-top: 4px; line-height: 1.8; }
.has-err input, .has-err textarea { border-color: var(--err); }
.field-err { color: var(--err); font-size: .93rem; font-weight: 600; margin-top: 4px; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: start; margin-bottom: 14px; }
.check input { width: 22px; height: 22px; margin-top: 5px; accent-color: var(--btn); }
.check .field-err { grid-column: 2; }
.check.has-err label { color: var(--err); }

.notice { border-radius: 12px; padding: 14px 18px; margin: 0 0 20px; border: 1px solid; }
.notice-ok { background: var(--ok-l); border-color: #9fd6b6; color: #0b5a2f; }
.notice-err { background: var(--err-l); border-color: #f0a9b3; color: #8f1425; }
.notice-info { background: var(--blue-l); border-color: #a9d3f1; color: #07456f; }
.notice h1, .notice h2 { margin-bottom: 2px; }

/* ---------- سفارش و پیگیری ---------- */
.order-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 26px; }
.order-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.code { font-size: 1.8rem; font-weight: 800; letter-spacing: .08em; line-height: 1.5; text-align: start; }
.badge { display: inline-block; padding: 4px 14px; border-radius: 999px; font-weight: 700; font-size: .92rem; background: var(--blue-l); color: #07456f; }
.badge-pending { background: var(--amber-l); color: var(--amber-d); }
.badge-paid, .badge-processing { background: var(--blue-l); color: #07456f; }
.badge-completed { background: var(--ok-l); color: #0b5a2f; }
.badge-canceled, .badge-refunded { background: var(--err-l); color: #8f1425; }
.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 20px 0 24px; }
.timeline li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; font-size: .92rem; color: var(--mute); padding: 0 6px; }
.timeline li::before { content: ""; position: absolute; top: 11px; inset-inline: -50% 50%; border-top: 2px solid #c4d3e0; z-index: 0; }
.timeline li:first-child::before { display: none; }
.timeline .dot { width: 24px; height: 24px; border-radius: 50%; border: 2.5px solid #b4c4d3; background: #fff; position: relative; z-index: 1; }
.timeline li.done, .timeline li.now { color: var(--ink); font-weight: 600; }
.timeline li.done .dot { background: var(--ok); border-color: var(--ok); }
.timeline li.now .dot { border-color: var(--btn); background: var(--btn); box-shadow: 0 0 0 4px rgba(20,147,232,.22); }
.timeline li.done::before, .timeline li.now::before { border-color: var(--ok); }
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .96rem; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.tbl th { background: #f4f8fb; font-weight: 700; white-space: nowrap; }
.ltr-cell { text-align: left !important; word-break: break-all; }
.sum { margin-top: 16px; display: grid; gap: 4px; max-width: 360px; margin-inline-start: auto; }
.sum > div { display: flex; justify-content: space-between; gap: 16px; }
.sum dt { color: var(--mute); }
.sum-total { font-size: 1.2rem; font-weight: 800; border-top: 1.5px dashed #9db0c2; padding-top: 8px; margin-top: 4px; }
.sum-total dt { color: var(--ink); }
.pay-box { background: var(--amber-l); border: 1.5px solid #f2d089; border-radius: var(--r-m); padding: 20px 24px; margin-top: 22px; }
.pay-box .h3 { margin-top: 0; }
.pay-box p { color: #4a3300; margin-bottom: 10px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 28px; }
.info-card .h3 { margin-top: 0; }
.info-list { list-style: none; display: grid; gap: 12px; margin-bottom: 14px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; }
.info-list .ic { color: var(--btn); margin-top: 5px; }

/* ---------- پنل مدیریت ---------- */
.admin-bar { background: var(--ink); color: #fff; }
.admin-bar .wrap { display: flex; align-items: center; gap: 18px; min-height: 60px; flex-wrap: wrap; }
.admin-bar a { color: #d7e6f3; text-decoration: none; padding: 6px 10px; border-radius: 8px; }
.admin-bar a:hover, .admin-bar a.is-active { background: rgba(255,255,255,.14); color: #fff; }
.admin-bar .spacer { margin-inline-start: auto; }
.admin-body { padding: 32px 0 60px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 18px; }
.stat b { display: block; font-size: 1.7rem; font-weight: 800; line-height: 1.5; }
.stat span { color: var(--mute); font-size: .92rem; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filters a { padding: 5px 14px; border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink-2); font-size: .94rem; background: #fff; }
.filters a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 24px; margin-bottom: 22px; }
.admin-card .h3 { margin-top: 0; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.login-box { max-width: 420px; margin: 70px auto; }
.warn-list { margin: 0; padding-inline-start: 20px; }
.msg { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; background: #fff; margin-bottom: 12px; }
.msg.unread { border-color: var(--btn); box-shadow: inset 4px 0 0 var(--btn); }
.msg-meta { font-size: .88rem; color: var(--mute); margin-bottom: 4px; }

/* ---------- موبایل و تبلت ---------- */
@media (max-width: 960px) {
  .hero-grid, .product-grid, .cart-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .product-panel, .cart-side { position: static; }
  .hero { padding: 36px 0 48px; }
  .notes { grid-template-columns: 1fr; gap: 26px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .steps li:nth-child(2n)::after { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; margin-inline-start: auto; order: 3; }
  .cart-pill { margin-inline-start: 0; order: 2; }
  .site-nav { display: none; order: 4; width: 100%; margin: 0; padding-bottom: 12px; }
  .header-in { flex-wrap: wrap; row-gap: 0; min-height: 64px; }
  .brand { order: 1; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 11px 12px; }
  .site-nav .has-sub > a .ic { display: none; }
  .site-nav .sub { display: block; position: static; padding: 0; }
  .site-nav .sub-list { min-width: 0; border: 0; box-shadow: none; padding: 0 0 6px; padding-inline-start: 12px; background: transparent; border-inline-start: 2px solid var(--line); border-radius: 0; margin-inline-start: 14px; }
  .site-nav .sub-list a { white-space: normal; padding: 8px 10px; }
  .site-nav .sub-all { border-top: 0; }
}
@media (max-width: 640px) {
  .wrap, .wrap.narrow { width: calc(100% - 32px); }
  .section { padding: 40px 0; }
  .menu-item { grid-template-columns: auto 1fr; }
  .menu-item .btn { grid-column: 1 / -1; }
  .menu-ic { width: 54px; height: 54px; border-radius: 15px; }
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none !important; }
  .foot-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card { padding: 14px 16px; gap: 12px; }
  .cat-ic { width: 48px; height: 48px; border-radius: 14px; }
  .cat-hero .cat-ic { width: 56px; height: 56px; }
  .prose, .form-card, .order-card, .info-card { padding: 20px; }
  .cart-lines { padding: 4px 16px 16px; }
  .cart-line { grid-template-columns: auto 1fr; }
  .cart-line-price { grid-column: 1 / -1; text-align: start; justify-items: start; grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .hero-panel { padding: 18px; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .timeline li::before { display: none; }
  .row-2 { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 1.75rem; }
  .brand-text small { display: none; }
}
@media (max-width: 400px) {
  .cart-pill { padding: 8px 12px; }
  .cart-pill span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .brand-text strong { font-size: 1.08rem; }
  .header-in { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
