/* =========================================================
   Kasser El Caramel — styles
   Calm · smooth · refined
   ========================================================= */

/* ---------- tokens ---------- */
:root {
  --bg: #F7F2EA;
  --bg-2: #F0E8DC;
  --surface: #FFFDF9;
  --surface-2: #F3ECE1;
  --text: #241A14;
  --muted: #7E6D60;
  --line: rgba(36, 26, 20, .08);
  --line-2: rgba(36, 26, 20, .16);
  --gold: #A07F4C;
  --gold-2: #C6A46C;
  --gold-soft: #EEE4D3;
  --rose: #A9675E;
  --sage: #5D7F74;
  --wa: #25A55F;
  --btn-bg: #241A14;
  --btn-fg: #F7F2EA;
  --btn-hover: #A07F4C;
  --shadow-sm: 0 1px 2px rgba(60, 40, 20, .04), 0 4px 14px -6px rgba(60, 40, 20, .10);
  --shadow: 0 2px 6px rgba(60, 40, 20, .04), 0 24px 48px -24px rgba(60, 40, 20, .22);
  --shadow-lg: 0 40px 80px -32px rgba(60, 40, 20, .32);
  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 76px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --font-ar: "Tajawal", system-ui, sans-serif;
  --font-ar-display: "Amiri", "El Messiri", serif;
  --font-ar-title: "El Messiri", "Tajawal", serif;
  --font-en-display: "Cormorant Garamond", Georgia, serif;
  --font-num: "Cormorant Garamond", Georgia, serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #100D0B; --bg-2: #15110E; --surface: #1A1612; --surface-2: #211B16;
    --text: #EFE6DA; --muted: #A8998A; --line: rgba(239, 230, 218, .07); --line-2: rgba(239, 230, 218, .15);
    --gold: #CBA86E; --gold-2: #E2C48F; --gold-soft: #2A231B; --rose: #D0897F; --sage: #8DB3A6;
    --btn-bg: #CBA86E; --btn-fg: #15100C; --btn-hover: #E2C48F;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3), 0 4px 14px -6px rgba(0,0,0,.5);
    --shadow: 0 2px 6px rgba(0,0,0,.25), 0 24px 48px -24px rgba(0,0,0,.7);
    --shadow-lg: 0 40px 80px -32px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #100D0B; --bg-2: #15110E; --surface: #1A1612; --surface-2: #211B16;
  --text: #EFE6DA; --muted: #A8998A; --line: rgba(239, 230, 218, .07); --line-2: rgba(239, 230, 218, .15);
  --gold: #CBA86E; --gold-2: #E2C48F; --gold-soft: #2A231B; --rose: #D0897F; --sage: #8DB3A6;
  --btn-bg: #CBA86E; --btn-fg: #15100C; --btn-hover: #E2C48F;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3), 0 4px 14px -6px rgba(0,0,0,.5);
  --shadow: 0 2px 6px rgba(0,0,0,.25), 0 24px 48px -24px rgba(0,0,0,.7);
  --shadow-lg: 0 40px 80px -32px rgba(0,0,0,.8);
  color-scheme: dark;
}

