/* גלריה לבית — עיצוב האתר */

:root {
  --wall: #f6f5f2;
  --paper: #ffffff;
  --ink: #1d1d1b;
  --muted: #6b6a64;
  --line: #e2e0da;
  --brass: #8a6a37;
  --brass-soft: #b9975f;
  --serif: 'Frank Ruhl Libre', serif;
  --sans: 'Heebo', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  background: var(--wall);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 16px; }
@media (min-width: 700px) { .wrap { padding-inline: 32px; } }

.skip {
  position: absolute; top: -60px; right: 16px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 18px;
}
.skip:focus { top: 12px; }

/* ── סרגל עליון וכותרת */
.topbar {
  background: var(--ink); color: #f1efe9;
  text-align: center; font-size: 13px; letter-spacing: .04em; padding: 7px 16px;
}

header.site {
  position: sticky; top: 0; z-index: 30;
  background: rgba(246, 245, 242, .86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s;
}
header.site.scrolled { border-bottom-color: var(--line); }
header.site .bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 72px;
}
.brand {
  display: inline-grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  font-family: var(--serif); font-weight: 300; font-size: 30px; line-height: 1; color: var(--ink);
}
/* הלוגו: מסגרת שחורה עם יצירה בפליז, "גלריה" ומתחתיו "לבית" מרווח בין שני קווים */
.brand::before {
  content: ""; grid-row: 1 / 3; width: 22px; height: 32px; box-sizing: border-box;
  border: 2px solid currentColor; padding: 4px; background: var(--brass); background-clip: content-box;
}
.brand .w1 { letter-spacing: .01em; }
.brand .w2 {
  display: flex; align-items: center; gap: 6px; margin-top: 3px;
  font-family: var(--sans); font-weight: 400; font-size: 10px; letter-spacing: .5em; color: var(--brass);
}
.brand .w2::before, .brand .w2::after { content: ""; flex: 1; height: 1px; background: var(--brass-soft); }
.brand .w2::after { margin-inline-start: .5em; } /* balances the letter-spacing after the last letter */
nav.main { display: flex; gap: 26px; font-size: 15px; }
nav.main a { position: relative; padding: 6px 0; }
nav.main a::after {
  content: ""; position: absolute; right: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
nav.main a:hover::after, nav.main a[aria-current="page"]::after { transform: scaleX(1); }
/* כלים בכותרת: חיפוש, מועדפים, עגלה */
.tools { display: flex; gap: 4px; margin-inline-start: auto; }
nav.main + .tools { margin-inline-start: 0; }
.ico { position: relative; display: grid; place-items: center; width: 44px; height: 44px; }
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.ico:hover { color: var(--brass); }
.ico[aria-current="page"] { color: var(--brass); }
.badge {
  position: absolute; top: 4px; left: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--ink); color: #fff; font-size: 11px; line-height: 18px; text-align: center;
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* בנייד: הלוגו והכלים בשורה אחת, התפריט בשורה שנייה שנגללת הצידה */
@media (max-width: 760px) {
  header.site .bar { flex-wrap: wrap; height: auto; padding-block: 8px 0; row-gap: 0; }
  nav.main { order: 3; width: 100%; gap: 22px; font-size: 15px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; white-space: nowrap; }
  nav.main::-webkit-scrollbar { display: none; }
  nav.main a { padding: 8px 0; }
  .brand { font-size: 25px; }
}

/* ── כפתורים */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 30px;
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  font-size: 15px; font-weight: 400; letter-spacing: .02em;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--paper); transform: scaleY(0); transform-origin: bottom;
  transition: transform .45s var(--ease);
}
.btn:hover { color: var(--ink); }
.btn:hover::before { transform: scaleY(1); }
/* display של .btn דורס את התכונה hidden: כפתור מוסתר חייב להיעלם (למשל "הצגת עוד" בסוף הרשימה) */
.btn[hidden] { display: none; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost::before { background: var(--ink); }
.btn.ghost:hover { color: #fff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 15px;
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.link-arrow span { transition: transform .5s var(--ease); }
.link-arrow:hover span { transform: translateX(-6px); }

/* ── טיפוגרפיה */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 14px; letter-spacing: .04em; color: var(--brass); font-weight: 500;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.display {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(40px, 6.2vw, 78px); line-height: 1.06; letter-spacing: -.01em;
}
.display .line { display: block; overflow: hidden; padding-bottom: .06em; }
.display .line > span {
  display: block; transform: translateY(105%);
  animation: rise 1.1s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * .14s + .25s);
}

.h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(30px, 4vw, 46px); line-height: 1.15;
}
.lead { color: var(--muted); font-size: 17px; max-width: 46ch; }

