/*
 * קרן וולף | ערכה "יוקרתית" בהירה (דצמבר 2026)
 * רקע: צילום של מנה, מטושטש ומאחורי כל הדף (.ambient), כדי שהזכוכית תיראה באמת.
 * צבעים: אספרסו, שנהב וזהב-שמפניה. גופן Rubik לכל האתר (קרן בחרה, 4.12.2026): כותרות במשקל 500, טקסט 300-400.
 * צלחות לבנות עם קו זהב דק, פאנלים של זכוכית עם קווי טופוגרפיה בזהב. בלי גרדיאנטים.
 * נטען אחרי styles.css ודורס אותו.
 */
:root {
  --ivory: #f6f2ea;
  --ink: #1d1a17;            /* אספרסו */
  --muted: #4f4840;          /* AA על שנהב ועל הזכוכית */
  --gold: #a8834f;           /* קישוטים, קווים, מילוי התקדמות */
  --gold-line: rgba(168, 131, 79, .45);
  --gold-light: #d2b27c;     /* טקסט זהב על רקע כהה */
  --bronze: #6b4e26;         /* טקסט מודגש (AA גם מעל הזכוכית) */
  --on-dark: #f6f2ea;
  --coral: #d4553f;          /* לב "שמרתי" בלבד */
  --line: rgba(29, 26, 23, .1);

  --glass: rgba(255, 251, 245, .46);
  --glass-hi: rgba(255, 251, 245, .74);
  --glass-line: rgba(255, 255, 255, .62);
  --glass-dark: rgba(29, 26, 23, .74);
  --blur: blur(26px) saturate(1.7);
  --shine: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 0 0 1px rgba(255, 255, 255, .16);

  --radius: 28px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --spring: cubic-bezier(.3, 1.5, .5, 1);
  --shadow: var(--shine), 0 1px 2px rgba(60, 40, 20, .06), 0 26px 50px -28px rgba(60, 40, 20, .45);
  --shadow-lg: var(--shine), 0 2px 4px rgba(60, 40, 20, .06), 0 46px 80px -38px rgba(60, 40, 20, .6);
  --plate-shadow: 0 28px 40px -20px rgba(50, 32, 16, .55), 0 6px 12px -6px rgba(50, 32, 16, .25);

  --font: "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-display: var(--font);
  --font-hand: var(--font-display);
  --orn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 14'%3E%3Cpath d='M0 7h52M88 7h52' stroke='%23a8834f' stroke-width='1'/%3E%3Ccircle cx='57' cy='7' r='1.5' fill='%23a8834f'/%3E%3Ccircle cx='83' cy='7' r='1.5' fill='%23a8834f'/%3E%3Cpath d='M70 1.5 75.5 7 70 12.5 64.5 7z' fill='none' stroke='%23a8834f' stroke-width='1.2'/%3E%3C/svg%3E");

  /* מיפוי המשתנים של styles.css */
  --bg: var(--ivory);
  --text: var(--ink);
  --surface: #fffdf9;
  --white: var(--surface);
  --black: var(--ink);
  --on-black: var(--on-dark);
  --sage: var(--gold);
  --sage-deep: var(--bronze);
  --sage-ink: var(--ink);
  --sage-50: rgba(255, 251, 245, .6);
  --sage-100: rgba(255, 251, 245, .8);
  --cream: var(--ivory);
  --butter: rgba(255, 251, 245, .7);
}
html { color-scheme: light; background: var(--ivory); }
body { background: transparent; color: var(--ink); font-family: var(--font); font-weight: 400; }
::selection { background: var(--ink); color: var(--on-dark); }
h1, h2, h3 { color: var(--ink); font-family: var(--font-display); font-weight: 500; letter-spacing: 0; }
h1, h2, h3, .hero__lead, .rhero__lead, .section__head p, .page-head p { text-wrap: balance; }
:focus-visible { outline-color: var(--ink); }
.eyebrow { font-family: var(--font); font-weight: 500; letter-spacing: .2em; color: var(--bronze); font-size: .82rem; }

/* ---------- הרקע: צילום מטושטש ---------- */
.ambient { position: fixed; inset: -80px; z-index: -2; pointer-events: none; overflow: hidden; background: var(--ivory); }
.ambient img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(34px) saturate(1.25); transform: scale(1.08) translateZ(0);
  opacity: 0; transition: opacity 1s var(--ease); }
.ambient img.on { opacity: 1; }
.ambient::after { content: ""; position: absolute; inset: 0; background: rgba(246, 242, 234, .6); }

