/* KEMET — generated by scripts/build.mjs from src/styles/. Edit those files, not this one. */
/* ---- src/styles/tokens.css ---- */
/* Design tokens: colors, type, spacing. Change the brand here.
   Alabaster = reading & shopping surfaces, cobalt = focal areas, gold = restrained accents.
   Contrast (WCAG 2.2): ink on alabaster 14.7:1, ink-2 7.1:1, gold-ink 5.6:1,
   alabaster on cobalt 9.1:1, gold-light on cobalt-deep 8.5:1, turquoise-ink on surface 6.2:1.
   Turquoise = the faience-blue glass trails on the Met's New Kingdom perfume bottle
   (26.7.1177), next to its yellow and white ones. Use it sparingly. */
/* Display fonts, SIL OFL 1.1 (licenses in fonts/). Headings only: body, prices and
   controls stay on the system Arabic font for legibility.
   - El Messiri (Mohamed Gaber): tall, slender Arabic headings.
   - Marcellus (Astigmatic): flared capitals with a carved-inscription feel, for "KEMET".
   The .woff files are the same TTFs with compressed tables (scripts/ttf-to-woff.mjs). */
@font-face {
  font-family: "El Messiri";
  src: url("fonts/ElMessiri-wght.woff") format("woff"), url("fonts/ElMessiri-wght.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Marcellus";
  src: url("fonts/Marcellus-Regular.woff") format("woff"), url("fonts/Marcellus-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
:root {
  --alabaster: #f5efe4;
  --alabaster-2: #ede4d3;
  --alabaster-3: #e4d8c3;
  --surface: #fffcf6;
  --line: #dccfb8;          /* decorative hairlines */
  --line-strong: #857258;   /* control borders, >= 3:1 on alabaster */
  --ink: #231c14;
  --ink-2: #5a4e40;
  --cobalt: #1b3a8a;
  --cobalt-deep: #12275e;
  --cobalt-tint: #dfe5f4;
  --on-cobalt: #f5efe4;
  --on-cobalt-2: #c9d3ee;
  --gold: #b8913f;          /* decoration only (lines, motifs) */
  --gold-ink: #7a5a17;      /* gold-toned text on light surfaces */
  --gold-light: #e3c67a;    /* gold-toned text/lines on cobalt */
  --turquoise: #2f9a94;     /* decoration on light surfaces (3.3:1) */
  --turquoise-ink: #166b67; /* turquoise text on light surfaces */
  --turquoise-tint: #e2f2ef;
  --turquoise-light: #3aa9a2; /* decoration on cobalt (5:1) */
  --danger: #8f2d1f;

  --font-ar: "Segoe UI", "SF Arabic", "Geeza Pro", "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma, system-ui, sans-serif;
  --font-display: "El Messiri", var(--font-ar);
  --font-latin-display: "Marcellus", Georgia, "Times New Roman", serif;

  --step--1: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.07rem + 0.3vw, 1.3125rem);
  --step-2: clamp(1.375rem, 1.25rem + 0.6vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.5rem + 1.25vw, 2.625rem);
  --step-4: clamp(2.125rem, 1.7rem + 2.2vw, 3.5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: clamp(2rem, 1.6rem + 2vw, 3rem);
  --space-7: clamp(3rem, 2.2rem + 4vw, 5.5rem);
  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --wrap: 76rem;

  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;
  --shadow: 0 1px 2px rgba(35, 28, 20, 0.06), 0 8px 24px rgba(35, 28, 20, 0.07);
  --header-h: 64px;
  --bar-h: 0px;             /* set when the mobile basket bar is visible */
  --focus: 0 0 0 3px var(--surface), 0 0 0 5px var(--cobalt);
}

/* ---- src/styles/base.css ---- */
/* Reset + base typography (RTL Arabic first). */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
  scroll-padding-bottom: calc(var(--bar-h) + 16px);
}
html:has(.basket-bar) { --bar-h: 72px; }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  /* Hieroglyph columns cut faintly into the stone (assets/img/relief.svg, made by
     scripts/relief.mjs). Cards and panels keep their own plain surface. */
  background: var(--alabaster) url("assets/img/relief.svg") repeat;
  background-size: 308px 400px;
  color: var(--ink);
  font-family: var(--font-ar);
  font-size: var(--step-0);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  overflow-wrap: anywhere;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { line-height: 1.35; font-weight: 600; text-wrap: balance; font-family: var(--font-display); }
.brand-ar, .card-title, .entry-tile-title, .size-ml { font-family: var(--font-display); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[lang="en"] { font-family: var(--font-latin-display); }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
[data-page-heading]:focus, h2:focus { outline: none; }
[data-page-heading]:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 4px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: var(--space-4); top: -100px; z-index: 100;
  background: var(--cobalt); color: var(--on-cobalt); padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-s); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: var(--space-2); }
.fine { font-size: var(--step--1); color: var(--ink-2); line-height: 1.6; }
.muted-motif { color: var(--gold); margin-inline: auto; }

/* Scroll-in motion (see App in src/app.js). Without JS, without IntersectionObserver,
   or with reduced motion, everything is simply visible. */
@media (prefers-reduced-motion: no-preference) {
  .motion .divider svg { clip-path: inset(0 100% 0 0); transition: clip-path 1.8s cubic-bezier(0.3, 0.6, 0.2, 1); }
  .motion .divider.is-in svg { clip-path: inset(0 0 0 0); }
  .motion [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .motion [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---- src/styles/layout.css ---- */
/* Page frame: wrap, header, footer, drawers, sticky basket bar.
   Breakpoints (mobile first): 480 small phones+, 720 tablets, 1024 desktop, 1280 wide. */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
main { display: block; padding-bottom: calc(var(--space-7) + var(--bar-h)); }
.section { padding-block: var(--space-6); }
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: var(--space-3) var(--space-4);
  flex-wrap: wrap; margin-bottom: var(--space-5);
}
.section-sub { color: var(--ink-2); margin-top: var(--space-1); }
/* A tiny cornice (gold cavetto on a turquoise torus) above section titles. */
.section-head h2::before {
  content: ""; display: block; width: 36px; height: 11px; margin-bottom: var(--space-2);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 11'%3E%3Cpath d='M0 0h36l-3.5 6.5h-29z' fill='%23b8913f'/%3E%3Crect x='3' y='7.6' width='30' height='2.8' rx='1.4' fill='%232f9a94'/%3E%3C/svg%3E") no-repeat;
}
.count { color: var(--gold-ink); font-weight: 600; font-size: 0.8em; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--alabaster) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: var(--space-2); min-height: var(--header-h); }
.brand {
  display: inline-flex; align-items: center; gap: var(--space-2);
  text-decoration: none; margin-inline-end: auto; min-height: 44px;
}
.brand svg { flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-latin {
  font-family: var(--font-latin-display); letter-spacing: 0.22em; font-weight: 400;
  color: var(--gold-ink); font-size: 1.05rem;
}
.brand-ar { font-size: 0.8rem; color: var(--ink-2); }

/* Cartouche: the oval ring Egyptian scribes drew around royal names, closed by a
   bar at the end of the reading direction (on the left, in right-to-left text). */
.cartouche { display: inline-flex; align-items: center; color: var(--gold); }
.cartouche-ring {
  align-items: center; text-align: center;
  border: 1.5px solid currentColor; border-radius: 999px; padding: 3px 14px 4px;
}
.cartouche-ring .brand-latin { margin-inline-start: 0.22em; } /* balance the trailing letter-spacing */
.cartouche::after {
  content: ""; flex: none; align-self: stretch; width: 2px; margin-block: 0.45em;
  margin-inline-start: -1px; background: currentColor; border-radius: 2px;
}
.cartouche-light { color: var(--gold-light); }

/* One gold glint across the header cartouche when the page first opens, in the
   reading direction (right to left). Only after the app takes over, so the
   first-paint copy doesn't play it twice; never with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .app-ready .site-header .cartouche-ring { position: relative; overflow: hidden; }
  .app-ready .site-header .cartouche-ring::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(100deg, transparent 30%, rgba(255, 236, 170, 0.75) 50%, transparent 70%);
    transform: translateX(130%); animation: cartouche-glint 1.3s ease-in-out 0.5s 1 both;
  }
}
@keyframes cartouche-glint { to { transform: translateX(-130%); } }
.main-nav { display: none; }
.main-nav ul { display: flex; gap: var(--space-1); list-style: none; padding: 0; margin: 0; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--space-3);
  text-decoration: none; border-radius: 999px; font-weight: 500;
}
.main-nav a:hover { background: var(--alabaster-2); }
.main-nav a[aria-current="page"] { color: var(--cobalt); box-shadow: inset 0 -2px 0 var(--cobalt); border-radius: 0; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 0; background: transparent; border-radius: 999px; color: var(--ink);
}
.icon-btn:hover { background: var(--alabaster-2); }
.basket-btn {
  position: relative; display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 44px; min-width: 44px; padding-inline: var(--space-3);
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-weight: 600;
}
.basket-btn-label { display: none; }
.basket-count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding-inline: 6px;
  border-radius: 999px; background: var(--cobalt); color: var(--on-cobalt); font-size: 0.8rem; line-height: 1;
}

@media (min-width: 1024px) {
  .menu-btn { display: none; }
  .main-nav { display: block; }
  .brand { margin-inline-end: var(--space-5); }
  .main-nav { margin-inline-end: auto; }
  .basket-btn-label { display: inline; }
}

/* ---- Drawers (native <dialog>) ---- */
.drawer {
  position: fixed; inset-block: 0; margin: 0; height: 100dvh; max-height: 100dvh;
  width: min(420px, 92vw); max-width: none; padding: 0; border: 0;
  background: var(--surface); color: var(--ink);
  display: none; flex-direction: column; box-shadow: 0 0 40px rgba(18, 39, 94, 0.25);
}
.drawer[open] { display: flex; animation: drawer-in 220ms ease-out; }
.drawer::backdrop { background: rgba(18, 26, 48, 0.45); }
.drawer-start { inset-inline-start: 0; inset-inline-end: auto; }
.drawer-end { inset-inline-end: 0; inset-inline-start: auto; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line);
}
.drawer-title { font-size: var(--step-1); }
.drawer-sub { color: var(--ink-2); font-weight: 500; }
.drawer-body { flex: 1; overflow-y: auto; padding: var(--space-4); overscroll-behavior: contain; }
.drawer-foot { padding: var(--space-4); border-top: 1px solid var(--line); display: grid; gap: var(--space-3); background: var(--alabaster); }
@keyframes drawer-in { from { opacity: 0; transform: translateX(var(--drawer-from, 24px)); } }
.drawer-start { --drawer-from: 24px; }
.drawer-end { --drawer-from: -24px; }
[dir="ltr"] .drawer-start { --drawer-from: -24px; }
[dir="ltr"] .drawer-end { --drawer-from: 24px; }

.menu-nav ul { list-style: none; padding: 0; margin: 0; }
.menu-nav a {
  display: flex; align-items: center; justify-content: space-between; min-height: 52px;
  padding-inline: var(--space-2); text-decoration: none; font-size: var(--step-1); border-radius: var(--radius-s);
}
.menu-nav a:hover { background: var(--alabaster-2); }
.menu-count { color: var(--ink-2); font-size: var(--step--1); }
.menu-nav .divider { margin-block: var(--space-3); }

/* ---- Sticky basket bar (phones/tablets) ---- */
.basket-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 25;
  padding: var(--space-2) var(--gutter) calc(var(--space-2) + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--alabaster) 94%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}
.basket-bar-btn {
  width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  border: 0; border-radius: 999px; background: var(--cobalt); color: var(--on-cobalt);
  padding-inline: var(--space-4); font-weight: 600;
}
.basket-bar-info { display: inline-flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; text-align: start; }
.basket-bar-info b { color: var(--gold-light); font-weight: 700; }
.basket-bar-cta { white-space: nowrap; }
@media (min-width: 1024px) {
  .basket-bar { display: none; }
  html:has(.basket-bar) { --bar-h: 0px; }
}

/* ---- Footer ---- */
.site-footer { background: var(--cobalt-deep); color: var(--on-cobalt); padding-bottom: calc(var(--space-6) + var(--bar-h)); }
.site-footer .divider { color: var(--gold-light); opacity: 0.7; }
.footer-inner { display: grid; gap: var(--space-5); padding-block: var(--space-6); }
.footer-brand { display: grid; gap: var(--space-2); justify-items: start; }
.footer-brand .brand-latin { color: var(--gold-light); }
.footer-brand .brand-ar { color: var(--on-cobalt); font-size: 0.95rem; }
.footer-brand p:last-child { color: var(--on-cobalt-2); }
.site-footer nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-1); }
.site-footer nav a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-contact { display: grid; gap: var(--space-2); justify-items: start; }
.footer-contact .fine { color: var(--on-cobalt-2); }
/* Call + map links (ContactLinks): icon in a ring, a small label, then the value. */
.contact-links { list-style: none; padding: 0; margin: var(--space-2) 0 0; display: grid; gap: var(--space-2); }
.contact-links a { display: flex; align-items: center; gap: var(--space-3); min-height: 44px; text-decoration: none; color: inherit; }
.contact-links a > span:last-child { display: grid; line-height: 1.4; }
.contact-links-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; }
.contact-links-label { font-size: var(--step--1); font-weight: 700; }
.contact-links a:hover .contact-links-label { text-decoration: underline; text-underline-offset: 3px; }
.footer-links .contact-links-icon { border: 1px solid var(--gold-light); color: var(--gold-light); }
.footer-links .contact-links-label { color: var(--gold-light); }
.footer-links a > span:last-child > span:not(.contact-links-label) { color: var(--on-cobalt); font-size: var(--step--1); }
.footer-note { color: var(--on-cobalt-2); font-size: var(--step--1); border-top: 1px solid rgba(201, 211, 238, 0.25); padding-top: var(--space-4); }
.site-footer :focus-visible { outline-color: var(--gold-light); }
@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; }
}

