/* Bundleotti — אבטיפוס. עברית RTL ראשית. */
* { box-sizing: border-box; }

:root {
  --ink: #22242a;
  --muted: #6b7280;
  --bg: #faf9f6;
  --card: #ffffff;
  --accent: #b3402e;        /* גוון חם, בהמשך יותאם ללוגו */
  --accent-soft: #f6e7e3;
  --line: #e5e2dc;
  --ok: #2e7d46;
  font-size: 16px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Segoe UI', 'Heebo', 'Assistant', Arial, sans-serif;
  direction: rtl;
  background: var(--bg);
  color: var(--ink);
  padding-bottom: 90px; /* מקום לסרגל התחתון */
}

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.logo img { height: 34px; width: auto; display: block; }
/* דף הבית: הלוגו המלא (סמל + כיתוב) קטן בפינה בלבד — בלי לוגו גדול ב-Hero (בן, 4.12 00:45) */
.logo-full img { height: 54px; }

.steps { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.step { color: var(--muted); display: flex; align-items: center; gap: 6px; }
.step.current { color: var(--ink); font-weight: 700; }
.step.done { color: var(--ok); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--line); font-size: 0.8rem;
}
.step.current .step-num { background: var(--accent); color: #fff; }
.step.done .step-num { background: var(--ok); color: #fff; }
.step-sep { width: 26px; height: 1px; background: var(--line); }

.layout {
  display: grid; grid-template-columns: 1fr 470px; gap: 24px;
  max-width: 1360px; margin: 24px auto; padding: 0 20px;
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .preview { position: static !important; order: -1; }
}

h1 { font-size: 1.6rem; margin: 0 0 6px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

/* כרטיסי "למי" */
.forwhom-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px; margin: 18px 0;
}
.forwhom-card {
  background: var(--card); border: 2px solid var(--line); border-radius: 14px;
  padding: 20px 14px; cursor: pointer; text-align: center;
  display: flex; flex-direction: column; gap: 8px; font: inherit; color: inherit;
  transition: border-color .15s, transform .15s;
}
.forwhom-card:hover { transform: translateY(-2px); border-color: #cbb; }
.forwhom-card.selected { border-color: var(--accent); background: var(--accent-soft); }
.forwhom-icon { color: var(--accent); display: flex; justify-content: center; }
.forwhom-label { font-weight: 700; font-size: 1.1rem; }
.forwhom-tagline { color: var(--muted); font-size: 0.85rem; }

/* פאנל איש */
.persons { display: flex; flex-direction: column; gap: 18px; }
.person-panel {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 16px;
}
.person-panel.complete { border-color: var(--ok); }
.person-panel header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.person-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 0.9rem; flex: none;
}
.person-status { color: var(--ok); font-weight: 600; font-size: 0.85rem; }
.remove-person {
  margin-inline-start: auto; border: none; background: none; color: var(--muted);
  cursor: pointer; font-size: 1rem;
}
.remove-person:hover { color: var(--accent); }

.field { margin: 12px 0; }
.field > label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 6px 14px; cursor: pointer; font: inherit; font-size: 0.9rem;
}
.chip.on { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--line);
}
.swatch.on { border-color: var(--ink); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }

.graphics { display: flex; flex-wrap: wrap; gap: 10px; }
.graphic-card {
  border: 1.5px solid var(--line); background: var(--card); border-radius: 12px;
  padding: 10px 14px; cursor: pointer; font: inherit; font-size: 0.9rem;
  display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 92px;
}
.graphic-card.on { border-color: var(--accent); background: var(--accent-soft); }
.graphic-card.disabled { opacity: 0.55; cursor: not-allowed; }
.graphic-card small { color: var(--muted); font-size: 0.7rem; max-width: 130px; }
.graphic-glyph { display: block; }

.add-person { display: flex; gap: 10px; margin-top: 18px; }
.add-person select { font: inherit; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }

