/* ============================================================
   IranTraffic — طراحی اختصاصی فروشگاه تجهیزات ترافیکی
   Design tokens + vanilla CSS, RTL, Vazir
   ============================================================ */

@font-face { font-family: Vazir; src: url("../fonts/Vazir-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Vazir; src: url("../fonts/Vazir-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Vazir; src: url("../fonts/Vazir-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Vazir; src: url("../fonts/Vazir-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  /* رنگ‌ها */
  --navy: #10294a;
  --navy-deep: #0a1c34;
  --navy-soft: #1a3a63;
  --accent: #ea580c;
  --accent-hover: #c2410c;
  --accent-soft: #fff1e8;
  --yellow: #f5b51b;
  --yellow-soft: #fdf5dd;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --text: #1e2b3d;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e4e9f0;
  --success: #178a50;

  /* شکل و سایه */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(16, 41, 74, .07);
  --shadow: 0 8px 28px rgba(16, 41, 74, .09);
  --shadow-lg: 0 22px 55px rgba(16, 41, 74, .14);

  /* امضای برند: نوار هشدار */
  --hazard: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, var(--navy) 14px 28px);

  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Vazir, Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { color: inherit; font: inherit; }
button { border: 0; background: none; cursor: pointer; padding: 0; }
:focus-visible { outline: 3px solid rgba(234, 88, 12, .45); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--yellow); color: var(--navy); }

.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.icon { width: 22px; height: 22px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 17px; height: 17px; }
.icon--lg { width: 30px; height: 30px; }

/* ---------- دکمه‌ها ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 700; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(234, 88, 12, .28); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-soft); }
.btn--ghost { border: 1.5px solid var(--line); background: var(--surface); color: var(--navy); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--ghost-light { border: 1.5px solid rgba(255,255,255,.35); color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,.1); }
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: 13px; }

/* ---------- نوار بالایی ---------- */
.topbar { background: var(--navy-deep); color: rgba(255,255,255,.75); font-size: 12.5px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar-note { display: inline-flex; align-items: center; gap: 8px; }
.topbar-note .icon { width: 15px; height: 15px; color: var(--yellow); }
.topbar-links { display: flex; align-items: center; gap: 18px; }
.topbar-links a { display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.topbar-links a:hover { color: var(--yellow); }
.topbar-links .icon { width: 14px; height: 14px; }

/* ---------- هدر ---------- */
.site-header { background: var(--surface); position: sticky; top: 0; z-index: 40; box-shadow: var(--shadow-sm); }
.header-main { display: flex; align-items: center; gap: 28px; padding: 16px 0; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark {
  width: 58px; height: 58px; border-radius: 14px; overflow: hidden;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; justify-content: center; padding: 5px;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.4; }
.brand-copy strong { color: var(--navy); font-size: 20px; font-weight: 900; letter-spacing: -.02em; }
.brand-copy small { color: var(--muted); font-size: 11px; margin-top: 2px; }

.header-search { flex: 1; max-width: 560px; }
.header-search form { display: flex; align-items: center; background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 4px 4px 4px 4px; transition: border-color .2s, box-shadow .2s; }
.header-search form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(234, 88, 12, .1); background: #fff; }
.header-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 9px 14px; font-size: 14px; outline: none; }
.header-search input::placeholder { color: var(--muted-2); }
.header-search button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 7px; background: var(--navy); color: #fff; transition: background .2s; }
.header-search button:hover { background: var(--accent); }

.header-cta { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.header-phone { display: inline-flex; align-items: center; gap: 11px; padding: 6px 8px; border-radius: var(--radius-sm); transition: background .2s; }
.header-phone:hover { background: var(--bg); }
.header-phone .icon { width: 38px; height: 38px; padding: 8px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.header-phone > div { display: flex; flex-direction: column; line-height: 1.5; }
.header-phone small { color: var(--muted); font-size: 11px; }
.header-phone strong { color: var(--navy); font-size: 15px; font-weight: 900; direction: ltr; text-align: right; }
.mobile-toggle { display: none; width: 46px; height: 46px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); color: var(--navy); align-items: center; justify-content: center; }

/* ---------- نوار دسته‌بندی ---------- */
.catnav { background: var(--navy); position: relative; }
.catnav::after { content: ""; display: block; height: 4px; background: var(--hazard); opacity: .9; }
.catnav-inner { display: flex; align-items: stretch; gap: 2px; }
.catnav-item { position: relative; display: flex; }
.catnav-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 14px; color: rgba(255,255,255,.82); font-size: 13.5px; font-weight: 500;
  white-space: nowrap; border-bottom: 3px solid transparent; transition: color .2s, background .2s;
}
.catnav-link .icon { width: 18px; height: 18px; opacity: .85; }
.catnav-link:hover, .catnav-link.is-active, .catnav-item:hover .catnav-link, .catnav-item:focus-within .catnav-link { color: #fff; background: rgba(255,255,255,.07); }
.catnav-link.is-active { border-bottom-color: var(--yellow); }
.catnav-link--all { background: var(--accent); color: #fff; font-weight: 700; }
.catnav-link--all:hover { background: var(--accent-hover); }
.catnav-caret { width: 13px !important; height: 13px !important; opacity: .6; transition: transform .2s; }
.catnav-item:hover .catnav-caret, .catnav-item:focus-within .catnav-caret { transform: rotate(180deg); }

/* دراپ‌داون زیر دسته‌ها */
.catnav-drop {
  position: absolute; top: 100%; inset-inline-start: 0; z-index: 45;
  min-width: 270px; padding: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.catnav-drop::before { content: ""; position: absolute; top: -3px; inset-inline: 0; height: 3px; background: var(--hazard); }
.catnav-drop--wide { min-width: 560px; grid-template-columns: 1fr 1fr; }
.catnav-item:hover .catnav-drop, .catnav-item:focus-within .catnav-drop { opacity: 1; visibility: visible; transform: translateY(0); }
.drop-link {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 9px;
  color: var(--text); font-size: 13px; font-weight: 500;
  transition: background .15s, color .15s;
}
.drop-link .icon { width: 20px; height: 20px; color: var(--accent); flex: 0 0 auto; }
.drop-link:hover { background: var(--accent-soft); color: var(--accent-hover); }
.drop-all {
  grid-column: 1 / -1; margin-top: 6px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 12px; border-top: 1px dashed var(--line);
  color: var(--navy); font-size: 12.5px; font-weight: 700;
  transition: color .15s;
}
.drop-all:hover { color: var(--accent); }
.drop-all .icon { width: 14px; height: 14px; }

/* ---------- منوی موبایل ---------- */
.mobile-nav { position: fixed; inset: 0 0 0 auto; width: min(340px, 88%); background: var(--surface); z-index: 60; transform: translateX(105%); transition: transform .28s ease; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.mobile-nav-head strong { color: var(--navy); font-size: 16px; font-weight: 900; }
.mobile-nav-close { width: 38px; height: 38px; border-radius: 10px; background: var(--bg); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; }
.mobile-nav-body { flex: 1; overflow: auto; padding: 14px 16px 24px; display: grid; gap: 2px; align-content: start; }
.mobile-nav-body a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; color: var(--text); font-size: 14px; transition: background .2s; }
.mobile-nav-body a:hover { background: var(--bg); color: var(--navy); }
.mobile-nav-body .icon { width: 18px; height: 18px; color: var(--accent); }
.mobile-nav-title { font-size: 11px; font-weight: 700; color: var(--muted); padding: 14px 12px 4px; }
.mobile-cat summary { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; color: var(--text); font-size: 14px; cursor: pointer; list-style: none; transition: background .2s; }
.mobile-cat summary::-webkit-details-marker { display: none; }
.mobile-cat summary:hover { background: var(--bg); }
.mobile-cat summary .icon { width: 18px; height: 18px; color: var(--accent); }
.mobile-cat-caret { margin-inline-start: auto; opacity: .5; transition: transform .2s; }
.mobile-cat[open] .mobile-cat-caret { transform: rotate(180deg); }
.mobile-cat-children { display: grid; gap: 1px; padding: 2px 10px 8px 0; margin-inline-start: 14px; border-inline-start: 2px solid var(--line); }
.mobile-cat-children a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: 13px; transition: background .15s, color .15s; }
.mobile-cat-children a:hover { background: var(--bg); color: var(--navy); }
.mobile-cat-all { color: var(--accent) !important; font-weight: 700; }
.overlay { position: fixed; inset: 0; background: rgba(6, 18, 35, .55); z-index: 50; opacity: 0; pointer-events: none; transition: opacity .25s; }
.overlay.is-visible { opacity: 1; pointer-events: auto; }

/* ---------- هیرو ---------- */
.hero { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(16, 41, 74, .05) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to left, rgba(0,0,0,.9), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 64px 0 72px; position: relative; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; background: var(--yellow-soft); border: 1px solid #f3e1ad; color: #8a6205; font-size: 12.5px; font-weight: 700; padding: 7px 14px; border-radius: 999px; }
.hero-kicker .icon { width: 16px; height: 16px; }
.hero h1 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 900; line-height: 1.45; letter-spacing: -.03em; color: var(--navy); margin: 22px 0 14px; }
.hero h1 em { font-style: normal; color: var(--accent); position: relative; }
.hero h1 em::after { content: ""; position: absolute; right: 0; left: 0; bottom: 4px; height: 10px; background: var(--yellow); opacity: .35; z-index: -1; border-radius: 3px; }
.hero-lead { color: var(--muted); font-size: 16.5px; line-height: 2.1; max-width: 540px; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 34px; }
.hero-point { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-size: 13.5px; font-weight: 500; }
.hero-point .icon { width: 21px; height: 21px; color: var(--success); }

.hero-visual { position: relative; justify-self: center; width: 100%; max-width: 500px; }
.hero-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 26px 26px 20px; position: relative; overflow: hidden;
}
.hero-card::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 6px; background: var(--hazard); }
.hero-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.hero-card-head strong { color: var(--navy); font-size: 15px; font-weight: 900; }
.hero-card-badge { display: inline-flex; align-items: center; gap: 7px; background: #e9f7f0; color: var(--success); font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.hero-card-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); position: relative; }
.hero-card-badge i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid rgba(23,138,80,.4); animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.hero-card img { width: min(330px, 80%); margin: 6px auto 10px; }
.hero-card--product { background: linear-gradient(145deg, #0b2747 0%, #071626 100%); border-color: rgba(255,255,255,.12); box-shadow: 0 22px 55px rgba(7,22,38,.3); }
.hero-card--product .hero-card-head strong { color: #fff; }
.hero-card--product img { width: 100%; height: auto; margin: 14px auto 12px; border-radius: 14px; filter: drop-shadow(0 18px 22px rgba(3,12,24,.38)); }
.hero-card--product .hero-card-foot { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.16); }
.hero-card-foot { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 12.5px; border-top: 1px dashed var(--line); padding-top: 14px; }
.hero-card-foot .icon { width: 17px; height: 17px; color: var(--accent); }

.hero-float { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; padding: 12px 16px; z-index: 2; }
.hero-float .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; }
.hero-float--right { top: 18px; right: 200px; }
.hero-float--right .icon { background: var(--accent-soft); color: var(--accent); }
.hero-float--left { bottom: 48px; left: -22px; }
.hero-float--left .icon { background: var(--yellow-soft); color: #b07f07; }
.hero-float strong { display: block; color: var(--navy); font-size: 13px; font-weight: 900; line-height: 1.5; }
.hero-float small { display: block; color: var(--muted); font-size: 10.5px; }

/* ---------- نوار آمار ---------- */
.stats { background: var(--navy); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 26px 12px; border-inline-start: 1px solid rgba(255,255,255,.09); }
.stat:first-child { border-inline-start: 0; }
.stat .icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgba(255,255,255,.08); color: var(--yellow); }
.stat strong { display: block; font-size: 24px; font-weight: 900; line-height: 1.3; }
.stat small { display: block; color: rgba(255,255,255,.6); font-size: 12px; }

/* ---------- بخش‌ها ---------- */
.section { padding: 92px 0; }
.section--surface { background: var(--surface); }
.section-head { margin-bottom: 40px; }
.section-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-head--center { text-align: center; max-width: 620px; margin-inline: auto; }
.section-kicker { display: inline-flex; align-items: center; gap: 9px; color: var(--accent); font-size: 13px; font-weight: 700; }
.section-kicker::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--accent); }
.section-head--center .section-kicker::after { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--accent); }
.section-head h2 { color: var(--navy); font-size: clamp(26px, 3vw, 36px); font-weight: 900; letter-spacing: -.03em; line-height: 1.4; margin: 10px 0 8px; }
.section-head p { color: var(--muted); font-size: 14.5px; margin: 0; max-width: 560px; }
.section-head--center p { margin-inline: auto; }
.section-link { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-size: 13.5px; font-weight: 700; white-space: nowrap; padding-bottom: 4px; border-bottom: 2px solid var(--yellow); transition: color .2s; }
.section-link:hover { color: var(--accent); }

/* ---------- نوار آیکونی دسته‌ها ---------- */
.cat-strip-section { background: var(--surface); border-bottom: 1px solid var(--line); padding: 26px 0; }
.cat-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.cat-tile {
  flex: 1 0 auto; min-width: 96px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 14px 10px 12px; border-radius: var(--radius);
  transition: background .2s, transform .2s;
}
.cat-tile:hover { background: var(--accent-soft); transform: translateY(-3px); }
.cat-tile-icon {
  width: 62px; height: 62px; border-radius: 50%;
  position: relative; overflow: hidden;
  background: radial-gradient(circle at 30% 22%, #fff 0 12%, transparent 38%), linear-gradient(145deg, #f8fbff, #edf2f8);
  border: 1.5px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--navy); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 18px rgba(16,41,74,.07);
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.cat-tile-icon::before { content: ""; position: absolute; width: 38px; height: 38px; inset-inline-start: -12px; bottom: -15px; border: 1px solid currentColor; border-radius: 50%; opacity: .12; }
.cat-tile-icon .icon { position: relative; z-index: 1; width: 30px; height: 30px; stroke-width: 1.65; filter: drop-shadow(0 3px 3px rgba(16,41,74,.12)); }
.cat-tile:hover .cat-tile-icon { background: linear-gradient(145deg, var(--accent), var(--accent-hover)); border-color: var(--accent); color: #fff; box-shadow: 0 10px 22px rgba(234,88,12,.25); transform: rotate(-3deg); }
.cat-tile-label { color: var(--text); font-size: 12px; font-weight: 500; text-align: center; white-space: nowrap; }

/* ---------- دسته‌بندی‌ها ---------- */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.category-card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; position: relative; overflow: hidden;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.category-card::after { content: ""; position: absolute; width: 148px; height: 148px; inset-inline-start: -76px; bottom: -92px; border: 1px solid rgba(16,41,74,.07); border-radius: 50%; pointer-events: none; }
.category-card > * { position: relative; z-index: 1; }
.category-card-head { display: flex; align-items: center; gap: 16px; }
.category-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.category-chip {
  display: inline-flex; align-items: center;
  padding: 5px 12px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line);
  color: var(--muted); font-size: 11.5px; font-weight: 500;
  transition: background .15s, color .15s, border-color .15s;
}
a.category-chip:hover { background: var(--accent-soft); border-color: #f5c9a8; color: var(--accent-hover); }
.category-chip--more { color: var(--accent); font-weight: 700; }
.category-card--cta { background: linear-gradient(150deg, #fff7f1, #fff); border-color: #f5d5bb; }
.category-card::before { content: ""; position: absolute; inset-inline-start: 0; top: 18%; bottom: 18%; width: 4px; border-radius: 0 4px 4px 0; background: var(--accent); opacity: 0; transition: opacity .25s; }
.category-card:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-4px); }
.category-card:hover::before { opacity: 1; }
.category-icon {
  width: 76px; height: 76px; flex: 0 0 auto; border-radius: 21px;
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 28% 22%, rgba(255,255,255,.95) 0 12%, transparent 38%), linear-gradient(145deg, #fff7f1, #ffeadd);
  border: 1px solid rgba(234,88,12,.14); color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 12px 24px rgba(16,41,74,.08);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.category-icon::before { content: ""; position: absolute; width: 64px; height: 64px; inset-inline-start: -25px; bottom: -35px; border: 1px solid currentColor; border-radius: 50%; opacity: .16; }
.category-icon::after { content: ""; position: absolute; width: 9px; height: 9px; inset-inline-end: 12px; top: 12px; border-radius: 3px; background: currentColor; opacity: .12; transform: rotate(45deg); }
.category-icon .icon { position: relative; z-index: 1; width: 42px; height: 42px; stroke-width: 1.65; filter: drop-shadow(0 4px 4px rgba(16,41,74,.14)); }
.category-icon--image { width: 108px; height: 108px; border-radius: 27px; }
.category-icon--image img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; padding: 2px; filter: drop-shadow(0 7px 6px rgba(16,41,74,.18)); transition: transform .25s; }
.category-card:hover .category-icon--image img { transform: scale(1.06) translateY(-2px); }
.category-card:nth-child(6n+2) .category-icon { background: radial-gradient(circle at 28% 22%, rgba(255,255,255,.95) 0 12%, transparent 38%), linear-gradient(145deg, #f1f7ff, #dceafb); border-color: rgba(37,99,168,.16); color: #2563a8; }
.category-card:nth-child(6n+3) .category-icon { background: radial-gradient(circle at 28% 22%, rgba(255,255,255,.95) 0 12%, transparent 38%), linear-gradient(145deg, #fff9e8, #f9edc8); border-color: rgba(176,127,7,.17); color: #b07f07; }
.category-card:nth-child(6n+4) .category-icon { background: radial-gradient(circle at 28% 22%, rgba(255,255,255,.95) 0 12%, transparent 38%), linear-gradient(145deg, #effbf5, #daf2e6); border-color: rgba(23,138,80,.16); color: var(--success); }
.category-card:nth-child(6n+5) .category-icon { background: radial-gradient(circle at 28% 22%, rgba(255,255,255,.95) 0 12%, transparent 38%), linear-gradient(145deg, #f7f5ff, #e8e4fb); border-color: rgba(109,91,208,.16); color: #6d5bd0; }
.category-card:nth-child(6n) .category-icon { background: radial-gradient(circle at 28% 22%, rgba(255,255,255,.95) 0 12%, transparent 38%), linear-gradient(145deg, #fff4f4, #fbe1e1); border-color: rgba(192,61,61,.16); color: #c03d3d; }
.category-card--cta .category-icon { background: radial-gradient(circle at 28% 22%, rgba(255,255,255,.95) 0 12%, transparent 38%), linear-gradient(145deg, #fff4ee, #ffe0cf); border-color: rgba(234,88,12,.18); color: var(--accent); }
.category-card:hover .category-icon { transform: translateY(-3px) rotate(-2deg); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 16px 28px rgba(16,41,74,.13); }
.category-card > div { min-width: 0; }
.category-card strong { display: block; color: var(--navy); font-size: 16px; font-weight: 900; }
.category-card small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.category-count { display: inline-flex; align-items: center; gap: 5px; margin-top: 9px; color: var(--accent); font-size: 12px; font-weight: 700; }
.category-count .icon { width: 14px; height: 14px; transition: transform .2s; }
.category-card:hover .category-count .icon { transform: translateX(-4px); }

/* ---------- محصولات ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card {
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.product-card:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-5px); }
.product-media { position: relative; background: #f8fafc; aspect-ratio: 1 / .86; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-media img { display: block; width: 100%; height: 100%; object-fit: cover; padding: 0; transition: transform .35s; }
.product-card:hover .product-media img { transform: scale(1.05); }
.product-media--empty { color: var(--muted-2); }
.product-media--empty .icon { width: 56px; height: 56px; stroke-width: 1.2; }
.product-brand { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--navy); color: #fff; font-size: 10.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; z-index: 1; }
.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product-cat { color: var(--accent); font-size: 11.5px; font-weight: 700; }
.product-title { color: var(--navy); font-size: 14.5px; font-weight: 700; line-height: 1.8; margin: 6px 0 12px; min-height: 52px; }
/* لینک کشیده: کل کارت کلیک‌پذیر است */
.product-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.product-title a:hover { color: var(--accent); }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; }
.product-price { color: var(--navy); font-size: 15px; font-weight: 900; }
.product-price small { color: var(--muted); font-size: 11px; font-weight: 400; }
.product-price--ask { color: var(--accent); font-size: 13px; }
.product-ask-btn {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 38px; padding: 6px 14px;
  background: var(--accent-soft); border: 1.5px solid #f5c9a8; border-radius: 9px;
  color: var(--accent-hover); font-size: 12.5px; font-weight: 700;
  position: relative; z-index: 2;
  transition: background .2s, color .2s, border-color .2s;
}
.product-ask-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.product-more { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); transition: background .2s, color .2s; pointer-events: none; }
.product-card:hover .product-more { background: var(--accent); color: #fff; }
.center-action { display: flex; justify-content: center; margin-top: 42px; }

/* ---------- پنل راهکار پروژه ---------- */
.solution-panel {
  background: var(--navy); border-radius: 24px; color: #fff; overflow: hidden;
  display: grid; grid-template-columns: 1.05fr .95fr; position: relative;
}
.solution-copy { padding: clamp(36px, 5vw, 64px); position: relative; z-index: 1; }
.solution-copy .section-kicker { color: var(--yellow); }
.solution-copy .section-kicker::before { background: var(--yellow); }
.solution-copy h2 { color: #fff; font-size: clamp(26px, 3vw, 38px); font-weight: 900; line-height: 1.45; margin: 12px 0 10px; letter-spacing: -.03em; }
.solution-copy > p { color: rgba(255,255,255,.65); font-size: 14.5px; line-height: 2.1; margin: 0 0 28px; max-width: 460px; }
.solution-steps { display: grid; gap: 16px; margin-bottom: 32px; }
.solution-step { display: flex; align-items: flex-start; gap: 14px; }
.solution-step-num { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.13); color: var(--yellow); font-size: 14px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; }
.solution-step strong { display: block; font-size: 14.5px; font-weight: 700; }
.solution-step small { display: block; color: rgba(255,255,255,.55); font-size: 12.5px; margin-top: 2px; }
.solution-art { position: relative; min-height: 420px; background: linear-gradient(135deg, var(--navy-soft), var(--navy-deep)); overflow: hidden; }
.solution-art::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 46px 46px; }

/* جادهٔ استلیزه */
.road { position: absolute; inset-inline: 12%; bottom: -6%; top: 18%; background: #17304f; border-inline: 3px solid rgba(255,255,255,.2); transform: perspective(430px) rotateX(52deg); border-radius: 8px 8px 0 0; }
.road i { position: absolute; top: 0; bottom: 0; width: 6px; inset-inline-start: 50%; background: repeating-linear-gradient(to bottom, var(--yellow) 0 30px, transparent 30px 62px); }
.road::after { content: ""; position: absolute; inset-inline: -3px; bottom: 0; height: 14px; background: var(--hazard); opacity: .85; }
.road-cone { position: absolute; bottom: 22%; width: 46px; height: 60px; z-index: 2; }
.road-cone::before { content: ""; position: absolute; bottom: 0; inset-inline: 0; height: 9px; border-radius: 3px; background: var(--navy-deep); }
.road-cone::after { content: ""; position: absolute; bottom: 7px; inset-inline-start: 9px; width: 28px; height: 50px; clip-path: polygon(36% 0, 64% 0, 100% 100%, 0 100%); background: linear-gradient(to bottom, var(--accent) 0 30%, #fff 30% 45%, var(--accent) 45% 68%, #fff 68% 80%, var(--accent) 80%); }
.road-cone--a { inset-inline-start: 16%; transform: scale(.85); }
.road-cone--b { inset-inline-end: 14%; bottom: 34%; transform: scale(.65); }
.art-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; background: rgba(10, 28, 52, .78); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px); color: rgba(255,255,255,.85); font-size: 11.5px; padding: 8px 14px; border-radius: 999px; z-index: 3; }
.art-chip .icon { width: 15px; height: 15px; color: var(--yellow); }
.art-chip--top { top: 36px; inset-inline-end: 34px; }
.art-chip--bottom { bottom: 34px; inset-inline-start: 30px; }

/* ---------- چرا ما ---------- */
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.benefit-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px; transition: border-color .25s, box-shadow .25s, transform .25s; }
.benefit-card:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-4px); }
.benefit-icon { width: 56px; height: 56px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); }
.benefit-icon .icon { width: 28px; height: 28px; stroke-width: 1.6; }
.benefit-card:nth-child(2) .benefit-icon { background: #e9f1fb; color: #2563a8; }
.benefit-card:nth-child(3) .benefit-icon { background: var(--yellow-soft); color: #b07f07; }
.benefit-card:nth-child(4) .benefit-icon { background: #e9f7f0; color: var(--success); }
.benefit-card h3 { color: var(--navy); font-size: 16.5px; font-weight: 900; margin: 18px 0 7px; }
.benefit-card p { color: var(--muted); font-size: 13px; line-height: 2; margin: 0; }

/* ---------- نوار CTA ---------- */
.cta-band { background: linear-gradient(120deg, var(--accent) 0%, #d3490a 100%); border-radius: 24px; color: #fff; padding: clamp(32px, 4.5vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 28px; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset-inline-start: -40px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.09); }
.cta-band::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 7px; background: var(--hazard); opacity: .65; }
.cta-band h2 { font-size: clamp(22px, 2.8vw, 32px); font-weight: 900; margin: 0 0 8px; line-height: 1.5; }
.cta-band p { margin: 0; color: rgba(255,255,255,.85); font-size: 14.5px; max-width: 520px; }
.cta-band .btn { background: #fff; color: var(--accent-hover); flex: 0 0 auto; box-shadow: 0 12px 26px rgba(0,0,0,.15); }
.cta-band .btn:hover { background: var(--navy); color: #fff; }

/* ---------- سوالات متداول ---------- */
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.faq-list { border-top: 1.5px solid var(--line); }
.faq-list details { border-bottom: 1.5px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; padding: 20px 4px; color: var(--navy); font-size: 15px; font-weight: 700; transition: color .2s; }
.faq-list summary:hover { color: var(--accent); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-toggle { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%; border: 1.5px solid var(--line); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; transition: transform .25s, background .25s, color .25s, border-color .25s; }
.faq-toggle .icon { width: 15px; height: 15px; }
.faq-list details[open] .faq-toggle { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(45deg); }
.faq-list details p { color: var(--muted); font-size: 13.5px; line-height: 2.1; margin: 0; padding: 0 4px 22px; max-width: 640px; }

/* ---------- فوتر ---------- */
.site-footer { background: var(--navy-deep); color: #fff; position: relative; }
.site-footer::before { content: ""; display: block; height: 5px; background: var(--hazard); opacity: .9; }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 44px; padding: 64px 0 48px; }
.footer-brand .brand-copy strong { color: #fff; }
.footer-brand .brand-copy small { color: rgba(255,255,255,.5); }
.footer-brand .brand-mark { border-color: rgba(255,255,255,.14); box-shadow: none; }
.footer-brand > p { color: rgba(255,255,255,.55); font-size: 13px; line-height: 2.1; margin: 18px 0 18px; max-width: 300px; }
.footer-socials { display: flex; gap: 9px; }
.footer-socials a { width: 38px; height: 38px; border-radius: 11px; border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.75); display: inline-flex; align-items: center; justify-content: center; transition: background .2s, border-color .2s, color .2s, transform .2s; }
.footer-socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-3px); }
.footer-socials .icon { width: 18px; height: 18px; }
.footer-col h3 { color: #fff; font-size: 14.5px; font-weight: 900; margin: 6px 0 18px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-col > a { color: rgba(255,255,255,.58); font-size: 13px; display: inline-flex; align-items: center; gap: 8px; transition: color .2s, transform .2s; }
.footer-col > a:hover { color: var(--yellow); transform: translateX(-4px); }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact > div { display: flex; align-items: flex-start; gap: 11px; color: rgba(255,255,255,.62); font-size: 13px; line-height: 1.9; }
.footer-contact .icon { width: 34px; height: 34px; flex: 0 0 auto; padding: 8px; border-radius: 9px; background: rgba(255,255,255,.07); color: var(--yellow); }
.footer-contact a { transition: color .2s; }
.footer-contact a:hover { color: var(--yellow); }
.footer-contact bdo { direction: ltr; unicode-bidi: bidi-override; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; color: rgba(255,255,255,.4); font-size: 12px; }
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--yellow); }

/* ---------- ریسپانسیو ---------- */
@media (max-width: 1100px) {
  .header-search { max-width: none; }
  .header-phone > div { display: none; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-float--right { right: -8px; }
  .hero-float--left { left: -8px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 860px) {
  .container { width: calc(100% - 34px); }
  .topbar-links { display: none; }
  .topbar-inner { justify-content: center; }
  .catnav { display: none; }
  .mobile-toggle { display: inline-flex; }
  .header-main { gap: 14px; flex-wrap: wrap; }
  .brand { order: 1; }
  .header-cta { order: 2; }
  .header-search { order: 3; flex-basis: 100%; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 44px 0 56px; }
  .hero-lead { font-size: 15px; }
  .hero-visual { max-width: 460px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-inline-start: 0; border-top: 1px solid rgba(255,255,255,.09); justify-content: flex-start; padding: 20px 18px; }
  .stat:nth-child(-n+2) { border-top: 0; }
  .section { padding: 66px 0; }
  .section-head--split { flex-direction: column; align-items: flex-start; gap: 14px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .solution-panel { grid-template-columns: 1fr; }
  .solution-art { min-height: 320px; }
  .faq-layout { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .brand-mark { width: 48px; height: 48px; }
  .brand-copy strong { font-size: 17px; }
  .brand-copy small { display: none; }
  .hero h1 { font-size: 31px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-float--right { top: 18px; right: 110px; }
  .hero-float--left { bottom: 20px; left: 0; }
  .hero-float { padding: 9px 12px; }
  .hero-float .icon { width: 30px; height: 30px; padding: 6px; }
  .category-grid { grid-template-columns: 1fr; gap: 12px; }
  .product-grid { gap: 12px; }
  .product-title { font-size: 12.5px; min-height: 46px; }
  .product-price { font-size: 13px; }
  .benefit-grid { grid-template-columns: 1fr; gap: 12px; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 36px; }
  .footer-bottom { flex-direction: column; justify-content: center; padding: 16px 0; gap: 4px; }
}

/* ---------- صفحه ۴۰۴ ---------- */
.error-page { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.error-page::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(16, 41, 74, .05) 1.2px, transparent 1.2px); background-size: 26px 26px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 80%); }
.error-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 74px 0 92px; }
.error-figure { display: flex; align-items: flex-end; justify-content: center; gap: 6px; margin-bottom: 18px; user-select: none; }
.error-digit { color: var(--navy); font-size: clamp(96px, 16vw, 170px); font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.error-cone { display: inline-flex; align-items: flex-end; justify-content: center; padding-bottom: clamp(8px, 1.5vw, 16px); }
.error-cone .icon { width: clamp(74px, 12vw, 132px); height: clamp(74px, 12vw, 132px); color: var(--accent); stroke-width: 1.3; animation: cone-drop .7s cubic-bezier(.2, .9, .3, 1.25) .2s backwards; }
@keyframes cone-drop { from { opacity: 0; transform: translateY(-46px) rotate(-10deg); } to { opacity: 1; transform: translateY(0) rotate(0); } }
.error-inner h1 { color: var(--navy); font-size: clamp(26px, 3.4vw, 40px); font-weight: 900; letter-spacing: -.03em; margin: 18px 0 10px; }
.error-inner > p { color: var(--muted); font-size: 15px; line-height: 2.1; max-width: 460px; margin: 0; }
.error-search { display: flex; align-items: center; gap: 6px; width: min(480px, 100%); margin-top: 28px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 5px; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.error-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(234, 88, 12, .1); }
.error-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 14px; font-size: 14px; outline: none; }
.error-search button { width: 46px; height: 46px; border-radius: 7px; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: background .2s; }
.error-search button:hover { background: var(--accent); }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.error-cats { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 34px; }
.error-cats > span { color: var(--muted); font-size: 12.5px; }
@media (max-width: 560px) {
  .error-inner { padding: 50px 0 70px; }
  .error-actions .btn { width: 100%; }
}

/* ---------- باکس شناور تماس ---------- */
.call-fab {
  position: fixed; left: 22px; bottom: 22px; z-index: 70;
  display: flex; align-items: center; gap: 11px;
  background: var(--navy); color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px; padding: 9px 20px 9px 10px;
  box-shadow: 0 16px 40px rgba(10, 28, 52, .35);
  animation: call-fab-in .6s cubic-bezier(.2, .9, .3, 1.2) .8s backwards;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.call-fab:hover { background: var(--navy-soft); transform: translateY(-3px); box-shadow: 0 20px 48px rgba(10, 28, 52, .42); }
.call-fab-icon {
  width: 46px; height: 46px; flex: 0 0 auto; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
}
.call-fab-icon .icon { width: 21px; height: 21px; animation: call-ring 2.4s ease-in-out infinite; }
.call-fab-icon::before, .call-fab-icon::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(234, 88, 12, .55);
  animation: call-pulse 2.4s ease-out infinite;
}
.call-fab-icon::after { animation-delay: 1.2s; }
.call-fab-body { display: flex; flex-direction: column; line-height: 1.5; }
.call-fab-body small { color: rgba(255,255,255,.6); font-size: 10.5px; }
.call-fab-body strong { font-size: 15px; font-weight: 900; }
.call-fab-body bdo { direction: ltr; unicode-bidi: bidi-override; }

@keyframes call-fab-in {
  from { opacity: 0; transform: translateY(70px) scale(.8); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes call-pulse {
  0%   { transform: scale(1); opacity: 1; }
  70%, 100% { transform: scale(1.75); opacity: 0; }
}
@keyframes call-ring {
  0%, 100% { transform: rotate(0); }
  4%  { transform: rotate(-14deg); }
  8%  { transform: rotate(11deg); }
  12% { transform: rotate(-8deg); }
  16% { transform: rotate(5deg); }
  20% { transform: rotate(0); }
}

@media (max-width: 560px) {
  .call-fab { left: 14px; bottom: 14px; padding: 7px 14px 7px 8px; }
  .call-fab-icon { width: 40px; height: 40px; }
  .call-fab-body strong { font-size: 13px; }
}

/* ---------- کاهش حرکت ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   صفحات داخلی — فروشگاه، محصول، تماس، درباره
   ============================================================ */

/* ---------- مسیر صفحه ---------- */
.breadcrumbs { background: var(--surface); border-bottom: 1px solid var(--line); }
.breadcrumbs-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 52px; font-size: 12.5px; }
.breadcrumbs a { color: var(--muted); transition: color .15s; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { color: var(--navy); font-weight: 700; }
.breadcrumbs .icon { width: 13px; height: 13px; color: var(--muted-2); transform: rotate(180deg); }

/* ---------- چیدمان فروشگاه ---------- */
.shop-layout { display: grid; grid-template-columns: 290px 1fr; gap: 26px; align-items: start; padding: 30px 0 72px; }
.shop-sidebar { display: grid; gap: 16px; position: sticky; top: 96px; }
.sidebar-box { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.sidebar-title { color: var(--navy); font-size: 14px; font-weight: 900; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); position: relative; }
.sidebar-title::after { content: ""; position: absolute; bottom: -1px; inset-inline-start: 0; width: 42px; height: 2.5px; border-radius: 2px; background: var(--accent); }
.sidebar-search { display: flex; gap: 6px; }
.sidebar-search input { flex: 1; min-width: 0; background: var(--bg); border: 1.5px solid var(--line); border-radius: 9px; padding: 9px 12px; font-size: 13px; outline: none; transition: border-color .2s; }
.sidebar-search input:focus { border-color: var(--accent); }
.sidebar-search button { width: 40px; border-radius: 9px; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: background .2s; }
.sidebar-search button:hover { background: var(--accent); }
.sidebar-cats { display: grid; gap: 2px; }
.sidebar-cat summary { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 9px; color: var(--text); font-size: 13.5px; font-weight: 500; cursor: pointer; list-style: none; transition: background .15s; }
.sidebar-cat summary::-webkit-details-marker { display: none; }
.sidebar-cat summary:hover { background: var(--bg); }
.sidebar-cat summary .icon { width: 19px; height: 19px; color: var(--accent); flex: 0 0 auto; }
.sidebar-cat summary span { flex: 1; }
.sidebar-cat summary b { color: var(--muted-2); font-size: 11px; font-weight: 500; }
.sidebar-cat-caret { width: 13px !important; height: 13px !important; color: var(--muted-2) !important; transition: transform .2s; }
.sidebar-cat[open] .sidebar-cat-caret { transform: rotate(180deg); }
.sidebar-cat-children { display: grid; gap: 1px; margin: 2px 16px 8px 0; padding-inline-start: 10px; border-inline-start: 2px solid var(--line); }
.sidebar-cat-children a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 8px; color: var(--muted); font-size: 12.5px; transition: background .15s, color .15s; }
.sidebar-cat-children a:hover { background: var(--bg); color: var(--navy); }
.sidebar-cat-children a.is-active { background: var(--accent-soft); color: var(--accent-hover); font-weight: 700; }
.sidebar-cat-children b { font-size: 10.5px; font-weight: 500; color: var(--muted-2); }
.sidebar-brands { display: grid; gap: 4px; }
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; font-size: 13px; color: var(--text); cursor: pointer; transition: background .15s; }
.sidebar-brand:hover { background: var(--bg); }
.sidebar-brand input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }
.sidebar-box--cta { text-align: center; background: linear-gradient(160deg, #fff7f1, #fff); border-color: #f5d5bb; }
.sidebar-box--cta .icon--lg { width: 44px; height: 44px; margin: 4px auto 10px; color: var(--accent); }
.sidebar-box--cta strong { display: block; color: var(--navy); font-size: 14.5px; font-weight: 900; }
.sidebar-box--cta p { color: var(--muted); font-size: 12px; line-height: 1.9; margin: 7px 0 14px; }
.sidebar-box--cta .btn { width: 100%; }

/* ---------- تولبار و گرید ---------- */
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 14px 20px; margin-bottom: 18px; }
.shop-title { display: inline; color: var(--navy); font-size: 18px; font-weight: 900; margin: 0 0 0; }
.shop-count { color: var(--muted); font-size: 12px; margin-inline-start: 10px; }
.shop-sort { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--muted); }
.shop-sort select { background: var(--bg); border: 1.5px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 12.5px; color: var(--navy); cursor: pointer; outline: none; }
.shop-sort select:focus { border-color: var(--accent); }
.product-grid--shop { grid-template-columns: repeat(3, 1fr); }
.shop-empty { background: var(--surface); border: 1.5px dashed var(--line); border-radius: var(--radius-lg); padding: 70px 24px; text-align: center; }
.shop-empty .icon { width: 54px; height: 54px; color: var(--muted-2); margin: 0 auto 14px; stroke-width: 1.2; }
.shop-empty strong { display: block; color: var(--navy); font-size: 16px; font-weight: 900; }
.shop-empty p { color: var(--muted); font-size: 13px; margin: 8px auto 18px; max-width: 380px; }

/* متن سئوی دسته */
.category-seo { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); margin-top: 26px; }
.category-seo h2 { color: var(--navy); font-size: 17px; font-weight: 900; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); position: relative; }
.category-seo h2::after { content: ""; position: absolute; bottom: -1px; inset-inline-start: 0; width: 52px; height: 2.5px; border-radius: 2px; background: var(--accent); }
.category-seo .prose { font-size: 13.5px; color: var(--muted); }
.category-seo .prose p:last-child { margin-bottom: 0; }

/* ---------- صفحه‌بندی ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 34px; }
.page-item { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 8px; border-radius: 10px; background: var(--surface); border: 1.5px solid var(--line); color: var(--text); font-size: 13.5px; font-weight: 700; transition: border-color .15s, color .15s, background .15s; }
a.page-item:hover { border-color: var(--accent); color: var(--accent); }
.page-item.is-current { background: var(--navy); border-color: var(--navy); color: #fff; }
.page-item.is-disabled { opacity: .4; }

/* ---------- صفحه محصول ---------- */
.product-page { padding: 30px 0 72px; }
.product-layout { display: grid; grid-template-columns: minmax(300px, 460px) 1fr 300px; gap: 26px; align-items: start; }
.product-gallery { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; position: sticky; top: 96px; }
.product-gallery-main { aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; background: #fafbfc; position: relative; }
.product-gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 26px; }
.product-gallery-main .icon { width: 90px; height: 90px; color: var(--muted-2); stroke-width: 1; }
.product-thumbs { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); overflow-x: auto; }
.product-thumb { width: 66px; height: 66px; flex: 0 0 auto; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; padding: 0; background: #fff; transition: border-color .15s; }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-thumb.is-active, .product-thumb:hover { border-color: var(--accent); }
.product-info h1 { color: var(--navy); font-size: clamp(19px, 2.2vw, 25px); font-weight: 900; line-height: 1.7; margin: 0 0 6px; }
.product-info-slug { color: var(--muted-2); font-size: 11.5px; direction: ltr; text-align: end; display: block; }
.product-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.product-meta a, .product-meta span { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; color: var(--muted); font-size: 12px; }
.product-meta a:hover { color: var(--accent); border-color: #f5c9a8; }
.product-short { background: var(--surface); border: 1.5px solid var(--line); border-inline-start: 4px solid var(--accent); border-radius: var(--radius); padding: 16px 18px; color: var(--text); font-size: 13.5px; line-height: 2.1; margin: 16px 0; }
.product-specs { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin: 18px 0; }
.product-specs h2 { font-size: 14px; font-weight: 900; color: var(--navy); margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--bg); }
.product-specs dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.product-specs > dl > div { display: flex; justify-content: space-between; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.product-specs dt { color: var(--muted); }
.product-specs dd { margin: 0; color: var(--navy); font-weight: 700; }
.buy-box { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 22px; position: sticky; top: 96px; display: grid; gap: 14px; }
.buy-box::before { content: ""; display: block; height: 4px; margin: -22px -22px 6px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--hazard); opacity: .9; }
.buy-box-price { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.buy-box-price strong { color: var(--navy); font-size: 23px; font-weight: 900; }
.buy-box-price strong small { color: var(--muted); font-size: 12px; font-weight: 400; }
.buy-box-price .ask { color: var(--accent); font-size: 16px; font-weight: 900; }
.buy-box-note { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 11.5px; line-height: 1.9; }
.buy-box-note .icon { width: 17px; height: 17px; color: var(--success); flex: 0 0 auto; margin-top: 3px; }
.buy-box .btn { width: 100%; }
.buy-box-divider { border: 0; border-top: 1px dashed var(--line); margin: 2px 0; }
.product-description { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 34px); margin-top: 26px; }
.product-description h2 { color: var(--navy); font-size: 17px; font-weight: 900; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); position: relative; }
.product-description h2::after { content: ""; position: absolute; bottom: -1px; inset-inline-start: 0; width: 52px; height: 2.5px; border-radius: 2px; background: var(--accent); }
.prose { color: var(--text); font-size: 14px; line-height: 2.2; }
.prose p { margin: 0 0 14px; }
.prose img { border-radius: var(--radius); margin: 10px 0; }
.prose h3, .prose h4 { color: var(--navy); }
.related-section { margin-top: 40px; }

/* ---------- صفحه تماس ---------- */
.contact-hero { background: var(--navy); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.contact-hero::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 5px; background: var(--hazard); opacity: .9; }
.contact-hero h1 { font-size: clamp(26px, 3vw, 36px); font-weight: 900; margin: 10px 0 8px; }
.contact-hero p { color: rgba(255,255,255,.65); font-size: 14.5px; line-height: 2.1; margin: 0; max-width: 640px; }
.contact-hero .section-kicker { color: var(--yellow); }
.contact-hero .section-kicker::before { background: var(--yellow); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: -34px; position: relative; z-index: 2; }
.contact-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 26px 22px; text-align: center; transition: transform .2s, box-shadow .2s; }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.contact-card .icon { width: 52px; height: 52px; padding: 13px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); margin: 0 auto 14px; }
.contact-card strong { display: block; color: var(--navy); font-size: 15px; font-weight: 900; margin-bottom: 6px; }
.contact-card p, .contact-card a { color: var(--muted); font-size: 13px; line-height: 2; }
.contact-card a:hover { color: var(--accent); }
.contact-card bdo { direction: ltr; unicode-bidi: bidi-override; }

/* فرم تماس */
.contact-form-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 48px); position: relative; overflow: hidden; }
.contact-form-panel::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 5px; background: var(--hazard); opacity: .9; }
.contact-form-copy h2 { color: var(--navy); font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; margin: 10px 0 8px; }
.contact-form-copy p { color: var(--muted); font-size: 14px; line-height: 2.1; margin: 0; max-width: 340px; }
.contact-form-points { display: grid; gap: 12px; margin-top: 26px; }
.contact-form-points span { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-size: 13px; font-weight: 500; }
.contact-form-points .icon { width: 20px; height: 20px; color: var(--success); flex: 0 0 auto; }
.contact-form { display: grid; gap: 16px; align-content: start; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 7px; color: var(--text); font-size: 13px; font-weight: 700; }
.contact-form label b { color: var(--accent); font-weight: 900; display: inline; }
.contact-form input, .contact-form select, .contact-form textarea {
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 14px; font-weight: 400; outline: none; resize: vertical; width: 100%;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(234, 88, 12, .1); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--muted-2); }
.contact-form .is-invalid { border-color: #d23636; }
.field-error { color: #c22f2f; font-size: 11.5px; font-weight: 500; }
.contact-form .btn { justify-self: start; min-width: 200px; }
.form-note { color: var(--muted-2); font-size: 11.5px; }
.form-alert { display: flex; align-items: flex-start; gap: 10px; border-radius: var(--radius-sm); padding: 13px 16px; font-size: 13.5px; font-weight: 500; line-height: 1.9; }
.form-alert .icon { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 3px; }
.form-alert--success { background: #e9f7f0; border: 1.5px solid #bfe5d2; color: #14683c; }
.form-alert--error { background: #fdeeee; border: 1.5px solid #f2c7c7; color: #a12727; }
@media (max-width: 860px) {
  .contact-form-panel { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .contact-form .btn { justify-self: stretch; }
}

.contact-map { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.contact-map iframe { display: block; width: 100%; height: 420px; border: 0; }
.contact-map-caption { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.contact-map-caption .icon { width: 19px; height: 19px; color: var(--accent); flex: 0 0 auto; }
@media (max-width: 560px) { .contact-map iframe { height: 300px; } }

/* ---------- صفحه درباره ---------- */
.about-hero { background: linear-gradient(180deg, #fff, var(--bg)); border-bottom: 1px solid var(--line); padding: 60px 0; }
.about-hero h1 { color: var(--navy); font-size: clamp(26px, 3.2vw, 40px); font-weight: 900; line-height: 1.5; margin: 12px 0 10px; }
.about-hero p { color: var(--muted); font-size: 15px; line-height: 2.2; max-width: 720px; margin: 0; }
.about-body { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.about-body .prose { font-size: 14.5px; }
.about-visual { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 30px; text-align: center; }
.about-visual img { width: min(320px, 90%); margin: 0 auto 10px; }
.about-visual figcaption { color: var(--muted); font-size: 12.5px; }

/* ---------- ریسپانسیو صفحات داخلی ---------- */
@media (max-width: 1100px) {
  .shop-layout { grid-template-columns: 250px 1fr; }
  .product-grid--shop { grid-template-columns: repeat(2, 1fr); }
  .product-layout { grid-template-columns: minmax(280px, 400px) 1fr; }
  .product-layout .buy-box { grid-column: 1 / -1; position: static; }
}
@media (max-width: 860px) {
  .shop-layout { grid-template-columns: 1fr; padding-top: 20px; }
  .shop-sidebar { position: static; order: 2; }
  .shop-main { order: 1; }
  .shop-toolbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .product-layout { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .contact-grid { grid-template-columns: 1fr; margin-top: 22px; }
  .about-body { grid-template-columns: 1fr; }
  .product-specs dl { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .product-grid--shop { grid-template-columns: repeat(2, 1fr); }
  .breadcrumbs-inner { font-size: 11px; }
  .pagination { flex-wrap: wrap; }
}

/* ============================================================
   بلاگ
   ============================================================ */
.blog-cat-list { display: grid; gap: 2px; }
.blog-cat-list a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 9px; color: var(--text); font-size: 13.5px; transition: background .15s, color .15s; }
.blog-cat-list a:hover { background: var(--bg); color: var(--navy); }
.blog-cat-list a.is-active { background: var(--accent-soft); color: var(--accent-hover); font-weight: 700; }
.blog-cat-list b { font-size: 11px; font-weight: 500; color: var(--muted-2); }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: border-color .25s, box-shadow .25s, transform .25s; }
.post-card:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-4px); }
.post-media { display: block; aspect-ratio: 16/10; background: var(--bg); overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.post-card:hover .post-media img { transform: scale(1.05); }
.post-media-empty { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted-2); }
.post-media-empty .icon { width: 44px; height: 44px; stroke-width: 1.2; }
.post-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 11.5px; color: var(--muted); }
.post-cat { color: var(--accent); font-weight: 700; }
.post-cat:hover { color: var(--accent-hover); }
.post-title { font-size: 15px; font-weight: 900; line-height: 1.8; margin: 9px 0 8px; color: var(--navy); }
.post-title a:hover { color: var(--accent); }
.post-excerpt { color: var(--muted); font-size: 12.5px; line-height: 2; margin: 0 0 12px; }
.post-more { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; color: var(--navy); font-size: 12.5px; font-weight: 700; }
.post-card:hover .post-more { color: var(--accent); }
.post-more .icon { transition: transform .2s; }
.post-card:hover .post-more .icon { transform: translateX(-4px); }

/* تک مقاله */
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 26px; align-items: start; padding: 30px 0 72px; }
.article-main { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 44px); }
.article-head h1 { color: var(--navy); font-size: clamp(23px, 2.8vw, 32px); font-weight: 900; line-height: 1.6; margin: 12px 0 10px; }
.article-lead { color: var(--muted); font-size: 15px; line-height: 2.1; margin: 0; }
.article-cover { margin: 22px 0; border-radius: var(--radius); overflow: hidden; }
.article-cover img { width: 100%; }
.article-prose { margin-top: 6px; }
.article-prose h2 { color: var(--navy); font-size: 19px; font-weight: 900; margin: 30px 0 12px; padding-inline-start: 14px; position: relative; }
.article-prose h2::before { content: ""; position: absolute; inset-inline-start: 0; top: 6px; bottom: 6px; width: 4px; border-radius: 3px; background: var(--accent); }
.article-prose h3 { color: var(--navy); font-size: 16px; font-weight: 700; margin: 22px 0 8px; }
.article-prose ul, .article-prose ol { padding-inline-start: 22px; margin: 0 0 14px; }
.article-prose li { margin-bottom: 6px; }
.article-prose table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13px; }
.article-prose th, .article-prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: right; }
.article-prose th { background: var(--bg); color: var(--navy); font-weight: 700; }
.article-aside { position: sticky; top: 96px; }
.related-posts { display: grid; gap: 12px; }
.related-post { display: flex; gap: 11px; align-items: flex-start; }
.related-post-thumb { width: 64px; height: 52px; flex: 0 0 auto; border-radius: 9px; background: var(--bg); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--muted-2); }
.related-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-post strong { display: block; color: var(--text); font-size: 12.5px; font-weight: 700; line-height: 1.8; transition: color .15s; }
.related-post:hover strong { color: var(--accent); }
.related-post small { color: var(--muted-2); font-size: 10.5px; }

@media (max-width: 1100px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
}
@media (max-width: 560px) { .post-grid { grid-template-columns: 1fr; } }
