/* ==========================================================================
   ابزارکار — استایل اصلی قالب
   ========================================================================== */

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

:root {
  --ink: #18202c;
  --ink-2: #263040;
  --steel: #5b6676;
  --steel-2: #8a94a3;
  --line: #dde2e8;
  --paper: #f2f4f6;
  --white: #ffffff;
  --red: #e2312f;
  --red-dark: #b8201f;
  --red-soft: #fdecec;
  --green: #26a34a;
  --green-soft: #e6f5ea;
  --amber: #e9a20f;
  --amber-soft: #fdf3dc;

  --font: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  --fs-xs: .8125rem;
  --fs-sm: .875rem;
  --fs-md: 1rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.625rem;
  --fs-2xl: 2.125rem;
  --fs-3xl: clamp(2.125rem, 1.3rem + 3.2vw, 3.5rem);

  --wrap: 1240px;
  --gutter: clamp(16px, 3vw, 32px);
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  direction: rtl;
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.9;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; line-height: 1.4; font-weight: 800; color: var(--ink); }
ul, ol { padding-inline-start: 1.25em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text,
.sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
  clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; right: 8px;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
}

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--red); --b-fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .55em 1.5em; border: 0; border-radius: 999px;
  background: var(--b-bg); color: var(--b-fg); font-weight: 700; font-size: var(--fs-md);
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.35), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.btn:hover { color: var(--b-fg); transform: translateY(-2px); box-shadow: 0 10px 24px -10px var(--b-bg); }
.btn:hover::after { opacity: 1; }
.btn:active { transform: translateY(0); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.btn--ink { --b-bg: var(--ink); }
.btn--white { --b-bg: #fff; --b-fg: var(--red-dark); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Topbar ---------- */
.topbar { background: var(--ink); color: #c9d0da; font-size: var(--fs-xs); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar a { color: #fff; }
.topbar a:hover { color: #ffb3b2; }
.topbar__info { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topbar__info span { display: inline-flex; gap: 6px; align-items: center; }
.topbar__info svg { width: 15px; height: 15px; opacity: .7; }
.topbar__links { display: flex; gap: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header.is-stuck { box-shadow: 0 10px 30px -18px rgba(24,32,44,.35); }

.header-main { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.is-stuck .header-main { min-height: 62px; }

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { max-height: 56px; width: auto; }
.is-stuck .brand img { max-height: 44px; }
.brand__mark { width: 62px; height: 52px; flex: none; }
.is-stuck .brand__mark { width: 50px; height: 42px; }
.brand__divider { width: 1.5px; align-self: stretch; margin-block: 6px; background: #c9cfd6; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; gap: 2px; }
.brand__name { font-size: 2.3rem; font-weight: 900; color: var(--red); letter-spacing: -1px; line-height: 1; }
.is-stuck .brand__name { font-size: 1.9rem; }
.brand__tag { font-size: .74rem; color: var(--steel); font-weight: 500; }

.header-search { flex: 1; max-width: 520px; position: relative; }
.header-search input[type="search"] {
  width: 100%; height: 48px; padding: 0 20px 0 54px; border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--paper); transition: border-color .2s, background .2s, box-shadow .2s;
}
.header-search input[type="search"]:focus { outline: 0; border-color: var(--red); background: #fff; box-shadow: 0 0 0 4px var(--red-soft); }
.header-search button {
  position: absolute; left: 5px; top: 5px; width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: var(--red); color: #fff; display: grid; place-items: center; cursor: pointer;
}
.header-search button svg { width: 18px; height: 18px; }

.header-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.icon-btn {
  position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); border: 0; cursor: pointer; transition: background .2s, transform .2s;
}
.icon-btn:hover { background: var(--red-soft); color: var(--red); transform: translateY(-1px); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: -2px; left: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; line-height: 1;
  border: 2px solid #fff;
}
.cart-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); } }
.header-phone { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); color: var(--steel); white-space: nowrap; }
.header-phone strong { display: block; color: var(--ink); font-size: 1.05rem; direction: ltr; text-align: right; }
.header-phone .ring { width: 42px; height: 42px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: grid; place-items: center; position: relative; }
.header-phone .ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--red);
  animation: ring 2.4s ease-out infinite; opacity: 0;
}
@keyframes ring { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }
.header-phone .ring svg { width: 20px; height: 20px; }

.menu-toggle { display: none; }

/* ---------- Navigation ---------- */
.nav-bar { border-top: 1px solid var(--line); }
.is-stuck .nav-bar { display: none; }
.nav-bar .wrap { display: flex; align-items: stretch; gap: 8px; }
.cat-trigger {
  display: inline-flex; align-items: center; gap: 10px; padding: 0 20px; margin-block: 8px; min-height: 44px;
  border-radius: var(--r-md); border: 0; background: var(--red); color: #fff; font-weight: 700; cursor: pointer; position: relative;
}
.cat-trigger svg { width: 20px; height: 20px; }
.cat-menu-wrap { position: relative; }
.cat-menu {
  position: absolute; top: calc(100% - 4px); right: 0; width: 300px; padding: 10px; margin: 0; list-style: none;
  background: #fff; border-radius: var(--r-md); box-shadow: 0 24px 50px -20px rgba(24,32,44,.4); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s var(--ease); z-index: 30;
}
.cat-menu-wrap:hover .cat-menu, .cat-menu-wrap:focus-within .cat-menu, .cat-menu-wrap.is-open .cat-menu { opacity: 1; visibility: visible; transform: none; }
.cat-menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); font-weight: 500; transition: background .2s, padding .2s; }
.cat-menu a:hover { background: var(--paper); padding-inline-start: 18px; }
.cat-menu a span.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .2s; flex: none; }
.cat-menu a:hover span.dot { background: var(--red); }

