/* OBJECT: corners sharpened by rebrand.py */
/* =====================================================================
   OBJECT — store chrome + home page (index.html), also used by the
   product and info pages for header, footer, drawers and the quick view.
   Layout: fixed two-row header over a photo hero, then full-width bands.
   Direction-aware: logical properties + [dir="ltr"] mirrors for clip-paths.
   ===================================================================== */

:root { --hdr-row: 72px; --hdr-nav: 46px; --hdr-gap: 10px; --promo-h: 0px; --hdr-h: calc(var(--hdr-row) + var(--hdr-nav) + var(--hdr-gap) + var(--promo-h)); }

.skip { position: fixed; z-index: 100; top: -60px; inset-inline-start: 16px; padding: 10px 16px; border-radius: var(--r-sm); background: var(--orange); color: #0C0C0C; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------------- header ---------------- */
.hdr {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  padding-top: calc(env(safe-area-inset-top, 0px) + var(--hdr-gap));
  color: var(--text);
  transition: background .3s var(--ease);
}
/* the bar itself is as wide as the page content, with rounded corners */
.hdr__bar { width: min(calc(100% - 2 * max(var(--gutter), env(safe-area-inset-left, 0px))), var(--container)); margin-inline: auto; border-radius: 4px; transition: background .3s var(--ease), box-shadow .3s var(--ease); }
/* over the hero photo the header is always light-on-dark */
.hdr:not(.is-solid) {
  --text: #E6DACC; --text-2: #CFC4B6; --muted: #8C857C; --line: #2A2724; --line-2: #3B3835;
  --surface: #100F0E; --surface-3: #201D1A; --ink: var(--orange);
  --field-bg: rgba(0, 0, 0, .35); --field-line: rgba(255, 255, 255, .14); --hdr-solid: rgba(9, 8, 7, .96);
  background: linear-gradient(180deg, rgba(5, 4, 4, .82) 0%, rgba(5, 4, 4, .35) 70%, rgba(5, 4, 4, 0) 100%);
}
.hdr.is-solid { background: transparent; }
.hdr.is-solid .hdr__bar { background: var(--hdr-solid); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 0 0 1px var(--line), 0 12px 30px rgba(0, 0, 0, .16); }
.hdr__row { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--hdr-row); padding-inline: 18px; }
.hdr__row::after {
  content: "";
  position: absolute;
  inset-inline: 18px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--text) 10%, transparent) 15%, color-mix(in srgb, var(--text) 10%, transparent) 85%, transparent);
}
.hdr.is-solid .hdr__row::after { background: var(--line); }
.hdr__side { display: flex; align-items: center; gap: 10px; }
.hdr__side--start { justify-self: start; }
.hdr__side--end { justify-self: end; }
.hdr__logo { display: block; padding: 6px 10px; }
.hdr__logo img { height: 56px; width: auto; transition: height .3s var(--ease); }
.hdr.is-solid .hdr__logo img { height: 48px; }
.hdr__btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--text); transition: color .2s, background .2s, border-color .2s, box-shadow .2s; }
.hdr__btn:hover { color: var(--orange); background: color-mix(in srgb, var(--text) 6%, transparent); }
.hdr__btn .i { width: 26px; height: 26px; stroke-width: 1.5; }
.hdr__lang, .hdr__theme { width: 38px; height: 38px; border: 1px solid var(--field-line); }
.hdr__lang:hover, .hdr__theme:hover { border-color: var(--orange); box-shadow: 0 0 8px rgba(226, 98, 31, .18); background: transparent; }
.hdr__lang { display: flex; gap: 7px; width: auto; padding-inline: 6px 12px; border-radius: var(--r-pill); }
.hdr__lang .flag { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.hdr__lang span { font-family: var(--f-logo); font-weight: 700; font-size: 13px; letter-spacing: .04em; line-height: 1; }
.hdr__lang span:lang(ar), [lang="en"] .hdr__lang span { font-family: var(--f-ar); font-size: 15px; letter-spacing: 0; }
.hdr__sound { width: 38px; height: 38px; border: 1px solid var(--field-line); }
.hdr__sound:hover { border-color: var(--orange); box-shadow: 0 0 8px rgba(226, 98, 31, .18); background: transparent; }
.hdr__sound .i { width: 20px; height: 20px; stroke-width: 1.7; }
.hdr__theme .i { width: 20px; height: 20px; stroke-width: 1.7; }
.hdr__theme .i-moon, [data-theme="light"] .hdr__theme .i-sun { display: none; }
[data-theme="light"] .hdr__theme .i-moon { display: block; }
.hdr__theme--m { display: none; } /* phone copy, shown next to the cart on small screens */
.hdr__sound .i-on, .hdr__sound[aria-pressed="true"] .i-off { display: none; }
.hdr__sound[aria-pressed="true"] .i-on { display: block; }
.hdr__sound[aria-pressed="true"] { color: var(--orange); border-color: var(--orange-line); background: var(--orange-soft); }
.hdr__count { position: absolute; top: 0; inset-inline-start: -2px; transition: transform .25s var(--ease); }
.hdr__count.is-bump { transform: scale(1.35); }
.hdr__menu, .hdr__search-toggle { display: none; }

.search { display: flex; align-items: center; gap: 8px; }
.search input {
  width: 230px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--field-line);
  border-radius: var(--r-sm);
  background: var(--field-bg);
  color: var(--text);
  font-size: 14px;
  transition: border-color .2s, width .3s var(--ease), background .2s;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--orange); width: 270px; }
.search__btn { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--field-line); border-radius: var(--r-sm); background: var(--field-bg); color: var(--text); transition: border-color .2s, color .2s; }
.search__btn:hover { border-color: var(--orange); color: var(--orange); }

.hdr__nav ul { display: flex; justify-content: center; gap: clamp(22px, 3.4vw, 48px); height: var(--hdr-nav); margin: 0; padding: 0; list-style: none; }
.hdr__nav a { position: relative; display: flex; align-items: center; height: 100%; font-size: 15px; font-weight: 500; color: color-mix(in srgb, var(--text) 86%, transparent); transition: color .2s; }
.hdr__nav a::after { content: ""; position: absolute; inset-inline: -10px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--orange); transform: scaleX(0); transition: transform .25s var(--ease); }
.hdr__nav a:hover { color: var(--text); }
.hdr__nav a.is-active { color: var(--ink); }
.hdr__nav a.is-active::after, .hdr__nav a:hover::after { transform: scaleX(1); }
.hdr__nav a:hover:not(.is-active)::after { opacity: .4; }

/* ---------------- hero (always a dark photo band) ---------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  /* a centred card, as wide as the page content, sitting under the header */
  width: min(calc(100% - 2 * max(var(--gutter), env(safe-area-inset-left, 0px))), var(--container));
  min-height: clamp(440px, 36vw, 540px);
  margin: calc(var(--hdr-h) + env(safe-area-inset-top, 0px) + 14px) auto 0;
  border-radius: 6px;
  overflow: hidden;
  isolation: isolate;
  background: #0A0A0A;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 24px 60px rgba(0, 0, 0, .25);
}
.hero > .container { max-width: none; padding-inline: clamp(24px, 4vw, 56px); }
.hero__media { position: absolute; z-index: -1; inset-block: 0; inset-inline-start: 0; width: 60%; overflow: hidden; } /* the slow zoom stays inside the frame (no strip of photo under the title) */
/* fade the photo itself into the card so its edge never shows as a line */
.hero__media { -webkit-mask-image: linear-gradient(var(--to-end), #000 50%, rgba(0, 0, 0, .55) 75%, transparent 100%); mask-image: linear-gradient(var(--to-end), #000 50%, rgba(0, 0, 0, .55) 75%, transparent 100%); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; opacity: 0; transform: scale(1.06); transition: opacity 1.1s var(--ease), transform 7s linear; }
.hero__img.is-active { opacity: 1; transform: scale(1); }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--to-end), rgba(7, 6, 5, 0) 40%, rgba(7, 6, 5, .8) 78%, #0A0A0A 100%),
    linear-gradient(to top, rgba(7, 6, 5, .55) 0%, rgba(7, 6, 5, 0) 22%);
}
.hero__tag { position: absolute; z-index: 2; top: 26px; inset-inline-start: 4%; display: grid; gap: 6px; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
.hero__tag .en { direction: ltr; text-align: left; font-size: clamp(24px, 2.4vw, 34px); font-weight: 500; line-height: .98; letter-spacing: .01em; }
.hero__tag span:last-child { justify-self: start; font-size: 14px; color: var(--text-2); }
.hero__inner { position: relative; display: flex; justify-content: flex-end; }
.hero__copy { display: grid; gap: 20px; width: max-content; max-width: min(100%, 46%); padding-block: 40px; }
/* the tagline belongs to the first photo only */
.hero__tag { transition: opacity .5s var(--ease); }
.hero:not([data-slide="0"]) .hero__tag { opacity: 0; }
[dir="ltr"] .hero__tag { top: auto; bottom: 26px; } /* in English the photo's open wall is not under the top corner */
.hero__slides { display: grid; }
.hero__slide { grid-area: 1 / 1; display: grid; gap: 14px; align-content: end; }
.hero__slide.is-active { animation: copy-in .8s var(--ease) both; }
@keyframes copy-in { from { opacity: 0; transform: translateY(14px); } }

/* one eyebrow height on every slide: lockup (slide 1) = collection line (slides 2–3) */
.lockup { display: flex; align-items: center; justify-content: flex-end; gap: 16px; height: 34px; }
[dir="ltr"] .lockup { justify-content: flex-start; }
.lockup__blessin { font-size: 24px; font-weight: 600; letter-spacing: .06em; line-height: 1; }
.lockup__slash { width: 1px; height: 26px; background: rgba(255, 255, 255, .5); transform: skewX(-18deg); }
.lockup__almd { display: flex; align-items: center; gap: 7px; }
.lockup__almd b { display: block; font-family: var(--f-logo); font-size: 12.5px; line-height: 1; letter-spacing: .03em; }
.lockup__almd small { display: none; }
.lockup .almd-mark { width: 28px; height: 28px; stroke-width: 4.4; }
.almd-mark { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 4.2; stroke-linecap: round; stroke-linejoin: round; }

.hero__eyebrow { display: flex; align-items: center; height: 34px; justify-content: flex-end; gap: 8px; font-size: 24px; font-weight: 600; letter-spacing: .06em; line-height: 1; direction: ltr; text-align: right; }
[dir="ltr"] .hero__eyebrow { text-align: left; justify-content: flex-start; }
.hero__eyebrow span { font-style: italic; font-weight: 500; color: var(--orange); }
.hero__title { font-size: clamp(32px, 3.6vw, 48px); font-weight: 700; line-height: 1.2; }
.hero__title em { font-style: normal; color: var(--orange); }
.hero__sub { font-size: clamp(17px, 1.6vw, 21px); color: rgba(245, 241, 236, .88); font-weight: 400; }
.hero__cta { justify-self: start; min-width: 220px; margin-top: 6px; }
.hero__cta .i { transition: translate .2s var(--ease); }
.hero__cta:hover .i { translate: calc(4px * var(--x)) 0; }

.proof { display: flex; align-items: center; gap: 16px; }
.proof__text p { font-size: 15px; line-height: 1.4; }
.proof__text .stars { margin-top: 4px; }
.proof__faces { display: flex; align-items: center; }
.proof__faces img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg); }
.proof__faces img + img { margin-inline-start: -12px; }
.proof__faces span { margin-inline-start: 10px; font-family: var(--f-logo); font-weight: 700; font-size: 14px; }

