:root {
  --bg: #faf6ef;
  --surface: #ffffff;
  --card-bg: #f1ebe0;
  --ink: #23263a;
  --muted: #6b6a72;
  --line: #e4ddd0;
  --gold: #c49a3c;
  --accent: #2b2f4a;
  --accent-ink: #faf6ef;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(35, 38, 58, .08);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --hebrew: "Frank Ruhl Libre", serif;
  --sans-he: "Assistant", "Inter", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15161f; --surface: #1d1f2b; --card-bg: #262838; --ink: #f1ece2;
    --muted: #a3a1aa; --line: #33354a; --accent: #e3b95a; --accent-ink: #15161f;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
body.lock { overflow: hidden; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
:not(html)[lang="he"] { font-family: var(--hebrew); }
html[lang="he"] body { font-family: var(--sans-he); font-size: 17px; }
html[lang="he"] h1, html[lang="he"] h2, html[lang="he"] h3, html[lang="he"] .cd-num, html[lang="he"] .prop strong { font-family: var(--hebrew); font-weight: 700; letter-spacing: 0; }
html[lang="he"] .eyebrow { letter-spacing: .02em; font-size: .85rem; }
[dir="rtl"] .arrow { display: inline-block; transform: scaleX(-1); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 600; color: var(--gold); margin-bottom: .8em; }
button { font: inherit; color: inherit; cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .85em 1.4em; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: .95rem; text-decoration: none; transition: transform .15s ease, background .2s, box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(43, 47, 74, .25); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.btn-ghost { border-color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-block { width: 100%; }
.link { font-weight: 600; font-size: .9rem; color: var(--gold); }

/* Announcement + header */
.announce { background: var(--accent); color: var(--accent-ink); text-align: center; font-size: .82rem; padding: .55em 16px; }
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo img { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
.logo-en { white-space: nowrap; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.logo-he { font-size: 1.05rem; color: var(--muted); }
.nav { display: flex; gap: 22px; margin-inline-start: auto; }
.lang-btn { background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: .35em .9em; font-size: .85rem; font-weight: 600; transition: background .2s, border-color .2s; }
.lang-btn:hover { border-color: var(--ink); }
.lang-btn:active { transform: scale(.96); }
.nav a { text-decoration: none; font-size: .92rem; font-weight: 500; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--gold); transform: scaleX(0); transition: transform .2s; }
.nav a:hover::after { transform: scaleX(1); }
.cart-btn { position: relative; background: none; border: 0; padding: 6px; }
.cart-btn svg { width: 26px; height: 26px; display: block; }
.cart-count { position: absolute; top: -2px; inset-inline-end: -4px; background: var(--gold); color: #fff; font-size: .7rem; font-weight: 600; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.cart-count[hidden] { display: none; }
.cart-btn.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.18); } }
.menu-btn { display: none; background: none; border: 0; width: 36px; height: 36px; flex-direction: column; justify-content: center; gap: 6px; }
.menu-btn span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* Hero */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.countdown { display: flex; align-items: center; gap: 12px; font-size: .95rem; color: var(--muted); }
.cd-num { font-family: var(--serif); font-size: 2.2rem; color: var(--gold); line-height: 1; }
.hero-art { position: relative; }
.hero-art::before { content: ""; position: absolute; inset: -8%; background: radial-gradient(circle at 50% 40%, rgba(246, 212, 138, .55), transparent 65%); pointer-events: none; }
.hero-logo { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1; margin: 0 auto; border-radius: 50%; overflow: hidden; box-shadow: 0 24px 60px rgba(150, 110, 40, .22); animation: logo-in .9s ease both; }
.hero-logo img { display: block; width: 110%; height: 110%; margin: -5%; object-fit: cover; }
@keyframes logo-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 2.6s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.06, .94) rotate(-2deg); } 60% { transform: scale(.95, 1.05) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .flame, .hero-logo { animation: none; opacity: 1; } html { scroll-behavior: auto; } }

/* Value props */
.props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 56px; }
.prop { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.prop strong { display: block; font-family: var(--serif); font-size: 1.05rem; margin-bottom: 4px; }
.prop span { color: var(--muted); font-size: .9rem; }

/* Shop */
.shop { padding-bottom: 72px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: .45em 1em; font-size: .88rem; transition: background .2s, color .2s; }
.filters button:hover { border-color: var(--ink); }
.filters button.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; outline: none; }
.card:hover, .card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); }
.card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.card-art { position: relative; aspect-ratio: 11 / 10; }
.card-art svg { width: 100%; height: 100%; display: block; }
.photo { background: #fff; }
.photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.card-art.photo { overflow: hidden; }
.card-art.photo img { position: absolute; inset: 0; padding: 6%; transition: transform .4s ease; }
.card:hover .card-art.photo img { transform: scale(1.04); }
.modal-art.photo { display: grid; place-items: center; min-height: 100%; }
.modal-art.photo img { max-height: 78vh; padding: 5%; }
.line-art.photo { width: 64px; height: 58px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.card.sold-out .card-art > :first-child { opacity: .45; filter: grayscale(.6); }
.card.sold-out .price { color: var(--muted); text-decoration: line-through; }
.card.sold-out .link { color: var(--muted); }
.badge.badge-out { background: var(--ink); color: var(--bg); }
.badge { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--surface); color: var(--ink); font-size: .72rem; font-weight: 600; padding: .3em .7em; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .3em; }
.card-body p { font-size: .88rem; flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: center; }
.price { font-weight: 600; }

/* Bundle */
.bundle { background: var(--card-bg); padding: 72px 0; }
.bundle-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.bundle-art { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 1 / 1; max-width: 460px; width: 100%; margin: 0 auto; }
.collage-tile { padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); transition: transform .25s ease; }
.collage-tile:first-child { grid-row: 1 / 3; }
.collage-tile:hover { transform: translateY(-3px); }
.collage-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.collage-tile:hover img { transform: scale(1.04); }
.collage-tile:not(:first-child) img { object-fit: contain; padding: 8%; }
.bundle-ctas { margin: 0; }
.checks { list-style: none; padding: 0; margin: 0 0 24px; }
.checks li { padding-inline-start: 26px; position: relative; margin-bottom: 6px; }
.checks li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--gold); font-weight: 700; }

