/* ============================================================
   LOOTIX — מערכת עיצוב
   "Beyond the Game" · ליים חשמלי על שחור, ניגודיות גבוהה.
   לפי ספר המותג: אקצנט ליים אחיד, בלי צבעי ניאון מתחרים.
   ============================================================ */

:root {
  /* רקעים — NEAR BLACK + GRAPHITE מספר המותג */
  --bg: #080A0C;
  --surface: #14191B;
  --surface-2: #1B2124;
  --surface-3: #232A2E;
  --border: #252D31;
  --border-strong: #3A4449;

  /* טקסט — ICE WHITE */
  --text: #F4F5F7;
  --text-2: #B6BEC2;
  --text-3: #8C9599;  /* עומד ביחס ניגודיות AA על הרקע הכהה */

  /* מותג — ELECTRIC LIME */
  --lime: #B6FF00;
  --lime-soft: #D4FF66;   /* אקצנט משני, נשאר במשפחת הליים */
  --grad: linear-gradient(95deg, #CFFF3D 0%, #B6FF00 50%, #93D400 100%);
  --green: #8FD400;        /* הצלחה — גוון ליים עמוק, לא צבע מתחרה */
  --amber: #FFC53D;
  --red: #FF4D5E;          /* שגיאות בלבד — נדרש פונקציונלית */

  /* מערכת */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.35);
  --max: 1200px;
  --header-h: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Assistant", -apple-system, "Segoe UI", Arial, sans-serif;
  direction: rtl;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 18px; }

/* ============================================================
   נגישות (ת"י 5568 / WCAG 2.0 AA)
   ============================================================ */

/* דילוג לתוכן — מופיע בלחיצת Tab ראשונה */
.skip-link {
  position: absolute; top: -200px; right: 16px; z-index: 200;
  background: var(--text); color: var(--bg);
  padding: 12px 20px; border-radius: 0 0 10px 10px;
  font-weight: 800; font-size: 0.95rem;
  transition: top 0.18s;
}
.skip-link:focus { top: 0; }

/* סימון מיקוד ברור למקלדת */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--lime-soft);
  outline-offset: 2px;
  border-radius: 6px;
}

/* טקסט לקוראי מסך בלבד */
.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;
}

/* כיבוד העדפת הפחתת תנועה */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover { transform: none; }
  .card:hover .card-media img { transform: none; }
}
/* כפתור הפתיחה של התפריט הנייד — מוסתר בדסקטופ (ה-id גובר על .icon-btn) */
#nav-open { display: none; }

/* תפריט נייד — יושב ישירות על ה-body כדי שלא יושפע מה-backdrop-filter של ההדר */
.mobile-nav {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 85;
  background: var(--bg);
  display: none;
  flex-direction: column;
  padding: 76px 22px 22px;
  font-size: 1.08rem; font-weight: 700;
  overflow-y: auto;
  transform: translateY(-100%);
  transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-nav.open { transform: none; }
.mobile-nav a { padding: 17px 0; border-bottom: 1px solid var(--border); }
.mobile-nav #nav-close { position: absolute; top: 18px; left: 18px; }

/* ============================================================
   בר הכרזות
   ============================================================ */
/* בר הכרזות — ליים מלא עם טקסט שחור. הניגודיות הגבוהה ביותר באתר. */
.announce {
  background: var(--grad);
  color: #080A0C;
  text-align: center;
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.2px;
  padding: 9px 16px;
  position: relative;
  z-index: 60;
}
.announce span { display: none; }
.announce span.active { display: inline; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ============================================================
   הדר
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 55;
  background: rgba(7, 8, 13, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: var(--header-h);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
/* PNG שקוף (הרקע השחור הומר לשקיפות) — עובד על כל רקע */
.logo img { height: 62px; width: auto; display: block; }
.logo .mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: #080A0C;
  border: 1.5px solid rgba(182, 255, 0, 0.45);
  display: grid; place-items: center;
  color: var(--lime); font-weight: 900; font-size: 0.92rem; letter-spacing: 0; font-style: italic;
  box-shadow: 0 0 18px rgba(182, 255, 0, 0.28);
}

.main-nav { display: flex; align-items: center; gap: 24px; margin-inline-start: 14px; font-weight: 600; color: var(--text-2); font-size: 0.95rem; }
.main-nav a { position: relative; padding: 4px 0; transition: color 0.15s; }
.main-nav a:hover { color: var(--text); }
.main-nav a::after {
  content: ""; position: absolute; bottom: 0; right: 0; left: 0; height: 2px;
  background: var(--grad); border-radius: 2px; transform: scaleX(0); transition: transform 0.2s;
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text); cursor: pointer;
  font-size: 1.05rem;
  transition: border-color 0.15s, background 0.15s;
}
.icon-btn:hover { border-color: var(--border-strong); background: var(--surface-3); }

.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: -6px; inset-inline-start: -6px;
  min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--lime); color: #080A0C;
  border-radius: 999px; font-size: 0.7rem; font-weight: 900;
  display: none; place-items: center;
  box-shadow: 0 0 0 2px var(--bg);
}
.cart-count.visible { display: grid; }

