/* ADAMODA storefront — light grey + black, modelled on the reference store */
:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --ink: #0b0b0c;
  --ink-2: #4b4d55;
  --muted: #8b8e97;
  --line: #e1e3e8;
  --tile: #e9eaee;
  --sale: #9b1c2c;
  --ok: #18865a;
  --warn: #b26a00;
  --wa: #25d366;
  --radius: 10px;
  --font: "Poppins", "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "Tajawal", "Poppins", system-ui, sans-serif;
  --header-h: 68px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.55; overflow-x: hidden; }
html[lang="ar"] body { font-family: var(--font-ar); font-size: 16px; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: max(20px, var(--gutter)); padding-right: max(20px, var(--gutter-r)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(243, 244, 246, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: background .3s, border-color .3s, color .3s; }
.site-header .bar { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.site-header .start, .site-header .end { display: flex; align-items: center; gap: 4px; }
.site-header .end { justify-content: flex-end; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; background: none; border-radius: 50%; }
.icon-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { background: rgba(0, 0, 0, .05); }
.lang-btn { border: 0; background: none; font-size: 13px; font-weight: 500; letter-spacing: .04em; padding: 8px 10px; border-radius: 6px; }
.lang-btn:hover { background: rgba(0, 0, 0, .05); }
.logo { display: block; height: 48px; }
.logo img { height: 100%; width: auto; }
.logo .white { display: none; }
.badge-count { position: absolute; top: 4px; inset-inline-end: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 10px; font-weight: 600; display: grid; place-items: center; line-height: 1; }
/* over the hero video */
.site-header.over { position: fixed; inset: 0 0 auto; background: transparent; border-color: transparent; color: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.over .logo .black { display: none; }
.site-header.over .logo .white { display: block; }
.site-header.over .badge-count { background: #fff; color: var(--ink); }
.site-header.over .icon-btn:hover, .site-header.over .lang-btn:hover { background: rgba(255, 255, 255, .14); }
.site-header.over::before { content: ""; position: absolute; inset: 0 0 -40px; background: linear-gradient(rgba(0, 0, 0, .38), transparent); pointer-events: none; z-index: -1; }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(340px, 86vw); background: var(--bg); z-index: 90; transform: translateX(-100%); transition: transform .3s ease; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
html[dir="rtl"] .drawer { transform: translateX(100%); }
.drawer.open { transform: none !important; }
.drawer .head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.drawer .head img { height: 40px; width: auto; }
.drawer nav { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer nav a { display: block; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; }
html[lang="ar"] .drawer nav a { text-transform: none; font-size: 16px; }
.drawer .prefs { padding: 18px 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: none; padding: 7px 14px; font-size: 13px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 520px; overflow: hidden; background: #0d0d10; color: #fff; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .back { filter: blur(28px) brightness(.55); transform: scale(1.15); }
.hero .front { object-fit: cover; }
@media (min-width: 760px) {
  .hero { height: min(100svh, 960px); }
  .hero .front { object-fit: contain; }
}
.hero .shade { position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); pointer-events: none; }
.hero .cta { position: absolute; inset: auto 0 0; padding: 0 20px calc(40px + env(safe-area-inset-bottom, 0px)); display: grid; justify-items: center; gap: 14px; text-align: center; }
.hero h1 { margin: 0; font-weight: 500; font-size: clamp(24px, 4vw, 38px); letter-spacing: .02em; text-shadow: 0 1px 12px rgba(0, 0, 0, .3); opacity: 0; transform: translateY(8px); transition: opacity .8s, transform .8s; }
.hero .btn-light { opacity: 0; transform: translateY(8px); transition: opacity .8s .15s, transform .8s .15s; }
.hero.ended h1, .hero.ended .btn-light { opacity: 1; transform: none; }
.scroll-cue { display: grid; justify-items: center; gap: 4px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .85); background: none; border: 0; padding: 6px; }
.scroll-cue svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }
.replay { position: absolute; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); inset-inline-end: max(20px, var(--gutter-r)); width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: rgba(0, 0, 0, .25); color: #fff; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .4s; }
.replay svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.hero.ended .replay { opacity: 1; pointer-events: auto; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 28px; border-radius: 4px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; transition: opacity .2s, background .2s; }
html[lang="ar"] .btn { text-transform: none; font-size: 15px; letter-spacing: 0; }
.btn:hover { opacity: .88; }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn.outline { background: transparent; color: var(--ink); }
.btn.block { width: 100%; }
.btn-light { display: inline-flex; align-items: center; height: 46px; padding: 0 26px; border-radius: 4px; background: #fff; color: var(--ink); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
html[lang="ar"] .btn-light { text-transform: none; font-size: 15px; letter-spacing: 0; }
.btn svg, .btn-light svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* ---------- sections ---------- */
.section { padding-block: 72px 24px; }
.section-head { display: grid; justify-items: center; gap: 10px; text-align: center; margin-bottom: 36px; position: relative; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--tile); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
html[lang="ar"] .pill { text-transform: none; letter-spacing: 0; font-size: 12px; }
.section-head h2 { margin: 0; font-weight: 500; font-size: clamp(24px, 3.2vw, 32px); }
.section-head p { margin: 0; color: var(--ink-2); font-size: 14px; }
.section-head .rule { display: flex; align-items: center; gap: 10px; }
.section-head .rule::before, .section-head .rule::after { content: ""; width: 38px; height: 1px; background: var(--muted); opacity: .6; }
.section-head .rule span { width: 4px; height: 4px; background: var(--ink); border-radius: 50%; }
.view-all { position: absolute; inset-inline-end: 0; bottom: 4px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }
.view-all svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }
html[dir="rtl"] .view-all svg, html[dir="rtl"] .flip { transform: scaleX(-1); }
@media (max-width: 700px) { .view-all { position: static; } }

/* ---------- carousel ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 1000px) { .rail { grid-auto-columns: calc((100% - 2 * 16px) / 3); gap: 16px; } }
@media (max-width: 700px) { .rail { grid-auto-columns: 70%; gap: 12px; } }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 3px; background: #c9ccd3; transition: width .25s, background .25s; }
.dots button[aria-current="true"] { width: 26px; background: var(--ink); }

/* ---------- product card ---------- */
.card { display: grid; gap: 10px; min-width: 0; }
.card .media { position: relative; aspect-ratio: 3 / 4; background: var(--tile); border-radius: 6px; overflow: hidden; }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .4s; }
.card .media img.alt { position: absolute; inset: 0; opacity: 0; }
@media (hover: hover) { .card:hover .media img.alt { opacity: 1; } .card:hover .media img:first-child { transform: scale(1.03); } }
.card .tag { position: absolute; top: 10px; inset-inline-start: 10px; display: inline-flex; align-items: center; gap: 5px; background: var(--ink); color: #fff; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 3px; }
html[lang="ar"] .card .tag { text-transform: none; font-size: 12px; letter-spacing: 0; }
.card .tag.sale { background: var(--sale); }
.card .tag.out { background: #fff; color: var(--ink); }
.card .tag svg { width: 11px; height: 11px; fill: currentColor; }
.card .info { display: grid; gap: 2px; padding-inline: 2px; }
.card .name { font-size: 13.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card.soldout .media img { opacity: .6; }
.price { font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.price .old { color: var(--muted); text-decoration: line-through; font-weight: 400; font-size: .9em; }
.price .now.sale { color: var(--sale); }
.placeholder { width: 100%; height: 100%; display: grid; place-items: center; }
.placeholder img { width: 46%; opacity: .9; }

/* ---------- grid (shop) ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; } }

.page-head { padding-block: 34px 18px; }
.page-head h1 { margin: 0; font-weight: 500; font-size: clamp(26px, 3.4vw, 34px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-current] { color: var(--ink); }

.filters { display: grid; gap: 14px; padding-block: 16px; border-block: 1px solid var(--line); margin-bottom: 28px; }
.filters .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filters .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; min-width: 72px; }
html[lang="ar"] .filters .label { text-transform: none; letter-spacing: 0; font-size: 13px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-size: 13px; transition: background .15s, border-color .15s; }
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.size { min-width: 46px; border-radius: 4px; }
.filters .tools { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; width: 38px; height: 22px; border-radius: 11px; background: #cfd2d8; position: relative; transition: background .2s; cursor: pointer; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked { background: var(--ink); }
.switch input:checked::after { transform: translateX(16px); }
html[dir="rtl"] .switch input:checked::after { transform: translateX(-16px); }
.select { height: 40px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 0 12px; font-size: 14px; }
.price-range { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.price-range input { width: 78px; height: 36px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 0 10px; font-size: 13px; }
.result-count { font-size: 13px; color: var(--muted); }
.filter-toggle { display: none; }
@media (max-width: 700px) {
  .filter-toggle { display: inline-flex; }
  .filters .collapsible { display: none; }
  .filters.open .collapsible { display: grid; gap: 14px; }
  .filters .label { min-width: 100%; }
}
.empty { text-align: center; padding: 60px 20px; color: var(--ink-2); display: grid; gap: 14px; justify-items: center; }

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; padding-block: 8px 72px; }
@media (max-width: 860px) { .pdp { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.gallery { display: grid; gap: 12px; min-width: 0; }
.gallery .main { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--tile); }
.gallery .track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery .track::-webkit-scrollbar { display: none; }
.gallery .track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.gallery .nav { position: absolute; top: 50%; translate: 0 -50%; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.gallery .nav svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 2; }
.gallery .prev { inset-inline-start: 12px; }
.gallery .next { inset-inline-end: 12px; }
html[dir="rtl"] .gallery .nav svg { transform: scaleX(-1); }
.thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.thumbs button { flex: 0 0 72px; aspect-ratio: 3 / 4; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: var(--tile); }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pinfo { display: grid; gap: 18px; align-content: start; min-width: 0; }
.pinfo h1 { margin: 0; font-weight: 500; font-size: clamp(26px, 3vw, 34px); line-height: 1.2; }
.pinfo .price { font-size: 26px; font-weight: 500; }
.stock { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ok); }
html[lang="ar"] .stock { text-transform: none; letter-spacing: 0; font-size: 14px; }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock.low { color: var(--warn); }
.stock.out { color: var(--sale); }
.pinfo .desc { color: var(--ink-2); white-space: pre-line; margin: 0; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size-btn { min-width: 54px; height: 44px; padding: 0 12px; border: 1px solid var(--line); background: var(--surface); border-radius: 4px; font-size: 14px; font-weight: 500; }
.size-btn:hover:not(:disabled) { border-color: var(--ink); }
.size-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.size-btn:disabled { color: var(--muted); text-decoration: line-through; background: transparent; cursor: not-allowed; }
.field-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.link-btn { border: 0; background: none; padding: 0; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; }
.link-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.size-note { font-size: 13px; color: var(--warn); min-height: 20px; margin-top: 6px; }
.buy { display: grid; grid-template-columns: auto 1fr; gap: 14px; }
.qty { display: inline-grid; grid-template-columns: 46px 52px 46px; height: 50px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.qty button { border: 0; background: none; font-size: 18px; color: var(--ink-2); }
.qty button:disabled { opacity: .3; }
.qty input { border: 0; border-inline: 1px solid var(--line); text-align: center; background: none; width: 100%; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.cats .h { width: 100%; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.cats a { border: 1px solid #c9ccd3; padding: 5px 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
html[lang="ar"] .cats a, html[lang="ar"] .cats .h { text-transform: none; letter-spacing: 0; }

/* ---------- toast ---------- */
.toast { position: fixed; z-index: 120; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); translate: -50% 20px; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 6px; font-size: 14px; display: flex; gap: 14px; align-items: center; opacity: 0; pointer-events: none; transition: opacity .25s, translate .25s; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; translate: -50% 0; pointer-events: auto; }
.toast a { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; font-weight: 600; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .45); }
.modal .box { background: var(--bg); border-radius: var(--radius); width: min(620px, 100%); max-height: 85vh; overflow: auto; padding: 28px; position: relative; }
.modal .close { position: absolute; top: 10px; inset-inline-end: 10px; }
.modal h2 { margin: 0 0 14px; font-weight: 500; }
.rich { white-space: pre-line; color: var(--ink-2); }
.size-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.size-table th, .size-table td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: start; }
.size-table th { font-weight: 600; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- cart / checkout ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; padding-block: 8px 80px; align-items: start; }
@media (max-width: 900px) { .checkout { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.lines { display: grid; }
.line { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--line); align-items: start; }
.line:first-child { border-top: 1px solid var(--line); }
.line .thumb { aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; background: var(--tile); }
.line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.line .meta { display: grid; gap: 4px; min-width: 0; }
.line .meta .n { font-weight: 500; }
.line .meta .s { font-size: 13px; color: var(--muted); }
.line .meta .warn { font-size: 13px; color: var(--sale); }
.line .end { display: grid; gap: 10px; justify-items: end; }
.line .qty { grid-template-columns: 34px 38px 34px; height: 36px; }
.line .remove { border: 0; background: none; font-size: 12px; color: var(--muted); text-decoration: underline; padding: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 16px; }
.panel h2 { margin: 0; font-size: 18px; font-weight: 600; }
.form { display: grid; gap: 12px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .form .two { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 500; }
.field input, .field textarea, .field select { height: 46px; border: 1px solid var(--line); border-radius: 6px; padding: 0 12px; background: var(--bg); font-size: 15px; font-weight: 400; width: 100%; }
.field textarea { height: 80px; padding: 10px 12px; resize: vertical; }
.field .opt { color: var(--muted); font-weight: 400; }
.pay-opts { display: grid; gap: 8px; }
.pay-opt { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; cursor: pointer; font-size: 14px; }
.pay-opt:has(input:checked) { border-color: var(--ink); }
.pay-opt input { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; }
.pay-opt small { display: block; color: var(--muted); font-size: 12px; }
.code-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.code-row input { height: 44px; border: 1px solid var(--line); border-radius: 6px; padding: 0 12px; background: var(--bg); text-transform: uppercase; min-width: 0; }
.code-row .btn { height: 44px; padding: 0 18px; }
.totals { display: grid; gap: 8px; font-size: 14px; font-variant-numeric: tabular-nums; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals .grand { font-size: 18px; font-weight: 600; padding-top: 12px; border-top: 1px solid var(--line); }
.msg { font-size: 13px; }
.msg.err { color: var(--sale); }
.msg.ok { color: var(--ok); }
.thanks { text-align: center; padding-block: 90px; display: grid; gap: 16px; justify-items: center; }
.thanks .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.thanks .tick svg { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.thanks h1 { margin: 0; font-weight: 500; }
.thanks p { margin: 0; color: var(--ink-2); max-width: 46ch; }

/* ---------- footer ---------- */
.site-footer { background: #000; color: #e6e6e6; margin-top: 80px; padding-block: 44px calc(28px + env(safe-area-inset-bottom, 0px)); text-align: center; }
.site-footer .wrap { display: grid; gap: 22px; justify-items: center; }
.site-footer img.f-logo { height: 58px; width: auto; }
.site-footer .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
html[lang="ar"] .site-footer .links { text-transform: none; font-size: 14px; letter-spacing: 0; }
.site-footer .links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .social { display: flex; gap: 14px; }
.site-footer .social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #333; }
.site-footer .social svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.site-footer .copy { font-size: 12px; color: #8a8a8a; }
.site-footer .copy a { color: #cfcfcf; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- whatsapp float ---------- */
.wa-float { position: fixed; z-index: 60; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); inset-inline-end: max(22px, var(--gutter-r)); width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }

/* ---------- search overlay ---------- */
.search-ov { position: fixed; inset: 0 0 auto; z-index: 100; background: var(--bg); padding: calc(14px + env(safe-area-inset-top, 0px)) 0 18px; border-bottom: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .08); }
.search-ov form { display: flex; gap: 10px; align-items: center; }
.search-ov input { flex: 1; min-width: 0; height: 50px; border: 0; border-bottom: 1px solid var(--ink); background: none; font-size: 18px; padding: 0 4px; }
.search-ov input:focus { outline: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; scroll-behavior: auto !important; }
}

/* products without photos: show the logo small and centred */
.card .media .placeholder img, .gallery .placeholder img, .line .thumb .placeholder img { width: 42%; height: auto; flex: none; object-fit: contain; opacity: .85; transform: none; }

/* legal pages */
.legal { max-width: 720px; padding-bottom: 40px; display: grid; gap: 22px; color: var(--ink-2); }
.legal h2 { margin: 0 0 6px; font-size: 16px; font-weight: 600; color: var(--ink); }
.legal p { margin: 0; }
.agree { font-size: 12.5px; color: var(--muted); text-align: center; margin: 0; }
.agree a { text-decoration: underline; text-underline-offset: 2px; color: var(--ink-2); }
.pay-logos { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pay-logos span { border: 1px solid #333; border-radius: 4px; padding: 2px 8px; font-size: 11px; letter-spacing: .04em; color: #bdbdbd; }

/* checkout: guest or account */
.who { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: grid; gap: 4px; background: var(--bg); }
.who-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.who-row a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.who .hint { font-size: 12.5px; color: var(--muted); }
.create { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.check small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* account page */
.auth { max-width: 440px; margin: 0 auto; padding-block: 48px 40px; display: grid; gap: 18px; }
.auth-head { text-align: center; display: grid; gap: 6px; }
.auth-head h1 { margin: 0; font-weight: 500; font-size: 30px; }
.auth-head p { margin: 0; color: var(--ink-2); font-size: 14px; }
.auth-tabs { justify-self: center; }
.auth-tabs button { padding: 9px 20px; font-size: 14px; }
.auth .panel h2 { font-size: 17px; }
.auth .form.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .auth .form.two { grid-template-columns: 1fr; } }
.guest-link { justify-self: center; font-size: 14px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.acc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.acc-head .btn { height: 42px; }
.acc-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; padding-bottom: 60px; align-items: start; }
@media (max-width: 860px) { .acc-grid { grid-template-columns: minmax(0, 1fr); } }
.acc-h { font-size: 18px; font-weight: 600; margin: 0 0 12px; }
.olist-c, .stack-c { display: grid; gap: 12px; }
.acc-order { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.acc-order summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 16px; }
.acc-order summary::-webkit-details-marker { display: none; }
.acc-order .no { font-weight: 600; }
.acc-order .d { grid-column: 1; color: var(--muted); font-size: 13px; }
.acc-order .st { grid-column: 2; grid-row: 1; justify-self: end; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--tile); }
.acc-order .tot { grid-column: 2; grid-row: 2; justify-self: end; font-weight: 600; font-variant-numeric: tabular-nums; }
.st-new { background: #e7edfb !important; color: #2b4c9b; }
.st-paid { background: #efe8fb !important; color: #5a3aa0; }
.st-shipped { background: #fdf1dc !important; color: #9a5b00; }
.st-delivered { background: #e5f4ec !important; color: #18865a; }
.st-cancelled { color: var(--muted); }
.acc-items { border-top: 1px solid var(--line); padding: 12px 16px; display: grid; gap: 8px; font-size: 14px; font-variant-numeric: tabular-nums; }
.acc-items div { display: flex; justify-content: space-between; gap: 12px; }
.acc-items .sub { color: var(--muted); font-size: 13px; }
.line .thumb .placeholder { display: grid; place-items: center; width: 100%; height: 100%; }

/* checkout: choose account / guest */
.acc-choice { display: grid; gap: 14px; }
.acc-choice h2 { font-size: 20px !important; }
.acc-choice .hint { margin: -6px 0 0; color: var(--muted); font-size: 13.5px; }
.ac-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .ac-btns { grid-template-columns: 1fr; } }
.ac-btn { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 22px 14px; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.ac-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }
.ac-btn.dark { background: var(--ink); color: #fff; }
.ac-btn b { font-size: 17px; font-weight: 600; }
.ac-btn small { font-size: 12.5px; opacity: .7; }
.ac-i svg { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; margin-bottom: 4px; }
.ac-guest { border: 1px solid var(--line); background: var(--bg); border-radius: 10px; height: 52px; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
.ac-guest:hover { border-color: var(--ink-2); }
#details { display: grid; gap: 16px; }
.atype { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.atype button { height: 46px; border: 1px solid var(--line); background: var(--bg); border-radius: 8px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.atype button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.addr { display: grid; gap: 12px; }
.addr .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Play button when the phone blocks autoplay (e.g. Low Power Mode) */
.tap-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); background: rgba(0,0,0,.35); color: #fff; display: none; place-items: center; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 3; cursor: pointer; }
.tap-play svg { width: 28px; height: 28px; fill: currentColor; margin-inline-start: 4px; }
.hero.blocked .tap-play { display: grid; }

/* Popup banner after the intro video */
.promo { position: fixed; inset: 0; z-index: 110; background: rgba(0,0,0,.55); display: grid; place-items: center; padding: 24px 16px; opacity: 0; transition: opacity .3s; }
.promo.in { opacity: 1; }
.promo-box { position: relative; max-width: min(480px, 100%); border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.35); transform: scale(.94); transition: transform .3s; }
.promo.in .promo-box { transform: none; }
.promo-box img { display: block; width: 100%; height: auto; max-height: calc(100dvh - 80px); object-fit: contain; }
.promo-x { position: absolute; top: 10px; inset-inline-end: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; cursor: pointer; }
.promo-x svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }
.promo-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #fff; mix-blend-mode: difference; transform-origin: left; animation: promo-count 5s linear forwards; }
[dir="rtl"] .promo-bar { transform-origin: right; }
@keyframes promo-count { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .promo, .promo-box { transition: none; } }

/* Animated copy of the intro video, used when the phone blocks video (Low Power Mode) */
.hero .hero-anim { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 760px) { .hero .hero-anim { object-fit: contain; } }
.hero.anim video.front { visibility: hidden; }
