/* =====================================================================
   OBJECT — identity layer («فخامة من الشارع»), loaded after every other
   stylesheet. Layout stays the store's; this sets the logo, palette, type,
   corners and the browser surfaces from the OBJECT brand book (v1.0).
   Palette: black #0C0C0C · bone #E6DACC · signal #E2621F · spray rust #C4501A
            · concrete #3B3835 · stone #8C857C
   Type: Alexandria (Arabic) · Anybody Extended 800 (Latin display)
         · Montserrat 500 +42% (labels) · Space Mono (data)
   ===================================================================== */

:root {
  --orange: #E2621F;                    /* signal: buttons, prices, links — 5.6:1 on black */
  --orange-hover: #EC7434;
  --orange-press: #C4501A;
  --orange-soft: rgba(226, 98, 31, .12);
  --orange-line: rgba(226, 98, 31, .5);
  --on-orange: #0C0C0C;
  --rust: #C4501A;                      /* the spray tag only */
  --bone: #E6DACC;
  --concrete: #3B3835;
  --stone: #8C857C;

  --bg: #0C0C0C;
  --bg-2: #0F0E0D;
  --surface: #141312;
  --surface-2: #191716;
  --surface-3: #221F1D;
  --line: #2A2724;
  --line-2: #3B3835;
  --text: #E6DACC;
  --text-2: #CFC4B6;
  --muted: #8C857C;
  --card-bg: #141312;
  --hdr-solid: rgba(12, 12, 12, .8);

  --f-ar: "Alexandria", "Segoe UI", Tahoma, Arial, sans-serif;
  --f-head: "Alexandria", "Segoe UI", Tahoma, Arial, sans-serif;
  --f-en: "Anybody", "Arial Black", "Segoe UI", sans-serif;
  --f-logo: "Montserrat", "Segoe UI", Arial, sans-serif;
  --f-data: "Space Mono", ui-monospace, Consolas, monospace;

  /* sharp, like a label stitched on: no soft pills */
  --r-xs: 2px;
  --r-sm: 3px;
  --r-md: 4px;
  --r-lg: 6px;
  --r-xl: 8px;
  --r-pill: 3px;
  --shadow: 0 18px 40px rgba(0, 0, 0, .55);
  --ease-brand: cubic-bezier(.2, .8, .2, 1);

  accent-color: var(--orange);
  caret-color: var(--orange);
  scrollbar-color: #3B3835 transparent;
}
/* light palette: bone paper and black ink (signal as text darkens to rust for 5:1 on bone) */
:root[data-theme="light"] {
  --bg: #EFE8DE;
  --bg-2: #E6DACC;
  --surface: #F7F2EB;
  --surface-2: #F1EBE2;
  --surface-3: #E6DCCF;
  --line: #DDD2C4;
  --line-2: #CBBFAF;
  --text: #0C0C0C;
  --text-2: #3B3835;
  --muted: #6E675F;
  --ink: #A3410E;
  --card-bg: #F7F2EB;
  --hdr-solid: rgba(239, 232, 222, .82);
  --field-bg: #F7F2EB;
  --field-line: #CBBFAF;
  --shadow: 0 18px 40px rgba(40, 30, 20, .14);
  scrollbar-color: #CBBFAF transparent;
}
:root[data-theme="light"], :root[data-theme="light"] body { background: var(--bg); }
/* photo areas stay black in both themes */
.is-dark {
  --bg: #0C0C0C;
  --bg-2: #0F0E0D;
  --surface: #141312;
  --surface-2: #191716;
  --surface-3: #221F1D;
  --line: #2A2724;
  --line-2: #3B3835;
  --text: #E6DACC;
  --text-2: #CFC4B6;
  --muted: #8C857C;
  --ink: var(--orange);
  --card-bg: #141312;
  --hdr-solid: rgba(12, 12, 12, .8);
}

/* ---------- logo: one picture per theme ---------- */
.lg--l { display: none !important; }
:root[data-theme="light"] .lg--d { display: none !important; }
:root[data-theme="light"] .lg--l { display: block !important; }
:root[data-theme="light"] .hdr:not(.is-solid) .lg--d, :root[data-theme="light"] .is-dark .lg--d { display: block !important; }
:root[data-theme="light"] .hdr:not(.is-solid) .lg--l, :root[data-theme="light"] .is-dark .lg--l { display: none !important; }