/* ============================================================
   כפתורים
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 800; font-size: 0.97rem;
  border: none; cursor: pointer;
  transition: transform 0.12s, filter 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--grad); color: #080A0C; box-shadow: 0 8px 24px rgba(182, 255, 0, 0.22); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--border-strong); }
.btn-wa { background: #25d366; color: #05270f; }
.btn-wa:hover { filter: brightness(1.06); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 28px; font-size: 1.04rem; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ============================================================
   דירוג כוכבים
   ============================================================ */
.stars { display: inline-flex; gap: 1px; color: var(--amber); font-size: 0.86rem; letter-spacing: -1px; }
.rating-line { display: flex; align-items: center; gap: 7px; font-size: 0.85rem; color: var(--text-2); }

/* ============================================================
   הירו
   ============================================================ */
.hero { position: relative; overflow: hidden; padding: 52px 0 46px; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 55% at 78% 12%, rgba(182, 255, 0, 0.14), transparent 70%),
              radial-gradient(60% 50% at 12% 25%, rgba(212, 255, 102, 0.08), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 6px 13px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; color: var(--lime-soft);
  margin-bottom: 16px;
}
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.15rem); line-height: 1.12; margin: 0 0 14px; font-weight: 900; letter-spacing: -0.5px; }
.hero h1 .grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: var(--text-2); font-size: 1.08rem; margin: 0 0 26px; max-width: 44ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  aspect-ratio: 1 / 1;
  position: relative;
}
.hero-visual { background: #000; }
.hero-visual img { width: 100%; height: 100%; object-fit: contain; }

/* ============================================================
   בר אמון
   ============================================================ */
.trust-bar { border-block: 1px solid var(--border); background: var(--surface); }
.trust-bar .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-block: 18px; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.87rem; font-weight: 700; color: var(--text-2); }
.trust-item .ico { font-size: 1.15rem; }

/* ============================================================
   סקשנים
   ============================================================ */
.section { padding: 54px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin: 0 0 4px; font-weight: 900; letter-spacing: -0.3px; }
.section-head p { color: var(--text-2); margin: 0; font-size: 0.95rem; }

/* ============================================================
   כרטיס מוצר
   ============================================================ */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
  position: relative;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-4px); box-shadow: var(--shadow); }

.card-media { position: relative; aspect-ratio: 1 / 1; background: var(--surface-2); overflow: hidden; }
.card-media > a { display: block; width: 100%; height: 100%; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card-media img { transform: scale(1.05); }

.badge {
  position: absolute; top: 11px; inset-inline-end: 11px;
  background: var(--grad); color: #080A0C;
  font-size: 0.7rem; font-weight: 900;
  padding: 5px 10px; border-radius: 999px;
  z-index: 2;
}
.badge-save {
  position: absolute; top: 11px; inset-inline-start: 11px;
  background: var(--red); color: #fff;
  font-size: 0.7rem; font-weight: 900;
  padding: 5px 9px; border-radius: 999px;
  z-index: 2;
}

.quick-add {
  position: absolute; inset-inline: 11px; bottom: 11px;
  padding: 11px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.96); color: #080A0C;
  font-weight: 800; font-size: 0.88rem; border: none; cursor: pointer;
  opacity: 0; transform: translateY(8px); transition: opacity 0.2s, transform 0.2s;
  z-index: 2;
}
.card:hover .quick-add { opacity: 1; transform: none; }