/* smooth theme switch */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color .6s var(--ease-soft), color .6s var(--ease-soft), border-color .6s var(--ease-soft), fill .6s, stroke .6s !important;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ar);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
svg { width: 1.2em; height: 1.2em; flex: none; }
h1, h2 { font-family: var(--font-ar-display); font-weight: 700; line-height: 1.25; margin: 0; }
h3 { font-family: var(--font-ar-title); font-weight: 600; line-height: 1.35; margin: 0; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { font-family: var(--font-en-display); font-weight: 600; letter-spacing: -.01em; line-height: 1.1; }
p { margin: 0; }
::selection { background: var(--gold-2); color: #fff; }
:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
[dir="rtl"] .flip { transform: scaleX(-1); }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
@media (max-width: 480px) { .container { width: calc(100% - 32px); } }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* image fade-in */
img.fade { opacity: 0; transition: opacity .9s var(--ease-soft), transform 1.4s var(--ease); }
img.fade.is-loaded { opacity: 1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  height: 52px; padding: 0 28px; border-radius: 999px;
  font-weight: 500; font-size: 15px; letter-spacing: .01em; white-space: nowrap;
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn--primary:hover { background: var(--btn-hover); color: var(--btn-fg); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; border: 1px solid var(--line-2); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { filter: brightness(1.06); box-shadow: 0 16px 30px -16px rgba(37,165,95,.7); }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; }
.link-btn { display: block; margin: 12px auto 0; color: var(--muted); font-size: 13.5px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); transition: color .4s; }
.link-btn:hover { color: var(--gold); }
.link { color: var(--gold); font-weight: 500; direction: ltr; unicode-bidi: isolate; letter-spacing: .04em; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  color: var(--text); transition: background-color .4s var(--ease), color .4s var(--ease);
}
.icon-btn:hover { background: var(--gold-soft); color: var(--gold); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn--accent { border: 1px solid var(--line-2); }
.icon-btn .count {
  position: absolute; top: 0; inset-inline-end: -2px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--gold); color: #fff; font: 600 10.5px/18px var(--font-ar); text-align: center;
  box-shadow: 0 0 0 2px var(--bg);
}
:root[data-theme="dark"] .icon-btn .count { color: #15100C; }
.icon-btn .count.bump { animation: bump .6s var(--ease); }
@keyframes bump { 35% { transform: scale(1.25); } }
.lang-label { font: 600 13px var(--font-ar); letter-spacing: .06em; }

.ico-moon { display: none; }
:root[data-theme="dark"] .ico-sun { display: none; }
:root[data-theme="dark"] .ico-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ico-sun { display: none; }
  :root:not([data-theme="light"]) .ico-moon { display: block; }
  :root:not([data-theme="light"]) .icon-btn .count { color: #15100C; }
}

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  background: transparent; border-bottom: 1px solid transparent;
  transition: background-color .6s var(--ease-soft), border-color .6s var(--ease-soft), backdrop-filter .6s;
}
.header.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.2) blur(16px); -webkit-backdrop-filter: saturate(1.2) blur(16px);
  border-color: var(--line);
}
.header__row { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 1px var(--gold-2), 0 0 0 4px var(--bg), 0 0 0 5px var(--line-2); }
.brand__text { display: grid; line-height: 1.15; }
.brand__text strong { font-family: var(--font-ar-display); font-size: 21px; font-weight: 700; }
html[lang="en"] .brand__text strong { font-family: var(--font-en-display); font-size: 22px; }
.brand__text small { font: 500 9.5px var(--font-ar); letter-spacing: .32em; color: var(--gold); direction: ltr; }
.nav { display: flex; gap: 6px; margin-inline: auto; }
.nav a { position: relative; padding: 8px 14px; font-weight: 500; font-size: 15px; color: var(--muted); transition: color .4s var(--ease-soft); }
.nav a::after {
  content: ""; position: absolute; inset-inline: 14px; bottom: 2px; height: 1px; background: var(--gold);
  transform: scaleX(0); transition: transform .6s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.actions { display: flex; align-items: center; gap: 2px; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0;
    padding: 8px 20px 20px; background: var(--bg); border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity .5s var(--ease-soft), transform .6s var(--ease);
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 16px 4px; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav-toggle { display: inline-grid; }
  .actions { margin-inline-start: auto; }
  .header { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}
@media (max-width: 480px) {
  .brand__text small { display: none; }
  .brand__text strong { font-size: 18px; }
  .icon-btn { width: 38px; height: 38px; }
  .header__row { gap: 8px; }
  .brand img { width: 38px; height: 38px; }
}
@media (max-width: 380px) { .brand__text { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 32px 0 0; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; min-height: min(680px, calc(100svh - var(--header-h) - 70px)); }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 500; color: var(--gold); letter-spacing: .04em; }
.rule { width: 36px; height: 1px; background: var(--gold); }
.hero__title { margin: 22px 0 22px; font-size: clamp(42px, 5.8vw, 76px); line-height: 1.15; }
html[lang="en"] .hero__title { font-size: clamp(44px, 6vw, 82px); line-height: 1.02; }
.hero__title span { display: block; }
.hero__title em { display: block; font-style: normal; color: var(--gold); }
html[lang="en"] .hero__title em { font-style: italic; font-weight: 500; }
.hero__lead { font-size: clamp(16px, 1.45vw, 18px); color: var(--muted); max-width: 50ch; font-weight: 300; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.stats { list-style: none; padding: 0; margin: 48px 0 0; display: flex; flex-wrap: wrap; }
.stats li { display: grid; padding-inline: 28px; border-inline-start: 1px solid var(--line-2); }
.stats li:first-child { padding-inline-start: 0; border: 0; }
.stats strong { font: 600 30px/1.1 var(--font-num); color: var(--text); direction: ltr; text-align: start; }
.stats span { color: var(--muted); font-size: 13px; margin-top: 4px; }

.hero__art { position: relative; height: 600px; }
.glow {
  position: absolute; inset: 10% 0 0 10%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--gold-2) 30%, transparent), transparent);
  filter: blur(20px);
}
.arch, .arch-line { position: absolute; width: 62%; height: 90%; top: 3%; inset-inline-start: 19%; border-radius: 999px 999px 24px 24px; }
.arch { margin: 0; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--surface-2); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch-line { border: 1px solid var(--gold-2); transform: translate(-18px, 18px); opacity: .7; }
[dir="rtl"] .arch-line { transform: translate(18px, 18px); }
.orb {
  position: absolute; margin: 0; width: 34%; aspect-ratio: 1; bottom: 2%; inset-inline-end: 4%;
  border-radius: 50%; overflow: hidden; border: 6px solid var(--bg); box-shadow: var(--shadow);
}
.orb img { width: 100%; height: 100%; object-fit: cover; }
.seal {
  position: absolute; width: 92px; height: 92px; top: 6%; inset-inline-end: 6%;
  border-radius: 50%; padding: 5px; background: var(--surface); box-shadow: var(--shadow);
}
.seal img { width: 100%; height: 100%; border-radius: 50%; }
.note {
  position: absolute; bottom: 12%; inset-inline-start: 2%; display: grid; gap: 2px;
  padding: 14px 20px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.note__k { font-size: 12px; color: var(--muted); }
.note strong { font: italic 500 20px/1.2 var(--font-en-display); color: var(--gold); direction: ltr; }

.marquee { margin-top: 56px; border-block: 1px solid var(--line); overflow: hidden; direction: ltr; }
.marquee__track { display: flex; align-items: center; gap: 36px; width: max-content; padding: 20px 0; animation: marquee 80s linear infinite; }
.marquee span { font: italic 500 22px var(--font-en-display); color: var(--muted); white-space: nowrap; }
.marquee span:nth-child(4n+1) { font-family: var(--font-ar-display); font-style: normal; font-size: 21px; }
.marquee i { color: var(--gold-2); font-style: normal; font-size: 11px; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 900px) {
  .hero { padding-top: 24px; }
  .hero__grid { grid-template-columns: 1fr; gap: 24px; min-height: 0; }
  .hero__copy { text-align: center; }
  .eyebrow { justify-content: center; }
  .hero__lead { margin-inline: auto; }
  .hero__cta, .stats { justify-content: center; }
  .stats strong { text-align: center; }
  .stats li { text-align: center; padding-inline: 20px; }
  .stats li:first-child { padding-inline-start: 20px; }
  .hero__art { height: 480px; max-width: 520px; width: 100%; margin-inline: auto; }
}
@media (max-width: 480px) {
  .hero__art { height: 400px; }
  .seal { width: 72px; height: 72px; }
  .note { padding: 10px 14px; }
  .note strong { font-size: 16px; }
  .btn { height: 50px; padding: 0 22px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .stats li { padding-inline: 14px; }
  .stats li:first-child { padding-inline-start: 14px; }
  .stats strong { font-size: 26px; }
}

/* ---------- sections ---------- */
.section { padding: 120px 0; }
.section--tint { background: var(--bg-2); }
.section__head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section__head h2, .custom__copy h2, .contact__card h2 { font-size: clamp(32px, 4vw, 50px); margin: 14px 0 14px; }
.section__head p { color: var(--muted); font-size: 16.5px; font-weight: 300; }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; letter-spacing: .14em; color: var(--gold); }
.kicker::before, .kicker::after { content: ""; width: 24px; height: 1px; background: currentColor; opacity: .6; }
.custom__copy .kicker::after, .contact__card .kicker::after { display: none; }
.center { text-align: center; margin-top: 40px; }
@media (max-width: 600px) { .section { padding: 80px 0; } .section__head { margin-bottom: 36px; } }

/* ---------- toolbar / search ---------- */
.toolbar { display: flex; gap: 12px; align-items: center; max-width: 720px; margin: 0 auto 22px; }
.search {
  flex: 1; display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 22px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px;
  transition: border-color .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
}
.search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 12%, transparent); }
.search svg { color: var(--muted); width: 18px; height: 18px; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 15.5px; }
.search input::placeholder { color: var(--muted); opacity: .8; }
.search kbd { font: 500 11px/1 var(--font-ar); padding: 5px 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); }
@media (hover: none) { .search kbd { display: none; } }
.toggle-fav {
  display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--line-2); font-weight: 500; font-size: 14.5px; color: var(--muted); white-space: nowrap;
  transition: all .5s var(--ease-soft);
}
.toggle-fav svg { width: 17px; height: 17px; }
.toggle-fav:hover { color: var(--rose); border-color: var(--rose); }
.toggle-fav[aria-pressed="true"] { background: var(--rose); border-color: var(--rose); color: #fff; }
@media (max-width: 600px) {
  .toolbar { flex-direction: column; align-items: stretch; }
  .search, .toggle-fav { height: 50px; }
  .toggle-fav { justify-content: center; }
}

/* ---------- chips ---------- */
.chips {
  display: flex; gap: 4px; overflow-x: auto; padding: 4px 2px 10px; margin-bottom: 12px;
  scrollbar-width: none; justify-content: safe center; scroll-snap-type: x proximity;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px;
  font-weight: 500; font-size: 14.5px; color: var(--muted); scroll-snap-align: start; border: 1px solid transparent;
  transition: color .5s var(--ease-soft), background-color .5s var(--ease-soft), border-color .5s var(--ease-soft);
}
.chip:hover { color: var(--text); }
.chip[aria-selected="true"] { color: var(--text); border-color: var(--gold-2); background: var(--surface); }
.chip .n { font: 500 13px var(--font-num); color: var(--gold); opacity: .85; }
@media (max-width: 1100px) { .chips { justify-content: flex-start; margin-inline: -20px; padding-inline: 20px; } }

.result-meta { text-align: center; color: var(--muted); font-size: 13.5px; min-height: 22px; margin-bottom: 20px; }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 40px 28px; }
@media (max-width: 600px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; } }