.primary-menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; align-items: center; flex-wrap: wrap; }
.primary-menu > li { position: relative; }
.primary-menu > li > a {
  display: block; padding: 18px 14px; font-weight: 600; font-size: .95rem; position: relative;
}
.primary-menu > li > a::after {
  content: ""; position: absolute; right: 14px; left: 14px; bottom: 10px; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.primary-menu > li > a:hover::after,
.primary-menu > li.current-menu-item > a::after { transform: scaleX(1); }
.primary-menu > li.current-menu-item > a { color: var(--red); }
.primary-menu .sub-menu {
  position: absolute; top: 100%; right: 0; min-width: 220px; list-style: none; margin: 0; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 24px 50px -20px rgba(24,32,44,.4);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .25s var(--ease); z-index: 30;
}
.primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-menu .sub-menu a { display: block; padding: 8px 12px; border-radius: var(--r-sm); }
.primary-menu .sub-menu a:hover { background: var(--paper); }

/* ---------- Mobile drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(24,32,44,.55); opacity: 0; transition: opacity .3s; }
.drawer__panel {
  position: absolute; top: 0; bottom: 0; right: 0; width: min(86vw, 360px); background: #fff; padding: 20px;
  transform: translateX(100%); transition: transform .4s var(--ease); overflow-y: auto; display: flex; flex-direction: column; gap: 18px;
}
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer li a { display: block; padding: 11px 4px; border-bottom: 1px solid var(--paper); font-weight: 600; }
.drawer .sub-menu { padding-inline-start: 14px; }
.drawer .sub-menu a { font-weight: 400; color: var(--steel); }
.drawer h3 { font-size: var(--fs-sm); color: var(--steel); margin: 6px 0 0; }
body.drawer-open { overflow: hidden; }

/* ==========================================================================
   HERO — بازرس رنگ
   ========================================================================== */
.hero { position: relative; padding: clamp(36px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); overflow: hidden; background: var(--paper); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px; opacity: .55;
  mask-image: radial-gradient(ellipse at 30% 50%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, #000 20%, transparent 75%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero__copy h1 { font-size: var(--fs-3xl); font-weight: 900; line-height: 1.3; letter-spacing: -.5px; margin-bottom: .45em; }
.hero__copy h1 .line { display: block; overflow: hidden; }
.hero__copy h1 .line > span { display: inline-block; transform: translateY(105%); animation: lineUp .9s var(--ease) forwards; }
.hero__copy h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero__copy h1 .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes lineUp { to { transform: none; } }
.hero__copy p { font-size: var(--fs-lg); color: var(--steel); max-width: 34ch; line-height: 1.85; opacity: 0; animation: fadeIn .8s .45s forwards; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; opacity: 0; animation: fadeIn .8s .6s forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.hero__trust { display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; font-size: var(--fs-sm); color: var(--steel); opacity: 0; animation: fadeIn .8s .75s forwards; }
.hero__trust span { display: inline-flex; gap: 8px; align-items: center; }
.hero__trust svg { width: 20px; height: 20px; color: var(--green); }

/* Inspector stage */
.inspector {
  position: relative; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(24,32,44,.35); padding: 22px 22px 18px;
  opacity: 0; animation: fadeIn .9s .2s forwards;
}
.inspector__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.inspector__title { font-weight: 800; font-size: var(--fs-md); }
.inspector__hint { font-size: var(--fs-xs); color: var(--steel); }
.inspector__stage { position: relative; }
.car-svg { width: 100%; height: auto; overflow: visible; display: block; }
.car-svg .blueprint { opacity: .7; }
.car-svg .car-img { pointer-events: none; }
.car-svg .panel {
  fill: rgba(255,255,255,0); stroke: transparent; stroke-width: 2; stroke-linejoin: round; cursor: pointer;
  transition: fill .5s var(--ease), stroke .4s;
}
.car-svg .panel:hover { fill: rgba(226,49,47,.1); stroke: rgba(226,49,47,.6); stroke-dasharray: 6 5; }
.car-svg .panel.is-scanning { animation: scan 1s ease-in-out infinite; stroke: var(--red); stroke-dasharray: 6 5; }
@keyframes scan { 50% { fill: rgba(226,49,47,.2); } }
.car-svg .panel[data-state="ok"] { fill: rgba(38,163,74,.3); stroke: var(--green); stroke-dasharray: none; }
.car-svg .panel[data-state="paint"] { fill: rgba(233,162,15,.38); stroke: var(--amber); stroke-dasharray: none; }
.car-svg .panel[data-state="putty"] { fill: rgba(226,49,47,.32); stroke: var(--red); stroke-dasharray: none; }
.car-svg .panel:focus { outline: none; }
.car-svg .panel:focus-visible { stroke: var(--red); stroke-width: 3; }
.car-svg .leader { fill: none; stroke-width: 1.6; stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset .7s var(--ease); pointer-events: none; }
.car-svg .leader.is-on { stroke-dashoffset: 0; }
.car-svg .leader-dot { opacity: 0; transition: opacity .3s; pointer-events: none; stroke: #fff; stroke-width: 2; }
.car-svg .leader-dot.is-on { opacity: 1; }
.car-svg .tag-g { opacity: 0; transform: translateY(8px); transition: opacity .4s .3s, transform .4s .3s var(--ease); pointer-events: none; }
.car-svg .tag-g.is-on { opacity: 1; transform: none; }
.car-svg .tag-bg { fill: #fff; stroke: currentColor; stroke-width: 2; }
.car-svg .tag { direction: ltr; unicode-bidi: plaintext; font-family: var(--font); font-size: 20px; font-weight: 800; text-anchor: middle; }

/* دستگاه متحرک */
.probe { pointer-events: none; opacity: 0; transition: transform 1s var(--ease), opacity .4s; }
.probe.is-on { opacity: 1; }

.device__body { transition: transform .3s var(--ease); filter: drop-shadow(0 18px 18px rgba(24,32,44,.35)); }
.probe.is-reading .device__body { animation: press .55s var(--ease); }
@keyframes press { 40% { transform: translateY(14px); } }
.device__neck { fill: #2b3442; }
.device__tip { fill: var(--red); }
.device__brand { font-family: var(--font); font-size: 15px; font-weight: 800; fill: #ff6b69; text-anchor: middle; letter-spacing: 1px; }
.device__screen { fill: #b9d6b0; transition: fill .4s; }
.probe[data-state="paint"] .device__screen { fill: #e5d39a; }
.probe[data-state="putty"] .device__screen { fill: #e9b1a6; }
.dev-val { font-family: var(--font); font-size: 44px; font-weight: 800; fill: #1c2a1a; text-anchor: end; font-variant-numeric: tabular-nums; }
.dev-unit { font-family: var(--font); font-size: 15px; font-weight: 700; fill: #1c2a1a; text-anchor: end; }
.dev-stat { font-family: var(--font); font-size: 14px; font-weight: 700; fill: #1c2a1a; text-anchor: middle; }
.probe__pulse { fill: none; stroke: var(--red); stroke-width: 4; opacity: 0; transform-box: fill-box; transform-origin: center; }
.probe.is-reading .probe__pulse { animation: pulse 1.1s ease-out; }
.probe.is-reading .probe__pulse--2 { animation-delay: .35s; }
@keyframes pulse { 0% { opacity: .9; transform: scale(.5); } 100% { opacity: 0; transform: scale(3); } }

/* Gauge device */
.gauge-row { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; margin-top: 10px; }
.gauge { width: 200px; border-radius: 16px; padding: 8px; background: var(--ink); box-shadow: 0 14px 26px -14px rgba(24,32,44,.6); position: relative; }
.gauge__brand { display: flex; justify-content: space-between; font-size: 10px; color: #9aa6b6; margin: 0 4px 8px; direction: ltr; }
.gauge__brand b { color: #ff6b69; font-weight: 800; }
.gauge__screen {
  border-radius: 10px; padding: 10px 12px 8px; background: #b9d6b0; color: #1c2a1a; position: relative; overflow: hidden;
  box-shadow: inset 0 3px 8px rgba(0,0,0,.35); transition: background .4s;
}
.gauge__screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(255,255,255,.12) 50%); background-size: 100% 4px; pointer-events: none; }
.gauge__screen[data-state="paint"] { background: #e5d39a; }
.gauge__screen[data-state="putty"] { background: #e9b1a6; }
.gauge__top { display: flex; justify-content: space-between; font-size: 10px; opacity: .75; direction: ltr; }
.gauge__value { direction: ltr; display: flex; align-items: baseline; justify-content: center; gap: 4px; font-weight: 800; font-variant-numeric: tabular-nums; }
.gauge__value b { font-size: 2.6rem; line-height: 1.1; letter-spacing: 1px; min-width: 3ch; text-align: right; }
.gauge__value small { font-size: .85rem; }
.gauge__status { text-align: center; font-size: 12px; font-weight: 700; min-height: 1.6em; }
.gauge__keys { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.gauge__keys i { width: 26px; height: 26px; border-radius: 50%; background: #3b4759; box-shadow: inset 0 -2px 0 rgba(0,0,0,.4); }
.gauge__keys i:nth-child(2) { background: var(--red); }

.readout h3 { font-size: var(--fs-lg); margin: 0 0 4px; }
.readout p { color: var(--steel); font-size: var(--fs-sm); margin: 0 0 12px; min-height: 3.6em; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; margin: 0; padding: 0; font-size: var(--fs-xs); color: var(--steel); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--ink); }
.legend .ok i { background: var(--green-soft); }
.legend .paint i { background: var(--amber-soft); }
.legend .putty i { background: var(--red-soft); }
.replay { margin-top: 12px; background: none; border: 0; padding: 0; color: var(--red); font-weight: 700; font-size: var(--fs-sm); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.replay svg { width: 16px; height: 16px; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: clamp(26px, 4vw, 42px); flex-wrap: wrap; }
.section-head h2 { font-size: var(--fs-2xl); font-weight: 900; margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--steel); max-width: 52ch; }
.section-head .more { font-weight: 700; color: var(--red); display: inline-flex; gap: 6px; align-items: center; }
.section-head .more svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.section-head .more:hover svg { transform: translateX(-4px); }

/* Categories */
.cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: -48px; position: relative; z-index: 2; }
.cat {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px 20px; background: #fff; border-radius: var(--r-md);
  border: 1px solid var(--line); overflow: hidden; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.cat::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.cat:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 24px 40px -24px rgba(24,32,44,.45); color: var(--ink); }
.cat:hover::before { transform: scaleX(1); }
.cat__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--paper); display: grid; place-items: center; color: var(--red); transition: background .3s, color .3s, transform .4s var(--ease); }
.cat:hover .cat__icon { background: var(--red); color: #fff; transform: rotate(-8deg); }
.cat__icon svg { width: 28px; height: 28px; }
.cat__name { font-weight: 800; line-height: 1.6; }
.cat__count { font-size: var(--fs-xs); color: var(--steel); margin-top: auto; }

/* Layers explainer */
.layers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.layers__copy h2 { font-size: var(--fs-2xl); font-weight: 900; }
.layers__copy p { color: var(--steel); max-width: 46ch; }
.layers__facts { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.layers__facts li { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: baseline; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.layers__facts b { font-size: var(--fs-lg); font-weight: 900; color: var(--ink); white-space: nowrap; }
.layers__facts span { color: var(--steel); font-size: var(--fs-sm); }

.stack { position: relative; padding: 30px 20px 20px 90px; margin-top: 40px; }
.stack__layer {
  position: relative; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; margin-bottom: 6px; border-radius: 6px;
  color: #fff; font-weight: 700; font-size: var(--fs-sm); height: var(--h); transform-origin: left; transform: scaleX(.02); opacity: 0;
  transition: transform 1s var(--ease), opacity .4s; transition-delay: calc(var(--i) * .14s);
}
.stack.is-in .stack__layer { transform: none; opacity: 1; }
.stack__layer small { font-weight: 500; opacity: .85; direction: ltr; unicode-bidi: isolate; }
.stack__layer.l-clear { background: linear-gradient(90deg, rgba(160,200,230,.7), rgba(200,225,245,.9)); color: var(--ink); }
.stack__layer.l-base  { background: #c62b2a; }
.stack__layer.l-primer{ background: #9aa3ad; }
.stack__layer.l-ecoat { background: #4b5563; }
.stack__layer.l-steel { background: repeating-linear-gradient(135deg, #2a3240 0 10px, #323b4a 10px 20px); }
.stack__ruler { position: absolute; left: 20px; top: 30px; height: 152px; width: 54px; border-right: 2px solid var(--ink); display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--steel); text-align: left; direction: ltr; }
.stack__ruler span { position: relative; padding-right: 10px; }
.stack__ruler span::after { content: ""; position: absolute; right: -2px; top: 50%; width: 8px; height: 2px; background: var(--ink); }
.stack__probe { position: absolute; left: 58%; top: -40px; width: 34px; height: 64px; border-radius: 10px 10px 6px 6px; background: linear-gradient(90deg, #2f3a4b, #18202c); transform: translateY(-40px); opacity: 0; transition: transform .9s 1s var(--ease), opacity .4s 1s; }
.stack__probe::after { content: ""; position: absolute; bottom: -6px; left: 9px; width: 16px; height: 6px; border-radius: 0 0 4px 4px; background: var(--red); }
.stack.is-in .stack__probe { transform: none; opacity: 1; }
.stack__read { position: absolute; left: calc(58% + 46px); top: -34px; background: var(--ink); color: #fff; font-weight: 800; padding: 4px 12px; border-radius: 999px; font-size: var(--fs-sm); direction: ltr; opacity: 0; transform: scale(.7); transition: .5s 1.9s var(--ease); white-space: nowrap; }
.stack.is-in .stack__read { opacity: 1; transform: none; }
.stack__bracket { position: absolute; right: -2px; top: 30px; height: 152px; width: 10px; border: 2px solid var(--red); border-left: 0; border-radius: 0 6px 6px 0; transform: scaleY(0); transform-origin: top; transition: transform .9s 2s var(--ease); }
.stack.is-in .stack__bracket { transform: none; }

/* Products */
.tabs { display: inline-flex; gap: 4px; padding: 5px; background: var(--paper); border-radius: 999px; position: relative; }
.tabs button { position: relative; z-index: 1; border: 0; background: none; padding: 9px 18px; border-radius: 999px; font-weight: 700; color: var(--steel); cursor: pointer; transition: color .3s; }
.tabs button[aria-selected="true"] { color: #fff; }
.tabs__pill { position: absolute; top: 5px; bottom: 5px; border-radius: 999px; background: var(--ink); transition: right .4s var(--ease), width .4s var(--ease); }
.tab-panel[hidden] { display: none; }
.tab-panel.is-entering .p-card { animation: cardIn .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.p-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.p-card {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; transition: border-color .3s, box-shadow .35s var(--ease), transform .35s var(--ease);
  transform-style: preserve-3d;
}
.p-card:hover { border-color: transparent; box-shadow: 0 30px 50px -30px rgba(24,32,44,.5); }
.p-card__media { position: relative; aspect-ratio: 1; background: var(--paper); display: grid; place-items: center; overflow: hidden; }
.p-card__media img { width: 78%; height: 78%; object-fit: contain; transition: transform .6s var(--ease); mix-blend-mode: multiply; }
.p-card:hover .p-card__media img { transform: scale(1.07) rotate(-2deg); }
.p-card__badge { position: absolute; top: 12px; right: 12px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; z-index: 1; }
.p-card__badge--out { background: var(--steel); }
.p-card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.p-card__cat { font-size: var(--fs-xs); color: var(--steel); }
.p-card__title { font-size: 1rem; font-weight: 700; line-height: 1.7; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; }
.p-card__price { font-weight: 800; font-size: 1.02rem; color: var(--ink); line-height: 1.5; }
.p-card__price del { display: block; color: var(--steel-2); font-weight: 400; font-size: .8rem; }
.p-card__price ins { text-decoration: none; }
.p-card__add {
  width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center;
  transition: background .25s, color .25s, transform .3s var(--ease); border: 0; cursor: pointer;
}
.p-card__add:hover { background: var(--red); color: #fff; transform: rotate(90deg); }
.p-card__add svg { width: 20px; height: 20px; }
.p-card__add.loading { pointer-events: none; opacity: .6; }
.p-card__add.added { background: var(--green); color: #fff; }
.p-card .added_to_cart { display: none; }
.p-card__rating { display: flex; gap: 2px; color: var(--amber); }
.p-card__rating svg { width: 14px; height: 14px; }
.p-card__rating .off { color: var(--line); }

/* Services */
.services { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.svc { position: relative; border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px); overflow: hidden; display: flex; flex-direction: column; gap: 10px; min-height: 220px; isolation: isolate; }
.svc h3 { font-size: var(--fs-xl); font-weight: 900; margin: 0; }
.svc p { margin: 0; max-width: 40ch; }
.svc .btn { margin-top: auto; align-self: flex-start; }
.svc--exam { grid-row: span 2; background: var(--red); color: #fff; }
.svc--exam h3 { color: #fff; font-size: var(--fs-2xl); }
.svc--exam p { color: rgba(255,255,255,.88); font-size: var(--fs-lg); }
.svc--exam .exam-q { margin: 18px 0; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: var(--r-md); padding: 18px; max-width: 460px; }
.exam-q__label { font-size: var(--fs-xs); opacity: .8; }
.exam-q__q { font-weight: 700; margin: 4px 0 12px; }
.exam-q__opts { display: grid; gap: 8px; }
.exam-q__opts button {
  text-align: right; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06); color: #fff; padding: 9px 14px; border-radius: 10px; cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.exam-q__opts button:hover { background: rgba(255,255,255,.16); }
.exam-q__opts button.is-right { background: #fff; color: var(--green); border-color: #fff; font-weight: 800; }
.exam-q__opts button.is-wrong { animation: shake .4s; border-color: #ffd0cf; background: rgba(0,0,0,.15); }
@keyframes shake { 25% { transform: translateX(6px); } 75% { transform: translateX(-6px); } }
.exam-q__fb { min-height: 1.6em; margin-top: 10px; font-size: var(--fs-sm); }
.svc--consult { background: var(--ink); color: #c9d0da; }
.svc--consult h3 { color: #fff; }
.svc--centers { background: var(--paper); border: 1px solid var(--line); }
.svc--centers p { color: var(--steel); }
.svc__art { position: absolute; z-index: -1; opacity: .9; pointer-events: none; }
.svc--consult .svc__art { left: -20px; bottom: -30px; width: 190px; color: var(--ink-2); }
.svc--centers .svc__art { left: 20px; top: 20px; width: 120px; color: var(--line); }

/* Brands marquee */
.brands { padding: 34px 0; border-block: 1px solid var(--line); overflow: hidden; background: #fff; }
.marquee { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.brands:hover .marquee { animation-play-state: paused; }
.marquee ul { display: flex; gap: 64px; list-style: none; margin: 0; padding: 0 32px; align-items: center; }
.marquee li { font-size: 1.6rem; font-weight: 900; color: var(--steel-2); white-space: nowrap; direction: ltr; letter-spacing: .5px; transition: color .3s; }
.marquee li:hover { color: var(--red); }
@keyframes marquee { to { transform: translateX(50%); } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.stat { padding: 10px 26px; border-inline-start: 1px solid rgba(255,255,255,.14); }
.stat:first-child { border: 0; }
.stat b { display: block; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 900; color: #fff; line-height: 1.3; }
.stat span { color: #a8b2bf; font-size: var(--fs-sm); }

/* Posts */
.posts { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; }
.posts__list { display: grid; gap: 18px; align-content: start; }
.post-card { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; }
.post-card__media { aspect-ratio: 4/3; border-radius: var(--r-md); overflow: hidden; background: var(--paper); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card h3 { font-size: 1.02rem; font-weight: 800; line-height: 1.7; margin: 0 0 4px; }
.post-card time { font-size: var(--fs-xs); color: var(--steel); }
.post-card--lead { grid-template-columns: 1fr; align-items: start; }
.post-card--lead .post-card__media { aspect-ratio: 16/9; border-radius: var(--r-lg); }
.post-card--lead h3 { font-size: var(--fs-xl); }
.post-card--lead p { color: var(--steel); margin: 6px 0 0; }
.ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--steel-2); background: repeating-linear-gradient(135deg, var(--paper) 0 12px, #eaedf1 12px 24px); }
.ph svg { width: 40px; height: 40px; }

/* CTA band */
.cta-band { background: var(--red); color: #fff; position: relative; overflow: hidden; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: clamp(32px, 5vw, 56px) 0; }
.cta-band h2 { color: #fff; font-size: var(--fs-xl); font-weight: 900; margin: 0; }
.cta-band p { margin: 4px 0 0; color: rgba(255,255,255,.88); }
.cta-band__phone { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); font-weight: 900; direction: ltr; color: #fff; display: inline-flex; align-items: center; gap: 12px; }
.cta-band__phone:hover { color: #fff; }
.cta-band__phone svg { width: 34px; height: 34px; animation: wiggle 3s infinite; }
@keyframes wiggle { 0%, 88%, 100% { transform: rotate(0); } 90% { transform: rotate(-14deg); } 94% { transform: rotate(14deg); } 97% { transform: rotate(-8deg); } }
.cta-band::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255,255,255,.07); left: -140px; top: -160px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #a8b2bf; font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding: clamp(48px, 6vw, 72px) 0 40px; }
.site-footer h4 { color: #fff; font-size: var(--fs-md); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-menu a { position: relative; transition: padding .25s var(--ease), color .2s; }
.site-footer .footer-menu a:hover { padding-inline-start: 8px; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__divider { background: #3a4452; }
.footer-brand .brand__tag { color: #a8b2bf; }
.footer-about { margin-top: 16px; max-width: 36ch; line-height: 2; }
.contact-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.contact-list svg { width: 18px; height: 18px; margin-top: 4px; color: var(--red); }
.contact-list .ltr { direction: ltr; text-align: right; }
.socials { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: var(--ink-2); display: grid; place-items: center; color: #fff; transition: background .25s, transform .25s var(--ease); }
.socials a:hover { background: var(--red); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: var(--fs-xs); }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.to-top {
  position: fixed; left: 22px; bottom: 22px; z-index: 40; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--ink); color: #fff;
  display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(20px); transition: .35s var(--ease);
}
.to-top.is-on { opacity: 1; transform: none; }
.to-top:hover { background: var(--red); }
.to-top svg { width: 22px; height: 22px; position: relative; z-index: 1; }
.to-top circle { fill: none; stroke: var(--red); stroke-width: 3; }
.to-top .prog { position: absolute; inset: 0; transform: rotate(-90deg); width: 50px; height: 50px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   Inner pages / blog
   ========================================================================== */
.page-hero { background: var(--paper); padding: 36px 0 30px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: var(--fs-2xl); font-weight: 900; margin: 0; }
.breadcrumbs, .woocommerce-breadcrumb { font-size: var(--fs-xs); color: var(--steel); margin-bottom: 8px !important; }
.breadcrumbs a, .woocommerce-breadcrumb a { color: var(--steel); }
.breadcrumbs a:hover, .woocommerce-breadcrumb a:hover { color: var(--red); }

.content-area { padding: 44px 0 80px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.layout--full { grid-template-columns: minmax(0, 1fr); }

.entry-content { max-width: 75ch; font-size: 1.05rem; line-height: 2.1; }
.layout--full .entry-content { max-width: none; }
.entry-content h2 { font-size: var(--fs-xl); margin-top: 1.6em; }
.entry-content h3 { font-size: var(--fs-lg); margin-top: 1.4em; }
.entry-content a { color: var(--red); text-decoration: underline; text-underline-offset: 4px; }
.entry-content img { border-radius: var(--r-md); }
.entry-content blockquote { margin: 1.5em 0; padding: 14px 22px; border-inline-start: 4px solid var(--red); background: var(--paper); border-radius: 0 var(--r-md) var(--r-md) 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: var(--fs-sm); }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: right; }
.entry-content th { background: var(--paper); }
.entry-meta { display: flex; gap: 18px; color: var(--steel); font-size: var(--fs-sm); margin-top: 8px; flex-wrap: wrap; }
.entry-thumb { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 28px; }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.layout .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-post { display: flex; flex-direction: column; gap: 12px; }
.g-post__media { aspect-ratio: 16/10; border-radius: var(--r-md); overflow: hidden; background: var(--paper); }
.g-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.g-post:hover .g-post__media img { transform: scale(1.05); }
.g-post h2 { font-size: 1.1rem; margin: 0; line-height: 1.7; }
.g-post p { color: var(--steel); font-size: var(--fs-sm); margin: 0; }
.g-post time { font-size: var(--fs-xs); color: var(--steel); }

.pagination, .woocommerce-pagination { margin-top: 48px; }
.nav-links, .woocommerce-pagination ul { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; list-style: none; padding: 0; border: 0 !important; }
.page-numbers { min-width: 44px; height: 44px; padding: 0 12px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line) !important; font-weight: 700; }
.page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink) !important; }
.woocommerce-pagination ul li { border: 0 !important; }

.widget-area .widget { background: var(--paper); border-radius: var(--r-md); padding: 20px; margin-bottom: 20px; }
.widget-title, .widget h2 { font-size: var(--fs-md); font-weight: 800; margin-bottom: 12px; }
.widget ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.widget ul ul { padding-inline-start: 14px; margin-top: 6px; }
.widget select { width: 100%; height: 44px; border-radius: 10px; border: 1px solid var(--line); padding: 0 12px; background: #fff; }

.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] { flex: 1; height: 48px; border-radius: 12px; border: 1.5px solid var(--line); padding: 0 16px; background: #fff; }
.search-form input[type="search"]:focus { outline: 0; border-color: var(--red); }

.comments-area { margin-top: 56px; max-width: 75ch; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { margin-bottom: 18px; padding: 18px; background: var(--paper); border-radius: var(--r-md); }
.comment-list .children { list-style: none; padding-inline-start: 22px; margin-top: 18px; }
.comment-meta { font-size: var(--fs-sm); color: var(--steel); display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.comment-meta img { border-radius: 50%; }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"], input[type="number"], textarea, select {
  border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 14px; background: #fff; max-width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.comment-form textarea, .comment-form input:not([type="submit"]):not([type="checkbox"]) { width: 100%; }
input[type="submit"], button[type="submit"]:not(.header-search button) {
  background: var(--red); color: #fff; border: 0; border-radius: 999px; padding: 12px 26px; font-weight: 700; cursor: pointer;
}

.e404 { text-align: center; padding: 90px 0 110px; }
.e404__num { font-size: clamp(5rem, 3rem + 10vw, 11rem); font-weight: 900; line-height: 1; color: var(--red); direction: ltr; }
.e404 p { color: var(--steel); }
.e404 .search-form { max-width: 460px; margin: 22px auto 0; }

/* ==========================================================================
   WooCommerce
   ========================================================================== */
.woocommerce .woocommerce-products-header, .woocommerce-products-header__title { display: none; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; padding: 10px 14px; background: var(--paper); border-radius: var(--r-md); }
.woocommerce .woocommerce-result-count { margin: 0; color: var(--steel); font-size: var(--fs-sm); }
.woocommerce .woocommerce-ordering { margin: 0; }
.woocommerce .woocommerce-ordering select { height: 42px; }

.woocommerce ul.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.woocommerce ul.products.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product {
  width: auto !important; margin: 0 !important; float: none !important; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; display: flex; flex-direction: column; position: relative; padding-bottom: 16px;
  transition: border-color .3s, box-shadow .35s var(--ease), transform .35s var(--ease);
}
.woocommerce ul.products li.product:hover { border-color: transparent; box-shadow: 0 30px 50px -30px rgba(24,32,44,.5); transform: translateY(-4px); }
.woocommerce ul.products li.product a img { margin: 0 0 12px !important; aspect-ratio: 1; object-fit: contain; background: var(--paper); padding: 11%; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.woocommerce ul.products li.product:hover a img { transform: scale(1.05); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 1rem !important; font-weight: 700; padding: 0 16px !important; line-height: 1.7; }
.woocommerce ul.products li.product .price { padding: 0 16px; color: var(--ink) !important; font-weight: 800; font-size: 1rem !important; margin-top: auto; }
.woocommerce ul.products li.product .price del { color: var(--steel-2); font-weight: 400; display: block; font-size: .8rem; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .star-rating { margin: 0 16px 6px !important; }
.woocommerce ul.products li.product .button { margin: 10px 16px 0 !important; }

.woocommerce span.onsale {
  min-height: 0; min-width: 0; line-height: 1.6; padding: 3px 12px; border-radius: 999px; background: var(--red); font-weight: 800; font-size: 12px;
  top: 12px !important; right: 12px !important; left: auto !important; margin: 0 !important;
}
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt {
  background: var(--red); color: #fff; border-radius: 999px; padding: .75em 1.5em; font-weight: 700; font-family: var(--font); line-height: 1.5;
  transition: background .25s, transform .25s var(--ease);
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--red-dark); color: #fff; transform: translateY(-2px); }
.woocommerce button.button:disabled, .woocommerce button.button.alt:disabled { background: var(--steel-2); }
.woocommerce .star-rating span::before, .woocommerce p.stars a { color: var(--amber); }

/* Single product */
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: auto !important; float: none !important; margin: 0 !important; }
.woocommerce div.product div.images { background: var(--paper); border-radius: var(--r-lg); padding: 24px; position: sticky; top: 100px; }
.woocommerce div.product div.images img { mix-blend-mode: multiply; }
.woocommerce div.product div.images .flex-control-thumbs { display: flex; gap: 10px; margin-top: 14px !important; }
.woocommerce div.product div.images .flex-control-thumbs li { width: 72px !important; border-radius: 10px; overflow: hidden; background: #fff; }
.woocommerce div.product .product_title { font-size: var(--fs-2xl); font-weight: 900; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--red) !important; font-size: var(--fs-xl) !important; font-weight: 900; }
.woocommerce div.product p.price del { color: var(--steel-2); font-size: 1rem; font-weight: 400; }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--steel); }
.woocommerce div.product form.cart { display: flex; gap: 10px; align-items: center; padding: 18px; background: var(--paper); border-radius: var(--r-md); margin: 20px 0; flex-wrap: wrap; }
.woocommerce div.product form.cart::before, .woocommerce div.product form.cart::after { display: none; }
.woocommerce div.product form.cart .button { flex: 1; min-height: 52px; font-size: 1.05rem; }
.woocommerce .quantity .qty { width: 80px; height: 52px; text-align: center; border-radius: 999px; }
.woocommerce div.product .stock { font-weight: 700; }
.woocommerce div.product .stock.in-stock { color: var(--green); }
.woocommerce div.product .stock.out-of-stock { color: var(--red); }
.woocommerce div.product .product_meta { font-size: var(--fs-sm); color: var(--steel); display: grid; gap: 6px; border-top: 1px dashed var(--line); padding-top: 16px; }
.woocommerce div.product .product_meta a { color: var(--ink); }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related, .woocommerce div.product .upsells { grid-column: 1 / -1; }
.woocommerce div.product .woocommerce-tabs ul.tabs { display: flex; gap: 6px; padding: 0 !important; margin: 0 0 22px !important; border-bottom: 1px solid var(--line); overflow-x: auto; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: none !important; border: 0 !important; margin: 0 !important; padding: 0 !important; border-radius: 0 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 12px 18px !important; font-weight: 700 !important; color: var(--steel) !important; position: relative; display: block; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ink) !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a::after { content: ""; position: absolute; right: 0; left: 0; bottom: -1px; height: 3px; background: var(--red); border-radius: 3px; }
.woocommerce div.product .woocommerce-tabs .panel { line-height: 2.1; max-width: 85ch; }
.woocommerce div.product .woocommerce-tabs .panel > h2:first-child { font-size: var(--fs-lg); }
.woocommerce table.shop_attributes { border: 0; }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { border: 0; border-bottom: 1px solid var(--line); padding: 12px; text-align: right; font-style: normal; }
.woocommerce table.shop_attributes tr:nth-child(even) th, .woocommerce table.shop_attributes tr:nth-child(even) td { background: var(--paper); }
.woocommerce .related > h2, .woocommerce .upsells > h2 { font-size: var(--fs-xl); font-weight: 900; margin: 40px 0 20px; }

/* Notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border: 0 !important; border-radius: var(--r-md); background: var(--paper) !important; padding: 16px 22px 16px 22px !important; border-inline-start: 4px solid var(--green) !important;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none !important; }
.woocommerce-info { border-inline-start-color: var(--amber) !important; }
.woocommerce-error { border-inline-start-color: var(--red) !important; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; }

/* Cart & checkout */
.woocommerce table.shop_table { border-radius: var(--r-md); border-color: var(--line); border-collapse: separate; overflow: hidden; }
.woocommerce table.shop_table th { background: var(--paper); font-weight: 800; }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { padding: 14px; border-color: var(--line); text-align: right; }
.woocommerce table.shop_table img { width: 64px; border-radius: 8px; background: var(--paper); }
.woocommerce a.remove { color: var(--red) !important; border-radius: 50%; }
.woocommerce a.remove:hover { background: var(--red); color: #fff !important; }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-checkout-review-order { background: var(--paper); padding: 22px; border-radius: var(--r-md); }
.woocommerce .cart-collaterals .cart_totals table { background: #fff; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { height: auto; min-height: 48px; }
.woocommerce form .form-row label { font-weight: 600; font-size: var(--fs-sm); }
.woocommerce-checkout #payment { background: #fff !important; border-radius: var(--r-md); }
.woocommerce form.checkout_coupon, .woocommerce form.login, .woocommerce form.register { border-radius: var(--r-md); border-color: var(--line); }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; background: var(--paper); border-radius: var(--r-md); padding: 10px; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 10px 14px; border-radius: 8px; }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { background: var(--ink); color: #fff; }
.woocommerce .widget_price_filter .ui-slider .ui-slider-range, .woocommerce .widget_price_filter .ui-slider .ui-slider-handle { background: var(--red); }
.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content { background: var(--line); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .header-phone { display: none; }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .p-grid, .woocommerce ul.products.columns-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero__copy p { max-width: none; }
  .layers { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .svc--exam { grid-row: auto; }
  .posts { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .stat:nth-child(3) { border: 0; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .woocommerce div.product { grid-template-columns: 1fr; }
  .woocommerce div.product div.images { position: static; }
}
@media (max-width: 860px) {
  .nav-bar, .topbar__links { display: none; }
  .menu-toggle { display: grid; }
  .header-main { flex-wrap: wrap; gap: 12px; padding-block: 10px; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .is-stuck .header-search { display: none; }
  .brand__name { font-size: 1.45rem; }
  .header-actions { gap: 6px; flex-wrap: nowrap; }
  .icon-btn { width: 42px; height: 42px; }
  .brand { gap: 8px; min-width: 0; }
  .brand__mark { width: 44px; height: 37px; }
  .brand__name { font-size: 1.7rem; }
  .brand__tag { font-size: .66rem; }
}
@media (max-width: 400px) {
  .header-main .brand__tag { display: none; }
}
@media (max-width: 640px) {
  .topbar__info .hide-sm { display: none; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -32px; }
  .cat { padding: 16px; }
  .p-grid, .woocommerce ul.products, .woocommerce ul.products.columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .p-card__body { padding: 12px; }
  .p-card__title { font-size: .9rem; }
  .p-card__add { width: 38px; height: 38px; }
  .gauge-row { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .legend { justify-content: center; }
  .inspector { padding: 14px; }
  .inspector__head { flex-direction: column; align-items: flex-start; gap: 0; }
  .post-card { grid-template-columns: 110px 1fr; }
  .post-grid, .layout .post-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stack { padding-left: 76px; padding-right: 0; }
  .tabs { width: 100%; overflow-x: auto; }
  .tabs button { white-space: nowrap; padding: 9px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .stack__layer { opacity: 1; transform: none; }
  .marquee { animation: none; }
}
.cart-count[hidden] { display: none; }
.device text, .gauge__status, .gauge__top { direction: ltr; unicode-bidi: plaintext; }

/* ==========================================================================
   حال‌وهوای مغازه: تابلو روان، سایبان، تابلوی باز/بسته
   ========================================================================== */
.topbar { background: #0e0a0a; }
.topbar .wrap { min-height: 44px; gap: 20px; }

.led-sign {
  --led: #ff2d22;
  position: relative; flex: 1; min-width: 0; height: 34px; overflow: hidden; border-radius: 4px;
  background: #160b0a; box-shadow: inset 0 0 0 1px #3a1715, inset 0 2px 10px rgba(0,0,0,.8), 0 0 0 3px #241312;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.led-sign::after {
  /* شبکه نقطه‌های LED */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 0 1.1px, #160b0a 1.5px) 0 0 / 3px 3px;
  opacity: .85;
}
.led-sign::before {
  /* نقطه‌های خاموش زمینه */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(255,45,34,.12) 0 1px, transparent 1.3px) 0 0 / 3px 3px;
}
.led-sign__track { position: absolute; top: 0; right: 0; height: 100%; display: flex; width: max-content; animation: ledRun var(--led-speed, 45s) linear infinite; }
.led-sign__run { display: flex; align-items: center; height: 100%; flex: none; }
.led-sign__msg {
  color: var(--led); font-weight: 900; font-size: 17px; letter-spacing: .5px; white-space: nowrap; padding: 0 22px;
  text-shadow: 0 0 2px var(--led), 0 0 8px rgba(255,45,34,.85), 0 0 18px rgba(255,45,34,.45);
}
.led-sign__sep { color: #ffb020; font-size: 11px; text-shadow: 0 0 6px #ffb020; }
.led-sign:hover .led-sign__track { animation-play-state: paused; }
@keyframes ledRun { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* سایبان */
.awning { position: relative; height: 0; z-index: 5; pointer-events: none; }
.is-stuck .awning { display: none; }
.awning__cloth {
  --w: 56px; --h: 50px; --sc: 18px;
  position: absolute; top: 0; right: 0; left: 0; height: var(--h);
  background:
    linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,0) 22%, rgba(255,255,255,.12) 50%, rgba(0,0,0,.18)),
    repeating-linear-gradient(90deg, var(--red) 0 var(--w), #fff7f2 var(--w) calc(var(--w) * 2));
  -webkit-mask:
    linear-gradient(#000, #000) top / 100% calc(100% - var(--sc) + 1px) no-repeat,
    radial-gradient(farthest-side at 50% 0, #000 97%, transparent 100%) 0 100% / var(--w) calc(var(--sc) * 2) repeat-x;
          mask:
    linear-gradient(#000, #000) top / 100% calc(100% - var(--sc) + 1px) no-repeat,
    radial-gradient(farthest-side at 50% 0, #000 97%, transparent 100%) 0 100% / var(--w) calc(var(--sc) * 2) repeat-x;
  transform-origin: top; animation: unroll 1.1s var(--ease) both;
}
.awning::before {
  /* لوله بالای سایبان */
  content: ""; position: absolute; top: -3px; right: 0; left: 0; height: 7px; z-index: 1;
  background: linear-gradient(#7d8794, #3c4552); box-shadow: 0 2px 4px rgba(0,0,0,.25);
}
.awning::after {
  /* سایه سایبان روی صفحه */
  content: ""; position: absolute; top: 50px; right: 0; left: 0; height: 24px;
  background: linear-gradient(rgba(24,32,44,.18), transparent); animation: fadeIn 1.2s .6s both;
}
@keyframes unroll { from { transform: scaleY(0); } 70% { transform: scaleY(1.06); } to { transform: scaleY(1); } }

/* تابلوی باز / بسته */
.shop-sign {
  position: absolute; top: 34px; left: max(24px, calc((100vw - var(--wrap)) / 2 + 24px));
  display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0;
  animation: signDrop .9s 1s var(--ease) both, swing 5s 1.9s ease-in-out infinite;
}
.shop-sign__strings { width: 70px; height: 22px; border-left: 2px solid #5b6676; border-right: 2px solid #5b6676; position: relative; }
.shop-sign__board {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 10px;
  background: linear-gradient(160deg, #2a3240, #121821); border: 2px solid #4a5465; box-shadow: 0 12px 20px -10px rgba(0,0,0,.6);
}
.shop-sign__text { font-size: 1.05rem; font-weight: 900; color: #3dff7a; text-shadow: 0 0 4px #3dff7a, 0 0 14px rgba(61,255,122,.7); white-space: nowrap; }
.shop-sign__dot { width: 10px; height: 10px; border-radius: 50%; background: #3dff7a; box-shadow: 0 0 8px #3dff7a; animation: blink 1.6s infinite; }
.shop-sign.is-closed .shop-sign__text { color: #ff3b30; text-shadow: 0 0 4px #ff3b30, 0 0 14px rgba(255,59,48,.7); }
.shop-sign.is-closed .shop-sign__dot { background: #ff3b30; box-shadow: 0 0 8px #ff3b30; }
@keyframes blink { 50% { opacity: .25; } }
@keyframes signDrop { from { transform: translateY(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes swing { 0%, 100% { transform: rotate(2.5deg); } 50% { transform: rotate(-2.5deg); } }

/* جا برای سایبان */
.hero { padding-top: clamp(96px, 9vw, 128px); }
.page-hero { padding-top: 78px; }

@media (max-width: 860px) {
  .awning__cloth { --w: 40px; --h: 36px; --sc: 13px; }
  .awning::after { top: 36px; }
  .shop-sign { top: 30px; left: 14px; transform: scale(.82); }
  .shop-sign__strings { height: 14px; }
  .led-sign__msg { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .led-sign__track { animation: none; }
  .shop-sign { animation: none; }
}

/* ==========================================================================
   مجله
   ========================================================================== */
.mag { background: var(--paper); position: relative; overflow: hidden; }
.mag::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 6px;
  background: repeating-linear-gradient(90deg, var(--red) 0 56px, #fff 56px 112px); opacity: .9;
}
.mag__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; margin-bottom: clamp(26px, 4vw, 40px); }
.mag__title h2 { font-size: var(--fs-2xl); font-weight: 900; margin: 0; }
.mag__title p { color: var(--steel); margin: 6px 0 0; }
.mag__cats { display: flex; gap: 8px; flex-wrap: wrap; margin-inline-start: auto; }
.mag__cats a { padding: 6px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: var(--fs-sm); font-weight: 600; transition: background .25s, color .25s, border-color .25s; }
.mag__cats a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.mag__head .more { font-weight: 700; color: var(--red); display: inline-flex; gap: 6px; align-items: center; }
.mag__head .more svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.mag__head .more:hover svg { transform: translateX(-4px); }

.mag__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }

/* زیرخط متحرک عنوان */
.mag .u { background: linear-gradient(currentColor, currentColor) right bottom / 0 2px no-repeat; transition: background-size .45s var(--ease); padding-bottom: 2px; }
.mag a:hover .u { background-size: 100% 2px; }

.mag-meta { display: flex; gap: 16px; align-items: center; font-size: var(--fs-xs); color: var(--steel); flex-wrap: wrap; }
.mag-meta > span { display: inline-flex; gap: 5px; align-items: center; }
.mag-meta svg { width: 15px; height: 15px; }

/* مقاله اصلی */
.mag-lead a { position: relative; display: block; height: 100%; min-height: 470px; border-radius: var(--r-lg); overflow: hidden; color: #fff; isolation: isolate; background: var(--ink); }
.mag-lead__img { position: absolute; inset: 0; z-index: -2; }
.mag-lead__img img, .mag-lead__img .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.mag-lead a::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(18,23,31,.95) 0, rgba(18,23,31,.7) 38%, rgba(18,23,31,.05) 72%); transition: background .4s; }
.mag-lead a:hover .mag-lead__img img { transform: scale(1.06); }
.mag-lead__body { position: absolute; right: 0; left: 0; bottom: 0; padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.mag-lead h3 { color: #fff; font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); font-weight: 900; line-height: 1.6; margin: 0; max-width: 30ch; }
.mag-lead__ex { color: rgba(255,255,255,.78); font-size: var(--fs-sm); line-height: 1.9; max-width: 52ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mag-lead .mag-meta { color: rgba(255,255,255,.7); }
.mag-chip { background: var(--red); color: #fff; font-size: var(--fs-xs); font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.mag-go {
  position: absolute; top: 22px; left: 22px; width: 54px; height: 54px; border-radius: 50%; background: #fff; color: var(--ink);
  display: grid; place-items: center; transform: rotate(45deg); transition: transform .45s var(--ease), background .3s, color .3s;
}
.mag-go svg { width: 22px; height: 22px; }
.mag-lead a:hover .mag-go { transform: rotate(0); background: var(--red); color: #fff; }

/* مقاله‌های کناری */
.mag-side { display: grid; gap: 16px; grid-auto-rows: 1fr; }
.mag-item a {
  position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: center; height: 100%;
  padding: 12px; background: #fff; border-radius: var(--r-md); border: 1px solid var(--line); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.mag-item a::before { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 4px; background: var(--red); transform: scaleY(0); transition: transform .4s var(--ease); }
.mag-item a:hover { transform: translateY(-3px); border-color: transparent; box-shadow: 0 22px 40px -26px rgba(24,32,44,.5); color: var(--ink); }
.mag-item a:hover::before { transform: scaleY(1); }
.mag-item__img { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--paper); }
.mag-item__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.mag-item a:hover .mag-item__img img { transform: scale(1.08); }
.mag-item__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mag-item__cat { color: var(--red); font-size: var(--fs-xs); font-weight: 700; }
.mag-item h3 { font-size: 1rem; font-weight: 800; line-height: 1.75; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 960px) {
  .mag__grid { grid-template-columns: 1fr; }
  .mag-lead a { min-height: 380px; }
  .mag__cats { margin-inline-start: 0; order: 3; width: 100%; }
}
@media (max-width: 640px) {
  .mag-item a { grid-template-columns: 108px minmax(0, 1fr); gap: 12px; padding: 10px; }
  .mag-item h3 { font-size: .92rem; }
  .mag-lead a { min-height: 340px; }
  .mag-go { width: 44px; height: 44px; top: 16px; left: 16px; }
}

/* ==========================================================================
   رفع نمایش تصویر محصول (وقتی اسلایدر گالری اجرا نشود، تصویر پنهان نماند)
   ========================================================================== */
.woocommerce div.product .woocommerce-product-gallery { opacity: 1 !important; }
.woocommerce div.product div.images img { display: block; width: 100%; height: auto; }
.woocommerce div.product div.images .woocommerce-product-gallery__image:not(:first-child) { display: none; }
.woocommerce div.product div.images .flex-viewport .woocommerce-product-gallery__image { display: block; }
.woocommerce div.product div.images .woocommerce-product-gallery__trigger { z-index: 5; }

/* ==========================================================================
   صفحه تماس با ما
   ========================================================================== */
.page-hero__lead { color: var(--steel); max-width: 60ch; margin: 8px 0 0; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; }
.c-side { display: grid; gap: 14px; align-content: start; }
.c-card {
  position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center;
  padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.c-card:hover { transform: translateY(-3px); border-color: transparent; box-shadow: 0 22px 40px -26px rgba(24,32,44,.5); color: var(--ink); }
.c-card__icon { grid-row: span 2; width: 52px; height: 52px; border-radius: 14px; background: var(--paper); color: var(--red); display: grid; place-items: center; }
.c-card__icon svg { width: 26px; height: 26px; }
.c-card__label { font-size: var(--fs-sm); color: var(--steel); }
.c-card__value { font-size: 1.3rem; font-weight: 900; text-align: right; }
.c-card--primary {
  grid-template-columns: 1fr; grid-template-rows: none; gap: 10px; align-content: center; padding: clamp(26px, 4vw, 44px);
  background: var(--red); color: #fff; border: 0; overflow: hidden; isolation: isolate; min-height: 260px;
}
.c-card--primary::after { content: ""; position: absolute; z-index: -1; width: 340px; height: 340px; border-radius: 50%; border: 50px solid rgba(255,255,255,.08); left: -120px; bottom: -160px; }
.c-card--primary:hover { color: #fff; box-shadow: 0 26px 50px -24px rgba(226,49,47,.7); }
.c-card--primary .c-card__icon { grid-row: auto; background: rgba(255,255,255,.16); color: #fff; width: 60px; height: 60px; position: relative; }
.c-card--primary .c-card__icon::before { content: ""; position: absolute; inset: 0; border-radius: 14px; border: 2px solid #fff; animation: ring 2.4s ease-out infinite; opacity: 0; }
.c-card--primary .c-card__label { color: rgba(255,255,255,.88); font-size: var(--fs-md); }
.c-card--primary .c-card__value { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); line-height: 1.2; }
.c-card__cta { display: inline-flex; gap: 8px; align-items: center; justify-self: start; background: #fff; color: var(--red-dark); font-weight: 800; padding: 10px 22px; border-radius: 999px; margin-top: 6px; }
.c-card__cta svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.c-card--primary:hover .c-card__cta svg { transform: translateX(-5px); }
.c-card--social { grid-template-columns: 1fr; gap: 12px; }
.c-card--social:hover { transform: none; box-shadow: none; border-color: var(--line); }
.c-social { display: flex; gap: 8px; flex-wrap: wrap; }
.c-social a { display: inline-flex; gap: 8px; align-items: center; padding: 8px 16px; border-radius: 999px; background: var(--paper); font-weight: 700; font-size: var(--fs-sm); transition: background .25s, color .25s; }
.c-social a:hover { background: var(--ink); color: #fff; }
.c-social svg { width: 18px; height: 18px; }

.contact__row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; align-items: start; }
.c-visit { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.c-visit__map { aspect-ratio: 16 / 7; background: var(--paper); position: relative; }
.c-visit__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-art { position: absolute; inset: 0; overflow: hidden; background:
  linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 32px 32px, #eef1f4; }
.map-art__road { position: absolute; background: #fff; box-shadow: 0 0 0 1px #d6dce3; }
.map-art__road--h { height: 18px; right: 0; left: 0; top: 56%; }
.map-art__road--v { width: 16px; top: 0; bottom: 0; right: 38%; }
.map-art__road--d { width: 14px; height: 160%; top: -30%; left: 22%; transform: rotate(32deg); }
.map-art__pin { position: absolute; right: calc(38% - 14px); top: calc(56% - 50px); width: 44px; height: 44px; color: var(--red); animation: pinDrop 1s .4s var(--ease) both; filter: drop-shadow(0 8px 6px rgba(226,49,47,.35)); }
.map-art__pin svg { width: 44px; height: 44px; fill: var(--red); stroke: #fff; }
@keyframes pinDrop { from { transform: translateY(-60px); opacity: 0; } 70% { transform: translateY(4px); opacity: 1; } to { transform: none; } }
.c-visit__body { padding: clamp(20px, 3vw, 30px); display: grid; gap: 12px; justify-items: start; }
.c-visit__body h2 { font-size: var(--fs-xl); margin: 0; }
.c-visit__addr, .c-visit__hours { display: flex; gap: 10px; align-items: flex-start; margin: 0; color: var(--ink-2); flex-wrap: wrap; }
.c-visit__addr svg, .c-visit__hours svg { width: 20px; height: 20px; color: var(--red); flex: none; margin-top: 4px; }
.c-status { display: inline-flex; align-items: center; gap: 6px; padding: 2px 12px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-weight: 800; font-size: var(--fs-sm); }
.c-status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: blink 1.6s infinite; }
.c-status.is-closed { background: var(--red-soft); color: var(--red); }
.c-status b:empty { display: none; }

.c-form { background: var(--paper); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px); }
.c-form h2 { font-size: var(--fs-xl); margin: 0; }
.c-form__note { color: var(--steel); font-size: var(--fs-sm); margin: 6px 0 16px; }
.c-form .entry-content { max-width: none; font-size: 1rem; }
.c-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), .c-form textarea, .c-form select { width: 100%; background: #fff; }
.c-form textarea { min-height: 140px; }
.c-form .wpcf7-form p, .c-form form p { margin: 0 0 14px; }
.c-form .wpcf7-response-output { border-radius: 10px; margin: 12px 0 0 !important; }
.c-form .wpcf7-not-valid-tip { font-size: var(--fs-xs); color: var(--red); }

/* ==========================================================================
   صفحه درباره ما
   ========================================================================== */
.about-hero { position: relative; overflow: hidden; background: var(--red); color: #fff; padding: 90px 0 clamp(56px, 8vw, 96px); }
.about-hero .breadcrumbs, .about-hero .breadcrumbs a { color: rgba(255,255,255,.75); }
.about-hero__kicker { font-weight: 700; color: rgba(255,255,255,.8); margin: 18px 0 4px; }
.about-hero h1 { color: #fff; font-size: var(--fs-3xl); font-weight: 900; line-height: 1.35; max-width: 18ch; margin: 0 0 16px; }
.about-hero__lead { font-size: var(--fs-lg); max-width: 52ch; color: rgba(255,255,255,.9); line-height: 2; margin: 0; }
.about-hero__gauge { position: absolute; left: clamp(-80px, -4vw, -20px); bottom: -60px; width: clamp(220px, 32vw, 420px); height: auto; opacity: .9; pointer-events: none; }
.about-hero__gauge text { font-family: var(--font); font-weight: 900; font-size: 34px; fill: rgba(255,255,255,.35); }
.about-hero__arc { animation: arcFill 2.2s .3s var(--ease) forwards; }
@keyframes arcFill { to { stroke-dashoffset: 28; } }

.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: calc(-1 * clamp(80px, 9vw, 130px)); position: relative; z-index: 2; }
.about-values { padding-top: 0; }
.about-values .values { margin-top: -48px; }
.value { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px 22px; box-shadow: 0 24px 40px -30px rgba(24,32,44,.45); }
.value__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; margin-bottom: 14px; }
.value__icon svg { width: 26px; height: 26px; }
.value h3 { font-size: 1.05rem; margin: 0 0 6px; }
.value p { color: var(--steel); font-size: var(--fs-sm); margin: 0; line-height: 1.95; }

.about-story__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.about-story .entry-content { max-width: 72ch; }
.about-card { position: sticky; top: 110px; background: #fff; border-radius: var(--r-lg); padding: 26px; display: grid; gap: 12px; border: 1px solid var(--line); }
.about-card p { color: var(--steel); margin: 0 0 6px; font-size: var(--fs-sm); }
.about-card .btn { width: 100%; }

.about-brands h2 { font-size: var(--fs-2xl); font-weight: 900; text-align: center; margin-bottom: 26px; }
.brand-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.brand-chips li { direction: ltr; font-weight: 900; font-size: 1.25rem; color: var(--ink-2); padding: 14px 26px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: #fff; transition: border-color .3s, color .3s, transform .3s var(--ease); }
.brand-chips li:hover { border-color: var(--red); color: var(--red); transform: translateY(-3px); }

/* ==========================================================================
   نوار تماس ثابت موبایل
   ========================================================================== */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    position: fixed; z-index: 60; right: 10px; left: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    display: flex; gap: 8px; animation: barUp .6s 1s var(--ease) both;
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 56px; border-radius: 16px; font-weight: 800; box-shadow: 0 14px 30px -12px rgba(24,32,44,.55); }
  .mobile-bar__call { flex: 1; background: var(--red); color: #fff; }
  .mobile-bar__call:hover { color: #fff; }
  .mobile-bar__call b { direction: ltr; font-size: 1.05rem; }
  .mobile-bar__call span { font-weight: 600; opacity: .9; font-size: var(--fs-sm); }
  .mobile-bar__call svg { width: 22px; height: 22px; }
  .mobile-bar__wa { width: 56px; background: #25d366; color: #fff; }
  .mobile-bar__wa svg { width: 26px; height: 26px; }
  body:has(.mobile-bar) { padding-bottom: 80px; }
  body:has(.mobile-bar) .to-top { bottom: 84px; }
  @keyframes barUp { from { transform: translateY(120%); } to { transform: none; } }
}

@media (max-width: 960px) {
  .contact__grid, .contact__row { grid-template-columns: 1fr; }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-story__grid { grid-template-columns: 1fr; }
  .about-card { position: static; }
}
@media (max-width: 520px) {
  .values { grid-template-columns: 1fr; }
  .c-card__value { font-size: 1.15rem; }
  .c-visit__map { aspect-ratio: 16 / 9; }
}
.c-visit__addr, .c-visit__hours { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 10px; row-gap: 8px; }
.c-visit__hours .c-status { grid-column: 2; justify-self: start; }
@media (max-width: 640px) {
  .about-hero__gauge { opacity: .35; width: 200px; left: -60px; bottom: -70px; }
}
@media (max-width: 860px) {
  .page-hero { padding-top: 104px; }
  .about-hero { padding-top: 110px; }
}

/* ==========================================================================
   تابلو روان برندها
   ========================================================================== */
.brand-board { padding: clamp(36px, 5vw, 56px) 0; background: #fff; }
.brand-board__frame {
  position: relative; padding: 34px 26px 22px; border-radius: 18px;
  background: linear-gradient(180deg, #3a4452, #222a35 55%, #1a2029);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 -2px 0 rgba(0,0,0,.4), 0 26px 40px -24px rgba(24,32,44,.6);
}
.brand-board__label {
  position: absolute; top: 9px; right: 50%; transform: translateX(50%); white-space: nowrap;
  font-size: var(--fs-xs); font-weight: 700; color: #aab4c0; letter-spacing: .2px;
}
.led-sign--brands { height: clamp(64px, 8vw, 92px); border-radius: 8px; direction: ltr; }
.led-sign--brands .led-sign__track { right: auto; left: 0; animation-name: ledRunLtr; }
.led-sign--brands .led-sign__msg { font-size: clamp(28px, 3.4vw, 46px); padding: 0 34px; letter-spacing: 2px; font-weight: 900; }
.led-sign--brands .led-sign__sep { font-size: 18px; }
.led-sign--brands::after { background-size: 4px 4px; background-image: radial-gradient(circle at 50% 50%, transparent 0 1.4px, #160b0a 1.9px); }
.led-sign--brands::before { background-size: 4px 4px; background-image: radial-gradient(circle, rgba(255,45,34,.13) 0 1.3px, transparent 1.6px); }
@keyframes ledRunLtr { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.screw { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #d7dde4, #7d8794 70%); box-shadow: 0 1px 1px rgba(0,0,0,.5); }
.screw::after { content: ""; position: absolute; top: 4px; left: 2px; right: 2px; height: 2px; background: #59626e; transform: rotate(35deg); }
.screw--tr { top: 10px; right: 12px; } .screw--tl { top: 10px; left: 12px; }
.screw--br { bottom: 8px; right: 12px; } .screw--bl { bottom: 8px; left: 12px; }
@media (max-width: 640px) {
  .brand-board__frame { padding: 30px 14px 18px; }
}

/* هدر چسبان: بدون پرش. فاصله‌گیر جای ارتفاع کم‌شده را نگه می‌دارد. */
.header-spacer { height: 0; }
html { overflow-anchor: none; }
.site-header.is-stuck { animation: headerIn .35s var(--ease); }
@keyframes headerIn { from { transform: translateY(-100%); opacity: .4; } to { transform: none; opacity: 1; } }

/* ---------- خلاصه محصول ---------- */
.woocommerce div.product .summary .product_title { margin-bottom: 6px; }
.abz-lead { color: var(--ink-2) !important; font-size: 1.02rem; line-height: 2.05; margin: 14px 0 6px; padding-inline-start: 16px; border-inline-start: 3px solid var(--red); }
.abz-lead p { margin: 0 0 6px; }
.abz-lead__more { color: var(--red); font-weight: 700; font-size: var(--fs-sm); }
.abz-specs { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.abz-specs li { background: var(--paper); border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.abz-specs span { font-size: var(--fs-xs); color: var(--steel); }
.abz-specs b { font-size: var(--fs-sm); }
.abz-trust { list-style: none; padding: 0; margin: 4px 0 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.abz-trust li { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--ink-2); font-weight: 600; }
.abz-trust svg { width: 22px; height: 22px; color: var(--green); flex: none; }
.abz-consult { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px dashed var(--red); border-radius: var(--r-md); background: var(--red-soft); margin-bottom: 18px; transition: background .25s, transform .25s var(--ease); }
.abz-consult:hover { background: #fbdedd; color: var(--ink); transform: translateY(-2px); }
.abz-consult__icon { width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; flex: none; }
.abz-consult__icon svg { width: 24px; height: 24px; }
.abz-consult__text { display: flex; flex-direction: column; font-size: var(--fs-sm); color: var(--steel); }
.abz-consult__text b { color: var(--ink); font-size: 1rem; }
.abz-consult bdi { color: var(--red-dark); font-weight: 800; }
@media (max-width: 520px) { .abz-specs, .abz-trust { grid-template-columns: 1fr 1fr; } }