.hero__dots { position: absolute; z-index: 3; top: 50%; inset-inline-end: 18px; display: grid; gap: 10px; transform: translateY(-40%); }
.hero__dots button { display: grid; justify-items: center; gap: 10px; padding: 4px; font-family: var(--f-logo); font-size: 12px; font-weight: 600; color: var(--muted); transition: color .2s; }
.hero__dots button:hover { color: var(--text); }
.hero__dots button::after { content: ""; width: 2px; height: 0; border-radius: 2px; background: linear-gradient(var(--orange), rgba(226, 98, 31, .1)); transition: height .4s var(--ease); }
.hero__dots button[aria-selected="true"] { color: var(--text); }
.hero__dots button[aria-selected="true"]::after { height: 54px; }

/* ---------------- features ---------------- */
.feats { width: min(calc(100% - 2 * max(var(--gutter), env(safe-area-inset-left, 0px))), var(--container)); margin: 14px auto 0; border: 1px solid var(--line); border-radius: 4px; background: var(--bg-2); }
.feats > .container { max-width: none; padding-inline: 16px; }
/* the four items form one centred group with equal space on both sides of every divider */
.feats__list { display: flex; justify-content: center; margin-block: 0; margin-inline: auto; padding-block: 22px; list-style: none; }
.feat { display: flex; align-items: center; justify-content: center; gap: 14px; padding-inline: clamp(22px, 4.2vw, 64px); }
.feat + .feat { border-inline-start: 1px solid var(--line-2); }
.feat .i { width: 38px; height: 38px; color: var(--orange); stroke-width: 1.5; }
.feat b { display: block; font-size: 15px; font-weight: 500; line-height: 1.5; }
.feat span { display: block; font-size: 14px; color: var(--text-2); line-height: 1.5; }

/* ---------------- collections ---------------- */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.col { container-type: inline-size; position: relative; display: flex; justify-content: flex-end; height: clamp(210px, 20vw, 250px); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-sm); background: #090808; overflow: hidden; isolation: isolate; }
.col__img { position: absolute; z-index: -1; top: 0; inset-inline-start: 0; width: 60%; height: 100%; object-fit: cover; object-position: 50% 18%; -webkit-mask-image: linear-gradient(var(--to-end), #000 55%, transparent 100%); mask-image: linear-gradient(var(--to-end), #000 55%, transparent 100%); transition: transform .8s var(--ease); }
.col:hover .col__img { transform: scale(1.04); }
.col__img[src*="studio/col-"] { object-fit: contain; object-position: 50% 55%; }
.col__copy { display: grid; justify-items: center; align-content: center; gap: 8px; width: 50%; padding: 20px; text-align: center; }
.col__title { font-size: clamp(20px, 7.2cqi, 36px); font-weight: 500; line-height: 1; letter-spacing: .02em; }
.col__ar { font-size: clamp(20px, 2vw, 26px); font-weight: 400; line-height: 1.4; }
.col__btn { --h: 42px; margin-top: 10px; min-width: 0; padding: 0 18px; }
.col__btn .i { width: 18px; height: 18px; }
.almd-logo { display: flex; align-items: center; gap: 10px; }
.almd-logo .almd-mark { width: clamp(34px, 3.2vw, 46px); height: auto; aspect-ratio: 1; stroke-width: 4.6; }
.almd-logo b { font-family: var(--f-logo); font-size: clamp(17px, 1.7vw, 24px); line-height: .98; letter-spacing: .02em; text-align: left; }

/* ---------------- products ---------------- */
.prods { margin-top: clamp(40px, 5vw, 64px); scroll-margin-top: calc(var(--hdr-h) + 10px); }
.prods__head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-self: start; }
.prods__all { justify-self: end; }
.prods__query { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; color: var(--text-2); font-size: 14px; }
.prods__query b { color: var(--text); }
.prods__query button { color: var(--ink); font-weight: 600; }

.slider { position: relative; margin-top: 26px; }
.slider__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 20px) / 4);
  gap: 20px;
  padding-block: 6px 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track > * { scroll-snap-align: start; }
.slider__track:focus-visible { outline-offset: 6px; }
.slider__nav { position: absolute; z-index: 3; top: 38%; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--surface); color: var(--text); box-shadow: var(--shadow); transition: border-color .2s, color .2s, opacity .2s; }
.slider__nav:hover { border-color: var(--orange); color: var(--orange); }
.slider__nav[disabled] { opacity: .25; pointer-events: none; }
.slider__nav--prev { inset-inline-start: -22px; }
.slider__nav--next { inset-inline-end: -22px; }
@media (max-width: 1320px) { .slider__nav--prev { inset-inline-start: -12px; } .slider__nav--next { inset-inline-end: -12px; } } /* stay inside the 16px page gutter */
.slider.is-grid .slider__track { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto; overflow: visible; scroll-snap-type: none; }
.slider.is-grid .slider__nav, .slider.is-static .slider__nav { display: none; }
.pcard.is-filtered { display: none; }

.empty { display: grid; justify-items: center; gap: 12px; padding: 48px 16px; color: var(--text-2); text-align: center; }
.empty .i { width: 48px; height: 48px; color: var(--muted); stroke-width: 1.3; }

