/* קטלוג חנוכה תשפ"ז – שי בסרט. אותו עיצוב כמו הקטלוג המודפס: ירוק, זהב ואפרסק, גופן ארצי */
@font-face { font-family: "Artzi"; src: url("assets/fonts/artzi-regular-fm.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Artzi"; src: url("assets/fonts/artzi-bold-fm.otf") format("opentype"); font-weight: 700; font-display: swap; }

:root {
  /* ארבעת צבעי הבסיס (אפשר לשנות מאזור הניהול) */
  --ink: #36563D;      /* ירוק: רקעים */
  --blue: #DAAC99;     /* אפרסק: משטחים בהירים */
  --yellow: #C59B5E;   /* זהב: כותרות, כפתורים ומסגרות */
  --teal: #C27A62;     /* טרקוטה: הדגשה משנית */

  --brand: var(--ink);
  --accent: var(--yellow);
  --bg: var(--ink);
  --text: color-mix(in srgb, var(--ink) 86%, black);

  --green: var(--ink);
  --green-ink: var(--text);
  --shadow: color-mix(in srgb, var(--ink) 70%, black);
  --peach: var(--blue);
  --gold: var(--yellow);
  --gold-line: color-mix(in srgb, var(--yellow) 82%, #F2C46A);
  --terracotta: var(--teal);
  --cream: color-mix(in srgb, var(--blue) 45%, white);
  --stamp-bg: transparent;

  --font-head: "Artzi", "Segoe UI", Arial, sans-serif;
  --font-body: "Artzi", "Segoe UI", Arial, sans-serif;
  --track: -0.025em;
  --top-h: 74px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--green); color: var(--gold); font-family: var(--font-body); font-size: 17px; line-height: 1.5;
  letter-spacing: var(--track); overflow-x: hidden; }
[dir="ltr"] { letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-head); text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ----- כפתורים ----- */
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1.5px solid var(--gold);
  color: var(--gold); border-radius: 30px; padding: 6px 22px; font-size: 17px; white-space: nowrap; transition: background .2s, color .2s; }
.pill:hover, .pill--solid { background: var(--gold); color: var(--green-ink); }
.pill--solid:hover { background: transparent; color: var(--gold); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border-radius: 30px; padding: 8px 30px;
  font-size: 18px; font-weight: 700; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; letter-spacing: var(--track);
  transition: transform .2s, box-shadow .2s; }
.btn svg { width: 22px; height: 22px; }
.btn--gold { background: var(--gold); color: var(--green-ink); box-shadow: 5px 5px 0 var(--shadow); }
.btn--green { background: var(--green); color: var(--cream); box-shadow: 5px 5px 0 color-mix(in srgb, var(--green) 40%, var(--peach)); }
.btn--line { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn--gold:hover, .btn--green:hover { transform: translate(-2px, -2px); }

/* ----- כותרת עליונה קבועה ----- */
.top { position: sticky; top: 0; z-index: 50; background: var(--green); border-bottom: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); }
.top__bar { display: flex; align-items: center; gap: 24px; height: var(--top-h); }
.top__logo img { height: 52px; width: auto; }
.end__logo { height: auto; }
/* מחשב: קישורים עם קו זהב קצר מתחת לכל קטגוריה, שמתמתח במעבר עכבר; כוכב קטן מפריד ביניהן */
.top__nav { flex: 1; display: flex; justify-content: center; align-items: center; gap: 8px; }
.top__nav a { position: relative; padding: 10px 20px 14px; font-size: 18px; white-space: nowrap; color: var(--gold); transition: color .3s; }
.top__nav a::after { content: ""; position: absolute; right: 20px; left: 20px; bottom: 5px; height: 1.5px; background: var(--gold);
  transform: scaleX(.22); opacity: .6; transition: transform .35s ease, opacity .35s ease; }
.top__nav a + a::before { content: "✦"; position: absolute; right: -8px; top: 50%; transform: translateY(-60%); font-size: 10px; letter-spacing: 0;
  color: color-mix(in srgb, var(--gold) 55%, transparent); pointer-events: none; }
