/* =====================================================================
   Nadav Jewelry — שלושה עיצובים על אותו מבנה
   noir  = א · נואר זהב      (שחור, זהב, סריף קלאסי — כמו הלוגו)
   ivory = ב · שמנת ושמפניה  (בהיר, מגזיני, קווים דקים, פינות חדות)
   rose  = ג · רוז מודרני     (ורוד-זהב, עגול, רך)
   ===================================================================== */

:root {
  --radius: 4px; --radius-lg: 8px; --btn-radius: 2px;
  --shadow: 0 10px 30px rgba(0,0,0,.25);
  --wrap: 1240px;
  --ease: cubic-bezier(.22,.8,.24,1);
}

html[data-theme="noir"] {
  --bg: #0b0b0c; --bg2: #121214; --surface: #17171a; --surface2: #1f1f23;
  --text: #f4ede0; --muted: #a59d8f; --line: rgba(214,178,110,.22);
  --accent: #d8b46a; --accent-2: #f3dca4; --accent-ink: #1a1408;
  --grad: linear-gradient(135deg, #f6e3b0 0%, #d4a858 45%, #a87a32 70%, #f1d79a 100%);
  --viewer-bg: radial-gradient(ellipse at 50% 40%, #2a2620 0%, #121113 60%, #0a0a0b 100%);
  --hero-bg: radial-gradient(ellipse at 70% 20%, rgba(216,180,106,.18), transparent 55%),
             radial-gradient(ellipse at 10% 90%, rgba(216,180,106,.08), transparent 50%),
             linear-gradient(160deg, #141315, #0b0b0c 60%);
  --font-head: 'Frank Ruhl Libre', 'Bellefair', serif; --font-body: 'Assistant', 'Heebo', sans-serif;
  --head-weight: 500; --head-spacing: .01em;
  --card-bg: linear-gradient(180deg, #19181b, #121214);
  --shadow: 0 18px 40px rgba(0,0,0,.55);
  color-scheme: dark;
}

html[data-theme="ivory"] {
  --bg: #fbf8f2; --bg2: #f4eee3; --surface: #ffffff; --surface2: #f7f2e9;
  --text: #2a241c; --muted: #85796a; --line: #e3d9c8;
  --accent: #a8823f; --accent-2: #c9a866; --accent-ink: #ffffff;
  --grad: linear-gradient(135deg, #c9a866, #a8823f);
  --viewer-bg: radial-gradient(ellipse at 50% 35%, #ffffff 0%, #f3ece0 70%, #e9dfcf 100%);
  --hero-bg: linear-gradient(180deg, #f7f1e6, #fbf8f2);
  --font-head: 'Bellefair', 'Frank Ruhl Libre', serif; --font-body: 'Heebo', sans-serif;
  --head-weight: 400; --head-spacing: .02em;
  --card-bg: #fff;
  --radius: 0; --radius-lg: 0; --btn-radius: 0;
  --shadow: 0 12px 30px rgba(90,70,40,.08);
  color-scheme: light;
}

html[data-theme="rose"] {
  --bg: #fdf6f4; --bg2: #f9ebe7; --surface: #ffffff; --surface2: #fbefec;
  --text: #3a2a2b; --muted: #9b7f7c; --line: #f0d9d3;
  --accent: #c27b6a; --accent-2: #e7b3a3; --accent-ink: #ffffff;
  --grad: linear-gradient(135deg, #f2c4b4, #c27b6a 60%, #b4685a);
  --viewer-bg: radial-gradient(circle at 50% 35%, #fff 0%, #fbeae5 60%, #f3d6ce 100%);
  --hero-bg: radial-gradient(circle at 85% 10%, #f7d3c8 0, transparent 45%), radial-gradient(circle at 0% 100%, #fbe3da 0, transparent 40%), #fdf6f4;
  --font-head: 'Rubik', 'Heebo', sans-serif; --font-body: 'Rubik', 'Heebo', sans-serif;
  --head-weight: 500; --head-spacing: 0;
  --card-bg: #fff;
  --radius: 18px; --radius-lg: 28px; --btn-radius: 999px;
  --shadow: 0 14px 34px rgba(194,123,106,.16);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; transition: background .4s, color .4s;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-spacing); line-height: 1.2; margin: 0 0 .5em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); } .small { font-size: .875rem; }
.skip { position: absolute; inset-inline-start: -999px; } .skip:focus { inset-inline-start: 10px; top: 10px; z-index: 99; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------ סרגל עליון + כותרת */
.topbar { display: flex; justify-content: center; gap: 36px; font-size: .78rem; letter-spacing: .06em; padding: 7px 12px; background: var(--grad); color: var(--accent-ink); }
html[data-theme="noir"] .topbar { background: #000; color: var(--accent-2); border-bottom: 1px solid var(--line); }
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-badge { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 48%; box-shadow: 0 0 0 1px var(--line), 0 4px 14px rgba(0,0,0,.25); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; direction: ltr; text-align: left; }
.brand-text b { font-family: 'Frank Ruhl Libre', serif; font-weight: 500; font-size: 1.35rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-text small { font-size: .62rem; letter-spacing: .38em; color: var(--muted); }
.main-nav { display: flex; gap: 22px; margin-inline-start: 12px; flex: 1; }
.main-nav a { font-size: .95rem; padding: 6px 0; position: relative; color: var(--text); opacity: .86; }
.main-nav a:hover, .main-nav a.active { opacity: 1; }
.main-nav a::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transition: transform .3s var(--ease); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.header-tools { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.currency { background: transparent; border: 1px solid var(--line); border-radius: var(--btn-radius); padding: 6px 10px; font-size: .85rem; }
.currency option { background: var(--surface); color: var(--text); }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid transparent; background: transparent; cursor: pointer; }
.icon-btn:hover { border-color: var(--line); }
.cart-count { position: absolute; top: 2px; inset-inline-end: 0; min-width: 19px; height: 19px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: .7rem; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.cart-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-btn { display: none; }

/* ------------------------------------------------ כפתורים וטפסים */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: var(--btn-radius); border: 1px solid var(--accent); background: var(--grad); color: var(--accent-ink); font-weight: 600; letter-spacing: .03em; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, filter .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent); filter: brightness(1.05); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); }
.btn.block { width: 100%; }
.btn.lg { padding: 16px 30px; font-size: 1.05rem; }
.link-btn { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; }
label.field > span { color: var(--muted); }
.input, select.input, textarea.input { width: 100%; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.field.err .input { border-color: #d9534f; }
.field .err-msg { color: #e06a66; font-size: .8rem; min-height: 0; }
.input[dir="ltr"] { text-align: left; }

/* ------------------------------------------------ דף הבית */
.hero { background: var(--hero-bg); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; min-height: 560px; padding-block: 50px; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 4rem); margin-bottom: .3em; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 30em; }
.hero .script { font-family: 'Great Vibes', cursive; font-size: 2rem; color: var(--accent); direction: ltr; display: inline-block; margin-bottom: 8px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-visual { position: relative; aspect-ratio: 1; max-width: 520px; justify-self: center; width: 100%; }
.hero-visual img.logo-hero { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow), 0 0 0 1px var(--line); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
html[data-theme="ivory"] .hero-visual img.logo-hero { border-radius: 0; aspect-ratio: 4/5; }
html[data-theme="ivory"] .hero-grid { grid-template-columns: 1fr 1fr; }
html[data-theme="ivory"] .hero h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
html[data-theme="rose"] .hero-visual img.logo-hero { border-radius: 42% 58% 55% 45% / 50% 45% 55% 50%; }
.usp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.usp div { background: var(--bg); padding: 22px 18px; text-align: center; }
.usp b { display: block; font-family: var(--font-head); font-size: 1.08rem; color: var(--accent); font-weight: var(--head-weight); }
.usp span { font-size: .85rem; color: var(--muted); }
.section { padding-block: 70px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0; }
.eyebrow { font-size: .75rem; letter-spacing: .3em; color: var(--accent); text-transform: uppercase; display: block; margin-bottom: 8px; }
.dept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dept-card { position: relative; min-height: 260px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card-bg); display: flex; flex-direction: column; justify-content: end; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.dept-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.dept-card .dept-thumb { position: absolute; inset: 0 0 auto auto; width: 62%; aspect-ratio: 1; opacity: .95; transform: translate(-6%, -6%); }
.dept-card .dept-thumb img { width: 100%; height: 100%; object-fit: contain; }
.dept-card h3 { font-size: 1.6rem; margin-bottom: 4px; position: relative; }
.dept-card p { margin: 0; color: var(--muted); position: relative; }
.dept-card .arrow { color: var(--accent); margin-top: 12px; position: relative; font-size: .9rem; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; justify-content: center; }
.chip { padding: 9px 18px; border: 1px solid var(--line); border-radius: var(--btn-radius); font-size: .9rem; background: transparent; cursor: pointer; transition: all .2s; }
.chip:hover, .chip.on { border-color: var(--accent); color: var(--accent); }
.chip.on { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.banner-3d { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; }
.banner-3d .mini-viewer { aspect-ratio: 1; border-radius: var(--radius-lg); background: var(--viewer-bg); position: relative; overflow: hidden; }

/* ------------------------------------------------ קטלוג */
.page-title { padding: 46px 0 10px; }
.page-title h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0; }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a:hover { color: var(--accent); }
.catalog-layout { display: grid; grid-template-columns: 240px 1fr; gap: 36px; padding-bottom: 70px; }
.filters { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: 24px; }
.filters h4 { font-family: var(--font-body); font-weight: 600; font-size: .78rem; letter-spacing: .2em; color: var(--muted); margin-bottom: 10px; }
.filter-list { display: flex; flex-direction: column; gap: 4px; }
.filter-list a { text-align: start; background: none; border: 0; padding: 6px 10px; border-radius: var(--radius); cursor: pointer; display: flex; justify-content: space-between; }
.filter-list a:hover { background: var(--surface2); }
.filter-list a.on { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); font-weight: 600; }
.metal-dots { display: flex; flex-wrap: wrap; gap: 8px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; }
.toolbar select { width: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card-bg); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.card .thumb { aspect-ratio: 1; background: var(--viewer-bg); position: relative; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .4s; }
.card .thumb img.loading { opacity: 0; }
.card:hover .thumb img { transform: scale(1.05); }
.card .thumb .badge { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--grad); color: var(--accent-ink); font-size: .7rem; padding: 3px 10px; border-radius: var(--btn-radius); letter-spacing: .05em; }
.card .thumb .badge-3d { position: absolute; bottom: 10px; inset-inline-end: 10px; font-size: .7rem; padding: 2px 8px; border: 1px solid var(--line); border-radius: var(--btn-radius); background: color-mix(in srgb, var(--bg) 70%, transparent); }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 1.12rem; margin: 0; }
.card .metals { display: flex; gap: 5px; }
.card .price { margin-top: auto; font-weight: 600; color: var(--accent); }
.card .price small { color: var(--muted); font-weight: 400; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); display: inline-block; }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.skeleton { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 10%, transparent), transparent); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ------------------------------------------------ דף מוצר */
.product-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; padding-bottom: 80px; align-items: start; }
.viewer-wrap { position: sticky; top: 96px; }
.viewer { position: relative; aspect-ratio: 1; border-radius: var(--radius-lg); background: var(--viewer-bg); border: 1px solid var(--line); overflow: hidden; touch-action: none; }
.viewer-canvas { width: 100% !important; height: 100% !important; display: block; cursor: grab; }
.viewer-canvas:active { cursor: grabbing; }
.viewer .hud { position: absolute; inset-inline: 14px; bottom: 14px; display: flex; justify-content: space-between; align-items: end; gap: 10px; pointer-events: none; }
.viewer .dims { font-size: .8rem; padding: 7px 12px; border-radius: var(--btn-radius); background: color-mix(in srgb, var(--bg) 78%, transparent); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.viewer .hud button { pointer-events: auto; }
.viewer .hint { position: absolute; top: 14px; inset-inline-start: 14px; font-size: .75rem; color: var(--muted); background: color-mix(in srgb, var(--bg) 70%, transparent); padding: 4px 10px; border-radius: var(--btn-radius); }
.viewer .loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.viewer .fallback img { width: 100%; height: 100%; object-fit: cover; }
.gallery-tabs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; }
.gallery-tabs button { flex: 0 0 72px; height: 72px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; overflow: hidden; padding: 0; font-size: .75rem; }
.gallery-tabs button.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.gallery-tabs img { width: 100%; height: 100%; object-fit: cover; }
.p-info h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 6px; }
.p-price { font-size: 1.7rem; font-family: var(--font-head); color: var(--accent); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.p-price .alt { font-size: .9rem; color: var(--muted); font-family: var(--font-body); }
.p-price .num { display: inline-block; transition: transform .25s var(--ease); }
.p-price .num.tick { transform: scale(1.06); }
.p-desc { color: var(--muted); margin: 14px 0 24px; }
.opt { padding: 18px 0; border-top: 1px solid var(--line); }
.opt-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.opt-head b { font-weight: 600; } .opt-head span { color: var(--muted); font-size: .9rem; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border: 1px solid var(--line); border-radius: var(--btn-radius); background: var(--surface); cursor: pointer; font-size: .88rem; transition: border-color .2s, box-shadow .2s; }
.swatch .dot { width: 20px; height: 20px; box-shadow: inset 0 -3px 6px rgba(0,0,0,.18), inset 0 3px 6px rgba(255,255,255,.5); }
.swatch.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--btn-radius); overflow: hidden; }
.seg button { border: 0; background: var(--surface); padding: 8px 18px; cursor: pointer; }
.seg button.on { background: var(--grad); color: var(--accent-ink); font-weight: 600; }
.size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; }
.size-grid.wide { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.size-grid button { padding: 9px 4px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; font-size: .85rem; line-height: 1.2; }
.size-grid button small { display: block; color: var(--muted); font-size: .7rem; }
.size-grid button.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); color: var(--accent); }
.range-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.range-row output { min-width: 76px; text-align: center; padding: 5px 8px; border: 1px solid var(--line); border-radius: var(--radius); font-variant-numeric: tabular-nums; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: linear-gradient(to left, var(--accent) var(--fill, 50%), var(--line) var(--fill, 50%)); direction: rtl; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); border: 2px solid var(--bg); box-shadow: 0 2px 8px rgba(0,0,0,.35); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); cursor: pointer; }
.range-scale { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin-top: 4px; }
.size-helper { margin-top: 12px; padding: 14px; background: var(--surface2); border-radius: var(--radius); font-size: .88rem; display: none; }
.size-helper.open { display: block; }
.size-helper .row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.size-helper .input { width: 110px; padding: 8px 10px; }
.buy-row { display: flex; gap: 12px; margin-top: 22px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--btn-radius); }
.qty button { width: 38px; height: 46px; background: none; border: 0; cursor: pointer; font-size: 1.1rem; }
.qty span { min-width: 26px; text-align: center; }
.perks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; font-size: .88rem; color: var(--muted); }
.perks li::before { content: '✦'; color: var(--accent); margin-inline-end: 8px; }
.summary-line { font-size: .85rem; color: var(--muted); background: var(--surface2); padding: 10px 14px; border-radius: var(--radius); margin-top: 16px; }

