/* ==========================================================
   Le Scents — storefront styles
   ========================================================== */
:root {
  color-scheme: light;
  --brand: #b0185f;
  --brand-dark: #8e1149;
  --brand-ink: #6e0f3c;
  --blush-50: #fff8fa;
  --blush-100: #fdeff4;
  --blush-200: #f9dde7;
  --blush-300: #f1c2d3;
  --gold: #c3a061;
  --gold-dark: #9a783a;
  --ink: #2a1520;
  --ink-2: #5a4450;
  --muted: #86717c;
  --line: #f0e1e8;
  --bg: #fffcfd;
  --surface: #ffffff;
  --success: #1d7a4b;
  --success-bg: #e8f6ee;
  --warn: #9a5b00;
  --warn-bg: #fff4e0;
  --danger: #b4312a;
  --danger-bg: #fdecea;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(110, 15, 60, .05), 0 6px 22px rgba(110, 15, 60, .07);
  --shadow-lg: 0 24px 60px rgba(110, 15, 60, .18);
  --font-body: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-script: 'Great Vibes', cursive;
  --container: 1200px;
  --gutter: 16px;
}
[dir='rtl'] {
  --font-body: 'Tajawal', system-ui, sans-serif;
  --font-head: 'Tajawal', system-ui, sans-serif;
}
@media (min-width: 768px) {
  :root { --gutter: 28px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
[dir='rtl'] h1, [dir='rtl'] h2, [dir='rtl'] h3 { font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { inset-inline-start: 8px; color: #fff; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.app { min-height: 60vh; outline: none; }

/* ---------- announcement + header ---------- */
.announcement {
  background: linear-gradient(90deg, var(--brand-ink), var(--brand));
  color: #fff; text-align: center; font-size: 13.5px; letter-spacing: .02em; padding: 7px var(--gutter);
}
.demo-banner { background: var(--warn-bg); color: var(--warn); text-align: center; font-size: 13.5px; padding: 8px var(--gutter); border-bottom: 1px solid #f3dfb8; }
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 252, 253, .92); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 12px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; }
.brand img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--gold); }
.brand-text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand-name { font-family: var(--font-script); font-size: 30px; color: var(--brand); line-height: .9; white-space: nowrap; }
.brand-sub { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.main-nav { display: none; gap: 4px; margin-inline-start: auto; }
.main-nav a { color: var(--ink-2); padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: 15px; }
.main-nav a:hover, .main-nav a.active { color: var(--brand); background: var(--blush-100); }
.header-actions { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
@media (min-width: 960px) {
  .main-nav { display: flex; }
  .header-actions { margin-inline-start: 8px; }
  .menu-btn { display: none !important; }
}
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: transparent; color: var(--ink); cursor: pointer;
}
.icon-btn:hover { background: var(--blush-100); color: var(--brand); }
.icon-btn svg { width: 22px; height: 22px; }
.lang-btn { width: auto; padding: 0 12px; border-radius: 999px; font-weight: 600; font-size: 14px; font-family: 'Tajawal', var(--font-body); }
[dir='rtl'] .lang-btn { font-family: 'Jost', sans-serif; }
.badge-count {
  position: absolute; top: 2px; inset-inline-end: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; line-height: 1;
}
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 8px var(--gutter) 14px; }
.mobile-nav.open { display: grid; }
.mobile-nav a { padding: 12px 6px; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: 0; }
@media (max-width: 420px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 26px; }
  .brand img { width: 40px; height: 40px; }
}

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 15px; cursor: pointer; text-align: center; transition: background .15s, color .15s, border-color .15s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--blush-100); }
.btn-light { background: #fff; color: var(--brand); border-color: var(--line); }
.btn-light:hover { border-color: var(--blush-300); color: var(--brand-dark); }
.btn-wa { background: #1fa855; color: #fff; }
.btn-wa:hover { background: #178a45; color: #fff; }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; font-weight: 500; }
.link-btn:hover { text-decoration: underline; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > label, .field-label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field .hint { font-size: 13px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: #fff; font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 88px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(176, 24, 95, .1); }
.input.invalid, .select.invalid { border-color: var(--danger); }
.grid-2 { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.phone-input { display: flex; }
.phone-input span { display: grid; place-items: center; padding: 0 12px; border: 1.5px solid var(--line); border-inline-end: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); background: var(--blush-50); color: var(--ink-2); font-size: 15px; }
[dir='rtl'] .phone-input span { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.phone-input .input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; direction: ltr; }
[dir='rtl'] .phone-input .input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); text-align: right; }
.phone-input { direction: ltr; }
[dir='rtl'] .phone-input { direction: rtl; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 15px; margin-bottom: 14px; }
.alert-error { background: var(--danger-bg); color: var(--danger); }
.alert-info { background: var(--blush-100); color: var(--brand-ink); }
.alert-warn { background: var(--warn-bg); color: var(--warn); }
.alert-success { background: var(--success-bg); color: var(--success); }

/* ---------- sections ---------- */
.section { padding: 44px 0; }
@media (min-width: 768px) { .section { padding: 64px 0; } }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 0; }
.eyebrow { font-family: var(--font-script); color: var(--gold-dark); font-size: 26px; line-height: 1; display: block; margin-bottom: 4px; }
[dir='rtl'] .eyebrow { font-family: var(--font-body); font-size: 15px; font-weight: 700; letter-spacing: 0; }
.page-title { font-size: clamp(28px, 4vw, 40px); margin: 28px 0 18px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(241, 194, 211, .55), transparent 70%),
    radial-gradient(500px 280px at 5% 95%, rgba(233, 211, 160, .35), transparent 70%),
    linear-gradient(180deg, var(--blush-50), var(--blush-100));
}
.hero-inner { display: grid; gap: 24px; align-items: center; padding-top: 40px; padding-bottom: 48px; }
@media (min-width: 860px) { .hero-inner { grid-template-columns: 1.1fr .9fr; padding-top: 72px; padding-bottom: 72px; } }
.hero-kicker { display: inline-block; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; margin-bottom: 14px; }
[dir='rtl'] .hero-kicker { letter-spacing: 0; font-size: 15px; }
.hero h1 { font-size: clamp(36px, 6vw, 62px); line-height: 1.08; margin-bottom: 16px; }
.hero h1 em { font-family: var(--font-script); font-style: normal; color: var(--brand); font-size: 1.25em; font-weight: 400; }
[dir='rtl'] .hero h1 em { font-family: var(--font-head); font-weight: 700; }
.hero p { font-size: 18px; color: var(--ink-2); max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-art { position: relative; justify-self: center; width: min(400px, 82vw); aspect-ratio: 1; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow-lg); border: 8px solid #fff; }
.hero-art::before { content: ''; position: absolute; inset: -16px; border-radius: 50%; border: 1.5px solid var(--gold); opacity: .7; }
.petal { position: absolute; width: 14px; height: 14px; background: var(--blush-300); border-radius: 14px 0; opacity: .7; animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(25deg); } }
@media (prefers-reduced-motion: reduce) { .petal { animation: none; } html { scroll-behavior: auto; } }

/* ---------- categories & features ---------- */
.cat-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.cat-row::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 500; cursor: pointer; font-size: 15px;
}
.chip:hover { border-color: var(--blush-300); color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.cat-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .cat-cards { grid-template-columns: repeat(5, 1fr); } }
.cat-card {
  display: grid; place-items: center; text-align: center; gap: 6px; padding: 22px 12px; border-radius: var(--radius);
  background: linear-gradient(160deg, #fff, var(--blush-100)); border: 1px solid var(--line); color: var(--ink); font-weight: 600;
  transition: transform .15s, box-shadow .15s;
}
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--brand); }
.cat-card .cat-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--blush-200); }
.features { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature .f-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--blush-100); color: var(--brand); display: grid; place-items: center; margin-bottom: 12px; }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- product grid & card ---------- */
.products { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1040px) { .products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card {
  position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
  border: 1px solid var(--line); overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-img { position: relative; aspect-ratio: 1; background: var(--blush-50); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1; }
.card-brand { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
[dir='rtl'] .card-brand { letter-spacing: 0; }
.card-title { font-family: var(--font-head); font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.card-title a { color: inherit; }
.card-title a::after { content: ''; position: absolute; inset: 0; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.price { font-weight: 600; color: var(--brand-ink); font-size: 16px; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 14px; font-weight: 400; margin-inline-start: 6px; }
.card .add-btn { position: relative; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--blush-100); color: var(--brand); display: grid; place-items: center; cursor: pointer; flex: none; }
.card .add-btn:hover { background: var(--brand); color: #fff; }
.card .add-btn[disabled] { opacity: .4; cursor: not-allowed; }
.tag { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 1; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.tag-sale { background: var(--brand); color: #fff; }
.tag-low { background: #fff; color: var(--warn); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.tag-out { background: rgba(42, 21, 32, .78); color: #fff; }
.card.is-out .card-img img { filter: grayscale(.5) opacity(.7); }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty svg { width: 54px; height: 54px; color: var(--blush-300); margin: 0 auto 12px; }

/* ---------- shop toolbar ---------- */
.toolbar { display: grid; gap: 12px; margin-bottom: 20px; }
@media (min-width: 760px) { .toolbar { grid-template-columns: 1fr auto; align-items: center; } }
.search { position: relative; }
.search svg { position: absolute; top: 50%; inset-inline-start: 14px; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.search .input { padding-inline-start: 42px; border-radius: 999px; }
.toolbar .select { border-radius: 999px; min-width: 210px; }

/* ---------- product page ---------- */
.breadcrumb { font-size: 14px; color: var(--muted); margin: 22px 0 14px; }
.breadcrumb a { color: var(--muted); }
.pdp { display: grid; gap: 28px; padding-bottom: 32px; }
@media (min-width: 900px) { .pdp { grid-template-columns: 1.05fr 1fr; gap: 48px; } }
.gallery-main { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--blush-50); border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; }
.thumbs button { flex: none; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--blush-50); }
.thumbs button.active { border-color: var(--brand); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 6px; }
.pdp-brand { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; }
[dir='rtl'] .pdp-brand { letter-spacing: 0; }
.pdp-size { color: var(--muted); margin-bottom: 14px; }
.pdp-price { font-size: 28px; font-weight: 600; color: var(--brand-ink); margin: 6px 0 18px; }
.pdp-price .price-old { font-size: 18px; }
.options { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.option {
  display: grid; gap: 2px; text-align: start; min-width: 130px; padding: 10px 16px; border-radius: 14px; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff;
}
.option b { font-weight: 600; font-size: 15px; }
.option span { font-size: 14px; color: var(--muted); }
.option.active { border-color: var(--brand); background: var(--blush-50); box-shadow: 0 0 0 3px rgba(176, 24, 95, .08); }
.option[disabled] { opacity: .45; cursor: not-allowed; }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.buy-row .btn { flex: 1 1 160px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; height: 46px; background: #fff; }
.qty button { width: 42px; height: 100%; border: 0; background: none; cursor: pointer; font-size: 20px; color: var(--ink-2); border-radius: 999px; }
.qty button:hover { color: var(--brand); }
.qty input { width: 40px; border: 0; text-align: center; font-weight: 600; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-sm { height: 36px; }
.qty-sm button { width: 32px; font-size: 17px; }
.qty-sm input { width: 30px; font-size: 14px; }
.stock-line { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 16px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); }
.dot.low { background: #e59a1a; }
.dot.out { background: var(--danger); }
.delivery-box { border: 1px solid var(--line); background: var(--blush-50); border-radius: var(--radius); padding: 16px; margin: 6px 0 20px; display: grid; gap: 10px; }
.delivery-box .row { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.delivery-box .select { min-height: 42px; background: #fff; }
.pdp-section { border-top: 1px solid var(--line); padding: 18px 0; }
.pdp-section h3 { font-family: var(--font-body); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
[dir='rtl'] .pdp-section h3 { letter-spacing: 0; }
.pdp-section p { color: var(--ink-2); white-space: pre-line; }

/* ---------- cart drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(42, 21, 32, .4); z-index: 60; opacity: 0; transition: opacity .25s; }
.drawer-backdrop.show { opacity: 1; }
.cart-drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(420px, 100vw); z-index: 61; background: #fff;
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg); transform: translateX(105%); transition: transform .28s ease; visibility: hidden;
}
[dir='rtl'] .cart-drawer { transform: translateX(-105%); }
.cart-drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 22px; margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 18px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 10px; background: var(--blush-50); }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line:last-child { border-bottom: 0; }
.line img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: var(--blush-50); }
.line-title { font-weight: 600; line-height: 1.3; color: var(--ink); }
.line-opt { font-size: 14px; color: var(--muted); }
.line-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.line-price { font-weight: 600; white-space: nowrap; }
.line-warn { font-size: 13px; color: var(--danger); margin-top: 4px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; padding: 4px 0; }
.sum-row.total { font-size: 18px; font-weight: 600; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.free-bar { font-size: 14px; color: var(--brand-ink); }
.free-bar .bar { height: 6px; border-radius: 6px; background: var(--blush-200); overflow: hidden; margin-top: 6px; }
.free-bar .bar i { display: block; height: 100%; background: var(--brand); border-radius: 6px; }

/* ---------- checkout ---------- */
.checkout { display: grid; gap: 24px; padding-bottom: 48px; }
@media (min-width: 960px) { .checkout { grid-template-columns: 1fr 400px; align-items: start; gap: 36px; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
@media (min-width: 600px) { .panel { padding: 26px; } }
.panel h2 { font-size: 21px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--blush-100); color: var(--brand); display: inline-grid; place-items: center; font-family: var(--font-body); font-size: 14px; font-weight: 600; flex: none; }
.summary { position: sticky; top: 88px; }
.pay-options { display: grid; gap: 10px; }
.pay-option { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); cursor: pointer; background: #fff; }
.pay-option:has(input:checked) { border-color: var(--brand); background: var(--blush-50); }
.pay-option input { margin-top: 4px; accent-color: var(--brand); width: 18px; height: 18px; flex: none; }
.pay-option b { display: block; }
.pay-option small { color: var(--muted); font-size: 14px; }
.pay-logos { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.pay-logos span { font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 5px; border: 1px solid var(--line); color: var(--ink-2); letter-spacing: .02em; background: #fff; }
.zone-eta { font-size: 14px; color: var(--success); margin-top: -6px; margin-bottom: 14px; display: flex; gap: 6px; align-items: center; }
.mini-lines { display: grid; gap: 10px; margin-bottom: 14px; }
.mini-line { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.mini-line img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--blush-50); }
.mini-line .q { color: var(--muted); }
.addr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

/* ---------- order page ---------- */
.order-hero { text-align: center; padding: 34px 0 8px; }
.order-hero .tick { width: 66px; height: 66px; border-radius: 50%; background: var(--success-bg); color: var(--success); display: grid; place-items: center; margin: 0 auto 14px; }
.order-hero h1 { font-family: var(--font-script); font-weight: 400; color: var(--brand); font-size: 54px; margin-bottom: 4px; }
[dir='rtl'] .order-hero h1 { font-family: var(--font-head); font-weight: 700; font-size: 38px; }
.order-grid { display: grid; gap: 18px; padding: 18px 0 48px; }
@media (min-width: 900px) { .order-grid { grid-template-columns: 1fr 380px; align-items: start; } }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; position: relative; padding-bottom: 18px; }
.timeline li::before { content: ''; position: absolute; inset-inline-start: 14px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li.done::before { background: var(--brand); }
.timeline .tl-dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; color: #fff; }
.timeline li.done .tl-dot { background: var(--brand); border-color: var(--brand); }
.timeline li.current .tl-dot { box-shadow: 0 0 0 5px rgba(176, 24, 95, .14); }
.timeline .tl-title { font-weight: 600; padding-top: 3px; }
.timeline .tl-time { font-size: 13px; color: var(--muted); }
.timeline li:not(.done) .tl-title { color: var(--muted); font-weight: 500; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--blush-100); color: var(--brand-ink); }
.status-pill.ok { background: var(--success-bg); color: var(--success); }
.status-pill.warn { background: var(--warn-bg); color: var(--warn); }
.status-pill.bad { background: var(--danger-bg); color: var(--danger); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

/* ---------- account ---------- */
.auth-wrap { max-width: 460px; margin: 30px auto 60px; }
.tabs { display: flex; gap: 4px; background: var(--blush-100); padding: 4px; border-radius: 999px; margin-bottom: 20px; }
.tabs button { flex: 1; min-height: 42px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-weight: 600; color: var(--ink-2); }
.tabs button.active { background: #fff; color: var(--brand); box-shadow: 0 1px 4px rgba(110, 15, 60, .1); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; margin: 16px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.account-grid { display: grid; gap: 18px; padding-bottom: 48px; }
@media (min-width: 900px) { .account-grid { grid-template-columns: 340px 1fr; align-items: start; } }
.order-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.order-row:last-child { border-bottom: 0; }
.order-row:hover .or-code { color: var(--brand); }
.or-code { font-weight: 600; }
.addr-item { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }

/* ---------- contact / policies ---------- */
.contact-grid { display: grid; gap: 14px; margin-bottom: 48px; }
@media (min-width: 760px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card { display: grid; gap: 6px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; color: var(--ink); }
.contact-card:hover { box-shadow: var(--shadow); color: var(--ink); }
.contact-card .f-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--blush-100); color: var(--brand); display: grid; place-items: center; margin-bottom: 6px; }
.contact-card b { font-size: 17px; }
.contact-card span { color: var(--brand); direction: ltr; unicode-bidi: isolate; }
.prose { max-width: 760px; padding-bottom: 56px; }
.prose h2 { font-size: 24px; margin-top: 28px; }
.prose p { color: var(--ink-2); }

/* ---------- footer ---------- */
.site-footer { background: linear-gradient(180deg, var(--blush-100), #fbe3ec); border-top: 1px solid var(--line); margin-top: 24px; }
.footer-grid { display: grid; gap: 28px; padding: 44px 0 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid h4 { font-family: var(--font-body); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px; }
[dir='rtl'] .footer-grid h4 { letter-spacing: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--ink-2); }
.footer-grid a:hover { color: var(--brand); }
.footer-brand img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--gold); }
.footer-bottom { border-top: 1px solid var(--blush-300); padding: 16px 0 calc(20px + env(safe-area-inset-bottom)); font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.socials { display: flex; gap: 8px; margin-top: 12px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--brand); }

/* ---------- floating whatsapp, toasts, spinner ---------- */
.wa-float {
  position: fixed; bottom: calc(18px + env(safe-area-inset-bottom)); inset-inline-end: 18px; z-index: 50; width: 56px; height: 56px; border-radius: 50%;
  background: #1fa855; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(31, 168, 85, .4);
}
.wa-float:hover { color: #fff; transform: scale(1.05); }
body.drawer-open .wa-float { display: none; }
#toasts { position: fixed; z-index: 90; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 15px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; text-align: center; }
.toast.show { opacity: 1; transform: none; }
.toast-error { background: var(--danger); }
.toast-success { background: var(--success); }
.page-loading { display: grid; place-items: center; min-height: 50vh; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--blush-200); border-top-color: var(--brand); animation: spin .8s linear infinite; display: inline-block; }
.btn .spinner { width: 18px; height: 18px; border-width: 2px; border-color: rgba(255,255,255,.4); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--blush-50), var(--blush-100), var(--blush-50)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- small helpers ---------- */
.btn svg { width: 19px; height: 19px; flex: none; }
.wa-ic { display: inline-grid; color: #1fa855; }
.btn-wa .wa-ic { color: #fff; }
.wa-ic svg { width: 20px; height: 20px; }
[dir='rtl'] .rtl-flip { display: inline-grid; transform: scaleX(-1); }
.rtl-flip { display: inline-grid; }
.section-tight { padding-top: 0; }
.section-white { background: #fff; border-top: 1px solid var(--line); }
.cat-row { margin-bottom: 14px; }
.icon-btn[aria-expanded='true'] { background: var(--blush-100); color: var(--brand); }
[hidden] { display: none !important; }
