/* ============================================================
   FUSION PC — design system
   Blend: clean white retail body + dark gaming hero
   Single accent: teal. Hebrew RTL.
   ============================================================ */

:root {
  /* neutrals */
  --ink:        #0d0f13;   /* near-black surfaces & text */
  --ink-2:      #14171d;   /* raised dark surface */
  --ink-3:      #1d212a;   /* dark borders / chips */
  --slate:      #5a6472;   /* muted text */
  --slate-2:    #8b94a3;   /* faint text */
  --line:       #e7e9ee;   /* hairline on light */
  --line-2:     #f0f2f5;
  --bg:         #ffffff;
  --bg-soft:    #f5f6f9;   /* page section bg */
  --bg-card:    #ffffff;

  /* accent — teal */
  --teal:       #00d6bd;
  --teal-bright:#14f0d6;
  --teal-deep:  #04786c;   /* teal text that passes contrast on white */
  --teal-ink:   #053b36;   /* very deep for big numerals */
  --teal-glow:  rgba(0,214,189,.55);

  /* support */
  --warn:       #ff5c39;   /* sale / urgency, used sparingly */
  --gold:       #ffb020;

  /* radii */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* shadow */
  --sh-1: 0 1px 2px rgba(13,15,19,.06), 0 1px 3px rgba(13,15,19,.05);
  --sh-2: 0 6px 18px rgba(13,15,19,.08), 0 2px 6px rgba(13,15,19,.05);
  --sh-3: 0 18px 50px rgba(13,15,19,.16);
  --sh-teal: 0 12px 36px rgba(0,214,189,.28);

  --maxw: 1320px;
  --hd-h: 116px; /* header total height for sticky offsets */

  --font-body: Heebo, system-ui, -apple-system, sans-serif;
  --font-disp: Rubik, Heebo, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  direction: rtl;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,h2,h3,h4 { font-family: var(--font-disp); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--teal-deep); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: 28px; }