/* ---- src/styles/components.css ---- */
/* Buttons, chips, divider, cards, grid, size picker, quantity, basket lines. */

/* ---- Buttons & links ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-5); border-radius: 999px;
  border: 1.5px solid transparent; text-decoration: none; font-weight: 600; line-height: 1.2;
  text-align: center; transition: background-color 150ms, border-color 150ms, color 150ms;
}
.btn-primary { background: var(--cobalt); color: var(--on-cobalt); }
.btn-primary:hover { background: var(--cobalt-deep); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--cobalt); color: var(--cobalt); }
.btn-quiet { background: var(--alabaster-2); color: var(--ink); }
.btn-quiet:hover { background: var(--alabaster-3); }
.btn-on-dark { background: transparent; color: var(--on-cobalt); border-color: var(--gold-light); }
.btn-on-dark:hover { background: rgba(227, 198, 122, 0.12); }
.btn-large { min-height: 54px; font-size: var(--step-1); padding-inline: var(--space-6); }
.btn-small { min-height: 44px; padding-inline: var(--space-3); font-size: var(--step--1); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); }
.text-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none;
  color: var(--cobalt); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.text-link:hover { text-decoration-thickness: 2px; }
.link-btn {
  min-height: 44px; padding: 0 var(--space-2); border: 0; background: none; color: var(--ink-2);
  text-decoration: underline; text-underline-offset: 4px;
}
.link-btn:hover { color: var(--ink); }

/* ---- Chevron-to-wave divider ---- */
.divider { color: var(--gold); height: 16px; width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.divider svg { width: 100%; height: 16px; }
.divider-light { color: var(--gold-light); }
.divider-trail { stroke: var(--turquoise); opacity: 0.85; }
.divider-light .divider-trail { stroke: var(--turquoise-light); }
[dir="rtl"] .divider svg { transform: scaleX(-1); } /* chevrons start at the reading start */

/* ---- Chips (filters) ---- */
.chips ul { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 var(--space-3);
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface);
  text-decoration: none; font-weight: 500; white-space: nowrap; font-size: var(--step--1);
}
@media (min-width: 720px) { .chip { min-height: 44px; padding: 0 var(--space-4); font-size: var(--step-0); } }
.chip:hover { border-color: var(--cobalt); }
.chip[aria-current] { background: var(--cobalt); border-color: var(--cobalt); color: var(--on-cobalt); }
.chip-soft[aria-current] { background: var(--cobalt-tint); color: var(--cobalt-deep); }
.chips-label { font-size: var(--step--1); color: var(--ink-2); margin-bottom: var(--space-2); font-weight: 600; }