/* כפתורים */
.btn {
  border: 1.5px solid var(--line); background: var(--card); border-radius: 12px;
  padding: 10px 20px; cursor: pointer; font: inherit; font-weight: 600;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:disabled { background: #d8b6af; border-color: #d8b6af; cursor: not-allowed; }
.btn.ghost { background: none; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--ink); }
.actions { display: flex; gap: 12px; margin-top: 22px; }

/* תצוגה חיה */
.preview {
  position: sticky; top: 76px; align-self: start;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px;
}
.preview h2 { font-size: 1rem; margin: 0 0 10px; }
#preview-items { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.preview-card {
  margin: 0; position: relative; background: var(--bg); border-radius: 10px; padding: 8px;
  border: 1px solid var(--line);
}
.preview-card.incomplete { opacity: 0.75; border-style: dashed; }
.preview-card svg { width: 100%; height: auto; display: block; }

/* מחסנית מוקאפ אמיתי על רקע אחיד בהיר: צלחת צבע בצורת הבגד (מסכה) + תמונה ב-multiply + גרפיקה מעל */
.garment-stack { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: #f4f3ef; }
.color-plate {
  position: absolute; inset: 0;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}
.garment-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  mix-blend-mode: multiply;
}
.print-overlay { position: absolute; aspect-ratio: 1; }
.print-overlay svg { width: 100%; height: 100%; display: block; }
.preview-card .person-num { position: absolute; top: 6px; inset-inline-start: 6px; width: 22px; height: 22px; font-size: 0.8rem; z-index: 5; }
.preview-card figcaption { text-align: center; font-size: 0.8rem; color: var(--muted); padding-top: 4px; }

/* סרגל תחתון דביק */
#bottom-bar {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 30;
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border-top: 1px solid var(--line);
  padding: 12px 22px; box-shadow: 0 -4px 18px rgba(0,0,0,0.06);
}
.bar-total { margin-inline-start: auto; text-align: end; }
.bar-total small { display: block; color: var(--muted); }
.bar-total strong { font-size: 1.3rem; }

/* סקירה */
.review-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.review-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
.review-row small { color: var(--muted); }
.review-price { margin-inline-start: auto; font-weight: 700; }
.review-totals {
  margin-top: 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px;
}
.review-totals > div { display: flex; justify-content: space-between; padding: 4px 0; }
.review-totals .discount { color: var(--ok); }
.review-totals .grand { font-weight: 800; font-size: 1.15rem; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }

/* דף הבית */
.hero { text-align: center; padding: 56px 20px 34px; }
.hero h1 { font-size: 2.4rem; margin-bottom: 10px; }
.hero p { color: var(--muted); font-size: 1.15rem; max-width: 560px; margin: 0 auto 26px; }
/* כרטיסי קטגוריות עם תמונה */
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px; max-width: 1240px; margin: 0 auto; padding: 0 20px 60px;
}
.cat-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; transition: transform .15s, box-shadow .15s;
}
a.cat-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.cat-photo { position: relative; aspect-ratio: 3 / 2; background: #eee; }
.cat-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-soon {
  position: absolute; top: 12px; inset-inline-start: 12px;
  background: rgba(34,36,42,0.85); color: #fff; font-size: 0.75rem;
  padding: 4px 10px; border-radius: 999px;
}
.cat-card.soon { opacity: 0.75; }
.cat-text { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 3px; }
.cat-label { font-weight: 700; font-size: 1.15rem; }
.cat-tagline { color: var(--muted); font-size: 0.88rem; }

.home-note { text-align: center; color: var(--muted); font-size: 0.85rem; padding-bottom: 40px; }

.toast {
  position: fixed; bottom: 100px; right: 50%; transform: translateX(50%);
  background: var(--ink); color: #fff; padding: 10px 20px; border-radius: 999px;
  font-size: 0.9rem; z-index: 50;
}