.top__nav a:hover, .top__nav a.is-on { color: var(--cream); }
.top__nav a:hover::after, .top__nav a.is-on::after { transform: scaleX(1); opacity: 1; }
.top__nav a.is-on::after { height: 2px; }

/* ----- גלים ומדבקה ----- */
.waves { width: 150px; color: var(--gold-line); display: block; }
.sticker { width: 120px; height: auto; flex: none; overflow: visible; letter-spacing: 0; }

/* ----- שער ----- */
main { overflow-x: clip; }
.cover { padding: 46px 0 70px; }
.cover__wrap { position: relative; }
.cover .waves { position: absolute; left: 0; top: 18px; width: 170px; color: color-mix(in srgb, var(--gold) 45%, var(--green)); }
.cover__title { font-size: clamp(64px, 11vw, 124px); line-height: .95; font-weight: 700; color: var(--gold); text-shadow: 0 2px 0 rgba(40,58,43,.35); }
.cover__photo { position: relative; margin-top: 34px; }
.cover__shadow { position: absolute; inset: 26px -14px -20px -20px; background: var(--shadow); transform: rotate(-1.6deg); }
.cover__photo img { position: relative; width: 100%; height: auto; aspect-ratio: 1.69; object-fit: cover; background: #fff; }
.cover__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 44px; flex-wrap: wrap; }
.cover__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cover__year { font-size: 24px; letter-spacing: 10px; color: var(--gold); }

/* ----- פתיחה ----- */
.intro { background: var(--peach); color: var(--green-ink); padding: 90px 0 80px; }
.intro__grid { display: grid; grid-template-columns: 1fr; gap: 70px; align-items: center; }
.intro__photo { position: relative; width: min(330px, 78vw); margin-inline: auto; aspect-ratio: 350 / 485; }
.intro__terracotta { position: absolute; inset: 22px 14px -18px -22px; background: var(--terracotta); transform: rotate(-3deg); }
.intro__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stamp { width: 132px; height: 132px; color: var(--green-ink); }
.intro__photo .stamp { position: absolute; right: -40px; bottom: -42px; --stamp-bg: var(--peach); }
.intro__title { font-size: clamp(25px, 3.2vw, 30px); line-height: 1.35; font-weight: 700; margin-bottom: 20px; }
.intro__lines { list-style: none; font-size: 22px; line-height: 1.6; }
.intro__heart .heart { width: 12px; fill: var(--green-ink); margin: 14px 0 10px; display: block; }
.intro__wish { font-size: 24px; }
.intro__foot { margin-top: 30px; font-size: 16px; line-height: 1.6; }