/* ---------------- split banners (dark photo panels) ---------------- */
.bnrs { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(40px, 5vw, 64px); height: clamp(230px, 20vw, 262px); }
.bnr { position: relative; display: flex; overflow: hidden; isolation: isolate; border-radius: var(--r-sm); }
.bnr__img { position: absolute; z-index: -2; top: 0; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.bnr:hover .bnr__img { transform: scale(1.04); }
/* the turning 3D shirts: whole, a bit closer, and their dark video background melts into the panel's own colour */
.bnr__vid { object-fit: contain; object-position: 50% 50% !important; mix-blend-mode: lighten; filter: contrast(1.12); transform: scale(1.2); }
.bnr:hover .bnr__vid { transform: scale(1.25); }
.bnr::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.bnr__copy { display: grid; align-content: center; gap: 8px; padding: 22px clamp(18px, 3vw, 40px); }
.bnr__en { font-size: clamp(21px, 2.2vw, 31px); font-weight: 500; line-height: 1.02; letter-spacing: .01em; direction: ltr; white-space: nowrap; }
.bnr__ar { font-size: clamp(17px, 1.6vw, 21px); font-weight: 400; }
.bnr .link-arrow { margin-top: 10px; }
/* start-side panel: lifestyle — photo toward the middle, copy on the outer side */
.bnr--life { margin-inline-end: -34px; clip-path: polygon(0 0, 100% 0, 100% 100%, 68px 100%); background: #0A0909; justify-content: flex-start; }
.bnr--life .bnr__img { inset-inline-end: 40px; width: 54%; object-position: 40% 20%; -webkit-mask-image: linear-gradient(var(--to-start), #000 60%, transparent); mask-image: linear-gradient(var(--to-start), #000 60%, transparent); }
.bnr--life::after { background: linear-gradient(var(--to-end), rgba(10, 9, 9, .92) 0%, rgba(10, 9, 9, .6) 38%, rgba(10, 9, 9, 0) 60%); }
.bnr--life .bnr__copy { width: 48%; justify-items: center; text-align: center; }
.bnr--life .bnr__en { text-align: left; }
/* end-side panel: details — fabric photo, copy on the outer side */
.bnr--details { margin-inline-start: -34px; clip-path: polygon(0 0, calc(100% - 78px) 0, calc(100% - 10px) 100%, 0 100%); background: radial-gradient(120% 140% at 70% 30%, #12261f 0%, #07100d 70%); justify-content: flex-end; }
.bnr--details .bnr__img { inset-inline-start: 30px; width: 64%; object-position: 50% 50%; -webkit-mask-image: linear-gradient(var(--to-end), #000 62%, transparent); mask-image: linear-gradient(var(--to-end), #000 62%, transparent); }
.bnr--details::after { background: linear-gradient(var(--to-start), rgba(6, 14, 11, .92) 0%, rgba(6, 14, 11, .55) 38%, rgba(6, 14, 11, 0) 58%); }
.bnr--details .bnr__copy { width: 45%; justify-items: start; }
.bnr--details .bnr__en { text-align: left; justify-self: stretch; }
[dir="ltr"] .bnr--life { clip-path: polygon(100% 0, 0 0, 0 100%, calc(100% - 68px) 100%); }
[dir="ltr"] .bnr--details { clip-path: polygon(100% 0, 78px 0, 10px 100%, 100% 100%); background: radial-gradient(120% 140% at 30% 30%, #12261f 0%, #07100d 70%); }

/* ---------------- footer ---------------- */
.ftr { position: relative; margin-top: clamp(44px, 5vw, 64px); background: var(--bg-2); }
.ftr::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(226, 98, 31, .55) 50%, transparent); }
/* desktop: brand above payments on the start side, links in the middle, contact on the end side */
.ftr__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-template-areas: "brand links contact" "brand links pay"; padding-block: 42px 34px; }
.ftr__col { display: grid; align-content: start; gap: 16px; padding-inline: clamp(16px, 2.6vw, 40px); }
.ftr__brand { grid-area: brand; padding-inline-start: 0; }
.ftr__paycol { grid-area: pay; border-inline-start: 1px solid var(--line); padding-inline-end: 0; }
.ftr__paycol h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* the marks speak for themselves on desktop */
.ftr__paycol .pays { padding-top: 20px; border-top: 1px solid var(--line); }
.ftr__paycol .ftr__note { justify-content: center; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: color-mix(in srgb, var(--surface) 55%, transparent); text-align: center; }
.ftr__linkcol { grid-area: links; border-inline-start: 1px solid var(--line); }
/* brand + payments share one width so every row starts and ends on the same edges */
.ftr__brand { width: min(100%, 340px); justify-self: center; align-self: center; padding-inline: 0 !important; gap: 20px !important; }
.ftr__brand img { width: 240px !important; }
.ftr__brand p { font-size: 45.6px !important; } /* as wide as the logo above it */
html[lang="en"] .ftr__brand p { font-size: 43.9px !important; }
.ftr__brand .social { justify-content: space-between; }
.ftr__brand { justify-items: center; text-align: center; }
.ftr__brand .social a { width: 54px; height: 54px; }
.ftr__brand .social .i { width: 24px; height: 24px; }
.ftr__brand .social { gap: 14px !important; }
.ftr__paycol .pays { max-width: none; }
.ftr__paycol .pay { width: 100%; height: 38px; }
.ftr__contactcol { grid-area: contact; border-inline-start: 1px solid var(--line); padding-inline-end: 0; }
.ftr h2 { font-size: 16px; font-weight: 600; color: var(--ink); }
.ftr ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ftr__ic { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--orange-soft); color: var(--orange); transition: background .25s, color .25s, box-shadow .25s; }
.ftr__ic .i { width: 18px; height: 18px; }
.ftr__contact a, .ftr__links a { display: flex; align-items: center; gap: 12px; min-height: 40px; transition: color .2s; }
.ftr__contact a { font-size: 14.5px; font-weight: 500; letter-spacing: .02em; }
.ftr__links a { font-size: 15px; color: var(--text-2); }
.ftr__chev { width: 16px; height: 16px; margin-inline-start: auto; opacity: .45; transition: translate .2s var(--ease), opacity .2s; }
.ftr__contact a:hover, .ftr__links a:hover { color: var(--ink); }
.ftr__contact a:hover .ftr__ic, .ftr__links a:hover .ftr__ic { background: var(--orange); color: #0C0C0C; box-shadow: 0 0 0 3px rgba(226, 98, 31, .08), 0 0 9px rgba(226, 98, 31, .22); }
.ftr__links a:hover .ftr__chev { opacity: 1; translate: calc(4px * var(--x)) 0; }
.ftr__note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.ftr__note .i { width: 18px; height: 18px; color: var(--success); }
.ftr__brand img { width: 150px; height: auto; }
/* the line under the logo: pixel letters — orange with white edges, a little tilted, as wide as the logo */
.ftr__brand p { font-family: "Handjet", var(--f-ar); font-weight: 800; line-height: 1.2; white-space: nowrap; color: var(--orange); transform: rotate(-2deg);
  /* the white edge is drawn with shadows behind the letters: a stroke would sit on top of them on iPhone and break the pixel letters */
  text-shadow: 2px 0 0 #fff, -2px 0 0 #fff, 0 2px 0 #fff, 0 -2px 0 #fff, 2px 2px 0 #fff, -2px 2px 0 #fff, 2px -2px 0 #fff, -2px -2px 0 #fff,
    0 0 10px rgba(226, 98, 31, .55), 0 0 24px rgba(226, 98, 31, .3); }
.social { display: flex !important; gap: 12px !important; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--text); transition: color .25s, border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.social a:hover, .social a:focus-visible { color: var(--orange); border-color: var(--orange); transform: translateY(-2px); box-shadow: 0 0 0 3px rgba(226, 98, 31, .08), 0 0 10px rgba(226, 98, 31, .2); }
.social .i { width: 21px; height: 21px; }
.ftr__yr { color: var(--orange); font-weight: 600; }
.ftr__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-block: 18px calc(22px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

.totop { position: fixed; z-index: 40; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); inset-inline-start: max(22px, env(safe-area-inset-right, 0px)); display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--surface); color: var(--text); box-shadow: var(--shadow); transition: border-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s; animation: toast-in .3s var(--ease); }
.totop:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-3px); box-shadow: 0 0 10px rgba(226, 98, 31, .18); }

/* floating music button — opposite corner to "back to top" */
.music { position: fixed; z-index: 40; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); inset-inline-end: max(22px, env(safe-area-inset-left, 0px)); display: flex; align-items: center; gap: 10px; height: 48px; padding-inline: 14px 18px; border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-pill); background: rgba(16, 15, 14, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #E6DACC; /* always a dark pill, in both themes */ box-shadow: var(--shadow); font-size: 14px; font-weight: 600; transition: border-color .2s, color .2s, background .2s, transform .2s var(--ease); }
.music:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.music__ic { display: grid; place-items: center; }
.music__ic .i { width: 20px; height: 20px; }
.music__eq { display: none; align-items: flex-end; gap: 3px; width: 20px; height: 16px; }
.music__eq i { flex: 1; height: 35%; border-radius: 2px; background: var(--orange); }
.music[aria-pressed="true"] { border-color: var(--orange-line); color: var(--orange); background: rgba(30, 18, 10, .94); }
.music[aria-pressed="true"] .music__ic { display: none; }
.music[aria-pressed="true"] .music__eq { display: flex; }
.music[aria-pressed="true"] .music__eq i { animation: eq .9s ease-in-out infinite alternate; }
.music__eq i:nth-child(2) { animation-delay: -.3s !important; }
.music__eq i:nth-child(3) { animation-delay: -.6s !important; }
.music__eq i:nth-child(4) { animation-delay: -.15s !important; }
.music.is-loading { cursor: progress; opacity: .75; }
@keyframes eq { from { height: 20%; } to { height: 100%; } }
@media (prefers-reduced-motion: reduce) { .music[aria-pressed="true"] .music__eq i { animation: none; height: 70%; } }
body.has-buybar .music { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 760px) {
  .music { width: 48px; padding: 0; justify-content: center; }
  .music__txt { display: none; }
}

/* ---------------- drawers + modal ---------------- */
.scrim { position: fixed; z-index: 70; inset: 0; background: rgba(0, 0, 0, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s var(--ease); }
.scrim.is-open { opacity: 1; }
.drawer { position: fixed; z-index: 80; top: 0; bottom: 0; display: flex; flex-direction: column; width: min(420px, 100%); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--surface); color: var(--text); box-shadow: var(--shadow); transition: transform .38s var(--ease); }
.drawer--cart { left: 0; border-right: 1px solid var(--line); transform: translateX(-100%); padding-left: env(safe-area-inset-left, 0px); }
.drawer--nav { right: 0; border-left: 1px solid var(--line); transform: translateX(100%); padding-right: env(safe-area-inset-right, 0px); }
[dir="ltr"] .drawer--cart { left: auto; right: 0; border-right: 0; border-left: 1px solid var(--line); transform: translateX(100%); }
[dir="ltr"] .drawer--nav { right: auto; left: 0; border-left: 0; border-right: 1px solid var(--line); transform: translateX(-100%); }
.drawer.is-open, [dir="ltr"] .drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 19px; font-weight: 600; }
.drawer__head h2 span { color: var(--muted); font-weight: 400; font-size: 15px; }
.drawer__x { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--text-2); transition: background .2s, color .2s; }
.drawer__x:hover { background: var(--surface-3); color: var(--text); }

.ship { padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); }
.ship b { color: var(--ink); }
.ship__bar { height: 5px; margin-top: 10px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.ship__bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--orange), #FFB070); transition: width .5s var(--ease); }
.cart__items { flex: 1; margin: 0; padding: 6px 20px; list-style: none; overflow-y: auto; }
.citem { display: grid; grid-template-columns: 78px 1fr auto; gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--line); animation: copy-in .35s var(--ease); }
.citem__img { display: block; width: 78px; height: 78px; border-radius: var(--r-sm); overflow: hidden; background: #0c0c0c; }
.citem__img img { width: 100%; height: 100%; object-fit: cover; }
.citem__name { font-size: 14.5px; font-weight: 500; direction: ltr; text-align: right; }
[dir="ltr"] .citem__name { text-align: left; }
.citem__name a:hover { color: var(--ink); }
.citem__meta { font-size: 12.5px; color: var(--muted); }
.citem__side { display: grid; justify-items: end; align-content: space-between; }
.citem__price { color: var(--ink); font-weight: 600; font-size: 15px; }
.citem__rm { color: var(--muted); padding: 4px; border-radius: 2px; }
.citem__rm:hover { color: var(--danger); }
.citem__rm .i { width: 18px; height: 18px; }
.qty { display: inline-flex; align-items: center; height: 34px; margin-top: 8px; border: 1px solid var(--line-2); border-radius: var(--r-sm); }
.qty button { display: grid; place-items: center; width: 32px; height: 100%; color: var(--text-2); }
.qty button:hover { color: var(--orange); }
.qty button .i { width: 16px; height: 16px; }
.qty output { min-width: 26px; text-align: center; font-weight: 600; font-size: 14px; }
.cart__empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 30px; text-align: center; color: var(--text-2); }
.cart__empty .i { width: 64px; height: 64px; color: var(--orange); stroke-width: 1.2; }
.cart__empty h3 { color: var(--text); font-size: 20px; }
.cart__empty .btn { margin-top: 10px; }
.drawer__foot { display: grid; gap: 14px; padding: 18px 20px 20px; border-top: 1px solid var(--line); background: var(--surface-2); }
.sum { display: grid; gap: 8px; margin: 0; }
.sum div { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-2); }
.sum dd { margin: 0; }
.sum__total { padding-top: 10px; border-top: 1px dashed var(--line-2); color: var(--text) !important; font-size: 17px !important; font-weight: 600; }
.sum__total small { font-size: 12px; color: var(--muted); font-weight: 400; }
.sum__total dd { color: var(--ink); }
.drawer__pays .pays { max-width: 262px; margin-inline: auto; }
.drawer__pays .pay { box-shadow: 0 0 0 1px var(--line); }