.card-body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card-cat { color: var(--lime-soft); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.2px; }
.card-body h3 { margin: 0; font-size: 1rem; font-weight: 800; line-height: 1.35; }
.card-body .sub { color: var(--text-3); font-size: 0.84rem; margin: 0; flex: 1; }

.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 3px; }
.price { font-size: 1.22rem; font-weight: 900; }
.price-old { color: var(--text-3); text-decoration: line-through; font-size: 0.9rem; }
.pay-note { font-size: 0.76rem; color: var(--text-3); }

/* ============================================================
   הוכחה חברתית / סטטיסטיקות
   ============================================================ */
.proof-band {
  text-align: center;
  padding: 46px 0;
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(182, 255, 0, 0.09), transparent 70%),
    var(--surface);
  border-block: 1px solid var(--border);
}
.proof-band .count { font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 900; line-height: 1; }
.proof-band .count span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.proof-band p { color: var(--text-2); margin: 10px 0 0; font-size: 1.02rem; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 26px 20px; text-align: center;
}
.stat-item .val { font-size: 2.2rem; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.stat-item .lbl { color: var(--text-2); font-size: 0.89rem; margin-top: 9px; }

.guarantee {
  display: flex; align-items: center; gap: 14px;
  background: rgba(46, 204, 113, 0.07);
  border: 1px solid rgba(46, 204, 113, 0.28);
  border-radius: var(--r); padding: 15px 17px; margin-top: 18px;
}
.guarantee .g-ico { font-size: 1.7rem; }
.guarantee .g-title { font-weight: 800; font-size: 0.93rem; }
.guarantee .g-sub { color: var(--text-2); font-size: 0.84rem; }

/* ============================================================
   עמוד מוצר
   ============================================================ */
.breadcrumb { color: var(--text-3); font-size: 0.83rem; padding: 18px 0 0; }
.breadcrumb a:hover { color: var(--text); }

.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 46px; align-items: start; padding-top: 22px; }

.gallery { position: sticky; top: calc(var(--header-h) + 16px); }
.gallery-main {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface-2);
  aspect-ratio: 1 / 1;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 11px; }
.thumb {
  width: 74px; height: 74px; border-radius: 10px; overflow: hidden;
  border: 2px solid var(--border); background: var(--surface-2);
  cursor: pointer; padding: 0; transition: border-color 0.15s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--lime); }

.pdp-cat { color: var(--lime-soft); font-weight: 800; font-size: 0.82rem; }
.pdp h1 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 900; margin: 7px 0 10px; letter-spacing: -0.3px; line-height: 1.2; }

.pdp-price { display: flex; align-items: baseline; gap: 10px; margin: 16px 0 5px; }
.pdp-price .price { font-size: 2rem; }
.save-pill { background: rgba(182, 255, 0, 0.14); color: var(--lime); font-size: 0.78rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.installments { color: var(--text-2); font-size: 0.87rem; margin-bottom: 18px; }
.installments b { color: var(--text); }

.pdp-desc { color: var(--text-2); margin: 0 0 20px; font-size: 0.97rem; }

.feature-list { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 9px; }
.feature-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 0.92rem; color: var(--text-2); }
.feature-list li::before { content: "✓"; color: var(--green); font-weight: 900; flex-shrink: 0; }

.field { margin-bottom: 18px; }
.field > label { display: block; font-weight: 800; font-size: 0.87rem; margin-bottom: 8px; }
.field .hint { font-size: 0.78rem; color: var(--text-3); font-weight: 500; }

input[type="text"], input[type="tel"], input[type="email"], textarea, select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit; font-size: 0.95rem;
  transition: border-color 0.15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--lime-soft); }
input::placeholder, textarea::placeholder { color: var(--text-3); }

.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 11px; overflow: hidden; background: var(--surface-2); }
.qty button { width: 42px; height: 46px; background: none; border: none; color: var(--text); font-size: 1.2rem; cursor: pointer; transition: background 0.15s; }
.qty button:hover { background: var(--surface-3); }
.qty span { width: 44px; text-align: center; font-weight: 900; }

.stock-line { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: 700; color: var(--green); margin-bottom: 18px; }
.stock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.18); }
.stock-line.low { color: var(--amber); }
.stock-line.low .stock-dot { background: var(--amber); box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.18); }

