/* הגדרות צבעים ומידות מרכזיות לשימוש עקבי בכל האתר. */
:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #697386;
  --line: #e7eaf0;
  --surface: #ffffff;
  --page: #f7f8fb;
  --blue: #315efb;
  --blue-dark: #2448d8;
  --mint: #dff8ee;
}

/* איפוס בסיסי של מידות כדי למנוע חריגות רוחב. */
* {
  box-sizing: border-box;
}

/* הגדרות כלליות לגוף האתר ולגופן המערכת. */
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Arial, "Noto Sans Hebrew", sans-serif;
  line-height: 1.6;
}

/* מגבילים את רוחב התוכן וממרכזים אותו. */
.site-header,
main,
.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

/* מסדרים את אזור המותג והניווט בשורה אחת. */
.site-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* עיצוב שם החנות והסמל הקטן. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
}

/* יוצרים סמל מרובע עם פינות מעוגלות. */
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue);
  color: white;
  font-size: 1.25rem;
}

/* עיצוב קישור הניווט העליון. */
.header-link {
  color: var(--muted);
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
}

/* אזור הפתיחה עם רקע בהיר ואלמנטים דקורטיביים. */
.hero {
  position: relative;
  min-height: 390px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 30px;
  overflow: hidden;
  padding: 58px 7%;
  border: 1px solid #e9edff;
  border-radius: 28px;
  background: linear-gradient(115deg, #f0f3ff 0%, #ffffff 65%);
}

/* שומרים את תוכן הפתיחה מעל האלמנטים הדקורטיביים. */
.hero-content {
  position: relative;
  z-index: 1;
}

/* טקסט קטן שמציג הקשר לפני כותרת. */
.eyebrow {
  color: var(--blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
}

/* כותרת ראשית גדולה וברורה. */
.hero h1 {
  margin: 13px 0 15px;
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}

/* מדגישים את השורה השנייה בכותרת. */
.hero h1 span {
  color: var(--blue);
}

/* פסקת ההסבר באזור הפתיחה. */
.hero p {
  max-width: 490px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* כפתור מעבר לאזור המוצרים. */
.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 13px 19px;
  border-radius: 12px;
  background: var(--blue);
  color: white;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

/* שינוי עדין במעבר עכבר. */
.primary-link:hover {
  transform: translateY(-2px);
  background: var(--blue-dark);
}

/* אזור האיור הדקורטיבי. */
.hero-art {
  position: relative;
  min-height: 230px;
  display: grid;
  place-items: center;
}

/* חלון דמוי תוכנה באיור הפתיחה. */
.art-window {
  width: min(270px, 100%);
  height: 205px;
  padding: 18px;
  border: 1px solid #e3e8fa;
  border-radius: 19px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 24px 65px rgba(49, 94, 251, .13);
  transform: rotate(-5deg);
}

/* שלוש נקודות בראש החלון הדקורטיבי. */
.window-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 5px;
  border-radius: 50%;
  background: #cbd3e5;
}

/* סמל מרכזי בחלון האיור. */
.art-symbol {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 17px auto 13px;
  border-radius: 22px;
  background: #edf1ff;
  color: var(--blue);
  font-size: 2.5rem;
  font-weight: 800;
}

/* קווים שמדמים פרטי ממשק. */
.art-line {
  width: 75%;
  height: 7px;
  margin: 8px auto;
  border-radius: 9px;
  background: #e9edf6;
}

/* מקצרים את הקו השני באיור. */
.art-line.short {
  width: 43%;
}

/* תג קטן שמרחף ליד החלון. */
.art-chip {
  position: absolute;
  right: 2%;
  bottom: 8px;
  padding: 9px 13px;
  border: 1px solid #e3e8fa;
  border-radius: 10px;
  background: white;
  color: var(--blue);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .1em;
  box-shadow: 0 10px 25px rgba(23, 32, 51, .07);
}

/* אזור המוצרים והרווח שמעליו. */
.products-section {
  padding: 76px 0 62px;
}

/* כותרת אזור המוצרים והטקסט המשני. */
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

/* כותרות אזוריות. */
.section-heading h2,
.coming-copy h2 {
  margin: 5px 0 0;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  line-height: 1.2;
}

/* הערה קטנה בצד כותרת המוצרים. */
.section-note {
  color: var(--muted);
  font-size: .88rem;
}

/* רשת כרטיסי המוצרים. */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* כרטיס מוצר בסיסי. */
.product-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 8px 30px rgba(23, 32, 51, .035);
}

/* שורת תגיות בחלק העליון של הכרטיס. */
.product-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* סמל המוצר. */
.product-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #edf1ff;
  color: var(--blue);
  font-size: 1.4rem;
}