.mnav__logo { height: 40px; width: auto; }
.mnav__links { margin: 0; padding: 12px 20px; list-style: none; }
.mnav__links a { display: flex; align-items: center; height: 56px; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 500; }
.mnav__links a:hover { color: var(--ink); }
.mnav__foot { display: grid; gap: 10px; margin-top: auto; padding: 20px 20px 24px; }
/* small phones: account moves into the menu, theme button sits beside the cart so both sides stay balanced */
@media (max-width: 460px) {
  .hdr__side--start .hdr__theme { display: none; }
  .hdr__theme--m { display: grid; }
}

.modal { position: fixed; z-index: 85; inset: 0; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px)); background: rgba(0, 0, 0, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s var(--ease); }
.modal.is-open { opacity: 1; }
.modal__box { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; width: min(980px, 100%); max-height: calc(100dvh - 32px); overflow: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow); transform: translateY(16px) scale(.98); transition: transform .35s var(--ease); }
.modal.is-open .modal__box { transform: none; }
.modal__x { position: absolute; z-index: 2; top: 12px; inset-inline-end: 12px; background: rgba(0, 0, 0, .5); color: #E6DACC; }
.qv__media { background: #0c0c0c; }
.qv__media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.qv__body { display: grid; align-content: start; gap: 14px; padding: 30px 28px; }
.qv__name { font-size: 26px; font-weight: 600; text-align: right; }
[dir="ltr"] .qv__name { text-align: left; }
.qv__price { justify-content: flex-start; }
.qv__price .now { font-size: 22px; }
.qv__desc { color: var(--text-2); font-size: 15px; }
.qv__color { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.qv__color b { color: var(--text); font-weight: 500; }
.qv__swatch { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); }
.qv__row { display: flex; align-items: center; justify-content: space-between; }
.qv__label { font-size: 14px; font-weight: 600; }
.qv__guide { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); text-decoration: underline; text-underline-offset: 4px; }
.qv__guide .i { width: 18px; height: 18px; }
.qv__guide:hover { color: var(--ink); }
.qv__sizes { justify-content: flex-end; }
[dir="ltr"] .qv__sizes { justify-content: flex-start; }
.qv__sizes .size { min-width: 52px; height: 42px; font-size: 14px; }
.guide { width: 100%; border-collapse: collapse; font-size: 13px; text-align: center; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.guide th { padding: 8px; background: var(--surface-3); color: var(--text-2); font-weight: 500; }
.guide td { padding: 7px; border-top: 1px solid var(--line); }
.qv__buy { display: flex; gap: 10px; margin-top: 4px; }
.qv__buy .qty { height: 54px; margin: 0; }
.qv__buy .qty button { width: 40px; }
.qv__add { flex: 1; }
.qv__wish[aria-pressed="true"] { color: var(--orange); border-color: var(--orange-line); }
.qv__wish[aria-pressed="true"] .i { fill: currentColor; }
.qv__more { justify-self: start; }
.qv__perks { display: grid; gap: 8px; margin: 2px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 13.5px; color: var(--text-2); }
.qv__perks li { display: flex; align-items: center; gap: 10px; }
.qv__perks .i { width: 20px; height: 20px; color: var(--orange); }

body.is-locked { overflow: hidden; }

/* ---------------- responsive ---------------- */
@media (max-width: 1100px) {
  .slider__track { grid-auto-columns: calc((100% - 2 * 18px) / 3); gap: 18px; }
  .slider.is-grid .slider__track { grid-template-columns: repeat(3, 1fr); }
  .hero__media { width: 66%; }
  .hero__copy { max-width: 56%; }
  .hero__tag { display: none; }
  .ftr__grid { grid-template-columns: 1fr 1fr; grid-template-areas: "brand links" "contact pay"; row-gap: 28px; }
  .ftr__contactcol { border-inline-start: 0; padding-inline-start: 0; padding-inline-end: clamp(16px, 2.6vw, 40px); }
  .ftr__paycol h2 { margin-top: 0; padding-top: 0; border-top: 0; }
}

@media (max-width: 900px) {
  :root { --hdr-row: 60px; --hdr-nav: 0px; --hdr-gap: 8px; }
  .hdr__bar { border-radius: 4px; }
  .hdr__row { padding-inline: 10px; }
  .hdr__row::after { display: none; }
  .hdr__nav { display: none; }
  .hdr__menu { display: grid; }
  .search { display: none !important; } /* phones and tablets: the account icon takes the search's place */
  .hdr__side { gap: 6px; }
  .hdr__btn { width: 38px; height: 38px; }
  .hdr__btn .i { width: 24px; height: 24px; }
  .hdr__lang, .hdr__sound, .hdr__theme { width: 34px; height: 34px; }
  .hdr__sound .i, .hdr__theme .i { width: 18px; height: 18px; }
  .hdr__lang { padding: 0; justify-content: center; }
  .hdr__lang span { display: none; }
  .hdr__lang .flag { width: 26px; height: 26px; }
  .hdr__logo { padding: 4px 6px; }
  .hdr__logo img, .hdr.is-solid .hdr__logo img { height: 38px; }
  .search { position: absolute; top: calc(100% + 6px); inset-inline: 0; padding: 10px; border-radius: 4px; background: var(--hdr-solid); box-shadow: 0 0 0 1px var(--line), 0 12px 30px rgba(0, 0, 0, .2); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); }
  .search input, .search input:focus { flex: 1; width: auto; }
  .hdr.is-searching .search { opacity: 1; transform: none; pointer-events: auto; }
  .hdr.is-searching .hdr__bar { background: var(--hdr-solid); }

  .hero { align-items: flex-end; min-height: min(640px, 84svh); margin-top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px) + 10px); border-radius: 5px; }
  .hero > .container { padding-inline: 18px; }
  .hero__media { width: 100%; -webkit-mask-image: none; mask-image: none; }
  .hero__media::after {
    background:
      linear-gradient(to top, #0A0A0A 4%, rgba(7, 6, 5, .82) 38%, rgba(7, 6, 5, .1) 66%);
  }
  .hero__img { object-position: 62% 30%; }
  .hero__inner { justify-content: flex-start; }
  .hero__copy { width: 100%; max-width: 100%; gap: 16px; padding-bottom: 64px; }
  .hero__dots { top: auto; bottom: 22px; inset-inline-end: auto; inset-inline-start: 50%; transform: translateX(50%); grid-auto-flow: column; gap: 18px; }
  [dir="ltr"] .hero__dots { transform: translateX(-50%); }
  .hero__dots button::after { display: none; }
  .hero__dots button[aria-selected="true"] { color: var(--orange); }

  .feats__list { display: grid; grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .feat { padding-inline: 12px; }
  .feat:nth-child(3) { border-inline-start: 0; }
  .feat { flex-direction: row-reverse; justify-content: flex-end; }

  .cols { grid-template-columns: 1fr; }
  .prods__head { grid-template-columns: 1fr auto; grid-template-areas: "title all" "tabs tabs"; }
  .prods__head > * { min-width: 0; }
  .prods__head .section-title { grid-area: title; justify-self: start; justify-items: start; }
  .prods__all { grid-area: all; }
  .tabs { grid-area: tabs; justify-self: stretch; max-width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } /* scrolls inside its own row on narrow phones */
  .tabs::-webkit-scrollbar { display: none; }
  .tabs .chip { flex: none; }

  .bnrs { grid-template-columns: 1fr; height: auto; gap: 12px; }
  .bnr { height: 230px; margin: 0 !important; clip-path: none !important; }

  .modal { align-items: end; padding: 0; }
  .modal__box { grid-template-columns: 1fr; border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 92dvh; }
  .modal__box > * { min-width: 0; }
  .qv__media img { min-height: 0; aspect-ratio: 6 / 5; }
  .qv__body { padding: 22px 18px calc(22px + env(safe-area-inset-bottom, 0px)); }
  .qv__add { padding: 0 14px; font-size: 15px; min-width: 0; }
  .qv__buy .qty button { width: 34px; }
}

@media (max-width: 760px) {
  .slider__track { grid-auto-columns: 68%; gap: 14px; }
  .slider__nav { display: none; }
  .slider.is-grid .slider__track { grid-template-columns: 1fr 1fr; gap: 12px; }
  .slider.is-grid .pcard__body { padding: 10px 8px 12px; gap: 10px; }
  .slider.is-grid .sizes { gap: 5px; }
  .slider.is-grid .size { min-width: 0; flex: 1; padding: 0; height: 30px; font-size: 12px; }
  .slider.is-grid .pcard__add { font-size: 13px; gap: 6px; padding: 0 8px; }
  .slider.is-grid .pcard__add .i { width: 17px; height: 17px; }
  .slider.is-grid .pcard__name { font-size: 13px; }

  /* footer: centred brand block, contact as tap targets, link tiles in two columns, payments last */
  .ftr__grid { grid-template-columns: 1fr; grid-template-areas: "brand" "contact" "links" "pay"; row-gap: 0; padding-block: 36px 6px; }
  .ftr__col { margin: 0 !important; padding: 26px 0 !important; border-inline-start: 0 !important; border-top: 1px solid var(--line) !important; }
  .ftr__brand, .ftr__paycol { width: auto; justify-self: stretch; }
  /* «وسائل الدفع» stays for screen readers only, like on the computer: the marks speak for themselves */
  .ftr__paycol .pays { padding-top: 0; border-top: 0; }
  .ftr__paycol .ftr__note { min-height: 0; padding: 0; border: 0; background: none; }
  .ftr__brand .social { justify-content: center; }
  .ftr__paycol { justify-items: center; text-align: center; }
  .ftr__paycol .pays { max-width: 302px; margin-inline: auto; }
  .ftr__paycol .pay { height: auto; }
  .ftr__brand { justify-items: center; text-align: center; gap: 14px !important; border-top: 0 !important; padding-top: 0 !important; align-self: auto; }
  .ftr__brand img { width: 190px !important; }
  .ftr__brand p { font-size: 30.4px !important; }
  .ftr__brand .social { gap: 12px !important; }
  .ftr__brand .social a { width: 46px; height: 46px; }
  .ftr__brand .social .i { width: 21px; height: 21px; }
  .social a { width: 46px; height: 46px; }
  .ftr h2 { font-size: 15px; }
  .ftr__contact a { min-height: 56px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); font-size: 15px; }
  .ftr__links { grid-template-columns: 1fr 1fr; gap: 10px !important; }
  .ftr__links li:last-child:nth-child(odd), .ftr__links .ftr__game { grid-column: 1 / -1; } /* the game tile takes the whole row */
  .ftr__links .ftr__game a { min-height: 72px; }
  .ftr__links a { min-height: 54px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); font-size: 14px; color: var(--text); }
  .ftr__links .ftr__ic { width: 30px; height: 30px; }
  .ftr .ftr__paycol .trust { width: 100%; max-width: 302px; margin-inline: auto; padding-top: 0; border-top: 0; }
  .ftr__chev { display: none; }
  .ftr__bottom { flex-direction: column; justify-content: center; text-align: center; gap: 8px; }

  .col__copy { width: 56%; padding: 16px 12px; }
  .col__img { width: 62%; }
  .col__btn { min-width: 0; padding: 0 18px; }
  .bnr__copy { width: 64% !important; }
  .bnr--life::after { background: linear-gradient(var(--to-end), rgba(8, 8, 8, .94) 0%, rgba(8, 8, 8, .72) 48%, rgba(8, 8, 8, 0) 80%); }
  .bnr--details::after { background: linear-gradient(var(--to-start), rgba(5, 12, 9, .94) 0%, rgba(5, 12, 9, .7) 50%, rgba(5, 12, 9, 0) 82%); }
  .bnr--life .bnr__img { inset-inline-end: 0; width: 72%; }
  .bnr--details .bnr__img { inset-inline-start: 0; width: 80%; }
}

