/* Mizane Électro — storefront styles. Logical properties keep RTL (Arabic) working. */
:root {
  --ink: #0b1220;
  --ink-2: #1f2937;
  --muted: #5b6474;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --bg-tint: #eef3ff;
  --brand: #1d4ed8;
  --brand-ink: #ffffff;
  --brand-2: #0ea5e9;
  --accent: #f59e0b;
  --ok: #15803d;
  --ok-bg: #e8f7ee;
  --warn: #b45309;
  --warn-bg: #fff4e5;
  --sale: #dc2626;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(11, 18, 32, .06), 0 8px 24px rgba(11, 18, 32, .06);
  --shadow-lg: 0 20px 50px rgba(11, 18, 32, .18);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-ar: "Noto Kufi Arabic", "Inter", system-ui, sans-serif;
  --wrap: 1280px;
  --gutter: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.55; overflow-x: hidden; }
html[lang="ar"] body { font-family: var(--font-ar); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; cursor: pointer; text-decoration: none !important; transition: background .2s, transform .15s, box-shadow .2s, border-color .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: var(--brand-ink); }
.btn--primary:hover { background: #1e40af; box-shadow: 0 6px 18px rgba(29, 78, 216, .3); }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink-2); }
.btn--light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.btn--light:hover { background: rgba(255, 255, 255, .22); }
.btn--wa { background: #25d366; color: #0b1220; }
.btn--wa:hover { background: #1ebe5b; box-shadow: 0 6px 18px rgba(37, 211, 102, .35); }
.btn--lg { min-height: 50px; padding: 0 22px; font-size: 16px; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 0; background: transparent; cursor: pointer; color: inherit; }
.icon-btn:hover { background: var(--bg-soft); }
.linkbtn { background: none; border: 0; color: var(--brand); cursor: pointer; padding: 0; font-weight: 600; }

/* ---------- header ---------- */
.topbar { background: var(--ink); color: #cbd5e1; font-size: 13px; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 12px; }
.topbar__in > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.langs { display: flex; gap: 4px; flex-shrink: 0; }
.langs a { color: #cbd5e1; padding: 2px 8px; border-radius: 6px; }
.langs a[aria-current] { background: rgba(255, 255, 255, .14); color: #fff; }
.hdr { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.hdr__menu { display: none; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; flex-shrink: 0; }
.logo__mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.logo__mark svg { width: 24px; height: 24px; }
.logo__txt { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.logo__txt b { color: var(--brand); font-weight: 800; }
.search { position: relative; flex: 1; display: flex; max-width: 640px; margin-inline: auto; }
.search input { flex: 1; min-width: 0; height: 44px; border: 1.5px solid var(--line); border-radius: 12px; padding-inline: 16px 48px; background: var(--bg-soft); transition: border-color .2s, background .2s; }
.search input:focus { outline: none; border-color: var(--brand); background: #fff; }
.search button { position: absolute; inset-inline-end: 4px; top: 4px; width: 36px; height: 36px; border: 0; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; }
.search button svg { width: 18px; height: 18px; }
.search__sugg { position: absolute; top: calc(100% + 6px); inset-inline: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; z-index: 50; }
.search__sugg a { display: flex; align-items: center; gap: 12px; padding: 8px 12px; color: var(--ink); text-decoration: none; }
.search__sugg a:hover, .search__sugg a.is-active { background: var(--bg-tint); }
.search__sugg img { width: 56px; height: 40px; object-fit: contain; background: #fff; border-radius: 6px; }
.search__sugg small { display: block; color: var(--muted); }
.search__sugg b { margin-inline-start: auto; white-space: nowrap; }
.cartlink { position: relative; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; padding: 8px 10px; border-radius: 10px; text-decoration: none !important; }
.cartlink:hover { background: var(--bg-soft); }
.cartlink__n:empty, .cartlink__n[data-zero] { display: none; }
.cartlink__n { position: absolute; top: 0; inset-inline-start: 24px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--sale); color: #fff; font-size: 12px; display: grid; place-items: center; transform: scale(1); transition: transform .2s; }
.cartlink__n.bump { transform: scale(1.3); }
.mainnav { border-top: 1px solid var(--line); }
.mainnav__in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.mainnav__in::-webkit-scrollbar { display: none; }
.mainnav a { padding: 12px 14px; color: var(--ink-2); font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; text-decoration: none; }
.mainnav a:hover { color: var(--brand); }
.mainnav a[aria-current] { color: var(--brand); border-bottom-color: var(--brand); }
.mainnav__muted { margin-inline-start: auto; font-weight: 500 !important; color: var(--muted) !important; }
.mainnav__muted + .mainnav__muted { margin-inline-start: 0; }
.drawer { position: fixed; inset: 0; z-index: 80; background: rgba(11, 18, 32, .5); }
.drawer__panel { position: absolute; inset-block: 0; inset-inline-start: 0; width: min(86vw, 340px); background: #fff; padding: 16px; overflow-y: auto; animation: slidein .25s ease; }
html[dir="rtl"] .drawer__panel { animation-name: slidein-rtl; }
@keyframes slidein { from { transform: translateX(-100%); } }
@keyframes slidein-rtl { from { transform: translateX(100%); } }
.drawer__close { margin-inline-start: auto; display: grid; }
.drawer nav { display: flex; flex-direction: column; margin-top: 8px; }
.drawer nav a { padding: 12px 8px; color: var(--ink); font-weight: 600; border-radius: 8px; }
.drawer nav a:hover { background: var(--bg-soft); text-decoration: none; }
.drawer hr { border: 0; border-top: 1px solid var(--line); width: 100%; }
.drawer__langs { display: flex; gap: 8px; margin-top: 16px; }
.drawer__langs a { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.drawer__langs a[aria-current] { border-color: var(--brand); color: var(--brand); }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .62; transform: scale(1.04); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 18, 32, .92) 0%, rgba(11, 18, 32, .6) 45%, rgba(11, 18, 32, .1) 100%); }
html[dir="rtl"] .hero::after { background: linear-gradient(270deg, rgba(11, 18, 32, .92) 0%, rgba(11, 18, 32, .6) 45%, rgba(11, 18, 32, .1) 100%); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: end; gap: 32px; min-height: 520px; padding-block: 72px 56px; }
.hero__kicker { display: inline-block; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; color: #bfdbfe; margin: 0 0 14px; padding: 6px 10px; border: 1px solid rgba(191, 219, 254, .35); border-radius: 999px; }
html[lang="ar"] .hero__kicker { letter-spacing: 0; }
.hero h1 { font-size: clamp(30px, 4.4vw, 54px); font-weight: 800; max-width: 17ch; margin-bottom: 16px; animation: rise .7s ease both; }
.hero__text { font-size: clamp(15px, 1.4vw, 18px); color: #dbe4f3; max-width: 52ch; margin: 0 0 28px; animation: rise .7s .1s ease both; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; animation: rise .7s .2s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.hero__deal { justify-self: end; display: grid; gap: 4px; padding: 18px 20px; border-radius: var(--radius); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(12px); color: #fff; text-decoration: none !important; max-width: 340px; transition: background .2s, transform .2s; animation: rise .7s .3s ease both; }
.hero__deal:hover { background: rgba(255, 255, 255, .16); transform: translateY(-2px); }
.hero__deal-k { font-size: 12px; color: #bfdbfe; font-weight: 600; }
.hero__deal strong { font-size: 18px; }
.hero__deal-p { font-size: 28px; font-weight: 800; }
.hero__deal-s { font-size: 12px; color: #cbd5e1; }

.trust { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.trust__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-block: 18px; }
.trust__i { display: flex; gap: 12px; align-items: flex-start; }
.trust__i strong { display: block; font-size: 14px; }
.trust__i p { margin: 0; font-size: 13px; color: var(--muted); }
.trust__ic { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--brand); box-shadow: var(--shadow); }

.brands { border-bottom: 1px solid var(--line); }
.brands__row { display: flex; justify-content: center; align-items: center; gap: clamp(28px, 8vw, 110px); padding-block: 26px; }
.brandlogo { display: grid; place-items: center; height: 56px; padding: 8px 18px; border-radius: 12px; filter: grayscale(1); opacity: .75; transition: filter .25s, opacity .25s, background .25s; }
.brandlogo:hover { filter: none; opacity: 1; background: var(--bg-soft); }
.brandlogo img { height: 34px; width: auto; }

/* ---------- sections ---------- */
.sec { padding-block: 48px; }
.sec--alt { background: var(--bg-soft); }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sec__head h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; margin: 0; }
.sec__head p { margin: 6px 0 0; color: var(--muted); max-width: 70ch; }
.sec__more { font-weight: 700; white-space: nowrap; }
html[dir="rtl"] .sec__more { unicode-bidi: plaintext; }
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.catcard { position: relative; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); aspect-ratio: 4 / 3.3; color: var(--ink); text-decoration: none !important; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.catcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.catcard img { width: 100%; height: 72%; object-fit: contain; padding: 14px; transition: transform .4s; }
.catcard:hover img { transform: scale(1.05); }
.catcard__txt { position: absolute; inset-inline: 0; bottom: 0; padding: 14px 16px; background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 40%); display: grid; }
.catcard__txt strong { font-size: 18px; }
.catcard__txt span { color: var(--muted); font-size: 13px; }

/* ---------- product cards ---------- */
.grid { display: grid; gap: 16px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s, border-color .25s; animation: fade .4s ease both; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
@keyframes fade { from { opacity: 0; } }
.card__media { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; background: #fff; padding: 12px; border-bottom: 1px solid var(--line); }
.card__media img { max-height: 100%; width: auto; object-fit: contain; transition: transform .4s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__ribbon { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--sale); color: #fff; font-weight: 800; font-size: 13px; padding: 3px 8px; border-radius: 6px; }
.card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px; flex: 1; }
.card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card__brand { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.card__title { font-size: 15.5px; font-weight: 700; margin: 0; }
.card__title a { color: var(--ink); }
.card__ref { margin: 0; font-size: 12.5px; color: var(--muted); }
.card__ref span { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; color: var(--ink-2); }
.card__specs { list-style: none; padding: 0; margin: 2px 0 4px; display: flex; flex-wrap: wrap; gap: 4px; }
.card__specs li { font-size: 12px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; color: var(--ink-2); }
.card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 6px; }
.card__actions .btn { min-height: 40px; padding: 0 10px; font-size: 13.5px; }
.stock { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock--in { color: var(--ok); background: var(--ok-bg); }
.stock--out { color: var(--warn); background: var(--warn-bg); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.price__now { font-size: 21px; font-weight: 800; color: var(--ink); }
.price__old { color: var(--muted); font-size: 14px; }
.price__badge { background: var(--sale); color: #fff; font-weight: 700; font-size: 12px; padding: 2px 6px; border-radius: 6px; }
.price--big .price__now { font-size: 34px; }

/* ---------- category page ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 18px 0 8px; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: #9ca3af; }
.crumbs a { color: var(--muted); }
.pagehead { margin-bottom: 20px; }
.pagehead h1 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin: 0 0 6px; }
.pagehead p { margin: 0; color: var(--muted); max-width: 80ch; }
.catlayout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 56px; }
.catlayout__side { position: sticky; top: 130px; max-height: calc(100vh - 150px); overflow-y: auto; }
.filters { display: grid; gap: 4px; }
.filters__head { display: flex; justify-content: space-between; align-items: center; }
.filters__head h2 { font-size: 17px; margin: 0; }
.filters__apply { display: none; }
.facet { border: 0; border-top: 1px solid var(--line); padding: 12px 0 8px; margin: 0; }
.facet legend { font-weight: 700; font-size: 14px; padding: 0; margin-bottom: 8px; }
.chk, .radio { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; font-size: 14px; }
.chk input, .radio input { width: 17px; height: 17px; accent-color: var(--brand); }
.chk small { margin-inline-start: auto; color: var(--muted); }
.chk.is-empty { opacity: .45; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range label { display: grid; gap: 2px; font-size: 12px; color: var(--muted); }
.range input { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; }
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar__filters { display: none; }
.toolbar__count { margin: 0; color: var(--muted); }
.toolbar__sort { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.toolbar__sort select { height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; background: #fff; color: var(--ink); }
.empty { padding: 40px; text-align: center; color: var(--muted); background: var(--bg-soft); border-radius: var(--radius); }

/* ---------- product page ---------- */
.pd { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; padding-block: 8px 32px; }
.gal { position: sticky; top: 130px; align-self: start; }
.gal__main { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; cursor: zoom-in; display: grid; place-items: center; }
.gal__main img { width: 100%; height: 100%; object-fit: contain; transition: transform .15s ease-out, opacity .25s; transform-origin: center; }
.gal__main.is-zoom img { transform: scale(2.2); }
.gal__hint { position: absolute; bottom: 10px; inset-inline-end: 10px; font-size: 12px; background: rgba(11, 18, 32, .72); color: #fff; padding: 4px 9px; border-radius: 999px; pointer-events: none; transition: opacity .2s; }
.gal__main.is-zoom .gal__hint { opacity: 0; }
.gal__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.gal__thumb { flex: 0 0 82px; height: 64px; border: 2px solid var(--line); border-radius: 10px; background: #fff; padding: 3px; cursor: pointer; transition: border-color .2s; }
.gal__thumb img { width: 100%; height: 100%; object-fit: contain; }
.gal__thumb.is-active, .gal__thumb:hover { border-color: var(--brand); }
.gal__src { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.pd__brand { margin: 0 0 6px; font-weight: 700; color: var(--muted); font-size: 14px; }
.pd__brand a { color: var(--brand); }
.pd__info h1 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; }
.pd__ref { margin: 0 0 4px; color: var(--ink-2); }
.pd__ref strong { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 15px; background: var(--bg-soft); padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); }
.pd__refnote { margin: 4px 0; font-size: 13px; color: var(--muted); }
.pd__refnote--warn { color: var(--warn); }
.pd__key { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pd__key li { background: var(--bg-tint); color: var(--ink-2); font-weight: 600; font-size: 13px; padding: 5px 10px; border-radius: 8px; }
.pd__buy { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 12px; background: #fff; box-shadow: var(--shadow); }
.pd__buy p { margin: 0; }
.pd__qty { display: flex; align-items: center; gap: 12px; }
.pd__qty label { font-weight: 600; font-size: 14px; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty button { width: 38px; height: 40px; border: 0; background: var(--bg-soft); cursor: pointer; font-size: 18px; }
.qty input { width: 48px; height: 40px; border: 0; text-align: center; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.src { margin-top: 14px; font-size: 13px; color: var(--ink-2); background: var(--bg-soft); border-radius: var(--radius-sm); padding: 12px 14px; display: grid; gap: 4px; }
.src p { margin: 0; }
.pd__svc { margin: 14px 0 0; display: grid; gap: 10px; }
.pd__svc div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; font-size: 14px; }
.pd__svc dt { font-weight: 700; }
.pd__svc dd { margin: 0; color: var(--ink-2); }
.pdtabs { display: grid; gap: 28px; padding-bottom: 24px; }
.pdtabs__s h2 { font-size: 22px; font-weight: 800; padding-bottom: 8px; border-bottom: 2px solid var(--ink); display: inline-block; }
.pdtabs__s > p { max-width: 90ch; }
.spec__wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.spec { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
.spec th, .spec td { padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th[scope="row"] { width: 42%; font-weight: 500; color: var(--muted); }
.spec tr:nth-child(even) td, .spec tr:nth-child(even) th[scope="row"] { background: #fafbfd; }
.spec__g th { background: var(--ink) !important; color: #fff; font-weight: 700; letter-spacing: .02em; }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(5, 8, 15, .94); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox[hidden] { display: none; }
.lightbox__stage { height: 100vh; overflow: hidden; display: grid; place-items: center; cursor: zoom-in; touch-action: pinch-zoom; }
.lightbox__stage img { max-width: 100%; max-height: 92vh; object-fit: contain; transition: transform .2s; background: #fff; border-radius: 8px; }
.lightbox__stage.is-zoom { cursor: zoom-out; }
.lightbox__stage.is-zoom img { transform: scale(2.4); }
.lightbox .icon-btn { color: #fff; }
.lightbox .icon-btn:hover { background: rgba(255, 255, 255, .12); }
.lightbox__close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; }
.lightbox__nav { justify-self: center; }
html[dir="rtl"] .lightbox__nav svg { transform: scaleX(-1); }
.lightbox__count { position: absolute; bottom: 12px; inset-inline: 0; text-align: center; color: #cbd5e1; margin: 0; font-size: 13px; }

/* ---------- cart / checkout / forms ---------- */
.cartlayout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; padding-bottom: 56px; }
.line { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line img { width: 110px; height: 82px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.line h3 { font-size: 15px; margin: 0 0 2px; }
.line h3 a { color: var(--ink); }
.line__ref { font-size: 12.5px; color: var(--muted); margin: 0 0 8px; }
.line__ctl { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.line__price { font-weight: 800; font-size: 17px; text-align: end; white-space: nowrap; }
.line__unit { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.summary { position: sticky; top: 130px; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--bg-soft); }
.summary h2 { font-size: 18px; }
.summary dl { margin: 0 0 16px; display: grid; gap: 8px; }
.summary dl div { display: flex; justify-content: space-between; gap: 12px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }
.summary__total { border-top: 1px solid var(--line); padding-top: 10px; font-size: 18px; }
.summary__total dt { color: var(--ink) !important; font-weight: 700; }
.summary__total dd { font-weight: 800; }
.sumline { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.empty-cart { text-align: center; padding: 60px 16px; }
.form { display: grid; gap: 14px; }
.form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 0; display: grid; gap: 12px; }
.form legend { font-weight: 800; padding: 0 6px; }
.form__row { display: grid; gap: 5px; }
.form__row label { font-weight: 600; font-size: 14px; }
.form__2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form input:not([type="radio"]):not([type="checkbox"]), .form select, .form textarea { width: 100%; min-height: 44px; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29, 78, 216, .15); }
.form .is-invalid { border-color: var(--sale) !important; }
.err { color: var(--sale); min-height: 0; font-size: 12.5px; }
.done { text-align: center; padding: 48px 16px 64px; max-width: 640px; margin-inline: auto; }
.done__ic { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; margin: 0 auto 16px; }
.done__ic svg { width: 36px; height: 36px; }
.done__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.form__done { padding: 14px; border-radius: 10px; background: var(--ok-bg); color: var(--ok); }
.form__done .btn { margin-top: 8px; margin-inline-end: 8px; }
.notice { background: var(--warn-bg); color: #7c2d12; border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; }
.contact { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; padding-bottom: 56px; }
.contact__list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.contact__list li { display: grid; gap: 2px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.about { display: grid; gap: 22px; padding-bottom: 56px; max-width: 900px; }
.about__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.about__stats div { background: var(--bg-tint); border-radius: var(--radius); padding: 18px; display: grid; }
.about__stats strong { font-size: 32px; font-weight: 800; color: var(--brand); }
.about__b h2 { font-size: 20px; }
.about__b p { margin: 0; color: var(--ink-2); }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 56px; }
.srctable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.srctable th, .srctable td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.srctable thead th { background: var(--ink); color: #fff; position: sticky; top: 0; }
.srctable td:nth-child(2) { white-space: nowrap; font-weight: 700; }

/* ---------- footer / toast ---------- */
.ftr { background: var(--ink); color: #cbd5e1; margin-top: 24px; }
.ftr__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 28px; padding-block: 44px 28px; }
.ftr h2 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ftr a { color: #cbd5e1; }
.ftr a:hover { color: #fff; }
.logo--ftr .logo__txt { color: #fff; }
.logo--ftr .logo__txt b { color: #93c5fd; }
.ftr__brands { display: flex; gap: 18px; align-items: center; margin-top: 14px; }
.ftr__brands img { height: 22px; width: auto; filter: brightness(0) invert(1); opacity: .8; }
.ftr__pay { font-size: 13px; margin-top: 12px; }
.ftr__legal { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 18px 26px; font-size: 12.5px; color: #94a3b8; display: grid; gap: 4px; }
.ftr__legal p { margin: 0; }
.toast { position: fixed; bottom: 20px; inset-inline-start: 50%; transform: translateX(-50%); z-index: 95; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 14px; animation: rise .25s ease; max-width: calc(100vw - 32px); }
html[dir="rtl"] .toast { transform: translateX(50%); }
.toast a { color: #93c5fd; font-weight: 700; white-space: nowrap; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hdr__menu { display: inline-grid; }
  .mainnav { display: none; }
  .hdr__in { flex-wrap: wrap; gap: 8px 10px; min-height: 0; padding-block: 10px; }
  .search { order: 5; flex-basis: 100%; max-width: none; }
  .cartlink { margin-inline-start: auto; }
  .cartlink__t { display: none; }
  .hero__in { grid-template-columns: 1fr; min-height: 0; padding-block: 56px 40px; }
  .hero__deal { justify-self: start; }
  .trust__in { grid-template-columns: 1fr 1fr; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .catlayout { grid-template-columns: 1fr; }
  .catlayout__side { position: fixed; inset: 0; z-index: 85; background: rgba(11, 18, 32, .5); max-height: none; display: none; }
  .catlayout__side.is-open { display: block; }
  .catlayout__side .filters { position: absolute; inset-block: 0; inset-inline-start: 0; width: min(88vw, 360px); background: #fff; padding: 16px; overflow-y: auto; animation: slidein .25s ease; }
  html[dir="rtl"] .catlayout__side .filters { animation-name: slidein-rtl; }
  .filters__apply { display: inline-flex; position: sticky; bottom: 0; margin-top: 12px; }
  .toolbar__filters { display: inline-flex; }
  .pd { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pd__info, .gal { min-width: 0; }
  .gal { position: static; }
  .cartlayout, .contact { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .about__stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .topbar__in > span { display: none; }
  .topbar__in { justify-content: flex-end; }
  .logo__txt { font-size: 18px; }
  .logo__mark { width: 34px; height: 34px; }
  .grid--4, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card__body { padding: 10px; gap: 4px; }
  .card__title { font-size: 14px; }
  .card__specs li:nth-child(n+3) { display: none; }
  .card__actions { grid-template-columns: 1fr; }
  .card__actions .btn--ghost { display: none; }
  .price__now { font-size: 17px; }
  .sec { padding-block: 34px; }
  .sec__head { flex-direction: column; align-items: flex-start; }
  .trust__in { grid-template-columns: 1fr; gap: 10px; }
  .brands__row { gap: 18px; }
  .brandlogo { padding: 6px 8px; }
  .brandlogo img { height: 24px; }
  .form__2 { grid-template-columns: 1fr; }
  .catcard { aspect-ratio: auto; display: grid; }
  .catcard img { height: 120px; }
  .catcard__txt { position: static; background: none; padding: 4px 12px 12px; }
  .catcard__txt strong { font-size: 15px; }
  .line { grid-template-columns: 76px minmax(0, 1fr); }
  .line img { width: 76px; height: 60px; }
  .line__price { grid-column: 2; text-align: start; }
  .pd__svc div { grid-template-columns: 1fr; gap: 0; }
  .ftr__grid { grid-template-columns: 1fr; }
  .toolbar__sort span { display: none; }
  .lightbox { grid-template-columns: 44px 1fr 44px; }
  .spec th[scope="row"] { width: 48%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