/* ---- Product grid & card ---- */
.product-grid {
  display: grid; gap: var(--space-5) var(--space-3);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none; padding: 0; margin: 0;
}
@media (min-width: 720px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6) var(--space-4); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .product-grid:not(.product-grid-4) { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.product-grid > li { display: flex; }

.card { position: relative; display: flex; flex-direction: column; width: 100%; }
/* Each perfume photo is 3:4 with the name at the top, the bottle in the middle and
   the ingredients at the bottom, so the card shows it whole. */
.card-media {
  aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); background: var(--alabaster-2);
  border: 1px solid var(--line);
}
.card-media img, .card-media svg { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.card-media img { object-position: 50% 50%; }
/* <picture> is inline by default and has no height of its own, so the photo inside
   kept its 4:5 shape and the box just cut off its bottom. Filling the box lets
   object-fit/object-position frame the photo as intended. */
.card-media picture, .pdp-frame picture { display: block; width: 100%; height: 100%; }
/* Drawn products are 4:5 drawings on deep cobalt (ART_BG in src/art.js): fill the
   rest of the square with the same colour so no side bars show. */
.card-media:has(> svg), .pdp-frame:has(> svg) { background: #13285f; }
.card:hover .card-media img { transform: scale(1.03); }
.card-body { display: flex; flex-direction: column; gap: 2px; padding-top: var(--space-3); flex: 1; }
.card-kicker { font-size: var(--step--1); color: var(--gold-ink); font-weight: 600; }
/* Higher price tier ("أسطوري"): a small black-and-gold tag, like the bottle's label. */
.tier-badge {
  display: inline-block; margin-inline-start: var(--space-2); padding: 1px 9px; border-radius: 999px;
  background: var(--ink); color: var(--gold-light); font-size: 0.75rem; font-weight: 700; line-height: 1.6; vertical-align: 2px;
  border: 1px solid var(--gold);
}
.card-media { position: relative; }
/* bottom corner: the photo carries the perfume's name along its top */
.tier-badge-media { position: absolute; bottom: 8px; inset-inline-start: 8px; margin: 0; z-index: 1; }
.card-title { font-size: var(--step-1); line-height: 1.35; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.stretched:focus-visible { outline: none; }
.stretched:focus-visible::after { outline: 3px solid var(--cobalt); outline-offset: 4px; }
.card-character { color: var(--ink-2); font-size: var(--step--1); }
.card-sizes { color: var(--ink-2); font-size: var(--step--1); }
.card-price { font-weight: 700; margin-top: auto; padding-top: var(--space-1); }
.card-add { position: relative; z-index: 1; align-self: start; margin-top: var(--space-2); }
.card.is-unavailable .card-media { opacity: 0.6; }
.card.is-unavailable .card-price { color: var(--ink-2); font-weight: 500; }
.product-art { width: 100%; height: 100%; }

/* ---- Size picker ---- */
.size-picker { border: 0; padding: 0; margin: 0; min-width: 0; }
.size-picker legend { font-weight: 700; margin-bottom: var(--space-2); padding: 0; }
.size-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.size-option {
  position: relative; display: grid; gap: 2px; align-content: start;
  padding: var(--space-3) var(--space-3); min-height: 88px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--surface);
  cursor: pointer;
}
.size-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.size-option:has(input:focus-visible) { box-shadow: var(--focus); }
.size-option.is-checked { border-color: var(--cobalt); background: var(--cobalt-tint); box-shadow: inset 0 0 0 1px var(--cobalt); }
.size-ml { font-weight: 700; font-size: var(--step-1); }
.size-price { font-weight: 600; font-size: var(--step--1); }
.size-check { position: absolute; top: 8px; inset-inline-end: 8px; color: var(--cobalt); }
.size-option.is-disabled { cursor: not-allowed; background: var(--alabaster-2); border-style: dashed; color: var(--ink-2); }
.size-option.is-disabled .size-ml { text-decoration: line-through; text-decoration-thickness: 1px; }
.size-option.is-disabled input { cursor: not-allowed; }
@media (max-width: 359px) {
  .size-options { grid-template-columns: 1fr; }
  .size-option { min-height: 0; grid-template-columns: auto 1fr; column-gap: var(--space-3); }
}

/* ---- Quantity stepper ---- */
.qty {
  display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); height: 48px;
}
.qty button {
  width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; border-radius: 999px;
}
.qty button:hover:not([aria-disabled="true"]) { background: var(--alabaster-2); }
.qty button[aria-disabled="true"] { color: #a99c88; cursor: not-allowed; }
.qty output { min-width: 2ch; text-align: center; font-weight: 700; }

/* ---- Breadcrumbs ---- */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--space-1); list-style: none; padding: 0; margin: 0; font-size: var(--step--1); color: var(--ink-2); }
.breadcrumbs li:not(:last-child)::after { content: "‹"; margin-inline-start: var(--space-1); color: var(--gold-ink); }
.breadcrumbs a { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink-2); }
.breadcrumbs [aria-current] { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink); }

