/* ==========================================================================
   ERA CARE — «بلَش أتيليه» BLUSH ATELIER
   أنثوي · فاخر · موثوق.  الأقواس، الوردي الدافئ، والذهب الرفيع.
   1 رموز · 2 أساس · 3 تخطيط · 4 مكونات · 5 أقسام · 6 مساعدات
   ========================================================================== */

/* ————————————————————————— 1 · الرموز ————————————————————————— */
:root {
  /* اللوحة — وردي دافئ مأخوذ من الشعار */
  --blush-50:  #FFF9F7;
  --blush-100: #FDF1ED;
  --blush-200: #FBE4DE;
  --blush-300: #F7D2CA;
  --blush-400: #F3B9AF;

  --rose:      #FF8F8C;   /* مرجاني الشعار */
  --rose-600:  #F0706C;
  --rose-700:  #B8443F;   /* الأسعار والنصوص المميزة */
  --rose-900:  #7E2B28;

  --wine:      #3A2528;   /* العناوين */
  --ink:       #5A4448;   /* النص */
  --ink-mid:   #806A6D;   /* نص ثانوي */
  --ink-soft:  #A99093;

  --gold:      #C9A063;      /* للزخارف والخطوط فقط */
  --gold-ink:  #8D6825;      /* نص ذهبي بتباين آمن */
  --gold-soft: #EBD7B4;

  --white:     #FFFFFF;
  --cream:     #FFFDFB;
  --line:      #F2DED8;
  --line-soft: #F8ECE8;

  --ok:   #3E7A55;
  --err:  #C0392B;
  --wa:   #0F7C43;

  /* الخطوط */
  --display: 'Lemonada', 'Segoe UI', sans-serif;
  --body:    'Almarai', 'IBM Plex Sans Arabic', 'Segoe UI', sans-serif;
  --latin:   'Bodoni Moda', 'Times New Roman', serif;
  --script:  'Cormorant Garamond', 'Georgia', serif;

  --fs-hero:  clamp(2rem, 1.25rem + 3.4vw, 4.4rem);
  --fs-h1:    clamp(1.85rem, 1.4rem + 2vw, 3rem);
  --fs-h2:    clamp(1.5rem, 1.25rem + 1.3vw, 2.35rem);
  --fs-h3:    clamp(1.15rem, 1.05rem + .5vw, 1.45rem);
  --fs-lg:    1.06rem;
  --fs-md:    .96rem;
  --fs-sm:    .86rem;
  --fs-xs:    .76rem;
  --fs-xxs:   .68rem;

  /* المسافات */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px;
  --s8: 32px; --s10: 40px; --s12: 48px; --s14: 56px; --s16: 64px; --s20: 80px; --s24: 96px;

  /* الاستدارات */
  --r-xs: 10px; --r-sm: 14px; --r-md: 20px; --r-lg: 28px; --r-xl: 40px; --r-pill: 999px;
  --arch: 999px 999px var(--r-md) var(--r-md);

  /* الظلال — وردية ناعمة */
  --sh-1: 0 2px 8px rgba(184,116,110,.07);
  --sh-2: 0 10px 28px rgba(184,116,110,.13);
  --sh-3: 0 22px 56px rgba(184,116,110,.20);
  --sh-in: inset 0 0 0 1px rgba(255,255,255,.6);

  --ease: cubic-bezier(.22,.72,.28,1);
  --t1: 180ms var(--ease);
  --t2: 320ms var(--ease);
  --t3: 620ms var(--ease);

  --wrap: 1280px;
  --pad: clamp(16px, 4vw, 44px);
  --head: 74px;
}

/* ————————————————————————— 2 · الأساس ————————————————————————— */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--blush-50);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--fs-md);
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--wine);
  font-weight: 600;
  line-height: 1.45;
  margin: 0 0 var(--s3);
  letter-spacing: -.005em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-lg); }
p { margin: 0 0 var(--s4); max-width: 66ch; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--rose-600); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--blush-300); color: var(--wine); }

.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 10px; z-index: 999;
  background: var(--wine); color: #fff; padding: 10px 20px; border-radius: var(--r-pill);
}
.skip-link:focus { inset-inline-start: 16px; }

/* ————————————————————————— 3 · التخطيط ————————————————————————— */
.wrap { width: min(var(--wrap), 100% - var(--pad) * 2); margin-inline: auto; }
.band { padding-block: clamp(48px, 6.5vw, 108px); }
.band--tight { padding-block: clamp(28px, 3.5vw, 56px); }
.band--blush { background: var(--blush-100); }

.grid { display: grid; gap: var(--s5); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .g4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px)  { .g4, .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .g3, .g4 { grid-template-columns: repeat(2, 1fr); gap: var(--s3); } .g2 { grid-template-columns: 1fr; } }