/* ----- תפריט קטגוריות ----- */
.menu { padding: 80px 0 40px; }
.menu__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px 30px; flex-wrap: wrap; margin-bottom: 38px; }
.menu__title { font-size: clamp(32px, 4vw, 42px); font-weight: 700; line-height: 1.1; }
.menu__hint { color: var(--peach); font-weight: 700; font-size: 17px; }
.menu__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 30px 34px; }
.mcard { display: flex; height: 160px; box-shadow: 8px 8px 0 var(--shadow); transition: transform .2s, box-shadow .2s; }
.mcard:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--shadow); }
.mcard__txt { flex: 1; background: var(--gold); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 0 24px; }
.mcard__title { font-size: 30px; font-weight: 700; color: var(--green-ink); line-height: 1.05; }
.mcard__pill { margin-top: 12px; background: var(--green); color: var(--cream); border-radius: 20px; padding: 2px 16px; font-size: 16px; }
.mcard__img { width: 46%; background: #fff; padding: 10px; }
.mcard__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

/* ----- קטגוריה ----- */
.cat { padding: 70px 0 30px; scroll-margin-top: calc(var(--top-h) + 4px); }
.cat__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.cat__head .waves { width: 130px; margin-bottom: 14px; }
.cat__title { font-size: clamp(34px, 4.4vw, 46px); font-weight: 700; line-height: 1.05; }
.cat__sub { margin-top: 8px; font-size: 18px; color: var(--peach); }
.cat__head .sticker { transform: translateY(6px); }
.grid { display: grid; gap: 40px 36px; }
.grid--v { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.grid--h { grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); }
.grid--q { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; }

/* כרטיס מוצר: אפרסק עם צל ירוק כהה, כמו בקטלוג */
.card { display: flex; background: var(--peach); color: var(--green-ink); box-shadow: 9px 9px 0 var(--shadow); min-height: 380px; }
.card__info { flex: 1; display: flex; flex-direction: column; padding: 26px 22px 22px 18px; min-width: 0; }
.card__photo { width: 40%; flex: none; background: #fff; position: relative; overflow: hidden; }
.card__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10px; mix-blend-mode: multiply; }
.card--menorah .card__photo img { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.card__title { font-size: 25px; font-weight: 700; line-height: 1.15; white-space: pre-line; }
.model { font-size: 16px; margin-top: 6px; }
.model b { font-weight: 700; margin-left: 12px; }
.model__num { letter-spacing: 0; }
.bullets { list-style: none; margin-top: 22px; font-size: 16.5px; line-height: 1.5; }
.bullets li { position: relative; padding-right: 20px; }
.bullets li::before { content: "✦"; position: absolute; right: 0; top: 1px; font-size: 12px; letter-spacing: 0; }
.bullets li.plain { padding-right: 0; margin-top: 6px; }
.bullets li.plain::before { content: none; }
.card__sub { margin-top: 22px; font-size: 16.5px; line-height: 1.5; white-space: pre-line; }
.card__bottom { margin-top: auto; padding-top: 24px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 10px; }
.card__bottom .rule { flex-basis: 100%; height: 1.5px; background: var(--green-ink); margin-bottom: 4px; }
.price { font-size: 32px; line-height: 1; display: inline-block; border-bottom: 1.5px solid var(--green-ink); padding: 0 2px 4px; letter-spacing: 0; order: 2; }
.order { display: inline-flex; align-items: center; min-height: 44px; background: var(--green); color: var(--cream); border-radius: 22px; padding: 4px 18px;
  font-size: 15.5px; white-space: nowrap; transition: background .2s; }
.order:hover { background: var(--shadow); }
.card--style { flex-direction: column-reverse; }
.card--style .card__photo { width: 100%; aspect-ratio: 1.3; }
.card--style .card__info { padding: 26px 28px 24px; }

/* כרטיס קטן לבן: הדלקת נרות ופרלינים */
.q { background: #fff; color: var(--green-ink); box-shadow: 8px 8px 0 var(--shadow); padding: 14px 14px 16px; display: flex; flex-direction: column; }
.q__img { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.q__img img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.q__title { font-size: 18px; font-weight: 400; line-height: 1.25; margin-top: 12px; }
.q__sub { font-size: 15px; margin-top: 4px; opacity: .85; white-space: pre-line; }
.q__bottom { margin-top: auto; padding-top: 16px; }
.q .rule { height: 1.5px; background: var(--green-ink); margin-bottom: 12px; }
.q .price { font-size: 28px; }
.q .model { font-size: 15px; }
.q .order { margin-top: 12px; font-size: 15px; padding: 4px 16px; }

/* ----- הזמנות לעסקים ----- */
.biz { padding: 90px 0; }
.biz__grid { display: grid; gap: 44px; align-items: center; }
.biz .waves { width: 130px; margin-bottom: 16px; }
.biz__title { font-size: clamp(32px, 4.2vw, 44px); line-height: 1.1; font-weight: 700; }
.biz__sub { margin-top: 14px; font-size: 19px; color: var(--peach); max-width: 34ch; }
.biz__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.lead { background: var(--peach); color: var(--green-ink); padding: 30px 26px; box-shadow: 9px 9px 0 var(--shadow); display: grid; gap: 14px; }
.lead__title { font-size: 25px; font-weight: 700; margin-bottom: 4px; }
.lead__field { display: grid; gap: 5px; font-size: 16px; font-weight: 700; }
.lead__field input, .lead__field select, .lead__field textarea { font: inherit; font-weight: 400; font-size: 17px; letter-spacing: 0; color: var(--green-ink);
  background: var(--cream); border: 1.5px solid color-mix(in srgb, var(--green-ink) 35%, transparent); border-radius: 12px; padding: 11px 14px; min-height: 48px; width: 100%; }
.lead__field input:focus, .lead__field select:focus, .lead__field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent); }
.lead { position: relative; }
.lead__trap { position: absolute; top: 0; right: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lead__trap input { width: 1px; min-height: 0; }
.lead__submit { margin-top: 6px; }
.lead__msg { font-size: 16px; min-height: 1em; }
.lead__msg--bad { color: #8E2F1E; font-weight: 700; }
.lead__done { font-size: 21px; font-weight: 700; padding: 20px 0; }

/* ----- סיום ----- */
.end { background: var(--peach); color: var(--green-ink); padding: 90px 0 0; }
.end__wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.end__title { display: flex; align-items: center; gap: 24px; font-size: clamp(54px, 9vw, 92px); font-weight: 700; line-height: 1; }
.end__title .heart { width: clamp(20px, 2.4vw, 30px); fill: var(--green-ink); flex: none; }
.end__logo { width: 230px; margin: 44px 0 40px; }
/* ----- שיתוף ----- */
.share-btn { gap: 8px; font-family: inherit; cursor: pointer; background: transparent; letter-spacing: var(--track); }
.pill.share-btn { font-size: 17px; }
.share-ico { width: 18px; height: 18px; flex: none; }
.share-box { margin-top: 46px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.share-box__title { font-size: 20px; }
.btn--line-green { border-color: var(--green-ink); color: var(--green-ink); background: transparent; }
.btn--line-green:hover { background: var(--green); color: var(--cream); border-color: var(--green); }
.share-panel { position: fixed; inset: 0; z-index: 90; background: rgba(20, 30, 22, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.share-panel[hidden] { display: none; }
.share-panel__box { position: relative; width: min(360px, 100%); background: var(--green); color: var(--gold); padding: 34px 26px 26px;
  box-shadow: 9px 9px 0 var(--shadow); border: 1.5px solid color-mix(in srgb, var(--gold) 40%, transparent); display: grid; gap: 12px; text-align: center; }
.share-panel__title { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.share-panel__close { position: absolute; top: 6px; left: 8px; width: 44px; height: 44px; background: none; border: 0; color: var(--gold); font-size: 30px; cursor: pointer; line-height: 1; }
.share-panel__done { font-size: 16px; color: var(--cream); }
/* ----- גרסת המייל (קישור עם ?mail): בלי וואטסאפ בכלל ----- */
html:not(.mode-mail) .only-mail, .mode-mail .only-wa { display: none !important; }
.btn svg, .pill svg { flex: none; }

/* חלונית הזמנה */
.order-panel { overflow-y: auto; align-items: flex-start; padding: 24px 16px; }
.order-form { width: min(440px, 100%); margin: auto; }
.order-form .lead__title { padding-left: 40px; text-wrap: balance; }
.order-close { color: var(--green-ink); top: 8px; left: 8px; }
.order-form__model { font-size: 17px; margin-top: -6px; }
.order-form__model [dir="ltr"] { letter-spacing: 0; }
.order-form__done { font-size: 20px; font-weight: 700; padding: 10px 0; }
.order-form__alt { font-size: 16px; text-align: center; }
.order-form__alt a { text-decoration: underline; text-underline-offset: 3px; font-weight: 700; display: inline-block; padding: 8px 2px; }
.end__rule { width: min(480px, 100%); height: 1.5px; background: var(--green-ink); margin: 56px 0 22px; }
.end__line { font-size: 17px; line-height: 1.7; }
.end__line a { text-decoration: underline; text-underline-offset: 3px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 50px 0 26px; font-size: 15px; opacity: .85; }
.foot__admin { text-decoration: underline; text-underline-offset: 3px; padding: 10px 0; }

/* ----- וואטסאפ צף (טלפון בלבד) ----- */
.wa-float { position: fixed; left: 16px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--gold); color: var(--green-ink);
  display: none; align-items: center; justify-content: center; box-shadow: 4px 4px 0 var(--shadow); }
.wa-float svg { width: 28px; height: 28px; }

/* ----- אנימציית כניסה עדינה, פעם אחת ----- */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
}

/* ===== טלפון וטאבלט קטן ===== */
@media (max-width: 899px) {
  :root { --top-h: 148px; }
  .top__bar { flex-wrap: wrap; height: auto; gap: 0 12px; padding-top: 8px; }
  .top__logo img { height: 40px; }
  .top__order { margin-right: auto; min-height: 38px; padding: 4px 16px; font-size: 15px; }
  /* כל הקטגוריות נכנסות למסך: שלוש בשורה הראשונה, שתיים בשנייה */
  .top__nav { order: 3; flex-basis: 100%; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 8px; padding-bottom: 10px; }
  .top__nav a { grid-column: span 2; display: flex; align-items: center; justify-content: center; min-height: 36px; padding: 4px 6px;
    border: 1.5px solid color-mix(in srgb, var(--gold) 45%, transparent); border-radius: 30px; font-size: 15px; }
  .top__nav a:nth-child(n+4) { grid-column: span 3; }
  .top__nav a::after, .top__nav a + a::before { display: none; }
  .top__nav a.is-on { background: var(--gold); color: var(--green-ink); border-color: var(--gold); }
  .cover { padding-top: 34px; }
  .cover .waves { width: 120px; top: 6px; }
  .cover__photo img { aspect-ratio: 1.45; }
  .cover__shadow { inset: 18px -8px -14px -10px; }
  .cover__year { font-size: 20px; letter-spacing: 8px; }
  .cat__head .sticker { width: 96px; }
  .wa-float { display: flex; }
}
@media (max-width: 520px) {
  .card { min-height: 360px; }
  .card__photo { width: 38%; }
  .card__info { padding: 20px 14px 16px 12px; }
  .card__title { font-size: 22px; }
  .bullets, .card__sub { font-size: 16px; margin-top: 16px; }
  .price { font-size: 28px; }
  .card__bottom { flex-direction: column; align-items: flex-start; }
  .card__bottom .price { order: 0; }
  .order { font-size: 15px; padding: 4px 14px; }
  .card--style .card__info { padding: 22px 18px 20px; }
  .q { padding: 10px 10px 12px; }
  .q__title { font-size: 17px; }
  .q .price { font-size: 25px; }
  .q .order { width: 100%; justify-content: center; }
  .mcard { height: 138px; }
  .mcard__title { font-size: 26px; }
  .lead { padding: 24px 18px; }
  .end__title { gap: 12px; font-size: 46px; white-space: nowrap; }
  .end__line .sep { display: none; }
  .end__line > span, .end__line > a { display: block; }
  .end__line > a { width: fit-content; margin-inline: auto; padding: 8px 4px; }
  .foot { padding-bottom: 92px; justify-content: center; text-align: center; }
}

/* ===== מחשב ===== */
@media (min-width: 900px) {
  .intro__grid { grid-template-columns: 1fr 1fr; gap: 100px; }
  .intro__photo { width: 350px; order: 1; }
  .intro__text { order: 2; }
  .grid--q { grid-template-columns: repeat(4, 1fr); gap: 30px 26px; }
  .q { padding: 16px 16px 18px; }
  .biz__grid { grid-template-columns: 1fr 1fr; gap: 80px; }
  .cat { padding-top: 90px; }
}

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