/* תג מצב של מוצר פעיל או טיוטה. */
.product-status {
  padding: 5px 10px;
  border-radius: 30px;
  background: var(--mint);
  color: #147451;
  font-size: .75rem;
  font-weight: 800;
}

/* צבע נפרד לתג מוצר שעדיין בפיתוח. */
.product-status.draft {
  background: #fff4df;
  color: #94610b;
}

/* שם המוצר בכרטיס. */
.product-card h3 {
  margin: 20px 0 7px;
  font-size: 1.22rem;
}

/* תיאור המוצר בכרטיס. */
.product-description {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
}

/* אזור המחיר והפעולה בתחתית הכרטיס. */
.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 25px;
}

/* מחיר המוצר. */
.product-price {
  font-size: 1.45rem;
  font-weight: 800;
  white-space: nowrap;
}

/* כפתור רכישה לא פעיל עד להשלמת תהליך התשלום. */
.product-action {
  padding: 10px 15px;
  border: 0;
  border-radius: 10px;
  background: #edf0f6;
  color: #7a8496;
  font: inherit;
  font-size: .86rem;
  font-weight: 700;
  cursor: not-allowed;
}

/* תצוגת טעינה או מצב ריק. */
.loading-card {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed #cfd5e2;
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
}

/* הודעת שגיאה בטעינת המוצרים. */
.error-message {
  margin-top: 15px;
  color: #b42318;
  font-size: .9rem;
}

/* אזור מוצר עתידי. */
.coming-section {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px 30px;
  border: 1px solid #dceee8;
  border-radius: 20px;
  background: #f0faf6;
}

/* סמל דקורטיבי למוצר העתידי. */
.coming-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #d9f4e8;
  color: #16835c;
  font-size: 1.6rem;
}

/* תוכן אזור המוצר העתידי. */
.coming-copy {
  flex: 1;
}

/* פסקת ההסבר על המוצר העתידי. */
.coming-copy p {
  max-width: 650px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: .93rem;
}

/* מחיר המוצר העתידי. */
.coming-price {
  color: #147451;
  font-size: 1.3rem;
  font-weight: 800;
  white-space: nowrap;
}

/* הודעת מצב שמבהירה שהחנות עדיין לא פעילה למכירות. */
.notice-section {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 26px 0 70px;
  padding: 17px 19px;
  border: 1px solid #f0e2bd;
  border-radius: 14px;
  background: #fffaf0;
  color: #76551b;
}

/* סמל ההודעה. */
.notice-icon {
  font-size: 1.1rem;
}

/* פסקת הודעת המצב. */
.notice-section p {
  margin: 0;
  font-size: .88rem;
}

/* עיצוב תחתית האתר. */
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
}

/* התאמות למסכים צרים. */
@media (max-width: 700px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 28px, 520px);
  }

  /* הופכים את אזור הפתיחה לטור אחד בנייד. */
  .hero {
    grid-template-columns: 1fr;
    padding: 38px 25px 24px;
  }

  /* מצמצמים את האיור כדי שיתאים למסך קטן. */
  .hero-art {
    min-height: 190px;
  }

  /* מציגים את כרטיסי המוצרים בטור אחד. */
  .products-grid {
    grid-template-columns: 1fr;
  }

  /* מסתירים את הטקסט המשני כדי לפנות מקום. */
  .section-note {
    display: none;
  }

  /* מאפשרים לאזור המוצר העתידי להישבר לשורות. */
  .coming-section {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 22px;
  }

  /* מעבירים את המחיר לשורה משלו בנייד. */
  .coming-price {
    margin-right: 68px;
  }
}

/* התאמות למסכים קטנים במיוחד. */
@media (max-width: 380px) {
  .product-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-action {
    width: 100%;
  }
}