/* عنوان قسم */
.head { text-align: center; margin-bottom: var(--s10); }
.head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s6); text-align: start; flex-wrap: wrap; }
.head h2 { margin: 0 0 6px; }
.head p { margin: 0 auto; color: var(--ink-mid); font-size: var(--fs-sm); max-width: 52ch; }
.head--split p { margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--latin); font-style: italic; font-size: var(--fs-sm);
  letter-spacing: .12em; color: var(--rose-700); margin-bottom: 10px;
}
.eyebrow::before, .eyebrow::after { content: ''; width: 22px; height: 1px; background: var(--gold); }
.head--split .eyebrow::after, .eyebrow--start::after { display: none; }

/* ————————————————————————— 4 · المكونات ————————————————————————— */

/* 4.1 أزرار */
.btn {
  --bg: var(--wine); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 13px 30px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  border-radius: var(--r-pill); cursor: pointer;
  font-family: var(--body); font-size: var(--fs-sm); font-weight: 700;
  white-space: nowrap; text-align: center;
  box-shadow: var(--sh-1);
  transition: transform var(--t1), box-shadow var(--t1), background var(--t1), color var(--t1), border-color var(--t1);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn--rose { --bg: var(--rose); --fg: var(--wine); }
.btn--rose:hover { --bg: var(--rose-600); --fg: #fff; }
.btn--line { --bg: transparent; --fg: var(--wine); --bd: var(--blush-300); box-shadow: none; }
.btn--line:hover { --bg: var(--white); --bd: var(--rose); }
.btn--soft { --bg: var(--blush-200); --fg: var(--wine); box-shadow: none; }
.btn--soft:hover { --bg: var(--blush-300); }
.btn--wa { --bg: var(--wa); --fg: #fff; }
.btn--wa:hover { --bg: #0A5E32; }
.btn--sm { min-height: 40px; padding: 9px 20px; font-size: var(--fs-xs); }
.btn--lg { min-height: 58px; padding: 17px 38px; font-size: var(--fs-md); }
.btn--block { width: 100%; }

.link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: var(--fs-sm); font-weight: 700; color: var(--wine);
  padding-bottom: 3px; border-bottom: 1px solid var(--gold-soft);
  transition: gap var(--t1), color var(--t1), border-color var(--t1);
}
.link:hover { gap: 12px; color: var(--rose-700); border-color: var(--rose); }

/* 4.2 شرائح */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 8px 18px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-pill); color: var(--ink-mid);
  font-size: var(--fs-sm); cursor: pointer; transition: all var(--t1);
}
.chip:hover { border-color: var(--rose); color: var(--wine); box-shadow: var(--sh-1); }
.chip[aria-pressed="true"], .chip.is-active {
  background: var(--wine); border-color: var(--wine); color: #fff;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  display: inline-block; padding: 5px 13px; border-radius: var(--r-pill);
  background: var(--blush-200); color: var(--rose-700);
  font-size: var(--fs-xxs); font-weight: 700; letter-spacing: .02em;
}
.tag--gold { background: var(--gold-soft); color: #7A5A20; }

/* 4.3 بطاقة المنتج */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--r-lg);
  box-shadow: var(--sh-1); overflow: hidden;
  transition: transform var(--t2), box-shadow var(--t2);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-2); }
.card__top { position: relative; }
.card__media {
  position: relative; display: block; margin: 10px 10px 0;
  aspect-ratio: 1 / 1.04; background: var(--blush-100);
  border-radius: var(--arch); overflow: hidden;
}
.card__media img {
  width: 100%; height: 100%; object-fit: contain; padding: 11% 12% 8%;
  transition: transform var(--t3);
}
.card:hover .card__media img { transform: scale(1.06); }
.card__badge {
  position: absolute; inset-block-start: 12px; inset-inline-start: 12px; z-index: 2;
  background: var(--rose); color: var(--wine);
  font-size: var(--fs-xxs); font-weight: 700; padding: 5px 12px; border-radius: var(--r-pill);
  box-shadow: var(--sh-1);
}
.card__fav {
  position: absolute; inset-block-start: 12px; inset-inline-end: 12px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.92); border: 0; color: var(--ink-mid);
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--sh-1);
  transition: all var(--t1);
}
.card__fav:hover { color: var(--rose-600); transform: scale(1.08); }
.card__fav.is-on { color: var(--rose-600); }
.card__fav svg { width: 17px; height: 17px; }
.card__peek {
  position: absolute; inset-block-end: 12px; inset-inline: 22px; z-index: 2;
  background: rgba(255,255,255,.94); color: var(--wine); border: 0;
  border-radius: var(--r-pill); padding: 9px; font-size: var(--fs-xs); font-weight: 700;
  cursor: pointer; opacity: 0; transform: translateY(8px); transition: all var(--t2);
  box-shadow: var(--sh-1);
}
.card:hover .card__peek, .card:focus-within .card__peek { opacity: 1; transform: none; }
@media (hover: none) { .card__peek { display: none; } }