/* the lockup already carries LUXURY STREETWEAR: no second line under it */
.hdr__tag { display: none !important; }
.hdr__logo { gap: 0; }
.hdr__logo img, .hdr.is-solid .hdr__logo img { height: 30px; width: auto; }
.mnav__logo { height: 24px; width: auto; }
.offer-pop__logo { height: 22px; width: auto; }
.aam-load img { width: min(320px, 62vw) !important; height: auto !important; }
@media (max-width: 900px) { .hdr__logo img, .hdr.is-solid .hdr__logo img { height: 22px; } }
@media (max-width: 400px) { .hdr__logo img, .hdr.is-solid .hdr__logo img { height: 19px; } }

/* footer: the stacked logo, then «فخامة من الشارع» as a quiet line — the book's footer, no tilt */
.ftr__brand > a { display: block; }
/* wide screens: the logo, motto and accounts sit in the middle of the brand column, not pinned to its bottom */
@media (min-width: 1101px) { .ftr__grid .ftr__brand { align-content: center; } }
.ftr__brand > a img, .ftr__grid .ftr__brand > a img { width: 230px !important; max-width: 100%; height: auto; margin-inline: auto; }
.ftr__brand p, .ftr__brand .ftr__motto, html[lang="en"] .ftr__brand p {
  font: 500 15px/1.6 var(--f-ar) !important; color: var(--text-2) !important; transform: none !important;
  letter-spacing: 0 !important; white-space: nowrap;
}
html[lang="en"] .ftr__brand p { font: 500 11px/1.6 var(--f-logo) !important; letter-spacing: .42em !important; text-transform: uppercase; }
.ftr__grid .ftr__brand p.ftr__motto { font: 500 17px/1.5 var(--f-ar) !important; color: var(--text-2) !important; gap: 0; margin-top: 4px; }
.ftr__grid .ftr__brand p.ftr__motto b { color: var(--text) !important; font-weight: inherit; }
html[lang="en"] .ftr__grid .ftr__brand p.ftr__motto { font: 500 11px/1.6 var(--f-logo) !important; letter-spacing: .42em !important; }
/* the old four-point star becomes a short signal dash */
.hdr__star, .ftr__grid .ftr__brand p.ftr__motto .hdr__star { display: inline-block; width: 16px; height: 1px; background: var(--orange); margin-inline: .6em; -webkit-mask: none; mask: none; transform: none; }
@media (max-width: 760px) {
  .ftr__brand > a img, .ftr__grid .ftr__brand > a img { width: 190px !important; }
  .ftr__grid .ftr__brand p.ftr__motto { font-size: 15px !important; }
  html[lang="en"] .ftr__grid .ftr__brand p.ftr__motto { font-size: 9.5px !important; }
}
/* collection names: Alexandria runs wider than the old face */
@media (min-width: 761px) { .col__ar { font-size: clamp(17px, 1.65vw, 22px); } }
@media (max-width: 760px) {
  .col__title { font-size: 13.5px; font-stretch: 105%; }
  .col__ar { font-size: 10px; }
}