section { padding-block: 88px; }
@media (max-width: 700px) { section { padding-block: 64px; } }
.sec-head {
  display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-bottom: 44px;
}
.sec-head .h2 { margin-top: 10px; }

/* ── גלוי (אנימציות כניסה בגלילה). בלי JS הכל גלוי */
.js [data-reveal] {
  opacity: 0; transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js .unveil {
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms + 120ms);
}
/* נחשף יחד עם האב שלו: IntersectionObserver לא רואה אלמנט שגזור לגמרי */
.js .is-in .unveil, .js .unveil.is-in { clip-path: inset(0 0 0 0); }

/* ── זכוכית: היצירה עצמה */
.glass {
  position: relative; aspect-ratio: 2 / 3; overflow: hidden;
  background: #e9e7e2;
  box-shadow: 0 34px 50px -26px rgba(29, 29, 27, .38), 0 8px 18px rgba(29, 29, 27, .07);
}
.glass .art {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transition: transform 1.6s var(--ease);
}
/* ארבעה ברגי תלייה בפינות */
.glass::before {
  --s: radial-gradient(circle, #fff 0 2.4px, rgba(0, 0, 0, .3) 2.9px 3.8px, transparent 4.3px);
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    var(--s) top 7px right 7px / 12px 12px no-repeat,
    var(--s) top 7px left 7px / 12px 12px no-repeat,
    var(--s) bottom 7px right 7px / 12px 12px no-repeat,
    var(--s) bottom 7px left 7px / 12px 12px no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45);
}
/* ברק שעובר על הזכוכית במעבר עכבר */
.glass::after {
  content: ""; position: absolute; inset: -20%; z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .42) 49%, transparent 60%);
  transform: translateX(-75%);
  transition: transform 1.3s var(--ease);
}
.card:hover .glass::after, .glass.shine:hover::after { transform: translateX(75%); }

/* קנבס: מרקם בד וצל בצד, בלי ברגי זכוכית ובלי ברק */
.glass.is-canvas::before {
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .04) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .04) 0 1px, transparent 1px 3px);
  box-shadow: inset -9px 0 12px -9px rgba(0, 0, 0, .3), inset 0 -9px 12px -9px rgba(0, 0, 0, .18);
}
.glass.is-canvas::after { display: none; }
.card:hover .glass .art { transform: scale(1.04); }

/* ── שלט מוזיאון מתחת ליצירה */
.placard {
  position: relative;
  display: grid; grid-template-columns: auto 1fr auto; column-gap: 14px;
  margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line);
}
.placard::before {
  content: ""; position: absolute; top: -1px; right: 0; height: 1px; width: 0;
  background: var(--ink); transition: width .7s var(--ease);
}
.card:hover .placard::before { width: 100%; }
.placard .no { grid-row: 1 / 3; font-family: var(--serif); font-size: 14px; color: var(--brass); padding-top: 3px; }
.placard strong { font-family: var(--serif); font-weight: 400; font-size: 18px; line-height: 1.4; }
.placard small { grid-column: 2; color: var(--muted); font-size: 14px; }
.placard .price { grid-column: 3; grid-row: 1 / 3; align-self: center; font-family: var(--serif); font-size: 16px; white-space: nowrap; }

.card { display: block; }
/* מסגרת קבועה לכל יצירה, כדי ששורה של יצירות אופקיות ואנכיות תיראה מסודרת */
.mat { aspect-ratio: 4 / 5; display: grid; place-items: center; }
.mat .glass { width: 100%; }