.card__body { padding: var(--s5) var(--s5) var(--s5); display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card__kicker { font-family: var(--latin); font-style: italic; font-size: var(--fs-xs); color: var(--gold-ink); letter-spacing: .04em; }
.card__name { font-family: var(--display); font-size: var(--fs-lg); font-weight: 600; color: var(--wine); margin: 0; line-height: 1.5; }
.card__note {
  font-size: var(--fs-sm); color: var(--ink-mid); margin: 0; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__actives { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.card__active {
  font-size: var(--fs-xxs); color: var(--rose-700); background: var(--blush-100);
  border-radius: var(--r-pill); padding: 3px 9px; font-weight: 700;
}
.card__foot { margin-top: auto; padding-top: var(--s4); display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.price { font-family: var(--display); font-size: 1.16rem; font-weight: 600; color: var(--rose-700); white-space: nowrap; }
.price small { display: block; font-family: var(--body); font-size: var(--fs-xxs); color: var(--ink-soft); font-weight: 400; }
.price--quote { font-size: var(--fs-sm); }
.card__add {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 9px 18px; border: 0; border-radius: var(--r-pill);
  background: var(--blush-200); color: var(--wine);
  font-family: var(--body); font-size: var(--fs-xs); font-weight: 700; cursor: pointer;
  transition: all var(--t1);
}
.card__add:hover { background: var(--rose); color: var(--wine); box-shadow: var(--sh-1); }
.card__add svg { width: 15px; height: 15px; }

/* 4.4 الرأس */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,249,247,.92); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line-soft);
}
.header__bar { display: flex; align-items: center; gap: var(--s5); height: var(--head); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__txt em {
  font-style: normal; font-family: var(--latin); font-size: 1.22rem; font-weight: 500;
  letter-spacing: .26em; color: var(--wine);
}
.brand__txt b {
  font-family: var(--latin); font-size: .56rem; font-weight: 400;
  letter-spacing: .46em; color: var(--rose-700); margin-top: 5px;
}
.brand--light .brand__txt em { color: #fff; }
.brand--light .brand__txt b { color: var(--rose); }

.nav { display: flex; gap: clamp(6px, 1.1vw, 16px); margin-inline-start: clamp(12px, 2.4vw, 30px); }
.nav a {
  position: relative; padding: 8px 10px; border-radius: var(--r-pill);
  font-size: var(--fs-sm); color: var(--ink); white-space: nowrap;
  transition: color var(--t1), background var(--t1);
}
.nav a:hover { color: var(--wine); background: var(--blush-100); }
.nav a[aria-current="page"] { color: var(--rose-700); font-weight: 700; background: var(--blush-100); }

.header__tools { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: transparent; color: var(--ink); cursor: pointer;
  transition: background var(--t1), color var(--t1);
}
.icon-btn:hover { background: var(--blush-200); color: var(--wine); }
.icon-btn.is-on { color: var(--rose-600); }
.icon-btn svg { width: 19px; height: 19px; }
.count-dot {
  position: absolute; inset-block-start: 5px; inset-inline-end: 4px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill);
  background: var(--rose-600); color: #fff; font-size: .62rem; font-weight: 700;
  display: grid; place-items: center; box-shadow: 0 0 0 2px var(--blush-50);
}
.burger { display: none; }
@media (max-width: 1080px) { .nav { display: none; } .burger { display: inline-grid; } }

.announce {
  background: var(--wine); color: var(--blush-200);
  font-size: var(--fs-xs); text-align: center; padding: 8px 16px;
}
.announce b { color: var(--rose); }

/* قائمة الجوال */
.mobile-nav {
  position: fixed; inset: 0; z-index: 80; background: var(--blush-50);
  padding: var(--s5) var(--pad); display: none; flex-direction: column; overflow-y: auto;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  font-family: var(--display); font-size: 1.4rem; font-weight: 600; color: var(--wine);
  padding: var(--s4) 0; border-bottom: 1px solid var(--line-soft);
}

/* 4.5 الأدراج */
.scrim { position: fixed; inset: 0; background: rgba(58,37,40,.44); z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity var(--t2); backdrop-filter: blur(3px); }
.scrim.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  visibility: hidden;
  position: fixed; inset-block: 0; inset-inline-end: 0; z-index: 100;
  width: min(430px, 100%); background: var(--blush-50);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform var(--t2);
  box-shadow: var(--sh-3);
}
[dir="rtl"] .drawer { transform: translateX(-100%); }
.drawer.is-open { transform: none !important; visibility: visible; }
.drawer__head { display: flex; align-items: center; justify-content: space-between;
  padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); min-height: var(--head); }
.drawer__head h3 { margin: 0; }
.drawer__body { flex: 1; overflow-y: auto; padding: 0 var(--s5); }
.drawer__foot { padding: var(--s5); border-top: 1px solid var(--line); background: var(--white); }

.line { display: grid; grid-template-columns: 70px 1fr auto; gap: var(--s4);
  padding: var(--s4) 0; border-bottom: 1px solid var(--line-soft); }