/* ---- Basket drawer lines ---- */
.basket-lines { list-style: none; margin: 0; display: grid; gap: var(--space-4); align-content: start; }
.basket-line { display: grid; grid-template-columns: 64px 1fr auto; gap: var(--space-3); padding-bottom: var(--space-4); border-bottom: 1px solid var(--line); }
.basket-thumb { width: 64px; aspect-ratio: 3 / 4; border-radius: var(--radius-s); overflow: hidden; background: var(--alabaster-2); }
.basket-thumb img, .basket-thumb svg { width: 100%; height: 100%; object-fit: cover; }
.basket-line-name { font-weight: 700; text-decoration: none; line-height: 1.35; display: inline-block; }
.basket-line-name:hover { text-decoration: underline; }
.basket-line-meta { font-size: var(--step--1); color: var(--ink-2); }
.basket-line-warn { font-size: var(--step--1); color: var(--danger); font-weight: 600; }
.basket-line-row { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-2); flex-wrap: wrap; }
.basket-line-total { font-weight: 700; white-space: nowrap; font-size: var(--step--1); }
.basket-line.is-unavailable .basket-thumb { opacity: 0.5; }
.basket-total { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--step-1); }
.basket-total b { font-size: var(--step-2); }
.basket-actions { display: flex; justify-content: space-between; }
.basket-empty { display: grid; justify-items: center; align-content: center; gap: var(--space-4); text-align: center; }
@media (max-width: 380px) {
  .basket-line { grid-template-columns: 52px 1fr; }
  .basket-thumb { width: 52px; }
  .basket-line-total { grid-column: 2; }
}

