:root {
  --bg: #f6f2eb; --card: #fff; --ink: #151214; --ink-2: #3a3431; --muted: #6b625a;
  --accent: #8a6a2c; --accent-deep: #6b5020; --accent-soft: #efe6d5; --line: #e7dfd2; --ok: #1fa855;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: max(16px, calc((100% - 1200px) / 2 + 16px));
  /* Type scale: Arabic needs a slightly larger base than Latin to read comfortably */
  --fs-xs: .8125rem; --fs-sm: .9375rem; --fs-md: 1.0625rem; --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); --fs-2xl: clamp(2rem, 1.3rem + 3.2vw, 3.6rem);
  --sp-section: clamp(44px, 7vw, 88px);
  accent-color: var(--accent);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Tajawal', system-ui, sans-serif; font-size: var(--fs-md); line-height: 1.7; caret-color: var(--accent); }
::selection { background: var(--accent); color: #fff; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
svg { flex: none; }
h1, h2, h3 { text-wrap: balance; }
.price, .total, #cartCount, .qty span { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cats, .brands, .scroller, .gallery { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }

/* Header */
.announce { background: var(--ink); color: #fff; text-align: center; font-size: var(--fs-xs); padding: 7px var(--gutter); }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter); background: rgba(246, 242, 235, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo { width: 44px; height: 44px; }
.brand h1 { margin: 0; font-size: 1.5rem; font-weight: 800; line-height: 1.2; color: var(--accent); }
.brand p { margin: 0; font-size: var(--fs-xs); line-height: 1.4; color: var(--muted); }
.cart-btn { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); transition: border-color .2s, color .2s; }
.cart-btn:hover { border-color: var(--accent); color: var(--accent); }
#cartCount { position: absolute; top: -2px; inset-inline-end: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px var(--bg); }
#cartCount:empty, #cartCount[data-n="0"] { display: none; }
.cart-btn.bump { animation: bump .35s var(--ease); }
@keyframes bump { 50% { transform: scale(1.12); } }
.fly { position: fixed; z-index: 60; margin: 0; padding: 0; border: 0; inset: auto; background: none; overflow: visible; object-fit: cover; border-radius: 50%; pointer-events: none; box-shadow: 0 10px 30px rgba(21,18,20,.25); }
.toast { position: fixed; z-index: 70; inset: auto 16px max(16px, env(safe-area-inset-bottom)); margin: 0 auto; border: 0; max-width: 420px; display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-radius: 14px; background: var(--ink); color: var(--bg); font-size: var(--fs-sm, 15px); box-shadow: 0 12px 34px rgba(21,18,20,.3); opacity: 0; transform: translateY(16px); visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
.toast.top { inset: max(16px, env(safe-area-inset-top)) 16px auto; transform: translateY(-16px); }
.toast.show { opacity: 1; transform: none; visibility: visible; }
.toast svg { flex: none; color: var(--accent-soft); }
.toast span { flex: 1; }
.toast button { flex: none; min-height: 40px; padding: 0 14px; border: 1px solid rgba(246,242,235,.35); border-radius: 999px; background: none; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }

main { max-width: 1200px; margin: 0 auto; padding: 16px 16px 96px; }

/* Hero */
.hero { position: relative; display: grid; border-radius: 20px; overflow: hidden; margin-bottom: 24px; min-height: 170px;
  background: radial-gradient(120% 140% at 0% 100%, #e7d6b6 0%, transparent 55%), linear-gradient(160deg, var(--accent-soft), #f1e9dc); }
.hero > * { grid-area: 1 / 1; }
.hero:not(.slider) > img { width: 100%; height: 100%; max-height: 400px; object-fit: cover; }
.hero:not(.slider) > div { align-self: end; padding: 22px 20px; }
.hero:not(.slider) > img + div { background: linear-gradient(transparent, rgba(21, 18, 20, .6)); }
.hero:not(.slider) > img + div h2 { color: #fff; }
.hero h2 { margin: 0 0 12px; font-size: var(--fs-2xl); font-weight: 800; line-height: 1.2; color: var(--ink); }
.hero-cta { border: 0; border-radius: 999px; padding: 10px 26px; min-height: 48px; font-size: var(--fs-md); background: #fff; color: var(--accent); font-weight: 800; box-shadow: 0 4px 14px rgba(156, 17, 73, .12); transition: transform .2s var(--ease); }
.hero-cta:hover { transform: translateY(-1px); }

/* Search and chips */
.tools { display: grid; gap: 12px; margin-bottom: 36px; scroll-margin-top: 80px; }
.search { position: relative; }
.search svg { position: absolute; inset-inline-start: 14px; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
#search { width: 100%; min-height: 52px; padding: 12px 44px 12px 14px; border: 1px solid var(--line); border-radius: 14px; font: inherit; color: var(--ink); background: #fff; transition: border-color .2s; }
#search::placeholder { color: var(--muted); }
#search:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.chip { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 18px; min-height: 44px; font-size: var(--fs-sm); color: var(--ink); transition: border-color .2s, color .2s; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Rows and grid */
.row { margin-bottom: var(--sp-section); }
.row h2, .results-head h2 { margin: 0; font-size: var(--fs-xl); font-weight: 800; line-height: 1.3; }
.row > h2 { margin-bottom: 18px; }
.row-head, .results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.results-head small { color: var(--muted); font-size: var(--fs-sm); }
.see-all { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--accent); font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; }
.see-all:hover { text-decoration: underline; text-underline-offset: 4px; }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 8px; }
.scroller .card { scroll-snap-align: start; }
.brands { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.brand-pill { flex: none; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-weight: 700; transition: border-color .2s, color .2s; }
.brand-pill:hover { border-color: var(--accent); color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
#sort { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; }

/* Product card */
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px -8px rgba(107, 80, 32, .18); }
.thumb { position: relative; aspect-ratio: 1; background: var(--accent-soft); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.ph { display: grid; place-items: center; width: 100%; height: 100%; font-size: 3.2rem; font-weight: 800; color: rgba(138, 106, 44, .3); }
.badge { position: absolute; top: 10px; right: 10px; background: var(--ink); color: #fff; font-size: var(--fs-xs); font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.badge.sale { right: auto; left: 10px; background: var(--accent); }
.card.out .thumb > :not(.badge) { opacity: .45; filter: grayscale(.4); }
.brand-name { margin: 14px 12px 0; font-size: var(--fs-xs); line-height: 1.3; font-weight: 700; color: var(--muted); }
.card h3 { margin: 14px 12px 6px; font-size: 1rem; font-weight: 700; line-height: 1.45; }
.brand-name + h3 { margin-top: 2px; }
.price { margin: 0 12px 12px; color: var(--accent); font-size: 1.05rem; font-weight: 800; }
.price s { display: inline-block; color: var(--muted); font-weight: 400; font-size: .85em; }
.add { margin: auto 12px 12px; min-height: 44px; font-size: var(--fs-sm); border: 0; border-radius: 10px; padding: 9px; background: var(--accent-soft); color: var(--accent); font-weight: 700; transition: background .2s, color .2s; }
.add:hover:not(:disabled) { background: var(--accent); color: #fff; }
.add:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* Dialogs: centered on desktop, bottom sheet on phones */
dialog { width: min(520px, calc(100% - 24px)); max-height: 90vh; padding: 0; border: 0; border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 24px 60px -12px rgba(21, 18, 20, .35); }
dialog[open] { animation: rise .32s var(--ease); }
dialog::backdrop { background: rgba(21, 18, 20, .5); }
@keyframes rise { from { opacity: 0; translate: 0 24px; } }
.x { position: absolute; top: 10px; left: 10px; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(21, 18, 20, .15); }
.pad { padding: 24px; }
.pad h2 { margin: 8px 0 6px; font-size: 1.5rem; line-height: 1.35; }
.pad .price { margin: 0 0 14px; font-size: 1.3rem; }
.cat { font-size: var(--fs-xs); color: var(--accent); background: var(--accent-soft); padding: 2px 10px; border-radius: 999px; }
.brand-link { margin-inline-start: 6px; padding: 6px 2px; border: 0; background: none; color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.desc { white-space: pre-line; color: var(--ink-2); max-width: 65ch; line-height: 1.85; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; background: var(--accent-soft); }
.gallery img { flex: none; width: 100%; aspect-ratio: 1; object-fit: contain; scroll-snap-align: center; }
.dlg-actions { display: flex; gap: 8px; margin-top: 14px; }
.add.big { flex: 1; margin: 0; min-height: 48px; padding: 12px; background: var(--accent); color: #fff; }
.add.big:hover:not(:disabled) { background: var(--accent-deep); }
.share { display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-weight: 700; }
.share:hover { border-color: var(--accent); color: var(--accent); }

/* Cart */
.lines { list-style: none; margin: 12px 0; padding: 0; }
.lines li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lines img, .noimg { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--accent-soft); flex: none; }
.lines li > div:nth-child(2) { flex: 1; min-width: 0; }
.lines b { display: block; font-size: 1rem; line-height: 1.4; }
.lines small { color: var(--muted); }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.qty button:hover { border-color: var(--accent); color: var(--accent); }
.qty span { min-width: 1.5ch; text-align: center; font-weight: 700; }
.total { font-size: 1.15rem; margin: 10px 0 2px; }
.note { margin: 0 0 14px; color: var(--muted); font-size: .85rem; }
.wa { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 13px; border-radius: 14px; background: var(--ok); color: #fff; font-weight: 800; text-decoration: none; transition: filter .2s; }
.wa:hover { filter: brightness(.94); }
.cart-empty { text-align: center; padding: 24px 0 8px; color: var(--muted); }
.cart-empty button { margin-top: 12px; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; }

/* Footer */
.foot { padding: 48px var(--gutter) 96px; color: var(--muted); border-top: 1px solid var(--line); background: #fff; }
.foot-grid { max-width: 1200px; margin: 0 auto; display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1.3fr 1fr; } }
.foot-brand img { width: 56px; height: 56px; }
.foot-brand b { display: block; margin: 10px 0 4px; font-size: var(--fs-lg, 1.2rem); color: var(--ink); }
.foot-brand p { margin: 0; }
.foot-col h3 { margin: 0 0 12px; font-size: var(--fs-sm, .95rem); color: var(--ink); letter-spacing: 0; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot-col li { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.foot-col li svg { flex: none; color: var(--accent); }
.foot-col a, .foot-col button { color: var(--ink-2); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; text-align: start; cursor: pointer; }
.foot-col a:hover, .foot-col button:hover { color: var(--accent); }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); transition: color .2s, border-color .2s, background .2s; }
.social a:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.foot-bar { max-width: 1200px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: var(--fs-xs, .85rem); }
.wa-float { position: fixed; bottom: 18px; left: 18px; z-index: 6; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ok); color: #fff; box-shadow: 0 6px 18px -4px rgba(0, 0, 0, .3); transition: transform .2s var(--ease); }
.wa-float:hover { transform: scale(1.06); }
.wa-float[hidden] { display: none; }

@media (max-width: 699px) {
  dialog { width: 100%; max-width: 100%; max-height: 92vh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
}
@media (min-width: 700px) {
  main { padding-top: 24px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
  .scroller { grid-auto-columns: 240px; gap: 20px; }
  .hero { min-height: 240px; }
  .hero:not(.slider) > div { padding: 32px; }
}
/* Motion: marquees, scroll reveals. Only transform/opacity/clip-path, so cheap phones stay smooth. */
.announce { padding-inline: 0; }
.marquee { overflow: hidden; }
.track { display: flex; width: max-content; animation: slide 40s linear infinite; }
.set { display: flex; flex: none; gap: 8px; padding-inline-end: 8px; }
.announce .set { gap: 48px; padding-inline-end: 48px; }
.marquee:hover .track, .marquee:focus-within .track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(50%); } } /* RTL: the copy on the left slides into place */
.row .marquee { margin-inline: -16px; padding: 4px 16px; }
.brand-pill { font-size: 1.05rem; }
.brand-pill.outline { background: var(--accent-soft); border-color: transparent; color: var(--accent-deep); }

.hero { isolation: isolate; }
.hero h2 span { display: inline-block; animation: up .9s var(--ease) both; animation-delay: calc(var(--i) * 90ms + 100ms); }
.hero-cta { animation: up .9s var(--ease) .45s both; }
@keyframes up { from { opacity: 0; transform: translateY(70%); } }

.thumb { overflow: hidden; }
.thumb img { transition: transform .6s var(--ease), opacity .4s; }
.thumb .alt { position: absolute; inset: 0; z-index: 1; opacity: 0; }
@media (hover: hover) {
  .card:hover .thumb img { transform: scale(1.06); }
  .card:hover .thumb .alt { opacity: 1; }
}
.badge { z-index: 2; }
#more { height: 1px; }

.progress { position: fixed; top: 0; inset-inline: 0; z-index: 10; height: 3px; background: var(--accent); transform-origin: right; transform: scaleX(0); }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
    .progress { animation: grow linear both; animation-timeline: scroll(root); }
    .top { animation: lift linear both; animation-timeline: scroll(root); animation-range: 0 120px; }
    .row, .results-head { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    .row-head h2, .row > h2 { animation: wipe linear both; animation-timeline: view(); animation-range: entry 10% entry 70%; }
    #grid .card { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
    .hero > .slides, .hero:not(.slider) > div { animation: drift linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
  }
}
@keyframes grow { to { transform: scaleX(1); } }
@keyframes lift { to { box-shadow: 0 8px 24px -12px rgba(21, 18, 20, .25); background: rgba(255, 255, 255, .95); } }
@keyframes reveal { from { opacity: 0; transform: translateY(48px) scale(.97); } }
@keyframes wipe { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@keyframes drift { to { opacity: 0; transform: translateY(-40px); } }

/* Editorial display face for big headings (Aesop-like calm), Tajawal stays for everything else */
.hero h2, .row > h2, .row-head h2, .story h2, .wordmark { font-family: 'Noto Naskh Arabic', 'Tajawal', serif; font-weight: 700; }

/* Hero slider (rhode): full-bleed slides, swipe, dots with a timer line, arrows */
.hero.slider { min-height: 0; background: var(--ink); }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 5; }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; overflow: hidden; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; transform: scale(1.08); transition: transform 7s linear; }
.slide.on img { transform: scale(1); }
.slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(21, 18, 20, .65)); }
.cap { position: absolute; inset: auto 0 0; z-index: 1; padding: 24px 20px 64px; color: #fff; }
.hero .cap h2 { color: #fff; margin-bottom: 6px; }
.cap p { margin: 0 0 14px; font-size: 1.02rem; opacity: .92; }
.slide:not(.on) .cap > * { opacity: 0; }
.slide.on .cap h2 span { animation: up .9s var(--ease) both; animation-delay: calc(var(--i) * 90ms + 150ms); }
.slide.on .cap p { animation: up .9s var(--ease) .35s both; }
.slide.on .cap .hero-cta { animation: up .9s var(--ease) .5s both; }
.dots { align-self: end; justify-self: center; z-index: 2; display: flex; gap: 6px; margin-bottom: 22px; }
.dots button { width: 44px; height: 24px; padding: 0; border: 0; background: none; display: grid; align-items: center; }
.dots i { display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .4); overflow: hidden; }
.dots i::after { content: ''; display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: right; }
.dots .on i::after { animation: timer 6s linear both; }
@keyframes timer { to { transform: scaleX(1); } }
.arrow { display: none; z-index: 2; align-self: center; width: 48px; height: 48px; margin: 0 16px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .85); color: var(--ink); place-items: center; transition: background .2s, transform .2s var(--ease); }
.arrow:hover { background: #fff; transform: scale(1.06); }
.arrow.prev { justify-self: start; }
.arrow.next { justify-self: end; }

/* Category tiles (Aesop): photo on top, name below */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tile { display: grid; gap: 8px; padding: 0; border: 0; background: none; text-align: start; color: var(--ink); }
.tile-img { display: block; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--accent-soft); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.tile:hover .tile-img img { transform: scale(1.05); }
.tile b { font-size: var(--fs-lg); line-height: 1.3; }
.tile:first-child { grid-column: span 2; }
.tile:first-child .tile-img { aspect-ratio: 16 / 9; }

/* Row arrows and progress line (rhode) */
.row-nav { display: flex; align-items: center; gap: 6px; }
.row-nav [data-scroll] { display: none; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); }
.row-nav [data-scroll]:hover { border-color: var(--accent); color: var(--accent); }
.bar { height: 2px; margin-top: 6px; background: var(--line); border-radius: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ink); transform-origin: right; transform: scaleX(calc(.15 + var(--p, 0) * .85)); transition: transform .15s; }
.scroller { scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }

/* Split story section (Aesop) */
.story { display: grid; gap: 0; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.story img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.story div { padding: 28px 22px 32px; text-align: center; }
.story h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 1.1rem + 2vw, 2.2rem); }
.story p { margin: 0 0 22px; color: var(--muted); font-size: var(--fs-md); }
.story .hero-cta { background: var(--accent); color: #fff; }

/* Statement (Isla): one calm sentence, the second half in the brand color */
.statement p { max-width: 22ch; margin: 0 auto; text-align: center; font-family: 'Noto Naskh Arabic', 'Tajawal', serif; font-size: var(--fs-2xl); font-weight: 700; line-height: 1.45; text-wrap: balance; }
.statement em { font-style: normal; color: var(--accent); }

/* Signature "perfume stack": each card sticks a little lower than the one before, so they pile up while scrolling */
.stack { display: grid; gap: 18px; padding-bottom: 8vh; }
.stack-card { position: sticky; top: calc(84px + var(--i) * 12px); height: min(72svh, 620px); border-radius: 24px; overflow: hidden; cursor: pointer;
  background: #141113; box-shadow: 0 -10px 30px rgba(18, 15, 16, .18); }
.stack-card img { width: 100%; height: 100%; object-fit: cover; }
.stack-info { position: absolute; inset: auto 0 0; padding: 70px 20px 20px; color: #fff; background: linear-gradient(transparent, rgba(18, 15, 16, .92)); }
.stack-info span { font-size: var(--fs-xs); opacity: .85; }
.stack-info h3 { margin: 4px 0 6px; font-family: 'Noto Naskh Arabic', 'Tajawal', serif; font-size: var(--fs-xl); line-height: 1.35; }
.stack-info p { margin: 0 0 14px; font-size: var(--fs-sm); opacity: .9; }
.stack-info .hero-cta { background: #fff; color: var(--accent); }
@media (min-width: 900px) { .stack-card { height: 560px; } .stack-card img { width: 50%; } .stack-info { inset: 0 auto 0 0; width: 50%; display: grid; align-content: center; padding: 40px; background: #141113; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .stack-card { animation: stack-shrink linear both; animation-timeline: view(); animation-range: exit-crossing 0% exit-crossing 100%; }
    @keyframes stack-shrink { to { scale: .92; filter: brightness(.6); } }
  }
}
.ask { color: var(--muted); font-size: var(--fs-sm); font-weight: 700; }
/* Shop by type cards (product.type) */
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.type { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; aspect-ratio: 3 / 4.4; padding: 14px 8px; border: 0; border-radius: 18px; overflow: hidden; color: #fff; text-align: center; cursor: pointer; }
.type-0 { background: linear-gradient(160deg, #2b2527, #0e0c0d); }
.type-1 { background: linear-gradient(160deg, #a88a5c, #5a4628); }
.type-2 { background: linear-gradient(160deg, #d9b47a, #8a6334); }
.type svg { position: absolute; top: 12%; left: 50%; width: 46%; translate: -50% 0; fill: rgba(255, 255, 255, .16); transition: translate .5s var(--ease); }
.type:hover svg { translate: -50% -6px; }
.type b { position: relative; font-size: var(--fs-md); line-height: 1.3; }
.type span { position: relative; font-size: var(--fs-xs); opacity: .85; }
@media (min-width: 700px) { .types { gap: 18px; } .type b { font-size: var(--fs-lg); } }

/* Shade dots (Kylie) */
.swatches { display: flex; gap: 4px; margin: 0 10px 8px; }
.swatches i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }

/* Footer wordmark (rhode) and back-to-top (Aesop) */
.wordmark { margin-top: 28px; font-size: clamp(3rem, 15vw, 11rem); line-height: 1; color: var(--accent-soft); white-space: nowrap; overflow: hidden; user-select: none; }
.to-top { position: fixed; bottom: 18px; right: 18px; z-index: 6; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

@media (min-width: 700px) {
  .slides { aspect-ratio: 16 / 7; }
  .cap { padding: 40px 48px 72px; max-width: 640px; }
  .arrow { display: grid; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .tile:first-child { grid-column: auto; }
  .tile:first-child .tile-img { aspect-ratio: 4 / 5; }
  .row-nav [data-scroll] { display: grid; }
  .story { grid-template-columns: 1.2fr 1fr; align-items: center; }
  .story img { aspect-ratio: auto; height: 100%; min-height: 380px; }
}

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* "معاينة" from /manage: flash the category's row and tile */
.spot { animation: spot 2.6s ease-out; border-radius: 24px; }
@keyframes spot { 0%, 55% { box-shadow: 0 0 0 4px var(--accent), 0 0 0 12px rgba(138, 106, 44, .18); } 100% { box-shadow: 0 0 0 4px transparent; } }

/* checkout in the cart */
.checkout { display: grid; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.checkout h3 { margin: 0; font-size: 1.1rem; }
.checkout label { display: grid; gap: 6px; font-size: .95rem; font-weight: 500; }
.checkout input, .checkout select, .checkout textarea { width: 100%; font: inherit; color: inherit; padding: 11px 12px; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.checkout textarea { min-height: 0; resize: vertical; }
.checkout input:focus, .checkout select:focus, .checkout textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.checkout .remember { display: flex; align-items: center; gap: 10px; font-weight: 400; color: var(--muted); font-size: .9rem; }
.checkout .remember input { width: 20px; min-height: 20px; accent-color: var(--accent); }
.sum { display: grid; gap: 6px; padding: 14px; border-radius: 14px; background: var(--accent-soft); font-variant-numeric: tabular-nums; }
.sum p { display: flex; justify-content: space-between; gap: 12px; margin: 0; font-size: .95rem; }
.sum .grand { padding-top: 8px; border-top: 1px dashed rgba(138, 106, 44, .35); font-size: 1.1rem; }
.sum .grand b { color: var(--accent-deep); }
.co-msg { margin: 0; min-height: 1.2em; color: #b3261e; font-size: .9rem; }
.checkout .wa { border: 0; cursor: pointer; font: inherit; }