.line img { width: 70px; height: 82px; object-fit: contain; background: var(--blush-100); border-radius: var(--r-sm); padding: 6px; }
.line h4 { font-size: var(--fs-md); margin: 0 0 2px; }
.line .meta { font-size: var(--fs-xxs); color: var(--ink-soft); }
.line .rm { background: none; border: 0; color: var(--ink-soft); font-size: var(--fs-xxs);
  cursor: pointer; padding: 0; border-bottom: 1px solid var(--line); }
.line .rm:hover { color: var(--err); }

.stepper { display: inline-flex; align-items: center; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-pill); overflow: hidden; }
.stepper button { width: 32px; height: 32px; border: 0; background: transparent; cursor: pointer; color: var(--ink); }
.stepper button:hover { background: var(--blush-200); }
.stepper span { min-width: 28px; text-align: center; font-weight: 700; font-size: var(--fs-sm); }

.gauge { height: 6px; border-radius: var(--r-pill); background: var(--blush-200); overflow: hidden; margin: 8px 0 var(--s4); }
.gauge i { display: block; height: 100%; border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--rose), var(--gold)); transition: width var(--t3); }

/* 4.6 الحقول */
.fld { display: block; margin-bottom: var(--s4); }
.fld > span { display: block; font-size: var(--fs-sm); font-weight: 700; color: var(--wine); margin-bottom: 7px; }
.input, .select, .textarea {
  width: 100%; padding: 13px 17px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--wine);
  transition: border-color var(--t1), box-shadow var(--t1);
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--blush-400); }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--rose); box-shadow: 0 0 0 4px var(--blush-200); }
.input[aria-invalid="true"] { border-color: var(--err); }
.textarea { min-height: 104px; resize: vertical; }
.hint { font-size: var(--fs-xs); color: var(--ink-soft); margin-top: 6px; }
.err-txt { font-size: var(--fs-xs); color: var(--err); margin-top: 6px; display: none; }
.fld.has-error .err-txt { display: block; }

/* 4.7 تبويبات وقوائم */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: var(--s6); }
.tab {
  padding: 10px 20px; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--white); cursor: pointer; color: var(--ink-mid);
  font-family: var(--body); font-size: var(--fs-sm); font-weight: 700; transition: all var(--t1);
}
.tab:hover { border-color: var(--rose); color: var(--wine); }
.tab[aria-selected="true"] { background: var(--wine); border-color: var(--wine); color: #fff; }
.tab-panel[hidden] { display: none; }

.ticks { display: grid; gap: var(--s3); }
.ticks li { position: relative; padding-inline-start: 30px; color: var(--ink); line-height: 1.9; font-size: var(--fs-md); }
.ticks li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 11px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--blush-200); box-shadow: inset 0 0 0 3px var(--white), 0 0 0 1px var(--rose);
}
.ticks--warn li::before { background: #FBE3E0; box-shadow: inset 0 0 0 3px var(--white), 0 0 0 1px var(--err); }
.ticks b { color: var(--wine); }

/* روتين مرقّم */
.steps { display: grid; gap: var(--s3); counter-reset: s; }
.steps li {
  position: relative; background: var(--white); border-radius: var(--r-md);
  padding: var(--s5) var(--s6); padding-inline-start: 68px;
  color: var(--ink); line-height: 1.85; box-shadow: var(--sh-1); font-size: var(--fs-md);
}
.steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; inset-inline-start: 20px; top: 18px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--blush-200); color: var(--rose-700);
  display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: var(--fs-sm);
}

/* 4.8 تنبيه */
.toast-host { position: fixed; inset-block-end: 22px; inset-inline-start: 22px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--wine); color: #fff; padding: 13px 22px; border-radius: var(--r-pill);
  box-shadow: var(--sh-3); font-size: var(--fs-sm); display: flex; align-items: center; gap: 9px;
  animation: pop var(--t2) both;
}
.toast b { color: var(--rose); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* ————————————————————————— 5 · الأقسام ————————————————————————— */

/* 5.1 الهيرو */
.hero { position: relative; overflow: hidden; background: var(--blush-100); }
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none; filter: blur(10px);
}
.hero::before {
  width: 46vw; height: 46vw; max-width: 620px; max-height: 620px;
  inset-block-start: -14%; inset-inline-end: -8%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.95), rgba(255,143,140,.22) 55%, rgba(255,143,140,0) 72%);
}
.hero::after {
  width: 34vw; height: 34vw; max-width: 460px; max-height: 460px;
  inset-block-end: -16%; inset-inline-start: -6%;
  background: radial-gradient(circle at 60% 40%, rgba(235,215,180,.5), rgba(235,215,180,0) 70%);
}
.hero__in {
  position: relative; z-index: 1; display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
  padding-block: clamp(36px, 5.5vw, 92px);
}
.hero h1 { font-size: var(--fs-hero); line-height: 1.3; margin-bottom: var(--s4); }
.hero h1 em { font-style: normal; color: var(--rose-700); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ''; position: absolute; inset-inline: -2px; bottom: 6px; height: 10px; z-index: -1;
  background: var(--blush-300); border-radius: var(--r-pill);
}
.hero__lede { font-size: var(--fs-lg); color: var(--ink); max-width: 42ch; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: var(--s6); }
.hero__pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: var(--s6); }
.hero__pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.72); border: 1px solid var(--white);
  border-radius: var(--r-pill); padding: 7px 15px; font-size: var(--fs-xs); color: var(--wine);
  box-shadow: var(--sh-1);
}
.hero__pill svg { width: 15px; height: 15px; color: var(--rose-600); }