/* Offer reminder in the basket (OFFER in src/catalog.js). */
.offer-note { display: flex; align-items: flex-start; gap: var(--space-2); font-size: var(--step--1); font-weight: 600; color: var(--turquoise-ink); background: var(--turquoise-tint); border-radius: var(--radius-s); padding: var(--space-2) var(--space-3); }
.offer-note .icon { flex: none; margin-top: 2px; }

/* ---- src/styles/pages.css ---- */
/* Page-specific layouts: home (hero, story, steps), collection, product, messages. */

.eyebrow { font-size: var(--step--1); font-weight: 700; color: var(--gold-ink); letter-spacing: 0.04em; }
.eyebrow [lang="en"] { letter-spacing: 0.24em; }
.eyebrow-light { color: var(--gold-light); }

/* ---- Hero: photo framed as an Egyptian doorway on a cobalt panel ----
   Temple doorways are topped by a cavetto cornice (the "Egyptian gorge": a
   concave lip flaring outward, painted with upright palm fronds) sitting on a
   torus moulding bound with ribbon. Drawn here with CSS only. */
.hero { padding-block: var(--space-4) var(--space-6); overflow-x: clip; }
.hero-inner { display: grid; gap: var(--space-5); }
/* Opening offer strip at the top of the homepage. */
.offer-strip {
  display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-5);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius);
  background: var(--cobalt-deep); color: var(--on-cobalt); border: 1px solid var(--gold);
}
.offer-strip .icon { flex: none; color: var(--gold-light); }
.offer-strip b { color: var(--gold-light); }
.offer-strip-note { display: block; font-size: var(--step--1); color: var(--on-cobalt-2); }
@media (min-width: 720px) { .offer-strip { justify-content: center; text-align: center; } .offer-strip-note { display: inline; margin-inline-start: var(--space-2); } }
.hero-media { position: relative; --frame-w: min(88%, 380px); }
/* Gilded 3D frame: a rendered moulding (outer bead, cove, carved reed frieze, inner
   bead) laid round the photo with border-image, so it fits the square phone crop and
   the 4:5 desktop one. Its shadow lifts it off the wall; the photo sits recessed. */
.hero-frame {
  position: relative; margin: var(--space-2) auto 0; width: var(--frame-w);
  border: clamp(26px, 7.5vw, 44px) solid transparent;
  border-image: url("assets/img/frame-gold.webp") 96 round;
  box-shadow: 0 24px 38px -10px rgba(35, 28, 20, 0.55), 0 6px 14px rgba(35, 28, 20, 0.28);
}
.hero-arch {
  position: relative; width: 100%;
  aspect-ratio: 1 / 1; overflow: hidden;
  background: #120d08;
}
.hero-arch::after { /* the photo sits below the frame's sight edge */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.7), inset 3px 0 8px rgba(0, 0, 0, 0.45), inset 0 0 2px rgba(0, 0, 0, 0.9);
}
.hero-arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero-copy { display: grid; gap: var(--space-3); justify-items: start; }
.hero-title { font-size: var(--step-4); line-height: 1.15; }
.lede { font-size: var(--step-1); color: var(--ink-2); max-width: 36ch; }
.hero-copy .btn-row { margin-top: var(--space-2); }
/* Size shelf: three bottles at true relative size on an alabaster plinth,
   like pieces on a museum stand. 2.5D with plain CSS: a top face seen from just
   above, a veined front face with a gold edge, and a soft shadow under each bottle. */
.size-shelf { justify-self: stretch; max-width: 26rem; margin-top: var(--space-3); }
.size-shelf-title { font-size: var(--step--1); font-weight: 700; color: var(--gold-ink); margin-bottom: var(--space-2); }
.size-shelf-list { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); list-style: none; padding: 0; margin: 0; }
.size-shelf-list::before { /* top face */
  content: ""; position: absolute; inset-inline: 1%; top: 82px; height: 14px;
  background: linear-gradient(180deg, #fbf6ec, #e6dbc7);
  clip-path: polygon(3% 0, 97% 0, 100% 100%, 0 100%);
}
.size-shelf-list::after { /* front face */
  content: ""; position: absolute; inset-inline: 1%; top: 96px; height: 16px;
  border-top: 1px solid var(--gold); border-radius: 0 0 3px 3px;
  background:
    repeating-linear-gradient(112deg, transparent 0 18px, rgba(133, 114, 88, 0.14) 18px 19px, transparent 19px 41px),
    repeating-linear-gradient(64deg, transparent 0 27px, rgba(255, 255, 255, 0.4) 27px 29px, transparent 29px 55px),
    linear-gradient(180deg, #e7dbc6, #d2c3a6);
  box-shadow: 0 14px 18px -12px rgba(35, 28, 20, 0.5);
}
.size-shelf-item { position: relative; z-index: 1; display: grid; justify-items: center; align-content: start; gap: 2px; text-align: center; }
.size-shelf-slot { position: relative; height: 92px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 26px; }
.size-shelf-slot::after { /* contact shadow on the plinth */
  content: ""; position: absolute; bottom: -2px; left: 50%; width: 46px; height: 6px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(35, 28, 20, 0.32), transparent); z-index: -1;
}
.size-bottle { position: relative; display: block; filter: drop-shadow(-2px 3px 3px rgba(35, 28, 20, 0.18)); }
@media (prefers-reduced-motion: no-preference) {
  @media (hover: hover) {
    .size-bottle { transition: transform 0.35s ease; }
    .size-shelf-item:hover .size-bottle { transform: translateY(-5px) rotate(-2deg); }
  }
}
.size-shelf-ml { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; line-height: 1.2; }
.size-shelf-price { font-size: var(--step--1); color: var(--ink-2); font-weight: 600; }
.size-shelf-legend { font-size: 0.75rem; color: var(--gold-ink); font-weight: 700; }
.size-shelf-tag {
  margin-top: 4px; font-size: 0.75rem; font-weight: 700; color: var(--turquoise-ink);
  border: 1px solid var(--turquoise); border-radius: 999px; padding: 1px 8px; background: var(--turquoise-tint);
}
@media (min-width: 720px) {
  .hero { padding-block: var(--space-6); }
  .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: var(--space-6); }
  .hero-media { order: 2; }
  .hero-media { --frame-w: min(100%, 440px); }
  .hero-arch { aspect-ratio: 4 / 5; }
  .hero-arch img { object-position: 50% 50%; }
}