/* Gift guides */
.gifts { padding: 72px 20px; }
.gift-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gift { text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--tone); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.gift:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gift p { color: var(--muted); font-size: .9rem; flex: 1; }

/* Guide + FAQ */
.guide { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 72px 0; }
.guide-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.size-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin-top: 8px; }
.size-table th, .size-table td { text-align: start; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.size-table th { font-weight: 600; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* About */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; padding: 72px 20px; align-items: center; }
.newsletter { background: var(--card-bg); border-radius: var(--radius); padding: 28px; }
.nl-row { display: flex; gap: 8px; }
.nl-row input { flex: 1; min-width: 0; padding: .8em 1.1em; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; }
.nl-msg { margin: 12px 0 0; font-size: .9rem; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 16px 40px; align-items: start; }
.footer-logo { display: inline-block; margin-bottom: 12px; }
.footer-logo img { display: block; width: 120px; height: 120px; border-radius: 50%; box-shadow: var(--shadow); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { text-decoration: none; font-size: .9rem; }
.footer .small { grid-column: 1 / -1; margin: 0; }

/* Drawer */
.overlay { position: fixed; inset: 0; background: rgba(20, 20, 30, .4); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 40; }
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--bg); z-index: 50; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .32s cubic-bezier(.32, .72, 0, 1); box-shadow: -10px 0 40px rgba(0,0,0,.12); }
.drawer.open { transform: none; }
[dir="rtl"] .drawer { right: auto; left: 0; transform: translateX(-100%); box-shadow: 10px 0 40px rgba(0,0,0,.12); }
[dir="rtl"] .drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; }
.x { background: none; border: 0; font-size: 1.8rem; line-height: 1; padding: 0 4px; color: var(--muted); }
.ship-bar { padding: 14px 22px; border-bottom: 1px solid var(--line); }
.ship-bar p { margin: 0 0 8px; font-size: .88rem; }
.bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--gold); width: 0; transition: width .4s ease; }
.drawer-items { flex: 1; overflow-y: auto; padding: 8px 22px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line-art svg { width: 64px; height: 58px; border-radius: 8px; display: block; }
.line-info { display: flex; flex-direction: column; gap: 2px; }
.line-price { font-weight: 600; }
.empty { text-align: center; padding: 48px 0; }
.drawer-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); }
.subtotal { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 1.05rem; }
.drawer-foot p { text-align: center; margin: 10px 0 0; }

/* Qty */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { background: none; border: 0; width: 38px; height: 40px; font-size: 1.1rem; }
.qty span { min-width: 22px; text-align: center; font-weight: 600; }
.qty.sm { margin-top: 6px; align-self: flex-start; }
.qty.sm button { width: 30px; height: 30px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(20, 20, 30, .5); display: grid; place-items: center; padding: 16px; animation: fade .2s ease; }
.modal[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.modal-card { position: relative; background: var(--bg); border-radius: 18px; width: min(920px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; animation: rise .28s cubic-bezier(.32, .72, 0, 1); }
@keyframes rise { from { transform: translateY(16px) scale(.98); opacity: 0; } }
.modal-x { position: absolute; top: 12px; inset-inline-end: 14px; z-index: 2; }
.modal-art svg { width: 100%; height: 100%; display: block; }
.modal-info { padding: 32px 30px; }
.opt { border: 0; padding: 0; margin: 0 0 18px; }
.opt legend { font-weight: 600; font-size: .88rem; margin-bottom: 8px; }
.choice { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; cursor: pointer; font-size: .92rem; }
.choice:has(input:checked) { border-color: var(--ink); background: var(--surface); }
.choice input { accent-color: var(--gold); }
.choice span { flex: 1; }
.choice em { font-style: normal; color: var(--muted); font-size: .85rem; }
.engrave { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 18px; }
.engrave input { display: block; width: 100%; margin-top: 8px; padding: .75em 1em; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; font-weight: 400; }
.modal-buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.modal-buy .btn { flex: 1; }
.note { margin-top: 16px; font-size: .85rem; color: var(--muted); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: .7em 1.2em; border-radius: 999px; font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s; z-index: 70; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 960px) {
  .gift-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-inner, .about, .bundle-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 820px) {
  .menu-btn { display: flex; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .lang-btn { margin-inline-start: auto; }
  .hero { padding-top: 36px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 280px; margin: 0 auto; }
  .props { grid-template-columns: 1fr; }
  .modal-card { grid-template-columns: 1fr; }
  .modal-art { max-height: 260px; overflow: hidden; }
  .modal-info { padding: 24px 20px; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .wrap, .gifts, .about { padding-left: 16px; padding-right: 16px; }
  .gift-grid { grid-template-columns: 1fr; }
  .logo-he { display: none; }
  .nl-row { flex-direction: column; }
}
