/* MEGA Israel: modern, minimal, image-led. Mobile-first, no framework. */
@font-face { font-family: "Fraunces"; src: url("/static/fonts/fraunces.woff") format("woff"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Frank Ruhl"; src: url("/static/fonts/frank-ruhl-hebrew.woff") format("woff"); font-weight: 400 700; font-display: swap; unicode-range: U+0590-05FF, U+FB1D-FB4F; }

:root {
  --ink: #111111;
  --ink-2: #2B2B2B;
  --paper: #FFFFFF;
  --mist: #F3F2EF;
  --stone: #E7E5E0;
  --muted: #6B6B6B;
  --line: #E4E2DD;
  --accent: #1E2A4A;
  --radius: 0px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --gutter: 16px;
}
@media (min-width: 900px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.6 var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 .5em; font-variation-settings: "opsz" 72; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { font: 600 .72rem var(--sans); letter-spacing: .2em; text-transform: uppercase; margin: 0 0 14px; color: var(--muted); }
.eyebrow-light { color: rgba(255, 255, 255, .85); }
.lede { color: var(--muted); max-width: 52ch; margin: 0 auto; }
.notice { background: #FFF6E0; padding: 12px 16px; font-size: .9rem; }

/* buttons + links */
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); border-radius: var(--radius); padding: 0 32px; min-height: 50px;
  font: 600 .78rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--ink-2); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-white { background: var(--paper); color: var(--ink); border-color: var(--paper); min-width: 170px; }
.btn-white:hover { background: transparent; color: var(--paper); }
.btn[disabled] { background: var(--stone); border-color: var(--stone); color: var(--muted); cursor: not-allowed; }
.btn-block { width: 100%; }
.link-cta { font: 600 .74rem var(--sans); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }

/* announcement */
.announce { background: var(--ink); color: var(--paper); text-align: center; height: 36px; position: relative; overflow: hidden; }
.announce-msg { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; padding: 0 var(--gutter);
  font: 500 .72rem var(--sans); letter-spacing: .14em; text-transform: uppercase; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; }
.announce-msg.is-active { opacity: 1; transform: none; }

/* header */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 60px; gap: 12px; }
.logo { display: inline-flex; color: var(--ink); justify-self: center; }
.logo svg { height: 16px; width: auto; }
.nav-toggle { justify-self: start; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 0; display: grid; place-items: center; }
.burger, .burger::before, .burger::after { display: block; width: 22px; height: 1.5px; background: var(--ink); position: relative; content: ""; transition: transform .2s; }
.burger::before { position: absolute; top: -7px; }
.burger::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .burger { background: transparent; }
.nav-toggle[aria-expanded="true"] .burger::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger::after { transform: translateY(-7px) rotate(-45deg); }
.header-tools { justify-self: end; display: flex; align-items: center; gap: 20px; }
.tool-link { display: none; font: 600 .72rem var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; }
.cart-toggle { position: relative; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; color: var(--ink); display: grid; place-items: center; }
.cart-toggle svg { width: 24px; height: 24px; }
.cart-count { position: absolute; top: 6px; right: 4px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--ink); color: var(--paper); font: 700 .6rem/16px var(--sans); text-align: center; }
.site-nav { display: none; grid-column: 1 / -1; grid-row: 2; }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 4px 0 20px; }
.site-nav a { display: block; padding: 16px 0; text-decoration: none; font: 600 .82rem var(--sans); letter-spacing: .16em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
@media (min-width: 1100px) {
  .header-row { min-height: 72px; }
  .logo svg { height: 19px; }
  .nav-toggle { display: none; }
  .site-nav { display: block; grid-column: 1; grid-row: 1; justify-self: start; }
  .site-nav ul { display: flex; gap: 28px; padding: 0; white-space: nowrap; }
  .site-nav a { border: 0; padding: 8px 0; font-size: .72rem; border-bottom: 1px solid transparent; }
  .site-nav a:hover, .site-nav a[aria-current] { border-bottom-color: var(--ink); }
  .tool-link { display: inline; }
}

/* hero */
.hero { position: relative; background: #1A1A1B; color: var(--paper); min-height: 640px; display: grid; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .68), rgba(0, 0, 0, .25) 40%, rgba(0, 0, 0, 0) 65%); }
.hero-overlay { position: relative; z-index: 1; align-self: end; text-align: center; padding: 0 var(--gutter) 48px; }
.hero h1 { color: var(--paper); margin-bottom: 10px; }
.hero-sub { margin: 0 0 26px; font-size: .95rem; color: rgba(255, 255, 255, .85); }
.hero-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .hero { min-height: min(86vh, 860px); } .hero-overlay { padding-bottom: 72px; } }
@media (max-width: 760px) {
  .hero { display: block; min-height: 0; }
  .hero-img { position: static; height: auto; aspect-ratio: 9 / 10; object-position: 50% 0; }
  .hero::after { display: none; }
  .hero-overlay { padding: 22px var(--gutter) 40px; margin-top: 0; }
  .hero-cta .btn { flex: 1 1 140px; min-width: 0; }
}

/* "Illustration" tag on AI lifestyle images (policy: label illustrations until sample photos exist) */
.illus-tag { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(20, 33, 61, .72); color: #fff;
  font: 600 .58rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 6px 8px; border-radius: 2px; pointer-events: none; }
.cat-media, .split-media { position: relative; }

/* sections */
.section { padding: 56px 0; }
.section-tight { padding: 40px 0; }
@media (min-width: 900px) { .section { padding: 88px 0; } .section-tight { padding: 56px 0; } }
.row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.row-head h2 { margin: 0; }
.cat-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.cat-tile { display: block; text-decoration: none; text-align: center; }
.cat-media { background: var(--mist); overflow: hidden; }
.cat-media img { transition: transform .7s ease; aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.cat-tile:hover .cat-media img { transform: scale(1.04); }
.cat-body { padding: 18px 0 4px; }
.cat-body h3 { font-size: 1.6rem; margin: 0 0 4px; }
.cat-body p { margin: 0 0 12px; color: var(--muted); }

/* product rail */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 760px) { .rail { grid-auto-columns: calc((100% - 3 * 14px) / 4); } }
@media (min-width: 1200px) { .rail { grid-auto-columns: calc((100% - 4 * 14px) / 5); } }

/* grids + cards */
.grid { display: grid; gap: 32px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 20px; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; text-align: center; }
.card-link { color: inherit; text-decoration: none; display: block; }
.card-media { position: relative; overflow: hidden; background: var(--mist); }
.card-media img { transition: transform .7s ease; }
.card-link:hover .card-media img { transform: scale(1.05); }
.card-media .badge { position: absolute; top: 12px; left: 12px; }
.card-body { padding: 14px 4px 0; display: grid; gap: 2px; justify-items: center; }
.card-title { font: 600 .8rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; margin: 0; }
.card-sub { margin: 0; color: var(--muted); font-size: .85rem; min-height: 1.2em; }
.card-price { margin: 2px 0 0; font-size: .9rem; }
.card-merchant { margin: 0; font-size: .8rem; color: var(--muted); }
.card-affiliate .btn { margin-top: 10px; min-height: 40px; padding: 0 16px; font-size: .68rem; }
.card-affiliate .card-body { padding-top: 14px; }
.dots { display: inline-flex; gap: 6px; padding-top: 4px; }
.dot { width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); display: inline-block; }
.badge { display: inline-block; background: var(--paper); color: var(--ink); font: 700 .6rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 7px 9px; }
.badge-dark { background: var(--ink); color: var(--paper); }
.badge-affiliate { background: #E4ECF6; color: #234A75; }
.badge-sample { background: #FFF0C2; color: #6B4E00; }
.img-slot { aspect-ratio: 1 / 1; background: var(--mist); display: grid; place-items: center; text-align: center; padding: 12px;
  color: var(--muted); font: 600 .66rem var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.img-wide { aspect-ratio: 4 / 3; }
.img-tall, .product-img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; background: var(--mist); }
.brand-card { border-top: 1px solid var(--ink); padding: 16px 0 0; }
.editorial-card a { color: inherit; text-decoration: none; display: grid; gap: 6px; }
.editorial-card h3 { margin: 4px 0 0; font-size: 1.35rem; }
.editorial-card .eyebrow { margin: 14px 0 0; }
.editorial-card .muted { margin: 0; }
.disclosure { font-size: .82rem; color: var(--muted); padding-bottom: 40px; }

/* story split + promises */
.story-split { background: var(--mist); }
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } }
.split-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.split-copy p { color: var(--muted); max-width: 46ch; margin: 0 0 28px; }
.promises { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 16px; text-align: center; }
@media (min-width: 900px) { .promises { grid-template-columns: repeat(4, 1fr); } }
.promise svg { width: 30px; height: 30px; margin: 0 auto 10px; }
.promise-t { font: 600 .74rem var(--sans); letter-spacing: .16em; text-transform: uppercase; margin: 0 0 4px; }
.promise-d { margin: 0 auto; color: var(--muted); font-size: .85rem; max-width: 26ch; }
.promises-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.news-band { background: var(--mist); }

