/* =========================================================
   3tor — متجر عطور: أبيض وأسود، فخامة هادئة، تجارة واضحة
   بدون إطار عمل وبدون خطوة بناء
   ========================================================= */
:root {
  --bg: #FFFFFF;
  --soft: #F6F5F3;
  --soft-2: #EEECE8;
  --ink: #111111;
  --ink-2: #3D3D3D;
  --muted: #7A7A7A;
  --line: #E6E4E0;
  --line-2: #D4D1CC;
  --sale: #B4232C;
  --ok: #2E7D4F;
  --f-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --f-lat: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --f-logo: "Bodoni Moda", "Didot", Georgia, serif;
  --gutter: clamp(16px, 3.4vw, 48px);
  --max: 1400px;
  --header-h: 128px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-ar); font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; top: -60px; inset-inline-start: 12px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { top: 10px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.lat, .num { font-family: var(--f-lat); }
.lat { direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--muted); }
.hidden-sm { }
@media (max-width: 760px) { .hidden-sm { display: none !important; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 28px;
  border: 1px solid var(--ink); background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; letter-spacing: .02em;
  transition: background .25s, color .25s; border-radius: 0; white-space: nowrap;
}
.btn:hover { background: #fff; color: var(--ink); }
.btn--line { background: #fff; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--white { background: #fff; color: var(--ink); border-color: #fff; }
.btn--white:hover { background: transparent; color: #fff; }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 13px; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.link { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; font-size: 14px; font-weight: 500; }
.link:hover { text-decoration-thickness: 2px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #fff; font-size: 12.5px; overflow: hidden; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.marquee { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { white-space: nowrap; }
.marquee-track b { font-weight: 600; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }
.topbar-links { display: flex; gap: 18px; white-space: nowrap; }
.topbar-links a { opacity: .85; } .topbar-links a:hover { opacity: 1; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); }
.header-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 84px; gap: 16px; }
.logo { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo b { font-family: var(--f-logo); font-weight: 500; font-size: 34px; letter-spacing: .14em; margin-inline-start: .14em; }
.logo small { font-size: 10.5px; letter-spacing: .08em; color: var(--muted); margin-top: 6px; }
.header-search { display: flex; align-items: center; border-bottom: 1px solid var(--ink); max-width: 320px; width: 100%; }
.header-search input { border: 0; outline: 0; background: transparent; padding: 8px 2px; width: 100%; font-size: 14px; }
.header-search button { border: 0; background: none; padding: 6px; display: grid; place-items: center; }
.header-tools { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.icon { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; background: none; position: relative; }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.count { position: absolute; top: 4px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--ink); color: #fff; font: 600 10px/18px var(--f-lat); text-align: center; }
.count[data-count="0"] { display: none; }
.menu-btn { display: none; }

.nav { border-top: 1px solid var(--line); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: clamp(14px, 2.2vw, 34px); }
.nav > ul > li { position: relative; }
.nav > ul > li > a { display: block; padding: 13px 0; font-size: 14px; font-weight: 500; letter-spacing: .01em; border-bottom: 2px solid transparent; }
.nav > ul > li > a:hover, .nav > ul > li > a[aria-current="page"] { border-bottom-color: var(--ink); }
.nav .sale-link { color: var(--sale); }
.mega { position: absolute; top: 100%; inset-inline-start: 50%; transform: translateX(50%); min-width: 560px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.08); padding: 24px; display: none; grid-template-columns: repeat(3, 1fr); gap: 6px 24px; }
.nav li:hover > .mega, .nav li:focus-within > .mega { display: grid; }
.mega a { padding: 6px 0; font-size: 14px; color: var(--ink-2); }
.mega a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.mega .all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-weight: 600; color: var(--ink); }

@media (max-width: 980px) {
  .nav, .header-search { display: none; }
  .menu-btn { display: inline-grid; }
  .header-main { min-height: 64px; grid-template-columns: auto 1fr auto; }
  .logo b { font-size: 26px; }
  .logo small { display: none; }
  .topbar-links { display: none; }
}

/* Mobile drawer menu */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 90; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.drawer-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }
.drawer { position: fixed; top: 0; bottom: 0; z-index: 100; width: min(420px, 92vw); background: #fff; display: flex; flex-direction: column; transition: transform .4s var(--ease), visibility 0s .4s; visibility: hidden; }
.drawer--start { inset-inline-start: 0; transform: translateX(100%); }
.drawer--end { inset-inline-end: 0; transform: translateX(-100%); }
.drawer.is-open { transform: none; visibility: visible; transition: transform .4s var(--ease); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 17px; font-weight: 600; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px 20px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 10px; }
.drawer-search { display: flex; border: 1px solid var(--line-2); margin: 12px 0; }
.drawer-search input { flex: 1; border: 0; padding: 12px; outline: 0; }
.drawer-search button { border: 0; background: var(--ink); color: #fff; padding: 0 16px; }
.mnav a, .mnav summary { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 500; cursor: pointer; list-style: none; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary::after { content: "+"; font: 400 20px/1 var(--f-lat); }
.mnav details[open] summary::after { content: "−"; }
.mnav details a { font-size: 14px; font-weight: 400; padding: 10px 14px; color: var(--ink-2); }
body.locked { overflow: hidden; }

/* ---------- Hero slider ---------- */
.hero { position: relative; background: var(--soft); overflow: hidden; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 1920 / 760; min-height: 420px; max-height: 78vh; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; }
.slide picture, .slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.35), rgba(0,0,0,0) 55%); }
.slide--light { color: var(--ink); }
.slide--light::after { background: none; }
.slide-copy { position: relative; z-index: 2; padding: 0 var(--gutter); max-width: 820px; align-self: end; margin-bottom: clamp(36px, 7vw, 90px); }
.slide-copy h2 { margin: 0; font-weight: 500; font-size: clamp(30px, 4.6vw, 62px); line-height: 1.2; }
.slide-copy p { margin: 10px 0 24px; font-size: clamp(15px, 1.4vw, 19px); opacity: .92; }
.slide--art { background: radial-gradient(80% 120% at 70% 30%, #3A2C22 0%, #15110E 70%); }
.slide--art.alt { background: radial-gradient(80% 120% at 30% 30%, #2B3530 0%, #0F1412 70%); }
.slide-art { position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-end; gap: clamp(8px, 2vw, 28px); padding-bottom: 6%; opacity: .95; }
.slide-art .flacon { width: clamp(70px, 9vw, 140px); height: auto; aspect-ratio: 400 / 500; background: none; }
.slide--art .slide-copy { align-self: center; margin: 0 0 18%; }
.dots { position: absolute; bottom: 16px; inset-inline: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.dots button { width: 26px; height: 3px; border: 0; padding: 0; background: rgba(255,255,255,.5); }
.dots button[aria-current="true"] { background: #fff; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; }
.hero-arrow svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 1.6; }
.hero-arrow.prev { inset-inline-start: 0; } .hero-arrow.next { inset-inline-end: 0; }
@media (max-width: 760px) { .slide { aspect-ratio: 4 / 5; max-height: none; min-height: 0; } .hero-arrow { display: none; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(44px, 6vw, 84px); }
.section--soft { background: var(--soft); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: clamp(20px, 2.6vw, 34px); }
.sec-head h2 { margin: 0; font-size: clamp(22px, 2.3vw, 30px); font-weight: 600; letter-spacing: -.005em; }
.sec-head--center { justify-content: center; text-align: center; flex-direction: column; align-items: center; }
.sec-head--center h2 { font-weight: 500; letter-spacing: .02em; }
.sec-head p { margin: 4px 0 0; color: var(--muted); }

/* Brand circles */
.brands { display: flex; gap: clamp(14px, 2.4vw, 34px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; justify-content: safe center; }
.brands::-webkit-scrollbar { display: none; }
.brand { flex: 0 0 auto; width: clamp(92px, 11vw, 150px); text-align: center; scroll-snap-align: start; }
.brand-circle { width: 100%; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; overflow: hidden; background: #fff; transition: border-color .25s, transform .4s var(--ease); }
.brand:hover .brand-circle { border-color: var(--ink); transform: translateY(-3px); }
.brand-circle img { width: 78%; height: 78%; object-fit: contain; }
.brand-circle span { font-family: var(--f-logo); font-size: clamp(14px, 1.5vw, 19px); letter-spacing: .12em; text-transform: uppercase; padding: 8px; line-height: 1.2; }
.brand-circle--sale { background: var(--sale); border-color: var(--sale); color: #fff; }
.brand-circle--sale span { font-family: var(--f-ar); font-weight: 700; letter-spacing: 0; font-size: clamp(16px, 1.7vw, 22px); }
.brand b { display: block; margin-top: 10px; font-size: 14px; font-weight: 600; }

/* Trust bar */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--soft); }
.trust div { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 22px 12px; text-align: start; }
.trust svg { width: 30px; height: 30px; flex: none; stroke: var(--ink); fill: none; stroke-width: 1.3; }
.trust b { display: block; font-size: 14px; font-weight: 600; }
.trust small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 860px) { .trust { grid-template-columns: repeat(2, 1fr); } .trust div { justify-content: flex-start; padding: 16px; } }

/* Brand marquee strip */
.strip { background: var(--ink); color: #fff; overflow: hidden; }
.strip .marquee-track { gap: clamp(36px, 6vw, 90px); padding-block: 22px; animation-duration: 55s; }
.strip a { font-family: var(--f-lat); font-size: clamp(16px, 1.8vw, 24px); letter-spacing: .14em; text-transform: uppercase; font-weight: 500; opacity: .9; }
.strip a:hover { opacity: 1; }

/* ---------- Carousel ---------- */
.carousel { position: relative; }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * var(--gap)) / 4); --gap: clamp(12px, 1.6vw, 24px); gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.track::-webkit-scrollbar { display: none; }
.track > * { scroll-snap-align: start; }
.car-btn { position: absolute; top: 34%; z-index: 4; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.18); transition: opacity .2s; }
.car-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.car-btn.prev { inset-inline-start: -22px; } .car-btn.next { inset-inline-end: -22px; }
.car-btn[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 1080px) { .track { grid-auto-columns: calc((100% - 2 * var(--gap)) / 3); } }
@media (max-width: 760px) { .track { grid-auto-columns: 46%; } .car-btn { display: none; } }

/* ---------- Product card ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 40px) clamp(12px, 1.6vw, 24px); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1080px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .grid, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
.card { display: flex; flex-direction: column; min-width: 0; }
.card-media { position: relative; aspect-ratio: 1 / 1.08; background: var(--soft); overflow: hidden; }
.card-media img, .card-media .flacon { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card-media img.alt { opacity: 0; transition: opacity .5s; }
.card:hover .card-media img.alt { opacity: 1; }
.card:hover .card-media img:not(.alt), .card:hover .card-media .flacon { transform: scale(1.04); }
.badges { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.badge { background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .03em; padding: 4px 9px; line-height: 1.4; }
.badge--sale { background: var(--sale); }
.badge--light { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.card-body { padding-top: 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card-brand { font-family: var(--f-lat); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card-title { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 4px; font-family: var(--f-lat); font-size: 15.5px; font-weight: 500; }
.price .now.is-sale { color: var(--sale); }
.price s { color: var(--muted); font-size: 13.5px; font-weight: 400; }
.price small { font-family: var(--f-ar); font-size: 12px; color: var(--muted); font-weight: 400; }
.card-cta { margin-top: 12px; }
.card-cta .btn { width: 100%; min-height: 44px; font-size: 13.5px; }
.card-cta svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.flacon { background: linear-gradient(180deg, #F7F6F3, #ECEAE5); }
.flacon svg { width: 100%; height: 100%; }

/* Category tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 28px); }
.tile { display: flex; flex-direction: column; text-align: center; }
.tile-media { position: relative; aspect-ratio: 3 / 2; background: var(--soft); overflow: hidden; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.tile:hover .tile-media img { transform: scale(1.04); }
.tile-media .ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-logo); font-size: clamp(26px, 3vw, 40px); color: rgba(255,255,255,.95); letter-spacing: .06em; }
.tile h3 { margin: 18px 0 4px; font-size: 19px; font-weight: 600; letter-spacing: .01em; }
.tile p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.tile .btn { margin-top: auto; }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr; } }

/* Split promo (layering / museum) */
.promo { display: grid; grid-template-columns: 1fr 1fr; background: var(--soft); }
.promo-media { position: relative; min-height: 380px; background: #1A1714; display: flex; align-items: flex-end; justify-content: center; gap: 4%; padding: 6% 6% 0; }
.promo-media .flacon { width: 34%; aspect-ratio: 400 / 500; height: auto; background: none; }
.promo-copy { padding: clamp(28px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.promo-copy h2 { margin: 0; font-size: clamp(24px, 2.6vw, 36px); font-weight: 600; line-height: 1.3; }
.promo-copy p { margin: 0; color: var(--ink-2); max-width: 46ch; }
.promo-copy .row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
@media (max-width: 860px) { .promo { grid-template-columns: 1fr; } .promo-media { min-height: 260px; } }

/* Newsletter */
.newsletter { text-align: center; }
.newsletter h2 { margin: 0 0 6px; font-weight: 500; font-size: clamp(20px, 2vw, 26px); }
.newsletter p { margin: 0 0 22px; color: var(--muted); }
.newsletter form { display: flex; max-width: 560px; margin-inline: auto; border: 1px solid var(--line-2); }
.newsletter input { flex: 1; border: 0; padding: 0 16px; min-height: 52px; outline: 0; }
.newsletter .btn { min-height: 52px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(40px, 5vw, 64px); }
.footer-cols { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 32px; padding-bottom: 40px; }
.footer-cols h4 { margin: 0 0 14px; font-size: 15px; font-weight: 600; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; color: var(--ink-2); }
.footer-cols a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-brand .logo { align-items: flex-start; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 34ch; }
.socials { display: flex; gap: 8px; margin-top: 10px; }
.socials a { width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.footer-bottom { background: var(--ink); color: #cfcfcf; font-size: 12.5px; }
.footer-bottom .wrap { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 56px; flex-wrap: wrap; padding-block: 12px; }
.pay { display: flex; gap: 8px; flex-wrap: wrap; }
.pay span { border: 1px solid #444; padding: 3px 10px; font-size: 11.5px; color: #eee; }
@media (max-width: 860px) { .footer-cols { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* WhatsApp float */
.wa { position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 70; width: 54px; height: 54px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.wa svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- Listing page ---------- */
.crumbs { font-size: 13px; color: var(--muted); padding-block: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.page-title { padding-bottom: 22px; }
.page-title h1 { margin: 0; font-size: clamp(26px, 3vw, 38px); font-weight: 600; }
.page-title p { margin: 6px 0 0; color: var(--muted); max-width: 70ch; }
.listing { display: grid; grid-template-columns: 250px 1fr; gap: clamp(20px, 3vw, 48px); align-items: start; padding-bottom: clamp(56px, 7vw, 100px); }
.filters { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; }
.fgroup { border-bottom: 1px solid var(--line); }
.fgroup summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; padding: 14px 0; font-weight: 600; font-size: 14.5px; }
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary::after { content: "+"; font: 400 18px/1 var(--f-lat); }
.fgroup[open] summary::after { content: "−"; }
.fgroup .opts { display: grid; gap: 8px; padding-bottom: 16px; max-height: 260px; overflow-y: auto; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--ink); }
.check small { color: var(--muted); margin-inline-start: auto; font-family: var(--f-lat); }
.price-range { display: flex; gap: 8px; align-items: center; padding-bottom: 16px; }
.price-range input { width: 100%; border: 1px solid var(--line-2); padding: 8px; font-family: var(--f-lat); }
.filters .btn { margin-top: 16px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.toolbar .count-label { color: var(--muted); font-size: 14px; }
.sort { border: 1px solid var(--line-2); padding: 9px 12px; background: #fff; font-size: 14px; }
.filter-toggle { display: none; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.pill { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line-2); padding: 5px 12px; font-size: 13px; border-radius: 999px; }
.pill:hover { border-color: var(--ink); }
@media (max-width: 980px) {
  .listing { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 auto 0 0; inset-inline-start: 0; z-index: 100; width: min(360px, 90vw); max-height: none; background: #fff; padding: 20px; transform: translateX(100%); visibility: hidden; transition: transform .4s var(--ease), visibility 0s .4s; }
  .filters.is-open { transform: none; visibility: visible; transition: transform .4s var(--ease); }
  .filter-toggle { display: inline-flex; }
}
.empty { text-align: center; padding: 70px 0; }
.empty h2 { margin: 0 0 8px; font-weight: 600; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 48px; font-family: var(--f-lat); }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: inline-grid; place-items: center; border: 1px solid var(--line); }
.pagination .is-current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .is-disabled { opacity: .35; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 64px); align-items: start; padding-bottom: clamp(40px, 5vw, 72px); }
.gallery { display: grid; grid-template-columns: 84px 1fr; gap: 12px; }
.thumbs { display: flex; flex-direction: column; gap: 10px; }
.thumbs button { padding: 0; border: 1px solid transparent; background: var(--soft); aspect-ratio: 1; overflow: hidden; }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.main-img { position: relative; aspect-ratio: 1 / 1.08; background: var(--soft); overflow: hidden; }
.main-img img, .main-img .flacon { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery.single { grid-template-columns: 1fr; }
.info { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; }
.info-brand { font-family: var(--f-lat); letter-spacing: .14em; text-transform: uppercase; font-size: 13px; color: var(--muted); }
.info-brand:hover { color: var(--ink); }
.info h1 { margin: 2px 0 0; font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; line-height: 1.35; }
.info .tag { margin: 0; color: var(--ink-2); }
.info .price { font-size: 26px; margin: 0; }
.info .price s { font-size: 18px; }
.save { display: inline-block; background: #FBEAEA; color: var(--sale); font-size: 12.5px; font-weight: 600; padding: 3px 10px; font-family: var(--f-ar); }
.opt-label { font-size: 13px; font-weight: 600; letter-spacing: .02em; margin-bottom: 10px; }
.opt-label span { font-weight: 400; color: var(--muted); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.size input { position: absolute; opacity: 0; pointer-events: none; }
.size span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 999px; font-family: var(--f-lat); font-size: 14px; cursor: pointer; transition: all .2s; }
.size input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.size input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.size input:disabled + span { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.buy { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.buy .btn--buy { grid-column: 1 / -1; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--ink); }
.qty button { width: 44px; height: 46px; border: 0; background: none; font: 400 20px/1 var(--f-lat); }
.qty input { width: 40px; text-align: center; border: 0; font-family: var(--f-lat); font-size: 15px; -moz-appearance: textfield; outline: 0; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stock { font-size: 13.5px; }
.stock b { color: var(--ok); font-weight: 600; }
.stock b.low { color: var(--sale); }
.perks { display: grid; gap: 10px; padding: 16px 0; border-block: 1px solid var(--line); font-size: 13.5px; }
.perks div { display: flex; gap: 10px; align-items: center; }
.perks svg { width: 20px; height: 20px; stroke: var(--ink); fill: none; stroke-width: 1.4; flex: none; }
.share { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.share a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); }
.share svg { width: 15px; height: 15px; fill: currentColor; }
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-weight: 600; font-size: 15px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font: 300 24px/1 var(--f-lat); }
.acc details[open] summary::after { content: "−"; }
.acc .content { padding-bottom: 20px; color: var(--ink-2); font-size: 14.5px; }
.notes-rows { display: grid; gap: 10px; }
.notes-rows div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; }
.notes-rows b { font-weight: 600; color: var(--ink); }
.notes-rows a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.meters { display: grid; gap: 10px; margin-top: 16px; }
.meter { display: grid; grid-template-columns: 110px 1fr 90px; gap: 12px; align-items: center; font-size: 13.5px; }
.bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.bar i { height: 4px; background: var(--line); }
.bar i.on { background: var(--ink); }
.meter .v { color: var(--muted); font-size: 12.5px; text-align: end; }
@media (max-width: 960px) {
  .pdp { grid-template-columns: 1fr; }
  .info { position: static; }
  .gallery { grid-template-columns: 1fr; }
  .thumbs { flex-direction: row; order: 2; overflow-x: auto; }
  .thumbs button { width: 64px; flex: none; }
}
.buybar { display: none; }
@media (max-width: 960px) {
  .buybar { position: fixed; inset-inline: 0; bottom: 0; z-index: 65; display: flex; gap: 12px; align-items: center; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .35s var(--ease); }
  .buybar.is-on { transform: none; }
  .buybar .btn { flex: 1; }
  .buybar .price { margin: 0; font-size: 17px; }
  body.has-buybar .wa { bottom: 84px; }
}

/* ---------- Cart drawer lines ---------- */
.mini { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.mini-media { position: relative; aspect-ratio: 1 / 1.08; background: var(--soft); overflow: hidden; }
.mini-media img, .mini-media .flacon { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mini h3 { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.4; }
.mini .meta { font-size: 12.5px; color: var(--muted); }
.mini .price { font-size: 14px; margin: 0; }
.mini .qty { margin-top: 8px; border-color: var(--line-2); }
.mini .qty button { width: 32px; height: 32px; font-size: 16px; }
.mini .qty output { min-width: 26px; text-align: center; font-family: var(--f-lat); font-size: 13px; }
.remove { border: 0; background: none; padding: 0; font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; margin-inline-start: 12px; }
.sum-row { display: flex; justify-content: space-between; font-size: 15px; }
.sum-row .v { font-family: var(--f-lat); font-weight: 500; }
.sum-row.total { font-size: 17px; font-weight: 600; }
.sum-row.total .v { font-size: 20px; }
.sum-row.discount { color: var(--sale); }
.ship-progress { font-size: 13px; padding: 12px 0; }
.ship-progress .bar-p { height: 4px; background: var(--line); margin-top: 8px; }
.ship-progress .bar-p i { display: block; height: 100%; background: var(--ink); }

/* ---------- Bag / checkout pages ---------- */
.two-col { display: grid; grid-template-columns: 1.4fr .9fr; gap: clamp(24px, 4vw, 64px); align-items: start; padding-bottom: clamp(56px, 7vw, 100px); }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } }
.line { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.line:first-child { border-top: 1px solid var(--line); }
.line-media { position: relative; aspect-ratio: 1 / 1.08; background: var(--soft); overflow: hidden; }
.line-media img, .line-media .flacon { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.line h3 { margin: 0; font-size: 16px; font-weight: 500; }
.line .meta { font-size: 13px; color: var(--muted); }
.line .qty { margin-top: 10px; border-color: var(--line-2); }
.line .qty button { width: 36px; height: 36px; }
.line .qty output { min-width: 28px; text-align: center; font-family: var(--f-lat); }
.summary { background: var(--soft); padding: clamp(20px, 2.6vw, 32px); position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 14px; }
.summary h2 { margin: 0; font-size: 18px; font-weight: 600; }
.summary .note { font-size: 12.5px; color: var(--muted); margin: 0; }
.rule { border: 0; border-top: 1px solid var(--line-2); margin: 0; width: 100%; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; }
.input, .textarea, .field select { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-2); background: #fff; outline: 0; font-size: 15px; border-radius: 0; }
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .textarea:focus, .field select:focus { border-color: var(--ink); }
.field .error { color: var(--sale); font-size: 12.5px; }
.field.has-error .input, .field.has-error .textarea { border-color: var(--sale); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.fieldset { border: 0; padding: 0; margin: 0 0 34px; }
.fieldset legend { font-size: 19px; font-weight: 600; margin-bottom: 16px; padding: 0; }
.choices { display: grid; gap: 10px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line-2); cursor: pointer; }
.choice input { margin-top: 5px; accent-color: var(--ink); }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice b { display: block; font-weight: 600; font-size: 14.5px; }
.choice small { color: var(--muted); font-size: 13px; }
.choice[hidden] { display: none; }
.alert { padding: 12px 16px; border: 1px solid var(--sale); color: var(--sale); margin-bottom: 20px; font-size: 14px; }
.steps { display: flex; gap: 10px; font-size: 13px; color: var(--muted); padding-bottom: 6px; }
.steps b { color: var(--ink); }

/* ---------- Thanks / concierge / pages ---------- */
.center-hero { text-align: center; padding-block: clamp(40px, 6vw, 80px) clamp(24px, 3vw, 40px); }
.center-hero h1 { margin: 8px 0 12px; font-size: clamp(26px, 3.4vw, 44px); font-weight: 600; }
.center-hero p { color: var(--ink-2); max-width: 60ch; margin: 0 auto 10px; }
.kicker { font-size: 12.5px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.prose { max-width: 760px; font-size: 16px; color: var(--ink-2); }
.prose h2 { font-size: 21px; color: var(--ink); margin: 34px 0 10px; font-weight: 600; }
.prose strong { color: var(--ink); }
.q { border: 0; margin: 0 0 40px; padding: 0; }
.q legend { padding: 0; margin-bottom: 18px; width: 100%; font-size: clamp(20px, 2.2vw, 28px); font-weight: 600; }
.q legend small { display: block; font: 500 13px var(--f-lat); color: var(--muted); letter-spacing: .1em; margin-bottom: 4px; }
.q-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.opt input { position: absolute; opacity: 0; }
.opt span { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-height: 110px; padding: 16px; border: 1px solid var(--line-2); cursor: pointer; transition: all .2s; }
.opt span b { font-size: 17px; font-weight: 600; }
.opt span small { font-size: 12.5px; color: var(--muted); }
.opt span:hover { border-color: var(--ink); }
.opt input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.opt input:checked + span small { color: #ccc; }
.js .concierge.is-stepped .q { display: none; }
.js .concierge.is-stepped .q.is-active { display: block; }
.progress { height: 3px; background: var(--line); margin-bottom: 36px; position: relative; }
.progress i { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: var(--ink); transition: width .4s; }
.q-nav { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.notes-index { columns: 3 220px; column-gap: 40px; }
.notes-group { break-inside: avoid; margin-bottom: 32px; }
.notes-group h2 { font-size: 18px; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.notes-group a { display: flex; justify-content: space-between; padding: 6px 0; font-size: 15px; }
.notes-group a:hover { text-decoration: underline; }
.error-page { text-align: center; padding-block: 100px; }
.error-page .num { font-size: clamp(80px, 14vw, 180px); line-height: 1; color: var(--soft-2); font-weight: 600; }

/* Toast */
.toast { position: fixed; bottom: 20px; inset-inline: 16px; margin-inline: auto; max-width: 420px; z-index: 120; background: var(--ink); color: #fff; padding: 14px 18px; font-size: 14px; display: flex; justify-content: space-between; gap: 12px; visibility: hidden; transform: translateY(150%); transition: transform .4s var(--ease), visibility 0s .4s; }
.toast.is-on { visibility: visible; transform: none; transition: transform .4s var(--ease); }
.toast.is-error { background: var(--sale); }
.toast a { text-decoration: underline; }

.reveal { }
@media print { .site-header, .topbar, .site-footer, .wa, .buybar { display: none !important; } }
@media (max-width: 760px) { .tile-media { aspect-ratio: 2 / 1; } .tile h3 { margin-top: 12px; } }

/* ================= Auth ================= */
.auth { display: grid; place-items: center; padding: clamp(32px, 6vw, 80px) var(--gutter); background: var(--soft); min-height: 70vh; }
.auth-card { width: 100%; max-width: 460px; background: #fff; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); }
.auth-card h1 { margin: 0 0 6px; font-size: 26px; font-weight: 600; }
.stack { display: grid; gap: 16px; }
.social-btns { display: grid; gap: 10px; }
.social-btns .btn { gap: 12px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 20px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs button { flex: 1; border: 0; background: none; padding: 10px 6px; font-size: 13.5px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.switch { text-align: center; margin: 22px 0 0; font-size: 14px; color: var(--muted); }
.switch a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.note-ok { background: #EEF6F0; color: var(--ok); padding: 10px 14px; font-size: 14px; margin-bottom: 16px; }
.otp { font-size: 24px; letter-spacing: .5em; text-align: center; }
.link-btn { border: 0; background: none; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; cursor: pointer; }
.check.full { grid-column: 1 / -1; }

/* ================= Header account ================= */
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-grid; place-items: center; font-size: 12px; font-weight: 600; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--xl { width: 96px; height: 96px; font-size: 32px; border: 4px solid #fff; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.icon .dot { position: absolute; top: 9px; inset-inline-end: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--sale); }

/* ================= Wishlist heart ================= */
.heart { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; transition: transform .2s; }
.heart:hover { transform: scale(1.08); }
.heart svg { width: 19px; height: 19px; fill: none; stroke: var(--ink); stroke-width: 1.5; }
.heart.is-on svg { fill: var(--sale); stroke: var(--sale); }
.card { position: relative; }
.card > .heart { top: 8px; }
.pdp-heart { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 0; font-size: 14px; cursor: pointer; }
.pdp-heart svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.5; }
.pdp-heart.is-on svg { fill: var(--sale); stroke: var(--sale); }

/* ================= Account ================= */
.acct-hero { position: relative; min-height: 210px; background: linear-gradient(120deg, #1d1a17, #3a2f27 60%, #1d1a17); background-size: cover; background-position: center; display: flex; align-items: flex-end; }
.acct-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,0) 70%); }
.acct-hero-inner { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-block: 24px; color: #fff; flex-wrap: wrap; }
.acct-id { display: flex; align-items: center; gap: 18px; }
.acct-id h1 { margin: 0; font-size: clamp(22px, 2.6vw, 32px); font-weight: 600; }
.acct-id p { margin: 2px 0 0; opacity: .8; font-size: 14px; }
.acct { display: grid; grid-template-columns: 220px 1fr; gap: clamp(20px, 3vw, 48px); padding-block: 32px clamp(56px, 7vw, 100px); align-items: start; }
.acct-nav { display: grid; position: sticky; top: calc(var(--header-h) + 16px); border: 1px solid var(--line); }
.acct-nav a, .acct-nav button { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; border: 0; border-bottom: 1px solid var(--line); background: #fff; font-size: 14.5px; text-align: start; width: 100%; }
.acct-nav form:last-child button { border-bottom: 0; color: var(--muted); }
.acct-nav a:hover { background: var(--soft); }
.acct-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.dot-count { background: var(--sale); color: #fff; font: 600 11px/18px var(--f-lat); min-width: 20px; height: 20px; border-radius: 10px; text-align: center; padding: 1px 6px; }
.acct-main { min-width: 0; }
.acct-main .sec-head { margin-bottom: 18px; }
.acct-main .sec-head h2 { font-size: 22px; }
@media (max-width: 860px) {
  .acct { grid-template-columns: 1fr; padding-top: 0; }
  .acct-nav { position: static; display: flex; overflow-x: auto; border: 0; border-bottom: 1px solid var(--line); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .acct-nav a, .acct-nav button { border: 0; white-space: nowrap; padding: 14px 12px; width: auto; }
  .acct-nav a[aria-current="page"] { background: none; color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
  .avatar--xl { width: 72px; height: 72px; font-size: 24px; }
}
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.stat { border: 1px solid var(--line); padding: 16px; display: grid; gap: 4px; }
.stat small { color: var(--muted); font-size: 13px; }
.stat b { font-size: 22px; font-weight: 600; }
.stat--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.stat--dark small { color: #bbb; }
@media (max-width: 860px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
.tip { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; background: var(--soft); margin-bottom: 28px; flex-wrap: wrap; }
.tip b { display: block; } .tip span { color: var(--ink-2); font-size: 14px; }
.block { margin-top: 36px; }
.block-form { border: 1px solid var(--line); padding: clamp(18px, 2.4vw, 28px); margin-bottom: 20px; }
.block-form h3 { margin: 0 0 14px; font-size: 18px; display: flex; gap: 10px; align-items: center; }
.empty-box { border: 1px dashed var(--line-2); padding: 28px; text-align: center; color: var(--ink-2); }
.empty-box p { margin: 0 0 14px; }
.order-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 12px; align-items: center; padding: 16px; border: 1px solid var(--line); margin-bottom: 10px; transition: border-color .2s; }
.order-row:hover { border-color: var(--ink); }
.order-row small { display: block; color: var(--muted); font-size: 12px; }
.order-row b { font-weight: 600; font-size: 14.5px; }
@media (max-width: 640px) { .order-row { grid-template-columns: 1fr 1fr; } }
.status { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--soft-2); color: var(--ink-2); }
.status--delivered, .status--confirmed { background: #E6F3EA; color: var(--ok); }
.status--shipped, .status--processing { background: #E8F0FB; color: #1E4E9A; }
.status--pending { background: #FFF4E0; color: #8A5A00; }
.status--cancelled { background: #FBEAEA; color: var(--sale); }
.order-track { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: s; }
.order-track li { position: relative; text-align: center; font-size: 12.5px; color: var(--muted); padding-top: 30px; }
.order-track li span { position: absolute; top: 0; inset-inline-start: 50%; transform: translateX(50%); width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; z-index: 1; }
.order-track li::before { content: ""; position: absolute; top: 9px; inset-inline-start: -50%; width: 100%; height: 2px; background: var(--line-2); }
.order-track li:first-child::before { display: none; }
.order-track li.done { color: var(--ink); font-weight: 600; }
.order-track li.done span { background: var(--ink); border-color: var(--ink); }
.order-track li.done::before { background: var(--ink); }
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.addr { border: 1px solid var(--line); padding: 16px; display: grid; gap: 8px; align-content: start; }
.addr-top { display: flex; justify-content: space-between; align-items: center; }
.addr p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.img-edit { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.img-edit > div:first-child { display: grid; justify-items: center; gap: 10px; }
.cover-prev { min-height: 160px; background: linear-gradient(120deg, #1d1a17, #3a2f27); background-size: cover; background-position: center; display: grid; place-items: center; }
@media (max-width: 640px) { .img-edit { grid-template-columns: 1fr; } }
.qr-wrap { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
#qr { padding: 10px; background: #fff; border: 1px solid var(--line); min-width: 190px; min-height: 190px; }
.secret { display: block; font-size: 16px; letter-spacing: .1em; margin: 4px 0 10px; }
.codes { background: var(--soft); padding: 16px; margin-bottom: 16px; }
.codes code { display: inline-block; background: #fff; border: 1px solid var(--line); padding: 4px 10px; margin: 4px; font-size: 14px; }
.steps-list { padding-inline-start: 20px; margin: 0; color: var(--ink-2); }
.session { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.notif { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); margin-bottom: 8px; }
.notif.is-new { border-inline-start: 3px solid var(--ink); background: var(--soft); }
.notif span { color: var(--ink-2); font-size: 14px; }

/* ================= Mobile hardening ================= */
html, body { max-width: 100%; overflow-x: clip; }
.trust { grid-template-columns: repeat(var(--cols, 4), 1fr); }
@media (max-width: 860px) { .trust { grid-template-columns: repeat(2, 1fr); } }
.newsletter input, .drawer-search input, .header-search input, .price-range input { min-width: 0; }
.newsletter form { max-width: 100%; }
img, svg, video, canvas, iframe { max-width: 100%; }
.wrap > *, .acct-main, .two-col > *, .pdp > *, .listing > * { min-width: 0; }

/* ================= Mobile polish v5 ================= */
.bottom-nav { display: none; }
@media (max-width: 860px) {
  /* شريط تنقل سفلي مثل التطبيقات */
  .bottom-nav {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 64; display: grid; grid-template-columns: repeat(5, 1fr);
    background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 18px rgba(0,0,0,.05);
  }
  .bottom-nav a, .bottom-nav button { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 0 7px; border: 0; background: none; font-size: 10.5px; color: var(--ink-2); }
  .bottom-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; }
  .bottom-nav [aria-current="page"] { color: var(--ink); font-weight: 600; }
  .bottom-nav .count { top: 2px; inset-inline-end: calc(50% - 22px); }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .wa { bottom: calc(72px + env(safe-area-inset-bottom)); width: 48px; height: 48px; }
  .toast { bottom: calc(72px + env(safe-area-inset-bottom)); }
  body.has-buybar .bottom-nav { display: none; }
  body.has-buybar { padding-bottom: 0; }
  .buybar { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }

  /* الهيدر */
  .header-main { min-height: 58px; }
  .site-header .header-tools .icon:not(.keep) { display: none; }
  .topbar { font-size: 11.5px; }
  .topbar .wrap { min-height: 32px; }

  /* الأقسام كمربعات صغيرة */
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .tile-media { aspect-ratio: 1 / 1.15; }
  .tile-media .ph { font-size: 17px; padding: 6px; text-align: center; }
  .tile h3 { font-size: 14px; margin: 8px 0 0; }
  .tile p, .tile .btn { display: none; }

  /* حساب العميل */
  .acct-hero { min-height: 0; }
  .acct-hero-inner { padding-block: 18px; }
  .acct-hero .btn { display: none; }
  .acct-id h1 { font-size: 20px; }
  .avatar--xl { width: 60px; height: 60px; font-size: 20px; border-width: 3px; }
  .acct-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; overflow: visible; margin: 14px 0 6px; padding: 0; border: 0; }
  .acct-nav a, .acct-nav button { justify-content: center; padding: 9px 4px; font-size: 12.5px; border: 1px solid var(--line) !important; background: #fff; white-space: normal; text-align: center; width: 100%; }
  .acct-nav a[aria-current="page"] { background: var(--ink); color: #fff; box-shadow: none; }
  .acct-nav form { display: contents; }
  .dot-count { margin-inline-start: 4px; }
  .acct-page .acct-hero { display: none; }

  /* الأقسام العامة */
  .section { padding-block: 36px; }
  .sec-head h2 { font-size: 21px; }
  .page-title h1 { font-size: 24px; }
  .crumbs { padding-block: 12px; }
  .summary { position: static; }
  .footer-cols { gap: 24px 16px; }
  .site-footer { padding-top: 32px; }
  .order-track li { font-size: 10.5px; }
  .pdp .info h1 { font-size: 22px; }
}
body.no-newsletter .newsletter-section { display: none; }
@media (max-width: 860px) { .promo-media { min-height: 170px; padding-top: 18px; } .promo-media .flacon { width: 26%; } .promo-copy { padding: 24px 20px; } }

/* ================= Rewards ================= */
.rewards-box { max-width: 100%; margin-bottom: 22px; display: grid; gap: 10px; }
.coupon-form { display: flex; gap: 8px; }
.coupon-form .input { flex: 1; min-width: 0; text-transform: uppercase; }
.coupon-form .applied { flex: 1; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: #EEF6F0; color: var(--ok); font-size: 14px; }
.reward-toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 640px) { .reward-toggles { grid-template-columns: 1fr; } }
.flash-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--sale); color: #fff; padding: 10px 14px; font-size: 14px; }
.flash-strip { background: var(--sale); color: #fff; }
.flash-strip .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 14px; flex-wrap: wrap; }
.flash-strip h2 { margin: 0; font-size: 20px; }
.countdown { display: flex; gap: 6px; direction: ltr; }
.countdown span { background: rgba(0,0,0,.25); padding: 6px 10px; min-width: 48px; text-align: center; font: 600 18px/1.1 var(--f-lat); }
.countdown small { display: block; font: 400 10px var(--f-ar); opacity: .85; }
.rw-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.rw-card { padding: 18px; border: 1px solid var(--line); display: grid; gap: 4px; }
.rw-card small { color: var(--muted); }
.rw-card b { font-size: 26px; font-family: var(--f-lat); }
.rw-card--ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.rw-card--ink small { color: #bbb; }
@media (max-width: 760px) { .rw-cards { grid-template-columns: 1fr 1fr; } .rw-card--ink { grid-column: 1 / -1; } }
.tier-bar { height: 8px; background: var(--soft-2); margin: 10px 0 6px; }
.tier-bar i { display: block; height: 100%; background: var(--ink); }
.ref-box { display: flex; gap: 8px; }
.ref-box input { flex: 1; min-width: 0; }
.coupon-chip { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px dashed var(--ink); padding: 12px 14px; margin-bottom: 8px; }
.coupon-chip code { font: 600 16px var(--f-lat); letter-spacing: .08em; }
.tx { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.tx .plus { color: var(--ok); } .tx .minus { color: var(--sale); }