.pdp-trust { border-top: 1px solid var(--border); margin-top: 22px; padding-top: 18px; display: flex; flex-direction: column; gap: 11px; }
.pdp-trust div { display: flex; gap: 10px; align-items: center; font-size: 0.88rem; color: var(--text-2); }

/* אקורדיון */
.acc { border-top: 1px solid var(--border); }
.acc summary {
  list-style: none; cursor: pointer;
  padding: 16px 0; font-weight: 800; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: space-between;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; color: var(--lime-soft); font-size: 1.3rem; font-weight: 400; }
.acc[open] summary::after { content: "−"; }
.acc .acc-body { padding-bottom: 18px; color: var(--text-2); font-size: 0.91rem; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.spec-table td:first-child { color: var(--text-3); width: 42%; }

/* ביקורות */
.reviews-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.big-rating { font-size: 2.6rem; font-weight: 900; line-height: 1; }
.review { border: 1px solid var(--border); background: var(--surface); border-radius: var(--r); padding: 17px; }
.review-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.review-name { font-weight: 800; font-size: 0.92rem; }
.review-date { color: var(--text-3); font-size: 0.78rem; }
.review p { margin: 0; color: var(--text-2); font-size: 0.9rem; }
.verified { color: var(--green); font-size: 0.75rem; font-weight: 700; }

/* בר קנייה דביק במובייל */
.sticky-buy {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 45;
  background: rgba(7, 8, 13, 0.93);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  display: none; align-items: center; gap: 12px;
  transform: translateY(110%); transition: transform 0.25s;
}
.sticky-buy.show { transform: none; }
.sticky-buy .sb-price { font-weight: 900; font-size: 1.1rem; white-space: nowrap; }
.sticky-buy .btn { flex: 1; }

/* ============================================================
   מגירת עגלה
   ============================================================ */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

/* המגירה נפתחת משמאל — שם יושב כפתור העגלה בפריסת RTL */
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 71;
  width: min(420px, 100vw);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.drawer.open { transform: none; }

.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 17px 18px; border-bottom: 1px solid var(--border); }
.drawer-head h3 { margin: 0; font-size: 1.08rem; font-weight: 900; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 18px; }
.drawer-foot { border-top: 1px solid var(--border); padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); background: var(--surface-2); }

/* מד משלוח חינם */
.ship-meter { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); padding: 13px 15px; margin-bottom: 16px; }
.ship-meter p { margin: 0 0 9px; font-size: 0.85rem; font-weight: 700; }
.ship-meter .track { height: 7px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.ship-meter .fill { height: 100%; background: var(--grad); border-radius: 999px; width: 0; transition: width 0.4s; }

.line-item { display: grid; grid-template-columns: 72px 1fr; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.line-item:last-child { border-bottom: none; }
.line-media { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); }
.line-media img { width: 100%; height: 100%; object-fit: cover; }
.line-name { font-weight: 800; font-size: 0.9rem; margin: 0 0 3px; line-height: 1.35; }
.line-meta { font-size: 0.78rem; color: var(--text-3); margin: 0 0 8px; }
.line-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.qty-mini { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-2); }
.qty-mini button { width: 28px; height: 30px; background: none; border: none; color: var(--text); cursor: pointer; font-size: 0.95rem; }
.qty-mini span { width: 28px; text-align: center; font-size: 0.85rem; font-weight: 800; }
.line-price { font-weight: 900; font-size: 0.95rem; }
.link-del { background: none; border: none; color: var(--text-3); font-size: 0.78rem; cursor: pointer; padding: 0; text-decoration: underline; }
.link-del:hover { color: var(--red); }

.sum-row { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--text-2); margin-bottom: 8px; }
.sum-row.total { color: var(--text); font-weight: 900; font-size: 1.15rem; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; }
.sum-row.discount { color: var(--green); }

.empty { text-align: center; padding: 60px 20px; color: var(--text-3); }
.empty .ico { font-size: 2.6rem; margin-bottom: 12px; }

/* ============================================================
   צ'קאאוט
   ============================================================ */
.checkout-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 38px; align-items: start; padding: 28px 0 60px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 22px; }
.panel + .panel { margin-top: 18px; }
.panel h2 { font-size: 1.1rem; margin: 0 0 16px; font-weight: 900; }
.summary-panel { position: sticky; top: calc(var(--header-h) + 16px); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }

.ship-options { display: flex; flex-direction: column; gap: 10px; }
.ship-opt {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--border); border-radius: 11px;
  padding: 13px 15px; cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.ship-opt:hover { border-color: var(--border-strong); }
.ship-opt.selected { border-color: var(--lime); background: rgba(182, 255, 0, 0.06); }
.ship-opt input { accent-color: var(--lime); width: 17px; height: 17px; }
.ship-opt .so-title { font-weight: 800; font-size: 0.92rem; }
.ship-opt .so-sub { font-size: 0.79rem; color: var(--text-3); }
.ship-opt .so-price { margin-inline-start: auto; font-weight: 900; font-size: 0.92rem; }

.coupon-row { display: flex; gap: 9px; }
.coupon-row input { flex: 1; }
.coupon-msg { font-size: 0.82rem; margin-top: 8px; font-weight: 700; }
.coupon-msg.ok { color: var(--green); }
.coupon-msg.err { color: var(--red); }

.pay-icons { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.pay-icons .pi {
  height: 27px; padding: 0 9px;
  background: var(--surface-3); border: 1px solid var(--border); border-radius: 6px;
  display: grid; place-items: center;
  font-size: 0.68rem; font-weight: 900; color: var(--text-2); letter-spacing: 0.3px;
}
.secure-note { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-3); margin-top: 12px; }

.mini-line { display: flex; gap: 11px; align-items: center; padding: 9px 0; }
.mini-line img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); }
.mini-line .ml-name { font-size: 0.85rem; font-weight: 700; line-height: 1.3; }
.mini-line .ml-qty { font-size: 0.76rem; color: var(--text-3); }
.mini-line .ml-price { margin-inline-start: auto; font-weight: 800; font-size: 0.88rem; }

/* ============================================================
   פופאפים
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  display: grid; place-items: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal {
  position: relative;
  width: min(430px, 100%);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 34px 28px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.34, 1.3, 0.64, 1);
  max-height: 92vh; overflow-y: auto;
}
.modal-overlay.open .modal { transform: none; }

/* פס גרדיאנט עליון */
.modal::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.modal .m-close {
  position: absolute; top: 12px; left: 12px;
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-2); cursor: pointer; font-size: 0.95rem;
  display: grid; place-items: center;
}
.modal .m-close:hover { color: var(--text); border-color: var(--border-strong); }

.modal .m-emoji { font-size: 2.8rem; line-height: 1; margin-bottom: 12px; }
.modal h3 { margin: 0 0 10px; font-size: 1.35rem; font-weight: 800; }
.modal p { margin: 0 0 20px; color: var(--text-2); font-size: 0.95rem; }
.modal p b { color: var(--text); }
.modal input[type="email"] { margin-bottom: 11px; text-align: center; }
.modal .m-decline {
  display: block; width: 100%; margin-top: 13px;
  background: none; border: none; cursor: pointer;
  color: var(--text-3); font-size: 0.83rem; text-decoration: underline;
}
.modal .m-decline:hover { color: var(--text-2); }

.coupon-reveal {
  background: var(--surface-2);
  border: 1.5px dashed var(--lime);
  border-radius: var(--r);
  padding: 15px;
  font-size: 1.5rem; font-weight: 900; letter-spacing: 2px;
  margin-bottom: 8px; cursor: pointer;
  direction: ltr;
}
.coupon-reveal:active { transform: scale(0.98); }

/* ============================================================
   וואטסאפ צף + טוסט
   ============================================================ */
.wa-float {
  position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 40;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center; font-size: 1.6rem;
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.4);
  transition: transform 0.15s;
}
.wa-float:hover { transform: scale(1.08); }

.toast {
  position: fixed; bottom: 22px; left: 50%;
  transform: translateX(-50%) translateY(18px);
  background: var(--surface-3); border: 1px solid var(--border-strong);
  padding: 13px 22px; border-radius: 999px;
  font-weight: 800; font-size: 0.9rem;
  box-shadow: var(--shadow); z-index: 90;
  opacity: 0; pointer-events: none; transition: all 0.25s;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   פאנל ניהול (אדמין + ספק)
   ============================================================ */
.admin-shell { min-height: 100vh; display: flex; }

.admin-sidebar {
  width: 230px; flex-shrink: 0;
  background: var(--surface); border-left: 1px solid var(--border);
  padding: 22px 16px; display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100vh;
}
.admin-sidebar .logo { margin-bottom: 20px; padding: 0 8px; }
.admin-nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 10px;
  color: var(--text-2); font-weight: 700; font-size: 0.92rem;
}
.admin-nav-link:hover { background: var(--surface-2); color: var(--text); }
.admin-nav-link.active { background: var(--surface-3); color: var(--text); }
.admin-whoami { margin-top: auto; padding: 12px 8px; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-3); }
.admin-whoami b { color: var(--text-2); display: block; margin-bottom: 6px; }

