/* =========================================================
   UnknownTech — stylesheet
   1. Tokens   2. Base   3. Layout   4. Buttons
   5. Header   6. Hero   7. Sections  8. Product card
   9. Shop     10. Prebuilt 11. Drawer 12. Modal 13. Toast
   14. Footer  15. RTL  16. Responsive  17. Motion/A11y
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;

  --bg: #f5f6f8;
  --bg-soft: #eef0f4;
  --surface: #ffffff;
  --surface-2: #f1f3f7;
  --surface-3: #e6e9f0;
  --text: #0b0e13;
  --text-2: #39414f;
  --muted: #657081;
  --line: rgba(11, 14, 19, 0.09);
  --line-strong: rgba(11, 14, 19, 0.18);

  --accent: #2f52e0;
  --accent-ink: #ffffff;
  --accent-soft: rgba(47, 82, 224, 0.09);
  --accent-line: rgba(47, 82, 224, 0.28);

  --ok: #0b8f58;
  --ok-soft: rgba(11, 143, 88, 0.12);
  --warn: #a35f00;
  --warn-soft: rgba(163, 95, 0, 0.12);

  --shadow-sm: 0 1px 2px rgba(11, 14, 19, 0.06);
  --shadow: 0 1px 2px rgba(11, 14, 19, 0.05), 0 14px 34px -22px rgba(11, 14, 19, 0.5);
  --shadow-lg: 0 30px 70px -40px rgba(11, 14, 19, 0.55);

  --r-xs: 8px;
  --r-sm: 10px;
  --r: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;

  --header-bg: rgba(245, 246, 248, 0.88);
  --footer-bg: #090b0f;
  --footer-text: #cfd5e0;
  --img-bg: #0c0f15;
  --max: 1240px;
}

html[data-theme="dark"] {
  --bg: #07080b;
  --bg-soft: #0b0d12;
  --surface: #0f1218;
  --surface-2: #141922;
  --surface-3: #1b2230;
  --text: #eef1f6;
  --text-2: #c2c9d6;
  --muted: #8d97a7;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.2);

  --accent: #6f8cff;
  --accent-ink: #080b12;
  --accent-soft: rgba(111, 140, 255, 0.13);
  --accent-line: rgba(111, 140, 255, 0.32);

  --ok: #3ddc97;
  --ok-soft: rgba(61, 220, 151, 0.12);
  --warn: #ffb454;
  --warn-soft: rgba(255, 180, 84, 0.12);

  --shadow-sm: 0 1px 0 rgba(255, 255, 255, 0.04);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 50px -30px #000;
  --shadow-lg: 0 40px 90px -40px #000;

  --header-bg: rgba(7, 8, 11, 0.86);
  --footer-bg: #0b0d12;
  --img-bg: #0a0d12;
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

html[dir="rtl"] body { font-family: var(--font-ar); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4 { font-family: var(--font-ar); letter-spacing: 0; line-height: 1.35; }

p { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

::selection { background: var(--accent); color: var(--accent-ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; inset-inline-start: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; font-size: 0.9rem;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 12px; }

html.i18n-pending [data-i18n] { visibility: hidden; }

/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.section { padding-block: clamp(40px, 6vw, 76px); }
.section-tight { padding-block: clamp(28px, 4vw, 48px); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(20px, 3vw, 34px);
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
html[dir="rtl"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 0.8rem; }

.section-title { font-size: clamp(1.55rem, 2.8vw, 2.15rem); }

.section-sub {
  max-width: 52ch;
  color: var(--muted);
  font-size: 0.98rem;
  margin-top: 0.6rem;
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; font-size: 0.92rem; color: var(--accent);
  white-space: nowrap;
}
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0 1.15rem;
  border: 1px solid transparent; border-radius: var(--r);
  font-family: inherit; font-size: 0.93rem; font-weight: 600; line-height: 1;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease,
              border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none;
}
.btn-sm { min-height: 38px; padding: 0 0.85rem; font-size: 0.85rem; border-radius: var(--r-sm); }
.btn-block { width: 100%; }

.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 12px 26px -16px var(--accent); }
.btn-primary:hover { filter: brightness(1.07); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--text-2); }

.btn-solid { background: var(--surface); color: var(--text); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-solid:hover { border-color: var(--line-strong); }

.btn-wa { background: #1fae54; color: #fff; box-shadow: 0 12px 26px -16px #1fae54; }
.btn-wa:hover { filter: brightness(1.06); }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: var(--r-sm); border: 1px solid transparent;
  background: transparent; color: var(--text-2); cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

.seg {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm);
}
.seg button {
  border: 0; background: transparent; color: var(--muted);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 6px 9px; border-radius: 7px; cursor: pointer; line-height: 1;
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* ---------- 5. Header ---------- */
.announce {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0.55rem 1rem;
}
html[dir="rtl"] .announce { letter-spacing: 0; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -26px rgba(0, 0, 0, 0.6); }