.hero__art { position: relative; display: grid; place-items: center; }
.hero__frame {
  position: relative; width: min(100%, 420px); aspect-ratio: 1/1.2;
  background: linear-gradient(170deg, var(--white), var(--blush-200));
  border-radius: 999px 999px var(--r-xl) var(--r-xl);
  box-shadow: var(--sh-3); display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero__frame::after {
  content: ''; position: absolute; inset: 12px;
  border: 1px solid rgba(201,160,99,.42); border-radius: 999px 999px var(--r-lg) var(--r-lg);
  pointer-events: none;
}
.hero__frame img { max-width: 74%; max-height: 80%; width: auto; height: auto; object-fit: contain; }
.hero__chip {
  position: absolute; background: var(--white); border-radius: var(--r-md);
  box-shadow: var(--sh-2); padding: 11px 15px; display: flex; align-items: center; gap: 10px;
}
.hero__chip img { width: 42px; height: 50px; object-fit: contain; background: var(--blush-100); border-radius: var(--r-xs); padding: 3px; }
.hero__chip b { display: block; font-family: var(--display); font-size: var(--fs-sm); color: var(--wine); }
.hero__chip span { font-size: var(--fs-xxs); color: var(--ink-mid); }
.hero__chip--a { inset-block-end: 6%; inset-inline-start: -4%; }
.hero__chip--b { inset-block-start: 8%; inset-inline-end: -6%; padding: 9px 16px; }
.hero__chip--b b { color: var(--rose-700); }
@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; padding-block: var(--s6) var(--s10); }
  .hero__art { order: -1; margin-bottom: var(--s6); }
  .hero__frame { width: min(100%, 290px); }
  .hero__chip { padding: 8px 12px; }
  .hero__chip img { width: 34px; height: 42px; }
  .hero__chip--a { inset-block-end: -18px; inset-inline-start: 0; }
  .hero__chip--b { display: none; }
  .hero h1 { line-height: 1.35; }
}

/* 5.2 شريط الثقة */
.trust { background: var(--white); border-block: 1px solid var(--line-soft); }
.trust__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); padding-block: var(--s6); }
.trust__i { display: flex; align-items: center; gap: 13px; justify-content: center; text-align: start; }
.trust__i span:first-child {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 50%; background: var(--blush-100); color: var(--rose-600);
}
.trust__i svg { width: 20px; height: 20px; }
.trust__i b { display: block; font-family: var(--display); font-size: var(--fs-sm); color: var(--wine); font-weight: 600; }
.trust__i em { font-style: normal; font-size: var(--fs-xxs); color: var(--ink-mid); }
@media (max-width: 900px) { .trust__in { grid-template-columns: repeat(2, 1fr); } }

/* 5.3 بطاقة القسم */
.cat {
  position: relative; display: block; background: var(--white);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1);
  transition: transform var(--t2), box-shadow var(--t2);
}
.cat:hover { transform: translateY(-6px); box-shadow: var(--sh-2); }
.cat__img { position: relative; aspect-ratio: 1/.86; background: var(--blush-100); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cat__img img { max-width: 62%; max-height: 78%; width: auto; height: auto; object-fit: contain; transition: transform var(--t3); }
.cat:hover .cat__img img { transform: scale(1.07) translateY(-4px); }
.cat__n { position: absolute; inset-block-start: 14px; inset-inline-end: 14px;
  background: rgba(255,255,255,.86); border-radius: var(--r-pill); padding: 4px 12px;
  font-size: var(--fs-xxs); color: var(--rose-700); font-weight: 700; }
.cat__b { padding: var(--s5); text-align: center; }
.cat__b h3 { margin: 0 0 4px; }
.cat__b p { margin: 0; font-size: var(--fs-xs); color: var(--ink-mid); }
.cat__b .link { margin-top: 10px; }

/* 5.4 شريط المكونات */
.ing { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: var(--s4); }
.ing__i {
  background: var(--white); border-radius: var(--r-md); padding: var(--s5) var(--s4);
  text-align: center; box-shadow: var(--sh-1); transition: all var(--t2);
}
.ing__i:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.ing__pct {
  display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--blush-100); color: var(--rose-700);
  font-family: var(--display); font-weight: 600; font-size: .96rem; margin-bottom: 10px; letter-spacing: -.01em;
}
.ing__i b { display: block; font-family: var(--display); font-size: var(--fs-md); color: var(--wine); font-weight: 600; }
.ing__i span { font-size: var(--fs-xxs); color: var(--ink-mid); }