/* ---------- type ---------- */
body { font-family: var(--f-ar); }
/* Latin display: Anybody Extended 800, caps — the book's «NOT JUST A PIECE.» */
.en { font-family: var(--f-en); font-weight: 800; font-stretch: 125%; text-transform: uppercase; letter-spacing: .01em; font-synthesis: none; }
.en span, .en em { font-family: inherit; font-style: normal; }
/* Arabic headlines: Alexandria 700; English ones: Anybody Extended */
h1, h2, .hero__title { font-family: var(--f-head); font-weight: 700; letter-spacing: 0; }
:root[lang="en"] h1, :root[lang="en"] h2, :root[lang="en"] .hero__title { font-family: var(--f-en); font-weight: 800; font-stretch: 118%; text-transform: uppercase; letter-spacing: 0; font-synthesis: none; }
h1 em, h2 em, .hero__title em { font-style: normal; }
/* product names are Latin: Montserrat caps, tracked like a garment label */
.pcard__name { font-family: var(--f-logo); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
/* product cards: the body fills the card and «إضافة للسلة» sits at its bottom, so the buttons line up whatever the name's length */
.pcard__body { display: flex; flex-direction: column; flex: 1 1 auto; }
.pcard__body > .sizes { width: 100%; }
.pcard__add { margin-top: auto; }
/* phones: the name keeps room for two lines, so prices and sizes line up too */
@media (max-width: 760px) {
  .pcard__name { min-height: 2.6em; display: flex; align-items: center; justify-content: center; }
}
.info__name { font-family: var(--f-en); font-weight: 800; font-stretch: 112%; text-transform: uppercase; letter-spacing: 0; font-synthesis: none; line-height: 1.08; }
/* labels: Montserrat 500, +42% */
.eyebrow { font-family: var(--f-logo); font-weight: 500; letter-spacing: .42em; color: var(--ink); }
/* data: Space Mono */
.hero__dots .num, .pcard__meta, .ostatus__no, .order__no { font-family: var(--f-data); letter-spacing: .04em; }
/* footer column titles stay small body type */
.ftr h2, :root[lang="en"] .ftr h2 { font-family: var(--f-ar); font-weight: 600; text-transform: none; letter-spacing: 0; font-stretch: 100%; }

/* section titles: a short signal rule, square ends */
.section-title::after { width: 48px; height: 2px; border-radius: 0; }

/* collection and banner words are short: the extended face carries them */
.col__title { font-stretch: 112%; }
.bnr__en { font-stretch: 112%; line-height: 1.05; }

/* ---------- buttons: square, signal, black text ---------- */
.btn { border-radius: var(--r-sm); font-weight: 600; letter-spacing: 0; }
.btn--pill, .btn--icon { border-radius: var(--r-sm); }
.btn--primary, .btn--primary:hover, .btn--primary:focus-visible { color: var(--on-orange); }
.btn--primary:hover { background: var(--orange-hover); box-shadow: none; }
.btn--primary:active { background: var(--orange-press); }
.btn--outline { border-width: 1px; }
.chip { border-radius: var(--r-sm); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary { transition: background .12s var(--ease), transform .12s var(--ease-brand); }
  .btn--primary:active { transform: scale(.98); }
}

/* hero banners (computer, Arabic): «تسوق الآن» sits under the Arabic copy on the right */
@media (min-width: 901px) {
  .hero__bcta { left: auto; right: 3.1cqw; }
  html:not([lang="en"]) .hero__dots { background: rgba(12, 12, 12, .86); }
}

/* pages drawn by script: hold the space so the footer doesn't jump up and back */
main[data-pdp]:not(:has(.pdp__top)) { min-height: 100svh; }

/* ---------- the spray tag: one per layout, never over the logo ---------- */
/* footer: a tag sprayed low on the wall under the brand column, in the copyright row (clear of the logo above it) */
.ftr { position: relative; overflow: clip; }
.ftr::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  right: max(16px, calc((100% - var(--container)) / 2 + 30px)); bottom: -78px; width: 230px; height: 161px;
  background: url("../brand/ob/spray-tag.svg") no-repeat center / contain; opacity: .7;
}
[dir="ltr"] .ftr::after { right: auto; left: max(16px, calc((100% - var(--container)) / 2 + 30px)); }
@media (max-width: 760px) { .ftr::after { width: 160px; height: 112px; bottom: -56px; opacity: .55; } }
.ftr > * { position: relative; z-index: 1; }

/* ---------- browser surfaces ---------- */
::selection { background: var(--orange); color: var(--on-orange); }
:focus-visible { outline-color: var(--orange); }
input, textarea { caret-color: var(--orange); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #3B3835; border-radius: 0; border: 2px solid transparent; background-clip: padding-box; }
:root[data-theme="light"] ::-webkit-scrollbar-thumb { background-color: #CBBFAF; }

@media (prefers-reduced-motion: reduce) {
  .btn--primary { transition: none; }
  .btn--primary:active { transform: none; }
}

/* ---------- icons: one 2px stroke on the 24 grid, square caps ---------- */
.i { stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; stroke-miterlimit: 4; }
.hdr__btn .i { stroke-width: 1.75; }
.hdr__sound .i, .hdr__theme .i { stroke-width: 2; }
.ph__badge .i, .empty-cart .i, .empty-box .i { stroke-width: 1.5; }
.done__ic .i, .ostatus .i { stroke-width: 2.2; }

/* the third banner is signal orange: its «تسوق الآن» turns black */
@media (min-width: 901px) {
  .hero__banner[data-for="2"] .hero__bcta { background: #0C0C0C; color: #E6DACC; }
  .hero__banner[data-for="2"] .hero__bcta:hover { background: #221F1D; }
}

/* printed documents: the lockup is long and low, so it gets more width than the old square-ish logo */
.inv-head__logo { width: 200px; }
.lb-top img { width: 44mm; }