.card { position: relative; display: flex; flex-direction: column; animation: cardIn .9s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } }
.card__media {
  position: relative; aspect-ratio: 4 / 4.6; overflow: hidden; cursor: pointer; border-radius: var(--radius);
  background: var(--surface-2); box-shadow: var(--shadow-sm); transition: box-shadow .8s var(--ease);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .card__media { box-shadow: var(--shadow); }
.card:hover .card__media img.is-loaded { transform: scale(1.04); }
.card__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(to top, rgba(20, 12, 6, .18), transparent 40%); opacity: .8;
}
.art { width: 100%; height: 100%; display: grid; place-items: center; background: var(--surface-2); }
.art span { font-size: 64px; }

.badge {
  position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2; padding: 4px 12px; border-radius: 999px;
  font-size: 11.5px; font-weight: 500; letter-spacing: .03em; color: var(--text);
  background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.badge::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); margin-inline-end: 7px; vertical-align: middle; }
.badge--new::before { background: var(--sage); }
.badge--custom::before { background: var(--rose); }
.fav {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; color: var(--text);
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: color .4s var(--ease-soft), transform .5s var(--ease);
}
.fav svg { width: 18px; height: 18px; }
.fav:hover { color: var(--rose); }
.fav.on { color: var(--rose); }
.fav.on svg { animation: heart .7s var(--ease); }
@keyframes heart { 30% { transform: scale(1.25); } }