/* ---- Entry tiles (women / men) ---- */
.entry-tiles { display: grid; gap: var(--space-3); margin-bottom: var(--space-6); }
@media (min-width: 720px) { .entry-tiles { grid-template-columns: repeat(3, 1fr); } }
.entry-tile {
  display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: var(--space-4);
  padding: var(--space-3); border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); text-decoration: none; box-shadow: var(--shadow);
}
.entry-tile:hover { border-color: var(--cobalt); }
.entry-tile-media { width: 72px; aspect-ratio: 4 / 5; border-radius: var(--radius-s); overflow: hidden; background: var(--alabaster-2); }
.entry-tile-media img { width: 100%; height: 100%; object-fit: cover; }
.entry-tile-text { display: grid; }
.entry-tile-title { font-size: var(--step-1); font-weight: 700; }
.entry-tile-sub { color: var(--ink-2); font-size: var(--step--1); }
.entry-tile-arrow { color: var(--cobalt); }
[dir="ltr"] .entry-tile-arrow { transform: scaleX(-1); }

/* ---- Other sections list ---- */
/* "كمان في كيميت": a tile per section, drawn on cobalt like the product art. */
.cat-tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4) var(--space-2); }
@media (min-width: 1024px) { .cat-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.cat-tile { display: grid; gap: 2px; text-decoration: none; color: inherit; }
.cat-media {
  display: grid; place-items: center; aspect-ratio: 1 / 1; overflow: hidden; margin-bottom: var(--space-2);
  border-radius: var(--radius); border: 1px solid var(--line); background: #13285f; color: var(--gold-light);
}
.cat-media .product-art { width: 100%; height: 100%; transition: transform 400ms ease; }
.cat-name { font-family: var(--font-display); font-size: var(--step-0); font-weight: 600; line-height: 1.3; }
@media (min-width: 720px) { .cat-tiles { gap: var(--space-4) var(--space-3); } .cat-name { font-size: var(--step-1); } }
.cat-sub { font-size: var(--step--1); color: var(--ink-2); }
.cat-tile:hover .cat-name { color: var(--cobalt); text-decoration: underline; text-underline-offset: 4px; }
.cat-tile:hover .product-art { transform: scale(1.04); }

/* ---- Story (cobalt focal band) ---- */
.story { background: var(--cobalt-deep); color: var(--on-cobalt); margin-block: var(--space-6) 0; scroll-margin-top: var(--header-h); }
.story-inner { display: grid; gap: var(--space-4); padding-block: var(--space-7) var(--space-6); }
.story-mark { color: var(--gold-light); }
.story-copy { display: grid; gap: var(--space-3); max-width: 62ch; }
.story-copy h2 { font-size: var(--step-3); color: var(--gold-light); }
/* Engraved gold: a gold gradient with a hairline shadow, like gold inlay on blue glass.
   Its darkest stop keeps 4.5:1+ on cobalt-deep. Plain gold where clipping isn't supported. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .story-copy h2 {
    background: linear-gradient(180deg, #f6e2a4 0%, #e3c67a 50%, #c9a04d 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 -1px 0 rgba(0, 0, 0, 0.45)) drop-shadow(0 1px 0 rgba(246, 226, 164, 0.18));
  }
}
@media (forced-colors: active) {
  .story-copy h2 { background: none; color: CanvasText; filter: none; }
}
.story-copy p { color: var(--on-cobalt-2); }
.story-copy p:first-of-type + h2 + p { color: var(--on-cobalt); }
.story .divider { padding-bottom: var(--space-5); }
.sources { color: var(--on-cobalt-2); font-size: var(--step--1); }
.sources summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 4px; }
.sources ul { padding-inline-start: 1.2em; display: grid; gap: var(--space-1); }
.sources a { color: var(--on-cobalt); }
.story :focus-visible { outline-color: var(--gold-light); }
@media (min-width: 720px) {
  .story-inner { grid-template-columns: auto 1fr; gap: var(--space-6); }
}

/* ---- Steps ---- */
#order { scroll-margin-top: var(--header-h); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: var(--space-5) 0 0; display: grid; gap: var(--space-4); }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  counter-increment: step; display: grid; gap: var(--space-1); padding: var(--space-4) var(--space-4) var(--space-5);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); position: relative;
}
.steps li::before {
  content: counter(step, arabic-indic); display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 999px; background: var(--cobalt); color: var(--on-cobalt); font-weight: 700; margin-bottom: var(--space-2);
}
.steps span { color: var(--ink-2); }
.contact-links-light .contact-links-icon { background: var(--surface); border: 1px solid var(--line-strong); color: var(--gold-ink); }
.contact-links-light .contact-links-label { color: var(--cobalt); }
.contact-links-light a > span:last-child > span:not(.contact-links-label) { color: var(--ink-2); font-size: var(--step--1); }
.contact-card {
  margin-top: var(--space-5); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-5); border-radius: var(--radius); background: var(--alabaster-2);
}
.contact-card p { color: var(--ink-2); }