/* page heads + prose */
.page-head { text-align: center; padding: 48px 0 36px; }
@media (min-width: 900px) { .page-head { padding: 72px 0 48px; } }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin-bottom: 12px; }
.crumbs { padding-top: 18px; font: 500 .7rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.crumbs a { text-decoration: none; }
.prose { max-width: 720px; padding-top: 24px; padding-bottom: 72px; font-size: 1rem; }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.5rem, 3vw, 2rem); }
.prose h3 { margin-top: 1.4em; font: 600 .95rem var(--sans); }
.article { padding-top: 40px; }
.article h1 { font-size: clamp(2rem, 5vw, 3.4rem); }

/* product page */
.product { display: grid; gap: 28px; padding-top: 16px; padding-bottom: 56px; }
@media (min-width: 900px) { .product { grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: start; } .product-info { position: sticky; top: 96px; } }
.gallery { display: grid; gap: 8px; }
@media (min-width: 900px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery > :only-child { grid-column: 1 / -1; } }
.img-note { margin: 10px 0 0; }
.product-flag { margin: 0 0 10px; min-height: 1px; }
.product-flag .badge { background: var(--ink); color: var(--paper); }
.product-info h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 8px; }
.product-price { font-size: 1.15rem; margin: 0 0 16px; }
.product-summary { color: var(--muted); margin: 0 0 8px; }
.product-form { display: grid; gap: 22px; margin: 24px 0 18px; }
.opt { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.opt legend { width: 100%; font: 600 .72rem var(--sans); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; padding: 0; }
.opt legend span { color: var(--muted); font-weight: 500; letter-spacing: .06em; margin-left: 6px; }
.swatch, .size { position: relative; cursor: pointer; }
.swatch input, .size input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch-dot { display: block; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18), 0 0 0 3px var(--paper), 0 0 0 4px transparent; transition: box-shadow .15s; }
.swatch input:checked + .swatch-dot { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18), 0 0 0 3px var(--paper), 0 0 0 4px var(--ink); }
.swatch-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.size span { display: grid; place-items: center; min-width: 52px; height: 44px; padding: 0 12px; border: 1px solid var(--line); font: 600 .78rem var(--sans); letter-spacing: .06em; }
.size input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.swatch input:focus-visible + .swatch-dot, .size input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 4px; }
select, input[type=email] { font: .95rem var(--sans); padding: 0 14px; border: 1px solid #C9C6BF; border-radius: 0; min-height: 50px; width: 100%; background: var(--paper); color: var(--ink); }
.note { background: var(--mist); padding: 14px 16px; font-size: .88rem; margin: 0 0 18px; }
.acc { border-top: 1px solid var(--line); }
.acc:last-of-type { border-bottom: 1px solid var(--line); }
.acc summary { cursor: pointer; list-style: none; padding: 16px 0; font: 600 .74rem var(--sans); letter-spacing: .16em; text-transform: uppercase; display: flex; justify-content: space-between; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 1.1rem; font-weight: 400; letter-spacing: 0; }
.acc[open] summary::after { content: "–"; }
.acc p, .acc ul { margin: 0 0 16px; color: var(--muted); font-size: .9rem; }
.details { padding-left: 18px; }
.details li { margin-bottom: 4px; }

/* newsletter */
.newsletter { display: grid; gap: 10px; }
.newsletter-big { max-width: 640px; margin: 0 auto; text-align: center; justify-items: center; }
.nl-title { margin: 0; }
.nl-copy { color: var(--muted); margin: 0 0 14px; }
.nl-row { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; }
.newsletter-big .nl-row { max-width: 520px; }
.nl-row input[type=email] { flex: 1 1 220px; }
.nl-fine { color: var(--muted); margin: 0; }
.nl-msg:empty, .cart-msg:empty { display: none; }

/* footer */
.site-footer { background: var(--ink); color: var(--paper); padding: 64px 0 28px; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-top { display: grid; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.3fr .8fr .8fr 1.4fr; } }
.logo-footer { color: var(--paper); justify-self: start; }
.logo-footer svg { height: 56px; }
.footer-tag { font: italic 400 1.3rem var(--serif); margin: 18px 0 6px; }
.footer-brand .small { color: rgba(255, 255, 255, .6); max-width: 38ch; }
.footer-h { font: 600 .7rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .55); margin: 0 0 14px; display: block; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: .9rem; }
.footer-news .nl-fine, .footer-news .nl-fine a { color: rgba(255, 255, 255, .55); }
.footer-news input[type=email] { background: transparent; color: var(--paper); border-color: rgba(255, 255, 255, .35); }
.footer-news .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.footer-base { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 24px; color: rgba(255, 255, 255, .55); }

/* cart */
.cart { border: 0; padding: 0; margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(440px, 100%); background: var(--paper); color: var(--ink); }
.cart::backdrop { background: rgba(0, 0, 0, .45); }
.cart[open] { display: flex; flex-direction: column; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cart-head h2 { margin: 0; font: 600 .8rem var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.cart-close { background: none; border: 0; font-size: 1.8rem; cursor: pointer; min-width: 44px; min-height: 44px; color: var(--ink); }
.cart-items { flex: 1; overflow: auto; padding: 8px 20px; }
.cart-line { display: flex; justify-content: space-between; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line strong { font: 600 .8rem var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.cart-line button { background: none; border: 0; color: var(--muted); cursor: pointer; text-decoration: underline; min-height: 32px; }
.cart-foot { padding: 18px 20px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.cart-subtotal { display: flex; justify-content: space-between; margin: 0; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
