/* GateDeal storefront — deep navy brand, warm orange for buying, clear blue for links. */
:root {
  --ink: #0e1d3d;
  --ink-2: #1a5fd6;
  --blue: #1d6ff2;
  --tag: #ff7a1a;
  --tag-ink: #0e1d3d;
  --tag-soft: #fff1e6;
  --blue-soft: #eaf1ff;
  --bg: #ffffff;
  --surface: #f5f7fb;
  --line: #e5e8ef;
  --text: #0f172a;
  --muted: #5b6475;
  --bad: #b8322a;
  --good: #1d7a4e;
  --heart: #d23b4b;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --shadow: 0 10px 30px rgba(14, 29, 61, .10);
  --display: "Inter", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --hdr-h: 112px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 0.9375rem/1.5 var(--body); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; box-shadow: 0 0 0 2px #fff; border-radius: 4px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--tag); color: var(--tag-ink); padding: 8px 12px; z-index: 60; font-weight: 700; border-radius: var(--r-sm); }
.skip:focus { inset-inline-start: 8px; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.5rem, 3.2vw, 2.125rem); font-weight: 800; }
h2 { font-size: 1.375rem; font-weight: 700; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .ic.flip { transform: scaleX(-1); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; }
.top-main { background: var(--ink); color: #fff; }
.top-row { display: flex; align-items: center; gap: 10px; min-height: 68px; }
.hdr-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--r-sm); background: transparent; color: inherit; cursor: pointer; padding: 0; flex: none; }
.hdr-btn:hover { background: rgba(255,255,255,.1); }
.hdr-btn .ic { width: 24px; height: 24px; }
.menu-btn { display: none; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; flex: none; color: #fff; }
.logo img { display: block; height: 34px; width: auto; }
.search { flex: 1; display: flex; min-width: 0; max-width: 680px; margin: 0 auto; background: #fff; border-radius: 999px; padding: 4px; }
.search input { flex: 1; min-width: 0; min-height: 42px; border: 0; background: transparent; padding: 0 16px; color: var(--text); border-radius: 999px; }
.search input::placeholder { color: var(--muted); }
.search input:focus-visible { outline-offset: 0; }
.search > button { flex: none; display: grid; place-items: center; width: 52px; min-height: 42px; border: 0; border-radius: 999px; background: var(--tag); color: var(--tag-ink); cursor: pointer; }
.search > button .ic { width: 22px; height: 22px; stroke-width: 2.2; }
.search > button:hover { background: #ff8c3a; }
.search.inline { margin: 20px 0; max-width: 560px; border: 2px solid var(--ink); }
.hdr-link, .ship-to summary { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--r-sm); color: #fff; text-decoration: none; flex: none; cursor: pointer; }
.hdr-link:hover, .ship-to summary:hover { background: rgba(255,255,255,.1); }
.hdr-link .ic, .ship-to .ic { width: 24px; height: 24px; }
.hdr-txt { display: grid; font-weight: 600; font-size: 0.8125rem; line-height: 1.2; white-space: nowrap; }
.hdr-txt small { font-weight: 400; font-size: 0.75rem; color: #c8d1e6; max-width: 15ch; overflow: hidden; text-overflow: ellipsis; }
.ship-to { position: relative; flex: none; }
.ship-to summary { list-style: none; }
.ship-to summary::-webkit-details-marker { display: none; }
.ship-to .flag { font-size: 1.25rem; line-height: 1; }
.ship-to-cur { font-size: 0.75rem; font-weight: 600; color: #c8d1e6; border-inline-start: 1px solid rgba(255,255,255,.25); padding-inline-start: 8px; }
.ship-to-panel { position: absolute; inset-inline-end: 0; top: calc(100% + 10px); width: 300px; background: #fff; color: var(--text); border-radius: var(--r); padding: 18px; box-shadow: 0 18px 44px rgba(14, 29, 61, .28); display: grid; gap: 10px; z-index: 5; }
.ship-to-panel label { font-weight: 600; }
.ship-to-panel select { min-height: 42px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 8px; background: #fff; }
.ship-to-panel p { margin: 0; color: var(--muted); font-size: 0.8125rem; }
.ship-to-panel button { min-height: 44px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; cursor: pointer; }
.cart-ic { position: relative; display: grid; }
.cart-count { position: absolute; top: -7px; inset-inline-end: -9px; min-width: 19px; min-height: 19px; padding: 0 5px; border-radius: 10px; background: var(--tag); color: var(--tag-ink); font: 700 0.75rem/19px var(--body); text-align: center; }
.cats { background: #fff; border-bottom: 1px solid var(--line); color: var(--text); box-shadow: 0 2px 10px rgba(14, 29, 61, .04); }
.cats-row { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; min-height: 44px; }
.cats-row::-webkit-scrollbar { display: none; }
.cats-row a, .all-cats { flex: none; padding: 11px 12px; text-decoration: none; font-weight: 500; color: #3a4357; white-space: nowrap; border: 0; background: none; cursor: pointer; font-size: 0.875rem; }
.cats-row a:hover { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.all-cats { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); border-inline-end: 1px solid var(--line); margin-inline-end: 6px; padding-inline-start: 0; }

/* ---------- category drawer ---------- */
.drawer { margin: 0; padding: 0; border: 0; width: min(380px, 90vw); max-width: none; height: 100dvh; max-height: none; inset-block: 0; inset-inline-start: 0; inset-inline-end: auto; background: #fff; color: var(--text); box-shadow: 0 0 40px rgba(14, 29, 61, .3); overflow-y: auto; overscroll-behavior: contain; }
.drawer::backdrop { background: rgba(14, 29, 61, .55); }
.drawer-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 20px; background: var(--ink); color: #fff; z-index: 1; }
.drawer-head h2 { font-size: 1.125rem; }
.drawer-list, .drawer-list ul { list-style: none; margin: 0; padding: 0; }
.drawer-list > li { border-bottom: 1px solid var(--line); }
.drawer-list summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 20px; font-weight: 600; cursor: pointer; min-height: 48px; }
.drawer-list summary::-webkit-details-marker { display: none; }
.drawer-list summary:hover { background: var(--surface); }
.drawer-list .chev { transition: transform .15s; color: var(--muted); }
.drawer-list details[open] .chev { transform: rotate(180deg); }
.drawer-list details ul { padding: 0 0 10px; }
.drawer-list details a { display: block; padding: 9px 20px 9px 32px; text-decoration: none; color: #3a4357; font-size: 0.9375rem; }
[dir="rtl"] .drawer-list details a { padding: 9px 32px 9px 20px; }
.drawer-list details a:hover { color: var(--ink-2); background: var(--surface); }
.drawer-list details b { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .drawer[open] { animation: drawer-in .2s ease-out; }
  [dir="rtl"] .drawer[open] { animation-name: drawer-in-rtl; }
}
@keyframes drawer-in { from { transform: translateX(-100%); } }
@keyframes drawer-in-rtl { from { transform: translateX(100%); } }
body.no-scroll { overflow: hidden; }

/* ---------- prices ---------- */
.tag, .price { font: 800 1.0625rem/1.15 var(--body); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; color: var(--text); direction: ltr; unicode-bidi: isolate; }
.tag { display: inline-block; align-self: flex-start; }
.tag.big { display: block; font-size: 2rem; margin: 14px 0 6px; }

/* ---------- product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 24px 16px; }
.grid.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 184px; gap: 16px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.rail .card { scroll-snap-align: start; }
.card { position: relative; display: flex; flex-direction: column; gap: 8px; text-decoration: none; min-width: 0; }
.card-link { display: flex; flex-direction: column; gap: 8px; text-decoration: none; min-width: 0; color: inherit; }
.card-img { position: relative; display: block; aspect-ratio: 1; background: var(--surface); border-radius: var(--r); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-title { font-size: 0.875rem; line-height: 1.35; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.card-link:hover .card-title, .card:hover > .card-title { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.card-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-height: 40px; align-content: center; }
.card:has(.card-add) .card-foot { padding-inline-end: 48px; }
.card-from { flex-basis: 100%; font-size: 0.75rem; color: var(--muted); }
.card-wish { position: absolute; top: 8px; inset-inline-end: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.94); color: var(--text); display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 6px rgba(14, 29, 61, .18); padding: 0; }
.card-wish .ic { width: 19px; height: 19px; stroke-width: 2; }
.card-wish:hover { color: var(--heart); }
.card-wish[aria-pressed="true"] { color: var(--heart); }
.card-wish[aria-pressed="true"] .ic { fill: currentColor; }
.card-add { position: absolute; bottom: 0; inset-inline-end: 0; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--tag); color: var(--tag-ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.card-add .ic { width: 20px; height: 20px; stroke-width: 2.4; }
.card-add > span[aria-hidden] { display: none; }
.card-add:hover { background: #ff8c3a; }
.card-add.is-busy { opacity: .6; pointer-events: none; }
.card-add.is-done { background: var(--good); color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .card-img img { transition: transform .25s ease; }
  .card-link:hover .card-img img { transform: scale(1.04); }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: #1b2f5e; }
.btn.cta, .btn.add { background: var(--tag); color: var(--tag-ink); }
.btn.cta:hover, .btn.add:hover { background: #ff8c3a; }
.btn.cta { min-height: 50px; padding: 0 26px; font-size: 1rem; }
.btn.add { font: 800 1.0625rem/1 var(--body); min-height: 54px; width: 100%; }
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { background: #eef2fa; }
.btn[disabled] { background: var(--surface); color: var(--muted); cursor: not-allowed; }

/* ---------- home ---------- */
.home-top { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 16px; margin-top: 20px; }
.hero { position: relative; overflow: hidden; border-radius: var(--r-lg); min-height: 420px; display: flex; align-items: center; color: #fff; background: linear-gradient(115deg, #0e1d3d 0%, #13306f 48%, #1d5fd6 100%); isolation: isolate; }
[dir="rtl"] .hero { background: linear-gradient(245deg, #0e1d3d 0%, #13306f 48%, #1d5fd6 100%); }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,29,61,.88) 0%, rgba(14,29,61,.55) 45%, rgba(14,29,61,0) 75%); }
[dir="rtl"] .hero.has-photo::before { background: linear-gradient(270deg, rgba(14,29,61,.88) 0%, rgba(14,29,61,.55) 45%, rgba(14,29,61,0) 75%); }
.hero-collage { position: absolute; inset-block: 24px; inset-inline-end: 24px; width: 46%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; z-index: -1; }
.col-img { display: block; border-radius: var(--r); overflow: hidden; background: rgba(255,255,255,.08); box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.col-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-collage .col-0 { grid-row: span 2; }
.hero-collage .col-3 { display: none; }
.hero-copy { position: relative; padding: 40px 44px; max-width: 52%; display: grid; gap: 14px; justify-items: start; }
.eyebrow { margin: 0; font-size: 0.8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ffb27a; }
.hero-copy h1 { font: 400 clamp(2rem, 4.2vw, 3.25rem)/1.05 var(--serif); letter-spacing: -0.01em; }
.hero-sub { margin: 0; font-size: 1.0625rem; color: #dbe3f4; max-width: 38ch; }
.hero-copy .btn { margin-top: 6px; }
.promo-col { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 16px; }
.promo { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 16px 16px 20px; border-radius: var(--r-lg); text-decoration: none; color: var(--ink); min-height: 120px; overflow: hidden; }
[dir="rtl"] .promo { padding: 16px 20px 16px 16px; }
.promo.tone-0 { background: var(--blue-soft); }
.promo.tone-1 { background: var(--tag-soft); }
.promo.tone-2 { background: #e9f6ef; }
.promo-text { display: grid; gap: 8px; min-width: 0; }
.promo-title { font: 400 1.375rem/1.1 var(--serif); }
.promo-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.875rem; color: var(--ink-2); }
.promo:hover .promo-go { text-decoration: underline; text-underline-offset: 3px; }
.promo-pic { flex: none; width: 96px; height: 96px; border-radius: var(--r); overflow: hidden; background: #fff; box-shadow: 0 6px 18px rgba(14,29,61,.12); }
.promo-pic img, .promo-pic .col-img { width: 100%; height: 100%; object-fit: cover; box-shadow: none; border-radius: 0; }
.trust { margin-top: 20px; }
.trust ul { list-style: none; margin: 0; padding: 16px 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.trust li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.trust li > .ic { width: 30px; height: 30px; color: var(--ink-2); stroke-width: 1.6; }
.trust b { display: block; font-size: 0.875rem; }
.trust small { display: block; color: var(--muted); font-size: 0.8125rem; overflow-wrap: anywhere; }
.block { margin-top: 44px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 16px; flex-wrap: wrap; }
.block-head h2 { display: flex; align-items: center; gap: 10px; }
.block-head a, .block-head .more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink-2); background: none; border: 0; padding: 6px 0; cursor: pointer; text-decoration: none; font-size: 0.9375rem; }
.block-head a:hover, .block-head .more:hover { text-decoration: underline; text-underline-offset: 3px; }
.circles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px 12px; }
.circle { display: grid; gap: 8px; text-decoration: none; justify-items: center; }
.circle-img { display: block; width: 100%; max-width: 128px; aspect-ratio: 1; border-radius: 50%; background: var(--surface); overflow: hidden; border: 3px solid var(--surface); transition: border-color .15s; }
.circle:hover .circle-img { border-color: var(--tag); }
.circle-img img { width: 100%; height: 100%; object-fit: cover; }
.circle-name { text-align: center; font-weight: 600; font-size: 0.875rem; line-height: 1.25; }
.circle:hover .circle-name { color: var(--ink-2); }
.tabs-pill { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border-radius: 999px; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.tabs-pill button { flex: none; border: 0; background: transparent; padding: 9px 18px; border-radius: 999px; font-weight: 600; color: #3a4357; cursor: pointer; font-size: 0.875rem; }
.tabs-pill button:hover { color: var(--ink); background: #e9edf5; }
.tabs-pill button[aria-selected="true"] { background: var(--ink); color: #fff; }
[role="tabpanel"]:focus-visible { outline-offset: 6px; }
.value-band { background: var(--tag-soft); border-radius: var(--r-lg); padding: 22px 22px 14px; }
.value-band .block-head h2 .ic { width: 26px; height: 26px; color: #b4500c; }
.wide-banners { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wide { position: relative; display: flex; align-items: center; min-height: 230px; padding: 28px 30px; border-radius: var(--r-lg); overflow: hidden; text-decoration: none; isolation: isolate; }
.wide.tone-w0 { background: linear-gradient(120deg, #0e1d3d, #1a3a8f); color: #fff; }
.wide.tone-w1 { background: var(--blue-soft); color: var(--ink); }
.wide.has-photo { color: #fff; }
.wide-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.wide.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,29,61,.85), rgba(14,29,61,.2) 70%); }
[dir="rtl"] .wide.has-photo::before { background: linear-gradient(270deg, rgba(14,29,61,.85), rgba(14,29,61,.2) 70%); }
.wide-pics { position: absolute; inset-block: 22px; inset-inline-end: 22px; width: 48%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; z-index: -1; align-items: center; }
.wide-pics .col-img { aspect-ratio: 3 / 4; }
.wide-pics .col-1 { transform: translateY(-10px); }
.wide-text { display: grid; gap: 10px; justify-items: start; max-width: 48%; }
.wide-title { font: 400 1.875rem/1.05 var(--serif); }
.wide-sub { font-size: 0.9375rem; opacity: .9; }
.wide .btn { min-height: 42px; padding: 0 18px; font-size: 0.875rem; }
.wide.tone-w1 .btn.light { background: var(--ink); color: #fff; }

/* ---------- listing ---------- */
.listing { padding-top: 22px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.8125rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { text-decoration: none; }
.crumbs a:not(:last-child)::after { content: "/"; margin-inline-start: 6px; color: #b5bccb; }
.crumbs a:hover { color: var(--ink-2); text-decoration: underline; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.chip { padding: 8px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-size: 0.875rem; font-weight: 500; }
.chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.list-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 18px 0 16px; color: var(--muted); flex-wrap: wrap; }
.list-bar p { margin: 0; }
.sort { display: flex; align-items: center; gap: 8px; }
.sort select { min-height: 40px; border: 1px solid var(--line); border-radius: 999px; padding: 0 12px; background: #fff; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 36px 0 10px; }
.pg { min-width: 42px; min-height: 42px; padding: 0 12px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.pg:hover { border-color: var(--ink); }
.pg.cur { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty, .empty-page { padding: 40px 0; max-width: 60ch; }
.empty p, .empty-page p { color: var(--muted); font-size: 1rem; }

/* ---------- product ---------- */
.product { padding-top: 18px; }
.pd { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.gallery { min-width: 0; position: sticky; top: calc(var(--hdr-h) + 16px); }
.gallery-main { aspect-ratio: 1; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding: 3px; }
.thumb { flex: none; width: 68px; height: 68px; padding: 0; border: 2px solid transparent; border-radius: var(--r-sm); overflow: hidden; background: var(--surface); cursor: pointer; }
.thumb.on { border-color: var(--ink); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.buy h1 { font-size: clamp(1.25rem, 2.4vw, 1.625rem); font-weight: 700; line-height: 1.25; }
.buy-form { display: grid; gap: 16px; margin-top: 8px; }
.opt { border: 0; padding: 0; margin: 0; }
.opt legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.opt-chosen { font-weight: 400; color: var(--muted); }
.opt-vals { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-val input { position: absolute; opacity: 0; pointer-events: none; }
.opt-val span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 0.875rem; }
.opt-val span:hover { border-color: #9aa3b5; }
.opt-val input:checked + span { border-color: var(--ink); background: var(--blue-soft); font-weight: 600; }
.opt-val input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.opt-val.off span { color: var(--muted); border-style: dashed; text-decoration: line-through; }
.qty-row { display: flex; align-items: center; gap: 12px; }
.qty-row label { font-weight: 600; }
.qty-row input { width: 80px; min-height: 44px; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 0 10px; }
.stock { color: var(--muted); font-size: 0.875rem; }
.ship { margin: 0; padding: 12px 14px; background: var(--surface); border-radius: var(--r-sm); font-size: 0.875rem; }
.ship strong { font-weight: 600; }
.ship.bad { color: var(--bad); background: #fbecea; }
.weight { margin: 0; font-size: 0.875rem; }
.weight .k { font-weight: 600; margin-inline-end: 6px; }
.ship-opts { border: 0; padding: 0; margin: -6px 0 0; min-width: 0; }
.ship-opts legend { font-weight: 600; margin-bottom: 8px; padding: 0; font-size: 0.875rem; }
.ship-list { display: grid; gap: 6px; }
.ship-m { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); cursor: pointer; font-size: 0.875rem; }
.ship-m input { margin: 0; accent-color: var(--ink); }
.ship-m .n { font-weight: 600; overflow-wrap: anywhere; }
.ship-m .p { font-weight: 700; font-variant-numeric: tabular-nums; }
.ship-m .d { grid-column: 2 / -1; color: var(--muted); font-size: 0.8125rem; }
.ship-m:has(input:checked) { border-color: var(--ink); background: var(--blue-soft); }
.line-ship { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 6px 0; font-size: 0.8125rem; }
.line-ship label { color: var(--muted); }
.line-ship select { max-width: 100%; min-height: 34px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 6px; background: #fff; font-size: 0.8125rem; }
.added { margin: 0; min-height: 1.4em; color: var(--good); font-weight: 600; }
.added a { color: var(--ink-2); }
.fine { color: var(--muted); font-size: 0.8125rem; }
.notice { background: var(--surface); padding: 16px; border-radius: var(--r); margin-top: 16px; }
.notice p { margin: 0 0 12px; }
.desc { margin-top: 48px; max-width: 900px; }
.desc h2 { margin-bottom: 12px; }
.desc-body { color: #2a3348; overflow-wrap: anywhere; }
.desc-body img { height: auto; margin: 10px 0; border-radius: var(--r-sm); }
.desc-body table { border-collapse: collapse; margin: 10px 0; }
.desc-body td, .desc-body th { border: 1px solid var(--line); padding: 5px 9px; }

/* ---------- cart / checkout / order ---------- */
.cart, .checkout, .order { padding-top: 24px; }
.cart h1, .checkout h1, .order h1 { margin-bottom: 18px; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line-img { width: 96px; height: 96px; border-radius: var(--r); overflow: hidden; background: var(--surface); }
.line-img img { width: 100%; height: 100%; object-fit: cover; }
.line-title { font-weight: 600; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-title:hover { color: var(--ink-2); text-decoration: underline; }
.line-opts { margin: 4px 0 0; color: var(--muted); font-size: 0.875rem; }
.line-problem { margin: 6px 0 0; color: var(--bad); font-weight: 600; font-size: 0.875rem; }
.line-qty { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.line-qty input { width: 64px; min-height: 38px; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 0 8px; }
.link { border: 0; background: none; padding: 0; color: var(--ink-2); text-decoration: underline; cursor: pointer; font-size: 0.875rem; }
.line-price { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.totals { background: var(--surface); border-radius: var(--r-lg); padding: 22px; position: sticky; top: calc(var(--hdr-h) + 16px); display: grid; gap: 14px; border: 1px solid var(--line); }
.totals dl { margin: 0; display: grid; gap: 8px; }
.totals dl div { display: flex; justify-content: space-between; gap: 10px; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: end; }
.totals .grand { border-top: 1px solid var(--line); padding-top: 10px; font-size: 1.125rem; }
.totals .grand dt { color: var(--text); font-weight: 700; }
.totals .grand dd { font-weight: 800; }
.mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mini li { display: flex; gap: 10px; font-size: 0.875rem; }
.mini img { width: 52px; height: 52px; border-radius: var(--r-sm); object-fit: cover; flex: none; }
.mini span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mini small { display: block; color: var(--muted); }
.co-form { display: grid; gap: 14px; }
.co-form h2 { margin-top: 8px; }
.co-form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.875rem; }
.co-form label small { font-weight: 400; color: var(--muted); }
.co-form input, .co-form textarea { border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; font-weight: 400; background: #fff; }
.co-form input:hover, .co-form textarea:hover { border-color: #b5bccb; }
.co-form input { min-height: 46px; }
.two, .three { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.three { grid-template-columns: 2fr 1.4fr 1fr; }
.alert { background: #fbecea; color: var(--bad); padding: 12px 14px; border-radius: var(--r-sm); font-weight: 600; }
address { font-style: normal; color: var(--muted); }
.prose { padding-top: 26px; max-width: 72ch; }
.prose h2 { margin: 26px 0 6px; font-size: 1.125rem; }
.prose p { color: #2a3348; }
.prose a { color: var(--ink-2); }

/* ---------- footer ---------- */
.foot { margin-top: 72px; background: var(--ink); color: #fff; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 40px; }
.foot-brand p { color: #c8d1e6; max-width: 44ch; margin: 14px 0 0; font-size: 0.875rem; }
.foot-pay { display: flex; align-items: center; gap: 8px; color: #fff !important; font-weight: 600; }
.foot-pay .ic { color: #7fb0ff; }
.foot h2 { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #ffb27a; margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot nav a { color: #dbe3f4; text-decoration: none; font-size: 0.875rem; }
.foot nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-base { border-top: 1px solid rgba(255,255,255,.12); }
.foot-base-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; font-size: 0.8125rem; color: #c8d1e6; }
.foot-base-row p { margin: 0; display: flex; align-items: center; gap: 6px; }
.foot-base-row .ic { width: 16px; height: 16px; }
.foot :focus-visible { outline-color: #7fb0ff; box-shadow: none; }

/* ---------- bottom navigation (phones) ---------- */
.bottom-nav { display: none; }

/* ---------- mid-size screens ---------- */
@media (max-width: 1180px) {
  .grid.six { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .circles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hdr-link.wish-link .hdr-txt, .ship-to-cur { display: none; }
}
@media (max-width: 960px) {
  :root { --hdr-h: 64px; }
  .pd, .cart-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .gallery { position: static; }
  .totals { position: static; }
  .home-top { grid-template-columns: minmax(0, 1fr); }
  .promo-col { grid-template-rows: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .promo { flex-direction: column-reverse; align-items: flex-start; padding: 14px !important; }
  .promo-pic { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .grid.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .hdr-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .wide-banners { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- phones ---------- */
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .top { position: sticky; }
  .top-row { flex-wrap: wrap; min-height: 0; padding-top: 8px; padding-bottom: 10px; row-gap: 8px; gap: 4px; }
  .menu-btn { display: grid; margin-inline-start: -8px; }
  .logo img { height: 28px; }
  .search { order: 5; flex-basis: 100%; max-width: none; }
  .ship-to { margin-inline-start: auto; }
  .ship-to summary { padding: 6px; }
  .hdr-link { padding: 6px; }
  .wish-link { display: none; }
  .all-cats { display: none; }
  .cats-row { min-height: 40px; }
  .cats-row a { padding: 9px 10px; font-size: 0.8125rem; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; inset-inline: 0; bottom: 0; z-index: 35; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(14, 29, 61, .08); padding-bottom: env(safe-area-inset-bottom); }
  .bottom-nav > a, .bottom-nav > button { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 58px; padding: 6px 2px; border: 0; background: none; color: var(--muted); font-size: 0.6875rem; font-weight: 600; text-decoration: none; cursor: pointer; }
  .bottom-nav .ic { width: 23px; height: 23px; }
  .bottom-nav [aria-current="page"] { color: var(--ink); }
  .bottom-nav [aria-current="page"]::before { content: ""; position: absolute; top: 0; inset-inline: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--tag); }
  .bottom-nav .cart-count { top: -6px; inset-inline-end: -10px; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .a11y { bottom: calc(70px + env(safe-area-inset-bottom)) !important; }
  .consent { bottom: calc(58px + env(safe-area-inset-bottom)) !important; }
  .home-top { margin-top: 12px; gap: 12px; }
  .hero { min-height: 0; flex-direction: column; align-items: stretch; border-radius: var(--r); }
  .hero-collage { position: relative; inset: auto; width: auto; height: 180px; margin: 0 16px 16px; order: 2; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr; z-index: 0; }
  .hero-collage .col-0 { grid-row: auto; }
  .hero.has-photo { min-height: 380px; justify-content: flex-end; }
  .hero.has-photo::before { background: linear-gradient(0deg, rgba(14,29,61,.92) 0%, rgba(14,29,61,.5) 55%, rgba(14,29,61,.05) 100%) !important; }
  .hero-copy { max-width: none; padding: 24px 20px 18px; gap: 10px; }
  .hero-copy h1 { font-size: 2rem; }
  .hero-sub { font-size: 0.9375rem; }
  .hero-copy .btn { width: 100%; }
  .promo-col { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%; overflow-x: auto; scrollbar-width: none; gap: 10px; }
  .promo { min-height: 0; border-radius: var(--r); }
  .promo-title { font-size: 1.125rem; }
  .trust ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; padding: 14px; border-radius: var(--r); }
  .trust li { align-items: flex-start; gap: 8px; }
  .trust li > .ic { width: 24px; height: 24px; }
  .block { margin-top: 32px; }
  h2 { font-size: 1.1875rem; }
  .circles { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84px; overflow-x: auto; scrollbar-width: none; gap: 12px; padding-bottom: 4px; }
  .circle-name { font-size: 0.8125rem; }
  .grid, .grid.six { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .grid.six > .card:nth-child(n+9) { display: none; }
  .rail { grid-auto-columns: 44%; gap: 12px; }
  .value-band { padding: 16px 14px 8px; border-radius: var(--r); margin-inline: 0; }
  .wide { min-height: 200px; padding: 20px; border-radius: var(--r); }
  .wide-pics { width: 42%; inset-block: 16px; inset-inline-end: 12px; grid-template-columns: repeat(2, 1fr); }
  .wide-pics .col-2 { display: none; }
  .wide-text { max-width: 56%; }
  .wide-title { font-size: 1.5rem; }
  .two, .three { grid-template-columns: 1fr; }
  .line { grid-template-columns: 76px minmax(0, 1fr); }
  .line-img { width: 76px; height: 76px; }
  .line-price { grid-column: 2; }
  .tag.big { font-size: 1.75rem; }
  .foot { margin-top: 48px; }
  .foot-grid { gap: 24px; padding-top: 32px; padding-bottom: 28px; }
  .card-wish { width: 34px; height: 34px; top: 6px; inset-inline-end: 6px; }
}
@media (max-width: 380px) {
  .rail { grid-auto-columns: 46%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ---------- right-to-left (Hebrew, Arabic) ---------- */
[dir="rtl"] .ship-m .p, [dir="rtl"] .line-price, [dir="rtl"] .totals dd { direction: ltr; unicode-bidi: isolate; }
:root:lang(he) { --display: "Rubik", "Arial Hebrew", sans-serif; --body: "Rubik", "Arial Hebrew", "Segoe UI", sans-serif; --serif: "Rubik", "Arial Hebrew", sans-serif; }
:root:lang(ar) { --display: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif; --body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif; --serif: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif; }
:root:lang(ja) { --serif: "Hiragino Mincho ProN", "Yu Mincho", serif; --display: "Hiragino Sans", "Yu Gothic UI", "Meiryo", "Noto Sans JP", sans-serif; --body: "Hiragino Sans", "Yu Gothic UI", "Meiryo", "Noto Sans JP", sans-serif; }
:root:lang(he) .hero-copy h1, :root:lang(ar) .hero-copy h1, :root:lang(he) .wide-title, :root:lang(ar) .wide-title, :root:lang(he) .promo-title, :root:lang(ar) .promo-title { font-weight: 700; }
:root:lang(he) h1, :root:lang(he) h2, :root:lang(ar) h1, :root:lang(ar) h2, :root:lang(ja) h1, :root:lang(ja) h2 { letter-spacing: 0; }

/* ---------- product text translated in the browser ---------- */
.tr-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 6px 0 0; font-size: 0.8125rem; color: var(--muted); }
.tr-bar button { font: inherit; font-size: 0.8125rem; padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink); cursor: pointer; }
.tr-bar button[hidden] { display: none; }

/* ---------- shopper accounts ---------- */
.linkish { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font: inherit; }
.btn.ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); min-height: 40px; padding: 0 16px; }
.btn.ghost:hover { background: var(--surface); }
.btn.danger { background: var(--bad); }
.note { background: var(--surface); padding: 12px 14px; border-radius: var(--r-sm); margin: 0 0 16px; }
.note.ok { background: #e6f4ec; color: var(--good); font-weight: 600; }
.note.bad { background: #fbecea; color: var(--bad); font-weight: 600; }
.safe { display: flex; align-items: center; gap: 8px; color: var(--good); }
.safe svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.note.safe { background: #e6f4ec; font-weight: 600; }
.check { display: flex !important; align-items: center; gap: 10px; font-weight: 500 !important; }
.check input { width: 20px; height: 20px !important; accent-color: var(--ink); }
.co-form select { min-height: 46px; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 0 10px; background: #fff; font-weight: 400; }
.co-form.narrow { max-width: 560px; }
.co-form input:disabled { background: var(--surface); color: var(--muted); }
.form-actions { display: flex; align-items: center; gap: 18px; }
.form-actions .btn.add { width: auto; padding: 0 28px; }

.acct { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; padding-top: 26px; padding-bottom: 50px; align-items: start; }
.acct-nav { position: sticky; top: 140px; }
.acct-hello { margin: 0 0 14px; font: 700 1.125rem/1.3 var(--display); display: grid; }
.acct-hello small { font: 400 0.8125rem/1.4 var(--body); color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.acct-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.acct-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; font-weight: 500; border-inline-start: 3px solid transparent; }
.acct-nav a:hover { background: var(--surface); }
.acct-nav a[aria-current] { background: var(--tag-soft); border-inline-start-color: var(--tag); font-weight: 700; color: var(--ink); }
.acct-nav svg { width: 21px; height: 21px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.acct-n { margin-inline-start: auto; font: 600 0.75rem/20px var(--body); min-width: 22px; text-align: center; border-radius: 10px; background: var(--surface); color: var(--muted); }
.acct-out { margin-top: 14px; padding-inline-start: 15px; }
.acct-guest { background: var(--surface); border-radius: var(--r); padding: 16px; margin-bottom: 14px; }
.acct-guest p { margin: 0 0 12px; font-size: 0.875rem; }
.acct-main { min-width: 0; }
.acct-main h1 { margin-bottom: 18px; }
.acct-main h1 .count { font: 500 1.125rem var(--body); color: var(--muted); }
.acct-main h2.sub { font-size: 1.125rem; margin: 28px 0 14px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px; }
.sec-head h1, .sec-head h2 { margin: 0; }
.acct-main > .sec-head:first-child { margin-top: 0; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat { display: grid; gap: 2px; padding: 16px; border-radius: var(--r); background: var(--surface); text-decoration: none; }
.stat b { font: 800 1.75rem/1 var(--display); color: var(--ink); }
.stat span { color: var(--muted); font-weight: 500; }
.stat:hover { box-shadow: inset 0 0 0 2px var(--tag); }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 16px; scrollbar-width: none; }
.tabs a { flex: none; padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; }
.tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--tag); }

.ocard { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 14px; overflow: hidden; }
.ocard-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 16px; background: var(--surface); font-size: 0.875rem; }
.ocard-meta { color: var(--muted); }
.ocard-body { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 14px 16px; }
.othumbs { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex: 1; min-width: 0; }
.othumbs li { width: 64px; height: 64px; border-radius: var(--r-sm); overflow: hidden; background: var(--surface); flex: none; }
.othumbs img { width: 100%; height: 100%; object-fit: cover; }
.othumbs .more { display: grid; place-items: center; font-weight: 700; color: var(--muted); }
.ocard-sum { display: grid; gap: 2px; }
.ocard-sum strong { font: 700 1.125rem var(--display); direction: ltr; unicode-bidi: isolate; }
.ocard-sum small { color: var(--muted); }
.ostatus { display: inline-block; padding: 3px 10px; border-radius: 20px; font-weight: 700; font-size: 0.8125rem; background: #e8ebf6; color: var(--ink); }
.ostatus.s-paid, .ostatus.s-sent_to_supplier { background: #fff3c4; color: #6b5300; }
.ostatus.s-shipped { background: #dfe9ff; color: #1f45a8; }
.ostatus.s-delivered { background: #e6f4ec; color: var(--good); }
.ostatus.s-cancelled { background: #fbecea; color: var(--bad); }

.addr { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 12px; }
.addr.is-default { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--tag); }
[dir="rtl"] .addr.is-default { box-shadow: inset -3px 0 0 var(--tag); }
.addr-text p { margin: 0 0 4px; }
.addr-warn { color: var(--bad); font-weight: 600; font-size: 0.875rem; margin-top: 8px !important; }
.addr-actions { display: flex; align-items: flex-end; gap: 16px; font-size: 0.875rem; }
.addr-actions form { margin: 0; }
.addr-actions a { color: var(--ink); }
.addr-actions a.fix { color: var(--bad); font-weight: 700; }
.pill { display: inline-block; margin-inline-start: 6px; padding: 1px 8px; border-radius: 10px; background: var(--tag); color: var(--tag-ink); font-size: 0.75rem; font-weight: 700; vertical-align: 1px; }

.pcard { position: relative; display: grid; gap: 6px; align-content: start; }
.pcard-x { position: absolute; top: 6px; inset-inline-end: 6px; margin: 0; }
.pcard-x button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--text); font-size: 1.25rem; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.pcard.gone .card-img img { filter: grayscale(1); opacity: .55; }
.card-img { position: relative; }
.gone-tag { position: absolute; inset: auto 8px 8px; text-align: center; background: rgba(21,26,51,.78); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 4px; border-radius: var(--r-sm); }
.similar { font-size: 0.8125rem; color: var(--ink); }

.panel { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 18px; }
.panel h2 { font-size: 1.125rem; margin-bottom: 12px; }
.prefs { display: grid; gap: 4px; max-width: 680px; }
.pref { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.pref span { display: grid; gap: 4px; }
.pref small { color: var(--muted); }
.prefs .btn { justify-self: start; margin-top: 14px; }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 50px; height: 28px; border-radius: 14px; background: #c7ccdc; position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: inset-inline-start .15s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch:checked { background: var(--good); }
.switch:checked::after { inset-inline-start: 25px; }

.auth { padding-top: 40px; padding-bottom: 60px; }
.auth-card { max-width: 440px; margin: 0 auto; }
.auth-card h1 { margin-bottom: 10px; }
.auth-form { display: grid; gap: 14px; margin: 18px 0; }
.auth-form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.875rem; }
.auth-form input { height: 50px; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 0 14px; font-size: 1rem; }
.auth-form input:focus { border-color: var(--ink); }
.code-in { letter-spacing: .4em; font: 700 1.625rem/1 var(--display) !important; text-align: center; direction: ltr; }
.auth-alt { margin: 0; font-size: 0.875rem; text-align: center; }
.auth-alt a { color: var(--ink); }

.wish-form { margin: 10px 0 0; }
.wish-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 14px; font-weight: 600; cursor: pointer; color: var(--text); }
.wish-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--bad); stroke-width: 2; }
.wish-btn[aria-pressed="true"] svg { fill: var(--bad); }
.wish-btn:hover { border-color: var(--bad); }

.saved-addr { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.saved-addr legend { font: 700 1.125rem var(--display); margin-bottom: 8px; }
.saved-addr-item { display: block; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); text-decoration: none; font-size: 0.875rem; }
.saved-addr-item[aria-current] { border-color: var(--ink); background: var(--tag-soft); }

.track { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: s; }
.track li { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; font-size: 0.8125rem; color: var(--muted); padding-top: 30px; }
.track li::before { counter-increment: s; content: counter(s); position: absolute; top: 0; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: 0.75rem; z-index: 1; }
.track li::after { content: ""; position: absolute; top: 11px; inset-inline-start: 50%; width: 100%; height: 2px; background: var(--line); }
.track li:last-child::after { display: none; }
.track li.done, .track li.now { color: var(--text); font-weight: 600; }
.track li.done::before { content: "✓"; background: var(--good); border-color: var(--good); color: #fff; }
.track li.done::after { background: var(--good); }
.track li.now::before { background: var(--tag); border-color: var(--tag); color: var(--tag-ink); }
.track small { font-weight: 400; color: var(--muted); }

@media (max-width: 900px) {
  .acct { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 16px; }
  .acct-nav { position: static; }
  .acct-nav ul { display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; padding-bottom: 4px; }
  .acct-nav ul::-webkit-scrollbar { display: none; }
  .acct-nav a { flex: none; border: 1.5px solid var(--line); border-radius: 20px; padding: 7px 12px; font-size: 0.875rem; white-space: nowrap; gap: 8px; }
  .acct-n { margin-inline-start: 2px; }
  .acct-nav a[aria-current] { border-color: var(--tag); }
  .acct-nav svg { width: 18px; height: 18px; }
  .acct-hello { font-size: 1rem; margin-bottom: 10px; }
  .acct-out { margin-top: 8px; padding: 0; font-size: 0.875rem; }
}
@media (max-width: 640px) {
  .stats { gap: 8px; }
  .stat { padding: 12px; }
  .stat b { font-size: 1.375rem; }
  .stat span { font-size: 0.8125rem; }
  .othumbs li { width: 52px; height: 52px; }
  .ocard-body .btn { width: 100%; }
  .track li span { font-size: 0.6875rem; }
}
.co-form.narrow > .btn:not(.add) { justify-self: start; min-width: 160px; }

/* ---------------------------------------------------------------- privacy notice and checkout consent */
.consent { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; background: #fff; border-top: 3px solid var(--ink); box-shadow: 0 -6px 24px rgba(16, 24, 64, .14); }
.consent-row { display: flex; align-items: center; gap: 18px 28px; padding-top: 14px; padding-bottom: 14px; }
.consent-text { flex: 1; }
.consent h2 { margin: 0 0 2px; font: 700 1rem/1.3 var(--display); color: var(--ink); }
.consent p { margin: 0; font-size: 0.875rem; color: var(--text); }
.consent a { color: var(--ink); font-weight: 600; }
.consent .btn { white-space: nowrap; }
body.has-consent { padding-bottom: 120px; }
body.has-consent .a11y { bottom: 132px; }
@media (max-width: 640px) { .consent-row { flex-direction: column; align-items: stretch; } .consent .btn { width: 100%; } body.has-consent { padding-bottom: 210px; } body.has-consent .a11y { bottom: 220px; } }
.consent-box { display: grid; gap: 10px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.consent-box .fine { margin: 0; }
.check.agree { align-items: flex-start; font-weight: 600; }
.check.agree input { margin-top: 2px; flex: none; }
.check.agree a, .consent-box a { color: var(--ink); }
.check.agree.is-bad { color: var(--bad); }
.check.agree.is-bad input { outline: 2px solid var(--bad); outline-offset: 2px; }
.field-err { margin: 0; color: var(--bad); font-weight: 600; font-size: 0.875rem; }

/* ---------------------------------------------------------------- accessibility menu */
.a11y { position: fixed; inset-inline-start: 16px; bottom: 16px; z-index: 45; }
.a11y-open { width: 52px; height: 52px; border-radius: 50%; border: 2px solid #fff; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px rgba(16, 24, 64, .35); padding: 0; }
.a11y-open svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.a11y-open svg .f { fill: currentColor; stroke: none; }
.a11y-open:hover { background: var(--ink-2); }
.a11y-panel { position: absolute; bottom: 62px; inset-inline-start: 0; width: min(340px, calc(100vw - 32px)); max-height: calc(100vh - 100px); overflow: auto; background: #fff; color: var(--text); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 0 10px 40px rgba(16, 24, 64, .3); padding: 16px; display: grid; gap: 14px; }
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.a11y-head h2 { margin: 0; font: 700 1.125rem/1.2 var(--display); color: var(--ink); }
.a11y-x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--surface); font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--text); }
.a11y-size { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--surface); border-radius: var(--r-sm); }
.a11y-size span { flex: 1; font-weight: 600; }
.a11y-size button { min-width: 44px; min-height: 40px; border: 1.5px solid var(--ink); border-radius: var(--r-sm); background: #fff; color: var(--ink); font-weight: 700; cursor: pointer; }
.a11y-size button:disabled { opacity: .45; cursor: default; }
.a11y-size output { min-width: 48px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-grid button { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; min-height: 76px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--text); font-size: 0.8125rem; font-weight: 600; cursor: pointer; text-align: center; }
.a11y-grid button svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.a11y-grid button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.a11y-grid button[aria-pressed="true"] svg { stroke: var(--tag); }
.a11y-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 0.875rem; }
.a11y-foot a { color: var(--ink); font-weight: 600; }

/* modes, switched on the <html> element (also from a tiny script in <head>, so pages don't flash) */
html.a11y-big .top, html.a11y-big .totals, html.a11y-big .acct-nav { position: static; }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; outline: 2px dashed currentColor; outline-offset: 2px; }
html.a11y-headings :is(h1, h2, h3) { outline: 3px solid var(--tag); outline-offset: 3px; background: #fff8d6; color: #000 !important; }
html.a11y-font body, html.a11y-font body *:not(svg):not(svg *) { font-family: Arial, Helvetica, "Segoe UI", sans-serif !important; }
html.a11y-spacing body *:not(svg):not(svg *) { line-height: 1.6 !important; letter-spacing: .12em !important; word-spacing: .16em !important; }
html.a11y-spacing p { margin-bottom: 2em; }
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='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 9-6.5 1.6L9 19z' fill='%23000' stroke='%23fff' stroke-width='1.3'/%3E%3C/svg%3E") 4 2, auto !important; }
html.a11y-gray body > :not(.a11y) { filter: grayscale(1); }
html.a11y-contrast body, html.a11y-contrast body *:not(svg *) { background-color: #000 !important; background-image: none !important; color: #fff !important; border-color: #fff !important; box-shadow: none !important; text-shadow: none !important; }
html.a11y-contrast body a, html.a11y-contrast body a *:not(svg *) { color: #ffeb3b !important; }
html.a11y-contrast body :is(button, .btn, input, select, textarea, summary) { border: 2px solid #ffeb3b !important; }
html.a11y-contrast body svg { stroke: currentColor; }
html.a11y-contrast img { background-color: #fff !important; }
html.a11y-contrast .a11y-grid button[aria-pressed="true"] { background-color: #ffeb3b !important; color: #000 !important; }
html.a11y-contrast .a11y-grid button[aria-pressed="true"] * { color: #000 !important; background-color: transparent !important; }
html.a11y-contrast :focus-visible { outline: 3px solid #ffeb3b !important; box-shadow: 0 0 0 6px #000 !important; }
@media print { .a11y, .consent { display: none !important; } }
main[tabindex="-1"]:focus { outline: none; }
.table-wrap { overflow-x: auto; }
.cookie-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; margin: 6px 0 14px; }
.cookie-table th, .cookie-table td { text-align: start; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.cookie-table th { background: var(--surface); font-weight: 700; }
.cookie-table td:first-child { font-family: ui-monospace, Menlo, Consolas, monospace; white-space: nowrap; }
.prose ul { padding-inline-start: 22px; }
.prose li { margin-bottom: 6px; }
.contact-list { list-style: none; padding-inline-start: 0 !important; }
.langbar { background: var(--blue-soft); border-bottom: 1px solid #d3e0fb; }
.langbar-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; padding-top: 8px; padding-bottom: 8px; }
.langbar p { margin: 0; font-weight: 600; color: var(--text); }
.langbar form { display: flex; align-items: center; gap: 14px; }
.langbar .btn { min-height: 36px; padding: 0 16px; }

/* ---------- search suggestions ---------- */
.search .sbox { flex: 1; min-width: 0; display: flex; position: relative; }
.sugg { position: absolute; inset-inline: 0; top: calc(100% + 6px); z-index: 40; background: #fff; color: var(--text); border-radius: var(--r);
  box-shadow: 0 14px 40px rgba(13, 20, 60, 0.28); max-height: min(70vh, 560px); overflow-y: auto; padding: 6px 0; overscroll-behavior: contain; }
.sugg[hidden] { display: none; }
.sugg-group + .sugg-group { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.sugg-h { font-size: 0.75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; padding: 8px 16px 4px; }
.sugg-opt { display: flex; align-items: center; gap: 12px; padding: 9px 16px; cursor: pointer; min-height: 44px; }
.sugg-opt b { font-weight: 700; }
.sugg-opt span { font-weight: 400; }
.sugg-opt.on, .sugg-opt:hover { background: var(--surface); }
.sugg-opt.on { box-shadow: inset 4px 0 0 var(--ink); }
[dir="rtl"] .sugg-opt.on { box-shadow: inset -4px 0 0 var(--ink); }
.sugg-first .sugg-opt:first-child { font-weight: 600; }
.sugg-opt.is-recent::before, .sugg-first .sugg-opt::before { content: ""; flex: none; width: 16px; height: 16px; opacity: 0.6;
  background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.sugg-first .sugg-opt { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E"); }
.sugg-opt.is-recent { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.sugg-opt.is-clear { color: var(--ink-2); font-size: 0.875rem; text-decoration: underline; min-height: 40px; }
.sugg-opt.is-cat { color: var(--ink-2); font-weight: 600; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px 8px; }
.chips-row .sugg-h { flex-basis: 100%; padding-inline: 4px; }
.sugg-opt.is-chip { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; min-height: 36px; font-size: 0.875rem; }
.sugg-opt img { width: 44px; height: 44px; object-fit: cover; border-radius: var(--r-sm); background: var(--surface); flex: none; }
.sugg-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.875rem; }
.sugg-p { flex: none; font-weight: 700; font-size: 0.875rem; background: var(--tag); color: var(--tag-ink); border-radius: 4px; padding: 1px 6px; }
.sugg-p:empty { display: none; }
.search-note { margin: 8px 0 0; color: var(--muted); }
.search-note a { color: var(--ink-2); font-weight: 600; margin-inline-start: 6px; }
.search-cats { margin-top: 14px; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.search-try { margin: 18px 0 8px; font-weight: 600; }
.search-try-chips { justify-content: center; }
.search-pop { margin: 32px 0 14px; }
@media (max-width: 760px) {
  .sugg { max-height: 62vh; }
}
@media (prefers-reduced-motion: no-preference) { .sugg { animation: sugg-in 0.12s ease-out; } }
@keyframes sugg-in { from { opacity: 0; transform: translateY(-4px); } }
html.a11y-big .gallery { position: static; }

/* ---------- toast ---------- */
.toast { position: fixed; z-index: 50; inset-inline: 0; bottom: 24px; margin: 0 auto; width: max-content; max-width: calc(100vw - 32px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; box-shadow: 0 10px 30px rgba(14, 29, 61, .3); }
.toast:not(.on) { opacity: 0; transform: translateY(16px); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .toast { transition: opacity .2s, transform .2s; } }
.toast a { color: #ffb27a; margin-inline-start: 6px; }
@media (max-width: 760px) { .toast { bottom: calc(72px + env(safe-area-inset-bottom)); border-radius: var(--r); } }
/* Banner photos are composed with the subject on the right; mirror them in right-to-left languages so text sits on the clear side. */
[dir="rtl"] .hero-photo, [dir="rtl"] .wide-photo { transform: scaleX(-1); }
.hero-photo { object-position: 78% 18%; }
.wide-photo { object-position: right center; }
.hero picture { display: contents; }
@media (max-width: 760px) {
  .hero.has-mobile-photo { min-height: 0; justify-content: flex-start; background: #12285a; }
  .hero.has-mobile-photo::before { display: none; }
  .hero.has-mobile-photo .hero-photo { position: relative; inset: auto; order: 2; z-index: 0; height: 330px; object-position: center 72%; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 28%); mask-image: linear-gradient(180deg, transparent 0, #000 28%); margin-top: -24px; }
  [dir="rtl"] .hero.has-mobile-photo .hero-photo { transform: none; }
  .hero.has-mobile-photo .hero-copy { padding-bottom: 4px; }
  .wide.has-photo { min-height: 190px; }
  .wide.has-photo .wide-text { max-width: 60%; }
}

/* ---------- product video ---------- */
.gallery-main video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.gallery-main video[hidden], .gallery-main img[hidden] { display: none; }
.thumb-video { position: relative; }
.thumb-video .play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(14, 29, 61, .45); }
.thumb-video .play::after { content: ""; width: 0; height: 0; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; margin-inline-start: 3px; }
[dir="rtl"] .thumb-video .play::after { margin-inline-start: 0; margin-inline-end: 3px; }

/* ---------- muted video previews on cards ---------- */
.card-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.card-play { position: absolute; top: 8px; inset-inline-start: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; cursor: pointer; background: rgba(14, 29, 61, .78); color: #fff; box-shadow: 0 1px 6px rgba(14, 29, 61, .25); z-index: 1; }
.card-play .ic { width: 16px; height: 16px; }
.card-play:hover { background: var(--ink); }
.card-play .i-pause, .card-play.is-on .i-play { display: none; }
.card-play.is-on .i-pause { display: block; }
@media (max-width: 760px) { .card-play { width: 34px; height: 34px; top: 6px; inset-inline-start: 6px; } }

@media (max-width: 340px) { .logo img { height: 20px; } }
