/* כיוון: נועז ואנרגטי + ה-DNA, בצבעי המותג של בדק בית סנטר
   מתכון: פתיחה ג' (כותרת במרכז + 3 תמונות מעוגלות) · עיטור ב' (רשת נקודות) · מעברים ב' (אלכסון)
   הדגשה ג' (מרקר) · כרטיסים א' (מסגרת וטבעת זוהרת) · איור: עגלת קניות על קו מקווקו */
:root {
  /* ארבעת צבעי הבסיס. אפשר לשנות אותם מאזור הניהול, וכל השאר נגזר מהם */
  --ink: #14213D;      /* דיו */
  --blue: #1E3C96;     /* כחול רויאל של הלוגו */
  --yellow: #F5A623;   /* כתום-צהוב של הלוגו, הדגשה ראשית */
  --teal: #3E7BE0;     /* כחול בהיר, הדגשה משנית */
  /* נגזרים */
  --blue-a: color-mix(in srgb, var(--blue) 80%, #fff);
  --blue-b: color-mix(in srgb, var(--blue) 70%, var(--ink));
  --yellow-l: color-mix(in srgb, var(--yellow) 65%, #fff);
  --yellow-soft: color-mix(in srgb, var(--yellow) 30%, transparent);
  --teal-d: color-mix(in srgb, var(--teal) 70%, var(--ink));
  --muted: color-mix(in srgb, var(--ink) 72%, #fff);
  --on-dark: color-mix(in srgb, var(--blue) 14%, #fff);
  --surface: color-mix(in srgb, var(--blue) 5%, #fff);
  --surface-2: color-mix(in srgb, var(--blue) 10%, #fff);
  --line: color-mix(in srgb, var(--blue) 20%, #fff);
  --wa: #25D366;
  --font-head: 'Rubik', sans-serif;
  --font-body: 'Heebo', sans-serif;
  --max: 1240px;
  --shadow-card: 0 30px 70px color-mix(in srgb, var(--ink) 18%, transparent);
  --shadow-pop: 0 18px 40px color-mix(in srgb, var(--ink) 35%, transparent);
  --cut: 56px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.65; color: var(--ink); background: #fff; overflow-x: clip; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 900; line-height: 1.08; text-wrap: balance; }
p, li { text-wrap: pretty; }
ul, ol { list-style: none; margin: 0; padding: 0; }
[hidden] { display: none !important; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; }

/* ---------- כותרות ---------- */
.head { max-width: 680px; margin-bottom: 36px; }
.head--center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-block; font-size: 15px; font-weight: 800; letter-spacing: .02em; color: var(--teal-d); margin-bottom: 10px; }
.title { font-size: clamp(34px, 5.4vw, 60px); color: var(--ink); }
/* הדגשה ג': מרקר */
.title em, .hero__title em {
  font-style: normal;
  padding: 0 .12em;
  background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.head--light .title { color: #fff; }
.head--light .title em { background: linear-gradient(transparent 58%, color-mix(in srgb, var(--yellow) 85%, transparent) 58%, color-mix(in srgb, var(--yellow) 85%, transparent) 92%, transparent 92%); }
.head--light .eyebrow { color: var(--yellow-l); }

/* ---------- כפתורים ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border: 0; border-radius: 999px;
  font-family: var(--font-body); font-size: 17px; font-weight: 800; line-height: 1.2; white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--sm { min-height: 44px; padding: 9px 18px; font-size: 15px; }
.btn--lg { min-height: 56px; padding: 15px 30px; font-size: 19px; }
.btn--xl { min-height: 72px; padding: 18px 44px; font-size: clamp(24px, 3.4vw, 34px); font-family: var(--font-head); font-weight: 900; direction: ltr; }
.btn--yellow { color: var(--ink); font-weight: 900; background: linear-gradient(135deg, var(--yellow-l), var(--yellow)); box-shadow: 0 8px 20px color-mix(in srgb, var(--yellow) 40%, transparent); }
.btn--blue { color: #fff; background: linear-gradient(135deg, var(--blue-a), var(--blue-b)); box-shadow: 0 10px 24px color-mix(in srgb, var(--blue) 35%, transparent), inset 0 1px 0 rgb(255 255 255 / .3); }
.btn--outline-blue { color: var(--blue); background: #fff; border: 2px solid var(--line); }
.btn--outline-blue:hover { border-color: var(--blue); }
.btn--ink { color: #fff; background: var(--ink); box-shadow: 0 16px 34px color-mix(in srgb, var(--ink) 35%, transparent); }
.btn--outline-ink { color: var(--ink); border: 2px solid var(--ink); }
.btn--outline-ink:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.btn--wa { width: 100%; color: #fff; background: linear-gradient(135deg, #3DE07D, #1DAA55); box-shadow: 0 10px 24px rgb(37 211 102 / .35); }

/* ---------- תפריט צף ---------- */
.nav-wrap { position: fixed; top: 12px; left: 0; right: 0; z-index: 50; padding: 0 12px; }
.nav {
  max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 6px 8px 6px 8px; padding-inline-start: 18px; border-radius: 999px;
  border: 2px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, var(--yellow), var(--blue)) border-box;
  box-shadow: 0 14px 34px color-mix(in srgb, var(--ink) 22%, transparent);
}
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__img { height: 46px; width: auto; max-width: 150px; object-fit: contain; }
.logo__text { font-family: var(--font-head); font-weight: 900; font-size: 22px; line-height: 1; display: flex; flex-direction: column; }
.logo__text small { font-family: var(--font-body); font-size: 11px; font-weight: 700; color: var(--muted); margin-top: 3px; }
.logo--has-img .logo__text { display: none; }
.nav__links { display: none; gap: 26px; font-size: 16px; font-weight: 700; }
.nav__links a:hover { color: var(--blue); }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__wa { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; background: var(--wa); }
.nav__wa svg { width: 22px; height: 22px; }
.nav__phone { display: none; direction: ltr; }
.cart-btn { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; color: var(--ink); background: linear-gradient(135deg, var(--yellow-l), var(--yellow)); box-shadow: 0 8px 18px color-mix(in srgb, var(--yellow) 40%, transparent); }
.cart-btn svg { width: 24px; height: 24px; }
.cart-btn__count { position: absolute; top: -4px; left: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 800; line-height: 22px; text-align: center; border: 2px solid #fff; }
.cart-btn.bump { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.18); } }

/* ---------- פתיחה: כותרת במרכז ו-3 תמונות ---------- */
.hero {
  position: relative; overflow: hidden; padding: 132px 0 0; color: #fff; text-align: center;
  background: radial-gradient(900px 500px at 50% 0%, color-mix(in srgb, var(--blue) 70%, var(--ink)) 0%, transparent 70%), var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%);
}
.hero__dots { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgb(255 255 255 / .16) 1.5px, transparent 1.7px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 70%); }
.hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.pill-tag { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 999px; border: 1.5px solid rgb(255 255 255 / .35); background: rgb(255 255 255 / .08); font-size: 15px; font-weight: 700; }
.pill-tag i { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px var(--yellow-soft); }
.hero__title { margin-top: 22px; font-size: clamp(40px, 7.4vw, 88px); line-height: 1.04; letter-spacing: -.5px; color: #fff; max-width: 15ch; }
.hero__title em { color: var(--ink); background: linear-gradient(transparent 12%, var(--yellow) 12%, var(--yellow) 94%, transparent 94%); border-radius: 10px; padding: 0 .16em; }
.hero__sub { margin-top: 20px; font-size: clamp(18px, 2vw, 21px); line-height: 1.65; color: var(--on-dark); max-width: 46ch; }
.hero__ticks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 22px; font-size: 15px; font-weight: 700; color: var(--on-dark); }
.hero__ticks li { display: flex; align-items: center; gap: 8px; }
.hero__ticks li::before { content: ""; width: 18px; height: 18px; flex: none; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5A623' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

.search { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px; padding-inline-start: 50px; border-radius: 999px; background: #fff; border: 2px solid var(--line); }
.search > svg { position: absolute; right: 18px; width: 22px; height: 22px; color: var(--blue); }
.search input { flex: 1; min-width: 0; min-height: 44px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; color: var(--ink); }
.search:focus-within { border-color: var(--yellow); box-shadow: 0 0 0 4px var(--yellow-soft); }
.search--hero { max-width: 640px; margin-top: 30px; border: 0; box-shadow: 0 20px 50px rgb(0 0 0 / .35); }

.hero__pics { position: relative; display: grid; grid-template-columns: 1fr 1.25fr 1fr; align-items: end; gap: 14px; margin-top: 46px; padding-bottom: calc(var(--cut) + 70px); }
.hero__pic { position: relative; margin: 0; border-radius: 28px; background: #fff; border: 6px solid #fff; box-shadow: 0 30px 70px rgb(0 0 0 / .4); }
.hero__pic img { width: 100%; height: 100%; object-fit: contain; border-radius: 20px; background: #fff; }
.hero__pic--1 { aspect-ratio: 1; transform: rotate(-3deg) translateY(18px); }
.hero__pic--2 { aspect-ratio: .82; z-index: 2; box-shadow: 0 0 0 5px var(--yellow), 0 36px 80px rgb(0 0 0 / .45); }
.hero__pic--3 { aspect-ratio: 1; transform: rotate(3deg) translateY(30px); }
.float--count { position: absolute; top: -26px; left: -26px; display: grid; place-items: center; align-content: center; width: 104px; height: 104px; border-radius: 50%; color: #fff; background: var(--blue); border: 4px solid #fff; font-size: 12px; font-weight: 700; line-height: 1.15; text-align: center; box-shadow: var(--shadow-pop); }
.float--count b { font-family: var(--font-head); font-size: 32px; line-height: 1; color: var(--yellow); }

/* ---------- פס אמון ---------- */
.trust { position: relative; z-index: 5; margin-top: -40px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; padding: 26px 22px; border-radius: 32px; background: #fff; box-shadow: var(--shadow-card); }
.trust li { display: flex; align-items: center; gap: 14px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.trust b { display: block; font-family: var(--font-head); font-size: 17px; color: var(--ink); margin-bottom: 2px; }
.trust__icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; color: #fff; background: var(--blue); box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--yellow); }
.trust__icon svg { width: 24px; height: 24px; }

/* ---------- קטלוג ---------- */
.catalog { position: relative; }
.catalog::before { content: ""; position: absolute; inset: 0 0 auto; height: 420px; pointer-events: none; background-image: radial-gradient(color-mix(in srgb, var(--blue) 22%, transparent) 1.4px, transparent 1.6px); background-size: 24px 24px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, transparent); mask-image: linear-gradient(180deg, transparent, #000 30%, transparent); }
.catalog .wrap { position: relative; }
.tools { display: grid; gap: 12px; }
.sort { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: var(--muted); }
.sort select { min-height: 48px; padding: 8px 16px; border: 2px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 16px; color: var(--ink); }
.cats, .subcats { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; margin-top: 14px; scrollbar-width: thin; }
.subcats { margin-top: 2px; }
.chip { flex: none; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-size: 15px; font-weight: 700; color: var(--blue); white-space: nowrap; transition: background-color .2s, border-color .2s; }
.chip:hover { border-color: var(--blue); }
.chip[aria-pressed="true"] { color: var(--ink); border-color: var(--yellow); background: linear-gradient(135deg, var(--yellow-l), var(--yellow)); box-shadow: 0 6px 14px color-mix(in srgb, var(--yellow) 35%, transparent); }
.chip small { font-weight: 500; opacity: .7; margin-inline-start: 4px; }
.subcats .chip { min-height: 38px; padding: 5px 14px; font-size: 14px; border-width: 1.5px; }
.result-line { margin: 16px 0 18px; font-size: 15px; font-weight: 700; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 24px; border: 2px solid var(--line); background: #fff;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--yellow); box-shadow: 0 0 0 5px var(--yellow-soft), var(--shadow-card); }
.card__open { display: flex; flex-direction: column; flex: 1; padding: 0; border: 0; background: none; text-align: right; }
.card__img { aspect-ratio: 1; padding: 12px; background: #fff; }
.card__img img { width: 100%; height: 100%; object-fit: contain; }
.card__body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 4px 14px 12px; }
.card__name { font-family: var(--font-body); font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__code { font-size: 13px; color: var(--muted); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 14px 14px; }
.price { font-family: var(--font-head); font-weight: 900; font-size: 26px; line-height: 1; color: var(--blue); }
.price small { font-size: 15px; margin-inline-start: 2px; }
.card__add { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border: 0; border-radius: 50%; color: var(--ink); background: linear-gradient(135deg, var(--yellow-l), var(--yellow)); box-shadow: 0 6px 14px color-mix(in srgb, var(--yellow) 40%, transparent); transition: transform .2s; }
.card__add:hover { transform: scale(1.08); }
.card__add svg { width: 22px; height: 22px; }
.card__badge { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #fff; background: var(--muted); }
.empty { grid-column: 1 / -1; padding: 48px 24px; border-radius: 28px; background: var(--surface); text-align: center; font-size: 18px; font-weight: 700; color: var(--muted); }
.empty a { color: var(--blue); text-decoration: underline; }
.more { display: flex; justify-content: center; margin-top: 32px; }

/* ---------- איך מזמינים: קצוות אלכסוניים ---------- */
.process { position: relative; padding: calc(var(--cut) + 90px) 0 calc(var(--cut) + 90px); color: #fff; background: var(--ink); clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 0 100%); }
.process::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgb(255 255 255 / .1) 1.4px, transparent 1.6px); background-size: 26px 26px; }
.process .wrap { position: relative; }
.road { position: relative; height: 76px; margin-bottom: 30px; border-bottom: 3px dashed color-mix(in srgb, var(--yellow) 60%, transparent); overflow: hidden; }
.trolley { position: absolute; bottom: 2px; right: -130px; width: 112px; animation: roll 12s linear infinite; }
.trolley__h { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.trolley__y { fill: var(--yellow); }
.trolley__y2 { fill: var(--yellow-l); }
.trolley__b { fill: var(--teal); }
.trolley__w { fill: var(--ink); stroke: #fff; stroke-width: 4; }
@keyframes roll { from { right: -130px; } to { right: 100%; } }
.steps { display: grid; gap: 18px; counter-reset: s; }
.step { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 24px; padding: 30px 28px; border-radius: 32px; background: color-mix(in srgb, var(--blue) 55%, var(--ink)); border: 1px solid rgb(255 255 255 / .12); }
.step:nth-child(2) { background: var(--blue); }
.step:nth-child(3) { background: color-mix(in srgb, var(--teal) 60%, var(--ink)); }
.step__num { font-family: var(--font-head); font-weight: 900; font-size: clamp(60px, 8vw, 104px); line-height: .9; color: var(--yellow); }
.step h3 { font-size: clamp(24px, 3vw, 36px); color: #fff; }
.step p { margin-top: 8px; font-size: 18px; color: var(--on-dark); }

/* ---------- שאלות נפוצות ---------- */
.faq { max-width: 820px; }
.faq details { margin-top: 12px; padding: 20px 26px; border-radius: 22px; background: var(--surface); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; list-style: none; font-size: 19px; font-weight: 800; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--font-head); font-size: 28px; line-height: 1; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--muted); }

/* ---------- יצירת קשר ---------- */
.cta { position: relative; overflow: hidden; padding: calc(var(--cut) + 72px) 0 calc(var(--cut) + 80px); background: linear-gradient(135deg, var(--yellow-l), var(--yellow)); clip-path: polygon(0 0, 100% var(--cut), 100% 100%, 0 calc(100% - var(--cut))); }
.cta__outline { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -58%); font-family: var(--font-head); font-weight: 900; font-size: clamp(100px, 18vw, 280px); line-height: 1; white-space: nowrap; color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--ink) 12%, transparent); direction: ltr; pointer-events: none; }
.cta__grid { position: relative; display: grid; gap: 32px; align-items: center; }
.cta__title { font-size: clamp(40px, 6.4vw, 76px); color: var(--ink); }
.cta__sub { margin-top: 16px; font-size: 20px; font-weight: 500; color: var(--ink); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta__mail { margin-top: 18px; font-weight: 700; }
.cta__mail a { text-decoration: underline; }

/* טופס */
.lead { display: grid; gap: 14px; padding: 30px 26px; border-radius: 28px; background: #fff; box-shadow: 0 30px 70px color-mix(in srgb, var(--ink) 22%, transparent); }
.lead__title { font-size: 26px; color: var(--ink); margin-bottom: 4px; }
.lead__field { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: var(--muted); }
.lead__field input, .lead__field select, .lead__field textarea { width: 100%; min-height: 50px; padding: 12px 16px; border: 2px solid var(--line); border-radius: 16px; background: #fff; font: inherit; font-size: 17px; font-weight: 500; color: var(--ink); }
.lead__field textarea { min-height: 70px; resize: vertical; }
.lead__field input:focus, .lead__field select:focus, .lead__field textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 4px var(--yellow-soft); }
.lead__trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.lead__submit { width: 100%; margin-top: 4px; }
.lead__submit:disabled { opacity: .6; }
.lead__msg { min-height: 1.4em; font-size: 15px; font-weight: 700; color: var(--teal-d); }
.lead__msg--bad { color: #B42318; }
.lead__done { padding: 28px 10px; text-align: center; font-family: var(--font-head); font-weight: 900; font-size: 26px; color: var(--ink); }

/* ---------- כותרת תחתונה ---------- */
.footer { margin-top: calc(var(--cut) * -1); padding: calc(var(--cut) + 40px) 0 110px; color: var(--on-dark); background: var(--ink); }
.footer__grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.footer__logo { display: inline-block; padding: 10px 16px; border-radius: 20px; background: #fff; }
.footer__logo img { height: 58px; width: auto; }
.footer__line { margin-top: 12px; font-size: 15px; }
.footer__phone { font-family: var(--font-head); font-weight: 900; font-size: 30px; color: #fff; direction: ltr; }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .12); font-size: 14px; }
.footer__admin { opacity: .6; }
.footer__admin:hover { opacity: 1; }

/* ---------- וואטסאפ צף ---------- */
.wa-float { position: fixed; left: 18px; bottom: 18px; z-index: 40; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; color: #fff; background: var(--wa); box-shadow: 0 10px 26px rgb(37 211 102 / .45); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa); opacity: .45; animation: pulse 2.4s ease-out infinite; z-index: -1; }
@keyframes pulse { from { transform: scale(1); opacity: .45; } to { transform: scale(1.7); opacity: 0; } }

/* ---------- חלון מוצר ---------- */
.pdlg { width: min(940px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 32px; color: var(--ink); background: #fff; box-shadow: 0 40px 100px rgb(0 0 0 / .4); overflow: auto; }
.pdlg::backdrop { background: color-mix(in srgb, var(--ink) 70%, transparent); }
.pdlg__close { position: absolute; top: 14px; left: 14px; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface-2); font-size: 28px; line-height: 1; color: var(--ink); }
.pdlg__grid { display: grid; }
.pdlg__img { padding: 28px; background: var(--surface); }
.pdlg__img img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 22px; background: #fff; }
.pdlg__body { display: flex; flex-direction: column; gap: 10px; padding: 26px 26px 30px; }
.pdlg__crumbs { font-size: 14px; font-weight: 800; color: var(--teal-d); }
.pdlg__name { font-size: clamp(26px, 3.4vw, 38px); }
.pdlg__code { font-size: 15px; color: var(--muted); }
.pdlg__price { font-family: var(--font-head); font-weight: 900; font-size: 52px; line-height: 1; color: var(--blue); margin-top: 6px; }
.pdlg__price small { font-size: 26px; margin-inline-start: 4px; }
.pdlg__desc { color: var(--muted); white-space: pre-line; }
.pdlg__buy { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.pdlg__add { flex: 1; }
.pdlg__ask { margin-top: 4px; font-weight: 800; color: var(--teal-d); text-decoration: underline; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 44px; height: 52px; border: 0; background: var(--surface); font-size: 22px; font-weight: 800; color: var(--blue); }
.qty input { width: 52px; height: 52px; border: 0; text-align: center; font: inherit; font-size: 18px; font-weight: 800; color: var(--ink); -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty--sm button { width: 36px; height: 38px; font-size: 18px; }
.qty--sm input { width: 40px; height: 38px; font-size: 16px; }

/* ---------- הסל ---------- */
.cart { position: fixed; inset: 0; z-index: 80; }
.cart__shade { position: absolute; inset: 0; background: color-mix(in srgb, var(--ink) 60%, transparent); }
.cart__panel { position: absolute; top: 0; bottom: 0; right: 0; display: flex; flex-direction: column; width: min(460px, 100%); background: #fff; box-shadow: -20px 0 60px rgb(0 0 0 / .3); animation: slide .3s ease; }
@keyframes slide { from { transform: translateX(100%); } }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 2px solid var(--surface-2); }
.cart__head h2 { font-size: 28px; }
.cart__x { position: static; }
.cart__items { flex: 1; overflow-y: auto; padding: 8px 22px; }
.cart__row { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--surface-2); }
.cart__row img { width: 64px; height: 64px; object-fit: contain; border-radius: 14px; background: var(--surface); }
.cart__row b { display: block; font-size: 15px; line-height: 1.35; }
.cart__row span { font-size: 13px; color: var(--muted); }
.cart__side { display: grid; justify-items: end; gap: 6px; }
.cart__line-price { font-family: var(--font-head); font-weight: 900; color: var(--blue); }
.cart__rm { border: 0; background: none; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: underline; padding: 4px; }
.cart__empty { padding: 40px 0; text-align: center; font-weight: 700; color: var(--muted); }
.cart__foot { padding: 16px 22px 22px; border-top: 2px solid var(--surface-2); background: var(--surface); }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.cart__total b { font-family: var(--font-head); font-size: 34px; color: var(--ink); }
.cart__form { display: grid; gap: 10px; }
.cart__form .lead__field input, .cart__form .lead__field textarea { min-height: 46px; }

.toast { position: fixed; bottom: 92px; left: 50%; z-index: 90; transform: translateX(-50%); padding: 12px 22px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; box-shadow: var(--shadow-pop); white-space: nowrap; }

/* ---------- הופעה בגלילה ---------- */
.js .rv { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.js .rv.in { opacity: 1; transform: none; }

/* כשאזור הניהול פתוח במחשב */
@media (min-width: 1100px) {
  .adm-open .nav-wrap { left: 600px; }
  .adm-open .nav__links, .adm-open .nav__phone, .adm-open .wa-float { display: none; }
}

/* ---------- טאבלט ומחשב ---------- */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .tools { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 720px) {
  .trust { grid-template-columns: repeat(4, 1fr); padding: 30px 32px; }
  .pdlg__grid { grid-template-columns: 1fr 1fr; }
  .pdlg__body { padding: 44px 34px 34px; }
  :root { --cut: 80px; }
}
@media (min-width: 1000px) {
  .nav__links { display: flex; }
  .nav__phone { display: inline-flex; }
  .hero { padding-top: 160px; }
  .hero__pics { gap: 34px; max-width: 980px; }
  .grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .step { padding: 38px 48px; gap: 44px; }
  .cta__grid { grid-template-columns: 1.1fr 1fr; gap: 56px; }
  .footer { padding-bottom: 40px; }
}

/* ---------- טלפון ---------- */
@media (max-width: 719px) {
  .nav { padding-inline-start: 12px; }
  .logo__img { height: 40px; max-width: 110px; }
  .hero__pics { gap: 10px; }
  .hero__pic { border-width: 4px; border-radius: 20px; }
  .hero__pic img { border-radius: 15px; }
  .float--count { width: 78px; height: 78px; top: -22px; left: -14px; font-size: 10px; }
  .float--count b { font-size: 24px; }
  .step { grid-template-columns: 1fr; gap: 8px; padding: 26px 22px; }
  .cta__actions .btn { width: 100%; }
  .lead { padding: 24px 20px; }
  .price { font-size: 22px; }
  .card__add { width: 42px; height: 42px; }
  .card__body { padding: 2px 10px 10px; }
  .card__foot { padding: 0 10px 12px; }
  .card__name { font-size: 15px; }
}
@media (max-width: 559px) {
  .trust { grid-template-columns: 1fr; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .trolley, .wa-float::before, .cart__panel, .cart-btn.bump { animation: none; }
  .trolley { right: 40%; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .card__add:hover { transform: none; }
}

/* ---------- מלאי ---------- */
.card__badge--low { color: var(--ink); background: var(--yellow); }
.card__badge--in { color: #fff; background: var(--blue); }
.card--out .card__img img { opacity: .45; filter: grayscale(.6); }
.card__add:disabled { background: var(--surface-2); color: var(--muted); box-shadow: none; cursor: not-allowed; transform: none; }
.pdlg__stock { font-weight: 800; color: var(--teal-d); }
.pdlg__stock:empty { display: none; }
.pdlg__stock--out { color: #B42318; }
.pdlg__add:disabled { opacity: .55; cursor: not-allowed; transform: none; }