/* ---------- זכוכית ---------- */
.glass, .top, .bigsearch, .fmenu__panel, .a11y-panel, .ings, .rhead__info, .hero__panel, .mc, .contact-card, .mini, .empty, .toast, .outro {
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-line); box-shadow: var(--shadow);
}
/* קווי טופוגרפיה בזהב בתוך הפאנלים הגדולים */
.hero__panel::before, .rhead__info::before, .mc::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: var(--gold); opacity: .38;
  -webkit-mask: url("topo.svg") center / cover no-repeat; mask: url("topo.svg") center / cover no-repeat;
}
/* מסגרת זהב פנימית, כמו בתפריט של מסעדה */
.hero__panel::after, .rhead__info::after, .mc::after {
  content: ""; position: absolute; inset: clamp(8px, 1vw, 12px); z-index: -1; border-radius: calc(var(--r, 44px) - clamp(8px, 1vw, 12px)); border: 1px solid var(--gold-line); pointer-events: none;
}
/* קישוט: קו זהב עם יהלום */
.orn, .hero h1::before, .section__head h2::after, .page-head h1::after, .ings h2::after, .steps-head h2::after, .mc h2::after, .prose h1::after {
  content: ""; display: block; width: 140px; height: 14px; margin-inline: auto; background: var(--orn) center / contain no-repeat;
}
.hero h1::before { margin-bottom: clamp(14px, 2vw, 22px); }
.section__head h2::after, .page-head h1::after, .ings h2::after, .steps-head h2::after, .mc h2::after, .prose h1::after { margin-top: 12px; }

