/* MOCO new site — black gallery look from Maor's redesign (Nov 2026) */
:root {
  --bg: #0b0b0b;
  --panel: #141414;
  --panel-2: #1b1b1b;
  --line: #2a2a2a;
  --ink: #ece6da;        /* stone, like the prints */
  --muted: #a39d92;
  --red: #c3141e;        /* the red MOCO from "Own It" */
  --tile: #e8e8e8;       /* photo background */
  --wa: #1f9d55;
  --serif: 'Frank Ruhl Libre', Georgia, 'Times New Roman', serif;
  --sans: 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --r: 4px;
  --gutter: 16px;
}
@media (min-width: 700px) { :root { --gutter: 32px; } }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ink); color: #000; padding: 8px 12px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(11,11,11,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand img { height: 24px; width: auto; }
.nav { display: none; gap: 28px; margin-inline-start: auto; }
.nav a { text-decoration: none; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
@media (min-width: 760px) { .nav { display: flex; } .top-actions { margin-inline-start: 16px; } }
.lang, .bag-btn {
  min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r);
  background: transparent; font-size: 14px; letter-spacing: .06em;
}
.lang:hover, .bag-btn:hover { border-color: var(--muted); }
.bag-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-inline-start: 4px; border-radius: 11px; background: var(--ink); color: #000; font-size: 12px; font-weight: 700; }
.bag-count.zero { background: var(--line); color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px; border-radius: var(--r); border: 1px solid transparent;
  font: 500 15px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
html[lang="he"] .btn { letter-spacing: 0; text-transform: none; font-size: 16px; }
.btn-stone { background: var(--ink); color: #0b0b0b; }
.btn-stone:hover { background: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #0b0b0b; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #22b25f; }
.btn-wide { width: 100%; }

/* Hero */
.hero { border-bottom: 1px solid var(--line); }
.hero-in { display: grid; gap: 32px; padding-block: 40px 48px; align-items: center; }
@media (min-width: 900px) { .hero-in { grid-template-columns: 1.1fr .9fr; gap: 64px; padding-block: 72px; } }
.eyebrow { margin: 0 0 14px; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
html[lang="he"] .eyebrow { letter-spacing: .04em; font-size: 14px; }
.hero-h {
  margin: 0; font: 500 clamp(44px, 8.4vw, 96px)/.98 var(--serif);
  text-transform: uppercase; letter-spacing: -.01em;
}
html[lang="he"] .hero-h { text-transform: none; line-height: 1.08; }
.hero-sub { max-width: 34ch; margin: 22px 0 30px; font-size: 18px; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
/* Launch countdown (before launch day) */
.countdown { margin: 0 0 28px; }
.cd-label { margin: 0 0 12px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
html[lang="he"] .cd-label { letter-spacing: 0; text-transform: none; font-size: 15px; }
.cd-row { display: flex; gap: 10px; }
.cd-row span { display: grid; justify-items: center; min-width: 68px; padding: 10px 8px 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.cd-row b { font: 500 30px/1 var(--serif); font-variant-numeric: tabular-nums; }
.cd-row small { margin-top: 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
html[lang="he"] .cd-row small { letter-spacing: 0; font-size: 12px; }
.soon { margin: 0 0 10px; font-size: 14px; }
.hero-art { margin: 0; }
.hero-tile { display: block; width: 100%; padding: 0; border: 0; background: var(--tile); border-radius: var(--r); overflow: hidden; }
.hero-tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s ease; }
.hero-tile:hover img { transform: scale(1.03); }
.label { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.label b { font: 500 18px var(--serif); color: var(--ink); }
.label .price-tag { margin-inline-start: auto; color: var(--ink); }

/* Perks strip */
.perks { display: grid; gap: 10px; list-style: none; margin-block: 0; padding-block: 22px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--muted); }
@media (min-width: 760px) { .perks { grid-template-columns: repeat(3, 1fr); text-align: center; } }
.star { color: var(--ink); }

/* Sections */
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 28px; }
.sec-h { margin: 0; font: 500 clamp(34px, 5vw, 52px)/1.05 var(--serif); text-transform: uppercase; }
html[lang="he"] .sec-h { text-transform: none; }
.sec-note { margin: 0; color: var(--muted); font-size: 15px; }
.drop { padding-block: 56px 72px; scroll-margin-top: 64px; }

/* Product grid: 2 big + 3 small on desktop, 1 big + 2x2 on phone */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 14px; list-style: none; margin: 0; padding: 0; }
.grid > li:first-child { grid-column: span 2; }
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(6, 1fr); gap: 44px 24px; }
  .grid > li { grid-column: span 2; }
  .grid > li:nth-child(-n+2) { grid-column: span 3; }
}
.card { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: start; }
.card-img { position: relative; background: var(--tile); border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease, transform .5s ease; }
.card-img .front { opacity: 0; }
@media (hover: hover) {
  .card:hover .card-img .front { opacity: 1; }
  .card:hover .card-img img { transform: scale(1.03); }
}
.card-cap { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; margin-top: 12px; }
.card-no { grid-column: 1 / -1; font-size: 12px; letter-spacing: .2em; color: var(--muted); }
.card-name { font: 500 22px/1.2 var(--serif); }
.card-price { font-size: 16px; align-self: end; }
.card-line { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
@media (max-width: 899px) { .grid > li:not(:first-child) .card-name { font-size: 19px; } .card-line { display: none; } .grid > li:first-child .card-line { display: block; } }

/* How it works */
.how { padding-block: 64px 72px; background: var(--panel); border-block: 1px solid var(--line); scroll-margin-top: 64px; }
.steps { display: grid; gap: 28px; list-style: none; margin: 32px 0 0; padding: 0; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.steps li { padding-top: 18px; border-top: 1px solid var(--line); }
.num { font: 500 15px var(--serif); color: var(--muted); letter-spacing: .1em; }
.steps h3, .fit h3 { margin: 6px 0 6px; font: 500 24px/1.2 var(--serif); }
.steps p, .fit p { margin: 0; color: var(--muted); }
.fit { margin-top: 44px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); max-width: 720px; }

/* Footer */
.foot { padding-block: 56px 40px; text-align: center; }
.foot-logo { width: 170px; margin: 0 auto 18px; }
.foot-line { font: 500 18px var(--serif); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 18px; }
.wa-link { color: var(--ink); text-underline-offset: 4px; }
.small { font-size: 13px; color: var(--muted); }

/* Dialogs */
dialog { color: var(--ink); background: var(--bg); border: 0; padding: 0; }
dialog::backdrop { background: rgba(0,0,0,.72); }
.x { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); font-size: 16px; }
.x:hover { border-color: var(--ink); }

.modal { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; }
@media (min-width: 900px) { .modal { width: min(1080px, 94vw); height: auto; max-height: 92vh; margin: auto; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; } }
.modal-in { position: relative; display: grid; }
@media (min-width: 900px) { .modal-in { grid-template-columns: 1.05fr 1fr; } }
.gallery { background: var(--tile); }
.main-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 560px) and (max-width: 899px) { .main-img img { max-height: 72vh; object-fit: contain; } }
@media (min-width: 900px) { .main-img img { max-height: calc(92vh - 100px); object-fit: contain; } }
.thumbs { display: flex; gap: 8px; padding: 10px; background: var(--bg); }
.thumbs button { flex: 0 0 64px; padding: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--tile); opacity: .6; }
.thumbs button[aria-pressed="true"] { border-color: var(--ink); opacity: 1; }
.thumbs img { width: 64px; height: 80px; object-fit: cover; }
.p-info { padding: 26px var(--gutter) 110px; }
.prelaunch .p-info { padding-bottom: 150px; }
@media (min-width: 900px) { .p-info { padding: 44px 40px 36px; overflow-y: auto; max-height: 92vh; } }
.p-name { margin: 0; font: 500 44px/1.05 var(--serif); }
.p-line { margin: 8px 0 0; font: 400 19px var(--serif); color: var(--muted); }
.p-price { margin: 16px 0 0; font-size: 22px; font-weight: 500; }
.p-desc { margin: 14px 0 0; color: var(--muted); }
.sizes { margin: 24px 0 0; padding: 0; border: 0; }
.sizes legend { margin-bottom: 10px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
html[lang="he"] .sizes legend, html[lang="he"] .card-no { letter-spacing: 0; }
.size-row { display: flex; flex-wrap: wrap; gap: 8px; }
.size-row button { min-width: 56px; min-height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r); background: transparent; font-weight: 500; }
.size-row button:hover { border-color: var(--muted); }
.size-row button[aria-pressed="true"] { background: var(--ink); color: #0b0b0b; border-color: var(--ink); }
.err { margin: 10px 0 0; color: #ff6b6b; font-size: 14px; }
.fit-note { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.p-buy { margin-top: 22px; }
@media (max-width: 899px) {
  .p-buy { position: fixed; inset-inline: 0; bottom: 0; z-index: 3; margin: 0; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(11,11,11,.96); border-top: 1px solid var(--line); }
}
.p-facts { margin: 24px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 14px; color: var(--muted); display: grid; gap: 6px; }
.p-facts li::before { content: '✦  '; color: var(--ink); }

/* Bag drawer */
.drawer { width: 100%; max-width: 440px; height: 100%; max-height: 100%; margin: 0; margin-inline-start: auto; border-inline-start: 1px solid var(--line); }
.drawer-in { display: flex; flex-direction: column; min-height: 100%; }
.drawer-head { position: relative; display: flex; align-items: center; min-height: 64px; padding: 0 var(--gutter); border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font: 500 26px var(--serif); }
.drawer-head .x { top: 10px; }
.drawer-body { flex: 1; display: flex; flex-direction: column; padding: 16px var(--gutter) 24px; }
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.line img { width: 72px; height: 90px; object-fit: cover; background: var(--tile); border-radius: var(--r); }
.line-name { font: 500 19px/1.2 var(--serif); }
.line-meta { font-size: 14px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; margin-top: 8px; border: 1px solid var(--line); border-radius: var(--r); }
.qty button { width: 40px; height: 40px; border: 0; background: none; font-size: 18px; }
.qty span { min-width: 24px; text-align: center; }
.line-end { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.rm { border: 0; background: none; font-size: 13px; color: var(--muted); text-decoration: underline; min-height: 40px; padding: 0 2px; }
.empty { color: var(--muted); padding-block: 30px; }
.sum { margin-top: auto; padding-top: 18px; display: grid; gap: 8px; }
.row { display: flex; justify-content: space-between; color: var(--muted); }
.row.total { color: var(--ink); font-size: 19px; font-weight: 500; padding-block: 8px 6px; border-top: 1px solid var(--line); margin-top: 4px; }
.nudge { margin: 0 0 4px; font-size: 14px; color: var(--ink); }
.nudge:empty { display: none; }
.back { align-self: flex-start; border: 0; background: none; color: var(--muted); padding: 6px 0 14px; min-height: 40px; }
html[dir="rtl"] .back { direction: rtl; }
.f { display: grid; gap: 6px; margin-bottom: 14px; font-size: 14px; color: var(--muted); }
.f input, .f textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel); color: var(--ink); font: 16px var(--sans);
}
.f input:focus, .f textarea:focus { border-color: var(--ink); outline: none; }
.f input[aria-invalid="true"] { border-color: #ff6b6b; }
.f-ways { margin: 0 0 14px; padding: 0; border: 0; display: grid; gap: 8px; }
.f-ways legend { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.way { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r); }
.way:has(input:checked) { border-color: var(--ink); }
.way input { accent-color: var(--ink); width: 18px; height: 18px; }
.done { text-align: center; justify-content: center; gap: 14px; }
.done-star { font-size: 40px; margin: 0; }
.done h3 { margin: 0; font: 500 32px var(--serif); }
.done p { margin: 0 0 8px; color: var(--muted); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: var(--r); background: var(--ink); color: #0b0b0b; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

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