/* 5.5 المتجر */
.shop { display: grid; grid-template-columns: 244px minmax(0, 1fr); gap: var(--s10); align-items: start; }
@media (max-width: 980px) { .shop { grid-template-columns: 1fr; gap: var(--s5); } }
.filters { position: sticky; top: calc(var(--head) + 14px); display: grid; gap: var(--s6);
  background: var(--white); border-radius: var(--r-lg); padding: var(--s5); box-shadow: var(--sh-1); }
.filters h4 { font-size: var(--fs-sm); color: var(--wine); margin: 0 0 10px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  flex-wrap: wrap; margin-bottom: var(--s5); }
.toolbar .count { font-size: var(--fs-sm); color: var(--ink-mid); }
.f-toggle { display: none; }
@media (max-width: 980px) { .f-toggle { display: inline-flex; } .filters.is-collapsed { display: none; } }
.range { width: 100%; accent-color: var(--rose-600); }

/* 5.6 صفحة المنتج */
.pdp { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 68px); align-items: start; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; } }
.pdp__stage {
  position: relative; background: linear-gradient(170deg, var(--white), var(--blush-100));
  border-radius: 999px 999px var(--r-lg) var(--r-lg); box-shadow: var(--sh-1);
  display: flex; align-items: center; justify-content: center; overflow: hidden; aspect-ratio: 1/1.1; max-height: 600px;
}
.pdp__stage img {
  max-width: 76%; max-height: 82%; width: auto; height: auto; object-fit: contain;
  transform-origin: center; will-change: transform;
  transition: transform 300ms var(--ease);
}
/* التكبير مع تتبّع المؤشر */
.pdp__stage { cursor: zoom-in; touch-action: pan-y; }
.pdp__stage.is-zoom { cursor: zoom-out; }
.pdp__stage.is-zoom img { transition: transform 70ms linear; }
.pdp__stage.is-zoom { touch-action: none; }
.zoom-hint {
  position: absolute; inset-block-end: 14px; inset-inline-start: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px; pointer-events: none;
  background: rgba(255,255,255,.9); backdrop-filter: blur(6px);
  border-radius: var(--r-pill); padding: 7px 14px;
  font-size: var(--fs-xxs); font-weight: 700; color: var(--wine);
  box-shadow: var(--sh-1); transition: opacity var(--t1), transform var(--t1);
}
.zoom-hint svg { width: 15px; height: 15px; color: var(--rose-600); }
.pdp__stage.is-zoom .zoom-hint { opacity: 0; transform: translateY(6px); }
.zoom-hint__m { display: none; }
@media (hover: none) {
  .zoom-hint__d { display: none; }
  .zoom-hint__m { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .pdp__stage img, .pdp__stage.is-zoom img { transition: none; }
}
.pdp__stage img.is-doc { max-width: 100%; max-height: 100%; width: 100%; height: auto; object-fit: contain; }
.pdp__stage.is-doc-mode { border-radius: var(--r-lg); aspect-ratio: 16/9; background: var(--white); }
.thumbs { display: flex; gap: 10px; margin-top: 12px; justify-content: center; }
.thumbs button { width: 74px; aspect-ratio: 1/1.1; border-radius: var(--r-sm); overflow: hidden;
  border: 1px solid var(--line); background: var(--blush-100); cursor: pointer; padding: 5px; }
.thumbs button[aria-current="true"] { border-color: var(--rose); box-shadow: 0 0 0 3px var(--blush-200); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }

.pdp__price { display: flex; align-items: baseline; gap: var(--s4); flex-wrap: wrap; margin-block: var(--s5); }
.pdp__price .price { font-size: 2rem; }
.buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: var(--s5); }
.assure { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.assure div { background: var(--white); border-radius: var(--r-md); padding: var(--s4);
  text-align: center; font-size: var(--fs-xxs); color: var(--ink-mid); box-shadow: var(--sh-1); }
.assure b { display: block; font-family: var(--display); color: var(--wine); font-size: var(--fs-sm); margin-bottom: 3px; }

/* 5.7 الاختبار */
.quiz { background: var(--white); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 56px); box-shadow: var(--sh-2); }
.quiz__bar { display: flex; gap: 6px; margin-bottom: var(--s6); }
.quiz__bar i { flex: 1; height: 5px; border-radius: var(--r-pill); background: var(--blush-200); }
.quiz__bar i.on { background: var(--rose); }
.quiz__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--s3); margin-top: var(--s6); }
.opt { text-align: start; padding: var(--s5); border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--blush-50); cursor: pointer; transition: all var(--t1); }
.opt:hover { border-color: var(--rose); background: var(--white); transform: translateY(-3px); box-shadow: var(--sh-2); }
.opt b { display: block; font-family: var(--display); font-size: var(--fs-lg); color: var(--wine); margin-bottom: 4px; }
.opt span { font-size: var(--fs-xs); color: var(--ink-mid); }