/* ---------- סרגל עליון ---------- */
.top { border-width: 0 0 1px; border-color: var(--gold-line); box-shadow: var(--shine); transition: background .4s var(--ease), box-shadow .4s var(--ease); }
.top--scrolled { background: var(--glass-hi); box-shadow: var(--shine), 0 20px 44px -30px rgba(60, 40, 20, .55); }
.top__row { transition: min-height .4s var(--ease); }
.top__search input { background: rgba(255, 251, 245, .6); border: 1px solid var(--gold-line); color: var(--ink); }
.top__search input::placeholder, .bigsearch input::placeholder { color: var(--muted); }
.top__search input:hover { border-color: var(--gold); }
.top__search input:focus { background: #fffdf9; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(168, 131, 79, .18); }
.top__search svg, .bigsearch svg { stroke: var(--ink); }
.nav a { color: var(--muted); transition: color .2s, border-color .2s; }
.nav a:hover { color: var(--ink); border-color: var(--gold-line); }
.nav a[aria-current="page"] { color: var(--ink); border-color: var(--gold); }
.favlink { background: var(--ink); color: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(210, 178, 124, .45); transition: transform .35s var(--spring), background .2s; }
.favlink:hover { background: #000; transform: scale(1.06); }
.favlink b { background: var(--coral); color: #fff; }
@media (min-width: 901px) {
  .top--scrolled .top__row { min-height: 62px; }
  .brand__mark, .brand__word { transition: width .4s var(--ease); }
  .top--scrolled .brand__mark { width: 36px; } .top--scrolled .brand__word { width: 58px; }
}
@media (max-width: 900px) { .top .nav { display: none; } .top__row { padding-bottom: 12px; } }

/* ---------- כפתורים ---------- */
.btn { border: 1px solid var(--gold-line); background: rgba(255, 251, 245, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ink); font-weight: 500;
  position: relative; overflow: hidden; transition: transform .35s var(--ease), background .25s, border-color .25s, color .25s, box-shadow .35s var(--ease); }
.btn:hover { background: #fffdf9; border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 14px 26px -16px rgba(60, 40, 20, .55); }
.btn:active { transform: scale(.96); }
.btn--solid, .btn--cream { background: var(--ink); border-color: var(--ink); color: var(--on-dark);
  box-shadow: inset 0 0 0 1px rgba(210, 178, 124, .35), 0 16px 30px -16px rgba(29, 26, 23, .75); }
.btn--solid:hover, .btn--cream:hover { background: #000; border-color: #000; color: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(210, 178, 124, .7), 0 18px 34px -16px rgba(29, 26, 23, .8); }
.btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.chip { border: 1px solid var(--gold-line); background: rgba(255, 251, 245, .62); color: var(--ink); font-weight: 400; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), background .2s, border-color .2s, color .2s; }
.chip:hover { border-color: var(--gold); background: #fffdf9; transform: translateY(-2px); }
.chip small { color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.chip[aria-pressed="true"] small { color: rgba(246, 242, 234, .82); }
.tag, .tag--quick, .tag--home, .tag--sweet, .tag--italian, .tag--salad, .tag--kitchen {
  background: rgba(255, 251, 245, .82); color: var(--bronze); border: 1px solid var(--gold-line); font-weight: 500; letter-spacing: .04em; }
.more { color: var(--ink); font-weight: 500; gap: 10px; }
.more svg { width: 32px; height: 32px; padding: 8px; border-radius: 50%; border: 1px solid var(--gold); background: rgba(255, 251, 245, .5); stroke: var(--bronze);
  transition: transform .35s var(--ease), background .25s, stroke .25s; }
.more:hover { text-decoration: none; }
.more:hover svg { transform: translateX(-4px); background: var(--ink); border-color: var(--ink); stroke: var(--on-dark); }
.ripple { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: currentColor; opacity: .22; pointer-events: none; animation: ripple .7s var(--ease) forwards; }
@keyframes ripple { to { transform: scale(30); opacity: 0; } }

/* ---------- דף הבית: פאנל זכוכית וצלחות שבולטות ממנו ---------- */
.hero { background: transparent; position: relative; padding-block: clamp(28px, 5vw, 72px) clamp(28px, 4vw, 56px); overflow: visible; }
.hero .wrap { position: relative; z-index: 1; }
.hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 0; }
.hero__panel { --r: 44px; grid-column: 1; grid-row: 1; position: relative; z-index: 1; border-radius: var(--r); box-shadow: var(--shadow-lg); text-align: center;
  display: flex; flex-direction: column; align-items: center; padding: clamp(34px, 4.6vw, 66px) clamp(24px, 4vw, 56px); padding-inline-end: clamp(120px, 14vw, 210px); }
.hero__panel:has(.fmenu[open]) { z-index: 3; }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1.05; margin-bottom: 16px; }
.hero h1 mark { background: none; }
.hero__lead { color: var(--muted); font-weight: 300; font-size: clamp(1.05rem, 1.5vw, 1.22rem); max-width: 30em; margin-inline: auto; }
.bigsearch { width: min(100%, 560px); margin-inline: auto; padding: 7px; border-radius: 999px; background: rgba(255, 251, 245, .7); border-color: var(--gold-line);
  transition: box-shadow .4s var(--ease), transform .4s var(--ease), border-color .3s, background .3s; }
.bigsearch input { color: var(--ink); }
.bigsearch:focus-within { background: #fffdf9; border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 0 0 4px rgba(168, 131, 79, .16), var(--shadow-lg); }
.fridge { display: flex; flex-direction: column; align-items: center; }
.fridge__out { width: min(100%, 720px); text-align: start; }
.fmenu__btn { border: 1px solid var(--gold-line); background: rgba(255, 251, 245, .62); color: var(--ink); font-weight: 500; transition: border-color .2s, background .2s, transform .35s var(--ease); }
.fmenu__btn:hover { background: #fffdf9; border-color: var(--gold); transform: translateY(-2px); }
.fmenu[open] .fmenu__btn { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.fmenu__count { color: inherit; }
.fmenu__panel { inset-inline-start: 50%; transform: translateX(50%); text-align: start; border-radius: 24px; background: rgba(255, 251, 245, .95); box-shadow: var(--shadow-lg); }
.fmenu__hint, .fridge__empty { color: var(--muted); }
.mini small { color: var(--bronze); }
.hero__actions { justify-content: center; }

/* צלחות לבנות עם קו זהב */
.plates { grid-column: 2; grid-row: 1; position: relative; z-index: 2; container-type: inline-size; width: min(calc(100% + 12vw), 580px); aspect-ratio: 1; justify-self: start;
  margin-inline-start: clamp(-200px, -13vw, -100px); transform: translate3d(var(--px, 0), var(--py, 0), 0); transition: transform .8s var(--ease); }
.plate { position: absolute; display: block; border-radius: 50%; overflow: hidden; background: #fffdf9; border: 0; padding: 4%;
  outline: 1px solid var(--gold-line); outline-offset: -1.8cqw; box-shadow: var(--plate-shadow); animation: float 8s ease-in-out infinite; transition: transform .7s var(--ease), outline-color .4s; }
.plate img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.plate--0 { width: 70%; inset-inline-start: 14%; top: 15%; padding: 3.2%; outline-offset: -1.5cqw; box-shadow: var(--plate-shadow), 0 60px 90px -40px rgba(50, 32, 16, .6); }
.plate--0 img { animation: spin 90s linear infinite; }
.plate--1 { width: 30%; inset-inline-start: 0; top: 0; animation-delay: -2s; animation-duration: 9s; }
.plate--2 { width: 25%; inset-inline-end: 0; top: 6%; animation-delay: -4s; animation-duration: 7s; }
.plate--3 { width: 31%; inset-inline-end: 2%; bottom: 0; animation-delay: -1s; animation-duration: 10s; }
.plate:hover { transform: scale(1.06) rotate(-6deg); outline-color: var(--gold); }
.plate span { position: absolute; inset-inline: 14%; bottom: 13%; background: var(--glass-dark); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--on-dark);
  border-radius: 999px; padding: 4px 12px; font-size: .8rem; font-weight: 500; text-align: center; line-height: 1.3; opacity: 0; transform: translateY(8px); transition: .35s var(--ease); }
.plate:hover span, .plate:focus-visible span { opacity: 1; transform: none; }
@keyframes float { 50% { translate: 0 -12px; } }
@keyframes spin { to { rotate: 360deg; } }
/* טלפון וטאבלט: הצלחות למעלה (תמונה מגרה כבר במסך הראשון), פאנל הזכוכית עולה מתחתן.
   חיפוש אחד בלבד: החיפוש של הסרגל העליון מוסתר בדף הבית, "מה יש במקרר" ו"מתכון אקראי" בשורה אחת. */
@media (max-width: 900px) {
  body:has(.hero) .top__search { display: none; }
  .hero { --pw: min(calc(100vw - 2 * clamp(16px, 4vw, 40px)), 430px); padding-top: 6px; }
  .hero__grid { grid-template-columns: 1fr; justify-items: center; }
  .plates { grid-column: 1; grid-row: 1; width: var(--pw); max-width: 100%; margin: 0; justify-self: center; transform: none; }
  .plate--0 { width: 74%; inset-inline-start: 13%; top: 11%; }
  .plate--1 { width: 27%; } .plate--2 { width: 23%; top: 3%; } .plate--3 { width: 27%; bottom: 6%; }
  .hero__panel { --r: 34px; grid-column: 1; grid-row: 2; width: 100%; margin-top: calc(var(--pw) * -.24);
    padding: calc(var(--pw) * .1 + 22px) clamp(18px, 5vw, 34px) 24px; flex-flow: row wrap; justify-content: center; gap: 0 10px; }
  .hero__panel::before { display: none; }
  .hero__panel > *, .fridge__out { flex: 0 0 100%; }
  .hero h1 { font-size: clamp(2.7rem, 12.5vw, 3.9rem); line-height: 1.02; margin-bottom: 12px; }
  .hero h1::before { margin-bottom: 14px; }
  .hero__lead { font-size: 1.04rem; max-width: 24em; }
  .hero .bigsearch { margin-top: 20px; }
  .hero .fridge { display: contents; }
  .fmenu { position: static; flex: 0 1 auto; margin-top: 12px; }
  .fmenu__btn { min-height: 48px; padding-inline: 20px; font-size: .98rem; }
  /* הרשימה נפתחת מתחת לכפתור (מיקום סטטי) לכל רוחב הפאנל */
  .fmenu__panel { top: auto; margin-top: 8px; inset-inline: clamp(10px, 3vw, 18px); width: auto; transform: none; }
  .hero__actions { flex: none; margin-top: 12px; }
  .hero__actions .btn { width: 48px; min-height: 48px; padding: 0; font-size: 0; gap: 0; justify-content: center; }
  .hero__actions .btn svg { width: 22px; height: 22px; }
  .fridge__out { order: 1; }
}
@media (max-width: 600px) {
  .hero__panel { padding-inline: 14px; }
  .bigsearch svg { margin-inline: 10px 0; }
  .bigsearch input { padding-inline: 8px; font-size: 1rem; }
  .bigsearch .btn { padding-inline: 16px; }
}

.section { position: relative; padding-block: clamp(40px, 5.5vw, 72px); }
.section--tint { background: transparent; }
.section__head { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.section__head > div { display: flex; flex-direction: column; align-items: center; }
.section__head h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); line-height: 1.1; }
.section__head p { color: var(--muted); font-weight: 300; }

/* קטגוריות: אריחי זכוכית ברוחב שווה, צלחת למעלה והשם ממורכז מתחתיה (אותו קו בכל האריחים) */
.rail { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 14px; padding: 0 0 8px; overflow: visible; align-items: stretch; }
.rail__item { width: auto; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 12px; padding: 16px 10px 16px; border-radius: 26px;
  color: var(--ink); text-align: center; background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-line); box-shadow: var(--shadow);
  transition: transform .45s var(--spring), background .3s, color .3s; }
.rail__item img { flex: none; width: 78px; height: 78px; margin: 0; border: 4px solid #fffdf9; outline: 1px solid var(--gold-line); outline-offset: -3px; box-shadow: 0 12px 18px -10px rgba(50, 32, 16, .55); transition: transform .6s var(--ease); }
.rail__item b { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; width: 100%; margin: 0; color: inherit; font-family: var(--font-display); font-weight: 500; font-size: 1rem; line-height: 1.2; text-align: center; text-wrap: balance; }
.rail__item small { display: none; }
.rail__item:hover { transform: translateY(-4px); background: var(--glass-dark); color: var(--on-dark); }
.rail__item:hover img { transform: rotate(-30deg) scale(1.06); }
@media (max-width: 1000px) { .rail { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .rail { gap: 10px; }
  .rail__item { gap: 8px; padding: 12px 6px 12px; border-radius: 22px; }
  .rail__item img { width: 60px; height: 60px; border-width: 3px; outline-offset: -2px; }
  .rail__item b { font-size: .9rem; }
}

/* ---------- כרטיסי מתכון: צלחת שבולטת מכרטיס זכוכית ---------- */
.grid { gap: clamp(28px, 3vw, 40px) clamp(16px, 2.2vw, 26px); }
.card { container-type: inline-size; isolation: isolate; background: none; border: 0; overflow: visible; border-radius: var(--radius); padding-top: 4px;
  transition: transform .6s var(--ease); }
.card::before { content: ""; position: absolute; z-index: -1; inset: calc(4px + 37cqw) 0 0; border-radius: var(--radius);
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-line); box-shadow: var(--shadow);
  transition: background .4s, box-shadow .6s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: none; }
.card:hover::before { background: var(--glass-hi); box-shadow: var(--shadow-lg); }
.card.tilting { transform: perspective(1000px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) translateY(-6px); transition: transform .12s linear; }
.card__media { width: 74%; margin-inline: auto; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #fffdf9; border: 3.2cqw solid #fffdf9;
  outline: 1px solid var(--gold-line); outline-offset: -1.9cqw; box-shadow: var(--plate-shadow); transition: transform .8s var(--ease), outline-color .4s; }
.card__media img { border-radius: 50%; transition: transform 1.2s var(--ease); }
.card:hover .card__media { transform: translateY(-6px) rotate(-14deg); outline-color: var(--gold); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { align-items: center; text-align: center; gap: 6px; padding: 14px 16px 20px; }
.card__body .tag { align-self: center; font-size: .74rem; padding: 0 10px; }
.card h3 { font-size: 1.1rem; line-height: 1.3; color: var(--ink); }
.card__tag { display: none; }
.card__meta { justify-content: center; color: var(--muted); font-weight: 400; font-size: .84rem; padding-top: 2px; }
.card__meta svg.i { stroke: var(--bronze); }
.card__score { top: auto; bottom: 9%; inset-inline: 0; margin-inline: auto; width: max-content; background: var(--ink); color: var(--on-dark); font-size: .78rem; }
.fav { top: 0; inset-inline-end: 4%; width: 40px; height: 40px; background: var(--glass-dark); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--on-dark);
  box-shadow: inset 0 0 0 1px rgba(210, 178, 124, .4), 0 10px 20px -10px rgba(29, 26, 23, .8); transition: transform .35s var(--spring), background .2s; }
.fav:hover { background: var(--ink); transform: scale(1.1); }
.fav:active { transform: scale(.85); }
.fav[aria-pressed="true"] { color: var(--coral); }
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 24px 10px; }
  .card { border-radius: 22px; }
  .card::before { border-radius: 22px; }
  .card__body { padding: 10px 8px 14px; }
  .card h3 { font-size: .98rem; }
  .card .tag { display: none; }
  .card__meta { font-size: .74rem; gap: 8px; }
  .fav { width: 34px; height: 34px; }
  .fav svg { width: 18px; height: 18px; }
}

/* ---------- מאסטר שף ---------- */
.mc { --r: 40px; position: relative; isolation: isolate; border-radius: var(--r); margin: 0 clamp(8px, 2vw, 24px) clamp(40px, 5vw, 72px); box-shadow: var(--shadow-lg); }
.mc::before { opacity: .26; }
.mc p { color: var(--muted); }
.mc__head { margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.mc h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); line-height: 1.1; }
.mc__quote { border: 0; padding: 0; color: var(--ink); font-family: var(--font-display); font-weight: 300; font-size: 1.3rem; }
.facts, .mc__links, .mc__cards { justify-content: center; margin-inline: auto; }
.mc__card { background: rgba(255, 251, 245, .7); border: 1px solid var(--glass-line); box-shadow: var(--shadow); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.mc__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mc__card img { border-radius: 50%; border: 4px solid #fffdf9; outline: 1px solid var(--gold-line); outline-offset: -3px; box-shadow: var(--plate-shadow); }
.mc__card b { font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; }
.mc__card small { color: var(--bronze); }
.fact { background: rgba(255, 251, 245, .7); border-color: var(--gold-line); }
.fact small { color: var(--muted); }

/* ---------- רשימת מתכונים ---------- */
.page-head { text-align: center; }
.page-head h1 { font-size: clamp(2.2rem, 4.2vw, 3.2rem); line-height: 1.1; }
.page-head p { margin-inline: auto; }
.page-head p, .count { color: var(--muted); }
.toolbar { justify-items: center; grid-template-columns: minmax(0, 1fr); }
.toolbar__row { display: flex; gap: 10px; width: min(100%, 620px); }
.toolbar__row .bigsearch { flex: 1 1 auto; min-width: 0; width: auto; margin: 0; }
.toolbar .fridge { align-items: center; }
.chips { justify-content: center; }
/* במחשב הסינונים פתוחים תמיד; כפתור "סינון" מופיע רק בטלפון */
.filt { display: grid; gap: 14px; justify-items: center; width: 100%; }
.filt__btn { display: none; }

/* טלפון: כותרת קצרה, חיפוש אחד עם כפתור "סינון" לצדו, הקטגוריות בשורה אחת שנגללת הצידה,
   ושאר הסינונים ("עד 9 מצרכים", "עד 30 דקות", "השמורים שלי", "מה יש במקרר") נפתחים מהכפתור */
@media (max-width: 900px) { body:has(.toolbar) .top__search { display: none; } }
@media (max-width: 700px) {
  .page-head:has(.toolbar) { padding-top: 14px; }
  .page-head:has(.toolbar) h1 { font-size: 2rem; }
  .page-head:has(.toolbar) h1::after { margin-top: 8px; }
  .page-head:has(.toolbar) > p { display: none; }
  .toolbar { gap: 12px; margin-block: 14px 4px; }
  .toolbar__row { width: 100%; gap: 8px; }
  .filt__btn { display: inline-flex; flex: none; align-items: center; gap: 6px; padding-inline: 14px 16px; border-radius: 999px; font: inherit; font-weight: 500; font-size: .98rem; color: var(--ink); cursor: pointer;
    background: var(--glass-hi); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--gold-line); box-shadow: var(--shadow); transition: background .2s, color .2s, border-color .2s; }
  .filt__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .filt__btn b { display: grid; place-items: center; min-width: 22px; height: 22px; padding-inline: 5px; border-radius: 999px; background: var(--on-dark); color: var(--ink); font-size: .8rem; font-weight: 600; }
  .filt__btn b:empty { display: none; }
  .filt__btn[aria-expanded="true"] { border-color: var(--ink); }
  .filt__btn.is-on { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
  .chips--cats { justify-self: stretch; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    margin-inline: calc(-1 * clamp(16px, 4vw, 40px)); padding: 4px clamp(16px, 4vw, 40px) 6px; scroll-padding-inline: clamp(16px, 4vw, 40px); }
  .chips--cats::-webkit-scrollbar { display: none; }
  .chips--cats .chip { flex: none; }
  .filt { display: none; gap: 12px; padding: 16px 12px; border-radius: 26px;
    background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-line); box-shadow: var(--shadow); }
  .filt.is-open { display: grid; animation: filtIn .35s var(--ease); }
  .filt .chips { gap: 8px; }
  .filt .chip { min-height: 40px; padding-inline: 14px; font-size: .95rem; }
}
@keyframes filtIn { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .filt.is-open { animation: none; } }
.count { text-align: center; }
.empty { border-style: dashed; border-color: var(--gold-line); }
.fridge__title { color: var(--ink); }
.fridge__title small { color: var(--muted); }

/* ---------- עמוד מתכון: צלחת גדולה שבולטת מפאנל הזכוכית ---------- */
.crumbs { color: var(--muted); text-align: center; }
.rhead { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; margin-top: clamp(18px, 3vw, 34px); }
.rhead__info { --r: 40px; grid-column: 1; grid-row: 1; position: relative; z-index: 1; border-radius: var(--r); box-shadow: var(--shadow-lg); text-align: center;
  padding: clamp(30px, 4.4vw, 54px); padding-inline-end: clamp(100px, 12vw, 180px); display: flex; flex-direction: column; align-items: center; }
.rhead__plate { grid-column: 2; grid-row: 1; position: relative; z-index: 2; width: min(100%, 480px); aspect-ratio: 1; justify-self: start; margin-inline-start: clamp(-160px, -10vw, -70px);
  border-radius: 50%; overflow: hidden; background: #fffdf9; border: clamp(10px, 1.4vw, 16px) solid #fffdf9; outline: 1px solid var(--gold-line); outline-offset: calc(-1 * clamp(5px, .7vw, 8px));
  box-shadow: var(--plate-shadow), 0 60px 90px -40px rgba(50, 32, 16, .6); animation: plate-in 1.1s var(--ease) both; }
.rhead__plate img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; transition: transform 1.2s var(--ease); }
.rhead__plate:hover img { transform: rotate(-10deg) scale(1.04); }
.rhead h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.1; margin-block: 16px 12px; max-width: 16ch; }
.rhead .rhero__lead { color: var(--muted); font-weight: 300; font-size: 1.15rem; max-width: 30em; margin-inline: auto; }
.rhead .rhero__by { color: var(--bronze); font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; margin-top: 8px; }
.rhead .pills, .rhead .actions { justify-content: center; }
.rhead .actions { gap: 8px; }
.btn--icon { width: 48px; padding: 0; flex: none; }
.btn--icon svg { width: 20px; height: 20px; }
.pill { background: rgba(255, 251, 245, .6); color: var(--ink); border: 1px solid var(--gold-line); font-weight: 400; }
.pill svg.i { stroke: var(--bronze); }
.actions .fav-btn[aria-pressed="true"] { color: var(--coral); border-color: var(--coral); }
@keyframes plate-in { from { opacity: 0; transform: rotate(-40deg) scale(.88); } }
@media (max-width: 900px) {
  .rhead { grid-template-columns: 1fr; justify-items: center; }
  .rhead__plate { grid-column: 1; grid-row: 1; width: min(78vw, 380px); margin: 0; justify-self: center; }
  .rhead__info { --r: 32px; grid-column: 1; grid-row: 2; width: 100%; margin-top: calc(min(78vw, 380px) * -.32); padding: calc(min(78vw, 380px) * .32 + 20px) clamp(18px, 4vw, 30px) 28px; }
}
.gallery { margin-top: 28px; }
.gallery img { border-radius: 22px; border: 6px solid #fffdf9; box-shadow: var(--plate-shadow); }
.rbody { margin-top: clamp(36px, 5vw, 60px); }
.ings { border-radius: var(--radius); top: 90px; box-shadow: var(--shadow-lg); }
.ings h2, .steps-head h2 { font-size: 1.9rem; line-height: 1.1; text-align: center; }
.ings li.h { color: var(--bronze); font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; }
.ings li:not(.h) { border-bottom: 1px solid var(--line); }
.ings__tools { justify-content: center; }
.ing { align-items: center; border-radius: 14px; padding-inline: 6px; transition: background .2s; }
.ing:hover { background: rgba(255, 251, 245, .6); }
.ing input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ing__ic { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fffdf9; box-shadow: inset 0 0 0 1px var(--gold-line), 0 8px 16px -10px rgba(50, 32, 16, .5);
  display: grid; place-items: center; font-style: normal; font-size: 1.35rem; transition: transform .45s var(--spring), background .25s; }
.ing:hover .ing__ic { transform: scale(1.12) rotate(-10deg); }
.ing input:checked ~ .ing__ic { background: var(--ink); font-size: 0; }
.ing input:checked ~ .ing__ic::after { content: "✓"; font-size: 1.2rem; color: var(--gold-light); font-weight: 700; }
.ing input:checked ~ span { text-decoration: line-through; opacity: .45; }
.ing input:focus-visible ~ .ing__ic { outline: 3px solid var(--ink); outline-offset: 3px; }
.steps-head { flex-direction: column; align-items: center; }
.steps-head .progress { flex: none; width: min(100%, 320px); text-align: center; }
.steps-head .progress small { color: var(--muted); }
.progress .bar { background: rgba(29, 26, 23, .1); }
.progress .bar i { background: var(--gold); transition: width .6s var(--ease); }
/* כל שלב הוא אריח זכוכית */
.steps { gap: 12px; }
.step { grid-template-columns: 50px minmax(0, 1fr); gap: 0 16px; padding: 16px 18px; border: 1px solid var(--glass-line); border-radius: 22px;
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--shadow); transition: background .3s, transform .5s var(--ease), box-shadow .5s var(--ease); }
.step:hover { background: var(--glass-hi); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.step__n { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--gold); background: rgba(255, 251, 245, .7); color: var(--bronze);
  font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; line-height: 1; transition: transform .4s var(--spring), background .25s, color .25s; }
.step__n:hover { transform: scale(1.08) rotate(-4deg); background: #fffdf9; }
.step.done { background: rgba(255, 251, 245, .3); }
.step.done .step__n { background: var(--ink); border-color: var(--ink); color: var(--gold-light); animation: pop .45s; }
.step.done .step__txt { opacity: .45; }
.step__txt { color: var(--ink); padding-top: 8px; }
.outro { font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; text-align: center; }
.outro a { color: var(--bronze); }
.related { background: transparent; }
@media (max-width: 820px) { .ings { position: static; } }
@media (max-width: 560px) { .step { grid-template-columns: 42px minmax(0, 1fr); gap: 0 12px; padding: 14px 12px; } .step__n { width: 42px; height: 42px; font-size: 1.1rem; } }

/* ---------- עמודים כלליים ---------- */
.prose { margin-inline: auto; }
.prose h1, .prose h2 { text-align: center; }
.prose h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); line-height: 1.1; }
.prose p, .contact-card small { color: var(--muted); }
.prose .lead { color: var(--ink); }
.contact-card a.big { color: var(--ink); font-family: var(--font-display); }
.field input, .field textarea { background: rgba(255, 251, 245, .7); border: 1px solid var(--gold-line); color: var(--ink); }
.field input:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(168, 131, 79, .16); }