/* ------------------------------------------------ עגלה וקופה */
.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 36px; padding-bottom: 80px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 100px 1fr auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item .thumb { width: 100px; aspect-ratio: 1; border-radius: var(--radius); background: var(--viewer-bg); overflow: hidden; }
.cart-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item h3 { font-size: 1.1rem; margin: 0 0 4px; }
.cart-item .desc { font-size: .82rem; color: var(--muted); }
.cart-item .side { text-align: end; display: flex; flex-direction: column; align-items: end; gap: 8px; }
.cart-item .qty button { height: 34px; width: 32px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.box + .box { margin-top: 18px; }
.box h3 { font-size: 1.25rem; }
.totals { display: grid; gap: 10px; font-size: .95rem; }
.totals .row { display: flex; justify-content: space-between; gap: 12px; }
.totals .row.discount { color: #3fa46a; }
.totals .row.total { font-size: 1.25rem; font-weight: 700; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.totals .row.total span:last-child { color: var(--accent); }
.totals .note { font-size: .78rem; color: var(--muted); }
.coupon-row { display: flex; gap: 8px; }
.coupon-row .input { text-transform: uppercase; }
.coupon-msg { font-size: .82rem; margin-top: 6px; min-height: 1.2em; }
.coupon-msg.ok { color: #3fa46a; } .coupon-msg.bad { color: #e06a66; }
.applied { display: inline-flex; gap: 8px; align-items: center; padding: 4px 6px 4px 12px; border: 1px dashed var(--accent); border-radius: var(--btn-radius); font-size: .85rem; }
.steps { display: flex; gap: 6px; margin-bottom: 24px; font-size: .82rem; color: var(--muted); }
.steps b { color: var(--accent); }
fieldset { border: 0; padding: 0; margin: 0 0 26px; }
legend { font-family: var(--font-head); font-size: 1.3rem; margin-bottom: 14px; padding: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.choice { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; transition: border-color .2s; }
.choice + .choice { margin-top: 10px; }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.choice input { accent-color: var(--accent); width: 18px; height: 18px; }
.choice .grow { flex: 1; } .choice small { display: block; color: var(--muted); }
.choice .price { font-weight: 600; }
.pay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pay-grid .choice { margin: 0; }
.pay-icons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pay-icons span { font-size: .7rem; padding: 3px 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: start; font-size: .88rem; }
.check input { accent-color: var(--accent); margin-top: 4px; }
.mini-lines { display: grid; gap: 12px; margin-bottom: 16px; max-height: 300px; overflow: auto; }
.mini-line { display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; align-items: center; font-size: .85rem; }
.mini-line .thumb { width: 54px; aspect-ratio: 1; border-radius: var(--radius); background: var(--viewer-bg); overflow: hidden; position: relative; }
.mini-line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-line .q { position: absolute; top: 2px; inset-inline-end: 2px; background: var(--accent); color: var(--accent-ink); border-radius: 9px; font-size: .65rem; padding: 0 5px; }
.secure { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: .8rem; color: var(--muted); margin-top: 12px; }
.alert { padding: 12px 16px; border-radius: var(--radius); background: color-mix(in srgb, #e06a66 12%, transparent); border: 1px solid color-mix(in srgb, #e06a66 40%, transparent); font-size: .9rem; margin-bottom: 16px; }
.alert.info { background: color-mix(in srgb, var(--accent) 10%, transparent); border-color: var(--line); }
.center-page { max-width: 620px; margin: 0 auto; padding: 70px 20px 90px; text-align: center; }
.center-page .big-icon { font-size: 3rem; color: var(--accent); }
.prose { max-width: 760px; padding-bottom: 80px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 14px 0 26px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: start; }
.prose th { background: var(--surface2); }

/* ------------------------------------------------ בורר עיצוב */
.theme-picker { position: fixed; bottom: 20px; inset-inline-start: 20px; z-index: 60; }
.theme-toggle { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); cursor: pointer; font-size: .88rem; }
.theme-panel { position: absolute; bottom: 52px; inset-inline-start: 0; width: 270px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; box-shadow: var(--shadow); display: grid; gap: 6px; }
.theme-panel[hidden] { display: none; }
.theme-title { margin: 2px 6px 6px; font-size: .78rem; color: var(--muted); letter-spacing: .1em; }
.theme-panel button { display: flex; gap: 12px; align-items: center; text-align: start; padding: 8px; border-radius: 10px; border: 1px solid transparent; background: none; cursor: pointer; }
.theme-panel button:hover { background: var(--surface2); }
.theme-panel button.on { border-color: var(--accent); }
.theme-panel small { display: block; color: var(--muted); font-size: .75rem; }
.sw { width: 38px; height: 38px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.sw-noir { background: conic-gradient(from 200deg, #0b0b0c 0 55%, #d8b46a 55% 80%, #f3dca4 80%); }
.sw-ivory { background: conic-gradient(from 200deg, #fbf8f2 0 55%, #a8823f 55% 80%, #e3d9c8 80%); }
.sw-rose { background: conic-gradient(from 200deg, #fdf6f4 0 50%, #c27b6a 50% 78%, #f2c4b4 78%); }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; background: var(--text); color: var(--bg); padding: 12px 20px; border-radius: var(--btn-radius); font-size: .92rem; z-index: 80; transition: all .35s var(--ease); box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------ פוטר */
.site-footer { border-top: 1px solid var(--line); background: var(--bg2); padding-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.2fr; gap: 30px; padding-bottom: 40px; }
.footer-logo { width: 150px; border-radius: 50%; }
html[data-theme="ivory"] .footer-logo { border-radius: 0; }
.site-footer h4 { font-size: 1.05rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.copyright { border-top: 1px solid var(--line); padding-block: 18px; font-size: .8rem; color: var(--muted); text-align: center; }

/* ------------------------------------------------ אנימציית כניסה לעמוד */
.page-enter { animation: pageIn .5s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ------------------------------------------------ מובייל */
@media (max-width: 980px) {
  .menu-btn { display: inline-grid; }
  .main-nav { position: fixed; inset: 114px 0 auto 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 18px; margin: 0; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .25s var(--ease); }
  .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .hero-grid, html[data-theme="ivory"] .hero-grid { grid-template-columns: 1fr; min-height: 0; text-align: center; }
  .hero-cta { justify-content: center; } .hero p.lead { margin-inline: auto; }
  .hero-visual { max-width: 340px; grid-row: 1; }
  .usp { grid-template-columns: repeat(2, 1fr); }
  .dept-grid { grid-template-columns: 1fr; }
  .banner-3d { grid-template-columns: 1fr; padding: 24px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; flex-direction: row; overflow-x: auto; gap: 18px; }
  .filters > div { flex: none; }
  .filter-list { flex-direction: row; }
  .product-layout, .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .viewer-wrap { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .header-row { gap: 10px; height: 66px; }
  .brand-badge { width: 42px; height: 42px; }
  .brand-text b { font-size: 1.1rem; }
  .main-nav { inset-block-start: 104px; }
  .hide-sm { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 76px 1fr; }
  .cart-item .thumb { width: 76px; }
  .cart-item .side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .theme-toggle span { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card .body { padding: 12px; }
}

/* =====================================================================
   תוספות: מוצרים אמיתיים, נגישות, עוגיות, דיוור, קופה
   ===================================================================== */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.h3 { font-size: 1.2rem; } .h4 { font-family: var(--font-body); font-weight: 600; font-size: .95rem; margin-bottom: 10px; }
mark { background: #fff1b8; color: #5a4300; padding: 0 3px; border-radius: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* כרטיסי מוצר עם תמונות אמיתיות */
.card .thumb { background: #fff; }
.card .thumb img { position: absolute; inset: 0; }
.card .thumb img.alt { opacity: 0; transition: opacity .45s var(--ease), transform .6s var(--ease); }
.card:hover .thumb img.alt, .card:focus-visible .thumb img.alt { opacity: 1; }
.igi { display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; font-weight: 600; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; background: #fff; color: #2b6a4f; border: 1px solid #b9dcc9; }
.igi.on-img { position: absolute; bottom: 10px; inset-inline-end: 10px; }
.tag { display: inline-block; font-size: .72rem; padding: 3px 10px; border-radius: 999px; background: var(--surface2); color: var(--muted); border: 1px solid var(--line); }
.p-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }

/* מחלקות עם תמונה */
.dept-card { padding: 0; min-height: 0; }
.dept-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .6s var(--ease); }
.dept-card:hover img { transform: scale(1.04); }
.dept-text { padding: 20px 22px 22px; }
.usp { list-style: none; margin: 0; padding: 0; }
.usp li { background: var(--bg); padding: 22px 18px; text-align: center; }
.why h2 { text-align: center; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.why-grid > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.why-grid b { font-size: 1.1rem; color: var(--accent); }
.why-grid p { color: var(--muted); margin: 8px 0 0; }
.mini-viewer .loading { position: absolute; inset: 0; display: grid; place-items: center; }

/* דף מוצר: תמונות + תלת-ממד */
.viewer { background: #fff; }
.viewer .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.viewer .v3d { position: absolute; inset: 0; background: var(--viewer-bg); }
.viewer .v3d .loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.gallery-tabs { padding-bottom: 4px; }
.gallery-tabs .tab-3d { display: grid; place-items: center; align-content: center; gap: 2px; background: var(--grad); color: var(--accent-ink); font-weight: 600; border-color: transparent; }
.gallery-tabs .tab-3d span { font-size: 1.1rem; }
.btn.sm { padding: 7px 14px; font-size: .82rem; }
fieldset.opt { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 18px 0; min-width: 0; }
legend.opt-head { display: flex; width: 100%; float: inline-start; padding: 0; }
legend.opt-head + * { clear: both; }
.size-grid button { min-height: 44px; }
.size-grid button small { color: var(--muted); }
.swatch, .size-grid button, .chip { min-height: 40px; }

/* עגלה וקופה */
.cart-list, .mini-lines { list-style: none; margin: 0; padding: 0; }
.cart-item .h3 { margin: 0 0 4px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; }
.field > label, .field > span:first-child { color: var(--muted); }
.check.err span { color: #c2413b; }
.consents { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.req { color: #c2413b; }
hr { border: 0; border-top: 1px solid var(--line); }

/* פוטר + דיוור */
.footer-grid { grid-template-columns: .9fr 1fr 1fr 1.5fr; }
.footer-pay { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 18px; }
.nl-row { display: flex; gap: 8px; margin-bottom: 10px; }
.nl-row .input { flex: 1; }
.nl-msg { margin-top: 6px; min-height: 1.2em; color: var(--accent); }
#newsletter .check { color: var(--muted); }

/* הודעת עוגיות */
.cookie-bar { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 70; max-width: 720px; margin-inline: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 16px 18px; display: flex; gap: 16px; align-items: center; font-size: .88rem; }
.cookie-bar p { margin: 0; flex: 1; }
.cookie-actions { display: flex; gap: 8px; flex: none; }

/* תפריט נגישות */
.a11y-widget { position: fixed; bottom: 20px; inset-inline-start: 20px; z-index: 65; }
.a11y-toggle { width: 52px; height: 52px; border-radius: 50%; border: 0; background: #1f4fd1; color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.a11y-toggle svg { width: 28px; height: 28px; stroke-width: 2; }
.a11y-panel { position: absolute; bottom: 62px; inset-inline-start: 0; width: 290px; background: #fff; color: #1d1d1f; border: 1px solid #ddd; border-radius: 14px; padding: 14px; box-shadow: 0 12px 34px rgba(0,0,0,.22); }
.a11y-title { margin: 0 0 10px; font-weight: 600; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-grid button { min-height: 52px; border: 1px solid #ccc; border-radius: 10px; background: #f6f6f7; color: #1d1d1f; cursor: pointer; font-size: .85rem; }
.a11y-grid button.on { background: #1f4fd1; color: #fff; border-color: #1f4fd1; }
.a11y-foot { display: flex; justify-content: space-between; margin-top: 12px; font-size: .85rem; }
.a11y-foot .link-btn { color: #1f4fd1; }
html.a11y-text-1 { font-size: 112%; } html.a11y-text-2 { font-size: 125%; } html.a11y-text-3 { font-size: 140%; }
html.a11y-contrast body { --bg: #fff; --bg2: #fff; --surface: #fff; --surface2: #f2f2f2; --text: #000; --muted: #222; --line: #000; --accent: #7a1f10; --accent-ink: #fff; --grad: #7a1f10; background: #fff; color: #000; }
html.a11y-contrast .btn { background: #000; color: #fff; border-color: #000; }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; outline: 1px dashed currentColor; }
html.a11y-font body, html.a11y-font h1, html.a11y-font h2, html.a11y-font h3, html.a11y-font .p-price { font-family: Arial, 'Rubik', sans-serif !important; letter-spacing: .02em; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M4 2l26 14-12 3-5 12z' fill='black' stroke='white' stroke-width='2'/%3E%3C/svg%3E") 4 2, auto !important; }

@media (max-width: 980px) {
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  #newsletter { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .cookie-bar { flex-direction: column; align-items: stretch; }
  .a11y-widget { bottom: 14px; inset-inline-start: 14px; }
  .a11y-toggle { width: 46px; height: 46px; }
}
.cart-count[hidden] { display: none; }
.topbar { flex-wrap: wrap; gap: 4px 28px; text-align: center; }
@media (max-width: 760px) { .topbar .hide-sm { display: none; } }
[hidden] { display: none !important; }
.hp { position: absolute !important; left: auto !important; width: 1px !important; height: 1px !important; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); opacity: 0; pointer-events: none; }
.skip { position: absolute; inset-inline-start: 10px; top: 10px; z-index: 99; transform: translateY(-200%); background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 6px; }
.skip:focus { transform: none; }
.product-layout > *, .catalog-layout > *, .cart-layout > *, .checkout-layout > *, .grid > * { min-width: 0; }
@media (max-width: 420px) { .brand-text small { display: none; } .currency { padding: 5px 6px; font-size: .8rem; } .header-row { gap: 8px; } }