/* ── גיבור (דף הבית) */
.hero {
  --mx: 70%; --my: 30%;
  position: relative; overflow: hidden;
  background:
    radial-gradient(760px circle at var(--mx) var(--my), #fff 0, rgba(255, 255, 255, 0) 62%),
    var(--wall);
}
.hero .wrap {
  display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center;
  padding-block: 64px 96px;
}
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.1fr .9fr; min-height: calc(100vh - 110px); padding-block: 40px; }
}
.hero .text > * + * { margin-top: 26px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .fade { opacity: 0; animation: fade-up 1s var(--ease) forwards; animation-delay: var(--t, .9s); }

/* היצירה התלויה: מתנדנדת ונרגעת בכניסה */
.hang {
  display: block; position: relative; width: min(66vw, 340px); margin: 90px auto 0;
  transform-origin: 50% -78px;
  animation: sway 3.4s var(--ease) .35s both;
}
.hang .wire {
  position: absolute; top: -78px; left: 8%; width: 84%; height: 78px; overflow: visible;
  fill: none; stroke: #8f8d85; stroke-width: 1;
}
.hang .hook {
  position: absolute; top: -84px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px;
  border-radius: 50%; background: #8f8d85;
}
.tilt {
  transform: perspective(1200px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
  transition: transform .6s var(--ease);
}
.hang .placard { border-top-color: rgba(29, 29, 27, .12); }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 1px; height: 46px; background: var(--line); overflow: hidden;
}
.scroll-hint::after {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  animation: drip 2.4s var(--ease) infinite;
}
@media (max-width: 899px) { .scroll-hint { display: none; } }

/* ── פס עובדות */
.facts {
  display: grid; grid-template-columns: 1fr; border-block: 1px solid var(--line);
}
@media (min-width: 800px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts > div { padding: 26px 8px; display: flex; gap: 16px; align-items: baseline; }
@media (min-width: 800px) { .facts > div + div { border-right: 1px solid var(--line); padding-right: 28px; } }
.facts b { font-family: var(--serif); font-weight: 400; font-size: 19px; }
.facts span { color: var(--muted); font-size: 14px; }

/* ── התערוכה: מסילה אופקית */
.rail {
  display: flex; gap: clamp(28px, 4vw, 52px);
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  padding: 10px max(16px, calc((100vw - var(--max)) / 2 + 32px)) 36px;
  cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.rail .card { flex: 0 0 clamp(230px, 25vw, 300px); scroll-snap-align: start; }
.rail-ui { display: flex; align-items: center; gap: 22px; }
.rail-bar { flex: 1; height: 1px; background: var(--line); position: relative; }
.rail-bar i {
  position: absolute; top: -1px; height: 3px; background: var(--ink);
  width: var(--w, 30%); inset-inline-start: calc((100% - var(--w, 30%)) * var(--p, 0));
  transition: inset-inline-start .2s linear;
}
.rail-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--ink);
  display: grid; place-items: center; font-size: 18px;
  transition: background .35s, color .35s;
}
.rail-btn:hover { background: var(--ink); color: #fff; }

/* ── איך זה עובד */
.steps { display: grid; gap: 40px; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.step { border-top: 1px solid var(--ink); padding-top: 22px; }
.step .n { font-family: var(--serif); font-size: 15px; color: var(--brass); }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 8px 0 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ── לפי חדר: רשימה בסגנון אינדקס של גלריה */
.rooms { border-bottom: 1px solid var(--line); }
.rooms a {
  display: flex; align-items: center; gap: 24px;
  padding: 22px 0; border-top: 1px solid var(--line);
  transition: padding .6s var(--ease);
}
.rooms .no { font-family: var(--serif); color: var(--brass); font-size: 14px; width: 28px; }
.rooms .nm { flex: 1; font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 4vw, 44px); line-height: 1.2; }
.rooms .ct { color: var(--muted); font-size: 14px; }
.rooms .arr { font-size: 22px; transition: transform .6s var(--ease); }
.rooms a:hover { padding-inline-start: 22px; }
.rooms a:hover .arr { transform: translateX(-10px); }

/* ── שאלות נפוצות */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-family: var(--serif); font-size: 20px; font-weight: 400;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 200; font-size: 28px; transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 24px; max-width: 64ch; }
.faq details[open] p { animation: fade-up .6s var(--ease); }

/* ── פס קריאה לפעולה */
.band { background: var(--paper); text-align: center; padding: clamp(56px, 8vw, 96px) 20px; }
.band .h2 { max-width: 20ch; margin: 0 auto 14px; }
.band p { color: var(--muted); margin-bottom: 28px; }

/* ── רשת מוצרים */
.grid { display: grid; gap: 56px 24px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 72px 44px; } }
@media (max-width: 520px) {
  .grid { gap: 40px 14px; }
  .grid .placard { grid-template-columns: 1fr; }
  .grid .placard .no, .grid .placard .price { grid-row: auto; grid-column: auto; }
  .grid .placard small { grid-column: auto; }
  .grid .placard .no { display: none; }
  .grid .placard strong { font-size: 16px; }
}

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
/* בנייד שורת סינון אחת שנגללת הצידה, כדי שהיצירות לא יידחפו למטה */
@media (max-width: 700px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}
.chip {
  min-height: 40px; padding: 0 18px; border: 1px solid var(--line); background: var(--paper);
  font-size: 14px; transition: background .3s, color .3s, border-color .3s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.count { color: var(--muted); font-size: 14px; margin-bottom: 40px; }

.page-head { padding-block: 64px 36px; }
.page-head .display { font-size: clamp(38px, 5.4vw, 64px); }
.page-head .lead { margin-top: 14px; }

/* ── עמוד מוצר */
.pdp { display: grid; gap: 44px; grid-template-columns: 1fr; padding-block: 40px 88px; }
@media (min-width: 900px) { .pdp { grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: start; } }

.stage { position: relative; aspect-ratio: 4 / 5; background: #ecebe6; overflow: hidden; }
.stage .view { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .7s var(--ease); }
.stage .view[hidden] { display: grid; opacity: 0; pointer-events: none; visibility: hidden; }
.stage .solo .glass { width: 72%; }

/* תצוגה בחדר אמיתי: צילום החדר, והיצירה ממוקמת עליו לפי גודלה בס"מ (ראו ROOMS ב-products.js) */
.stage { transition: aspect-ratio .5s var(--ease); }
.stage .solo .set-art { width: 88%; }
.room-view { display: block !important; }
.room-view[hidden] { display: block !important; }
#scene-wrap { position: absolute; inset: 0; }

/* הדמיה בחדר (roomScene ב-products.js). כדי שתיראה אמיתית:
   צל רך וקרוב לקיר, צבעים שמתאימים לאור של החדר, ושכבת "אור" שמעבירה את התאורה של הקיר אל היצירה */
.scene { position: relative; width: 100%; overflow: hidden; background: #e6e4df; container-type: inline-size; }
.scene .room-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene .glass.print {
  position: absolute; aspect-ratio: auto !important; overflow: hidden;
  box-shadow: 0 .9cqw 1.6cqw -.4cqw rgba(20, 18, 15, .42), 0 .15cqw .3cqw rgba(20, 18, 15, .22);
  transition: left .8s var(--ease), top .8s var(--ease), width .8s var(--ease), height .8s var(--ease);
}
.scene .glass.print .art { object-fit: cover; filter: saturate(.88) contrast(.92) brightness(.97); }
.scene .glass.print::before { background: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
/* השתקפות עדינה וקבועה בזכוכית */
.scene .glass.print::after { transform: translateX(-30%); opacity: .45; transition: none; }
.scene .glass.print.is-canvas::after { display: none; }
.scene .light { position: absolute; inset: 0; overflow: hidden; mix-blend-mode: multiply; opacity: .55; pointer-events: none; z-index: 1; }
.scene .light img { position: absolute; max-width: none; height: auto; }
.card .scene { margin-bottom: 0; }
.room-next {
  position: absolute; bottom: 14px; left: 14px;
  background: rgba(255, 255, 255, .92); font-size: 13px; padding: 6px 14px;
  transition: background .3s;
}
.room-next:hover { background: #fff; }

/* סט: החלקים זה לצד זה */
.set-art { display: flex; gap: 5%; width: 100%; align-items: center; direction: ltr; }
.set-art .glass .art { max-width: none; }
.set-art .glass { flex: 1; }
/* בחלקים קטנים הברגים בפינות מעמיסים, משאירים רק מסגרת דקה */
.set-art .glass::before { background: none; }
.size-tag {
  position: absolute; top: 16px; right: 16px;
  background: var(--paper); font-size: 13px; padding: 4px 12px;
}

.tabs { display: flex; gap: 22px; margin-top: 16px; font-size: 14px; }
.tabs button { padding: 4px 0; color: var(--muted); border-bottom: 1px solid transparent; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }

.pdp .info { position: sticky; top: 104px; }
.pdp h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 4vw, 48px); line-height: 1.15; margin: 12px 0 6px; }
.pdp .price { font-family: var(--serif); font-size: 26px; margin: 18px 0 26px; }
.pdp .desc { color: var(--muted); margin-bottom: 30px; }
.pdp .ship { color: var(--muted); font-size: 14px; margin: -14px 0 26px; }
.label { font-size: 14px; letter-spacing: .02em; color: var(--muted); margin-bottom: 10px; }
.sizes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.sizes button {
  min-height: 44px; padding: 0 18px; border: 1px solid var(--line); background: var(--paper); font-size: 14px;
  transition: border-color .3s, background .3s, color .3s;
}
.sizes button:hover { border-color: var(--ink); }
.sizes button[aria-checked="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pdp .order { display: grid; gap: 12px; }
.pdp .order .btn { width: 100%; }
.specs { margin-top: 36px; border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.specs dt { color: var(--muted); }

/* ── עמודי טקסט */
.prose { max-width: 760px; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 36px 0 10px; }
.prose p, .prose li { color: #44433f; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-right: 22px; margin: 10px 0; }
.prose li + li { margin-top: 6px; }
.prose a { border-bottom: 1px solid currentColor; }
.prose .updated { color: var(--muted); font-size: 14px; }

.split { display: grid; gap: 56px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 88px; } }

/* ── טופס */
form.contact { display: grid; gap: 18px; }
form.contact label { display: grid; gap: 6px; font-size: 14px; }
form.contact input, form.contact textarea, form.contact select {
  font: inherit; font-size: 16px; padding: 12px 14px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  transition: border-color .3s;
}
form.contact input:focus-visible, form.contact textarea:focus-visible, form.contact select:focus-visible { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 1px; }
form.contact textarea { min-height: 130px; resize: vertical; }
.contact-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-list a, .contact-list div {
  display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line);
}
.contact-list span { color: var(--muted); }

/* ── כותרת תחתונה */
footer.site { background: var(--paper); border-top: 1px solid var(--line); padding: 64px 0 28px; font-size: 14px; }
footer.site .cols { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 800px) { footer.site .cols { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
footer.site .biz { color: var(--muted); font-size: 13px; margin-top: 14px; }
footer.site .fh { font-size: 14px; letter-spacing: .02em; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
footer.site ul { list-style: none; display: grid; gap: 8px; }
footer.site a:hover { color: var(--brass); }
footer.site .about { color: var(--muted); max-width: 34ch; margin-top: 12px; }
footer.site .legal {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px;
}

/* ── וואטסאפ צף (מוסתר בנייד) */
.wa {
  position: fixed; bottom: 24px; left: 20px; z-index: 20;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line);
  padding: 10px 18px; font-size: 14px;
  box-shadow: 0 10px 30px rgba(29, 29, 27, .1);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.wa:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(29, 29, 27, .16); }
.wa::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3a9b5c; }
@media (max-width: 600px) { .wa { display: none; } }

/* ── סמן "לצפייה" (מחשב בלבד) */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 50; pointer-events: none;
  margin: -42px 0 0 -42px; width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(29, 29, 27, .88); color: #fff; font-size: 13px; letter-spacing: .04em;
  opacity: 0; scale: .4;
  transition: transform .2s ease-out, opacity .35s var(--ease), scale .45s var(--ease);
}
.cursor.on { opacity: 1; scale: 1; }

/* ── 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }

/* ── אנימציות */
@keyframes rise { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sway {
  0% { opacity: 0; transform: translateY(-36px) rotate(-3.2deg); }
  14% { opacity: 1; }
  34% { transform: rotate(2deg); }
  56% { transform: rotate(-1deg); }
  78% { transform: rotate(.4deg); }
  100% { transform: none; }
}
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-delay: 0s !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}


/* ── נושאים בדף הבית: אריח עם יצירה מייצגת */
.cat-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1000px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.cat-tile { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #e9e7e2; color: #fff; }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 18, 15, .72), rgba(20, 18, 15, 0) 62%); }
.cat-tile .nm, .cat-tile .ct { position: absolute; right: 16px; z-index: 1; }
.cat-tile .nm { bottom: 32px; font-family: var(--serif); font-size: clamp(19px, 2.2vw, 24px); line-height: 1.2; }
.cat-tile .ct { bottom: 10px; font-size: 13px; opacity: .92; }
.cat-tile:hover img { transform: scale(1.05); }

/* ── קטלוג: חיפוש ומיון */
.search { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; margin-bottom: 18px; }
.search input, .search select, .checkout input, .checkout textarea, .checkout select, #inst select {
  font: inherit; font-size: 16px; padding: 11px 14px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); min-height: 48px;
}
.search input { flex: 1 1 280px; }
.sort-label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.refine { display: flex; gap: 0 22px; flex-wrap: wrap; }
.refine .chip { min-height: 36px; font-size: 14px; padding: 0 14px; }
.more-wrap { text-align: center; margin-top: 56px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 40px 0; color: var(--muted); }
.empty .btn { margin-top: 16px; }

/* ── עמוד מוצר: גלריה */
.stage .solo > .glass { width: 84%; max-height: 88%; }
.zoom {
  position: absolute; bottom: 12px; left: 12px; z-index: 4;
  background: rgba(255, 255, 255, .94); font-size: 14px; padding: 8px 14px; min-height: 40px;
}
.zoom[hidden] { display: none; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; align-items: stretch; }
.thumbs button {
  display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; min-height: 56px;
  border: 1px solid var(--line); background: var(--paper); font-size: 14px;
}
.thumbs button img { width: 44px; height: 44px; object-fit: cover; }
.thumbs button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.thumbs .room-next { padding: 0 14px; }
.thumbs .room-next[hidden] { display: none; }
.gallery .note { color: var(--muted); font-size: 13px; margin-top: 10px; }
.scene .scaled { position: absolute; bottom: 8px; right: 8px; background: rgba(255, 255, 255, .92); font-size: 12px; padding: 2px 8px; z-index: 4; }
.card .scene .scaled { display: none; }
.lightbox { border: 0; padding: 0; margin: auto; max-width: 96vw; max-height: 94vh; background: #111; }
.lightbox::backdrop { background: rgba(10, 10, 10, .86); }
.lightbox .lb-imgs { display: flex; gap: 8px; direction: ltr; }
.lightbox img { max-width: 94vw; max-height: 92vh; width: auto; height: auto; object-fit: contain; }
.lightbox .lb-imgs:has(img + img) img { max-width: 30vw; }
.lightbox .close { position: absolute; top: 8px; left: 8px; width: 44px; height: 44px; background: rgba(255, 255, 255, .92); font-size: 18px; z-index: 1; }

/* ── עמוד מוצר: מידע ורכישה */
.title-row { display: flex; gap: 12px; align-items: start; justify-content: space-between; }
.fav {
  flex: none; width: 46px; height: 46px; margin-top: 14px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; font-size: 20px; color: #8f8c84; background: var(--paper); transition: color .3s, border-color .3s;
}
.fav:hover { border-color: var(--ink); }
.fav[aria-pressed="true"] { color: #b3412e; border-color: #b3412e; }
.pdp .from { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.pdp .hint { color: var(--muted); font-size: 14px; margin: -18px 0 22px; }
.sizes button small { display: block; font-size: 12.5px; line-height: 1.2; opacity: .8; }
.sizes button { padding: 6px 16px; line-height: 1.35; }
.buy { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 4px 0 18px; }
.pdp .price { margin: 0; }
.pdp .price small { font-size: 15px; color: var(--muted); font-family: var(--sans); }
.pdp .ship { margin: 2px 0 0; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--paper); }
.qty button { width: 44px; height: 44px; font-size: 18px; }
.qty button:hover { background: var(--wall); }
.qty output { min-width: 32px; text-align: center; }
.trust { list-style: none; margin-top: 20px; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.trust li::before { content: "·"; margin-inline-end: 8px; color: var(--brass); }
.trust a { color: var(--ink); border-bottom: 1px solid currentColor; }
.specs a { border-bottom: 1px solid currentColor; }
.sticky-buy { display: none; }
@media (max-width: 899px) {
  .sticky-buy {
    position: fixed; bottom: 0; inset-inline: 0; z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--paper); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .35s var(--ease);
  }
  .sticky-buy.on { transform: none; }
  .sticky-buy span { font-family: var(--serif); font-size: 22px; }
  .sticky-buy .btn { min-height: 44px; padding: 0 22px; }
  body:has(.sticky-buy.on) #a11y-btn { bottom: 84px; }
  .pdp .info { position: static; }
}

/* ── הודעה קופצת */
.toast {
  position: fixed; bottom: 24px; left: 50%; z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 10px 20px; font-size: 15px; transition: opacity .3s, transform .3s var(--ease);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ── עגלה ותשלום */
.sandbox { background: #fff6d6; border: 1px solid #d8b84a; padding: 10px 14px; font-size: 14px; margin-bottom: 24px; }
.lines { list-style: none; border-top: 1px solid var(--line); margin-bottom: 40px; }
.lines li {
  display: grid; grid-template-columns: 76px 1fr auto auto; gap: 8px 18px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.ln-img img { width: 76px; height: 76px; object-fit: cover; }
.ln-text { display: grid; }
.ln-text strong { font-family: var(--serif); font-weight: 400; font-size: 18px; }
.ln-text small { color: var(--muted); font-size: 14px; }
.ln-total { font-family: var(--serif); font-size: 18px; min-width: 70px; text-align: left; }
.remove { grid-column: 2; justify-self: start; font-size: 14px; color: var(--muted); text-decoration: underline; padding: 4px 0; }
@media (max-width: 600px) {
  .lines li { grid-template-columns: 64px 1fr auto; }
  .ln-img img { width: 64px; height: 64px; }
  .lines .qty { grid-column: 2; justify-self: start; }
  .ln-total { grid-column: 3; grid-row: 1; }
}
.lines.plain li { display: flex; justify-content: space-between; gap: 16px; }
.lines .total, .summary .total { font-weight: 500; font-size: 17px; }
.checkout { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .checkout { grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; } }
.checkout[hidden] { display: none; }
.h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin-bottom: 12px; }
.co-fields { display: grid; gap: 16px; align-content: start; }
.co-fields .hint { color: var(--muted); font-size: 14px; margin: -6px 0 6px; }
.co-fields .hint a { border-bottom: 1px solid currentColor; }
.co-fields label { display: grid; gap: 6px; font-size: 15px; }
.co-fields .two { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .co-fields .two { grid-template-columns: 1fr 1fr; } }
.checkout textarea { min-height: 90px; resize: vertical; }
.checkout input:focus-visible, .checkout textarea:focus-visible, .search input:focus-visible, .search select:focus-visible, #inst select:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.checkout [aria-invalid="true"] { border-color: #b3261e; }
.err { color: #b3261e; font-size: 14px; }
.err:empty { display: none; }
.co-summary { background: var(--paper); border: 1px solid var(--line); padding: 24px; position: sticky; top: 100px; }
@media (max-width: 899px) { .co-summary { position: static; } }
.summary > div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.summary .total { border-bottom: 0; padding-top: 12px; }
#inst label { display: grid; gap: 6px; margin-top: 12px; font-size: 15px; }
.plan { background: var(--wall); padding: 12px 14px; margin: 14px 0; font-size: 15px; }
.disclosure { margin: 10px 0 16px; font-size: 14px; }
.disclosure summary { cursor: pointer; padding: 8px 0; font-weight: 500; }
.disclosure ul { padding-right: 18px; color: #44433f; display: grid; gap: 6px; }
.disclosure a, .check a, .privacy-note a { border-bottom: 1px solid currentColor; }
.check { display: flex; gap: 10px; align-items: start; margin-top: 12px; font-size: 14px; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--ink); }
.form-msg { color: #b3261e; font-size: 14px; margin: 12px 0; }
.form-msg:empty { display: none; }
.co-summary .btn { width: 100%; margin-top: 10px; }
.btn:disabled { opacity: .55; cursor: progress; }
.order-box { max-width: 720px; }
.order-box .lead { margin: 12px 0 28px; max-width: none; }

/* ── טופס יצירת קשר ופרטי עסק */
form.contact small { color: var(--muted); font-size: 13px; }
.privacy-note { line-height: 1.6; }
.biz-details dd { text-align: left; }

/* ── עמודים משפטיים */
.review { background: #fff6d6; border-inline-start: 3px solid #d8b84a; padding: 10px 14px; font-size: 14px; margin: 14px 0 6px; }
.todo { background: #fff6d6; color: #6b4e00; padding: 0 4px; }
.table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.table th, .table td { text-align: right; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-weight: 500; }
.prose button.btn { border: 1px solid var(--ink); }

/* בנייד: כל אפשרויות הסינון הנוספות בשורה אחת נגללת, וכותרת עמוד נמוכה יותר */
@media (max-width: 700px) {
  .page-head { padding-block: 36px 22px; }
  .refine { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 0 14px; margin-inline: -16px; padding-inline: 16px; }
  .refine::-webkit-scrollbar { display: none; }
  .refine .filters { margin: 0 0 14px; padding: 0; overflow: visible; }
  .search { gap: 8px; }
  .search input { flex-basis: 100%; }
  .sort-label { flex-direction: row; display: flex; align-items: center; gap: 8px; }
  .count { margin-bottom: 24px; }
  /* קטלוג בנייד: פחות כותרת, החיפוש והמיון בשורה אחת, כדי שהיצירות יופיעו כבר במסך הראשון */
  [data-page="catalog"] .page-head { padding-block: 20px 14px; }
  [data-page="catalog"] .page-head .eyebrow, [data-page="catalog"] .page-head .lead { display: none; }
  [data-page="catalog"] .page-head .display { margin-top: 0 !important; font-size: 34px; }
  .search { flex-wrap: nowrap; }
  .search input { flex: 1 1 auto; min-width: 0; }
  .sort-label { font-size: 0; gap: 0; }
  .sort-label select { font-size: 15px; }
}
/* דף הבית בנייד: היצירה התלויה למעלה, מיד מתחת לתפריט, והטקסט אחריה */
@media (max-width: 899px) {
  .hero .wrap { gap: 26px; padding-block: 0 56px; }
  .hang { order: -1; width: min(56vw, 250px); margin-top: 92px; }
  .hero .display { font-size: 38px; }
}

/* עגלה: איסוף עצמי (תשלום באתר) או משלוח (הזמנה בוואטסאפ, מחיר המשלוח בתיאום) */
.delivery { border: 1px solid var(--line); padding: 12px 16px 6px; margin: 0 0 18px; }
.delivery legend { padding: 0 6px; font-weight: 500; }
.delivery .check { margin-bottom: 10px; }
.checkout:not(.is-ship) .addr, .checkout:not(.is-ship) .ship-note, .checkout.is-ship #pay { display: none; }
.checkout.is-ship #wa-order { background: var(--ink); color: #fff; }
.ship-note { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.special-note { font-size: 14px; color: var(--muted); background: var(--paper); border: 1px solid var(--line); padding: 12px 14px; margin: 4px 0 14px; }
