/* =========================================================
   ميلاتونين Melatonin — التصميم
   مستوحى من ثيم Sleek (FoxEcom) بهوية ميلاتونين
   ========================================================= */
:root {
  --navy: #0B3F80;
  --navy-700: #0E305E;
  --navy-900: #0A2145;
  --sky: #86A8BF;
  --sky-600: #5F88A6;
  --sky-200: #C9DBE6;
  --sky-100: #E3EDF4;
  --sky-50: #F2F7FA;
  --cream: #F8F5EF;
  --gold: #C9A24E;
  --ink: #0F1B2D;
  --text: #2A3A50;
  --muted: #64768C;
  --line: #E3E9F0;
  --bg: #FFFFFF;
  --danger: #C0392B;
  --success: #1F8A5B;

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px -4px rgba(14, 48, 94, .14);
  --shadow: 0 18px 40px -22px rgba(14, 48, 94, .35);
  --shadow-lg: 0 30px 70px -30px rgba(10, 33, 69, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font-head: 'Alexandria', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'Alexandria', system-ui, sans-serif;
  --container: 1360px;
  --header-h: 78px;
}

/* ---------- أساسيات ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.75;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.35; margin: 0; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
small { font-size: .82em; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(16px, 3.6vw, 40px); }
.icon { width: 22px; height: 22px; flex: none; }

/* ---------- أزرار ---------- */
.btn {
  --b: var(--navy); --c: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  background: var(--b); color: var(--c); border: 1.5px solid var(--b);
  font-family: var(--font-head); font-weight: 500; font-size: 15px; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy-900);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.btn:hover::before { transform: scaleX(1); transform-origin: right; }
.btn:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.btn .icon { width: 19px; height: 19px; }
.btn--lg { min-height: 56px; padding: 0 32px; font-size: 16px; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--outline { --b: transparent; --c: var(--navy); border-color: var(--navy); }
.btn--outline::before { background: var(--navy); }
.btn--outline:hover { color: #fff; }
.btn--ghost { --b: transparent; --c: var(--text); border-color: transparent; }
.btn--ghost::before { background: var(--sky-50); }
.btn--ghost:hover { box-shadow: none; }
.btn--soft { --b: var(--sky-50); --c: var(--navy); border-color: var(--sky-100); }
.btn--soft::before { background: var(--navy); }
.btn--soft:hover { color: #fff; }
.btn--light { --b: #fff; --c: var(--navy); border-color: #fff; }
.btn--light::before { background: var(--sky-100); }
.btn--wa { --b: #1FA855; border-color: #1FA855; }
.btn--wa::before { background: #178a45; }
.btn.is-loading { pointer-events: none; color: transparent; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.link { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 500; font-family: var(--font-head); font-size: 15px; }
.link .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.link:hover .icon { transform: translateX(-4px); }
.link:hover { text-decoration: underline; text-underline-offset: 6px; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--ink); transition: background .25s;
}
.icon-btn:hover { background: var(--sky-50); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; color: var(--sky-600);
  font-family: var(--font-head); font-size: 14px; font-weight: 500; margin-bottom: 10px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow--light { color: var(--sky-200); }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  background: #fff; color: var(--navy); font-family: var(--font-head); font-size: 12.5px; font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--sky-50); color: var(--navy-700); font-size: 13.5px; font-weight: 500; border: 1px solid var(--sky-100);
}
.tag .icon { width: 16px; height: 16px; }

.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font-family: var(--font-head); font-size: 15px; font-weight: 500; transition: border-color .2s, background .2s, color .2s, box-shadow .2s;
}
.chip small { color: var(--muted); font-weight: 400; }
.chip:hover { border-color: var(--sky); }
.chip.is-active { border-color: var(--navy); background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.chip.is-active small { color: var(--sky-200); }
.chip--sm { min-height: 34px; padding: 0 14px; font-size: 13.5px; }

/* ---------- شريط الإعلانات ---------- */
.announce { background: var(--navy); color: #fff; font-size: 13.5px; overflow: hidden; }
.marquee { overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span { display: inline-flex; align-items: center; gap: 10px; padding: 9px 28px; white-space: nowrap; }
.marquee__track .icon { width: 15px; height: 15px; color: var(--sky-200); }
.announce:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(50%); } }

/* ---------- الهيدر ---------- */
.header {
  position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -24px rgba(14, 48, 94, .5); }
.header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); gap: 16px; }
.header__start { display: flex; align-items: center; gap: 6px; }
.header__end { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.header__burger { display: none; }
.logo img { height: 58px; width: auto; }
.nav ul { display: flex; align-items: center; gap: 2px; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 999px;
  font-family: var(--font-head); font-size: 15px; font-weight: 500; color: var(--ink); transition: color .2s, background .2s;
}
.nav__link .icon { width: 16px; height: 16px; transition: transform .3s; }
.nav__link::after {
  content: ""; position: absolute; inset-inline: 14px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--navy);
  transform: scaleX(0); transition: transform .35s var(--ease);
}
.nav__link:hover::after, .nav__link.is-current::after { transform: scaleX(1); }
.nav__link:hover, .nav__link.is-current { color: var(--navy); }
.has-mega:hover .nav__link .icon { transform: rotate(180deg); }
.cart-count {
  position: absolute; top: 3px; inset-inline-end: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--navy); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; line-height: 1;
  transition: transform .3s var(--ease);
}
.cart-count.is-empty { transform: scale(0); }

/* القائمة الكبيرة */
.mega {
  position: absolute; inset-inline: 0; top: 100%; background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 30px 50px -30px rgba(14, 48, 94, .35);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .35s var(--ease), visibility .3s;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega__inner { display: grid; grid-template-columns: repeat(3, 1fr) 1.1fr; gap: 20px; padding-block: 28px 32px; }
.mega__card { display: flex; flex-direction: column; gap: 12px; }
.mega__media { aspect-ratio: 5 / 4; border-radius: var(--radius); background: var(--art-bg, var(--sky-50)); overflow: hidden; transition: transform .5s var(--ease); }
.mega__card:hover .mega__media { transform: scale(.98); }
.mega__text { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--muted); }
.mega__text b { font-family: var(--font-head); color: var(--ink); font-size: 16px; font-weight: 600; }
.mega__text b small { color: var(--muted); font-weight: 400; margin-inline-start: 4px; }
.mega__text em { font-style: normal; color: var(--navy); font-weight: 600; }
.mega__promo {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 26px; border-radius: var(--radius);
  color: #fff; overflow: hidden; background: radial-gradient(120% 80% at 80% 0%, #2B5E9C 0%, var(--navy-700) 55%, var(--navy-900) 100%);
}
.mega__promo b { font-family: var(--font-head); font-size: 22px; font-weight: 600; line-height: 1.35; }
.mega__promo::before {
  content: ""; position: absolute; top: 24px; inset-inline-start: 24px; width: 64px; height: 64px; border-radius: 50%;
  box-shadow: inset -14px -6px 0 0 #F4E3B2; transform: rotate(-20deg);
}
.mega__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-family: var(--font-head); font-weight: 500; }
.mega__link .icon { width: 18px; height: 18px; }

/* ---------- الأقسام ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--soft { background: var(--sky-50); }
.section--cream { background: var(--cream); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(28px, 4vw, 44px); flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.7rem); }
.section-head p { color: var(--muted); max-width: 560px; margin-top: 10px; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }

/* ---------- الهيرو ---------- */
.hero { padding-top: 14px; }
.hero__slider { position: relative; display: grid; border-radius: var(--radius-xl); overflow: hidden; isolation: isolate; }
.slide {
  grid-area: 1 / 1; display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: clamp(16px, 3vw, 40px);
  min-height: clamp(540px, 74vh, 700px); padding: clamp(32px, 5.5vw, 80px) clamp(24px, 5.5vw, 80px) clamp(80px, 8vw, 100px);
  opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility .9s;
}
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.slide--sky { background: radial-gradient(70% 90% at 15% 30%, #FFFFFF 0%, rgba(255, 255, 255, 0) 60%), linear-gradient(135deg, #D6E6F1 0%, #EEF5FA 60%, #F7FAFC 100%); }
.slide--gold { background: radial-gradient(70% 90% at 15% 30%, #FFFDF8 0%, rgba(255, 255, 255, 0) 60%), linear-gradient(135deg, #EFE3C9 0%, #F8F1E3 60%, #FCF9F3 100%); }
.slide--night { background: radial-gradient(80% 100% at 20% 20%, #2B5E9C 0%, rgba(43, 94, 156, 0) 60%), linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 55%, #1C4C88 100%); color: #DCE8F2; }
.slide--night h1, .slide--night h2 { color: #fff; }
.slide--night .eyebrow { color: var(--sky-200); }
.slide__content { max-width: 620px; }
.slide__content > * { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.slide.is-active .slide__content > * { opacity: 1; transform: none; }
.slide.is-active .slide__content > :nth-child(2) { transition-delay: .1s; }
.slide.is-active .slide__content > :nth-child(3) { transition-delay: .2s; }
.slide.is-active .slide__content > :nth-child(4) { transition-delay: .3s; }
.slide.is-active .slide__content > :nth-child(5) { transition-delay: .4s; }
.slide h1, .slide h2 { font-size: clamp(2.1rem, 5vw, 4.4rem); font-weight: 600; line-height: 1.22; margin-bottom: 18px; }
.slide h1 em, .slide h2 em { font-style: normal; color: var(--navy); position: relative; }
.slide--night h2 em { color: #F4E3B2; }
.slide p { font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 520px; margin-bottom: 28px; color: inherit; opacity: .92; }
.slide__price { display: inline-flex; align-items: baseline; gap: 8px; margin-bottom: 24px; padding: 8px 18px; border-radius: 999px; background: rgba(255, 255, 255, .7); font-size: 15px; }
.slide__price b { font-family: var(--font-head); font-size: 20px; color: var(--navy); }
.slide--night .slide__price { background: rgba(255, 255, 255, .1); }
.slide--night .slide__price b { color: #fff; }
.slide__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.slide__art { position: relative; transform: scale(.94); opacity: 0; transition: transform 1.2s var(--ease), opacity 1s; }
.slide.is-active .slide__art { transform: none; opacity: 1; }
.slide__art svg { width: 100%; height: auto; animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.slide--night .stars { position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background-image: radial-gradient(1.5px 1.5px at 20% 30%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 70% 20%, #fff 50%, transparent 51%),
  radial-gradient(1.5px 1.5px at 85% 60%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 40% 80%, #fff 50%, transparent 51%),
  radial-gradient(1px 1px at 55% 45%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 10% 70%, #fff 50%, transparent 51%);
  opacity: .6; }
.hero__controls {
  position: absolute; z-index: 3; bottom: clamp(20px, 3vw, 32px); inset-inline: clamp(24px, 5.5vw, 80px);
  display: flex; align-items: center; justify-content: space-between; pointer-events: none;
}
.hero__controls > * { pointer-events: auto; }
.hero__dots { display: flex; gap: 8px; }
.hero__dots button { position: relative; width: 28px; height: 6px; border-radius: 6px; background: rgba(11, 63, 128, .18); overflow: hidden; transition: width .4s var(--ease); }
.hero__dots button.is-active { width: 64px; }
.hero__dots button span { position: absolute; inset: 0; background: var(--navy); transform: scaleX(0); transform-origin: right; }
.hero__dots button.is-active span { animation: fill 7s linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }
.hero__arrows { display: flex; gap: 8px; }
.hero__arrows button { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .85); color: var(--navy); box-shadow: var(--shadow-sm); transition: background .2s, transform .2s; }
.hero__arrows button:hover { background: #fff; transform: scale(1.06); }

/* ---------- تبويبات بعناوين كبيرة ---------- */
.heading-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.heading-tabs button {
  font-family: var(--font-head); font-size: clamp(1.45rem, 3vw, 2.5rem); font-weight: 600; color: #B4C2D1; line-height: 1.3;
  transition: color .3s; position: relative;
}
.heading-tabs button:hover { color: var(--sky-600); }
.heading-tabs button.is-active { color: var(--ink); }
.heading-tabs .sep { width: 1.5px; height: .9em; background: var(--line); font-size: clamp(1.45rem, 3vw, 2.5rem); }

/* ---------- كروت المنتجات ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.grid--products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--bundles .card--wide { grid-column: span 2; }
.grid--bundles .card--wide .card__media { aspect-ratio: 16 / 10; }
.card { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card__media-wrap { position: relative; }
.card__media {
  position: relative; display: block; aspect-ratio: 5 / 4.4; border-radius: var(--radius); overflow: hidden;
  background: var(--art-bg, var(--sky-50));
}
.card__media .art { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .6s var(--ease), transform 1s var(--ease); }
.card__media .art svg, .card__media .art img { width: 100%; height: 100%; object-fit: cover; }
.card__media .art--alt { opacity: 0; }
.card:hover .card__media.has-alt .art--main { opacity: 0; }
.card:hover .card__media.has-alt .art--alt { opacity: 1; }
.card:hover .card__media .art { transform: scale(1.04); }
.card__badge { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2; }
.card__quick {
  position: absolute; z-index: 2; inset-inline: 14px; bottom: 14px; min-height: 46px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(255, 255, 255, .95); color: var(--navy); font-family: var(--font-head); font-weight: 500; font-size: 14.5px;
  box-shadow: var(--shadow-sm); opacity: 0; transform: translateY(12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), background .25s, color .25s;
}
.card__quick .icon { width: 18px; height: 18px; }
.card:hover .card__quick, .card__quick:focus-visible { opacity: 1; transform: none; }
.card__quick:hover { background: var(--navy); color: #fff; }
.card__body { display: flex; flex-direction: column; gap: 2px; padding-inline: 4px; }
.card__meta { font-size: 13px; color: var(--sky-600); font-weight: 500; }
.card__title { font-size: 18px; font-weight: 600; }
.card__title a { background: linear-gradient(currentColor, currentColor) no-repeat 100% 100% / 0 1.5px; transition: background-size .4s var(--ease); }
.card__title a:hover { background-size: 100% 1.5px; background-position: 0 100%; }
.card__en { font-size: 13px; color: var(--muted); direction: ltr; text-align: right; }
.card__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.card__price .from { font-size: 13px; color: var(--muted); }
.card__price b { font-family: var(--font-head); font-size: 17px; color: var(--navy); font-weight: 600; }
.card__price s { font-size: 14px; color: var(--muted); }
.card__sizes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.card__sizes span { font-size: 11.5px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }

.promo-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 10px;
  padding: 28px; border-radius: var(--radius); overflow: hidden; min-height: 100%; color: #fff;
  background: radial-gradient(120% 80% at 80% 0%, #2B5E9C 0%, var(--navy-700) 55%, var(--navy-900) 100%);
}
.promo-card b { font-family: var(--font-head); font-size: 21px; font-weight: 600; line-height: 1.45; }
.promo-card__art { position: absolute; top: 22px; inset-inline-start: 22px; width: 120px; height: 64px; border-radius: 999px; overflow: hidden; }
.promo-card .btn { margin-top: 8px; }

/* ---------- عنوان بصور ---------- */
.statement {
  font-family: var(--font-head); font-weight: 500; font-size: clamp(1.75rem, 4.6vw, 3.9rem); line-height: 1.6;
  text-align: center; color: var(--ink); max-width: 1080px; margin-inline: auto;
}
.statement .pill {
  display: inline-block; width: 2.1em; height: 1.08em; border-radius: 999px; overflow: hidden; vertical-align: -.16em;
  margin-inline: .12em; box-shadow: var(--shadow-sm);
}
.statement .pill svg { width: 100%; height: 100%; }
.statement .muted { color: #A9B8C8; }
.statement-sub { text-align: center; color: var(--muted); max-width: 620px; margin: 22px auto 0; font-size: 17px; }

/* ---------- بلاطات التصنيفات ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.tile { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; }
.tile__media { display: block; aspect-ratio: 1 / 1.08; background: var(--art-bg); transition: transform 1s var(--ease); }
.tile__media svg { width: 100%; height: 100%; }
.tile:hover .tile__media { transform: scale(1.04); }
.tile__label {
  position: absolute; inset-inline: 12px; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px 12px 12px; border-radius: 16px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
}
.tile__label > span { display: flex; flex-direction: column; line-height: 1.4; }
.tile__label b { font-family: var(--font-head); font-size: 17px; color: var(--ink); font-weight: 600; }
.tile__label small { color: var(--muted); }
.tile__label i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; flex: none; transition: transform .35s var(--ease); }
.tile__label i .icon { width: 18px; height: 18px; }
.tile:hover .tile__label i { transform: rotate(-45deg); }

/* ---------- مستكشف الطبقات ---------- */
.pill-tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: #fff; border: 1px solid var(--line); margin: 0 auto 28px; }
.layers-wrap { text-align: center; }
.pill-tabs button { padding: 9px 22px; border-radius: 999px; font-family: var(--font-head); font-size: 15px; font-weight: 500; color: var(--muted); transition: background .25s, color .25s; }
.pill-tabs button.is-active { background: var(--navy); color: #fff; }
.layers { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(20px, 3vw, 48px); align-items: center; text-align: start; }
.layers__art { border-radius: var(--radius-lg); background: var(--art-bg, #fff); overflow: hidden; }
.layers__art .layer { transition: opacity .35s, transform .45s var(--ease); }
.layers__art .layers-hl .layer { opacity: .22; }
.layers__art .layers-hl .layer.is-on { opacity: 1; transform: translateX(-12px); }
.layers__list { display: flex; flex-direction: column; gap: 8px; counter-reset: l; }
.layers__list li {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
  cursor: default; transition: border-color .25s, box-shadow .25s, transform .3s var(--ease);
}
.layers__list li.is-on { border-color: var(--navy); box-shadow: var(--shadow-sm); transform: translateX(-6px); }
.layers__list .num, .bundle__items .num {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: #fff; font-family: var(--font-head); font-size: 14px; font-weight: 600;
}
.layers__list b { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 16px; }
.layers__list p { color: var(--muted); font-size: 14.5px; }
.layers__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: var(--navy-900); color: #fff; }
.layers__foot div { display: flex; flex-direction: column; line-height: 1.4; }
.layers__foot small { color: var(--sky-200); }
.layers__foot b { font-family: var(--font-head); font-size: 18px; font-weight: 600; }
.layers__foot .btn { --b: #fff; --c: var(--navy); border-color: #fff; }
.layers__foot .btn::before { background: var(--sky-100); }

/* ---------- عروض العروسة ---------- */
.bundles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.bundle { display: grid; grid-template-columns: 1fr; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.bundle__media { display: block; background: var(--art-bg); aspect-ratio: 16 / 10; overflow: hidden; }
.bundle__media svg { width: 100%; height: 100%; transition: transform 1s var(--ease); }
.bundle:hover .bundle__media svg { transform: scale(1.04); }
.bundle__info { display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 2.6vw, 32px); }
.bundle__info h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
.bundle__items { display: flex; flex-direction: column; gap: 10px; }
.bundle__items li { display: flex; align-items: center; gap: 12px; }
.bundle__items li > span:last-child { display: flex; flex-direction: column; line-height: 1.45; }
.bundle__items b { font-weight: 600; color: var(--ink); font-size: 15px; }
.bundle__items b a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--sky-200); }
.bundle__items small { color: var(--muted); }
.bundle__foot { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); }
.bundle__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.bundle__price small { color: var(--muted); }
.bundle__price b { font-family: var(--font-head); font-size: 26px; color: var(--navy); font-weight: 600; }
.bundle__price s { color: var(--muted); }
.bundle__note { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.bundle__note .icon { width: 17px; height: 17px; color: var(--sky-600); }

/* ---------- شريط الثقة ---------- */
.trust { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.trust__item { display: flex; align-items: center; gap: 14px; padding: 26px 18px; }
.trust__item + .trust__item { border-inline-start: 1px solid var(--line); }
.trust__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--sky-50); color: var(--navy); flex: none; }
.trust__item b { display: block; font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 15px; line-height: 1.4; }
.trust__item small { color: var(--muted); font-size: 13px; }

/* ---------- بانر ليلي ---------- */
.night {
  position: relative; display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 24px;
  border-radius: var(--radius-xl); overflow: hidden; isolation: isolate; color: #DCE8F2;
  padding: clamp(32px, 5vw, 72px);
  background: radial-gradient(70% 90% at 85% 15%, #2B5E9C 0%, rgba(43, 94, 156, 0) 60%), linear-gradient(160deg, var(--navy-900), var(--navy-700) 60%, #1C4C88);
}
.night h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 3.4rem); line-height: 1.25; margin-bottom: 16px; }
.night p { font-size: 17px; max-width: 480px; margin-bottom: 26px; }
.night__moon { position: absolute; top: 40px; inset-inline-end: 8%; width: 90px; height: 90px; border-radius: 50%; box-shadow: inset -22px -8px 0 0 #F4E3B2; transform: rotate(-20deg); z-index: -1; opacity: .9; }
.night__art { position: relative; }
.night__art svg { width: 100%; height: auto; }
.night__card {
  position: absolute; bottom: 6%; inset-inline-end: 4%; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px;
  border-radius: 18px; background: rgba(255, 255, 255, .95); color: var(--ink); box-shadow: var(--shadow-lg); max-width: 300px;
}
.night__card i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #F6EEDC; color: #9D7B2F; flex: none; }
.night__card b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 15px; line-height: 1.4; }
.night__card small { color: var(--muted); }

/* ---------- جدول المقارنة ---------- */
.compare-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; }
.compare th, .compare td { padding: 16px 18px; text-align: start; vertical-align: middle; border-bottom: 1px solid var(--line); font-size: 15px; }
.compare tbody th { width: 18%; font-family: var(--font-head); font-weight: 500; color: var(--muted); background: var(--sky-50); position: sticky; inset-inline-start: 0; z-index: 1; }
.compare thead th { border-bottom: 1px solid var(--line); padding-block: 22px; vertical-align: bottom; }
.compare thead th:first-child { background: var(--sky-50); position: sticky; inset-inline-start: 0; z-index: 1; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare td { color: var(--ink); }
.compare__head { display: flex; flex-direction: column; gap: 4px; }
.compare__media { display: block; aspect-ratio: 5 / 3.4; border-radius: 14px; overflow: hidden; background: var(--art-bg); margin-bottom: 8px; }
.compare__media svg { width: 100%; height: 100%; }
.compare__head b { font-family: var(--font-head); font-size: 18px; color: var(--ink); font-weight: 600; }
.compare__head small { color: var(--muted); }
.compare .price { font-family: var(--font-head); color: var(--navy); font-size: 17px; }

/* ---------- الاختبار ---------- */
.quiz { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.quiz__intro h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin-bottom: 14px; }
.quiz__intro p { color: var(--muted); font-size: 17px; }
.quiz__intro ul { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.quiz__intro li { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.quiz__intro li .icon { color: var(--success); width: 20px; height: 20px; }
.quiz__box { position: relative; padding: clamp(22px, 3.4vw, 40px); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); min-height: 380px; }
.quiz__progress { height: 6px; border-radius: 6px; background: var(--sky-100); overflow: hidden; margin-bottom: 20px; }
.quiz__progress span { display: block; height: 100%; background: var(--navy); border-radius: 6px; transition: width .5s var(--ease); margin-inline-start: 0; }
.quiz__step { color: var(--sky-600); font-size: 14px; font-weight: 500; font-family: var(--font-head); }
.quiz__q { font-size: clamp(1.25rem, 2.2vw, 1.7rem); margin: 6px 0 20px; }
.quiz__options { display: grid; gap: 10px; }
.quiz__opt {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; border: 1.5px solid var(--line); text-align: start;
  font-size: 16px; font-weight: 500; color: var(--ink); transition: border-color .2s, background .2s, transform .25s var(--ease);
}
.quiz__opt .icon { color: var(--navy); width: 24px; height: 24px; padding: 8px; box-sizing: content-box; border-radius: 50%; background: var(--sky-50); }
.quiz__opt:hover { border-color: var(--navy); background: var(--sky-50); transform: translateX(-4px); }
.quiz__back { margin-top: 18px; color: var(--muted); }
.quiz__back .icon { width: 17px; height: 17px; }
.quiz__result { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: center; animation: pop .5s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(14px); } }
.quiz__media { display: block; border-radius: var(--radius); overflow: hidden; background: var(--art-bg); aspect-ratio: 5 / 4.4; }
.quiz__media svg { width: 100%; height: 100%; object-fit: cover; }
.quiz__result h3 { font-size: 1.6rem; margin-bottom: 8px; }
.quiz__result h3 small { font-size: .55em; color: var(--muted); font-weight: 400; }
.quiz__result p { color: var(--muted); margin-bottom: 12px; }
.quiz__price { margin-bottom: 16px; color: var(--muted); }
.quiz__price b { color: var(--navy); font-family: var(--font-head); }
.quiz__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- الأسئلة الشائعة ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.faq__intro h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin-bottom: 14px; }
.faq__intro p { color: var(--muted); margin-bottom: 24px; }
.faq__intro .btn + .btn { margin-inline-start: 8px; }
.accordion { display: flex; flex-direction: column; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 500; font-size: 17px; color: var(--ink);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .icon { width: 20px; height: 20px; color: var(--muted); transition: transform .3s var(--ease); }
.accordion details[open] summary .icon { transform: rotate(180deg); }
.accordion details > :not(summary) { padding-bottom: 20px; color: var(--muted); }
.accordion details[open] > :not(summary) { animation: pop .35s var(--ease); }

/* ---------- بانر التواصل ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate; text-align: center; border-radius: var(--radius-xl);
  padding: clamp(44px, 6vw, 80px) clamp(20px, 4vw, 40px);
  background: linear-gradient(180deg, #DCEAF3, #F2F7FA);
}
.cta h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); margin-bottom: 12px; }
.cta p { color: var(--muted); max-width: 520px; margin: 0 auto 26px; }
.cta__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.cta__cloud { position: absolute; z-index: -1; background: #fff; border-radius: 999px; opacity: .8; }
.cta__cloud::before, .cta__cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cta__cloud--1 { width: 200px; height: 56px; top: 18%; inset-inline-start: 6%; }
.cta__cloud--1::before { width: 90px; height: 90px; top: -48px; inset-inline-start: 30px; }
.cta__cloud--1::after { width: 64px; height: 64px; top: -30px; inset-inline-start: 100px; }
.cta__cloud--2 { width: 160px; height: 46px; bottom: 16%; inset-inline-end: 7%; }
.cta__cloud--2::before { width: 74px; height: 74px; top: -40px; inset-inline-start: 24px; }
.cta__cloud--2::after { width: 52px; height: 52px; top: -24px; inset-inline-start: 82px; }

/* ---------- الفوتر ---------- */
.footer { background: var(--sky-50); margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 32px; padding-block: clamp(44px, 6vw, 72px) 36px; }
.footer__brand img { height: 78px; width: auto; margin-bottom: 16px; }
.footer__brand p { color: var(--muted); max-width: 340px; font-size: 15px; }
.footer__social { display: flex; gap: 6px; margin-top: 16px; }
.footer__social .icon-btn { background: #fff; border: 1px solid var(--line); }
.footer__col h4 { font-size: 16px; margin-bottom: 16px; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: var(--muted); font-size: 15px; transition: color .2s; display: inline-flex; align-items: center; gap: 8px; }
.footer__col a:hover { color: var(--navy); }
.footer__contact .icon { width: 18px; height: 18px; color: var(--sky-600); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* علامات الدفع */
.paymarks { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pm {
  display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line);
  background: #fff; font-size: 11.5px; font-weight: 700; color: var(--ink); direction: ltr; font-family: Arial, sans-serif; white-space: nowrap;
}
.pm--instapay { color: #5B2C83; }
.pm--vf i { width: 11px; height: 11px; border-radius: 50%; background: #E60000; }
.pm--visa { color: #1A1F71; font-style: italic; font-size: 14px; font-weight: 900; letter-spacing: .5px; }
.pm--mc { padding: 0 9px; }
.pm--mc i { width: 15px; height: 15px; border-radius: 50%; background: #EB001B; }
.pm--mc i + i { background: #F79E1B; margin-inline-start: -11px; mix-blend-mode: multiply; }
.pm--cod { font-family: var(--font-body); direction: rtl; font-weight: 600; font-size: 12px; color: var(--success); }

/* ---------- الطبقات المتراكبة (درج / قائمة / بحث / نافذة) ---------- */
.overlay { position: fixed; inset: 0; z-index: 90; background: rgba(10, 33, 69, .42); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.overlay.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; z-index: 100; inset-block: 0; width: min(440px, 100%); background: #fff; display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); transition: transform .5s var(--ease), visibility .5s; visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer--cart { inset-inline-end: 0; transform: translateX(-104%); }
.drawer--menu { inset-inline-start: 0; transform: translateX(104%); width: min(380px, 92%); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-size: 19px; }
.drawer__head h3 span { color: var(--muted); font-weight: 400; }
.drawer__logo { height: 44px; width: auto; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 22px 22px; overscroll-behavior: contain; }
.drawer__foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; background: #fff; }
.drawer__total { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-head); font-size: 18px; color: var(--ink); }
.drawer__total b { font-weight: 600; color: var(--navy); font-size: 21px; }
.drawer__note { color: var(--muted); font-size: 13.5px; margin-bottom: 6px; }

.lines { display: flex; flex-direction: column; }
.line { position: relative; display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line__media { display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--art-bg); }
.line__media svg, .line__media img { width: 100%; height: 100%; object-fit: cover; }
.line__info { display: flex; flex-direction: column; gap: 2px; padding-inline-end: 28px; min-width: 0; }
.line__title { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 15.5px; }
.line__variant { font-size: 13px; color: var(--muted); }
.line__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; }
.line__price { font-family: var(--font-head); font-weight: 600; color: var(--navy); }
.line__remove { position: absolute; top: 16px; inset-inline-end: 0; color: var(--muted); padding: 4px; border-radius: 8px; }
.line__remove:hover { color: var(--danger); background: #FBEDEB; }
.line__remove .icon { width: 18px; height: 18px; }

.qty { display: inline-flex; align-items: center; height: 56px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 6px; background: #fff; }
.qty button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); transition: background .2s; }
.qty button:hover { background: var(--sky-50); }
.qty button .icon { width: 18px; height: 18px; }
.qty input { width: 40px; border: 0; text-align: center; background: transparent; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; }
.qty--sm { height: 38px; padding: 0 3px; }
.qty--sm button { width: 30px; height: 30px; }
.qty--sm button .icon { width: 15px; height: 15px; }
.qty--sm span { min-width: 26px; text-align: center; font-weight: 600; font-size: 14px; }

.upsell { margin-top: 22px; padding: 16px; border-radius: 18px; background: var(--sky-50); }
.upsell h4 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 10px; }
.upsell h4 .icon { width: 18px; height: 18px; color: var(--gold); }
.upsell__item { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: #fff; }
.upsell__item + .upsell__item { margin-top: 8px; }
.upsell__media { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--art-bg); }
.upsell__media svg, .upsell__media img { width: 100%; height: 100%; object-fit: cover; }
.upsell__info { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.upsell__info b { font-size: 14px; color: var(--ink); font-weight: 600; }
.upsell__info small { color: var(--muted); font-size: 12px; }
.upsell__info em { font-style: normal; color: var(--navy); font-weight: 600; font-size: 13.5px; }
.upsell .btn { padding: 0 14px; min-height: 36px; font-size: 13px; }
.upsell .btn .icon { width: 15px; height: 15px; }

.empty { text-align: center; padding: 48px 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty__art { width: 140px; height: 74px; border-radius: 999px; overflow: hidden; margin-bottom: 10px; }
.empty h4 { font-size: 19px; }
.empty p { color: var(--muted); margin-bottom: 10px; }
.empty--page { padding: clamp(60px, 10vw, 120px) 16px; }
.empty--page h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); }

.mnav li a { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); font-family: var(--font-head); font-size: 18px; font-weight: 500; color: var(--ink); }
.mnav li a .icon { width: 18px; height: 18px; color: var(--muted); }
.mnav__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.mnav__card { display: flex; flex-direction: column; gap: 4px; text-align: center; font-size: 13px; }
.mnav__card span { display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--art-bg); }
.mnav__card span svg, .mnav__card span img { width: 100%; height: 100%; object-fit: cover; }
.mnav__card b { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.mnav__card small { color: var(--muted); font-size: 11.5px; }

.search {
  position: fixed; z-index: 100; inset-inline: 0; top: 0; max-height: 92vh; overflow-y: auto; background: #fff; box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding-block: 24px 32px;
  transform: translateY(-104%); visibility: hidden; transition: transform .5s var(--ease), visibility .5s;
}
.search.is-open { transform: none; visibility: visible; }
.search__bar { display: flex; align-items: center; gap: 12px; padding: 6px 8px 6px 18px; border: 1.5px solid var(--line); border-radius: 999px; }
.search__bar:focus-within { border-color: var(--navy); }
.search__bar > .icon { color: var(--muted); margin-inline-start: 6px; }
.search__bar input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 18px; min-width: 0; height: 48px; }
.search__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; color: var(--muted); font-size: 14px; }
.search__label { color: var(--muted); font-size: 14px; margin: 22px 0 12px; }
.search__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.search__item { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: 16px; border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.search__item:hover { border-color: var(--sky); background: var(--sky-50); }
.search__item > span:last-child { display: flex; flex-direction: column; line-height: 1.45; }
.search__item b { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.search__item small { color: var(--muted); }
.search__item em { font-style: normal; color: var(--navy); font-weight: 600; font-size: 14px; }
.search__media { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--art-bg); }
.search__media svg, .search__media img { width: 100%; height: 100%; object-fit: cover; }
.search__empty { padding: 28px 0 8px; color: var(--muted); }

.modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; visibility: hidden; pointer-events: none; }
.modal.is-open { visibility: visible; }
.modal__box {
  position: relative; width: min(980px, 100%); max-height: 92vh; overflow-y: auto; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .35s, transform .45s var(--ease); pointer-events: auto;
}
.modal.is-open .modal__box { opacity: 1; transform: none; }
.modal__close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; background: #fff; box-shadow: var(--shadow-sm); }
.qv { display: grid; grid-template-columns: 1fr 1fr; }
.qv__media { background: var(--art-bg); display: grid; place-items: center; min-height: 100%; }
.qv__media svg, .qv__media img { width: 100%; height: auto; }
.qv__info { padding: clamp(22px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.qv__info h3 { font-size: 1.7rem; }
.qv__info h3 small { font-size: .55em; color: var(--muted); font-weight: 400; margin-inline-start: 6px; }
.qv__info > p { color: var(--muted); font-size: 15px; }
.qv__price { font-family: var(--font-head); font-size: 1.6rem; color: var(--navy); font-weight: 600; }
.qv__buy { display: flex; gap: 10px; }
.qv__buy .btn { flex: 1; }

.opt { display: flex; flex-direction: column; gap: 10px; }
.opt__label { font-size: 15px; color: var(--muted); }
.opt__label b { color: var(--ink); font-weight: 600; }
.opt__values { display: flex; flex-wrap: wrap; gap: 8px; }
.opt__values .chip { min-width: 74px; }

.toast {
  position: fixed; z-index: 120; bottom: 24px; left: 50%; display: flex; align-items: center; gap: 10px; padding: 12px 20px;
  border-radius: 999px; background: var(--navy-900); color: #fff; box-shadow: var(--shadow-lg); font-size: 15px;
  transform: translate(-50%, 200%); visibility: hidden; transition: transform .45s var(--ease), visibility .45s;
}
.toast.is-show { transform: translate(-50%, 0); visibility: visible; }
.toast .icon { width: 18px; height: 18px; color: #7FD3A8; }

.to-top {
  position: fixed; z-index: 50; bottom: 24px; left: 24px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--navy); box-shadow: var(--shadow); border: 1px solid var(--line);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .35s, transform .35s var(--ease);
}
.to-top.is-show { opacity: 1; transform: none; pointer-events: auto; }
.wa-float {
  position: fixed; z-index: 50; bottom: 24px; right: 24px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #1FA855; color: #fff; box-shadow: 0 14px 30px -12px rgba(31, 168, 85, .7);
}
.wa-float .icon { width: 28px; height: 28px; }

/* ---------- صفحة كل المنتجات ---------- */
.page-head { padding-block: clamp(28px, 4vw, 48px) clamp(24px, 3vw, 36px); }
.page-head__box {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-xl); padding: clamp(28px, 4.5vw, 60px);
  background: radial-gradient(60% 120% at 10% 0%, #fff 0%, rgba(255, 255, 255, 0) 60%), linear-gradient(135deg, #D6E6F1, #F2F7FA);
}
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin: 6px 0 10px; }
.page-head p { color: var(--muted); max-width: 560px; font-size: 17px; }
.page-head .cta__cloud--2 { bottom: 24%; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); padding-block: 18px; }
.crumbs a:hover { color: var(--navy); }
.crumbs .icon { width: 14px; height: 14px; }
.crumbs span { color: var(--ink); }
.page-head .crumbs { padding: 0 0 4px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.toolbar__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.toolbar__end { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 14px; }
.select { position: relative; }
.select select {
  appearance: none; -webkit-appearance: none; height: 44px; padding: 0 16px 0 40px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; font-family: var(--font-head); font-size: 14.5px; color: var(--ink); cursor: pointer;
}
.select .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; pointer-events: none; color: var(--muted); }

/* ---------- صفحة المنتج ---------- */
.pdp { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; padding-bottom: clamp(48px, 6vw, 80px); }
.pdp__gallery { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 12px; }
.pdp__main { position: relative; display: grid; border-radius: var(--radius-lg); overflow: hidden; background: var(--art-bg); }
.pdp__slide { grid-area: 1 / 1; opacity: 0; transition: opacity .5s var(--ease); }
.pdp__slide.is-active { opacity: 1; }
.pdp__slide svg, .pdp__slide img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; }
.pdp__badge { position: absolute; top: 18px; inset-inline-start: 18px; }
.pdp__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.pdp__thumbs button { position: relative; border-radius: 14px; overflow: hidden; background: var(--art-bg); border: 2px solid transparent; transition: border-color .2s; }
.pdp__thumbs button.is-active { border-color: var(--navy); }
.pdp__thumbs svg, .pdp__thumbs img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.pdp__thumbs span { position: absolute; inset-inline: 6px; bottom: 6px; font-size: 11.5px; background: rgba(255, 255, 255, .9); border-radius: 999px; padding: 0 6px; color: var(--ink); }
.pdp__info { display: flex; flex-direction: column; gap: 16px; padding-top: 6px; }
.pdp__info .eyebrow { margin-bottom: -6px; }
.pdp__title { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.2; }
.pdp__en { color: var(--muted); direction: ltr; text-align: right; margin-top: -10px; font-size: 15px; }
.pdp__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 14px; padding-block: 4px; }
.pdp__price b { font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.3rem); color: var(--navy); font-weight: 600; }
.pdp__price s { color: var(--muted); font-size: 18px; }
.pdp__price small { color: var(--muted); font-size: 14px; }
.pdp__short { color: var(--text); font-size: 16.5px; }
.pdp__options { display: flex; flex-direction: column; gap: 18px; }
.pdp__meter { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; margin-top: -6px; }
.pdp__meter .icon { width: 16px; height: 16px; }
.pdp__buy { display: flex; gap: 10px; }
.pdp__buy .btn { flex: 1; }
.pdp__pay { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 16px; background: var(--sky-50); font-size: 14px; color: var(--muted); }
.specs { display: grid; gap: 12px; }
.specs li { display: flex; gap: 12px; align-items: flex-start; }
.specs .icon { color: var(--navy); width: 22px; height: 22px; padding: 8px; box-sizing: content-box; border-radius: 12px; background: var(--sky-50); }
.specs li > span { display: flex; flex-direction: column; line-height: 1.5; padding-top: 4px; }
.specs b { color: var(--ink); font-weight: 600; font-size: 15px; }
.specs small { color: var(--muted); font-size: 13.5px; }
.ptable { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 14.5px; }
.ptable th, .ptable td { padding: 8px 12px; text-align: start; border-bottom: 1px solid var(--line); }
.ptable tr:last-child th, .ptable tr:last-child td { border-bottom: 0; }
.ptable thead th { background: var(--sky-50); color: var(--ink); font-family: var(--font-head); font-weight: 500; }
.ptable tbody th { color: var(--ink); font-weight: 600; }
.ptable button { padding: 4px 12px; border-radius: 999px; color: var(--navy); font-weight: 600; border: 1px solid transparent; transition: background .2s, border-color .2s; }
.ptable button:hover { background: var(--sky-50); }
.ptable button.is-active { border-color: var(--navy); background: var(--navy); color: #fff; }

.sticky-buy {
  position: fixed; z-index: 55; inset-inline: 0; bottom: 0; background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); box-shadow: 0 -18px 40px -30px rgba(14, 48, 94, .5);
  transform: translateY(110%); visibility: hidden; transition: transform .45s var(--ease), visibility .45s;
}
.sticky-buy.is-show { transform: none; visibility: visible; }
.sticky-buy__inner { display: flex; align-items: center; gap: 14px; padding-block: 10px; }
.sticky-buy__media { width: 64px; height: 52px; border-radius: 10px; overflow: hidden; background: var(--art-bg); flex: none; }
.sticky-buy__media svg, .sticky-buy__media img { width: 100%; height: 100%; object-fit: cover; }
.sticky-buy__text { display: flex; flex-direction: column; line-height: 1.35; flex: 1; min-width: 0; }
.sticky-buy__text b { font-family: var(--font-head); color: var(--ink); font-weight: 600; }
.sticky-buy__text small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy__price { font-family: var(--font-head); color: var(--navy); font-size: 18px; font-weight: 600; }
body[data-page="product"] .to-top { bottom: 96px; }

/* ---------- إتمام الطلب ---------- */
.checkout { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; padding-bottom: 40px; }
.checkout__form h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 8px; }
.checkout__form fieldset { border: 0; padding: 0; margin: 26px 0 0; }
.checkout__form legend { font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--ink); margin-bottom: 14px; padding: 0; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; position: relative; }
.field--full { grid-column: 1 / -1; }
.field > span { font-size: 14px; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: #fff;
  transition: border-color .2s, box-shadow .2s; font-size: 16px;
}
.field textarea { resize: vertical; min-height: 90px; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: 22px 50%, 16px 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(11, 63, 128, .1); }
.field input[dir="ltr"] { text-align: right; }
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.field.has-error::after { content: attr(data-error); color: var(--danger); font-size: 13px; }
.paylist { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.payopt {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line);
  cursor: pointer; transition: border-color .2s, background .2s;
}
.payopt input { position: absolute; opacity: 0; pointer-events: none; }
.payopt.is-active { border-color: var(--navy); background: var(--sky-50); }
.payopt:has(input:focus-visible) { outline: 2px solid var(--navy); outline-offset: 2px; }
.payopt__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #fff; color: var(--navy); border: 1px solid var(--line); flex: none; }
.payopt__text { display: flex; flex-direction: column; line-height: 1.35; flex: 1; }
.payopt__text b { font-weight: 600; color: var(--ink); font-size: 15px; }
.payopt__text small { color: var(--muted); direction: ltr; text-align: right; font-size: 12.5px; }
.payopt__dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; transition: border .2s; }
.payopt.is-active .payopt__dot { border: 6px solid var(--navy); }
.paynote { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: var(--cream); font-size: 14.5px; color: var(--text); }
.paynote > .icon { color: var(--gold); margin-top: 3px; }
.paynote small { color: var(--muted); display: inline-flex; gap: 6px; align-items: center; margin-top: 4px; }
.paynote small .icon { width: 15px; height: 15px; }
.copy { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; color: var(--navy); vertical-align: middle; }
.copy .icon { width: 14px; height: 14px; }
.form-error { margin-top: 18px; padding: 12px 16px; border-radius: 12px; background: #FBEDEB; color: var(--danger); }
#submit-btn { margin-top: 24px; }
.checkout__small { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 13.5px; margin-top: 12px; }
.checkout__small .icon { width: 16px; height: 16px; }
.summary { position: sticky; top: calc(var(--header-h) + 16px); padding: clamp(20px, 2.6vw, 30px); border-radius: var(--radius-lg); background: var(--sky-50); border: 1px solid var(--line); }
.summary h2 { font-size: 20px; margin-bottom: 14px; }
.summary__lines { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.sline { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; }
.sline__media { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; background: var(--art-bg); }
.sline__media svg, .sline__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.sline__media em { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 22px; height: 22px; border-radius: 999px; background: var(--navy); color: #fff; font-style: normal; font-size: 12px; display: grid; place-items: center; padding: 0 6px; }
.sline__info { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.sline__info b { font-size: 14.5px; color: var(--ink); font-weight: 600; }
.sline__info small { color: var(--muted); font-size: 12.5px; }
.sline > b { font-family: var(--font-head); color: var(--ink); font-weight: 600; font-size: 14.5px; }
.summary .link { font-size: 14px; }
.summary__rows { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; }
.summary__rows div { display: flex; justify-content: space-between; color: var(--muted); }
.summary__rows b { color: var(--ink); font-weight: 600; }
.summary__total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--font-head); color: var(--ink); font-size: 18px; }
.summary__total b { color: var(--navy); font-size: 24px; font-weight: 600; }
.done { max-width: 620px; margin: 0 auto; text-align: center; padding: clamp(40px, 7vw, 90px) 0 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.done__icon { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: #E3F4EB; color: var(--success); margin-bottom: 10px; animation: pop .6s var(--ease); }
.done__icon .icon { width: 42px; height: 42px; stroke-width: 2.2; }
.done h1 { font-size: clamp(2rem, 4vw, 3rem); }
.done__box { width: 100%; margin: 18px 0; padding: 22px; border-radius: var(--radius-lg); background: var(--sky-50); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; text-align: start; }
.done__row { display: flex; justify-content: space-between; color: var(--muted); }
.done__row b { color: var(--ink); }
.done__pay { padding: 14px; border-radius: 12px; background: #fff; }
.done__note { color: var(--muted); font-size: 14px; }

/* ---------- ظهور العناصر ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- تجاوب ---------- */
@media (max-width: 1180px) {
  .nav__link { padding: 10px 10px; font-size: 14.5px; }
  .nav__link::after { inset-inline: 10px; }
  .trust { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust__item:nth-child(4) { border-inline-start: 0; }
  .trust__item:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  .nav { display: none; }
  .header__start { display: contents; }
  .header__burger { display: inline-grid; grid-column: 1; justify-self: start; }
  .logo { grid-column: 2; }
  .header__end { grid-column: 3; }
  .logo img { height: 46px; }
  .grid--products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layers, .quiz, .faq, .night, .pdp, .checkout { grid-template-columns: 1fr; }
  .pdp__gallery, .summary { position: static; }
  .checkout .summary { order: -1; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .night__card { position: static; margin-top: -10px; }
  .night__moon { width: 64px; height: 64px; }
}
@media (max-width: 760px) {
  .slide { grid-template-columns: 1fr; min-height: 0; padding: 32px 22px 84px; gap: 4px; text-align: center; }
  .slide__content { margin-inline: auto; }
  .slide p { margin-inline: auto; }
  .slide__actions { justify-content: center; }
  .slide__art { order: -1; max-width: 420px; margin: -10px auto -16px; width: 100%; }
  .hero__controls { inset-inline: 22px; }
  .hero__arrows { display: none; }
  .hero__dots { margin-inline: auto; }
  .hero__slider { border-radius: var(--radius-lg); }
  .bundles { grid-template-columns: 1fr; }
  .grid--bundles .card--wide { grid-column: 1 / -1; }
  .trust { grid-template-columns: repeat(5, 72%); overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 0; }
  .trust__item { scroll-snap-align: start; border-top: 0 !important; }
  .trust__item:nth-child(4) { border-inline-start: 1px solid var(--line); }
  .qv { grid-template-columns: 1fr; }
  .modal { align-items: end; padding: 0; }
  .modal__box { border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 90vh; }
  .quiz__result { grid-template-columns: 1fr; }
  .fields, .paylist { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar__filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin-inline: -16px; padding-inline: 16px; }
  .toolbar__filters .chip { flex: none; }
  .toolbar__end { justify-content: space-between; }
  .sticky-buy__media, .sticky-buy__price { display: none; }
  .heading-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; gap: 14px; }
  .heading-tabs::-webkit-scrollbar { display: none; }
  .heading-tabs button { font-size: 1.35rem; white-space: nowrap; flex: none; }
  .heading-tabs .sep { flex: none; font-size: 1.35rem; }
  .promo-card { padding: 20px; gap: 8px; }
  .promo-card b { font-size: 16.5px; }
  .promo-card__art { width: 92px; height: 50px; top: 16px; inset-inline-start: 16px; }
  .promo-card .btn { padding: 0 14px; min-height: 38px; font-size: 13px; }
  .card__quick { opacity: 1; transform: none; inset-inline: auto 10px; bottom: 10px; width: 42px; min-height: 42px; padding: 0; font-size: 0; gap: 0; }
  .card__quick .icon { width: 20px; height: 20px; }
  .card__title { font-size: 16px; }
  .card__sizes { display: none; }
  .statement .pill { width: 1.9em; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .to-top { left: 16px; bottom: 16px; width: 44px; height: 44px; }
  .wa-float { right: 16px; bottom: 16px; }
  .layers__foot { flex-direction: column; align-items: stretch; text-align: center; }
  .faq__intro .btn + .btn { margin: 8px 0 0; }
}
@media (max-width: 420px) {
  .grid--products { gap: 12px; }
  .card__body { padding-inline: 2px; }
  .card__price b { font-size: 15px; }
  .footer__top { grid-template-columns: 1fr; }
  .mnav__cards { grid-template-columns: repeat(3, 1fr); }
}
@media (hover: none) {
  .card__quick { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
