/* "השראת הלב" — the store's look. Colours come from the logo: its turquoise (#007884),
   the light turquoise of the leaves (#84CCCC) and the gold edge; cream paper behind everything. */
:root {
  --bg: #FBF9F5;
  --surface: #FFFFFF;
  --soft: #F3EFE6;
  --line: #E6E0D5;
  --line2: #F0EBE2;
  --ink: #233130;
  --ink2: #4F5E5C;
  --muted: #6F7F7C;
  --brand: #007884;
  --brand-dark: #005B65;
  --brand-soft: #E3F2F3;
  --brand-mist: #F1F8F8;
  --turq: #84CCCC;
  --gold: #C9962E;
  --gold-dark: #8A6420;
  --gold-soft: #FBF2DF;
  --danger: #B42318;
  --danger-soft: #FDECEA;
  --ok: #1E7B4A;
  --ok-soft: #E7F4EC;
  --radius: 18px;
  --focus: 0 0 0 3px rgba(0, 120, 132, .16);
  --shadow: 0 1px 2px rgba(35, 49, 48, .04), 0 6px 20px rgba(35, 49, 48, .05);
  --shadow-lg: 0 24px 64px rgba(0, 40, 45, .22);
  --head: "StoreHeading", "Heebo", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.locked { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: var(--ink); }
[hidden] { display: none !important; }
.muted { color: var(--muted); font-weight: 400; font-size: .88em; }
.center { text-align: center; }
.teal { color: var(--brand); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* announcement */
.announce { background: var(--brand-dark); color: #fff; text-align: center; font-size: 14px; font-weight: 500; padding: 9px 16px; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line2); }
.topbar-in { max-width: 1200px; margin: 0 auto; height: 66px; padding: 0 20px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; flex: none; text-decoration: none; }
.brand img { height: 36px; width: auto; transition: opacity .25s; }
.brand b { font-family: var(--head); color: var(--brand); font-size: 22px; }
body.hero-on .brand img { opacity: 0; pointer-events: none; }
.nav-desk { display: flex; gap: 2px; flex: 1; }
.nav-desk a { color: var(--ink2); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 13px; border-radius: 999px; transition: background .15s, color .15s; }
.nav-desk a:hover { color: var(--brand-dark); background: var(--brand-soft); }
.top-actions { display: flex; gap: 6px; align-items: center; margin-inline-start: auto; }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--brand); color: #fff; border-radius: 999px; padding: 9px 16px; font-size: 15px; font-weight: 600; box-shadow: 0 4px 14px rgba(0, 120, 132, .18); transition: background .15s; }
.cart-btn:hover { background: var(--brand-dark); }
.cart-btn .badge { background: #fff; color: var(--brand-dark); }
.icon-btn { position: relative; background: none; border: 0; color: var(--ink); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; }
.icon-btn:hover { background: var(--soft); }
.menu-btn { display: none; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.menu { max-width: 1200px; margin: 0 auto; padding: 0 20px 10px; display: flex; flex-direction: column; }
.menu a { padding: 12px 4px; text-decoration: none; color: var(--ink); border-top: 1px solid var(--line2); font-weight: 500; }

/* hero: the logo, one line about the store, and three reasons to trust it */
.hero { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 42px 16px 8px; background: radial-gradient(ellipse 70% 100% at 50% -20%, var(--brand-mist) 0%, rgba(241, 248, 248, 0) 70%); }
.hero img { width: min(300px, 66%); height: auto; animation: fadein .7s ease both; }
.hero-sub { margin: 14px 0 0; color: var(--ink2); font-size: 18px; max-width: 580px; line-height: 1.5; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.trust:empty { display: none; }
.trust li { display: inline-flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; font-size: 13.5px; color: var(--ink2); font-weight: 500; }
.trust svg { color: var(--brand); flex: none; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* shop */
.shop { max-width: 1200px; margin: 0 auto; padding: 24px 20px 64px; }
.filters { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 22px; }
.cats { display: flex; gap: 8px; overflow-x: auto; max-width: 100%; scrollbar-width: none; padding: 3px; }
.cats::-webkit-scrollbar { display: none; }
.cats button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 16px; white-space: nowrap; font-size: 15px; font-weight: 500; color: var(--ink2); transition: background .15s, color .15s, border-color .15s; }
.cats button:hover { border-color: var(--turq); color: var(--brand-dark); background: var(--brand-mist); }
.cats button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(0, 120, 132, .18); }
.search { flex: 0 1 300px; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; color: var(--muted); }
.search input { flex: 1; border: 0; outline: 0; background: none; height: 42px; min-width: 0; }
.search:focus-within { border-color: var(--brand); box-shadow: var(--focus); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 22px; }
.loading, .empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 48px 0; }

/* product card */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s, border-color .25s; }
.card:hover { box-shadow: 0 14px 34px rgba(0, 91, 101, .10); transform: translateY(-2px); border-color: #D3E4E4; }
.card .media { position: relative; aspect-ratio: 1 / 1; background: var(--soft); cursor: pointer; overflow: hidden; }
.card .mwrap { position: absolute; inset: 0; }
.card .mwrap img, .card .mwrap video { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .5s; }
.card .mwrap .img2 { position: absolute; inset: 0; opacity: 0; }
@media (hover: hover) {
  .card:hover .mwrap .img2[src] { opacity: 1; }
  .card:hover .mwrap img:only-child { transform: scale(1.03); }
}
.card .play { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.card .play i { width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .9); display: grid; place-items: center; color: var(--ink); font-style: normal; font-size: 16px; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); padding-inline-start: 3px; }
.tags { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.sale-tag, .tag-new, .tag-hot { font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; line-height: 1.5; white-space: nowrap; }
.sale-tag { background: var(--gold); color: #fff; }
.tag-new { background: var(--brand); color: #fff; }
.tag-hot { background: rgba(255, 255, 255, .94); color: var(--gold-dark); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.card.sold .mwrap { filter: grayscale(.7); opacity: .75; }
.sold-tag { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; background: rgba(35, 49, 48, .85); color: #fff; font-size: 13px; padding: 3px 10px; border-radius: 999px; }
.card .info { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; gap: 5px; }
.card h3 { font-size: 16px; font-weight: 500; margin: 0; line-height: 1.4; cursor: pointer; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { font-size: 13px; color: var(--muted); }
.card .meta.dig { color: var(--brand-dark); }
.card .meta.low { color: var(--gold-dark); font-weight: 500; }
.card .row { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-size: 19px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.price s { color: var(--muted); font-size: 14px; font-weight: 400; margin-inline-start: 6px; }
.price.sale-price { color: var(--brand-dark); }
.buy-btn { border: 0; background: var(--brand-soft); color: var(--brand-dark); border-radius: 999px; padding: 8px 15px; font-size: 14px; font-weight: 600; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: background .15s, color .15s; }
.buy-btn:hover { background: var(--brand); color: #fff; }
.buy-btn:disabled { color: var(--muted); background: var(--soft); cursor: not-allowed; }
.ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 42px; color: #C9D9D8; background: var(--soft); }
.ph.big { min-height: 320px; font-size: 64px; }
.ph.sm { width: 64px; height: 64px; font-size: 24px; border-radius: 10px; }

/* footer */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 32px 20px 100px; }
.f-trust { max-width: 1200px; margin: 0 auto 26px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.f-trust:empty { display: none; }
.f-trust li { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink2); background: var(--bg); border: 1px solid var(--line2); border-radius: 12px; padding: 11px 13px; }
.f-trust svg { color: var(--brand); flex: none; }
.footer-in { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.f-brand { display: flex; flex-direction: column; }
.f-brand b { font-family: var(--head); font-size: 22px; color: var(--brand); font-weight: 700; }
.f-brand span { color: var(--gold-dark); font-size: 14px; }
.f-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.f-links a { color: var(--ink2); text-decoration: none; }
.f-links a:hover { color: var(--brand); }
.copy { max-width: 1200px; margin: 20px auto 0; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line2); padding-top: 14px; }
.wa-float { position: fixed; left: 18px; bottom: 18px; width: 52px; height: 52px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); z-index: 25; }

/* overlays & dialogs */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(20, 40, 42, .5); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.dialog { position: relative; background: var(--surface); border-radius: 20px; width: min(560px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; box-shadow: var(--shadow-lg); }
.close { position: absolute; top: 12px; left: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); font-size: 22px; line-height: 1; display: grid; place-items: center; z-index: 3; color: var(--ink2); box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.close:hover { color: var(--ink); background: var(--soft); }
.dlg-head { position: sticky; top: 0; background: var(--surface); z-index: 2; padding: 18px 20px 14px; border-bottom: 1px solid var(--line2); }
.dlg-head h2 { margin: 0; font-size: 19px; font-weight: 600; }
.dlg-head .close { top: 12px; box-shadow: none; }

/* product view */
.product-dialog { width: min(1040px, 100%); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); border-radius: 22px; }
.p-media, .p-body { min-width: 0; }
.p-media { background: var(--soft); position: relative; min-height: 320px; }
.p-media .main { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: var(--soft); }
.p-media video { width: 100%; max-height: 70vh; background: #000; }
.thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.thumbs button { flex: none; width: 60px; height: 60px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--surface); opacity: .75; }
.thumbs button.on { border-color: var(--brand); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .vid { display: grid; place-items: center; height: 100%; font-size: 18px; color: var(--brand); }
.p-media .illus-line { margin: 0; text-align: center; font-size: 12px; color: var(--muted); padding: 2px 0 10px; }
.p-body { padding: 34px 28px 26px; display: flex; flex-direction: column; gap: 14px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badges:not(:has(.chip:not([hidden]))) { display: none; }
.chip { font-size: 13px; color: var(--ink2); background: var(--soft); border-radius: 999px; padding: 2px 10px; }
.chip.sale { background: var(--gold); color: #fff; }
.chip:empty { display: none; }
.p-body h2 { font-family: var(--head); margin: 0; font-size: 30px; line-height: 1.2; font-weight: 700; }
.p-price .price { font-size: 28px; }
.p-price .price s { font-size: 16px; }
.p-desc { white-space: pre-line; color: var(--ink2); border-top: 1px solid var(--line2); padding-top: 14px; }
.p-desc:empty { display: none; }
.p-stock { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.p-stock:empty { display: none; }
.p-stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.p-stock.in { color: var(--ok); } .p-stock.in::before { background: var(--ok); }
.p-stock.low { color: var(--gold-dark); font-weight: 500; } .p-stock.low::before { background: var(--gold); }
.p-stock.out { color: var(--danger); } .p-stock.out::before { background: var(--danger); }
.p-stock.dig { color: var(--brand-dark); } .p-stock.dig::before { background: var(--brand); }
.bulk-note { background: var(--gold-soft); color: var(--gold-dark); border-radius: 10px; padding: 9px 12px; font-weight: 500; font-size: 15px; }
.p-buy { display: flex; gap: 10px; align-items: center; }
.p-buy .btn { flex: 1; }
.p-buy .qty { flex: none; }
.p-buy .qty button { width: 40px; height: 48px; }
.p-buy .qty input { width: 40px; height: 48px; font-size: 16px; }
.p-trust { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink2); }
.p-trust:empty { display: none; }
.p-trust li { display: flex; gap: 8px; align-items: flex-start; }
.p-trust svg { color: var(--brand); flex: none; margin-top: 3px; }
.related { border-top: 1px solid var(--line2); padding-top: 14px; }
.related:empty { display: none; }
.rel-title { font-size: 14px; font-weight: 600; color: var(--ink2); margin: 0 0 10px; }
.rel-list { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.rel { flex: none; width: 132px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 0; overflow: hidden; text-align: start; display: flex; flex-direction: column; transition: border-color .15s; }
.rel:hover { border-color: var(--brand); }
.rel img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--soft); }
.rel .ph { aspect-ratio: 1 / 1; height: auto; font-size: 26px; }
.rel .rn { font-size: 13px; line-height: 1.3; padding: 8px 9px 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rel .rp { font-size: 13.5px; font-weight: 700; padding: 0 9px 9px; color: var(--ink); }
.link-btn { background: none; border: 0; color: var(--ink2); display: inline-flex; gap: 6px; align-items: center; align-self: flex-start; font-size: 14px; padding: 4px 0; }
.link-btn:hover { color: var(--brand); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.qty button { width: 32px; height: 32px; border: 0; background: none; font-size: 17px; color: var(--ink2); }
.qty button:hover { background: var(--soft); }
.qty input { width: 36px; height: 32px; border: 0; text-align: center; -moz-appearance: textfield; background: none; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* buttons */
.btn { border: 0; border-radius: 12px; padding: 12px 18px; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; justify-content: center; text-decoration: none; font-size: 16px; transition: background .15s, border-color .15s, color .15s; }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); }
.btn.primary.big { box-shadow: 0 8px 22px rgba(0, 120, 132, .22); }
.btn.primary:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn.ghost { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn.outline { background: var(--surface); border: 1px solid var(--brand); color: var(--brand); }
.btn.small { padding: 7px 12px; font-size: 14px; border-radius: 10px; }
.btn.big { padding: 15px 18px; font-size: 17px; }
.btn.block { width: 100%; }

/* cart drawer */
.drawer-overlay { justify-content: flex-start; padding: 0; }
.drawer { background: var(--surface); width: min(440px, 100%); height: 100%; display: flex; flex-direction: column; animation: slidein .22s ease; }
@keyframes slidein { from { transform: translateX(-100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line2); }
.drawer-head h2 { margin: 0; font-size: 19px; font-weight: 600; }
.drawer-head .close { position: static; box-shadow: none; }
.drawer-actions { padding: 12px 18px 0; }
.cart-lines { flex: 1; overflow-y: auto; padding: 4px 18px; }
.line { display: grid; grid-template-columns: 68px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line2); align-items: start; }
.line img { width: 68px; height: 68px; object-fit: cover; border-radius: 10px; background: var(--soft); }
.line .nm { font-size: 15px; font-weight: 500; line-height: 1.35; }
.line .pr { color: var(--ink2); font-size: 14px; margin-top: 2px; }
.line .tag { font-size: 12px; color: var(--muted); }
.line .ctrl { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.trash { border: 0; background: none; color: var(--muted); padding: 4px; border-radius: 8px; }
.trash:hover { color: var(--danger); background: var(--danger-soft); }
.oos { color: var(--danger); font-size: 13px; font-weight: 600; }
.cart-empty { text-align: center; color: var(--muted); padding: 60px 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cart-empty svg { color: var(--turq); }
.cart-empty b { color: var(--ink); font-size: 17px; font-weight: 600; }
.cart-foot { border-top: 1px solid var(--line); padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.lbl { font-size: 14px; font-weight: 600; margin: 2px 0 6px; }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg2 button, .pick-list button { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 8px; font-size: 15px; }
.seg2 button.on, .pick-list button.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; box-shadow: inset 0 0 0 1px var(--brand); }
.pick-list { display: flex; flex-direction: column; gap: 6px; }
.pick-list button { display: flex; flex-direction: column; align-items: flex-start; text-align: right; gap: 1px; font-size: 14px; }
.warn { color: var(--danger); font-weight: 500; font-size: 14px; margin: 4px 0 0; }
.dl-info { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; color: var(--ink2); margin: 0; }
.ship-progress { font-size: 14px; color: var(--ink2); }
.ship-progress .bar { height: 6px; background: var(--line); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.ship-progress .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--turq), var(--brand)); border-radius: 4px; transition: width .3s; }
.ship-progress.done { color: var(--ok); font-weight: 500; }
.coupon-toggle { align-self: flex-start; background: none; border: 0; padding: 2px 0; color: var(--brand); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; min-width: 0; background: var(--surface); }
.coupon-msg { margin: 0; font-size: 14px; }
.coupon-msg:empty { display: none; }
.coupon-msg.ok { color: var(--ok); } .coupon-msg.err { color: var(--danger); }
.link-x { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: 13px; padding: 0 4px; }
.note-line { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.note-line:empty { display: none; }
.keep-shopping { align-self: center; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--ink2); }
.sum-row.item { font-size: 14px; color: var(--muted); }
.sum-row.item + .sum-row:not(.item) { margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--line); }
.sum-row.good { color: var(--ok); }
.sum-row.total { font-size: 19px; font-weight: 700; color: var(--ink); border-top: 1px solid var(--line); padding-top: 10px; margin: 4px 0 6px; }

/* checkout */
.checkout form { padding: 16px 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.checkout label { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 500; color: var(--ink2); }
.frow2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#shipFields { display: flex; flex-direction: column; gap: 10px; }
.checkout input, .checkout select, .checkout textarea { border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; background: var(--surface); font-weight: 400; width: 100%; color: var(--ink); }
.checkout input:focus, .checkout select:focus, .checkout textarea:focus { outline: 0; border-color: var(--brand); box-shadow: var(--focus); }
.checkout input[dir="ltr"] { text-align: right; }
.digital-note { background: var(--brand-soft); color: var(--brand-dark); border-radius: 10px; padding: 9px 12px; text-align: right; font-size: 14px; }
.upsell { border: 1px solid #EBDDBB; background: var(--gold-soft); border-radius: 14px; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.upsell .ttl { grid-column: 1 / -1; font-size: 13px; color: var(--gold-dark); font-weight: 600; }
.upsell .it { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.upsell img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex: none; }
.upsell .btn { background: var(--surface); border: 1px solid var(--gold); color: var(--gold-dark); }
.upsell .btn:hover { background: var(--gold); color: #fff; }
.upsell.added .btn { border-color: var(--ok); color: var(--ok); background: var(--surface); }
.co-sum { background: var(--bg); border: 1px solid var(--line2); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.co-sum:empty { display: none; }
.co-sum .sum-row.total { margin: 6px 0 0; }
.form-err { color: var(--danger); margin: 0; font-weight: 500; font-size: 15px; }
.form-err:empty { display: none; }
.secure { text-align: center; color: var(--muted); font-size: 13px; margin: -6px 0 0; }
.pickup-box { background: var(--brand-soft); border-radius: 12px; padding: 10px 14px; font-size: 15px; }
.price.sm { font-size: 16px; }

/* scan-to-cart */
.qty-dialog { width: min(420px, 100%); }
.qty-body { padding: 16px 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.qty-body p { margin: 0; }
.q-item { display: flex; gap: 12px; align-items: center; }
.q-item img { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; }
.qty.big { align-self: center; border-radius: 14px; }
.qty.big button { width: 52px; height: 52px; font-size: 24px; }
.qty.big input { width: 64px; height: 52px; font-size: 20px; }
.scan-dialog { padding-bottom: 16px; }
.scan-dialog video { width: 100%; background: #000; aspect-ratio: 1 / 1; object-fit: cover; }
.scan-dialog .note-line { margin: 12px 16px 0; }
.scan-hint { margin: 12px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.scan-foot { padding: 12px 16px 0; }

/* toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; z-index: 80; font-size: 15px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); max-width: calc(100% - 32px); text-align: center; }

/* simple pages (order / downloads / return / login) */
.page { max-width: 620px; margin: 0 auto; padding: 32px 16px 64px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 30px 26px; box-shadow: var(--shadow); }
.panel h1 { font-family: var(--head); margin: 0 0 8px; font-size: 30px; line-height: 1.25; font-weight: 700; }
.panel form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.panel label { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 500; color: var(--ink2); }
.panel input, .panel textarea, .panel select { border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; background: var(--surface); font-weight: 400; color: var(--ink); }
.panel input:focus, .panel textarea:focus, .panel select:focus { outline: 0; border-color: var(--brand); box-shadow: var(--focus); }
.ok-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: 30px; margin: 0 auto 12px; }
.bad-ico { background: var(--danger-soft); color: var(--danger); }
.dl-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.dl-list a { display: flex; gap: 10px; align-items: center; background: var(--brand-soft); color: var(--brand-dark); border-radius: 12px; padding: 12px 14px; text-decoration: none; font-weight: 600; }
.items { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.items td { padding: 8px 0; border-bottom: 1px solid var(--line2); }
.items td:last-child { text-align: left; white-space: nowrap; }
.big-code { font-size: 46px; font-weight: 800; letter-spacing: 2px; color: var(--brand-dark); background: var(--brand-soft); border-radius: 14px; text-align: center; margin: 6px 0; padding: 6px 12px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.info-box { background: var(--bg); border: 1px solid var(--line2); border-radius: 12px; padding: 12px 14px; margin: 12px 0; font-size: 15px; }
.item-row { display: flex; gap: 8px; align-items: center; }
.item-row input[type=number] { width: 76px; }
.item-row .x { border: 0; background: none; color: var(--danger); font-size: 22px; padding: 0 6px; }
.req-note { color: var(--muted); font-size: 13px; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--brand-soft); border-top-color: var(--brand); border-radius: 50%; animation: spin 1s linear infinite; margin: 10px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .nav-desk { display: none; }
  .menu-btn { display: grid; }
}
@media (max-width: 760px) {
  .topbar-in { height: 58px; padding: 0 16px; }
  .brand img { height: 32px; }
  .hero { padding: 26px 16px 0; }
  .hero-sub { font-size: 15.5px; }
  .trust { gap: 6px 8px; margin-top: 14px; }
  .trust li { font-size: 12.5px; padding: 5px 11px; }
  .shop { padding: 18px 16px 56px; }
  .filters { flex-direction: column-reverse; align-items: stretch; gap: 10px; margin-bottom: 16px; }
  .search { flex: 1 1 auto; }
  .product-dialog { grid-template-columns: minmax(0, 1fr); }
  .p-body { padding: 20px 18px 22px; gap: 12px; }
  .p-body h2 { font-size: 24px; }
  .p-price .price { font-size: 24px; }
  /* the buy row stays in view while the rest of the product scrolls */
  .p-buy { position: sticky; bottom: -1px; z-index: 2; background: var(--surface); padding: 10px 0; box-shadow: 0 -10px 16px -6px rgba(255, 255, 255, .95); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card { border-radius: 14px; }
  .card .info { padding: 10px 12px 12px; }
  .card h3 { font-size: 15px; }
  .card .row { flex-direction: column; align-items: stretch; gap: 8px; }
  .price { font-size: 17px; }
  .buy-btn { justify-content: center; padding: 8px 10px; }
  .tags { top: 8px; inset-inline-start: 8px; }
  .sale-tag, .tag-new, .tag-hot, .sold-tag { font-size: 12px; padding: 2px 8px; }
  .sold-tag { top: 8px; inset-inline-end: 8px; }
  .overlay:not(.drawer-overlay) { padding: 0; align-items: flex-end; }
  .dialog { border-radius: 18px 18px 0 0; max-height: 94vh; max-height: 94dvh; width: 100%; }
  .frow2 { grid-template-columns: 1fr; }
  .footer { padding: 26px 16px 100px; }
  .footer-in { flex-direction: column; }
  .f-trust { grid-template-columns: 1fr 1fr; gap: 8px; }
  .f-trust li { font-size: 13px; padding: 9px 10px; }
}
@media (max-width: 560px) {
  .cart-lbl { display: none; }
  .cart-btn { padding: 9px 11px; }
  .cart-btn .badge { position: absolute; top: -4px; left: -2px; min-width: 18px; height: 18px; font-size: 11px; padding: 0 5px; box-shadow: 0 0 0 2px #fff; }
}
@media (max-width: 340px) { .grid { grid-template-columns: 1fr; } .f-trust { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