.admin-main { flex: 1; min-width: 0; padding: 26px 30px 60px; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 14px; flex-wrap: wrap; }
.admin-topbar h1 { font-size: 1.4rem; margin: 0; font-weight: 900; }

.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.kpi-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 18px; }
.kpi-card .n { font-size: 1.7rem; font-weight: 900; }
.kpi-card .l { color: var(--text-3); font-size: 0.82rem; margin-top: 4px; }

.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 800;
}
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.data-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.data-table th {
  text-align: right; padding: 12px 16px; font-size: 0.78rem;
  color: var(--text-3); border-bottom: 1px solid var(--border);
  background: var(--surface-2); font-weight: 800;
}
.data-table td { padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 0.89rem; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr { cursor: pointer; transition: background 0.12s; }
.data-table tbody tr:hover { background: var(--surface-2); }
.table-wrap { overflow-x: auto; border-radius: var(--r); }

.filter-row { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.filter-chip {
  padding: 7px 14px; border-radius: 999px; font-size: 0.83rem; font-weight: 700;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); cursor: pointer;
}
.filter-chip.active { background: var(--grad); color: #080A0C; border-color: transparent; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: min(380px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 32px 28px; }
.login-card .logo { justify-content: center; margin-bottom: 22px; font-size: 1.3rem; }
.login-err { color: var(--red); font-size: 0.85rem; margin-top: 10px; display: none; }

.kv-grid { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 0.9rem; }
.kv-grid dt { color: var(--text-3); }
.kv-grid dd { margin: 0; font-weight: 700; }

.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.86rem; }
.timeline-item:last-child { border-bottom: none; }
.timeline-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime-soft); margin-top: 5px; flex-shrink: 0; }
.timeline-item .t { color: var(--text-3); font-size: 0.78rem; }

@media (max-width: 860px) {
  .admin-sidebar { position: fixed; z-index: 90; transform: translateX(100%); transition: transform 0.2s; box-shadow: var(--shadow); }
  .admin-sidebar.open { transform: none; }
  .admin-main { padding: 18px 16px 50px; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .admin-menu-btn { display: inline-grid !important; }
}
.admin-menu-btn { display: none; }

/* ============================================================
   פוטר
   ============================================================ */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 44px 0 26px; color: var(--text-2); font-size: 0.89rem; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 30px; }
.footer-grid h4 { color: var(--text); font-size: 0.92rem; margin: 0 0 13px; font-weight: 800; }
.footer-grid a { display: block; padding: 5px 0; color: var(--text-2); }
.footer-grid a:hover { color: var(--text); }
.legal-note { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 14px 16px; font-size: 0.79rem; color: var(--text-3); line-height: 1.6; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 22px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.83rem; color: var(--text-3); }

/* ============================================================
   עמודי תוכן
   ============================================================ */
.page-head { padding: 34px 0 6px; }
.page-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 900; margin: 0 0 8px; }
.page-head p { color: var(--text-2); margin: 0; }
.prose h2 { font-size: 1.25rem; margin: 34px 0 10px; font-weight: 900; }
.prose p, .prose li { color: var(--text-2); font-size: 0.95rem; }
.prose ul { padding-inline-start: 20px; }
.prose li { margin-bottom: 7px; }

