/* =====================================================================
   LYLA · ليلى — Pyjamas & Homewear
   palette: crème, rose poudré, cerise (حب الملوك), cacao
   ===================================================================== */
:root {
  --cream: #FBF6F1;
  --paper: #FFFDFB;
  --blush: #F7E6E6;
  --rose: #EDB8C2;
  --rose-d: #D98A9A;
  --cherry: #9C1B33;
  --cherry-d: #7A1226;
  --ink: #3B2427;
  --ink-2: #5E464A;
  --muted: #8C7579;
  --line: #EBDDD8;
  --gold: #B88A4E;
  --sage: #5F7F62;
  --r: 18px;
  --r-sm: 12px;
  --shadow: 0 18px 40px -22px rgba(92, 34, 45, .35);
  --ar: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --ar-d: 'El Messiri', 'IBM Plex Sans Arabic', serif;
  --fr: 'Cormorant Garamond', Georgia, serif;
  --wrap: 1180px;
  --head: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.locked { overflow: hidden; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 16px/1.75 var(--ar); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--ar-d); font-weight: 600; line-height: 1.3; margin: 0; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.fr, .kicker, .eyebrow, .sign { unicode-bidi: plaintext; }
/* plaintext يخلي الفرنسية تتقرا صح، بصح لازم نرجعو المحاذاة لليمين */
.kicker, .sign, .p-title .fr { text-align: right; }
.section-head[style*="center"] .kicker { text-align: center; }
.fr { font-family: var(--fr); font-style: italic; font-weight: 500; letter-spacing: .01em; }
.muted { color: var(--muted); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { display: none; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--cherry); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 0;
  background: var(--cherry); color: #fff; font-weight: 600; font-size: 16px;
  transition: background .2s, transform .15s, box-shadow .2s; box-shadow: 0 10px 24px -12px rgba(156, 27, 51, .7);
}
.btn:hover { background: var(--cherry-d); }
.btn:active { transform: scale(.98); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); box-shadow: none; }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-light { background: var(--paper); color: var(--cherry); box-shadow: none; }
.btn-light:hover { background: #fff; }
.btn-block { width: 100%; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; padding: 8px; }

/* ---------- Announce + header ---------- */
.announce { background: var(--ink); color: #F6E9E6; font-size: 13px; overflow: hidden; white-space: nowrap; }
.announce-track { display: inline-flex; gap: 48px; padding: 9px 0; animation: marquee 32s linear infinite; }
.announce-track span::before { content: '✦'; color: var(--rose); margin-inline-end: 12px; }
@keyframes marquee { to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .announce-track { animation: none; } }

.site-head { position: sticky; top: 0; z-index: 40; background: rgba(251, 246, 241, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: box-shadow .2s; }
.site-head.scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 24px -20px rgba(59, 36, 39, .5); }
.head-row { height: var(--head); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.logo { justify-self: center; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo b { font-family: var(--fr); font-weight: 600; font-size: 30px; letter-spacing: .32em; margin-inline-end: -.32em; direction: ltr; }
.logo small { font-family: var(--ar-d); font-size: 11px; color: var(--muted); letter-spacing: .08em; margin-top: 2px; }
.nav { display: none; gap: 26px; font-size: 15px; }
.nav a { position: relative; padding: 6px 0; }
.nav a::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 1.5px; background: var(--cherry); transform: scaleX(0); transition: transform .25s; }
.nav a:hover::after { transform: scaleX(1); }
.head-end { justify-self: end; display: flex; align-items: center; gap: 4px; }
.icon-btn { position: relative; width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; border: 0; background: transparent; }
.icon-btn:hover { background: var(--blush); }
.badge-count[hidden] { display: none; }
.badge-count { position: absolute; top: 4px; inset-inline-end: 2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--cherry); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.menu-btn { justify-self: start; }
.mobile-nav { position: fixed; inset: 0; z-index: 60; background: var(--cream); padding: 24px; display: flex; flex-direction: column; gap: 4px; transform: translateX(100%); transition: transform .3s ease; visibility: hidden; }
.mobile-nav.open { transform: none; visibility: visible; }
.mobile-nav a { font-family: var(--ar-d); font-size: 26px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-nav .close { align-self: flex-start; margin-bottom: 16px; }
@media (min-width: 960px) {
  .head-row { grid-template-columns: auto 1fr auto; gap: 40px; }
  .logo { justify-self: start; }
  .nav { display: flex; }
  .menu-btn { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; gap: 28px; padding: 28px 0 44px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--fr); font-style: italic; font-size: 18px; color: var(--cherry); }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.hero h1 { font-size: clamp(38px, 9vw, 70px); line-height: 1.12; margin: 14px 0 16px; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--cherry); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ''; position: absolute; inset-inline: 0; bottom: .06em; height: .2em; background: var(--rose); opacity: .45; z-index: -1; border-radius: 4px; }
.hero-lead { font-size: 18px; color: var(--ink-2); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 14px; color: var(--ink-2); }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust svg { width: 18px; height: 18px; color: var(--cherry); }
.hero-media { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 12px; align-items: end; }
.hero-media figure { margin: 0; border-radius: 200px 200px var(--r) var(--r); overflow: hidden; box-shadow: var(--shadow); background: var(--blush); }
.hero-media figure:nth-child(2) { border-radius: var(--r) var(--r) 200px 200px; margin-bottom: 36px; }
.hero-media img { aspect-ratio: 2 / 3; object-fit: cover; width: 100%; }
.hero-stamp {
  position: absolute; top: 4%; inset-inline-start: 46%; width: 104px; height: 104px; border-radius: 50%;
  background: var(--paper); color: var(--cherry); display: grid; place-items: center; text-align: center; box-shadow: var(--shadow);
  font-family: var(--fr); font-style: italic; font-size: 15px; line-height: 1.1; transform: rotate(-8deg);
}
.hero-stamp b { display: block; font-family: var(--ar-d); font-style: normal; font-size: 22px; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 56px; padding: 56px 0 80px; }
  .hero-stamp { width: 124px; height: 124px; font-size: 17px; }
}

/* ---------- Trust strip ---------- */
.trust { background: var(--paper); border-block: 1px solid var(--line); }
.trust-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 14px; padding: 22px 0; }
.trust-row div { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.trust-row svg { width: 28px; height: 28px; color: var(--cherry); }
.trust-row b { display: block; font-size: 15px; }
@media (min-width: 900px) { .trust-row { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(30px, 6vw, 44px); }
.section-head p { color: var(--muted); max-width: 32em; }
.kicker { font-family: var(--fr); font-style: italic; color: var(--cherry); font-size: 19px; display: block; margin-bottom: 4px; }
@media (min-width: 900px) { .section { padding: 96px 0; } }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Filter chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 22px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 18px; font-size: 14px; transition: all .2s; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }

/* ---------- Product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 36px 28px; } }
.card-media { position: relative; display: block; border-radius: var(--r); overflow: hidden; background: var(--blush); aspect-ratio: 2 / 3; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1), opacity .5s; }
.card-media .alt { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
@media (hover: hover) {
  .card.has-alt:hover .alt { opacity: 1; }
  .card:hover .card-media img { transform: scale(1.04); }
}
.tag { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--paper); color: var(--cherry); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.tag-out { inset-inline-start: auto; inset-inline-end: 12px; background: var(--ink); color: #fff; }
.card-body { padding: 14px 4px 0; }
.card-body h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 21px; }
.card-body h3 .fr { font-size: 17px; color: var(--muted); font-weight: 400; }
.card-line { font-size: 13px; color: var(--muted); margin-top: 2px; }
.price { margin-top: 6px; font-size: 17px; }
.price s { color: var(--muted); font-size: 14px; margin-inline-end: 4px; }
.price b { font-weight: 600; }
.card-sizes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; direction: ltr; justify-content: flex-end; }
.card-sizes span { font-size: 11px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.card-sizes span.out { text-decoration: line-through; opacity: .45; }
@media (max-width: 420px) { .card-body h3 { font-size: 18px; } .card-body h3 .fr { font-size: 15px; } }

/* ---------- Manifesto (3000 ساعة) ---------- */
.manifesto { background: var(--ink); color: #F6E9E6; position: relative; overflow: hidden; }
.manifesto::before {
  content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; inset-inline-end: -180px; top: -200px;
  background: radial-gradient(circle at 35% 35%, rgba(237, 184, 194, .35), transparent 60%);
}
.manifesto-grid { display: grid; gap: 28px; position: relative; }
.big-num { font-variant-numeric: lining-nums; font-family: var(--fr); font-size: clamp(96px, 26vw, 200px); line-height: .85; color: var(--rose); font-weight: 500; direction: ltr; text-align: start; }
.big-num small { display: block; font-family: var(--ar-d); font-size: 22px; color: #F6E9E6; margin-top: 12px; line-height: 1.4; }
.manifesto h2 { font-size: clamp(28px, 5.5vw, 42px); margin-bottom: 16px; }
.manifesto p { color: #DCC8C6; font-size: 17px; margin-bottom: 14px; max-width: 36em; }
.manifesto .sign { font-family: var(--fr); font-style: italic; color: var(--rose); font-size: 22px; }
@media (min-width: 900px) { .manifesto-grid { grid-template-columns: .9fr 1.1fr; align-items: center; gap: 72px; } }

/* ---------- Moments ---------- */
.moments { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.moment {
  position: relative; border-radius: var(--r); overflow: hidden; padding: 22px 18px; min-height: 190px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; background: var(--blush); isolation: isolate;
  transition: transform .3s;
}
.moment:hover { transform: translateY(-3px); }
.moment .emo { font-size: 30px; position: absolute; top: 16px; inset-inline-start: 18px; }
.moment h3 { font-size: 21px; }
.moment p { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.moment .fr { position: absolute; top: 18px; inset-inline-end: 18px; font-size: 15px; color: var(--cherry); }
.moment.m2 { background: #F3E3D3; }
.moment.m3 { background: #EADDE6; }
.moment.m4 { background: #E3E6DC; }
.moment.soon::after { content: 'قريبا'; position: absolute; bottom: 14px; inset-inline-end: 14px; font-size: 11px; font-weight: 600; background: var(--paper); color: var(--muted); border-radius: 999px; padding: 2px 10px; }
@media (min-width: 900px) { .moments { grid-template-columns: repeat(4, 1fr); gap: 20px; } .moment { min-height: 260px; padding: 28px 24px; } }

/* ---------- Door test (بيجاما تحلي بيها الباب) ---------- */
.door { background: var(--paper); }
.door-grid { display: grid; gap: 28px; align-items: center; }
.door-media { position: relative; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.door-media img { aspect-ratio: 4 / 5; object-fit: cover; object-position: top; width: 100%; }
.door-media .note { position: absolute; inset-inline: 14px; bottom: 14px; background: rgba(255, 253, 251, .94); border-radius: var(--r-sm); padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.door h2 { font-size: clamp(30px, 6vw, 46px); margin-bottom: 16px; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: '✓'; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--blush); color: var(--cherry); font-weight: 700; font-size: 14px; margin-top: 2px; }
@media (min-width: 900px) { .door-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }

/* ---------- Duo ---------- */
.duo { background: linear-gradient(180deg, var(--blush), var(--cream)); }
.duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: relative; }
.duo-card { text-align: center; }
.duo-card a.media { display: block; border-radius: 160px 160px var(--r) var(--r); overflow: hidden; box-shadow: var(--shadow); }
.duo-card img { aspect-ratio: 2 / 3; object-fit: cover; width: 100%; }
.duo-card h3 { font-size: 22px; margin-top: 14px; }
.duo-card p { font-size: 14px; color: var(--muted); }
.duo-card .emo { font-size: 22px; }
.duo-or { position: absolute; top: 34%; left: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: var(--cherry); color: #fff; display: grid; place-items: center; font-family: var(--fr); font-style: italic; font-size: 20px; box-shadow: var(--shadow); z-index: 2; }
.duo-foot { text-align: center; margin-top: 30px; }
.duo-foot p { color: var(--ink-2); margin-bottom: 14px; }
@media (min-width: 900px) { .duo-grid { gap: 48px; max-width: 760px; margin-inline: auto; } }

/* ---------- Fabric guide ---------- */
.fabrics { display: grid; gap: 14px; }
.fabric { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; position: relative; }
.fabric .when { position: absolute; top: 20px; inset-inline-end: 20px; font-size: 12px; background: var(--blush); color: var(--cherry); border-radius: 999px; padding: 2px 12px; font-weight: 600; }
.fabric h3 { font-size: 22px; display: flex; align-items: baseline; gap: 10px; }
.fabric h3 .fr { font-size: 18px; color: var(--muted); font-weight: 400; }
.fabric p { color: var(--ink-2); font-size: 15px; margin-top: 8px; }
.fabric .verdict { margin-top: 12px; font-size: 14px; color: var(--ink); border-top: 1px dashed var(--line); padding-top: 10px; }
.fabric.soon { opacity: .8; }
.tip { margin-top: 18px; background: var(--ink); color: #F6E9E6; border-radius: var(--r); padding: 18px 22px; display: flex; gap: 14px; align-items: center; }
.tip b { color: var(--rose); }
@media (min-width: 900px) { .fabrics { grid-template-columns: repeat(4, 1fr); gap: 18px; } }

/* ---------- Size band ---------- */
.size-band { background: var(--paper); border-block: 1px solid var(--line); }
.size-grid { display: grid; gap: 24px; align-items: center; }
.size-grid h2 { font-size: clamp(28px, 5.5vw, 40px); margin-bottom: 10px; }
.size-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--cream); border-radius: var(--r-sm); overflow: hidden; }
.size-table th, .size-table td { padding: 10px 8px; text-align: center; border-bottom: 1px solid var(--line); }
.size-table th { background: var(--blush); font-weight: 600; }
.size-table td:first-child { font-weight: 700; font-family: var(--fr); font-size: 17px; }
@media (min-width: 900px) { .size-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; } }

/* ---------- Reviews ---------- */
.reviews { display: grid; gap: 14px; }
.review { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.review .stars { color: var(--gold); letter-spacing: 2px; }
.review p { margin: 8px 0 10px; }
.review small { color: var(--muted); }
@media (min-width: 900px) { .reviews { grid-template-columns: repeat(3, 1fr); } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-family: var(--ar-d); font-size: 19px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-family: var(--ar); font-weight: 400; transition: transform .25s, background .25s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--blush); }
.faq .ans { padding: 0 0 22px; color: var(--ink-2); }
.faq .ans p + p { margin-top: 10px; }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: #DCC8C6; padding: 56px 0 28px; font-size: 14.5px; }
.foot-grid { display: grid; gap: 32px; }
.site-foot .logo { align-items: flex-start; }
.site-foot .logo b { color: #F6E9E6; }
.site-foot h4 { font-family: var(--ar-d); font-size: 17px; color: #F6E9E6; margin: 0 0 12px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-foot a:hover { color: #fff; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(246, 233, 230, .25); display: grid; place-items: center; }
.socials a:hover { background: rgba(246, 233, 230, .1); }
.foot-bottom { border-top: 1px solid rgba(246, 233, 230, .15); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; font-size: 13px; color: #A68F92; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- Drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(59, 36, 39, .45); z-index: 80; }
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(420px, 100%); background: var(--cream); z-index: 90; display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); visibility: hidden; }
[dir="rtl"] .drawer { transform: translateX(-100%); }
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 22px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer-foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); display: grid; gap: 10px; text-align: center; }
.sum { display: flex; justify-content: space-between; font-size: 17px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line-img { border-radius: 10px; overflow: hidden; background: var(--blush); }
.line-img img { aspect-ratio: 2 / 3; object-fit: cover; width: 100%; }
.line-info { display: grid; gap: 2px; font-size: 14px; }
.line-info b { font-family: var(--ar-d); font-size: 17px; }
.line-info .fr { color: var(--muted); }
.line-price { font-weight: 600; font-size: 15px; white-space: nowrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; margin-top: 6px; width: max-content; background: var(--paper); }
.qty button { width: 34px; height: 32px; border: 0; background: none; font-size: 18px; }
.qty span { min-width: 22px; text-align: center; font-weight: 600; }
.ship-note { font-size: 14px; text-align: start; }
.ship-note.is-free { color: var(--sage); font-weight: 600; }
.ship-note .bar { display: block; height: 6px; border-radius: 6px; background: var(--blush); margin-top: 6px; overflow: hidden; }
.ship-note .bar i { display: block; height: 100%; background: var(--cherry); border-radius: 6px; transition: width .4s; }
.empty { text-align: center; padding: 48px 12px; display: grid; justify-items: center; gap: 14px; color: var(--ink-2); }
.moon { width: 64px; height: 64px; border-radius: 50%; box-shadow: inset -14px -6px 0 0 var(--rose); transform: rotate(-20deg); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: all .3s; z-index: 100; width: max-content; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { text-decoration: underline; font-weight: 600; margin-inline-start: 8px; }

/* =====================================================================
   PRODUCT PAGE
   ===================================================================== */
.crumbs { font-size: 13px; color: var(--muted); padding: 14px 0; }
.crumbs a:hover { color: var(--cherry); }
.pdp { display: grid; gap: 24px; padding-bottom: 48px; }
.gallery { position: relative; margin-inline: -16px; }
.g-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 8px; padding-inline: 16px; }
.g-track::-webkit-scrollbar { display: none; }
.g-track figure { margin: 0; flex: 0 0 86%; scroll-snap-align: center; border-radius: var(--r); overflow: hidden; background: var(--blush); }
.g-track img { aspect-ratio: 2 / 3; object-fit: cover; width: 100%; }
.g-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.g-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: all .3s; }
.g-dots i.on { width: 22px; background: var(--cherry); }
@media (min-width: 900px) {
  .pdp { grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
  .gallery { margin: 0; }
  .g-track { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; padding: 0; gap: 12px; }
  .g-track figure:first-child { grid-column: 1 / -1; }
  .g-dots { display: none; }
}
.p-info { display: grid; gap: 18px; align-content: start; }
@media (min-width: 900px) { .p-info { position: sticky; top: calc(var(--head) + 20px); } }
.p-title h1 { font-size: clamp(34px, 7vw, 48px); }
.p-title .fr { font-size: 24px; color: var(--muted); display: block; margin-top: -2px; }
.p-tagline { font-family: var(--fr); font-style: italic; color: var(--cherry); font-size: 19px; }
.p-price { font-size: 26px; font-weight: 600; display: flex; align-items: baseline; gap: 10px; }
.p-price s { font-size: 17px; color: var(--muted); font-weight: 400; }
.p-price small { font-size: 13px; color: var(--muted); font-weight: 400; }
.p-short { color: var(--ink-2); }
.p-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.p-meta span { font-size: 13px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; display: inline-flex; align-items: center; gap: 6px; }
.p-meta i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.opt-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 15px; }
.opt-head b { font-weight: 600; }
.opt-head button { background: none; border: 0; color: var(--cherry); text-decoration: underline; text-underline-offset: 4px; font-size: 14px; padding: 4px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; direction: ltr; justify-content: flex-end; }
.size { position: relative; min-width: 58px; height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 600; font-family: var(--fr); font-size: 18px; transition: all .15s; }
.size:hover { border-color: var(--ink); }
.size[aria-checked="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.size:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.size.reco::after { content: '✓'; position: absolute; top: -8px; right: -6px; width: 18px; height: 18px; border-radius: 50%; background: var(--cherry); color: #fff; font-size: 11px; display: grid; place-items: center; font-family: var(--ar); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); padding: 4px; transition: border-color .15s; }
.swatch i { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.swatch[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.card-swatches { display: flex; gap: 6px; margin-top: 6px; }
.card-swatches a { width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.card-swatches a:hover { outline: 1.5px solid var(--ink); outline-offset: 2px; }
.fit-note { font-size: 13.5px; color: var(--ink-2); margin-top: 10px; display: flex; gap: 8px; align-items: center; }
.fit-note::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); flex: none; }
.size-err { color: var(--cherry); font-size: 14px; margin-top: 8px; }
.buy-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.buy-row .qty { margin: 0; height: 52px; }
.buy-row .qty button { width: 40px; height: 50px; }
.assure { display: grid; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; font-size: 14px; }
.assure div { display: flex; gap: 12px; align-items: center; }
.assure svg { color: var(--cherry); }
.acc details { border-top: 1px solid var(--line); }
.acc details:last-child { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; font-weight: 400; font-size: 22px; transition: transform .25s; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc .ans { padding-bottom: 18px; color: var(--ink-2); font-size: 15px; }
.acc ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 4px; }

.sticky-buy { position: fixed; inset-inline: 0; bottom: 0; z-index: 30; background: rgba(255, 253, 251, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 12px; align-items: center; transform: translateY(110%); transition: transform .3s; }
.sticky-buy.show { transform: none; }
.sticky-buy .sb-info { flex: 1; min-width: 0; line-height: 1.3; }
.sticky-buy .sb-info b { font-family: var(--ar-d); display: block; font-size: 16px; }
.sticky-buy .sb-info span { font-size: 14px; color: var(--muted); }
.sticky-buy .btn { min-height: 46px; padding: 0 22px; }
@media (min-width: 900px) { .sticky-buy { display: none; } }

/* ---------- Size finder modal ---------- */
.modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: end center; }
.modal[hidden] { display: none; }
.modal-scrim { position: absolute; inset: 0; background: rgba(59, 36, 39, .45); }
.modal-box { position: relative; width: min(560px, 100%); max-height: 92vh; overflow-y: auto; background: var(--cream); border-radius: 24px 24px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); animation: up .3s ease; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 700px) { .modal { place-items: center; } .modal-box { border-radius: 24px; padding: 28px; } }
.modal-box h2 { font-size: 26px; }
.modal-box .x { position: absolute; top: 14px; inset-inline-end: 14px; }
.finder { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.finder label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.finder input { height: 50px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); padding: 0 14px; font: inherit; font-size: 17px; text-align: center; }
.finder input:focus { border-color: var(--ink); outline: none; }
.finder-out { background: var(--paper); border: 1.5px dashed var(--rose-d); border-radius: var(--r-sm); padding: 14px 16px; margin-bottom: 18px; min-height: 52px; }
.finder-out b { font-family: var(--fr); font-size: 26px; color: var(--cherry); margin-inline: 4px; }

/* ---------- Complete the look ---------- */
.more { padding: 56px 0 72px; border-top: 1px solid var(--line); }
.more .grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .more .grid { grid-template-columns: repeat(3, 1fr); } }

/* =====================================================================
   CHECKOUT + MERCI
   ===================================================================== */
.co { display: grid; gap: 22px; padding: 24px 0 64px; }
@media (min-width: 900px) { .co { grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; padding-top: 40px; } .co-sum { position: sticky; top: calc(var(--head) + 20px); } }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
@media (min-width: 900px) { .panel { padding: 28px; } }
.panel h2 { font-size: 24px; margin-bottom: 4px; }
.panel .sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-weight: 600; font-size: 14px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--cream);
  padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink); appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235E464A' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; padding-inline-end: 14px; padding-inline-start: 36px; }
.field textarea { padding: 12px 14px; min-height: 80px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; background: #fff; }
.field .err { color: var(--cherry); font-size: 13px; min-height: 0; }
.field.has-error input, .field.has-error select { border-color: var(--cherry); background: #FFF6F7; }
.field input[hidden], .field select[hidden] { display: none; }
.row2 { display: grid; gap: 0 12px; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
.deliv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; border: 0; padding: 0; }
.deliv legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; padding: 0; }
.deliv label { position: relative; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; display: grid; gap: 2px; font-size: 14px; background: var(--cream); }
.deliv input { position: absolute; opacity: 0; }
.deliv label:has(input:checked) { border-color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.deliv label:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.deliv b { font-size: 15px; }
.deliv small { color: var(--muted); }
.totals { display: grid; gap: 8px; margin-top: 14px; font-size: 15px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; font-size: 19px; font-weight: 700; }
.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading::after { content: ''; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.is-shaking { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.form-error { color: var(--cherry); background: #FFF0F2; border-radius: 12px; padding: 12px 14px; margin-top: 12px; font-size: 14px; }
.form-error a { text-decoration: underline; font-weight: 600; }
.co-assure { display: grid; gap: 8px; margin-top: 16px; font-size: 13.5px; color: var(--ink-2); }
.co-assure div { display: flex; gap: 10px; align-items: center; }
.co-assure svg { width: 18px; height: 18px; color: var(--sage); }
.hp { position: absolute; left: -9999px; }

.merci { max-width: 640px; margin-inline: auto; padding: 40px 0 72px; text-align: center; }
.merci .check { width: 76px; height: 76px; border-radius: 50%; background: var(--cherry); color: #fff; display: grid; place-items: center; margin: 0 auto 18px; font-size: 34px; box-shadow: var(--shadow); }
.merci h1 { font-size: clamp(32px, 7vw, 44px); }
.merci .lead { color: var(--ink-2); margin: 10px 0 24px; font-size: 17px; }
.merci .panel { text-align: start; margin-top: 14px; }
.order-id { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.order-id code { font-family: var(--fr); font-size: 24px; font-weight: 600; letter-spacing: .06em; direction: ltr; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; font-size: 15px; }
.steps li span { width: 34px; height: 34px; border-radius: 50%; background: var(--blush); color: var(--cherry); display: grid; place-items: center; font-weight: 700; }
.steps li b { display: block; }
dl.kv { margin: 0; display: grid; gap: 8px; font-size: 15px; }
dl.kv div { display: flex; justify-content: space-between; gap: 12px; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; font-weight: 600; }
dl.kv .grand { border-top: 1px solid var(--line); padding-top: 10px; font-size: 17px; }


/* =====================================================================
   v2 — أريح للعين وأسهل للطلب
   ===================================================================== */
/* شريط الإعلانات: رسالة وحدة تتبدل بهدوء */
.announce { text-align: center; }
.announce .ann { margin: 0; padding: 9px 16px; font-size: 13px; letter-spacing: .01em; transition: opacity .35s ease, transform .35s ease; }
.announce .ann.out { opacity: 0; transform: translateY(-4px); }

/* أزرار أكبر وأوضح */
.btn-lg { min-height: 56px; font-size: 17px; padding: 0 32px; }
.buy-row { grid-template-columns: auto 1fr; }
.buy-row .btn { min-height: 56px; }
.buy-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: -6px; }

/* خصم الكمية */
.tier-hint { font-size: 13.5px; margin-top: 8px; background: var(--blush); color: var(--cherry-d); border-radius: 10px; padding: 8px 12px; text-align: start; }
#tDisc:empty, #drawerDisc:empty { display: none; }
.disc { flex: 1; display: flex; justify-content: space-between; color: var(--sage); font-weight: 600; font-size: 15px; }
#drawerDisc .disc { margin-bottom: -4px; }

/* زر واتساب */
.wa-float { position: fixed; z-index: 35; inset-inline-start: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .35); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
@media (max-width: 899px) { body:has(.sticky-buy.show) .wa-float { bottom: calc(84px + env(safe-area-inset-bottom)); } }

/* الفورم: مرحبا من جديد، ملاحظة، خطوات */
.hello { background: #EEF4EC; color: #3F5E43; border-radius: 12px; padding: 10px 14px; font-size: 14px; margin-bottom: 14px; }
.note-toggle { display: block; padding: 0 0 12px; font-size: 14px; color: var(--ink-2); }
.mini-steps { list-style: none; padding: 0; margin: 16px 0 0; display: flex; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--muted); counter-reset: s; flex-wrap: wrap; }
.mini-steps li { counter-increment: s; display: flex; align-items: center; gap: 6px; }
.mini-steps li::before { content: counter(s); width: 20px; height: 20px; border-radius: 50%; background: var(--blush); color: var(--cherry); font-weight: 700; display: grid; place-items: center; font-size: 11px; }
.mini-steps li + li::after { content: none; }
.mini-steps li:not(:last-child)::after { content: '←'; margin-inline-start: 6px; opacity: .5; }

/* ورقة الطلب (صفحة المنتج) */
.sheet { position: fixed; inset: 0; z-index: 96; display: grid; place-items: end center; }
.sheet[hidden] { display: none; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(59, 36, 39, .45); opacity: 0; transition: opacity .3s; }
.sheet-box { position: relative; width: min(560px, 100%); max-height: 94vh; display: flex; flex-direction: column; background: var(--cream); border-radius: 24px 24px 0 0; transform: translateY(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.sheet.open .sheet-scrim { opacity: 1; }
.sheet.open .sheet-box { transform: none; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px 12px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-size: 22px; }
.sheet-head p { font-size: 13px; margin-top: 2px; }
.sheet-body { overflow-y: auto; padding: 14px 20px calc(20px + env(safe-area-inset-bottom)); -webkit-overflow-scrolling: touch; }
.sheet-sum { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 14px 14px; margin-bottom: 16px; }
.sheet-sum .line { grid-template-columns: 56px 1fr auto; padding: 10px 0; }
.sheet-sum .totals { margin-top: 10px; }
@media (min-width: 700px) { .sheet { place-items: center; } .sheet-box { border-radius: 24px; max-height: 90vh; transform: translateY(24px); opacity: 0; transition: transform .3s, opacity .3s; } .sheet.open .sheet-box { opacity: 1; } }

/* كيفاش نطلب (الرئيسية) */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
.how div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 12px; text-align: center; font-size: 13.5px; line-height: 1.5; }
.how b { display: block; font-family: var(--ar-d); font-size: 16px; margin: 4px 0 2px; }
.how span { font-size: 24px; }
.offer-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; background: var(--ink); color: #F6E9E6; border-radius: var(--r); padding: 14px 20px; margin-bottom: 22px; }
.offer-band b { color: var(--rose); }

/* تتبع الطلبية */
.trk-form { margin-top: 22px; }
.trk-out { margin-top: 14px; }
.trk-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.trk-head code { font-family: var(--fr); font-size: 22px; font-weight: 600; letter-spacing: .05em; direction: ltr; }
.trk-offer { font-size: 13.5px; margin: 8px 0 4px; }
.trk-steps { list-style: none; padding: 0; margin: 18px 0 8px; display: grid; gap: 0; }
.trk-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; position: relative; padding-bottom: 18px; color: var(--muted); }
.trk-steps li:not(:last-child)::before { content: ''; position: absolute; inset-inline-start: 13px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.trk-steps li span { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); }
.trk-steps li.done span { background: var(--sage); border-color: var(--sage); }
.trk-steps li.done::before { background: var(--sage) !important; }
.trk-steps li.now span { border-color: var(--cherry); box-shadow: 0 0 0 5px rgba(156, 27, 51, .12); background: var(--cherry); }
.trk-steps li.done, .trk-steps li.now { color: var(--ink); }
.trk-steps b { display: block; font-size: 15.5px; }
.trk-steps small { font-size: 13px; color: var(--muted); }
.trk-err, .trk-cancel { color: var(--cherry-d); background: #FFF0F2; border-radius: 12px; padding: 12px 14px; font-size: 14.5px; }
.trk-err a, .trk-cancel a { text-decoration: underline; font-weight: 600; }

/* راحة العين: ظلال أخف، وحركة أقل */
.card-media { box-shadow: 0 1px 0 rgba(59, 36, 39, .04); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

.field[hidden] { display: none; }