.eng { font-family: var(--font-disp); direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--slate); }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-disp); font-weight: 600; font-size: 15px;
  padding: 13px 26px; border-radius: 999px; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-teal { background: var(--teal); color: #04302b; box-shadow: var(--sh-teal); }
.btn-teal:hover { background: var(--teal-bright); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-light { background: rgba(255,255,255,.06); color: #fff; border: 1.5px solid rgba(255,255,255,.28); }
.btn-ghost-light:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.6); }
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ---------- section heading ---------- */
.sec { padding-block: 64px; }
.sec-soft { background: var(--bg-soft); }
.sec-dark { background: var(--ink); color: #fff; }
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 30px;
}
.sec-head .ttl { font-size: clamp(24px, 3vw, 34px); }
.sec-head .sub { color: var(--slate); margin-top: 6px; font-size: 15px; }
.sec-head .eyebrow {
  font-family: var(--font-disp); font-weight: 700; font-size: 12.5px;
  letter-spacing: .14em; color: var(--teal-deep); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.sec-head .eyebrow::before { content:""; width: 22px; height: 2px; background: var(--teal); border-radius: 2px; }
.sec-dark .eyebrow { color: var(--teal-bright); }
.sec-dark .sec-head .sub { color: #aab2c0; }
.link-more {
  font-family: var(--font-disp); font-weight: 600; font-size: 14.5px; color: var(--ink);
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 4px;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.link-more:hover { color: var(--teal-deep); border-color: var(--teal); }
.link-more svg { width: 16px; height: 16px; }
.sec-dark .link-more { color: #fff; }
.sec-dark .link-more:hover { color: var(--teal-bright); }

/* ---------- pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; font-family: var(--font-disp);
  padding: 5px 11px; border-radius: 999px; letter-spacing: .01em;
}
.pill-teal { background: rgba(0,214,189,.14); color: var(--teal-deep); }
.pill-dark { background: var(--ink); color: #fff; }
.pill-warn { background: rgba(255,92,57,.12); color: var(--warn); }
.pill-new  { background: #e9fbf7; color: var(--teal-deep); border: 1px solid rgba(0,214,189,.3); }

/* ---------- product card ---------- */
.card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; position: relative;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: transparent; }
.card .ph {
  position: relative; aspect-ratio: 4/3; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
}
.card .ph image-slot { width: 100%; height: 100%; }
.card .card-badges { position: absolute; inset-block-start: 12px; inset-inline-start: 12px; display: flex; gap: 6px; z-index: 3; }
.card .wish {
  position: absolute; inset-block-start: 12px; inset-inline-end: 12px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.9);
  display: grid; place-items: center; box-shadow: var(--sh-1); color: var(--slate);
  transition: color .2s, transform .2s;
}
.card .wish:hover { color: var(--warn); transform: scale(1.08); }
.card .wish.on { color: var(--warn); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .brand-row { display: flex; align-items: center; justify-content: space-between; }
.card .brand-tag { font-family: var(--font-disp); font-weight: 700; font-size: 11.5px; letter-spacing: .1em; color: var(--slate-2); }
.card .rating { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--slate); font-weight: 600; }
.card .rating svg { width: 13px; height: 13px; color: var(--gold); }
.card .name { font-family: var(--font-disp); font-weight: 600; font-size: 15.5px; line-height: 1.3; min-height: 2.6em; }
.card .specs { display: flex; flex-wrap: wrap; gap: 5px; }
.card .spec {
  font-size: 11.5px; font-weight: 600; color: var(--slate); direction: ltr;
  background: var(--bg-soft); padding: 3px 8px; border-radius: 6px;
}
.card .price-row { margin-top: auto; display: flex; align-items: baseline; gap: 10px; padding-top: 6px; }
.card .price { font-family: var(--font-disp); font-weight: 800; font-size: 22px; color: var(--ink); direction: ltr; }
.card .price .cur { font-size: 15px; font-weight: 700; color: var(--slate); }
.card .price-old { font-size: 14px; color: var(--slate-2); text-decoration: line-through; direction: ltr; }
.card .trust-row { display: flex; align-items: center; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line-2); color: var(--teal-deep); }
.card .trust-row .ti { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--slate); }
.card .trust-row svg { width: 16px; height: 16px; color: var(--teal-deep); }
.card .add {
  margin-top: 4px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: #fff; font-family: var(--font-disp); font-weight: 600; font-size: 14px;
  padding: 12px; border-radius: 12px; transition: background .2s;
}
.card .add:hover { background: var(--teal); color: #04302b; }
.card .add svg { width: 17px; height: 17px; }

/* ---------- carousel ---------- */
.carousel { position: relative; }
.carousel-track {
  display: grid; grid-auto-flow: column; gap: 20px;
  grid-auto-columns: clamp(240px, 26vw, 300px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-block: 6px 14px; padding-inline: 2px;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; }
.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; background: #fff;
  box-shadow: var(--sh-2); display: grid; place-items: center; z-index: 5;
  color: var(--ink); transition: background .2s, color .2s, transform .15s;
}
.car-btn:hover { background: var(--ink); color: #fff; }
.car-btn:active { transform: translateY(-50%) scale(.94); }
.car-btn svg { width: 20px; height: 20px; }
.car-prev { inset-inline-end: -22px; }   /* RTL: prev = next visually handled in JS */
.car-next { inset-inline-start: -22px; }
.car-btn.disabled { opacity: 0; pointer-events: none; }
.sec-dark .car-btn { background: var(--ink-2); color: #fff; border: 1px solid var(--ink-3); }
.sec-dark .card { background: var(--ink-2); border-color: var(--ink-3); color: #fff; }
.sec-dark .card .ph { background: #0a0c10; }
.sec-dark .card .name { color: #fff; }
.sec-dark .card .price { color: #fff; }
.sec-dark .card .spec { background: var(--ink-3); color: #c6cdd8; }
.sec-dark .card .trust-row { border-color: var(--ink-3); }

/* ---------- toast ---------- */
.toast-wrap { position: fixed; inset-block-end: 26px; inset-inline-start: 26px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--ink); color: #fff; padding: 14px 18px; border-radius: 14px;
  display: flex; align-items: center; gap: 12px; box-shadow: var(--sh-3);
  font-size: 14.5px; font-weight: 500; min-width: 280px;
  animation: toastIn .35s cubic-bezier(.2,.9,.3,1.2);
}
.toast .tdot { width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #04302b; display: grid; place-items: center; flex: none; }
.toast .tdot svg { width: 18px; height: 18px; }
@keyframes toastIn { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- striped placeholder ---------- */
.stripe-ph {
  background:
    repeating-linear-gradient(135deg, #eceef2 0 12px, #f6f7f9 12px 24px);
  display: flex; align-items: center; justify-content: center;
  color: var(--slate-2); font-family: var(--font-disp); font-size: 12px; letter-spacing: .04em;
}

/* ---------- utility ---------- */
.hide { display: none !important; }
.dots { display: flex; gap: 7px; justify-content: center; }
.dot { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.3); transition: all .25s; cursor: pointer; }
.dot.on { width: 26px; background: var(--teal); }
.dots-dark .dot { background: var(--line); }
.dots-dark .dot.on { background: var(--teal); }

@media (max-width: 860px) {
  .wrap { padding-inline: 18px; }
  .sec { padding-block: 44px; }
  .car-btn { display: none; }
}