/* ============================================================
   רספונסיביות
   ============================================================ */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual { order: -1; aspect-ratio: 16 / 11; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .pdp { grid-template-columns: 1fr; gap: 28px; }
  .gallery { position: static; }
  .checkout-grid { grid-template-columns: 1fr; gap: 22px; }
  .summary-panel { position: static; order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-bar .container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  #nav-open { display: grid; }
  .main-nav { display: none; }
  .mobile-nav { display: flex; }

  .grid { grid-template-columns: repeat(2, 1fr); gap: 11px; }
  .grid-3 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; gap: 11px; }
  .stat-item { padding: 20px 16px; }
  .card-body { padding: 11px 12px 13px; }
  .card-body h3 { font-size: 0.9rem; }
  .card-body .sub { display: none; }
  .price { font-size: 1.08rem; }
  .quick-add { opacity: 1; transform: none; padding: 9px; font-size: 0.82rem; }

  .section { padding: 38px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .row-2 { grid-template-columns: 1fr; }
  .sticky-buy { display: flex; }
  .wa-float { bottom: 82px; width: 48px; height: 48px; font-size: 1.4rem; }
  .thumb { width: 60px; height: 60px; }
  .drawer { width: 100vw; }
  .trust-bar .container { grid-template-columns: 1fr 1fr; gap: 12px; }
  .trust-item { font-size: 0.8rem; }
  body.has-sticky-buy { padding-bottom: 76px; }
}

/* ============================================================
   תווית "הדמיה" — התמונות הן הדמיות, לא צילום של מוצר פיזי
   ============================================================ */
.sim-tag {
  position: absolute; bottom: 10px; inset-inline-start: 10px; z-index: 3;
  background: rgba(8, 10, 12, 0.82);
  border: 1px solid rgba(182, 255, 0, 0.4);
  color: var(--lime);
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.4px;
  padding: 4px 9px; border-radius: 999px;
  pointer-events: none;
}
.sim-note { font-size: 0.8rem; color: var(--text-3); margin: 10px 0 0; line-height: 1.55; }
.gallery-main { position: relative; }

/* ============================================================
   מוזאיקת הירו — מיקס מוצרים (3 למעלה, השאר למטה)
   ============================================================ */
.hero-mosaic {
  direction: ltr;                    /* האריח הראשון בפינה השמאלית-עליונה, כמו בקולאז' */
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  aspect-ratio: 3 / 2;
  background: rgba(182, 255, 0, 0.5);          /* קווי ההפרדה — ליים מהמותג */
  border: 1px solid rgba(182, 255, 0, 0.5);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(182, 255, 0, 0.08);
}
/* פריסה לפי מספר מוצרים: 5 = 3+2 לרוחב (כמו הקולאז'); 4 = 3 + פס רחב, בריבוע כדי שלא ייחתך המוצר */
.hero-mosaic.n4 { aspect-ratio: 1 / 1; }
.hero-mosaic.one-row { grid-template-rows: 1fr; aspect-ratio: 3 / 1.15; }
.mosaic-tile.wide img { object-position: 50% 27%; }
.mosaic-tile { position: relative; overflow: hidden; background: var(--surface-2); min-height: 0; min-width: 0; display: block; }
.mosaic-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.mosaic-tile:hover img { transform: scale(1.06); }
.mosaic-cap {
  position: absolute; inset-inline: 0; bottom: 0; direction: rtl;
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 26px 11px 9px;
  background: linear-gradient(to top, rgba(8, 10, 12, 0.92), rgba(8, 10, 12, 0));
  font-size: 0.78rem; opacity: 0; transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s;
}
.mosaic-cap b { font-weight: 800; }
.mosaic-cap i { font-style: normal; font-weight: 900; color: var(--lime); }
.mosaic-tile:hover .mosaic-cap, .mosaic-tile:focus-visible .mosaic-cap { opacity: 1; transform: none; }
.hero-mosaic .sim-tag { top: auto; bottom: 10px; inset-inline-start: auto; right: 10px; z-index: 4; }

@media (max-width: 1000px) {
  .hero-mosaic { order: -1; }
  :root { --header-h: 70px; }
  .logo img { height: 54px; }
}
@media (max-width: 680px) {
  :root { --header-h: 62px; }
  .logo img { height: 46px; }
  .mosaic-cap { display: none; }
  .hero-mosaic { border-radius: var(--r); }
}
@media (prefers-reduced-motion: reduce) { .mosaic-tile:hover img { transform: none; } }

/* מיקוד חיתוך לכל מוצר באריחים של 3:2 (השורה התחתונה כשיש 5 מוצרים) */
.mosaic-tile[data-id="controller-stand"] img { object-position: 50% 40%; }
.mosaic-tile[data-id="money-levitate"]:not(.wide) img { object-position: 50% 22%; }