.card__body { display: flex; flex-direction: column; gap: 4px; padding: 18px 4px 0; flex: 1; }
.card__cat { font-size: 12px; font-weight: 500; letter-spacing: .06em; color: var(--gold); }
.card__title { font-size: 19px; cursor: pointer; transition: color .4s; }
.card__title:hover { color: var(--gold); }
.card__desc { color: var(--muted); font-size: 14px; font-weight: 300; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; }
.price { display: grid; line-height: 1.1; }
.price small { font-size: 11.5px; color: var(--muted); }
.price strong { font: 600 25px/1.1 var(--font-num); color: var(--text); direction: ltr; text-align: start; }
.price strong .per { font: 400 12.5px var(--font-ar); color: var(--muted); }
.add {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-2); font-weight: 500; font-size: 14px;
  transition: background-color .5s var(--ease-soft), color .5s var(--ease-soft), border-color .5s var(--ease-soft);
}
.add svg { width: 15px; height: 15px; }
.add:hover { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); }
.stepper { display: inline-flex; align-items: center; height: 40px; border-radius: 999px; border: 1px solid var(--gold-2); padding: 2px; background: var(--surface); }
.stepper button { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); transition: background-color .4s; }
.stepper button:hover { background: var(--gold-soft); }
.stepper span { min-width: 26px; text-align: center; font: 600 17px var(--font-num); }
.stepper svg { width: 14px; height: 14px; }