@media (max-width: 420px) {
  .hero__title { font-size: 31px; }
  .feat { gap: 10px; padding-inline: 6px; }
  .feat .i { width: 30px; height: 30px; }
  .feat b, .feat span { font-size: 13px; }
  .proof { gap: 12px; }
  .hdr__side { gap: 4px; }
}

/* narrow phones: slimmer buttons so six controls + the logo always fit on one line */
@media (max-width: 400px) {
  .hdr__row { padding-inline: 8px; }
  .hdr__side { gap: 2px !important; }
  .hdr__btn, .hdr__lang, .hdr__sound, .hdr__theme { width: 32px !important; height: 32px !important; }
  .hdr__btn .i { width: 22px; height: 22px; }
  .hdr__sound .i, .hdr__theme .i { width: 16px; height: 16px; }
  .hdr__lang .flag { width: 22px; height: 22px; }
  .hdr__logo { padding: 2px 4px; }
  .hdr__logo img, .hdr.is-solid .hdr__logo img { height: 34px; }
}
@media (max-width: 340px) {
  .hdr__side { gap: 1px !important; }
  .hdr__btn, .hdr__lang, .hdr__sound, .hdr__theme { width: 30px !important; height: 30px !important; }
  .hdr__logo { padding: 2px; }
  .hdr__logo img, .hdr.is-solid .hdr__logo img { height: 32px; }
}

/* =====================================================================
   PHONE LAYOUT (≤760px) — compact sections and smaller images.
   Phone only: desktop and tablet rules above are unchanged.
   ===================================================================== */