/* ---- Collection ---- */
.collection .breadcrumbs { padding-top: var(--space-2); }
.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-4); }
.page-head h1 { font-size: var(--step-3); }
.result-count { color: var(--ink-2); }
.filters { display: grid; gap: var(--space-4); margin-bottom: var(--space-4); }
.search-label { display: block; font-weight: 600; margin-bottom: var(--space-1); font-size: var(--step--1); }
.search-field {
  display: flex; align-items: center; gap: var(--space-2); min-height: 50px; padding-inline: var(--space-4) var(--space-1);
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); max-width: 560px;
}
.search-field:focus-within { box-shadow: var(--focus); }
.search-field .icon { color: var(--ink-2); flex: none; }
.search-field input { flex: 1; min-width: 0; border: 0; background: none; min-height: 48px; font-size: 1rem; }
.search-field input:focus-visible { outline: none; }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-field input::placeholder { color: #7b6e5d; }
.active-filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3);
  padding: var(--space-3) var(--space-4); margin-bottom: var(--space-5);
  border-radius: var(--radius); background: var(--cobalt-tint);
}
.active-label { font-weight: 700; color: var(--cobalt-deep); }
.active-filters ul { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.active-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 var(--space-3);
  border-radius: 999px; background: var(--surface); border: 1px solid var(--cobalt); color: var(--cobalt-deep);
  text-decoration: none; font-weight: 600;
}
.active-filters .text-link { margin-inline-start: auto; }
.collection-group { padding-block: var(--space-5); border-top: 1px solid var(--line); }
.collection-group:first-of-type { border-top: 0; }
.sets-card {
  display: grid; gap: var(--space-4); justify-items: start; padding: var(--space-5);
  border-radius: var(--radius); background: var(--surface); border: 1px dashed var(--line-strong); max-width: 640px;
}
.empty-state { display: grid; justify-items: center; text-align: center; gap: var(--space-3); padding: var(--space-7) var(--space-4); }
.empty-state p { color: var(--ink-2); max-width: 40ch; }
.empty-state .btn-row { justify-content: center; }

/* ---- Product page ---- */
.pdp .breadcrumbs { padding-top: var(--space-2); }
.pdp-grid { display: grid; gap: var(--space-5); }
/* The whole 3:4 photo, as on the cards. On phones a centred box small enough that
   the name and price follow close under it. */
.pdp-frame {
  aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius-l); background: var(--alabaster-2);
  border: 1px solid var(--line); width: min(66%, 290px); margin-inline: auto; margin-top: var(--space-2);
}
.pdp-frame img, .pdp-frame svg { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.pdp-frame svg { object-position: 50% 50%; }
.pdp-info { display: grid; gap: var(--space-2); align-content: start; min-width: 0; }
.pdp-title { font-size: var(--step-3); line-height: 1.2; }
.pdp-type { color: var(--ink-2); }
.pdp-character { font-size: var(--step-1); color: var(--gold-ink); font-weight: 600; }
.pdp-desc { color: var(--ink-2); }
.buy-box { display: grid; gap: var(--space-4); margin-top: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.pdp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-2); }
.pdp-price-value { font-size: var(--step-2); font-weight: 700; }
.pdp-price-size { color: var(--ink-2); }
.buy-row { display: grid; gap: var(--space-3); }
.buy-qty { display: flex; align-items: center; gap: var(--space-3); }
.buy-qty-label { font-size: var(--step--1); font-weight: 600; }
.buy-add { width: 100%; min-height: 54px; justify-content: space-between; padding-inline: var(--space-5); white-space: nowrap; }
.buy-add-price { font-weight: 500; opacity: 0.9; font-size: var(--step-0); }
@media (min-width: 480px) {
  .buy-row { grid-template-columns: auto 1fr; align-items: center; }
}
.buy-review { justify-self: start; }
.unavailable-note { display: grid; gap: var(--space-3); justify-items: start; padding: var(--space-4); border-radius: var(--radius); background: var(--alabaster-2); border: 1px dashed var(--line-strong); }
.assurance {
  list-style: none; margin: var(--space-5) 0 0; padding: 0 var(--space-4);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.assurance li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: var(--space-3); align-items: start; padding-block: var(--space-3); }
.assurance li + li { border-top: 1px solid var(--line); }
.assurance-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: var(--cobalt-tint); color: var(--cobalt); }
.assurance-text { display: grid; gap: 2px; }
.assurance-text b { font-weight: 700; color: var(--ink); }
.assurance-text span { font-size: var(--step--1); color: var(--ink-2); line-height: 1.6; }
.pdp-notes { padding-block: var(--space-6) var(--space-4); }
.pdp-notes h2 { margin-bottom: var(--space-4); }
.notes { display: grid; gap: 0; border-top: 1px solid var(--line); }
.notes-row { display: grid; grid-template-columns: minmax(8rem, 1fr) 2fr; gap: var(--space-4); padding-block: var(--space-4); border-bottom: 1px solid var(--line); }
.notes dt { font-weight: 700; display: grid; }
.notes dt span { font-weight: 400; font-size: var(--step--1); color: var(--ink-2); }
.notes dd { margin: 0; }
/* Scent profile: accord bars, notes by stage, plain-language glossary. */
.scent { display: grid; gap: var(--space-5); }
.scent-block h3 { font-size: var(--step-1); margin-bottom: var(--space-3); }
.accords { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; max-width: 32rem; }
.accord {
  justify-self: start; width: var(--w); min-height: 34px; display: grid; place-items: center;
  padding-inline: var(--space-3); border-radius: 0 8px 8px 0; font-weight: 700; font-size: var(--step--1);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}