@media (max-width: 600px) {
  .card__media { border-radius: 16px; }
  .card__body { padding: 12px 2px 0; gap: 2px; }
  .card__title { font-size: 15.5px; }
  .card__desc { font-size: 12.5px; }
  .card__foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .price strong { font-size: 21px; }
  .add, .stepper { width: 100%; justify-content: center; height: 40px; }
  .stepper { justify-content: space-between; }
  .add .lbl-long { display: none; }
  .fav { width: 34px; height: 34px; top: 10px; inset-inline-end: 10px; }
  .badge { font-size: 10.5px; padding: 3px 9px; top: 10px; inset-inline-start: 10px; }
  .badge::before { margin-inline-end: 5px; }
}

.empty { text-align: center; padding: 48px 16px; }
.empty__emoji { font-size: 52px; opacity: .85; }
.empty h3 { font-size: 24px; margin: 12px 0 6px; }
.empty p { color: var(--muted); margin-bottom: 24px; font-weight: 300; }
.price-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 48px; font-weight: 300; }

/* ---------- custom ---------- */
.custom { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.custom__media { position: relative; height: 580px; }
.custom__media img { position: absolute; object-fit: cover; box-shadow: var(--shadow-lg); }
.custom__media img:first-child { width: 60%; height: 92%; inset-inline-start: 0; top: 0; border-radius: 999px 999px 22px 22px; }
.custom__media img:last-child { width: 46%; height: 56%; inset-inline-end: 0; bottom: 0; border-radius: 22px; border: 6px solid var(--bg-2); }
.custom__copy p { color: var(--muted); font-size: 16.5px; font-weight: 300; }
.ticks { list-style: none; padding: 0; margin: 30px 0 36px; display: grid; gap: 0; }
.ticks li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.ticks li:first-child { border-top: 1px solid var(--line); }
.ticks svg { width: 18px; height: 18px; color: var(--gold); }
@media (max-width: 900px) {
  .custom { grid-template-columns: 1fr; gap: 48px; }
  .custom__media { height: 440px; max-width: 500px; width: 100%; margin-inline: auto; }
}
@media (max-width: 480px) { .custom__media { height: 360px; } }

/* ---------- gallery ---------- */
.gallery { columns: 3 260px; column-gap: 18px; }
.g { display: block; position: relative; margin-bottom: 18px; border-radius: 18px; overflow: hidden; break-inside: avoid; background: var(--surface-2); }
.g img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; transition: transform 1.6s var(--ease), filter 1s var(--ease-soft); }
.g--tall img { aspect-ratio: 3 / 4.5; }
.g:hover img { transform: scale(1.03); }
@media (max-width: 600px) { .gallery { columns: 2; column-gap: 10px; } .g { margin-bottom: 10px; border-radius: 14px; } }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-block: 1px solid var(--line-2); }
.feature { position: relative; padding: 44px 32px; border-inline-start: 1px solid var(--line-2); }
.feature:first-child { border-inline-start: 0; }
.feature__ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--gold-2); color: var(--gold); margin-bottom: 22px; }
.feature__ico svg { width: 22px; height: 22px; }
.feature__n { position: absolute; top: 44px; inset-inline-end: 32px; font: italic 500 18px var(--font-num); color: var(--gold-2); }
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14.5px; font-weight: 300; }
@media (max-width: 1000px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(3) { border-inline-start: 0; }
  .feature:nth-child(n+3) { border-top: 1px solid var(--line-2); }
}
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  .feature { border-inline-start: 0; padding: 32px 8px; }
  .feature:nth-child(n+2) { border-top: 1px solid var(--line-2); }
  .feature__n { top: 32px; inset-inline-end: 8px; }
}

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: stretch; }
.contact__card { padding: 44px; background: var(--surface); border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.contact__list { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 0; }
.contact__list li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact__list li:last-child { border-bottom: 0; }
.contact__list div { display: grid; line-height: 1.4; }
.contact__list small { color: var(--muted); font-size: 12.5px; letter-spacing: .03em; }
.contact__list a, .contact__list span:not(.ci) { font-weight: 500; font-size: 16.5px; transition: color .4s; }
.contact__list a:hover { color: var(--gold); }
.contact__list [dir="ltr"] { text-align: start; }
.ci { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold-2); color: var(--gold); flex: none; }
.ci svg { width: 19px; height: 19px; }
.ci--wa { border-color: color-mix(in srgb, var(--wa) 50%, transparent); color: var(--wa); }
.policy { margin-top: 20px; font-size: 13px; color: var(--muted); font-weight: 300; }
.map { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); min-height: 400px; background: var(--surface-2); }
.map iframe { width: 100%; height: 100%; min-height: 400px; border: 0; display: block; filter: grayscale(.6) sepia(.15) contrast(.95); }
:root[data-theme="dark"] .map iframe { filter: invert(.9) hue-rotate(180deg) grayscale(.6) brightness(.9); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .map iframe { filter: invert(.9) hue-rotate(180deg) grayscale(.6) brightness(.9); } }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } .contact__card { padding: 30px 22px; } .contact__card .btn { width: 100%; } }