.header-inner {
  display: flex; align-items: center; gap: 1rem;
  height: 66px;
}

.brand { display: inline-flex; align-items: center; gap: 0.6rem; margin-inline-end: auto; }
.brand-logo {
  width: 34px; height: 34px; flex: none;
  display: grid; grid-template-areas: "logo";
}
.brand-img {
  grid-area: logo; width: 34px; height: 34px; object-fit: contain;
}
.brand-img-dark { visibility: hidden; }
html[data-theme="dark"] .brand-img-light { visibility: hidden; }
html[data-theme="dark"] .brand-img-dark { visibility: visible; }
.brand-text {
  font-family: var(--font-display);
  font-size: 1.18rem; font-weight: 500; letter-spacing: -0.03em;
}
.brand-text b { font-weight: 700; }
html[dir="rtl"] .brand-text { font-family: var(--font-sans); letter-spacing: 0; }

.nav { display: flex; align-items: center; gap: 0.3rem; }
.nav a {
  padding: 0.5rem 0.7rem; border-radius: var(--r-xs);
  font-size: 0.92rem; font-weight: 500; color: var(--text-2);
  transition: background-color 0.15s, color 0.15s;
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 0.35rem; }

.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: 1px; inset-inline-end: 0;
  min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font-size: 0.66rem; font-weight: 700; line-height: 1;
  border-radius: var(--r-pill);
}
.cart-count[hidden] { display: none; }

.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.menu-toggle { display: none; }

.mobile-menu {
  display: none;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 0.5rem clamp(16px, 4vw, 32px) 1rem;
}
.mobile-menu a {
  display: block; padding: 0.8rem 0.4rem;
  font-weight: 500; border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: 0; }
body.menu-open .mobile-menu { display: block; }

