/* «مجلة أزياء» (theme.style = editorial; Sultan, 2026-10-15): the same shop dressed like Zara. White, black, thin type, photos the
   size of the screen, products as tall pictures with a small name under them, square black buttons, no boxes and no shadows.
   Everything is scoped to :root[data-style="editorial"], so the «تطبيق» look is untouched. js/editorial.js runs the opening. */

:root[data-style="editorial"] {
  --bg: #fff; --card: #fff; --ink: #000; --sub: #6b6b6b; --line: rgb(0 0 0 / .12); --fill: #f2f2f2;
  --glass: rgb(255 255 255 / .9); --glass-edge: rgb(0 0 0 / .08); --shadow: none;
  --r: 0px; --r-sm: 0px; --r-lg: 0px;
  --font-d: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --top-h: 132px;
}
:root[data-style="editorial"][data-mode="dark"] { --bg: #000; --card: #000; --ink: #fff; --sub: #a0a0a0; --line: rgb(255 255 255 / .16); --fill: #141414; --glass: rgb(0 0 0 / .86); }
@media (prefers-color-scheme: dark) {
  :root[data-style="editorial"][data-mode="auto"] { --bg: #000; --card: #000; --ink: #fff; --sub: #a0a0a0; --line: rgb(255 255 255 / .16); --fill: #141414; --glass: rgb(0 0 0 / .86); }
}
[data-style="editorial"] body { padding-top: var(--top-h); font-weight: 300; letter-spacing: 0; }   /* Arabic letters join: never spaced apart */
[data-style="editorial"] h1, [data-style="editorial"] h2, [data-style="editorial"] h3 { font-weight: 300; }
[data-style="editorial"] b, [data-style="editorial"] strong { font-weight: 500; }

/* buttons: square, black, quiet */
[data-style="editorial"] .btn { border-radius: 0; height: 52px; font-weight: 400; }
[data-style="editorial"] .btn-accent { background: var(--ink); color: var(--bg); }
[data-style="editorial"] .btn-line { box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }
[data-style="editorial"] .btn-soft { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
[data-style="editorial"] .input { border-radius: 0; box-shadow: inset 0 -1px 0 var(--line); background: transparent; padding-inline: 2px; }
[data-style="editorial"] .input:focus { box-shadow: inset 0 -1.5px 0 var(--ink); }

/* ---------- the header floats; over the first photo it is clear with white words ---------- */
[data-style="editorial"] .top { position: fixed; inset-inline: 0; top: 0; background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 1px 0 var(--line);
  transition: transform 520ms var(--ease), background-color 420ms ease, color 420ms ease, box-shadow 420ms ease; }
[data-style="editorial"] .top.over { background: transparent; color: #fff; box-shadow: none; }
[data-style="editorial"] .top.over .announce { background: transparent; color: #fff; }
[data-style="editorial"] .top .announce { background: var(--bg); color: var(--ink); font-size: 11.5px; font-weight: 400; padding: 7px 16px;
  box-shadow: 0 1px 0 var(--line); transition: background-color 420ms ease, color 420ms ease; }
[data-style="editorial"] .top.over .announce { box-shadow: 0 1px 0 rgb(255 255 255 / .25); }
[data-style="editorial"] .brand { min-height: 60px; }
[data-style="editorial"] .brand-mark { display: none; }
[data-style="editorial"] .brand-name { font: 300 26px/1 var(--font-d); }
[data-style="editorial"] .search { padding-bottom: 8px; }
[data-style="editorial"] .search input { height: 40px; border-radius: 0; background: transparent; box-shadow: inset 0 -1px 0 currentColor; padding-inline: 32px 4px; font-weight: 300; color: inherit; }
[data-style="editorial"] .search input::placeholder { color: currentColor; opacity: .6; }
[data-style="editorial"] .search input:focus { background: transparent; box-shadow: inset 0 -1.5px 0 currentColor; }
[data-style="editorial"] .search svg { inset-inline-start: 2px; top: 10px; color: currentColor; opacity: .75; }
[data-style="editorial"] .chips { gap: 22px; padding-block: 4px 12px; }
[data-style="editorial"] .chip { height: 26px; padding: 0; background: none; box-shadow: none; border-radius: 0; font-size: 13px; font-weight: 400; color: inherit; opacity: .7;
  background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 100% 100%; background-repeat: no-repeat; transition: background-size 420ms var(--ease), opacity 200ms; }
[data-style="editorial"] .chip[aria-current="true"] { background-color: transparent; color: inherit; opacity: 1; background-size: 100% 1px; }
[data-style="editorial"] .chip svg { width: 15px; height: 15px; }
[data-style="editorial"] .badge-n { background: var(--ink); color: var(--bg); box-shadow: none; }
[data-style="editorial"] .top.over .badge-n { background: #fff; color: #000; }

/* ---------- the first photos: each the size of the screen, words at the bottom ---------- */
[data-style="editorial"] .view { padding-top: 14px; gap: 26px; }
[data-style="editorial"] .view:has(> .hero-stack) { padding-top: 0; gap: 54px; }   /* the home page breathes more */
[data-style="editorial"] .hero-stack { display: grid; gap: 4px; width: 100vw; margin-inline: calc(50% - 50vw); }
[data-style="editorial"] .hero-stack .hero-slide.first { margin-top: calc(-1 * var(--top-h)); }
.hero-slide { position: relative; display: block; height: 86svh; min-height: 420px; overflow: hidden; background: var(--fill); color: #fff; }
.hero-slide.first { height: 100svh; }
.hero-pic { position: absolute; inset: 0; overflow: hidden; }
.hero-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transform-origin: 50% 40%; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / .5), transparent 45%), linear-gradient(to bottom, rgb(0 0 0 / .28), transparent 30%); pointer-events: none; }
.hero-text { position: absolute; z-index: 1; inset: auto 0 0 0; padding: 0 24px calc(28px + var(--tabs-h) + env(safe-area-inset-bottom, 0px)); display: grid; justify-items: center; gap: 8px; text-align: center; }
.hero-line { display: block; overflow: hidden; padding-block: 2px; }
.hero-line > * { display: inline-block; }
.hero-text b { font: 200 clamp(32px, 9vw, 72px)/1.1 var(--font-d); }
.hero-text .hero-line span { font-size: 14px; font-weight: 300; opacity: .92; }
.hero-cta { margin-top: 6px; font-size: 12.5px !important; padding-bottom: 4px; border-bottom: 1px solid currentColor; }
/* the photos further down come in slowly as they reach the screen (js/shop.js · reveal adds .rv / .in) */
.hero-slide.rv { opacity: 1; transform: none; }
.hero-slide.rv .hero-pic img { transform: scale(1.14); transition: transform 1800ms var(--ease); }
.hero-slide.rv.in .hero-pic img { transform: none; }
.hero-slide.rv .hero-line > * { transform: translateY(110%); transition: transform 1100ms var(--ease) 250ms; }
.hero-slide.rv.in .hero-line > * { transform: none; }
.hero-slide.rv .hero-line + .hero-line > * { transition-delay: 380ms; }

/* ---------- sections: small quiet titles ---------- */
[data-style="editorial"] .sec { gap: 18px; }
[data-style="editorial"] .sec-head h2 { font-size: 15px; font-weight: 400; }
[data-style="editorial"] .sec-head a { color: var(--ink); font-size: 12.5px; font-weight: 400; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
[data-style="editorial"] .crumbs { font-size: 12px; }
[data-style="editorial"] .list-head h1, [data-style="editorial"] .co h1 { font-size: 22px; font-weight: 300; }

/* the categories: tall pictures, two to a row, the name over the bottom */
[data-style="editorial"] .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin-inline: calc(-1 * var(--pad) + 4px); }
[data-style="editorial"] .cats > a { position: relative; display: block; overflow: hidden; color: #fff; }
[data-style="editorial"] .cats .cat-pic { width: 100%; max-width: none; aspect-ratio: 3 / 4; border-radius: 0; box-shadow: none; display: block; }
[data-style="editorial"] .cats .cat-pic img { transition: transform 1200ms var(--ease); }
@media (hover: hover) { [data-style="editorial"] .cats > a:hover .cat-pic img { transform: scale(1.05); } }
[data-style="editorial"] .cats > a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / .45), transparent 50%); }
[data-style="editorial"] .cats > a > span:last-child { position: absolute; z-index: 1; inset: auto 0 14px; text-align: center; font-size: 15px; font-weight: 300; }

/* ---------- products: tall pictures, a small name and price under them, no box ---------- */
[data-style="editorial"] .grid { gap: 30px 4px; margin-inline: calc(-1 * var(--pad) + 4px); }
[data-style="editorial"] .row-scroll { gap: 4px; grid-auto-columns: minmax(150px, 46%); }
[data-style="editorial"] .card { background: none; box-shadow: none; border-radius: 0; overflow: visible; }
[data-style="editorial"] .card-pic { aspect-ratio: 3 / 4; }
[data-style="editorial"] .card-pic img { transition: transform 1200ms var(--ease), opacity 400ms; }
@media (hover: hover) { [data-style="editorial"] .card:hover .card-pic img { transform: scale(1.04); } }
[data-style="editorial"] .card-body { padding: 10px 6px 0; gap: 4px; align-content: start; }
[data-style="editorial"] .card-name { font-size: 12.5px; font-weight: 300; min-height: 0; -webkit-line-clamp: 1; }
[data-style="editorial"] .card-brand { font-size: 11px; }
[data-style="editorial"] .card .add { display: none; }
[data-style="editorial"] .card .price b { font-size: 12.5px; font-weight: 400; }
[data-style="editorial"] .card .price b small { font-size: 10.5px; font-weight: 300; }
[data-style="editorial"] .card .price s { font-size: 11px; }
[data-style="editorial"] .card .price { flex-direction: row; align-items: baseline; gap: 8px; }
[data-style="editorial"] .tags { top: 8px; inset-inline-start: 8px; }
[data-style="editorial"] .tag { height: 20px; padding-inline: 7px; border-radius: 0; font-size: 10.5px; font-weight: 400; background: #fff; color: #000; }
[data-style="editorial"] .tag.sale { background: #fff; color: #c1121f; }
[data-style="editorial"] .tag.new { background: #fff; color: #000; }
[data-style="editorial"] .tag.left { background: #fff; color: #9a5b00; }
[data-style="editorial"] .out-mark { border-radius: 0; background: rgb(255 255 255 / .9); color: #000; font-weight: 400; }
/* cards rise slower and softer here */
[data-style="editorial"] .rv { transform: translateY(34px); transition: opacity 1000ms var(--ease), transform 1300ms var(--ease); transition-delay: var(--d, 0ms); }
[data-style="editorial"] .rv.in { transform: none; }

/* ---------- a product: a tall photo, then quiet details ---------- */
[data-style="editorial"] .gallery { margin-inline: calc(-1 * var(--pad)); }
[data-style="editorial"] .gal-track { border-radius: 0; background: var(--fill); }
[data-style="editorial"] .gal-track > * { aspect-ratio: 3 / 4; height: auto; background: var(--fill); }
[data-style="editorial"] .gal-track img, [data-style="editorial"] .gal-track video { object-fit: cover; }
[data-style="editorial"] .thumbs button { border-radius: 0; width: 48px; height: 64px; }
[data-style="editorial"] .pd-info h1 { font-size: 20px; }
[data-style="editorial"] .pd .price b { font-size: 18px; font-weight: 400; }
[data-style="editorial"] .opt-values button { border-radius: 0; height: 40px; min-width: 52px; box-shadow: inset 0 0 0 1px var(--line); font-weight: 300; background: transparent; }
[data-style="editorial"] .opt-values button[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--ink); background: var(--ink); color: var(--bg); font-weight: 400; }
[data-style="editorial"] .qty { border-radius: 0; background: transparent; }
[data-style="editorial"] .pd-sec h2 { font-size: 13.5px; font-weight: 400; }
[data-style="editorial"] .specs { border-radius: 0; box-shadow: none; border-top: 1px solid var(--line); }
[data-style="editorial"] .specs div { background: none !important; border-bottom: 1px solid var(--line); padding-inline: 0; }
[data-style="editorial"] .ask { color: var(--ink); font-weight: 400; font-size: 13px; }
[data-style="editorial"] .deal-line, [data-style="editorial"] .countdown { border-radius: 0; }
[data-style="editorial"] .sticky-buy { border-radius: 0; inset-inline: 0; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -1px 0 var(--line); max-width: none; background: var(--bg); }

/* ---------- the tab bar: flat, full width, a thin line on top ---------- */
[data-style="editorial"] .tabs { inset-inline: 0; bottom: 0; height: calc(60px + env(safe-area-inset-bottom, 0px)); padding: 0 0 env(safe-area-inset-bottom, 0px); border-radius: 0; max-width: none;
  background: var(--glass); box-shadow: 0 -1px 0 var(--line); }
[data-style="editorial"] .tab { border-radius: 0; font-weight: 400; color: var(--sub); }
[data-style="editorial"] .tab svg { width: 22px; height: 22px; }
[data-style="editorial"] .tab[aria-current="page"] { color: var(--ink); }
[data-style="editorial"] .tab-lens { top: 0; bottom: auto; height: 1.5px; border-radius: 0; background: var(--ink); }
[data-style="editorial"] { --tabs-h: 60px; }

/* ---------- sheets, basket, order form, footer, welcome: square and quiet ---------- */
[data-style="editorial"] .sheet-card { border-radius: 0 !important; }
[data-style="editorial"] .lines { border-radius: 0; gap: 0; border-top: 1px solid var(--line); }
[data-style="editorial"] .line { border-bottom: 1px solid var(--line); padding-inline: 0; }
[data-style="editorial"] .line img, [data-style="editorial"] .line .ph { border-radius: 0; height: 80px; object-fit: cover; }
[data-style="editorial"] .sum, [data-style="editorial"] .co-group { border-radius: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
[data-style="editorial"] .foot { background: var(--bg); }
[data-style="editorial"] .foot-brand b { font-weight: 300; }
[data-style="editorial"] .welcome { border-radius: 0; box-shadow: 0 20px 50px -20px rgb(0 0 0 / .35), inset 0 0 0 1px var(--line); bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
[data-style="editorial"] .wa-float { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
[data-style="editorial"] .toast { border-radius: 0; }
[data-style="editorial"] .empty { font-weight: 300; }

/* ---------- the opening: the name alone on white, then the white lifts away (js/editorial.js) ---------- */
[data-style="editorial"] .intro { background: var(--bg); }
[data-style="editorial"] .intro-name { font: 200 clamp(34px, 10vw, 64px)/1 var(--font-d); opacity: 0; }
html.opening, html.opening body { overflow: hidden; }

/* ---------- a computer ---------- */
@media (min-width: 900px) {
  [data-style="editorial"] .top-in { grid-template-columns: 1fr minmax(0, 420px) 1fr; grid-template-areas: "search brand cart" "chips chips chips"; }
  [data-style="editorial"] .top-in .search { justify-self: start; max-width: 260px; }
  [data-style="editorial"] .top-in .brand { justify-content: center; }
  [data-style="editorial"] .top-in .cart-btn { justify-self: end; }
  [data-style="editorial"] .top-in .orders-btn { display: grid; grid-area: cart; justify-self: end; margin-inline-end: 52px; }
  [data-style="editorial"] .chips { justify-content: center; mask: none; -webkit-mask: none; }
  [data-style="editorial"] .brand-name { font-size: 32px; }
  [data-style="editorial"] body { padding-bottom: 0; }
  .hero-slide { height: 92vh; }
  .hero-slide.first { height: 100vh; }
  .hero-text { padding-bottom: 56px; }
  [data-style="editorial"] .hero-stack { grid-template-columns: 1fr 1fr; }
  [data-style="editorial"] .hero-stack .hero-slide.first { grid-column: 1 / -1; }
  [data-style="editorial"] .hero-stack .hero-slide:not(.first) { height: 88vh; }
  [data-style="editorial"] .hero-stack .hero-slide:not(.first):last-child:nth-child(even) { grid-column: 1 / -1; }   /* an odd one out takes the whole row */
  [data-style="editorial"] .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-inline: 0; }
  [data-style="editorial"] .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-inline: 0; gap: 44px 6px; }
  [data-style="editorial"] .row-scroll { grid-auto-columns: minmax(220px, 24%); }
  [data-style="editorial"] .gallery { margin-inline: 0; }
  [data-style="editorial"] .pd > .pd-info { top: calc(var(--top-h) + 24px); }
}
@media (min-width: 1180px) { [data-style="editorial"] .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  [data-style="editorial"] .gal-track > * { aspect-ratio: 3 / 4; height: auto; }
  [data-style="editorial"] .gal-track img, [data-style="editorial"] .gal-track video { object-fit: cover; }
  [data-style="editorial"] .gallery { margin-inline: calc(-1 * var(--pad)); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide.rv .hero-pic img, .hero-slide.rv .hero-line > * { transform: none; transition: none; }
}
