/* Layout: luxury fragrance storefront. Black notice bar, centred wordmark, full-bleed hero, category thumbnails, four-column edge-to-edge tiles, slide-in bag. Deliberately light only. */
:root {
  color-scheme: dark; --bg: #060908; --tile: #0d221b; --surface: #0c1512; --fg: #edf1ea; --muted: #9aaba1; --line: #25382f;
  --ink: #0b3a2c; --on-ink: #f1e7cd; --dark: #0f5240; --on-dark: #f6f1e3; --error: #ff9fad;
  --new: #edf1ea; --out: #e8c27a; --done: #7fd9ad; --off: #9aaba1;
  --display: "Newsreader", "Times New Roman", serif;
  --body: "Figtree", "Segoe UI", Arial, sans-serif;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--fg); font: 400 16px/1.45 var(--body); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
button { font-family: inherit; color: inherit; }
.bar { background: var(--ink); color: var(--on-ink); text-align: center; font-size: 14px; font-weight: 500; padding-block: 12px; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; height: 80px; padding-left: max(32px, var(--gutter-l)); padding-right: max(32px, var(--gutter-r)); }
.side { display: flex; align-items: center; gap: 22px; min-width: 0; }
.side.right { justify-content: flex-end; }
.link { background: none; border: 0; padding: 4px 0; font-size: 15px; cursor: pointer; color: var(--fg); border-bottom: 1px solid transparent; }
.link[aria-current="page"] { border-color: var(--fg); }
.brand { background: none; border: 0; cursor: pointer; font: 300 clamp(24px, 4vw, 34px)/1 var(--display); letter-spacing: .03em; white-space: nowrap; text-transform: uppercase; }
.bag { position: relative; background: none; border: 0; padding: 6px; cursor: pointer; display: flex; }
.bag svg, .add svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.5; }
.dot-count { position: absolute; top: -2px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--dark); color: var(--on-dark); font-size: 11px; line-height: 17px; text-align: center; }
.count { display: inline-block; min-width: 18px; margin-left: 5px; padding: 0 5px; border-radius: 9px; background: var(--dark); color: var(--on-dark); font-size: 12px; text-align: center; }
h1 { font: 400 clamp(24px, 3vw, 30px)/1.2 var(--display); letter-spacing: -.02em; text-align: center; margin: 32px 0 48px; }
h2 { font: 400 clamp(24px, 3vw, 28px)/1.2 var(--display); letter-spacing: -.02em; text-align: center; margin: 72px 0 40px; }
.hero { display: block; width: 100%; height: clamp(220px, 36vw, 440px); }
.intro { text-align: center; max-width: 60ch; margin: 44px auto 0; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.cats { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin-top: 64px; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.cat { background: none; border: 0; cursor: pointer; display: grid; gap: 14px; justify-items: center; color: var(--muted); font-size: 15px; width: 76px; }
.cat span.t { width: 76px; height: 76px; background: var(--tile); border-radius: 4px; display: grid; place-items: center; border: 1px solid transparent; }
.cat svg { height: 58px; width: auto; }
.cat[aria-pressed="true"] { color: var(--fg); font-weight: 600; }
.cat[aria-pressed="true"] span.t { border-color: var(--fg); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 2px; max-width: 1440px; margin: 0 auto; padding-left: max(32px, var(--gutter-l)); padding-right: max(32px, var(--gutter-r)); padding-bottom: 96px; }
.tile { text-align: center; min-width: 0; }
.shot { position: relative; background: var(--tile); aspect-ratio: 1 / 1.08; display: grid; place-items: center; }
.shot > svg { height: 76%; width: auto; }
.badge { position: absolute; top: 12px; left: 18px; font-size: 13px; color: var(--muted); }
.add { position: absolute; right: 14px; bottom: 14px; width: 32px; height: 32px; border: 0; border-radius: 6px; background: var(--surface); cursor: pointer; display: grid; place-items: center; font-size: 15px; }
.name { font-weight: 600; margin: 24px 16px 8px; }
.notes { color: var(--muted); margin: 0 16px 8px; }
.intensity { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; }
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--muted); }
.dots i.on { background: var(--muted); }
.float { position: fixed; z-index: 4; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); padding: 12px 18px; background: var(--dark); color: var(--on-dark); border: 0; border-radius: 6px; font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap; }
dialog { margin: 0 0 0 auto; width: min(480px, 100%); max-width: 100%; height: 100%; max-height: 100%; border: 0; padding: 0; background: var(--bg); color: var(--fg); }
dialog::backdrop { background: rgba(0, 0, 0, .66); }
.panel { padding-block: calc(20px + env(safe-area-inset-top, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)); padding-left: 24px; padding-right: max(24px, env(safe-area-inset-right, 0px)); display: grid; gap: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; }
.panel-title { font: 400 26px/1.2 var(--display); letter-spacing: -.02em; }
.close { background: none; border: 0; font-size: 24px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.line { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); align-items: center; }
.line .mini { flex: none; width: 64px; height: 72px; background: var(--tile); display: grid; place-items: center; }
.line .mini svg { height: 58px; width: auto; }
.line-info { flex: 1 1 auto; min-width: 0; display: grid; gap: 8px; }
.line-name { font-weight: 600; }
.line-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.line-controls select { width: 96px; padding: 7px 8px; font-size: 15px; }
select, input, textarea { width: 100%; padding: 11px 12px; font: 400 16px var(--body); color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.stepper button { width: 36px; height: 36px; background: none; border: 0; font-size: 18px; cursor: pointer; }
.stepper output { width: 24px; text-align: center; font-variant-numeric: tabular-nums; }
form { display: grid; gap: 14px; }
.section-label { font-weight: 600; margin-top: 4px; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
label { display: grid; gap: 4px; font-size: 15px; font-weight: 500; align-content: start; }
.opt { color: var(--muted); font-weight: 400; }
.err { margin: 0; color: var(--error); font-size: 14px; font-weight: 400; }
textarea { min-height: 72px; resize: vertical; }
.primary { padding: 13px 18px; background: var(--dark); color: var(--on-dark); border: 0; border-radius: 6px; font-size: 16px; font-weight: 600; cursor: pointer; }
.primary:disabled { opacity: .55; cursor: not-allowed; }
.small { padding: 7px 10px; background: none; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; cursor: pointer; }
.number { font: 400 30px/1.2 var(--display); }
.muted { color: var(--muted); margin: 0; }
.sheet { max-width: 1080px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); padding-bottom: 80px; }
.tallies { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-bottom: 32px; color: var(--muted); }
.tallies b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.order { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 180px); gap: 12px 28px; padding: 22px 0; border-top: 1px solid var(--line); }
.order > div { min-width: 0; overflow-wrap: anywhere; }
.order-no { font: 400 22px/1.2 var(--display); }
.sub { color: var(--muted); font-size: 15px; }
.order ul { margin: 6px 0 0; padding: 0; list-style: none; }
.pill { font-size: 14px; font-weight: 600; }
.s-new { color: var(--new); } .s-out { color: var(--out); } .s-delivered { color: var(--done); } .s-cancelled { color: var(--off); }
.actions { display: grid; gap: 8px; align-content: start; }
.empty { padding: 40px 0; border-top: 1px solid var(--line); color: var(--muted); text-align: center; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .order { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  header { padding-left: var(--gutter-l); padding-right: var(--gutter-r); height: 68px; }
  .grid { padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
  .side { gap: 10px; } .link { font-size: 13px; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .panel { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}

/* Added for the public site */
body { margin: 0; }
[hidden] { display: none !important; }
a.link, a.brand { color: inherit; text-decoration: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.login { max-width: 380px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); padding-bottom: 80px; }
.sheet-tools { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.call { color: inherit; }

/* Product page */
a.name { display: block; color: inherit; text-decoration: none; }
.shot-link { position: absolute; inset: 0; display: grid; place-items: center; }
.shot-link .b3d-float { height: 76%; width: auto; }
.badge { pointer-events: none; }
.pdp { display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, 1.2fr) minmax(0, 1.05fr); gap: 32px; align-items: start; max-width: 1320px; margin: 0 auto; padding-top: 12px; padding-left: max(32px, var(--gutter-l)); padding-right: max(32px, var(--gutter-r)); }
.thumbs { display: grid; gap: 12px; position: sticky; top: 100px; }
.thumb { padding: 0; border: 1px solid transparent; background: var(--tile); aspect-ratio: 3 / 4; display: grid; place-items: center; cursor: pointer; }
.thumb svg { height: 70%; width: auto; }
.thumb.dusk, .stage.dusk { background: linear-gradient(#040706, #0d3729 60%, #1d6b51); }
.thumb.dusk { border-color: transparent; }
.thumb[aria-pressed="true"] { border-color: var(--fg); }
.stage { position: sticky; top: 100px; background: var(--tile); aspect-ratio: 1 / 1.16; display: grid; place-items: center; }
.stage > .b3d-float { height: 74%; width: auto; }
.stage.dusk .badge { color: #ffffff; }
.info { text-align: center; min-width: 0; padding-top: 12px; }
.info h1 { margin: 10px 0 16px; font-size: clamp(26px, 3vw, 34px); text-wrap: balance; }
.pd-family { color: var(--muted); font-size: 15px; }
.pd-notes { color: var(--muted); margin: 0 0 10px; }
.chips { display: flex; justify-content: center; gap: 10px; margin: 24px 0; }
.chip { padding: 9px 14px; background: none; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--fg); font-weight: 600; }
.buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.info .buy .primary { flex: 1 1 200px; }
.info .stepper button { height: 46px; }
.order-panel { margin-top: 28px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; text-align: left; }
.order-panel .muted { margin: 4px 0 16px; }
.order-panel .section-label { margin-top: 0; }
#pd-done { outline: none; display: grid; gap: 10px; }
.plain { color: inherit; text-decoration: none; }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; max-width: 1320px; margin: 88px auto 0; padding-left: max(32px, var(--gutter-l)); padding-right: max(32px, var(--gutter-r)); }
.pd-description { font: 400 clamp(20px, 2.2vw, 24px)/1.3 var(--display); margin: 0 0 12px; max-width: 34ch; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.pd-description.open { display: block; overflow: visible; }
.more { background: none; border: 0; border-bottom: 1px solid var(--muted); padding: 0 0 1px; color: var(--muted); cursor: pointer; font-size: 15px; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { font-weight: 600; cursor: pointer; }
details p { margin: 12px 0 0; color: var(--muted); }
.notes-list { margin: 12px 0 0; display: grid; gap: 6px; }
.notes-list div { display: flex; justify-content: space-between; gap: 16px; }
.notes-list dt { color: var(--muted); }
.notes-list dd { margin: 0; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1120px; }
@media (max-width: 900px) {
  .pdp { grid-template-columns: minmax(0, 1fr); }
  .stage { position: relative; top: auto; order: 1; }
  .thumbs { position: static; order: 2; grid-template-columns: repeat(2, 72px); justify-content: center; }
  .info { order: 3; }
  .story { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 56px; }
  .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.three .tile:nth-child(3) { display: none; }
}
@media (max-width: 560px) { .pdp, .story { padding-left: var(--gutter-l); padding-right: var(--gutter-r); } .order-panel { padding: 16px; } }
#pdp-main ~ .float { display: none; }
.secondary { flex: 1 1 100%; padding: 13px 18px; background: none; border: 1px solid #3a7a63; border-radius: 6px; font-size: 16px; font-weight: 600; cursor: pointer; }
.order-panel { scroll-margin-top: 96px; }

/* Main page film */
.hero-wrap { position: relative; overflow: hidden; background: radial-gradient(70% 90% at 50% 45%, #10382b 0%, #060c0a 70%, #030504 100%); }
.hero-gold { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero { position: relative; display: block; width: 100%; height: clamp(340px, min(44vw, calc(100vh - 250px)), 620px); background: transparent; }
.hero .scene { opacity: 0; animation: 14s ease-in-out infinite; }
.hero .s1 { animation-name: scene-one; }
.hero .s3 { animation-name: scene-three; }
@keyframes scene-one { 0% { opacity: 0; } 8%, 44% { opacity: 1; } 53%, 100% { opacity: 0; } }
@keyframes scene-three { 0%, 48% { opacity: 0; } 60%, 93% { opacity: 1; } 100% { opacity: 0; } }
.hero .push { transform-origin: 720px 300px; animation: slow-push 14s linear infinite; }
@keyframes slow-push { from { transform: scale(1); } to { transform: scale(1.09); } }
.hero .glow { transform-box: fill-box; transform-origin: center; animation: glow-breathe 6s ease-in-out infinite alternate; }
@keyframes glow-breathe { from { opacity: .7; } to { opacity: 1; } }
.hero .wordmark { letter-spacing: .24em; animation: track-in 14s cubic-bezier(.2, .7, .2, 1) infinite; }
@keyframes track-in { 0%, 48% { letter-spacing: .42em; } 74%, 100% { letter-spacing: .24em; } }
.hero-wrap.paused .hero * { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .hero .s1 { animation: none; opacity: 1; } .hero .s3 { animation: none; opacity: 0; } .hero .push, .hero .glow, .hero .wordmark { animation: none; } }

/* Depth and motion */
:root { --shadow-soft: 0 14px 34px -16px rgba(0, 0, 0, .85); --shadow-deep: 0 34px 60px -24px rgba(0, 0, 0, .95), 0 0 46px -14px rgba(47, 174, 130, .42); --ease-lux: cubic-bezier(.2, .7, .2, 1); }
header { box-shadow: 0 10px 24px -22px rgba(0, 0, 0, .5); }
dialog { box-shadow: -34px 0 70px rgba(0, 0, 0, .32); }
.primary { box-shadow: var(--shadow-soft); }
.order-panel, .float { box-shadow: var(--shadow-soft); }

.shot, .stage { overflow: hidden; background: radial-gradient(120% 90% at 50% 30%, #1b4537 0%, var(--tile) 58%, #07120e 100%); }
.stage.dusk { background: linear-gradient(#040706, #0d3729 60%, #1d6b51); }
.add { box-shadow: var(--shadow-soft); z-index: 1; }

.shot-link .b3d-float, .stage > .b3d-float { position: relative; z-index: 1; filter: drop-shadow(0 14px 12px rgba(0, 0, 0, .6)); }
.floor { position: absolute; left: 22%; width: 56%; bottom: 8.5%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .8), rgba(0, 0, 0, 0)); }
.stage .floor { bottom: 9.5%; }

.badge, .add { z-index: 3; }

.cat span.t { box-shadow: var(--shadow-soft); }
.thumb { box-shadow: var(--shadow-soft); }
.stage { box-shadow: var(--shadow-deep); }


@media (max-width: 640px) { .hero .wordmark { font-size: 48px; } }

/* 3D bottle */
.shot-link, .stage { container-type: size; }
.shot-link .b3d-float, .stage > .b3d-float { width: auto; height: auto; filter: none; }
.b3d-float { font-size: 14px; font-size: 3.7cqh; perspective: 62em; }
.b3d { position: relative; width: 10em; height: 19.6em; transform-style: preserve-3d; }
.part { position: absolute; left: 50%; top: var(--t); width: var(--w); height: var(--h); margin-left: calc(var(--w) / -2); transform-style: preserve-3d; }
.part.cap { --t: 0em; --w: 3.4em; --h: 4.6em; --d: 3.4em; }
.part.neck { --t: 4.6em; --w: 1.8em; --h: 1.4em; --d: 1.8em; }
.part.body { --t: 6em; --w: 9em; --h: 13.6em; --d: 4.4em; }
.f { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; backface-visibility: hidden; }
.f.front { transform: translateZ(calc(var(--d) / 2)); }
.f.back { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); }
.f.left, .f.right { width: var(--d); left: calc(50% - var(--d) / 2); }
.f.left { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
.f.right { transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); }
.f.top, .f.bottom { height: var(--d); }
.f.top { top: calc(var(--d) / -2); transform: rotateX(90deg); }
.f.bottom { top: calc(100% - var(--d) / 2); transform: rotateX(-90deg); }
.body .f { background: linear-gradient(100deg, color-mix(in srgb, var(--c) 72%, white) 0%, var(--c) 34%, color-mix(in srgb, var(--c) 42%, black) 100%); box-shadow: inset 0 0 0 .05em rgba(236, 214, 164, .6); }
.body .f.left, .body .f.right { background: linear-gradient(90deg, color-mix(in srgb, var(--c) 40%, black), color-mix(in srgb, var(--c) 78%, black) 55%, color-mix(in srgb, var(--c) 34%, black)); }
.body .f.top { background: color-mix(in srgb, var(--c) 70%, white); }
.body .f.bottom { background: color-mix(in srgb, var(--c) 28%, black); }
.cap .f, .neck .f { background: linear-gradient(90deg, #6b4c20, #f6e0ab 26%, #b78a45 52%, #fff0ca 74%, #70501f); }
.cap .f.front, .cap .f.back, .cap .f.left, .cap .f.right { background: linear-gradient(transparent 26%, rgba(84, 58, 22, .75) 26%, rgba(84, 58, 22, .75) 27.5%, transparent 27.5%, transparent 66%, rgba(84, 58, 22, .75) 66%, rgba(84, 58, 22, .75) 67.5%, transparent 67.5%), linear-gradient(90deg, #6b4c20, #f6e0ab 26%, #b78a45 52%, #fff0ca 74%, #70501f); }
.cap .f.top { background: radial-gradient(circle at 42% 38%, #fff0ca, #b78a45 72%); }
.neck .f { filter: brightness(.72); }
.streak { position: absolute; left: 7%; top: 3.5%; bottom: 3.5%; width: 6%; border-radius: 1em; background: linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, .12)); }
.lbl { position: absolute; left: 16%; right: 16%; top: 35%; padding: 1em 0; text-align: center; color: #fff; font: 400 1.14em/1.45 var(--display); letter-spacing: .16em; border: .05em solid rgba(246, 226, 180, .75); }
.back-info { position: absolute; inset: 14% 12%; display: grid; align-content: center; gap: .55em; text-align: center; color: #fff; }
.back-brand { font: 400 .92em/1.3 var(--display); letter-spacing: .18em; }
.back-name { font: 500 .62em/1.3 var(--body); }
.back-notes { font: 400 .54em/1.4 var(--body); opacity: .85; }
.draggable { touch-action: pan-y; }

/* Perfume motion: float and rise-in. Nothing here responds to the cursor. */
.shot-link .b3d-float, .stage > .b3d-float { animation: bottle-float 3.6s ease-in-out infinite alternate; }
.floor { animation: floor-breathe 3.6s ease-in-out infinite alternate; }
@keyframes bottle-float { from { transform: translateY(2px); } to { transform: translateY(-9px); } }
@keyframes floor-breathe { from { transform: scaleX(1); opacity: 1; } to { transform: scaleX(.8); opacity: .55; } }
.tile:nth-child(4n+2) .shot-link .b3d-float, .tile:nth-child(4n+2) .floor { animation-delay: -1.2s; }
.tile:nth-child(4n+3) .shot-link .b3d-float, .tile:nth-child(4n+3) .floor { animation-delay: -2.4s; }
.tile:nth-child(4n) .shot-link .b3d-float, .tile:nth-child(4n) .floor { animation-delay: -3.3s; }
.rise { animation: rise 1s var(--ease-lux) both; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .shot-link .b3d-float, .stage > .b3d-float, .floor, .rise { animation: none; }
}

/* Prices, photos and the import page */
.price { margin: 8px 16px 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.pd-price { margin: -8px 0 18px; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.line-price { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bag-total { padding: 14px 0; border-top: 1px solid var(--line); font-size: 18px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.photo img { display: block; height: 76cqh; max-width: 90cqw; object-fit: contain; }
.thumb img { display: block; height: 70%; max-width: 90%; object-fit: contain; }
.import { max-width: 1080px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); padding-bottom: 80px; display: grid; gap: 22px; }
.import .import { padding: 0; width: 100%; }
.import input[type="file"] { padding: 18px; border-style: dashed; }
.columns-map { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
.table-wrap table { width: 100%; min-width: 680px; border-collapse: collapse; }
.table-wrap th { padding: 10px 8px; text-align: left; font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line); }
.table-wrap td { padding: 5px 6px; border-bottom: 1px solid var(--line); }
.table-wrap input { padding: 7px 8px; font-size: 15px; }
.table-wrap tr.bad input { border-color: var(--error); }
.save-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.ok-note { margin: 0; color: var(--done); }

/* The banner background melts into the page on every side. The bottle and name stay above the fade. */
.hero-wrap::before { content: ""; position: absolute; inset: -1px; z-index: 1; pointer-events: none; background:
  linear-gradient(to bottom, var(--bg) 0%, transparent 24%, transparent 74%, var(--bg) 100%),
  linear-gradient(to right, var(--bg) 0%, transparent 16%, transparent 84%, var(--bg) 100%); }
.hero-wrap .hero { z-index: 2; }
.hero-wrap { background: var(--bg); }

/* Dollar rate */
.rate-box { display: grid; gap: 12px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.rate-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.rate-row label { flex: 1 1 240px; }
.rate-box .muted { margin: 0; }

/* Main page brand logos */
.brands { max-width: 1240px; margin: 0 auto; padding-top: 8px; padding-bottom: 104px; padding-left: max(32px, var(--gutter-l)); padding-right: max(32px, var(--gutter-r)); scroll-margin-top: 90px; }
.brand-search { position: relative; max-width: 460px; margin: 0 auto; }
.brand-search svg { position: absolute; left: 0; top: 50%; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.6; pointer-events: none; }
.brand-search input { padding: 12px 4px 12px 30px; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 18px; }
.brand-search input:focus { outline: none; border-bottom-color: var(--fg); }
.brand-search input::placeholder { color: var(--muted); }
.brand-search input::-webkit-search-cancel-button { filter: invert(1) opacity(.6); }
.brand-status { min-height: 22px; margin: 12px 0 28px; text-align: center; color: var(--muted); font-size: 15px; }
.brand-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.brand-list li { flex: 0 0 clamp(150px, 22vw, 280px); }
.brand-link { display: flex; align-items: center; justify-content: center; height: clamp(104px, 11vw, 140px); padding: 12px 16px; color: var(--fg); text-decoration: none; }
.brand-logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.brand-logo img { display: block; max-width: 86%; max-height: clamp(44px, 5vw, 64px); width: auto; height: auto; }
.brand-name { font: 400 22px/1.2 var(--display); text-align: center; }
@media (max-width: 560px) { .brands { padding-left: var(--gutter-l); padding-right: var(--gutter-r); } .brand-list { gap: 8px; } }

/* Brand logo hover: the chosen logo lifts and glows while the others dim */
.brand-logo img { transition: transform .5s var(--ease-lux), opacity .4s ease, filter .5s ease; }
.brand-link:focus-visible .brand-logo img { transform: translateY(-4px) scale(1.1); filter: drop-shadow(0 0 16px rgba(82, 214, 164, .6)); }
@media (hover: hover) {
  .brand-list:hover .brand-logo img { opacity: .4; }
  .brand-list .brand-link:hover .brand-logo img { opacity: 1; transform: translateY(-4px) scale(1.1); filter: drop-shadow(0 0 16px rgba(82, 214, 164, .6)); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-logo img { transition: none; }
  .brand-link:focus-visible .brand-logo img, .brand-list .brand-link:hover .brand-logo img { transform: none; }
}

/* Staff: edit products */
.edit-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.edit-card { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.edit-pic { width: 76px; height: 96px; display: grid; place-items: center; background: var(--tile); border-radius: 4px; overflow: hidden; font-size: 12px; text-align: center; }
.edit-pic img { max-width: 92%; max-height: 92%; object-fit: contain; }
.edit-text { display: grid; gap: 2px; font-size: 14px; min-width: 0; }
.edit-brand { color: var(--muted); font-size: 13px; }
.edit-name { font: 400 18px/1.25 var(--display); overflow-wrap: anywhere; }
.edit-photo { display: grid; place-items: center; min-height: 180px; padding: 12px; background: var(--tile); border-radius: 6px; text-align: center; }
.edit-photo img { max-width: 100%; max-height: 240px; object-fit: contain; }
.sizes { display: grid; gap: 8px; }
.size-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 84px auto; gap: 8px; align-items: center; }
.size-row input, .size-row select { padding: 9px 8px; }
#editor .small { justify-self: start; }
@media (max-width: 420px) { .size-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* Staff pages: on small screens the page links move to their own row under the name */
header.staff .link { white-space: nowrap; }
@media (max-width: 760px) {
  header.staff { height: auto; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand right" "nav nav"; row-gap: 8px; padding-top: 14px; padding-bottom: 12px; }
  header.staff .brand { grid-area: brand; justify-self: start; }
  header.staff .side.right { grid-area: right; }
  header.staff .side:not(.right) { grid-area: nav; flex-wrap: wrap; gap: 6px 20px; }
}

/* Polish: product preview pictures, bag photos, brand line, search results and footer */
.thumb img { max-width: 78%; max-height: 82%; object-fit: contain; }
.line .mini img { max-width: 86%; max-height: 88%; object-fit: contain; }
.line-brand { color: var(--muted); font-size: 13px; }
.tile-brand { color: var(--muted); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; margin: 0 16px 2px; text-align: center; }
.brand-sub { text-align: center; color: var(--muted); margin: -36px 0 40px; font-size: 15px; }
.pd-brand-link { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.pd-brand-link:hover, .pd-brand-link:focus-visible { border-bottom-color: currentColor; }

.perfume-results { margin-top: 48px; }
.results-title { font: 400 22px/1.2 var(--display); text-align: center; margin: 0 0 20px; }
.result-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.result { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--fg); text-decoration: none; transition: border-color .3s ease; }
.result:hover, .result:focus-visible { border-color: #3c6b58; }
.result-pic { width: 64px; height: 80px; display: grid; place-items: center; background: var(--tile); border-radius: 4px; overflow: hidden; }
.result-pic img { max-width: 88%; max-height: 90%; object-fit: contain; }
.result-pic svg { height: 64px; width: auto; }
.result-text { display: grid; gap: 2px; min-width: 0; }
.result-brand { color: var(--muted); font-size: 13px; }
.result-name { font: 400 18px/1.25 var(--display); overflow-wrap: anywhere; }
.result-price { font-size: 14px; font-weight: 500; }

.site-foot { margin-top: 40px; border-top: 1px solid var(--line); padding-block: 48px calc(56px + env(safe-area-inset-bottom, 0px)); padding-left: var(--gutter-l); padding-right: var(--gutter-r); display: grid; justify-items: center; gap: 14px; text-align: center; background: linear-gradient(180deg, transparent, rgba(11, 58, 44, .25)); }
.foot-brand { font: 300 26px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--fg); text-decoration: none; }
.foot-line { margin: 0; color: var(--fg); max-width: 46ch; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.foot-links a { color: var(--fg); font-size: 15px; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.foot-links a:hover, .foot-links a:focus-visible { border-bottom-color: var(--fg); }
.foot-small { margin: 0; color: var(--muted); font-size: 13px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .7; }
.thumbs { min-width: 0; }
.thumb { width: 100%; min-width: 0; overflow: hidden; }
.thumb img { width: auto; height: 72%; max-width: 80%; max-height: none; }
.result-list { grid-template-columns: repeat(auto-fit, minmax(240px, 320px)); justify-content: center; }

/* Arabic: Arabic letters use Amiri for headings and Tajawal for text; Latin brand and perfume names keep the original fonts */
:root {
  --display: "Newsreader", "Amiri", "Times New Roman", serif;
  --body: "Figtree", "Tajawal", "Segoe UI", Arial, sans-serif;
}
.lang-switch { font-size: 15px; }
.lang-switch:lang(ar) { font-family: "Tajawal", var(--body); font-weight: 500; }
:root[lang="ar"] body { line-height: 1.6; }
/* Spacing between letters breaks joined Arabic writing, so it is removed for Arabic text */
:root[lang="ar"] :is(h1, h2, h3, p, label, button, summary, dt, dd, .panel-title, .section-label, .results-title, .brand-status, .bar, .intro) { letter-spacing: normal; }
:root[lang="ar"] .brand { letter-spacing: .03em; }
:root[lang="ar"] .foot-brand { letter-spacing: .08em; }
:root[lang="ar"] h1, :root[lang="ar"] h2 { line-height: 1.4; }

/* Right-to-left layout */
[dir="rtl"] dialog { margin: 0 auto 0 0; box-shadow: 34px 0 70px rgba(0, 0, 0, .32); }
[dir="rtl"] .badge { left: auto; right: 18px; }
[dir="rtl"] .add { right: auto; left: 14px; }
[dir="rtl"] .dot-count { right: auto; left: -4px; }
[dir="rtl"] .count { margin-left: 0; margin-right: 5px; }
[dir="rtl"] .order-panel { text-align: right; }
[dir="rtl"] .bag-total { text-align: left; }
[dir="rtl"] .brand-search svg { left: auto; right: 0; }
[dir="rtl"] .brand-search input { padding: 12px 30px 12px 4px; }
[dir="rtl"] .hp { left: auto; right: -9999px; }
/* Phone numbers and order numbers always read left to right */
[dir="rtl"] input[type="tel"], [dir="rtl"] .number { direction: ltr; text-align: right; }

/* Prices that follow the quantity, and the discount for 2 or more perfumes */
.pd-price-note { margin: -4px 0 18px; color: var(--muted); font-size: 14px; text-align: center; }
.bag-sub { display: flex; justify-content: space-between; padding: 6px 0 0; color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.bag-off { color: var(--done); }
.bag-hint { margin: 4px 0 8px; color: var(--done); font-size: 14px; }
.bar-offer { display: block; margin-top: 2px; color: #f1dcaa; font-weight: 600; }
.order-total { margin-top: 8px; font-weight: 600; }
/* Banner name: a little tighter so it sits clear of the landmarks */
.hero .wordmark { letter-spacing: .2em; }
@keyframes track-in { 0%, 48% { letter-spacing: .34em; } 74%, 100% { letter-spacing: .2em; } }

/* The banner spray, drawn over the whole window; clicks pass straight through it */
.spray-layer { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; }

/* Softer, overlapping change between the bottle and the name: the bottle fades slowly under the spray's mist
   while the name rises out of it. These replace the earlier timings. */
@keyframes scene-one { 0% { opacity: 0; } 9%, 40% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes scene-three { 0%, 45% { opacity: 0; } 63%, 91% { opacity: 1; } 100% { opacity: 0; } }
.hero .s1, .hero .s3 { animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
@keyframes track-in { 0%, 46% { letter-spacing: .34em; } 76%, 100% { letter-spacing: .2em; } }

/* Seamless loop from the name back to the bottle: the scenes overlap instead of meeting in an empty dark frame,
   the bottle rises gently as it returns, and each scene's slow zoom resets only while that scene is hidden. */
@keyframes scene-one { 0% { opacity: .5; transform: translateY(6px); } 9% { opacity: 1; transform: translateY(0); } 40% { opacity: 1; transform: translateY(0); } 56%, 86% { opacity: 0; transform: translateY(14px); } 100% { opacity: .5; transform: translateY(6px); } }
@keyframes scene-three { 0%, 45% { opacity: 0; } 63%, 84% { opacity: 1; } 100% { opacity: 0; } }
@keyframes track-in { 0%, 46% { letter-spacing: .34em; } 76%, 84% { letter-spacing: .2em; } 100% { letter-spacing: .28em; } }
@keyframes push-one { 0% { transform: scale(1.012); } 56% { transform: scale(1.07); } 57%, 86% { transform: scale(1); } 100% { transform: scale(1.012); } }
@keyframes push-three { 0%, 44% { transform: scale(1); } 100% { transform: scale(1.07); } }
.hero .s1 .push { animation: push-one 14s linear infinite; }
.hero .s3 .push { animation: push-three 14s linear infinite; }
.hero-wrap.paused .hero * { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .hero .s1, .hero .s1 .push, .hero .s3 .push { animation: none; transform: none; } .hero .s1 { opacity: 1; } }
/* Keep the bottle's return at an even pace across the loop point */
@keyframes scene-one { 0% { opacity: .5; transform: translateY(6px); animation-timing-function: cubic-bezier(.2, .55, .45, 1); } 9% { opacity: 1; transform: translateY(0); } 40% { opacity: 1; transform: translateY(0); animation-timing-function: cubic-bezier(.45, 0, .25, 1); } 56%, 86% { opacity: 0; transform: translateY(14px); } 86% { animation-timing-function: cubic-bezier(.55, 0, .8, .45); } 100% { opacity: .5; transform: translateY(6px); } }
@keyframes scene-one {
  0% { opacity: .5; transform: translateY(6px); animation-timing-function: cubic-bezier(.25, .38, .45, 1); }
  9% { opacity: 1; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(0); animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  56% { opacity: 0; transform: translateY(14px); }
  86% { opacity: 0; transform: translateY(14px); animation-timing-function: cubic-bezier(.6, 0, .75, .4); }
  100% { opacity: .5; transform: translateY(6px); }
}
@keyframes scene-one {
  0% { opacity: .58; transform: translateY(5px); animation-timing-function: cubic-bezier(.25, .38, .45, 1); }
  9% { opacity: 1; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(0); animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  56% { opacity: 0; transform: translateY(14px); }
  78% { opacity: 0; transform: translateY(14px); animation-timing-function: cubic-bezier(.5, 0, .75, .5); }
  100% { opacity: .58; transform: translateY(5px); }
}
@keyframes push-one { 0% { transform: scale(1.01); } 56% { transform: scale(1.07); } 57%, 78% { transform: scale(1); } 100% { transform: scale(1.01); } }

/* Control panel: one menu across Overview, Orders, Products, Price lists and Settings */
header.staff { grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; }
header.staff .brand { font-size: clamp(20px, 2.4vw, 26px); text-decoration: none; color: var(--fg); }
.staff-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; min-width: 0; }
.staff-nav a { padding: 8px 12px; border-radius: 6px; color: var(--muted); text-decoration: none; font-size: 15px; white-space: nowrap; }
.staff-nav a:hover { color: var(--fg); background: var(--surface); }
.staff-nav a[aria-current="page"] { color: var(--fg); background: var(--tile); font-weight: 600; }
.staff-end { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.staff-end .link { white-space: nowrap; text-decoration: none; }
@media (max-width: 900px) {
  header.staff { height: auto; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand end" "nav nav"; row-gap: 10px; padding-top: 14px; padding-bottom: 12px; }
  header.staff .brand { grid-area: brand; justify-self: start; }
  .staff-end { grid-area: end; }
  .staff-nav { grid-area: nav; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; margin-inline: -8px; }
}
.cp { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter-r) 80px var(--gutter-l); display: grid; gap: 22px; }
.cp-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-top: 28px; }
.cp-title { margin: 0; text-align: left; }
.cp-head .muted { margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.kpi { display: grid; gap: 6px; align-content: start; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; color: var(--fg); text-decoration: none; }
a.kpi:hover { border-color: var(--muted); }
.kpi-label { color: var(--muted); font-size: 14px; }
.kpi-value { font: 400 30px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.kpi-sub { color: var(--muted); font-size: 13px; }
.cp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cp-wide { grid-column: 1 / -1; }
@media (max-width: 820px) { .cp-grid { grid-template-columns: minmax(0, 1fr); } }
.card { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.card-head h2, .box-title { margin: 0; font: 400 20px/1.2 var(--display); text-align: left; letter-spacing: 0; }
.cp-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cp-table th { text-align: left; color: var(--muted); font-weight: 500; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.cp-table td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.cp-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.cp-note { margin: 10px 0 0; font-size: 13px; }
.mini-order { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--fg); text-decoration: none; font-size: 15px; }
.mini-order:first-child { border-top: 0; }
.mini-order:hover b { text-decoration: underline; }
.mini-order > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-right { display: flex; align-items: center; gap: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pill { padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; border: 1px solid currentColor; }
.pill-new { color: var(--new); } .pill-out { color: var(--out); } .pill-delivered { color: var(--done); } .pill-cancelled { color: var(--off); }
@media (max-width: 520px) { .mini-order { flex-direction: column; align-items: flex-start; gap: 4px; } }
.best { margin: 0; padding: 0; list-style: none; counter-reset: best; }
.best li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; }
.best li:first-child { border-top: 0; }
.best b { font-weight: 500; white-space: nowrap; color: var(--muted); }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.facts div { display: grid; gap: 2px; }
.facts dt { color: var(--muted); font-size: 13px; }
.facts dd { margin: 0; font-size: 18px; font-variant-numeric: tabular-nums; }
.checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: baseline; font-size: 15px; }
.checklist .tick { width: 18px; flex: none; text-align: center; font-weight: 700; }
.checklist .done .tick { color: var(--done); }
.checklist .todo .tick { color: var(--out); }
.checklist b { font-weight: 500; }
.checklist .done b { color: var(--muted); }
.settings { display: grid; gap: 16px; }
.settings .rate-box { gap: 14px; }
.pair.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .pair, .pair.three { grid-template-columns: minmax(0, 1fr); } }
.save-bar { position: sticky; bottom: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 16px; padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(transparent, var(--bg) 30%); }
.save-bar .err, .save-bar .ok-note { flex: 1 1 260px; }
.order-tools { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 10px; margin-bottom: 8px; }
@media (max-width: 560px) { .order-tools { grid-template-columns: minmax(0, 1fr); } }
.order-count { margin: 0 0 12px; font-size: 14px; }
.product-tools { display: grid; grid-template-columns: minmax(0, 1fr) 220px auto; gap: 12px; align-items: end; }
@media (max-width: 700px) { .product-tools { grid-template-columns: minmax(0, 1fr); } }
.edit-actions { display: grid; gap: 6px; justify-items: stretch; }
.edit-actions .small { white-space: nowrap; }
.small.danger { color: var(--error); border-color: rgba(255, 159, 173, .4); }
.tag { color: var(--out); font-size: 12px; }
label.check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
label.check input { width: 18px; height: 18px; accent-color: var(--dark); }
@media (max-width: 420px) { .edit-card { grid-template-columns: 64px minmax(0, 1fr); } .edit-actions { grid-column: 1 / -1; grid-template-columns: repeat(3, auto); justify-content: start; } }

/* Staff: barcodes */
.barcode-form { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) 110px auto; gap: 12px; align-items: end; }
@media (max-width: 760px) { .barcode-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .barcode-form label:first-child, .barcode-form .primary { grid-column: 1 / -1; } }
.barcode-section { display: grid; gap: 10px; margin-top: 8px; }
.barcode-file { border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; background: var(--surface); }
.barcode-file { display: grid; gap: 10px; }
.barcode-file p { margin: 0; }
.file-pick { justify-self: start; }
.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.file-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 8px; }
.file-list .file-name { font-weight: 600; overflow-wrap: anywhere; flex: 1 1 200px; }
.barcode-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.barcode-card { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.barcode-ar { margin: 4px 0 0; font-family: "Cairo", var(--body); line-height: 1.7; text-align: right; }
@media (max-width: 420px) { .barcode-card { grid-template-columns: 64px minmax(0, 1fr); } .barcode-card .edit-actions { grid-column: 1 / -1; grid-template-columns: repeat(2, auto); justify-content: start; } }

/* Delivery fee under the checkout form, and the shop's contact details in the footer */
.delivery-note { display: grid; gap: 2px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; font-size: 15px; }
.delivery-note .muted { font-size: 13px; }
.delivery-total { font-weight: 600; font-variant-numeric: tabular-nums; }
.foot-contact { display: grid; gap: 8px; justify-items: center; }
@media (max-width: 560px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .kpi { padding: 14px; } .kpi-value { font-size: 22px; } .kpi-label { font-size: 13px; } }

/* Saved perfumes heart, labels and share */
.saved-link { color: var(--fg); text-decoration: none; }
.saved-link svg, .heart svg { fill: none; stroke: currentColor; stroke-width: 1.5; }
.heart { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--fg); cursor: pointer; transition: transform .2s var(--ease-lux), color .2s; }
.heart:hover { transform: scale(1.08); }
.heart[aria-pressed="true"] { color: #e8b4a0; }
.heart[aria-pressed="true"] svg { fill: currentColor; }
.tile-heart { position: absolute; top: 10px; right: 12px; z-index: 3; width: 34px; height: 34px; border-color: transparent; background: rgba(6, 9, 8, .55); }
.badge.badge-on { color: var(--on-ink); background: var(--ink); border: 1px solid rgba(220, 184, 114, .45); padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; letter-spacing: .02em; top: 12px; left: 12px; }
.pd-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.pd-title h1 { margin-bottom: 0; }
.pd-actions { display: flex; gap: 8px; flex: none; margin-top: 4px; }
.share.copied { color: var(--done); border-color: var(--done); }
.pd-badge { display: inline-block; margin-inline-start: 10px; padding: 2px 9px; border-radius: 99px; background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 600; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--fg); text-decoration: underline; }
.crumbs .sep { opacity: .5; }
.crumbs [aria-current] { color: var(--fg); }
:root[dir="rtl"] .tile-heart { right: auto; left: 12px; }
:root[dir="rtl"] .badge.badge-on { left: auto; right: 12px; }

/* Photo zoom */
.stage { position: relative; }
.zoom-open { position: absolute; right: 14px; bottom: 14px; z-index: 3; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(6, 9, 8, .6); color: var(--fg); cursor: zoom-in; }
.zoom-open svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
:root[dir="rtl"] .zoom-open { right: auto; left: 14px; }
dialog.zoom { width: min(92vw, 900px); max-height: 92vh; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: radial-gradient(120% 90% at 50% 30%, #1b4537 0%, var(--tile) 58%, #07120e 100%); }
dialog.zoom::backdrop { background: rgba(0, 0, 0, .78); }
dialog.zoom img { display: block; width: 100%; max-height: calc(92vh - 70px); object-fit: contain; cursor: zoom-out; }
dialog.zoom .close { position: absolute; top: 10px; right: 12px; z-index: 1; }

/* Main page rows and the Shop all button */
.home-cta { display: flex; justify-content: center; margin-top: 28px; }
.home-cta .primary { text-decoration: none; padding-inline: 28px; }
.home-row { max-width: 1440px; margin: 64px auto 0; padding-left: max(32px, var(--gutter-l)); padding-right: max(32px, var(--gutter-r)); }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.row-head h2 { margin: 0; text-align: start; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 23%); gap: 2px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; }
.rail > .tile { scroll-snap-align: start; }
@media (max-width: 700px) { .rail { grid-auto-columns: 62%; } .home-row { padding-left: var(--gutter-l); padding-right: var(--gutter-r); } }

/* All perfumes page */
.shop-tools { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 1440px; margin: 0 auto; padding-left: max(32px, var(--gutter-l)); padding-right: max(32px, var(--gutter-r)); }
@media (max-width: 900px) { .shop-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-left: var(--gutter-l); padding-right: var(--gutter-r); } .tool-search { grid-column: 1 / -1; } }
.shop-views { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px auto 0; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.shop-views .chip { text-decoration: none; color: var(--muted); }
.shop-views .chip[aria-current="page"] { color: var(--fg); border-color: var(--fg); }
#all-status { margin: 18px auto 30px; }
.brand-sub { text-align: center; color: var(--muted); margin: -36px 0 28px; }

/* Track your order and Help */
.narrow { max-width: 620px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); padding-bottom: 72px; }
.intro-left { margin: 0 0 22px; }
.track-form { display: grid; gap: 14px; }
.track-result { margin-top: 28px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.track-head { margin: 0; font: 400 22px/1.2 var(--display); }
.track-result .muted { margin: 6px 0 0; }
.track-steps { list-style: none; margin: 22px 0 6px; padding: 0; display: grid; gap: 0; }
.track-steps li { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 0; color: var(--muted); }
.track-steps li + li::before { content: ""; position: absolute; inset-inline-start: 7px; top: -12px; height: 24px; width: 2px; background: var(--line); }
.track-steps li.done + li::before, .track-steps li.done + li.now::before { background: var(--done); }
.track-dot { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); }
.track-steps .done { color: var(--fg); }
.track-steps .done .track-dot { background: var(--done); border-color: var(--done); }
.track-steps .now { color: var(--fg); font-weight: 600; }
.track-steps .now .track-dot { border-color: var(--out); background: var(--out); box-shadow: 0 0 0 5px rgba(232, 194, 122, .18); }
.track-cancel { color: var(--error); margin: 16px 0 0; }
.link-inline { background: none; border: 0; padding: 0; color: var(--fg); text-decoration: underline; cursor: pointer; font-size: inherit; }
#t-recent { margin-top: 18px; }
.help-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 8px; }
.help-nav a { color: var(--muted); }
.help-h { margin: 44px 0 10px; text-align: start; font-size: 22px; }
.help details p { color: var(--muted); }
.help-text { color: var(--muted); white-space: pre-line; }
.help-contact p { margin: 8px 0; }

/* Gift wrapping in the order forms, and on the orders page */
.gift-box { display: grid; gap: 10px; padding: 14px; border: 1px dashed rgba(220, 184, 114, .45); border-radius: 6px; }
.gift-flag { margin-top: 6px; color: var(--out); font-weight: 600; }
.tag-label { color: var(--done); }

/* Header on small phones: Log in moves to the footer */
@media (max-width: 600px) {
  header:not(.staff) .login-link { display: none; }
  header:not(.staff) .side { gap: 14px; }
  header:not(.staff) .side .link { font-size: 14px; }
}
dialog.zoom { margin: auto; height: auto; box-shadow: none; }
/* Phones: the menu links get their own row under the name, so nothing overlaps */
header:not(.staff) .side .link { white-space: nowrap; }
@media (max-width: 600px) {
  header:not(.staff) { height: auto; row-gap: 4px; padding-top: 12px; padding-bottom: 8px; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
  header:not(.staff) .brand { grid-column: 2; grid-row: 1; font-size: 22px; }
  header:not(.staff) .side.right { grid-column: 3; grid-row: 1; gap: 4px; }
  header:not(.staff) .side:not(.right) { grid-column: 1 / -1; grid-row: 2; justify-content: center; gap: 22px; }
}
.pd-title { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.pd-title h1 { grid-column: 2; }
.pd-title .pd-actions { grid-column: 3; justify-self: end; margin-top: 0; }
.crumbs { justify-content: flex-start; }

/* Side menu, opened from the Menu button: slides in from the left (from the right in Arabic) */
.menu-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px 0; color: var(--fg); font-size: 15px; cursor: pointer; white-space: nowrap; }
.menu-btn svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
dialog.side-menu { margin: 0 auto 0 0; width: min(400px, 88vw); height: 100%; max-height: 100%; box-shadow: 34px 0 70px rgba(0, 0, 0, .4); background: linear-gradient(180deg, #0b1511, var(--bg) 40%); animation: menu-in .32s var(--ease-lux); }
dialog.side-menu.closing { animation: menu-out .18s ease-in forwards; }
dialog.side-menu::backdrop { background: rgba(0, 0, 0, .6); }
:root[dir="rtl"] dialog.side-menu { margin: 0 0 0 auto; box-shadow: -34px 0 70px rgba(0, 0, 0, .4); animation-name: menu-in-rtl; }
:root[dir="rtl"] dialog.side-menu.closing { animation-name: menu-out-rtl; }
@keyframes menu-in { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes menu-out { to { transform: translateX(-100%); } }
@keyframes menu-in-rtl { from { transform: translateX(100%); } to { transform: none; } }
@keyframes menu-out-rtl { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { dialog.side-menu, dialog.side-menu.closing { animation: none; } }
.menu-inner { min-height: 100%; display: flex; flex-direction: column; gap: 6px; padding: 22px 28px calc(28px + env(safe-area-inset-bottom, 0px)); }
.menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.menu-brand { font: 300 24px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--fg); text-decoration: none; }
.menu-main { display: grid; }
.menu-main a, .menu-brands summary { padding: 12px 0; font: 300 26px/1.15 var(--display); color: var(--fg); text-decoration: none; letter-spacing: -.01em; }
.menu-main a:hover, .menu-brands summary:hover { color: var(--on-ink); }
.menu-main a[aria-current="page"] { color: #dcb872; }
#menu-labels { display: contents; }
.menu-brands { border: 0; padding: 0; }
.menu-brands summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; justify-content: space-between; }
.menu-brands summary::-webkit-details-marker { display: none; }
.menu-brands summary::after { content: "+"; font: 300 24px/1 var(--body); color: var(--muted); }
.menu-brands[open] summary::after { content: "−"; }
.menu-brands summary .menu-count { margin-inline-start: auto; margin-inline-end: 14px; }
.menu-brands ul { list-style: none; margin: 0 0 10px; padding: 0 0 0 2px; max-height: 42vh; overflow-y: auto; border-inline-start: 1px solid var(--line); }
.menu-brands li a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 14px; color: var(--muted); text-decoration: none; font-size: 15px; }
.menu-brands li a:hover, .menu-brands li a[aria-current="page"] { color: var(--fg); }
.menu-count { color: var(--muted); font: 400 13px var(--body); font-variant-numeric: tabular-nums; }
.menu-sub { display: grid; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.menu-sub a { display: flex; justify-content: space-between; padding: 9px 0; color: var(--fg); text-decoration: none; font-size: 16px; }
.menu-sub a:hover { color: #dcb872; }
.menu-contact { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.menu-pill { padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; color: var(--fg); text-decoration: none; font-size: 14px; }
.menu-pill:hover { border-color: #dcb872; }
.menu-foot { margin-top: auto; padding-top: 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.menu-lang { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; padding: 3px; }
.menu-lang button { background: none; border: 0; padding: 6px 14px; border-radius: 99px; color: var(--muted); font-size: 14px; cursor: pointer; }
.menu-lang button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.menu-staff { color: var(--muted); font-size: 13px; }
:root[lang="ar"] .menu-main a, :root[lang="ar"] .menu-brands summary { font-family: var(--display); letter-spacing: normal; }

/* Phones: one row again, with Menu on the left; the links live in the side menu */
@media (max-width: 600px) {
  header:not(.staff) .side:not(.right) { grid-column: 1; grid-row: 1; justify-content: flex-start; }
  header:not(.staff) .side:not(.right) .link { display: none; }
  .menu-btn span { display: none; }
}

/* Control panel sidebar: fixed on the left on wide screens, a slide-out menu on phones */
header.staff { display: flex; align-items: center; justify-content: space-between; gap: 16px; grid-template-columns: none; grid-template-areas: none; }
header.staff .brand { display: grid; gap: 4px; justify-self: auto; font-size: 22px; text-decoration: none; color: var(--fg); }
.staff-tag { font: 500 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: #dcb872; }
.staff-side { display: flex; flex-direction: column; gap: 6px; }
header.staff .staff-nav { display: flex; flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; gap: 2px; margin: 0; overflow: visible; grid-area: auto; }
header.staff .staff-nav a, .staff-end .link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 15px; border: 0; background: none; white-space: nowrap; width: 100%; text-align: start; cursor: pointer; }
.staff-nav svg, .staff-end svg, .staff-menu-btn svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
header.staff .staff-nav a:hover, .staff-end .link:hover { color: var(--fg); background: var(--surface); }
header.staff .staff-nav a[aria-current="page"] { color: var(--fg); background: var(--tile); font-weight: 600; box-shadow: inset 3px 0 0 #dcb872; }
.nav-count { margin-inline-start: auto; min-width: 22px; padding: 1px 7px; border-radius: 99px; background: #dcb872; color: #10150f; font-size: 12px; font-weight: 700; text-align: center; }
.staff-end { display: flex; flex-direction: column; align-items: stretch; gap: 2px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); grid-area: auto; }
.staff-menu-btn { display: none; align-items: center; gap: 8px; padding: 8px 12px; background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--fg); font-size: 15px; cursor: pointer; }
.staff-scrim { display: none; }

@media (min-width: 901px) {
  body.staff-body { padding-left: 248px; }
  header.staff { position: fixed; inset: 0 auto 0 0; z-index: 6; width: 248px; height: auto; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 30px; padding: 30px 16px 22px; background: #08100d; border-right: 1px solid var(--line); overflow-y: auto; }
  header.staff .brand { padding: 0 12px; }
  .staff-side { flex: 1; }
}
@media (max-width: 900px) {
  header.staff { position: sticky; height: 64px; padding: 0 var(--gutter-r) 0 var(--gutter-l); border-bottom: 1px solid var(--line); }
  header.staff .brand { font-size: 19px; gap: 2px; }
  .staff-tag { font-size: 10px; }
  .staff-menu-btn { display: inline-flex; }
  .staff-side { position: fixed; inset: 0 auto 0 0; z-index: 20; width: min(290px, 84vw); padding: 24px 14px calc(22px + env(safe-area-inset-bottom, 0px)); background: #08100d; border-right: 1px solid var(--line); box-shadow: 30px 0 60px rgba(0, 0, 0, .5); transform: translateX(-105%); transition: transform .28s var(--ease-lux); visibility: hidden; }
  header.staff.open .staff-side { transform: none; visibility: visible; }
  .staff-scrim { position: fixed; inset: 0; z-index: 19; background: rgba(0, 0, 0, .6); }
  header.staff.open ~ .staff-scrim, body.staff-locked .staff-scrim { display: block; }
  body.staff-locked { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .staff-side { transition: none; } }
@media (max-width: 900px) { header.staff.open { z-index: 30; } }

/* Shop all and Brands on the main banner, floating with a soft shadow beneath */
.hero-cta { position: absolute; left: 0; right: 0; bottom: clamp(18px, 4.5vw, 48px); z-index: 4; display: flex; justify-content: center; gap: clamp(12px, 2vw, 22px); padding: 0 var(--gutter-r) 0 var(--gutter-l); pointer-events: none; }
.hero-btn { position: relative; pointer-events: auto; min-width: clamp(132px, 14vw, 176px); padding: 14px 28px; border: 1px solid rgba(220, 184, 114, .62); border-radius: 99px; background: linear-gradient(180deg, rgba(14, 44, 34, .78), rgba(6, 18, 14, .86)); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #f1e7cd; font: 500 15px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; text-align: center; text-decoration: none; box-shadow: 0 16px 28px -10px rgba(0, 0, 0, .85), 0 4px 10px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 240, 210, .14); transition: transform .3s var(--ease-lux), box-shadow .3s var(--ease-lux), border-color .3s, background .3s; }
/* The shadow on the ground under each button */
.hero-btn::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -16px; height: 12px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .75), transparent); filter: blur(3px); z-index: -1; transition: transform .3s var(--ease-lux), opacity .3s; }
.hero-btn:first-child { background: linear-gradient(180deg, #e6c886, #b98f45); color: #14100a; border-color: #f0d9a0; }
.hero-btn:hover, .hero-btn:focus-visible { transform: translateY(-3px); border-color: #f0d9a0; box-shadow: 0 22px 34px -12px rgba(0, 0, 0, .9), 0 6px 14px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 240, 210, .2); }
.hero-btn:hover::after, .hero-btn:focus-visible::after { transform: scaleX(.86); opacity: .7; }
:root[lang="ar"] .hero-btn { letter-spacing: normal; font-size: 16px; }
@media (max-width: 600px) { .hero-btn { min-width: 0; flex: 1 1 0; max-width: 170px; padding: 12px 14px; font-size: 13px; letter-spacing: .1em; } }
@media (prefers-reduced-motion: reduce) { .hero-btn, .hero-btn::after { transition: none; } }
.hero-cta { bottom: clamp(16px, 1.8vw, 26px); }
.hero-btn { padding: 12px 26px; font-size: 14px; }
.hero-btn::after { left: 4%; right: 4%; bottom: -20px; height: 18px; background: radial-gradient(closest-side, rgba(0, 0, 0, .95), rgba(0, 0, 0, .55) 55%, transparent); filter: blur(4px); }
.hero-btn { box-shadow: 0 20px 34px -8px rgba(0, 0, 0, .95), 0 8px 16px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 240, 210, .16); }
.hero-btn:first-child { box-shadow: 0 20px 34px -8px rgba(0, 0, 0, .95), 0 8px 16px rgba(0, 0, 0, .6), 0 10px 30px -10px rgba(220, 184, 114, .35), inset 0 1px 0 rgba(255, 250, 230, .5); }