/* ---------- 6. Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 92px) clamp(36px, 5vw, 64px); }
.hero::before {
  content: ""; position: absolute; inset-inline: -10%; top: -40%; height: 120%;
  background: radial-gradient(56% 52% at 50% 0%, var(--accent-soft), transparent 72%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.hero-title {
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  margin-block: 0.7rem 1rem;
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-body {
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  color: var(--text-2); max-width: 46ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.7rem; }
.hero-note {
  margin-top: 1.4rem; font-size: 0.83rem; color: var(--muted);
  display: flex; align-items: center; gap: 0.5rem;
}
.hero-note svg { width: 15px; height: 15px; flex: none; color: var(--ok); }

.hero-panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  display: grid;
  gap: 12px;
}
.hero-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-inline: 4px; }
.hero-panel-media {
  border-radius: var(--r-md); overflow: hidden; background: var(--img-bg);
  aspect-ratio: 16 / 10;
}
.hero-panel-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-panel-name { font-size: 1.06rem; font-weight: 600; font-family: var(--font-display); padding-inline: 4px; }
.hero-specs { display: grid; gap: 6px; padding-inline: 4px; }
.hero-specs li {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 0.79rem; padding-bottom: 6px; border-bottom: 1px solid var(--line);
}
.hero-specs li:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-specs span { color: var(--muted); }
.hero-specs b { font-weight: 600; }
.hero-panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px; }

/* ---------- 7. Sections ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cat-tile {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.cat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.cat-ico {
  width: 38px; height: 38px; flex: none; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.cat-ico svg { width: 20px; height: 20px; }
.cat-name { font-weight: 600; font-size: 0.92rem; }
.cat-meta { font-size: 0.76rem; color: var(--muted); margin-inline-start: 6px; }

.usps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.usp {
  padding: 20px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
}
.usp svg { width: 22px; height: 22px; color: var(--accent); margin-bottom: 0.8rem; }
.usp h3 { font-size: 0.98rem; margin-bottom: 0.3rem; }
.usp p { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }

.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(70% 120% at 12% 0%, var(--accent-soft), transparent 60%),
    var(--surface);
  padding: clamp(24px, 4vw, 44px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); max-width: 22ch; }
.cta-band p { color: var(--muted); max-width: 46ch; margin-top: 0.6rem; }

.notice {
  display: flex; align-items: flex-start; gap: 0.6rem;
  padding: 12px 14px; border-radius: var(--r);
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 0.83rem; color: var(--text-2);
}
.notice svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--muted); }

/* ---------- 8. Product card ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 18px; }

.pcard {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }

.pcard-media {
  position: relative; display: block; aspect-ratio: 4 / 3;
  background: var(--img-bg); overflow: hidden; border: 0; padding: 0; cursor: pointer; width: 100%;
}
.pcard-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.pcard:hover .pcard-media img { transform: scale(1.035); }

.pcard-badges {
  position: absolute; inset-block-start: 10px; inset-inline: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  pointer-events: none;
}
.flag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 8px; border-radius: var(--r-pill);
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.02em;
  background: rgba(9, 11, 15, 0.72); color: #dfe6f2;
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.flag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.flag-ok { color: #63e6a8; }
.flag-pre { color: #ffc46b; }
.flag-out { color: #a3adbd; }
.flag-save { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.flag-save::before { display: none; }

.pcard-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 15px 15px; flex: 1; }
.pcard-brand { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pcard-name { font-size: 0.95rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.pcard-name button {
  border: 0; background: none; padding: 0; margin: 0; text-align: start;
  cursor: pointer; font: inherit; color: inherit;
}
.pcard-name button:hover { color: var(--accent); }
.pcard-meta {
  font-size: 0.78rem; color: var(--muted); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }

.price { display: inline-flex; align-items: baseline; gap: 0.4rem; }
.price-now {
  font-family: var(--font-display); font-weight: 600; font-size: 1.06rem;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.price-old { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.add-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  border-radius: 10px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--text); cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.add-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: translateY(-1px); }
.add-btn svg { width: 16px; height: 16px; }
.add-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ---------- 9. Shop ---------- */
.page-head { padding-block: clamp(28px, 4vw, 48px) 0; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.page-head p { color: var(--muted); margin-top: 0.7rem; max-width: 56ch; }

.shop-bar {
  position: sticky; top: 66px; z-index: 30;
  background: var(--bg);
  padding-block: 14px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.shop-bar.is-stuck { border-bottom-color: var(--line); }
.shop-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.search-field {
  position: relative; flex: 1 1 260px; min-width: 200px;
}
.search-field svg {
  position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--muted); pointer-events: none;
}
.search-field input {
  width: 100%; height: 42px; padding-inline: 38px 12px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r);
  font: inherit; font-size: 0.9rem;
}
.search-field input::placeholder { color: var(--muted); }
.search-field input:focus { border-color: var(--accent-line); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }

.select {
  height: 42px; padding-inline: 12px; min-width: 170px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r);
  font: inherit; font-size: 0.9rem; cursor: pointer;
}

