:root {
  --blue: #03628a;
  --teal: #09ac9f;
  --red: #e53d24;
  --yellow: #f5b216;
  --purple: #7b4fa6;
  --bg: #fffdf7;
  --text: #1a1a1a;
  --muted: #6b6b6b;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Heebo', sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  min-height: 100vh;
}

a { color: inherit; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== DEMO BANNER ===== */
.demo-banner {
  background: var(--yellow);
  color: #4a3500;
  text-align: center;
  padding: 10px 20px;
  font-weight: 700;
  font-size: .92rem;
}

/* ===== HEADER ===== */
header {
  background: #fff;
  padding: 22px 20px 18px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(3, 98, 138, .08);
}
header img { height: 84px; object-fit: contain; }
header .tagline {
  margin-top: 6px;
  color: var(--blue);
  font-weight: 700;
  font-size: 1.05rem;
}

/* ===== FILTERS ===== */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 30px 0 26px;
}
.filters button {
  border: 2px solid var(--blue);
  background: #fff;
  color: var(--blue);
  border-radius: 50px;
  padding: 8px 20px;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.filters button:hover { background: rgba(3, 98, 138, .08); }
.filters button[aria-pressed="true"] { background: var(--blue); color: #fff; }

/* ===== GRID ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(264px, 1fr));
  gap: 24px;
  padding-bottom: 90px;
}

/* ===== CARD ===== */
.card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .07);
  display: flex;
  flex-direction: column;
  border-top: 6px solid var(--accent, var(--blue));
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0, 0, 0, .12); }

.card .thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f3f3f3;
}

/* אריח צבעוני למוצר שאין לו עדיין תמונה */
.card .thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.6rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent, var(--blue)), color-mix(in srgb, var(--accent, var(--blue)) 62%, #fff));
  text-decoration: none;
}

.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.card h2 { font-size: 1.05rem; font-weight: 900; line-height: 1.4; }
.card h2 a { text-decoration: none; }
.card h2 a:hover { text-decoration: underline; }
.card .desc { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.card .price {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--accent, var(--blue));
  margin-top: auto;
  padding-top: 6px;
}
.card .badge {
  align-self: flex-start;
  font-size: .74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(0, 0, 0, .05);
  color: var(--muted);
}

/* ===== הטבת מועדון הגננות ===== */
/* צבע שונה לכל סוג הטבה, כדי שאפשר יהיה לסרוק את החנות ולראות מיד מה כלול */
.club-note {
  font-size: .84rem;
  line-height: 1.45;
  padding: 8px 11px;
  border-radius: 10px;
  background: rgba(123, 79, 166, .08);
  border: 1px solid rgba(123, 79, 166, .22);
  color: #5f3a83;
}
.club-note strong { font-weight: 900; }
.club-note small {
  display: block;
  margin-top: 2px;
  font-size: .76em;
  opacity: .78;
}
.club-note.discount {
  background: rgba(245, 178, 22, .14);
  border-color: rgba(245, 178, 22, .4);
  color: #7a5200;
}
.product-info .club-note { font-size: .95rem; padding: 12px 15px; }

/* ===== בקרוב ===== */
/* המוצר מוצג במלואו כדי לייצר ציפייה, אך בלי מחיר ובלי כפתור קנייה */
.card.is-soon { opacity: .88; }
.card.is-soon:hover { transform: none; }

.soon-line {
  margin-top: auto;
  padding: 10px 0 2px;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--muted);
  letter-spacing: .04em;
}

.empty-category {
  grid-column: 1 / -1;
  text-align: center;
  padding: 44px 20px 34px;
  color: var(--muted);
}
.empty-category p { margin-top: 10px; line-height: 1.6; }
.empty-category .hint { font-size: .9rem; opacity: .8; }
.soon-badge {
  display: inline-block;
  background: var(--yellow);
  color: #4a3500;
  font-weight: 900;
  font-size: .85rem;
  padding: 5px 16px;
  border-radius: 50px;
}

/* ===== BUTTONS ===== */
.btn {
  background: var(--accent, var(--blue));
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 28px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  transition: opacity .2s, transform .1s;
}
.btn:hover { opacity: .88; }
.btn:active { transform: scale(.97); }
.btn.secondary {
  background: #fff;
  color: var(--blue);
  border: 2px solid var(--blue);
}

/* ===== CART FAB ===== */
.cart-fab {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 900;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 26px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(9, 172, 159, .42);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-fab[hidden] { display: none; }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 96px;
  left: 24px;
  z-index: 950;
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 250px;
  animation: rise .22s ease-out;
}
.toast[hidden] { display: none; }
.toast .ok { color: var(--teal); font-weight: 900; }
.toast .actions { display: flex; gap: 8px; }
.toast .actions .btn { padding: 9px 16px; font-size: .9rem; width: auto; flex: 1; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== PRODUCT PAGE ===== */
.product-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 36px;
  align-items: start;
}
.product-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
}
.product-media.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent, var(--blue)), color-mix(in srgb, var(--accent, var(--blue)) 62%, #fff));
}
.product-info { display: flex; flex-direction: column; gap: 16px; }
.product-info h1 { font-size: 1.85rem; line-height: 1.3; color: var(--accent, var(--blue)); }
.product-info p.lead { line-height: 1.75; color: #444; }
.product-info h3 { color: var(--blue); font-size: 1.05rem; }
.product-info ul { padding-inline-start: 22px; line-height: 2; color: #444; }
.product-info .price { font-size: 1.9rem; font-weight: 900; color: var(--accent, var(--blue)); }

.back-link {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 18px;
}
.back-link:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 26px 20px;
  color: #aaa;
  font-size: .85rem;
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
  header img { height: 66px; }
  .grid { grid-template-columns: 1fr; gap: 18px; }
  .cart-fab { left: 16px; right: 16px; justify-content: center; }
  .toast { left: 16px; right: 16px; }
  .product-info h1 { font-size: 1.5rem; }
}
