/* Theme «electronics» (إلكترونيات وهواتف): direction 1 «أبيض ومحايد» (order 15, design review 01-12-2026,
   team/reports/design/2026-12-01-order-15-colors, owner approved): a cool light-grey day page and a neutral
   graphite night page (no blue cast); the shop's colour only on the main button and the details. Dense but
   44 px touch targets. Font Readex Pro (OFL, /fonts). Values = the design's _src/tokens.mjs (elec, 1). */
@font-face { font-family: "Readex Pro"; font-style: normal; font-display: swap; font-weight: 160 700; src: url(/fonts/readex-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-display: swap; font-weight: 160 700; src: url(/fonts/readex-latin.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
:root { --font: "Readex Pro", system-ui, sans-serif; --font-head: "Readex Pro", system-ui, sans-serif; --head-weight: 700; --max: 1320px;
  --r: 14px; --r-btn: 12px; --r-logo: 12px; --r-dbar: 12px; --shadow: 0 8px 28px rgba(15, 23, 42, .08);
  --bg: #f5f7fa; --surface: #ffffff; --surface-2: #edf0f4; --ink: #0f172a; --muted: #616570; --line: #e1e6ed;
  --top-bg: #ffffff; --top-ink: #0f172a; --ok: #177245; --ok-bg: #e3f4ea; --bad: #b3261e; --bad-bg: #fdecea; --field-line: #848891; --photo-bg: #f1f4f8; color-scheme: light; }
[data-mode="dark"] { --bg: #0e1116; --surface: #171b22; --surface-2: #222831; --ink: #e8ecf1; --muted: #9a9da2; --line: #2c333d; --top-bg: #0e1116; --top-ink: #e8ecf1;
  --ok: #6fd39a; --ok-bg: #16301f; --bad: #ff8f86; --bad-bg: #3a1b19; --field-line: #707479; --photo-bg: #1f252e; --shadow: 0 8px 28px rgba(0, 0, 0, .4); color-scheme: dark; }
/* direction 1: no colour wash behind the search (its blue cut off in a hard line under the links) */
.hero--search { background: var(--top-bg); border-bottom: 1px solid var(--line); }
.hero--search h1 { font-size: 1.15rem; font-weight: 600; }
.hero--search .search.big { border: 1.5px solid var(--field-line); box-shadow: none; }
.card--compact .n { font-size: .98rem; font-weight: 600; }
.card--compact .d { -webkit-line-clamp: 1; font-size: .82rem; }
.card--compact { min-height: 92px; }
.card--tile .ph { aspect-ratio: 1; }
.card--tile .body { padding: .6rem .7rem .7rem; }
.cards--tile { gap: .6rem; }
.top .brand .logo--wide { width: 120px; height: 38px; }
@media (min-width: 1000px) {
  .hero--search .hero-in { display: grid; grid-template-columns: 1fr; justify-items: start; }
  .cards--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards--tile { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .layout:has(.sidecats) { grid-template-columns: 210px minmax(0, 1fr) 340px; }
}
/* order 21 (storefront v2, m03): squares first, «+» in the shop's colour on the photo */
.best-ph .add, .card--tile .ph .add { background: var(--accent); color: var(--on-accent); } /* QA round B4 (m03): «+» in the shop's colour on every square */
.card--tile .p { font-size: 1.05rem; }
/* order 21 (first screen, m03): a lighter search field, then the delivery bar, the pills and the grid at once */
.hero--search.hero--slim .hero-in { padding-block: .7rem .1rem; }
.hero--search .search.big { min-height: 48px; }
.hero--search { border-bottom: 0; background: none; }