.chips {
  display: flex; flex-wrap: wrap; gap: 8px; padding-block: 12px 2px;
}
.chip {
  flex: none; padding: 7px 13px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface);
  color: var(--text-2); font-size: 0.84rem; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.chip:hover { border-color: var(--line-strong); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

.results-line {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-block: 18px 16px;
  font-size: 0.82rem; color: var(--muted);
}

.empty {
  text-align: center; padding: clamp(40px, 8vw, 80px) 20px;
  border: 1px dashed var(--line-strong); border-radius: var(--r-md);
}
.empty svg { width: 34px; height: 34px; margin: 0 auto 1rem; color: var(--muted); }
.empty h2 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.empty p { color: var(--muted); font-size: 0.92rem; }

.skeleton {
  border-radius: var(--r-md); background: var(--surface-2);
  border: 1px solid var(--line);
  min-height: 330px;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

/* ---------- 10. Prebuilt ---------- */
.build-card {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.build-card:hover { box-shadow: var(--shadow); border-color: var(--line-strong); transform: translateY(-2px); }
.build-media { background: var(--img-bg); min-height: 240px; }
.build-media img { width: 100%; height: 100%; object-fit: cover; }
.build-body { padding: clamp(20px, 3vw, 30px); display: flex; flex-direction: column; gap: 12px; }
.build-body h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
.build-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 20px; margin-block: 4px; }
.build-specs li { display: flex; justify-content: space-between; gap: 10px; font-size: 0.82rem; padding-block: 5px; border-bottom: 1px solid var(--line); }
.build-specs span { color: var(--muted); }
.build-specs b { font-weight: 600; text-align: end; }
.build-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 10px; flex-wrap: wrap; }

/* ---------- 11. Drawer ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(4, 6, 10, 0.55);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.overlay.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; inset-block: 0; inset-inline-end: 0; z-index: 100;
  width: min(430px, 100%);
  display: flex; flex-direction: column;
  background: var(--surface); border-inline-start: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transform: translateX(102%);
  transition: transform 0.32s cubic-bezier(0.3, 0.8, 0.2, 1);
  visibility: hidden;
}
html[dir="rtl"] .drawer { transform: translateX(-102%); }
.drawer.is-open { transform: translateX(0); visibility: visible; }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--line);
}
.drawer-head h2 { font-size: 1.1rem; }
.drawer-count { font-size: 0.8rem; color: var(--muted); font-weight: 400; margin-inline-start: 6px; }

.drawer-body { flex: 1; overflow-y: auto; padding: 14px 18px; }

.cart-line {
  display: grid; grid-template-columns: 66px 1fr auto; gap: 12px;
  padding-block: 14px; border-bottom: 1px solid var(--line);
  align-items: start;
}
.cart-line:last-child { border-bottom: 0; }
.cart-thumb { width: 66px; height: 56px; border-radius: var(--r-xs); overflow: hidden; background: var(--img-bg); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-name { font-size: 0.87rem; font-weight: 600; line-height: 1.35; }
.cart-line-meta { font-size: 0.76rem; color: var(--muted); margin-top: 2px; }
.cart-line-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; }

.stepper {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: var(--r-xs); overflow: hidden;
}
.stepper button {
  width: 27px; height: 27px; border: 0; background: transparent;
  color: var(--text-2); cursor: pointer; display: grid; place-items: center;
}
.stepper button:hover { background: var(--surface-2); color: var(--text); }
.stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper span { min-width: 26px; text-align: center; font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.stepper svg { width: 12px; height: 12px; }

.cart-remove {
  border: 0; background: none; padding: 0; cursor: pointer;
  font-size: 0.76rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px;
}
.cart-remove:hover { color: var(--text); }
.cart-line-price { font-size: 0.88rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.drawer-foot {
  border-top: 1px solid var(--line);
  padding: 16px 18px 18px;
  display: grid; gap: 10px;
  background: var(--surface);
}
.total-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.total-row span { font-size: 0.88rem; color: var(--muted); }
.total-row strong {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 600;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.field { display: grid; gap: 4px; }
.field label { font-size: 0.74rem; font-weight: 600; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 9px 11px;
  background: var(--bg-soft); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r-xs);
  font: inherit; font-size: 0.86rem; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { min-height: 62px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.drawer-note { font-size: 0.72rem; color: var(--muted); line-height: 1.5; text-align: center; }
.drawer-empty { display: grid; place-items: center; gap: 6px; text-align: center; padding: 60px 24px; }
.drawer-empty svg { width: 34px; height: 34px; color: var(--muted); margin-bottom: 6px; }
.drawer-empty h3 { font-size: 1.05rem; }
.drawer-empty p { font-size: 0.86rem; color: var(--muted); max-width: 28ch; }

/* ---------- 12. Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 110;
  display: grid; place-items: center; padding: clamp(12px, 4vw, 32px);
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 6, 10, 0.6); }
.modal-card {
  position: relative; z-index: 1;
  width: min(880px, 100%); max-height: min(88vh, 760px);
  overflow-y: auto;
  display: grid; grid-template-columns: 0.95fr 1.05fr;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  transform: translateY(10px) scale(0.99);
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.modal.is-open .modal-card { transform: translateY(0) scale(1); }
.modal-media { background: var(--img-bg); min-height: 260px; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: clamp(20px, 3vw, 30px); display: flex; flex-direction: column; gap: 12px; }
.modal-close {
  position: absolute; inset-block-start: 12px; inset-inline-end: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2);
  cursor: pointer;
}
.modal-close:hover { color: var(--text); border-color: var(--line-strong); }
.modal-brand { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.modal-title { font-size: clamp(1.25rem, 2.4vw, 1.7rem); }
.modal-price { display: flex; align-items: baseline; gap: 0.6rem; }
.modal-price .price-now { font-size: 1.5rem; }
.spec-list { display: grid; gap: 0; margin-block: 2px; }
.spec-list li {
  display: flex; justify-content: space-between; gap: 16px;
  padding-block: 7px; border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list span { color: var(--muted); }
.spec-list b { font-weight: 600; text-align: end; }
.modal-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; flex-wrap: wrap; }
.modal-actions .btn { flex: 1 1 150px; }

/* ---------- 12b. Colour variants ---------- */
.variant-block { display: grid; gap: 6px; padding-block: 2px; }
.variant-label { font-size: 0.74rem; font-weight: 600; color: var(--muted); }
.swatch-row { display: flex; flex-wrap: wrap; gap: 9px; }
.swatch {
  width: 26px; height: 26px; padding: 0; border-radius: 50%;
  border: 2px solid var(--surface); background: var(--swatch, #8892a4);
  box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.swatch:hover { transform: scale(1.08); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent); }
.variant-name { font-size: 0.8rem; color: var(--text-2); }
.card-swatches { display: flex; gap: 5px; margin-top: 7px; }
.card-swatch {
  width: 14px; height: 14px; padding: 0; border-radius: 50%;
  border: 1px solid var(--surface); background: var(--swatch, #8892a4);
  box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer;
}
.card-swatch:hover { box-shadow: 0 0 0 2px var(--accent); }
.cart-line-variant { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }

/* ---------- 13. Toast ---------- */
.toast-wrap {
  position: fixed; inset-inline: 0; bottom: 20px; z-index: 130;
  display: grid; justify-items: center; gap: 8px; pointer-events: none;
}
.toast {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--text); color: var(--bg);
  font-size: 0.85rem; font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.25s ease both;
}
.toast svg { width: 15px; height: 15px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- 14. Footer ---------- */
.site-footer {
  margin-top: clamp(30px, 5vw, 60px);
  background: var(--footer-bg); color: var(--footer-text);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(24px, 4vw, 48px);
  padding-block: clamp(36px, 5vw, 56px);
}
.footer-brand .brand-text { color: #fff; }
.footer-brand .brand-mark { background: #fff; color: #090b0f; }
.footer-tagline { font-size: 0.86rem; color: #9aa4b5; margin-top: 0.9rem; max-width: 34ch; }
.footer h3 { font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: #7d8798; font-family: var(--font-sans); margin-bottom: 0.8rem; }
html[dir="rtl"] .footer h3 { letter-spacing: 0; }
.footer ul { display: grid; gap: 0.5rem; }
.footer li a, .footer li span { font-size: 0.86rem; color: #c3cad6; }
.footer li a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-contact svg { width: 15px; height: 15px; color: #8b95a6; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 0.78rem; color: #7d8798;
}
.pay-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.pay-tags span {
  padding: 3px 8px; border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.7rem; color: #aeb7c6;
}

/* ---------- 15. RTL ---------- */
html[dir="rtl"] .icon-arrow,
html[dir="rtl"] .icon-chevron { transform: scaleX(-1); }
html[dir="rtl"] .price,
html[dir="rtl"] .pcard-meta,
html[dir="rtl"] .cart-line-price { direction: rtl; }
html[dir="rtl"] .brand { margin-inline-end: auto; margin-inline-start: 0; }

/* ---------- 16. Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 460px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .usps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-contact-col { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .header-inner { height: 60px; }
  .shop-bar { top: 60px; }
  .chips {
    flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain;
    padding-bottom: 8px;
    scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
  }
  .chips::-webkit-scrollbar { display: block; height: 4px; }
  .chips::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
  .build-card { grid-template-columns: 1fr; }
  .build-media { min-height: 200px; aspect-ratio: 16 / 9; }
  .modal-card { grid-template-columns: 1fr; }
  .modal-media { min-height: 200px; aspect-ratio: 16 / 9; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .usps { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pcard-body { padding: 11px 12px 12px; }
  .pcard-name { font-size: 0.87rem; }
  .pcard-meta { display: none; }
  .price-now { font-size: 0.97rem; }
  .add-btn { width: 32px; height: 32px; }
  .build-specs { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .section-head { align-items: flex-start; }
  .header-lang { display: none; }
}

@media (max-width: 360px) {
  .pgrid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2rem; }
}

/* ---------- 17. Motion & A11y ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .pcard:hover { transform: none; }
}

@media (forced-colors: active) {
  .btn, .pcard, .cat-tile, .chip { border: 1px solid CanvasText; }
}

/* ---------- 18. Contact & FAQ ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(22px, 4vw, 44px);
  align-items: start;
}

.contact-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.contact-card-ico {
  width: 46px; height: 46px; flex: none; border-radius: 12px;
  display: grid; place-items: center;
  background: #1fae54; color: #fff;
}
.contact-card-ico svg { width: 22px; height: 22px; }
.contact-card-body { display: grid; gap: 1px; }
.contact-card-title { font-weight: 600; font-size: 0.98rem; }
.contact-card-sub { font-size: 0.84rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.contact-card-arrow { margin-inline-start: auto; color: var(--muted); flex: none; }
.contact-card:hover .contact-card-arrow { color: var(--accent); }

.contact-list { display: grid; margin-top: 10px; }
.contact-list li {
  display: flex; align-items: flex-start; gap: 14px;
  padding-block: 14px; border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-ico {
  width: 36px; height: 36px; flex: none; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--text-2);
}
.contact-ico svg { width: 18px; height: 18px; }
.contact-label {
  display: block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
html[dir="rtl"] .contact-label { letter-spacing: 0; text-transform: none; font-size: 0.8rem; }
.contact-value { display: inline-block; font-size: 0.94rem; font-weight: 500; font-variant-numeric: tabular-nums; }
a.contact-value:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: clamp(18px, 3vw, 26px);
}
.panel h2 { font-size: 1.12rem; margin-bottom: 0.55rem; }
.panel p { font-size: 0.92rem; color: var(--text-2); line-height: 1.62; }
.pay-tags-light { margin-top: 14px; }
.pay-tags-light span {
  padding: 6px 12px; font-size: 0.79rem;
  border-color: var(--line); color: var(--text-2);
}

.faq { margin-top: clamp(24px, 4vw, 38px); display: grid; gap: 9px; }
.faq > h2 { font-size: 1.12rem; margin-bottom: 0.2rem; }
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding-inline: 16px;
  transition: border-color 0.15s ease;
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding-block: 14px; font-weight: 600; font-size: 0.92rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; font-size: 1.2rem; font-weight: 400;
  line-height: 1; color: var(--muted);
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding-bottom: 14px; margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