/* ---------- סרגל ניווט צף בתחתית: זכוכית כהה ---------- */
.dock { position: fixed; z-index: 130; bottom: max(14px, env(safe-area-inset-bottom, 0px)); inset-inline: 0; margin-inline: auto; width: max-content;
  display: flex; gap: 4px; border-radius: 999px; padding: 6px; background: var(--glass-dark); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: inset 0 0 0 1px rgba(210, 178, 124, .32), inset 0 1px 0 rgba(255, 255, 255, .12), 0 24px 46px -18px rgba(29, 26, 23, .8); }
.dock a { position: relative; display: flex; align-items: center; gap: 8px; color: rgba(246, 242, 234, .8); text-decoration: none; padding: 11px 16px; border-radius: 999px; font-weight: 500; font-size: .95rem;
  transition: background .35s var(--ease), color .35s var(--ease), padding .35s var(--ease); }
.dock svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dock a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dock a:hover { color: #fff; background: rgba(246, 242, 234, .1); }
.dock a[aria-current="page"] { background: var(--ivory); color: var(--ink); padding-inline: 18px; }
.dock a[aria-current="page"] span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
.cook-open .dock { display: none; }

/* ---------- פוטר ---------- */
.foot { position: relative; background: var(--ink); color: #f1ece3; border-top: 0; padding-bottom: 100px; }
.foot::before { content: ""; display: block; width: 140px; height: 14px; margin: 0 auto 6px; background: var(--orn) center / contain no-repeat; }
.foot__grid { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 22px; }
.foot__brand p, .foot__legal { color: #cfc7bb; }
.foot__brand p { font-family: var(--font-display); font-weight: 300; font-size: 1.08rem; }
.foot__col { justify-items: center; }
.foot__col b { color: var(--gold-light); font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; }
.foot__col a[dir="ltr"] { text-align: center; }
.foot__legal { justify-content: center; border-color: rgba(210, 178, 124, .22); }
.foot__legal span { margin-inline-end: 0; width: 100%; text-align: center; }

/* ---------- טיימרים, הודעות, מצב בישול, הפתעה ---------- */
.toast { background: var(--glass-dark); color: var(--on-dark); border-color: rgba(210, 178, 124, .3); bottom: 96px; }
.timers { bottom: 92px; }
.tm { background: var(--glass-dark); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); color: #fff; border: 1px solid rgba(210, 178, 124, .3); }
.tm.ring { background: var(--bronze); }
.cook { background: var(--ivory); color: var(--ink); }
.cook .btn { border-color: var(--gold-line); background: #fffdf9; color: var(--ink); }
.cook .btn:hover { background: #fff; }
.cook .btn--cream { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.cook .btn--cream:hover { background: #000; }
.cook__bar { background: rgba(29, 26, 23, .1); }
.cook__bar i { background: var(--gold); }
.cook__n { color: var(--bronze); font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; }
.cook__ings { background: #fffdf9; box-shadow: var(--shadow-lg); }
.cook__ings h2 { color: var(--ink); }
.cook__ings li { border-color: var(--line); }
.cook__ings li.h { color: var(--bronze); font-family: var(--font-display); font-weight: 500; }
.dice { background: rgba(29, 26, 23, .4); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.dice__card { background: var(--glass-hi); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-line); box-shadow: var(--shadow-lg); }
.dice__card img { border-radius: 50%; border: 10px solid #fffdf9; outline: 1px solid var(--gold-line); outline-offset: -5px; box-shadow: var(--plate-shadow); }
.dice__card b { color: var(--ink); font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; }
.dice__card p { color: var(--muted); font-family: var(--font); }

/* ---------- תפריט נגישות ---------- */
.a11y-root { bottom: 92px; }
.a11y-toggle { background: var(--ink); color: #fff; border-color: var(--gold-light); }
.a11y-toggle:hover { background: #000; }
.a11y-panel { color: var(--ink); background: var(--glass-hi); box-shadow: var(--shadow-lg); }
.a11y-close { background: #fffdf9; border-color: var(--line); color: var(--ink); }
.a11y-opt { background: rgba(255, 251, 245, .8); border: 1px solid var(--gold-line); color: var(--ink); }
.a11y-opt:hover:not(:disabled) { background: #fffdf9; }
.a11y-opt[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.a11y-status { color: var(--muted); }
html.a11y-contrast .ambient, html.a11y-contrast .hero__panel::before, html.a11y-contrast .hero__panel::after, html.a11y-contrast .rhead__info::before, html.a11y-contrast .rhead__info::after,
html.a11y-contrast .mc::before, html.a11y-contrast .mc::after { display: none !important; }
html.a11y-contrast .dock a[aria-current="page"] { background: #ffea00 !important; color: #000 !important; }

/* ---------- הופעה בגלילה ומעברים ---------- */
.fx .rv { opacity: 0; transform: translateY(34px) scale(.98);
  transition: opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms); }
.fx .rv.in { opacity: 1; transform: none; }
.card.rv.in { transition: opacity .9s var(--ease) var(--d, 0ms), transform .6s var(--ease); }
main.page-in { animation: pagein .7s var(--ease); }
@keyframes pagein { from { opacity: 0; transform: translateY(14px); } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: cubic-bezier(.22, .8, .24, 1); }
::view-transition-group(rimg) { animation-duration: .65s; animation-timing-function: cubic-bezier(.22, .8, .24, 1); }
::view-transition-old(rimg), ::view-transition-new(rimg) { height: 100%; object-fit: cover; }
/* הצלחת "עוברת" מהכרטיס לראש עמוד המתכון */
.rhead__plate { view-transition-name: rimg; }

@media print {
  html, body { background: #fff !important; color: #000 !important; }
  .ambient, .dock, .foot::before { display: none !important; }
  .hero__panel::before, .hero__panel::after, .rhead__info::before, .rhead__info::after, .mc::before, .mc::after { display: none !important; }
  .rhead { grid-template-columns: 1fr 50mm; margin: 0; }
  .rhead__info { padding: 0; margin: 0; box-shadow: none; background: none; border: 0; text-align: start; align-items: start; }
  .rhead__plate { width: 50mm; margin: 0; border-width: 0; outline: 0; box-shadow: none; animation: none; }
  .rhead .pills { justify-content: start; }
  .ings, .outro, .step { box-shadow: none; background: none; border: 0; }
  .step { padding-inline: 0; }
  h1, h2, .step__txt, .ing span { color: #000 !important; }
}
@media (prefers-reduced-motion: reduce) {
  .plate, .plate--0 img, .rhead__plate, main.page-in { animation: none !important; }
  .ambient img { transition: none; }
  .fx .rv { opacity: 1; transform: none; }
  .card.tilting, .plate:hover, .card:hover .card__media, .step:hover { transform: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
html.a11y-nomotion .rv { opacity: 1 !important; transform: none !important; filter: none !important; }