[dir="rtl"] .accord { border-radius: 8px 0 0 8px; }
.accord-light { box-shadow: inset 0 0 0 1px rgba(35, 28, 20, 0.22), inset 0 -2px 0 rgba(0, 0, 0, 0.08); }
@media (prefers-reduced-motion: no-preference) {
  .accord { transition: width 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .motion .accords:not(.is-in) .accord { width: 0; color: transparent; }
  .accords .accord:nth-child(2) { transition-delay: 0.05s; } .accords .accord:nth-child(3) { transition-delay: 0.1s; }
  .accords .accord:nth-child(4) { transition-delay: 0.15s; } .accords .accord:nth-child(n+5) { transition-delay: 0.2s; }
}
.note-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.note-chips li { padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: var(--step--1); }
.note-glossary { margin-top: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.note-glossary summary { cursor: pointer; padding: var(--space-3) var(--space-4); font-weight: 700; color: var(--cobalt); min-height: 44px; display: flex; align-items: center; }
.note-glossary dl { margin: 0; padding: 0 var(--space-4) var(--space-3); display: grid; gap: var(--space-2); }
.note-glossary dl > div { display: grid; grid-template-columns: minmax(6rem, auto) 1fr; gap: var(--space-3); padding-top: var(--space-2); border-top: 1px solid var(--line); }
.note-glossary dt { font-weight: 700; }
.note-glossary dd { margin: 0; color: var(--ink-2); font-size: var(--step--1); }
.scent-ask { justify-self: start; }
.notes-ask { display: grid; justify-items: start; gap: var(--space-3); padding: var(--space-5); border-radius: var(--radius); background: var(--alabaster-2); }
.notes-ask p { max-width: 46ch; }
@media (min-width: 900px) {
  .pdp-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-7); align-items: start; }
  .pdp-media { position: sticky; top: calc(var(--header-h) + var(--space-4)); }
  .pdp-frame { width: auto; max-width: 460px; margin: 0; }
}

/* ---- Messages ---- */
.page-msg { display: grid; gap: var(--space-4); justify-items: start; padding-block: var(--space-7); }
.page-msg h1 { font-size: var(--step-3); }

/* "بتحب عطر معين؟" box (MatchBox in src/pages.js). */
.match-box {
  display: grid; gap: var(--space-4); margin-top: var(--space-6); padding: var(--space-5);
  border-radius: var(--radius); background: var(--cobalt-deep); color: var(--on-cobalt);
  border: 1px solid var(--gold);
}
.match-box-head { display: flex; gap: var(--space-3); align-items: flex-start; }
.match-box-icon { flex: none; color: var(--gold-light); }
.match-box-title { font-size: var(--step-2); color: var(--gold-light); margin: 0 0 var(--space-1); }
.match-box p { color: var(--on-cobalt-2); margin: 0; max-width: 52ch; }
.match-box-row { display: grid; gap: var(--space-2); }
.match-box input {
  min-height: 48px; padding: 0 var(--space-4); border-radius: 999px; border: 1px solid var(--gold-light);
  background: var(--surface); color: var(--ink); font: inherit;
}
.match-box .btn-primary { background: var(--gold-light); color: var(--cobalt-deep); border-color: var(--gold-light); }
.match-box :focus-visible { outline-color: var(--gold-light); }
@media (min-width: 560px) { .match-box-row { grid-template-columns: 1fr auto; } }
.match-box-compact { margin-top: 0; }
.match-box-compact .match-box-title { font-size: var(--step-1); }

/* ---- "بتحب عطر معين؟" result: our closest perfume ---- */
.match-result {
  display: grid; grid-template-columns: 104px 1fr; gap: var(--space-3); align-items: start;
  padding: var(--space-3); border-radius: var(--radius); background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); animation: match-in .25s ease-out;
}
.match-result-media { aspect-ratio: 10 / 9; border-radius: calc(var(--radius) - 4px); overflow: hidden; background: var(--alabaster); }
.match-result-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 90%; }
.match-result-body { display: grid; gap: var(--space-1); min-width: 0; }
.match-box .match-result p { color: var(--ink-2); max-width: none; }
.match-result-kicker { font-size: var(--step--1); color: var(--cobalt) !important; font-weight: 700; margin: 0; }
.match-result-name { font-family: var(--font-display); font-size: var(--step-1); color: var(--ink) !important; margin: 0; }
.match-result-family { font-family: var(--font-ar); font-size: var(--step--1); color: var(--ink-2); font-weight: 400; }
.match-result-character { margin: 0; }
.match-result-link {
  display: inline-flex; align-items: center; gap: var(--space-1); min-height: 44px; justify-self: start;
  color: var(--cobalt); font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
}
.match-results { display: grid; gap: var(--space-3); }
.match-results-list { display: grid; gap: var(--space-3); }
@media (min-width: 900px) { .match-results-list.is-many { grid-template-columns: 1fr 1fr; } }
.match-result-note { font-size: var(--step--1); margin: 0; color: var(--ink-2); }
.match-box .match-result :focus-visible { outline-color: var(--cobalt); }
@media (min-width: 560px) { .match-result { grid-template-columns: 150px 1fr; gap: var(--space-4); padding: var(--space-4); } }
@keyframes match-in { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .match-result { animation: none; } }
.search-match { display: grid; gap: var(--space-4); padding: var(--space-6) 0; max-width: 980px; }
.search-match h2 { font-size: var(--step-2); margin: 0; }

/* Aging line under the hero title: Naskh face and gold so it reads apart from the headline. */
.hero-aging {
  font-family: "Noto Naskh Arabic", "Geeza Pro", var(--font-ar); font-size: var(--step-1); font-weight: 500;
  color: var(--gold-ink); line-height: 1.7; margin-top: calc(-1 * var(--space-2)); text-wrap: balance;
}