/* ---------- footer ---------- */
.footer { padding: 40px 0 110px; border-top: 1px solid var(--line); }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.brand--foot img { width: 40px; height: 40px; }
.brand--foot small { letter-spacing: .1em; font-style: italic; font-family: var(--font-en-display); font-size: 13px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); transition: all .5s var(--ease-soft); }
.socials a svg { width: 18px; height: 18px; }
.socials a:hover { border-color: var(--gold); color: var(--gold); }
.copy { color: var(--muted); font-size: 13.5px; }
.copy a { color: var(--gold); }
@media (max-width: 700px) { .footer__row { flex-direction: column; text-align: center; } }

/* ---------- floating WhatsApp ---------- */
.fab-wa {
  position: fixed; z-index: 35; bottom: max(22px, env(safe-area-inset-bottom)); inset-inline-start: 22px;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 18px 36px -14px rgba(37, 165, 95, .65);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.fab-wa svg { width: 27px; height: 27px; }
.fab-wa:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -14px rgba(37, 165, 95, .75); }

/* ---------- drawers ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(16, 10, 6, .38); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .6s var(--ease-soft); }
.scrim.show { opacity: 1; }
.drawer {
  position: fixed; z-index: 70; top: 0; bottom: 0; inset-inline-end: 0; width: min(440px, 100%);
  display: flex; flex-direction: column; background: var(--bg); box-shadow: var(--shadow-lg);
  transform: translateX(104%); visibility: hidden; transition: transform .7s var(--ease), visibility 0s .7s;
}
[dir="rtl"] .drawer { transform: translateX(-104%); }
.drawer.open { transform: none !important; visibility: visible; transition: transform .7s var(--ease); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { display: flex; align-items: center; gap: 12px; font-size: 22px; }
.drawer__head h3 svg { color: var(--gold); width: 20px; height: 20px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 10px 24px; overscroll-behavior: contain; }
.drawer__foot { padding: 18px 24px max(20px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }

.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); animation: cardIn .6s var(--ease) both; }
.line:last-child { border-bottom: 0; }
.thumb { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--surface-2); cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.line__info { min-width: 0; }
.line__info strong { display: block; font-family: var(--font-ar-title); font-weight: 600; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[lang="en"] .line__info strong { font-family: var(--font-en-display); font-size: 17px; }
.line__info small { color: var(--muted); font-size: 12.5px; }
.line__info .p, .line__side .p { color: var(--gold); font: 600 15px var(--font-num); direction: ltr; unicode-bidi: isolate; }
.line__side { display: grid; justify-items: end; gap: 6px; }
.line .stepper { height: 34px; }
.line .stepper button { width: 28px; height: 28px; }
.line .stepper span { font-size: 15px; min-width: 22px; }
.rm { color: var(--muted); padding: 4px; border-radius: 8px; transition: color .4s; }
.rm:hover { color: var(--rose); }
.rm svg { width: 17px; height: 17px; }
.mini-add { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 500; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; transition: all .5s var(--ease-soft); }
.mini-add:hover { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); }
.mini-add svg { width: 14px; height: 14px; }

.drawer-empty { text-align: center; padding: 72px 10px; color: var(--muted); font-weight: 300; }
.drawer-empty div { font-size: 44px; margin-bottom: 14px; opacity: .8; }
.drawer-empty h4 { margin: 0 0 6px; font-size: 20px; color: var(--text); font-family: var(--font-ar-display); }
.drawer-empty .btn { margin-top: 22px; height: 46px; }

.order-form { display: grid; gap: 10px; margin-bottom: 16px; }
.order-form input[type="text"], .order-form textarea {
  width: 100%; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg);
  outline: 0; resize: none; font-size: 14.5px; transition: border-color .4s var(--ease-soft);
}
.order-form input:focus, .order-form textarea:focus { border-color: var(--gold); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 8px; border-radius: 9px; font-weight: 500; font-size: 14px; color: var(--muted); transition: all .5s var(--ease-soft); }
.seg input:checked + span { background: var(--btn-bg); color: var(--btn-fg); }
.seg input:focus-visible + span { outline: 1.5px solid var(--gold); }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font-weight: 500; }
.total strong { font: 600 32px var(--font-num); color: var(--text); direction: ltr; }
.total-note { font-size: 12px; color: var(--muted); margin-bottom: 12px; font-weight: 300; }

/* ---------- modal ---------- */
.modal {
  width: min(880px, calc(100% - 24px)); max-height: calc(100svh - 24px); padding: 0; border: 0; border-radius: 24px;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); overflow: hidden;
}
.modal::backdrop { background: rgba(16, 10, 6, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[open] { animation: pop .7s var(--ease); }
.modal[open]::backdrop { animation: fadeIn .6s var(--ease-soft); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.985); } }
@keyframes fadeIn { from { opacity: 0; } }
.modal__close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 3; background: var(--surface); box-shadow: var(--shadow-sm); }
.modal__inner { display: grid; grid-template-columns: 1fr 1fr; max-height: calc(100svh - 24px); overflow: auto; }
.modal__media { min-height: 480px; background: var(--surface-2); }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal__body { padding: 48px 40px 36px; display: flex; flex-direction: column; gap: 12px; }
.modal__body h3 { font-family: var(--font-ar-display); font-weight: 700; font-size: 34px; line-height: 1.25; }
html[lang="en"] .modal__body h3 { font-family: var(--font-en-display); font-size: 38px; }
.modal__body p { color: var(--muted); font-weight: 300; }
.modal__body .price { margin-top: 8px; }
.modal__body .price strong { font-size: 36px; }
.modal__actions { display: flex; gap: 10px; margin-top: auto; padding-top: 28px; flex-wrap: wrap; }
.modal__actions .btn { flex: 1; }
.modal__actions .stepper { border-color: var(--gold-2); }
.modal__actions .btn.is-fav { color: var(--rose); border-color: var(--rose); }
@media (max-width: 700px) {
  .modal__inner { grid-template-columns: 1fr; }
  .modal__media { min-height: 0; aspect-ratio: 1 / .92; }
  .modal__body { padding: 26px 22px 24px; }
  .modal__body h3 { font-size: 26px; }
}

/* ---------- toasts ---------- */
.toasts { position: fixed; z-index: 90; bottom: 28px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; width: max-content; max-width: calc(100% - 32px); pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg); font-weight: 500; font-size: 14px; box-shadow: var(--shadow-lg);
  animation: toastIn .7s var(--ease) both;
}
.toast.out { animation: toastOut .5s var(--ease-soft) both; }
.toast svg { width: 17px; height: 17px; color: var(--gold-2); }
:root[data-theme="dark"] .toast svg { color: #15100C; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  img.fade { opacity: 1; }
}