/* 5.8 الذيل */
.footer { background: var(--wine); color: var(--blush-200); padding-block: var(--s16) var(--s6); margin-top: var(--s20); }
.footer a { color: var(--blush-200); font-size: var(--fs-sm); line-height: 2.2; transition: color var(--t1); }
.footer a:hover { color: var(--rose); }
.footer h4 { color: #fff; font-size: var(--fs-md); margin-bottom: var(--s3); }
.footer p { color: rgba(253,241,237,.72); font-size: var(--fs-sm); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.35fr; gap: var(--s8); }
@media (max-width: 880px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__bar { margin-top: var(--s12); padding-top: var(--s5); border-top: 1px solid rgba(253,241,237,.16);
  display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; font-size: var(--fs-xs); color: rgba(253,241,237,.6); }
.social { display: flex; gap: 8px; margin-top: var(--s4); }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(253,241,237,.24); }
.social a:hover { background: var(--rose); border-color: var(--rose); color: var(--wine); }
.social svg { width: 17px; height: 17px; }
.news { display: flex; gap: 8px; margin-top: var(--s3); }
.news .input { background: rgba(255,255,255,.08); border-color: rgba(253,241,237,.22); color: #fff; }
.news .input::placeholder { color: rgba(253,241,237,.5); }
.news .btn { --bg: var(--rose); --fg: var(--wine); }

/* 5.9 البحث ونظرة سريعة */
.search-overlay {
  position: fixed; inset: 0; z-index: 120; background: rgba(255,249,247,.97);
  backdrop-filter: blur(12px); padding-block: clamp(40px, 8vh, 96px); overflow-y: auto;
}
.search-overlay .input { font-size: var(--fs-h3); padding: 18px 24px; border-radius: var(--r-pill); }

.quick-box {
  visibility: hidden; position: fixed; z-index: 130;
  inset-block-start: 50%; inset-inline-start: 50%; transform: translate(50%, -50%) scale(.97);
  width: min(880px, calc(100% - 24px)); max-height: 88vh; overflow-y: auto;
  background: var(--white); border-radius: var(--r-xl); box-shadow: var(--sh-3);
  padding: clamp(20px, 3vw, 40px); opacity: 0; pointer-events: none;
  transition: opacity var(--t2), transform var(--t2);
}
[dir="ltr"] .quick-box { transform: translate(-50%, -50%) scale(.97); }
.quick-box.is-open { visibility: visible; opacity: 1; pointer-events: auto; transform: translate(50%, -50%) scale(1); }
[dir="ltr"] .quick-box.is-open { transform: translate(-50%, -50%) scale(1); }
.quick-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: var(--s8); align-items: start; }
.quick-grid > img { width: 100%; aspect-ratio: 1/1.06; object-fit: contain; background: var(--blush-100);
  border-radius: var(--arch); padding: 10%; }
.quick-close { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; }
@media (max-width: 700px) { .quick-grid { grid-template-columns: 1fr; } .quick-grid > img { max-width: 220px; margin-inline: auto; } }

/* ————————————————————————— 6 · مساعدات ————————————————————————— */
.note { font-size: var(--fs-md); color: var(--ink-mid); }
.micro { font-size: var(--fs-xs); color: var(--ink-soft); }
.center { text-align: center; }
.mt2 { margin-top: var(--s2); } .mt3 { margin-top: var(--s3); } .mt4 { margin-top: var(--s4); }
.mt5 { margin-top: var(--s5); } .mt6 { margin-top: var(--s6); } .mt8 { margin-top: var(--s8); }
.mb0 { margin-bottom: 0; } .mb3 { margin-bottom: var(--s3); } .mb5 { margin-bottom: var(--s5); }
.row { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.panel { background: var(--white); border-radius: var(--r-lg); padding: clamp(18px, 2.6vw, 32px); box-shadow: var(--sh-1); }
.panel--blush { background: var(--blush-100); box-shadow: none; }
.panel--wine { background: var(--wine); color: var(--blush-200); }
.panel--wine h2, .panel--wine h3 { color: #fff; }
.empty { text-align: center; padding: var(--s16) var(--s5); }
.empty h3 { color: var(--wine); }
[hidden] { display: none !important; }

.rise { opacity: 0; transform: translateY(16px); transition: opacity var(--t3), transform var(--t3); }
.rise.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rise { opacity: 1; transform: none; } }

@media print { .header, .footer, .drawer, .scrim, .card__peek { display: none !important; } }


/* ————————————————————————— 7 · ضبط الموبايل ————————————————————————— */
@media (max-width: 620px) {
  /* إيقاع عام أهدأ */
  .band { padding-block: 40px; }
  .band--tight { padding-block: 24px; }
  .head { margin-bottom: var(--s6); }
  .head--split { flex-direction: column; align-items: flex-start; gap: var(--s3); }
  .panel { padding: 18px 16px; }
  .grid { gap: 10px; }

  /* أي صف "متباعد" يصير عموداً مرتباً بدل التشتت */
  .row.between { justify-content: flex-start; gap: var(--s4); }
  .row.between > * { flex: 1 1 100%; }
  .panel .row.between .btn { width: 100%; }

  /* بطاقة المنتج: حشو أقل ونص أصغر والسعر فوق الزر */
  .card__media { margin: 8px 8px 0; }
  .card__body { padding: 14px 12px 16px; gap: 3px; }
  .card__kicker { font-size: .66rem; }
  .card__name { font-size: .93rem; line-height: 1.45; }
  .card__note { font-size: .75rem; line-height: 1.6; }
  .card__actives { gap: 4px; margin-top: 2px; }
  .card__active { font-size: .6rem; padding: 2px 7px; }
  .card__foot { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 12px; }
  .card__add { width: 100%; justify-content: center; min-height: 38px; }
  .price { font-size: 1.02rem; }
  .price small { font-size: .62rem; }
  .card__fav { width: 34px; height: 34px; inset-block-start: 10px; inset-inline-end: 10px; }
  .card__fav svg { width: 15px; height: 15px; }
  .card__badge { font-size: .6rem; padding: 4px 9px; inset-block-start: 10px; inset-inline-start: 10px; }

  /* شريط الثقة: أيقونات أصغر ونص متنفس */
  .trust__in { gap: 12px; padding-block: 20px; }
  .trust__i { gap: 10px; }
  .trust__i span:first-child { width: 38px; height: 38px; }
  .trust__i svg { width: 17px; height: 17px; }
  .trust__i b { font-size: .78rem; line-height: 1.5; }
  .trust__i em { font-size: .64rem; line-height: 1.45; }

  /* بطاقات الأقسام */
  .cat__b { padding: 14px 12px 16px; }
  .cat__b h3 { font-size: 1rem; }
  .cat__b p { font-size: .68rem; }
  .cat__n { font-size: .6rem; padding: 3px 9px; inset-block-start: 10px; inset-inline-end: 10px; }

  /* المكوّنات الفعّالة */
  .ing { gap: 10px; grid-template-columns: repeat(2, 1fr); }
  .ing__i { padding: 16px 10px; }
  .ing__pct { width: 50px; height: 50px; font-size: .84rem; margin-bottom: 8px; }
  .ing__i b { font-size: .86rem; }
  .ing__i span { font-size: .62rem; }

  /* الضمانات وخطوات الروتين */
  .assure { gap: 8px; }
  .assure div { padding: 12px 6px; font-size: .62rem; }
  .assure b { font-size: .74rem; }
  .steps li { padding: 16px 16px; padding-inline-start: 56px; font-size: .88rem; }
  .steps li::before { inset-inline-start: 14px; top: 14px; width: 28px; height: 28px; font-size: .78rem; }
  .ticks li { padding-inline-start: 26px; font-size: .88rem; }

  /* صفحة المنتج */
  .pdp { gap: var(--s6); }
  .pdp__price { margin-block: var(--s4); gap: var(--s3); }
  .pdp__price .price { font-size: 1.6rem; }
  .buy { gap: 10px; margin-bottom: var(--s4); }
  .buy .btn--lg { flex: 1; min-height: 52px; padding-inline: 20px; }
  .thumbs button { width: 62px; }
  .tabs { gap: 5px; }
  .tab { padding: 8px 14px; font-size: .78rem; }

  /* الاختبار */
  .quiz { padding: 20px 16px; border-radius: var(--r-lg); }
  .quiz__opts { gap: 10px; grid-template-columns: 1fr; }
  .opt { padding: 14px 16px; }
  .opt b { font-size: .98rem; }

  /* السلة والدرج */
  .drawer__body, .drawer__head, .drawer__foot { padding-inline: var(--s4); }
  .line { grid-template-columns: 58px 1fr auto; gap: 10px; }
  .line img { width: 58px; height: 68px; }
  .line h4 { font-size: .86rem; }

  /* الذيل */
  .footer { padding-block: var(--s12) var(--s5); margin-top: var(--s12); }
  .footer__grid { gap: var(--s6); }
  .footer__bar { margin-top: var(--s6); gap: 6px; }
  .news { flex-direction: column; }
  .news .btn { width: 100%; }
}

/* شاشات ضيقة جداً */
@media (max-width: 380px) {
  .g3, .g4 { gap: 8px; }
  .card__body { padding: 12px 10px 14px; }
  .card__name { font-size: .88rem; }
  .trust__in { grid-template-columns: 1fr; }
  .assure { grid-template-columns: 1fr 1fr; }
  .assure div:last-child { grid-column: 1 / -1; }
}