@media (max-width: 760px) {
  /* hero: short photo on top, copy underneath */
  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero__media { position: relative; inset: auto; z-index: 0; width: 100%; aspect-ratio: 4 / 3; -webkit-mask-image: none; mask-image: none; }
  .hero__media::after { background: linear-gradient(to top, #0A0A0A 0%, rgba(7, 6, 5, .55) 22%, rgba(7, 6, 5, 0) 50%), linear-gradient(to bottom, rgba(7, 6, 5, .3) 0%, rgba(7, 6, 5, 0) 25%); }
  .hero__img { object-position: 60% 22%; }
  .hero__inner { z-index: 1; margin-top: -44px; }
  .hero__copy { width: 100%; gap: 12px; padding-block: 0 50px; }
  .hero__slide { gap: 8px; }
  .lockup { height: 28px; gap: 10px; }
  .lockup__blessin { font-size: 18px; }
  .lockup__slash { height: 20px; }
  .lockup .almd-mark { width: 22px; height: 22px; }
  .lockup__almd b { font-size: 10.5px; }
  .hero__eyebrow { height: 28px; font-size: 18px; }
  .hero__title { font-size: 25px; line-height: 1.25; }
  .hero__sub { font-size: 14px; }
  .proof { gap: 10px; }
  .proof__faces img { width: 28px; height: 28px; }
  .proof__faces span { font-size: 12px; margin-inline-start: 6px; }
  .proof__text p { font-size: 13px; }
  .hero__cta { justify-self: stretch; min-width: 0; --h: 48px; margin-top: 2px; font-size: 15px; }
  .hero__dots { bottom: 14px; }

  /* features: four small icons in one row */
  .feats__list { grid-template-columns: repeat(4, 1fr); row-gap: 0; padding-block: 14px; padding-inline: 4px; }
  .feat, .feat + .feat { flex-direction: column !important; justify-content: flex-start !important; align-items: center; gap: 6px; padding-inline: 4px; text-align: center; }
  .feat:nth-child(3) { border-inline-start: 1px solid var(--line-2); }
  .feat .i { order: -1; width: 24px; height: 24px; }
  .feat b { font-size: 12px; line-height: 1.35; }
  .feat span { font-size: 10.5px; line-height: 1.35; }

  /* collections: all three small cards side by side, nothing to swipe */
  .cols { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
  .col { height: auto; aspect-ratio: 3 / 4.3; align-items: flex-end; border-radius: 3px; }
  .col__img { z-index: -2; width: 100% !important; -webkit-mask-image: none; mask-image: none; object-position: 50% 12%; }
  .col__img[src*="studio/col-"] { object-position: 50% 8%; }
  .col::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(to top, rgba(7, 6, 5, .96) 0%, rgba(7, 6, 5, .88) 30%, rgba(7, 6, 5, .35) 56%, rgba(7, 6, 5, 0) 76%); }
  .col__copy { width: 100% !important; gap: 2px; padding: 8px 5px 10px !important; align-content: end; }
  .col__title { font-size: 17px; }
  .col__ar { font-size: 10.5px; white-space: nowrap; }
  .almd-logo { gap: 4px; }
  .almd-logo .almd-mark { width: 16px; }
  .almd-logo b { font-size: 9px; }
  .col__btn { --h: 28px; min-width: 0 !important; margin-top: 5px; padding: 0 8px !important; gap: 3px; font-size: 10px; white-space: nowrap; }
  .col__btn .i { width: 13px; height: 13px; }

  /* products: two columns, the first 4 shown; "عرض الكل" reveals the rest */
  .prods { margin-top: 30px; }
  .prods__head { gap: 12px; }
  .tabs { gap: 6px; }
  .tabs .chip { flex: 1 0 auto; justify-content: center; min-height: 34px; padding: 0 10px; font-size: 11px; letter-spacing: .03em; }
  .tabs .chip:lang(ar), .tabs .chip.is-ar { font-size: 12.5px; letter-spacing: 0; }
  .slider { margin-top: 16px; }
  .slider__track, .slider.is-grid .slider__track { grid-auto-flow: row; grid-template-columns: 1fr 1fr; grid-auto-columns: auto; gap: 10px; padding-block: 2px 6px; overflow: visible; scroll-snap-type: none; }
  .slider:not(.is-grid) .pcard.is-extra { display: none; }
  .rel .slider__track > .pcard:nth-child(n+5) { display: none; }
  .pcard__body, .slider.is-grid .pcard__body { gap: 8px; padding: 10px 8px 12px; }
  .pcard__name, .slider.is-grid .pcard__name { font-size: 13px; }
  .pcard .price .now { font-size: 14px; }
  .pcard .price .was { font-size: 11.5px; }
  .pcard .sizes, .slider.is-grid .sizes { gap: 4px; }
  .pcard .size, .slider.is-grid .size { flex: 1; min-width: 0; height: 28px; padding: 0; font-size: 11.5px; }
  .pcard__add, .slider.is-grid .pcard__add { --h: 36px; gap: 5px; padding: 0 6px; font-size: 12.5px; }
  .pcard__add .i, .slider.is-grid .pcard__add .i { width: 16px; height: 16px; }
  .pcard__wish { top: 6px; inset-inline-start: 6px; width: 30px; height: 30px; }
  .pcard__wish .i { width: 18px; height: 18px; }
  .pcard__badge { top: 9px; inset-inline-end: 8px; }
  .pcard__badge .badge { height: 20px; padding: 0 8px; font-size: 10.5px; }
  .pcard__quick { display: none; }

  /* banners: two small cards side by side */
  /* banners: like the computer, one wide panel each (copy on one side, the turning shirt on the other) */
  .bnrs { grid-template-columns: 1fr; gap: 10px; margin-top: 28px; }
  .bnr { height: 176px !important; border-radius: 4px; }
  .bnr__copy { width: 56% !important; gap: 4px; padding: 14px 16px !important; }
  .bnr__en { font-size: 18px; }
  .bnr__ar { font-size: 13px; }
  .bnr .link-arrow { margin-top: 4px; font-size: 12px; }
  .bnr--life .bnr__img, .bnr--details .bnr__img { width: 54% !important; }
  .bnr__vid, .bnr:hover .bnr__vid { transform: scale(1.14); }

  /* footer: same order and look, tighter spacing */
  .ftr__grid { padding-block: 28px 4px; }
  .ftr__col { padding-block: 20px !important; }
  .ftr__brand { padding-top: 0 !important; gap: 12px !important; }
  .ftr__brand img { width: 160px !important; }
  .ftr__brand p { font-size: 30.4px !important; }
  html[lang="en"] .ftr__brand p { font-size: 29.2px !important; }
  .ftr__brand .social a, .social a { width: 42px; height: 42px; }
  .ftr__brand .social .i { width: 19px; height: 19px; }
  .ftr__contact a { min-height: 50px; }
  .ftr__links a { min-height: 48px; }
}

/* =====================================================================
   COUPON ANNOUNCEMENT — one coupon picked in the dashboard, shown as a strip, a corner card or a welcome window
   ===================================================================== */
/* strip above the header (part of the fixed header, so --hdr-h grows with it) */
html.has-offer-bar { --promo-h: 40px; }
.hdr:has(> .offer-bar) { padding-top: 0; }
@property --promo-h { syntax: '<length>'; inherits: true; initial-value: 0px; }
html.offer-anim { transition: --promo-h .4s var(--ease); }
.offer-bar { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; height: var(--promo-h); margin-bottom: var(--hdr-gap); padding: env(safe-area-inset-top, 0px) 52px 0; box-sizing: content-box; background: linear-gradient(90deg, #E2621F 0%, #FF8A2E 50%, #E2621F 100%); color: #170C03; font-size: 14px; line-height: 1.3; }
.offer-bar__in { display: flex; align-items: center; justify-content: center; gap: 14px; min-width: 0; }
.offer-bar__txt { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; white-space: nowrap; }
.offer-bar__txt > .i { flex: none; width: 18px; height: 18px; }
.offer-bar__txt b { font-weight: 700; }
.offer-bar__txt .money .sar { width: .9em; }
.offer-bar__rules { overflow: hidden; text-overflow: ellipsis; font-size: 13px; opacity: .8; }
.offer-bar__rules::before { content: '·'; margin-inline-end: 8px; }
.offer-bar__code { display: inline-flex; flex: none; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1.5px dashed rgba(23, 12, 3, .55); border-radius: 2px; background: rgba(255, 255, 255, .22); font: 700 14px/1 var(--f-logo); letter-spacing: .08em; direction: ltr; transition: background .2s; }
.offer-bar__code:hover { background: rgba(255, 255, 255, .42); }
.offer-bar__code .i { width: 15px; height: 15px; }
.offer-bar__code.is-copied { border-style: solid; }
.offer-bar__go { margin-inline-start: 2px; padding-inline-start: 8px; border-inline-start: 1px solid rgba(23, 12, 3, .35); font-family: var(--f-ar); font-size: 13px; letter-spacing: 0; }
.offer-bar.is-applied { background: linear-gradient(90deg, #2DB56F 0%, #3FCB86 50%, #2DB56F 100%); color: #06240F; }
.offer-bar.is-applied .offer-bar__txt > .i { width: 18px; height: 18px; }
.offer-bar__x { position: absolute; inset-inline-end: 12px; bottom: calc((var(--promo-h) - 30px) / 2); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #170C03; transition: background .2s; }
.offer-bar__x:hover { background: rgba(23, 12, 3, .12); }
.offer-bar__x .i { width: 16px; height: 16px; }

/* the code button used by the card and the window */
.offer-code { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 42px; padding-block: 4px; padding-inline: 14px 4px; border: 1.5px dashed var(--orange-line); border-radius: 3px; background: var(--orange-soft); color: var(--text); transition: border-color .2s, background .2s; }
.offer-code:hover { border-color: var(--orange); }
.offer-code__code { font: 700 16px/1 var(--f-logo); letter-spacing: .1em; direction: ltr; }
.offer-code__btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 2px; background: var(--orange); color: #170C03; font-size: 13px; font-weight: 700; white-space: nowrap; transition: background .2s; }
.offer-code__btn .i { width: 15px; height: 15px; }
.offer-code.is-copied { border-style: solid; border-color: rgba(53, 194, 122, .6); }
.offer-code.is-copied .offer-code__btn { background: var(--success); }
.offer-code--lg { min-height: 56px; padding-inline: 18px 6px; border-radius: 4px; }
.offer-code--lg .offer-code__code { font-size: 22px; letter-spacing: .14em; }
.offer-code--lg .offer-code__btn { height: 42px; padding: 0 14px; border-radius: 2px; font-size: 14px; }

/* card in the corner: a ticket with a torn-off stub */
.offer-card { position: fixed; z-index: 44; inset-inline-end: max(22px, env(safe-area-inset-left, 0px)); bottom: calc(84px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: 100px minmax(0, 1fr); width: min(380px, calc(100vw - 24px)); border: 1px solid var(--orange-line); border-radius: 4px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); overflow: hidden; animation: offer-card-in .55s var(--ease) .8s both; }
.offer-card.is-out { animation: offer-card-out .24s var(--ease) forwards; }
@keyframes offer-card-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes offer-card-out { to { opacity: 0; transform: translateY(12px); } }
.offer-card__stub { position: relative; display: grid; align-content: center; justify-items: center; gap: 4px; padding: 16px 8px; border-inline-end: 2px dashed rgba(23, 12, 3, .35); background: var(--orange); color: #170C03; text-align: center; }
.offer-card__stub::before, .offer-card__stub::after { content: ''; position: absolute; inset-inline-end: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); }
.offer-card__stub::before { top: -10px; }
.offer-card__stub::after { bottom: -10px; }
.offer-card__big { font: 700 32px/1 var(--f-logo); letter-spacing: -.01em; }
.offer-card__big .money { font-size: 22px; }
.offer-card__big .i { width: 38px; height: 38px; }
.offer-card__stub > span { font-size: 13px; font-weight: 700; }
.offer-card__body { display: grid; align-content: center; gap: 4px; min-width: 0; padding: 14px 16px; }
.offer-card__eyebrow { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--ink); font-size: 12.5px; font-weight: 700; }
.offer-card__eyebrow .i { width: 15px; height: 15px; }
.offer-card__head { margin: 0; padding-inline-end: 22px; font-size: 16px; font-weight: 700; line-height: 1.5; }
.offer-card__rules { margin: 0 0 6px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.offer-card__x { position: absolute; top: 8px; inset-inline-end: 8px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--muted); transition: background .2s, color .2s; }
.offer-card__x:hover { background: var(--surface-3); color: var(--text); }
.offer-card__x .i { width: 16px; height: 16px; }
body.has-buybar .offer-card { bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }

/* welcome window */
.offer-pop { position: fixed; z-index: 88; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 16px; background: rgba(5, 4, 3, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: offer-pop-fade .3s var(--ease); }
.offer-pop.is-out { animation: offer-pop-out .22s var(--ease) forwards; }
@keyframes offer-pop-fade { from { opacity: 0; } }
@keyframes offer-pop-out { to { opacity: 0; } }
.offer-pop__box:focus { outline: none; }
.offer-pop__box { position: relative; width: min(400px, 100%); border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); overflow: hidden; animation: offer-pop-in .45s var(--ease); }
@keyframes offer-pop-in { from { opacity: 0; transform: translateY(18px) scale(.96); } }
.offer-pop__top { padding: 26px 24px 22px; background: radial-gradient(120% 100% at 50% 0%, rgba(226, 98, 31, .36) 0%, rgba(226, 98, 31, 0) 68%), #0B0908; color: #E6DACC; text-align: center; }
.offer-pop__logo { display: block; width: auto; height: 30px; margin: 0 auto 16px; }
.offer-pop__eyebrow { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 5px 12px; border-radius: var(--r-pill); background: rgba(226, 98, 31, .16); color: var(--orange); font-size: 13px; font-weight: 700; }
.offer-pop__eyebrow .i { width: 15px; height: 15px; }
.offer-pop__big { margin: 12px 0 0; color: var(--orange); font: 700 clamp(64px, 18vw, 84px)/1 var(--f-logo); letter-spacing: -.02em; }
.offer-pop__big .money { font-size: .7em; }
.offer-pop__big .i { width: 74px; height: 74px; stroke-width: 1.4; }
.offer-pop__sub { margin: 6px 0 0; font-size: 18px; font-weight: 700; }
.offer-pop__bottom { padding: 20px 24px 18px; border-top: 2px dashed var(--line-2); text-align: center; }
.offer-pop__bottom h2 { margin: 0 0 6px; font-size: 19px; line-height: 1.5; }
.offer-pop__rules { margin: 0 0 16px; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.offer-pop__go { gap: 8px; margin-top: 12px; }
.offer-pop__no { display: block; margin: 10px auto 0; padding: 6px 12px; color: var(--muted); font-size: 14px; }
.offer-pop__no:hover { color: var(--text); }
.offer-pop__x { position: absolute; z-index: 1; top: 12px; inset-inline-end: 12px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #E6DACC; transition: background .2s; }
.offer-pop__x:hover { background: rgba(255, 255, 255, .18); }
.offer-pop__x .i { width: 18px; height: 18px; }

.offer-card__rules span, .offer-pop__rules span { display: inline-block; white-space: nowrap; }
.offer-card__rules span:not(:last-child)::after, .offer-pop__rules span:not(:last-child)::after { content: '·'; margin-inline: 6px; }
@media (max-width: 760px) {
  html.has-offer-bar { --promo-h: 38px; }
  .offer-bar { padding-inline: 12px 44px; font-size: 13px; }
  .offer-bar__in { gap: 10px; }
  .offer-bar__rules { display: none; }
  .offer-bar.is-applied .offer-bar__rules { display: inline; }
  .offer-bar__code { height: 26px; padding: 0 8px; font-size: 13px; }
  .offer-bar__x { inset-inline-end: 6px; }
  .offer-card { inset-inline: 12px; width: auto; bottom: calc(82px + env(safe-area-inset-bottom, 0px)); grid-template-columns: 88px minmax(0, 1fr); }
  .offer-card__big { font-size: 28px; }
}
@media (max-width: 380px) {
  .offer-bar__txt > .i { display: none; }
}
/* phones: a smaller welcome window */
@media (max-width: 480px) {
  .offer-pop { padding: 24px; }
  .offer-pop__box { width: min(310px, 100%); border-radius: 5px; }
  .offer-pop__top { padding: 16px 16px 12px; }
  .offer-pop__logo { height: 22px; margin-bottom: 10px; }
  .offer-pop__eyebrow { padding: 3px 10px; font-size: 12px; }
  .offer-pop__eyebrow .i { width: 13px; height: 13px; }
  .offer-pop__big { margin-top: 8px; font-size: 52px; }
  .offer-pop__big .i { width: 52px; height: 52px; }
  .offer-pop__sub { margin-top: 2px; font-size: 15px; }
  .offer-pop__bottom { padding: 14px 16px 10px; }
  .offer-pop__bottom h2 { margin-bottom: 4px; font-size: 15.5px; }
  .offer-pop__rules { margin-bottom: 12px; font-size: 12px; line-height: 1.6; }
  .offer-code--lg { min-height: 46px; padding-inline: 14px 5px; border-radius: 3px; }
  .offer-code--lg .offer-code__code { font-size: 18px; letter-spacing: .1em; }
  .offer-code--lg .offer-code__btn { height: 36px; padding: 0 12px; font-size: 13px; }
  .offer-pop__go { --h: 44px; margin-top: 10px; font-size: 14px; }
  .offer-pop__no { margin-top: 4px; font-size: 13px; }
  .offer-pop__x { top: 10px; inset-inline-end: 10px; width: 30px; height: 30px; }
  .offer-pop__x .i { width: 16px; height: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .offer-card, .offer-pop, .offer-pop__box { animation: none; }
}

/* footer: store details (name, address, and CR / VAT numbers once the owner has them) */
/* the slogan is a picture (the pixel letters don't join on iPhone as text); its words are as wide as the logo, the rest is glow */
.ftr__brand .ftr__tagline { line-height: 0; transform: none; text-shadow: none; }
.ftr__brand .ftr__tagline img { display: block; width: 257px !important; max-width: none; height: auto; margin: -9px auto -11px; } /* not the logo's width rule */
html[lang="en"] .ftr__brand .ftr__tagline img { width: 259px !important; }
@media (max-width: 760px) { .ftr__brand .ftr__tagline img { width: 171px !important; margin: -6px auto -8px; } html[lang="en"] .ftr__brand .ftr__tagline img { width: 173px !important; } }
/* computer: every footer column starts at the same top line and ends at the same bottom line
   (the game card sits at the bottom of the links, the logo block runs from the top to the social icons at the bottom) */
@media (min-width: 1101px) {
  .ftr__linkcol { grid-template-rows: auto 1fr; }
  .ftr__linkcol .ftr__links { display: flex !important; flex-direction: column; gap: 4px !important; } /* links close together */
  .ftr__links .ftr__game { margin-top: auto; padding-top: 12px; } /* the game card sits at the bottom, level with the payment note */
  .ftr__grid .ftr__brand { align-self: stretch; align-content: space-between; }
}
/* «العب معنا»: a flat card with a little loop of the game (the runner hops a box and grabs a tee; the road is the brand tape) */
.ftr__links .ftr__game a { justify-content: space-between; gap: 10px; min-height: 70px; padding: 0 0 0 16px; border: 1.5px solid var(--line-2); border-radius: var(--r-md);
  background: var(--surface); color: var(--text); overflow: hidden;
  transition: border-color .24s, transform .24s cubic-bezier(.2, .9, .2, 1.2); }
[dir="rtl"] .ftr__links .ftr__game a { padding: 0 16px 0 0; }
.ftr__links .ftr__game a:hover { border-color: #E2621F; transform: translateY(-2px); }
.ftr__gametxt { display: grid; flex: 1 1 auto; gap: 2px; min-width: 0; }
.ftr__gametxt b { font-size: 15.5px; font-weight: 700; }
.ftr__gametxt small { overflow: hidden; font-size: 12px; color: var(--text-2); white-space: nowrap; text-overflow: ellipsis; } /* always one line */
.runner { flex: none; align-self: flex-end; width: 124px; height: 76px; overflow: hidden; }
/* computer: the words on top, the moving road under them, edge to edge */
@media (min-width: 761px) {
  [dir] .ftr__links .ftr__game a { flex-direction: column; align-items: stretch; gap: 2px; min-height: 0; padding: 14px 0 0; }
  .ftr__game .ftr__gametxt { padding-inline: 16px; }
  .ftr__game .runner--loop { align-self: stretch; width: 100%; height: 72px; }
}
/* phones: the moving road fills the card from the end of the text to the edge, and the tape itself carries on under the words */
@media (max-width: 760px) {
  .ftr__game .runner--loop { flex: 1 1 auto; width: auto; min-width: 124px; }
  .ftr__links .ftr__game a { background: linear-gradient(#E2621F, #E2621F) 0 100% / 100% 14px no-repeat, var(--surface); }
  .ftr__game .ftr__gametxt { padding-bottom: 13px; }
}
.runner__ground { fill: #E2621F; } /* the tape: orange with ink words in both themes */
.runner__tapetxt { fill: #0C0C0C; font: 700 7.6px var(--f-logo); letter-spacing: 1.2px; text-anchor: middle; }
.runner__tapetxt.is-ar { font: 700 8.6px var(--f-ar); letter-spacing: 0; }
.runner__box { fill: var(--text); }
.runner__boxtape { fill: #E2621F; }
.runner__tee { fill: #E2621F; stroke: var(--text); stroke-width: 1.3; stroke-linejoin: round; }
.runner__plus rect { fill: #E2621F; stroke: var(--text); stroke-width: 1.2; }
.runner__plus text { font: 700 9.5px var(--f-logo); fill: #0C0C0C; text-anchor: middle; }
.mascot__tee, .mascot__head { fill: var(--text); }
.mascot__limb { fill: none; stroke: var(--text); stroke-linecap: round; }
.mascot__shoe, .mascot__cap { fill: #E2621F; }
@media (prefers-reduced-motion: reduce) { .ftr__links .ftr__game a:hover { transform: none; } }
/* social icons under the logo: orange, filled orange on hover */
.ftr__brand .social a { color: var(--orange); border-color: var(--orange-line); }
.ftr__brand .social a:hover, .ftr__brand .social a:focus-visible { background: var(--orange); color: #0C0C0C; border-color: var(--orange); }
/* registration logos above the payment marks: white tiles, one row of three */
.ftr__paycol .trust { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--line); list-style: none; }
.trust__item { display: grid; place-items: center; height: 52px; padding: 7px 9px; border-radius: var(--r-sm); background: #fff; box-shadow: 0 0 0 1px var(--line); }
.trust__item img { width: 100%; height: 100%; object-fit: contain; }
.trust__item a { display: grid; place-items: center; width: 100%; height: 100%; }
.trust__item.is-link { transition: transform .2s var(--ease), box-shadow .2s; }
.trust__item.is-link:hover, .trust__item.is-link:focus-within { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--orange), 0 6px 16px rgba(226, 98, 31, .22); }
@media (prefers-reduced-motion: reduce) { .trust__item.is-link:hover, .trust__item.is-link:focus-within { transform: none; } }
.ftr__paycol .pays { padding-top: 0; border-top: 0; } /* the logo row above already draws the line */

/* maintenance: a visitor who was sent to the maintenance page before doesn't see the store flash on the next visit */
html.is-maint body { visibility: hidden; }
/* the owner browsing the store while it is under maintenance */
.maint-pill { position: fixed; z-index: 46; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; width: max-content; max-width: calc(100% - 220px); padding: 10px 16px; border: 1px dashed #E2621F; border-radius: var(--r-pill); background: rgba(16, 15, 14, .94); color: #FF8A3D; font-size: 13px; font-weight: 600; line-height: 1.5; box-shadow: var(--shadow); }
.maint-pill .i { flex: none; width: 18px; height: 18px; }
.maint-pill:hover { border-style: solid; }
@media (max-width: 760px) {
  .maint-pill { top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px) + 8px); bottom: auto; max-width: calc(100% - 24px); font-size: 12px; }
}

/* ---------- size guide (product page, quick view, FAQ) ---------- */
.sg { display: grid; gap: 14px; text-align: start; }
.sg__tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.sg__tabs button { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: var(--r-pill); color: var(--text-2); font: 600 12.5px var(--f-logo); transition: border-color .2s, color .2s, background .2s; }
.sg__tabs i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(255, 255, 255, .3); }
.sg__tabs [aria-selected="true"] { border-color: var(--orange); background: var(--orange-soft); color: var(--text); }
.sg__top { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.sg__tee { display: block; width: 100%; height: auto; }
.sg__ol { fill: none; stroke: var(--text-2); stroke-width: 3; stroke-linejoin: round; opacity: .75; }
.sg__thin { stroke-width: 2; opacity: .5; }
.sg__ar { fill: none; stroke: var(--orange); stroke-width: 2.6; stroke-dasharray: 5 4; }
.sg__ah { fill: var(--orange); }
.sg__dot circle { fill: var(--orange); }
.sg__dot text { fill: #fff; font: 700 11px var(--f-logo); text-anchor: middle; }
.sg__keys { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sg__keys li { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.sg__keys strong { display: block; color: var(--text); font-size: 14px; font-weight: 600; }
.sg__n { display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--orange); color: #0C0C0C; font: 700 11px var(--f-logo); }
.sg__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); }
.sg__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.sg__wt { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--orange-line); border-radius: var(--r-pill); background: var(--orange-soft); color: var(--text-2); }
.sg__wt .i { width: 15px; height: 15px; color: var(--orange); }
.sg__wt b { color: var(--text); font-weight: 700; }
.sg__units { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: var(--r-pill); }
.sg__units button { min-width: 50px; height: 28px; padding: 0 10px; border-radius: var(--r-pill); color: var(--text-2); font-size: 12.5px; font-weight: 600; transition: background .2s, color .2s; }
.sg__units [aria-pressed="true"] { background: var(--orange); color: #0C0C0C; }
.sg__table { width: 100%; table-layout: fixed; border: 1px solid var(--line); border-radius: var(--r-md); border-collapse: separate; border-spacing: 0; overflow: hidden; text-align: center; }
.sg__table thead th { padding: 10px 6px; background: var(--surface-3); color: var(--text-2); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.sg__table thead .sg__n { width: 17px; height: 17px; margin-inline-end: 5px; font-size: 10px; vertical-align: -3px; }
.sg__table tbody th, .sg__table td { padding: 12px 6px; border-top: 1px solid var(--line); }
.sg__table tbody th { color: var(--text); font: 700 14px var(--f-logo); }
.sg__table td { color: var(--text); font: 600 15px var(--f-logo); font-variant-numeric: tabular-nums; }
.sg__table tbody tr:nth-child(even) > * { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.sg__table tr.is-on > * { background: var(--orange-soft) !important; }
.sg__table tr.is-on th { color: var(--orange); }
.sg__notes { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--text-2); line-height: 1.7; }
.sg__notes li { display: flex; align-items: flex-start; gap: 8px; }
.sg__notes .i { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--orange); }
.sg__approx { color: var(--muted); }
.qv__sg { margin-top: 4px; }
/* inside text pages (FAQ) the guide keeps its own list look and sizes */
.prose .sg ul li, .sg ul li { position: static; padding: 0; margin: 0; }
.prose .sg ul li::before, .sg ul li::before { content: none; display: none; }
.qa__a .sg { margin-top: 12px; line-height: 1.5; }
.qa__a .sg .sg__keys li, .qa__a .sg .sg__notes li { font-size: 12.5px; }
@media (max-width: 760px) {
  .sg__top { grid-template-columns: 112px 1fr; gap: 12px; padding: 12px; }
  .sg__keys { gap: 8px; }
  .sg__keys strong { font-size: 13px; }
  .sg__table thead th { font-size: 11.5px; padding: 9px 3px; }
  .sg__table thead .sg__n { display: none; }
  .sg__table td { font-size: 14px; }
}

/* the footer logo block: logo, slogan and social icons sit close together (at the bottom of the column on a computer),
   and the five icons span exactly the logo's width */
.ftr__brand .social { width: 240px; justify-content: space-between !important; gap: 0 !important; }
.ftr__brand .social a { width: 42px !important; height: 42px !important; }
.ftr__brand .social .i { width: 19px !important; height: 19px !important; }
@media (min-width: 1101px) { .ftr__grid .ftr__brand { align-content: end; gap: 14px !important; } }
@media (max-width: 760px) {
  .ftr__brand .social { width: 160px; }
  .ftr__brand .social a { width: 29px !important; height: 29px !important; }
  .ftr__brand .social .i { width: 15px !important; height: 15px !important; }
}
/* three equal footer columns on a computer, so the middle one sits on the page's centre line */
@media (min-width: 1101px) { .ftr__grid { grid-template-columns: 1fr 1fr 1fr; } }
.ftr__bottom { justify-content: center; text-align: center; } /* the rights line on the centre line too */
/* computer: the logo column mirrors the payments column (its gap faces the line next to it), and the logo, slogan
   and icons grow to fill it, centred, so neither side is left with a big empty space */
@media (min-width: 1101px) {
  .ftr__grid .ftr__brand { width: auto; justify-self: stretch; padding-inline: 0 clamp(16px, 2.6vw, 40px) !important; }
  .ftr__grid .ftr__brand > a { width: min(100%, 336px); }
  .ftr__grid .ftr__brand > a img { width: 100% !important; height: auto; }
  .ftr__grid .ftr__brand .ftr__tagline { width: min(100%, 360px); }
  .ftr__grid .ftr__brand .ftr__tagline img, html[lang="en"] .ftr__grid .ftr__brand .ftr__tagline img { width: 100% !important; margin: -12px auto -15px; }
  .ftr__grid .ftr__brand .social { width: min(100%, 336px); }
  .ftr__grid .ftr__brand .social a { width: 56px !important; height: 56px !important; } /* five of them with 14px between fill the logo's width */
  .ftr__grid .ftr__brand .social .i { width: 24px !important; height: 24px !important; }
}

/* hero = three designed banners (hero-banner / hero-blessin / hero-almd, 16:9, their own text inside).
   Computer, Arabic: the slide's whole banner over the card, with its own «تسوق الآن» under the text;
   the new one fades in on top and the old one drops away after, so nothing shows through in between.
   Phone, tablet and English: the banners' photo parts (no small text) with the page's own text. */
.hero__banner { display: none; }
@media (min-width: 901px) {
  html:not([lang="en"]) .hero { aspect-ratio: 2.2 / 1; } /* tall enough to show the banners down to their last line */
  html:not([lang="en"]) .hero__banner { display: block; position: absolute; z-index: 2; inset: 0; container-type: inline-size; background: #0A0A0A; opacity: 0; visibility: hidden; transition: opacity 0s 1.1s, visibility 0s 1.1s; }
  html:not([lang="en"]) .hero:not([data-slide]) .hero__banner[data-for="0"],
  html:not([lang="en"]) .hero[data-slide="0"] .hero__banner[data-for="0"],
  html:not([lang="en"]) .hero[data-slide="1"] .hero__banner[data-for="1"],
  html:not([lang="en"]) .hero[data-slide="2"] .hero__banner[data-for="2"] { opacity: 1; visibility: visible; z-index: 3; transition: opacity 1.1s var(--ease); }
  .hero__banner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
  .hero__bcta { position: absolute; top: 29.4cqw; left: 3.1cqw; min-width: 200px; }
  .hero__bcta .i { transition: translate .2s var(--ease); }
  .hero__bcta:hover .i { translate: calc(4px * var(--x)) 0; }
  /* the banners carry the words and the button: the page's copy stays for screen readers only */
  html:not([lang="en"]) .hero__inner { opacity: 0; pointer-events: none; }
  html:not([lang="en"]) .hero__cta { visibility: hidden; }
  /* slide numbers: one row at the bottom middle, so they never sit on a banner's text */
  html:not([lang="en"]) .hero__dots { top: auto; bottom: 16px; inset-inline-end: auto; inset-inline-start: 50%; transform: translateX(50%); grid-auto-flow: column; gap: 22px; padding: 6px 16px; border-radius: 999px; background: rgba(7, 6, 5, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  html:not([lang="en"]) .hero__dots button::after { display: none; }
  html:not([lang="en"]) .hero__dots button[aria-selected="true"] { color: var(--orange); }
}

/* header: the slogan under the logo — Arabic on the Arabic site, English on the English one */
.hdr__logo { display: grid; justify-items: center; gap: 2px; padding-block: 4px; }
.hdr__logo img, .hdr.is-solid .hdr__logo img { height: 48px; }
.hdr__tag { display: flex; align-items: center; gap: .35em; font: 700 11.5px/1.15 Alexandria, sans-serif; color: var(--text); white-space: nowrap; }
.hdr__tag b { font-weight: inherit; color: var(--orange); }
.hdr__star { display: block; width: .62em; height: .62em; background: var(--orange); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-50 -50 100 100'%3E%3Cpath d='M0,-50 Q14,-14 50,0 Q14,14 0,50 Q-14,14 -50,0 Q-14,-14 0,-50Z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-50 -50 100 100'%3E%3Cpath d='M0,-50 Q14,-14 50,0 Q14,14 0,50 Q-14,14 -50,0 Q-14,-14 0,-50Z'/%3E%3C/svg%3E") center/contain no-repeat; }
html[lang="en"] .hdr__tag { font: 700 8px/1.2 Montserrat, sans-serif; letter-spacing: .14em; direction: ltr; }
@media (max-width: 900px) { .hdr__logo { gap: 1px; padding-block: 2px; } .hdr__logo img, .hdr.is-solid .hdr__logo img { height: 32px; } .hdr__tag { font-size: 8.5px; } html[lang="en"] .hdr__tag { font-size: 6px; letter-spacing: .1em; } }
@media (max-width: 400px) { .hdr__logo img, .hdr.is-solid .hdr__logo img { height: 30px; } .hdr__tag { font-size: 8px; } }
/* footer slogan as real text: follows light/dark mode and the page language */
.ftr__grid .ftr__brand p.ftr__motto { display: flex; justify-content: center; align-items: center; gap: .35em; width: auto !important; margin: 8px auto 2px; font-family: Alexandria, sans-serif; font-weight: 700; font-size: 25px !important; line-height: 1.25; letter-spacing: 0; color: var(--text); transform: none; text-shadow: none; white-space: nowrap; }
.ftr__grid .ftr__brand p.ftr__motto b { font-weight: inherit; color: var(--orange); }
.ftr__grid .ftr__brand p.ftr__motto .hdr__star { width: .55em; height: .55em; }
html[lang="en"] .ftr__grid .ftr__brand p.ftr__motto { font-family: Montserrat, sans-serif; font-size: 14.5px !important; letter-spacing: .16em; direction: ltr; }
@media (max-width: 760px) { .ftr__grid .ftr__brand p.ftr__motto { font-size: 16px !important; margin-top: 6px; } html[lang="en"] .ftr__grid .ftr__brand p.ftr__motto { font-size: 9.5px !important; } }
