/* رِواق — كحلي وذهبي وعاجي. الحركة كلها بـapp.js (GSAP + Lenis). */
:root {
  --navy: #0E1A30;
  --navy-2: #14213D;
  --navy-3: #1D2C4D;
  --gold: #C8A96A;
  --gold-soft: #DCC79E;
  --ivory: #F5EFE6;
  --ivory-2: #EDE4D6;
  --ink: #1B1B1F;
  --muted: #6E6A63;
  --ar-display: "Amiri", serif;
  --ar-text: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --lat: "Cormorant Garamond", serif;
  --ease: cubic-bezier(.77, 0, .175, 1);
  --pad: clamp(20px, 5vw, 80px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--ar-text);
  font-weight: 300;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.7;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }
::selection { background: var(--gold); color: var(--navy); }

.lat { font-family: var(--lat); letter-spacing: .28em; text-transform: uppercase; font-weight: 400; }
.eyebrow { font-family: var(--lat); letter-spacing: .35em; font-size: 13px; color: var(--gold); text-transform: uppercase; }
.display { font-family: var(--ar-display); font-weight: 400; line-height: 1.25; }

/* ───── شاشة الافتتاح ───── */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--navy);
  display: grid; place-items: center;
}
.preloader__inner { display: grid; justify-items: center; gap: 36px; }
.preloader__logo { width: clamp(120px, 16vw, 190px); opacity: 0; }
.preloader__bar { width: 160px; height: 1px; background: rgba(200, 169, 106, .2); overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: right; }

/* ───── الستارة ───── */
.curtain { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.curtain__gold, .curtain__navy { position: absolute; inset: 0; visibility: hidden; } /* المكان بيتحكم فيه GSAP (yPercent) — translate بالـCSS بينجمع معه */
.curtain__gold { background: var(--gold); }
.curtain__navy { background: var(--navy); display: grid; place-items: center; }
.curtain__navy img { width: 90px; opacity: 0; }

/* ───── المؤشّر ───── */
.cursor { position: fixed; top: 0; left: 0; z-index: 95; pointer-events: none; mix-blend-mode: normal; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; translate: -50% -50%; }
.cursor__dot { width: 6px; height: 6px; background: var(--gold); }
.cursor__ring {
  width: 38px; height: 38px; border: 1px solid rgba(200, 169, 106, .6);
  display: grid; place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), background .45s, border-color .45s;
}
.cursor__label { font-size: 12px; color: var(--navy); opacity: 0; transition: opacity .3s; font-weight: 500; }
.cursor.is-view .cursor__ring { width: 92px; height: 92px; background: var(--gold); border-color: var(--gold); }
.cursor.is-view .cursor__label { opacity: 1; }
.cursor.is-link .cursor__ring { width: 58px; height: 58px; }
@media (hover: none), (max-width: 900px) { .cursor { display: none; } }

/* ───── الهيدر ───── */
.header {
  position: fixed; top: 0; inset-inline: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  color: var(--ivory);
  transition: background .6s, padding .6s, color .6s, backdrop-filter .6s;
}
.header.is-solid { background: rgba(14, 26, 48, .82); backdrop-filter: blur(14px); padding-block: 14px; }
.header.is-light:not(.is-solid) { color: var(--navy); }
.header__logo { display: flex; align-items: center; gap: 12px; font-family: var(--ar-display); font-size: 28px; }
.header__logo img { height: 34px; width: auto; }
.header.is-light:not(.is-solid) .header__logo img { filter: brightness(.55) saturate(1.3); }
.header__nav { display: flex; gap: 44px; font-size: 15px; }
.header__nav a { position: relative; padding-block: 4px; }
.header__nav a::after {
  content: ""; position: absolute; bottom: 0; inset-inline: 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.header__nav a:hover::after, .header__nav a.is-active::after { transform: scaleX(1); transform-origin: right; }
.header__menu { display: none; width: 34px; height: 20px; position: relative; }
.header__menu span { position: absolute; inset-inline: 0; height: 1px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.header__menu span:first-child { top: 4px; }
.header__menu span:last-child { top: 15px; }
body.menu-open .header__menu span:first-child { top: 10px; transform: rotate(45deg); }
body.menu-open .header__menu span:last-child { top: 10px; transform: rotate(-45deg); }
@media (max-width: 900px) {
  .header__nav { display: none; }
  .header__menu { display: block; }
}

.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--navy); color: var(--ivory);
  display: grid; place-items: center; clip-path: inset(0 0 100% 0); visibility: hidden;
}
.menu__links { display: grid; gap: 10px; text-align: center; }
.menu__links a { font-family: var(--ar-display); font-size: clamp(42px, 10vw, 72px); overflow: hidden; display: block; line-height: 1.4; }
.menu__links a span { display: inline-block; }
.menu__logo { position: absolute; bottom: 40px; width: 70px; opacity: .6; }

/* ───── عام ───── */
.section { padding: clamp(80px, 12vw, 170px) var(--pad); }
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 17px 36px; border: 1px solid currentColor; border-radius: 100px;
  font-size: 15px; position: relative; overflow: hidden; isolation: isolate;
  transition: color .6s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold);
  transform: translateY(101%); border-radius: 50% 50% 0 0; transition: transform .7s var(--ease), border-radius .7s var(--ease);
}
.btn:hover { color: var(--navy); border-color: var(--gold); }
.btn:hover::before { transform: translateY(0); border-radius: 0; }
.btn--gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn--gold::before { background: var(--ivory); }
.btn .arrow { width: 18px; height: 1px; background: currentColor; position: relative; }
.btn .arrow::before { content: ""; position: absolute; left: 0; top: -3px; width: 7px; height: 7px; border-left: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }

.reveal-img { overflow: hidden; position: relative; }
.reveal-img img { width: 100%; height: 100%; object-fit: cover; }

/* ───── الهيرو ───── */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; color: var(--ivory); background: var(--navy); }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 115%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14, 26, 48, .55) 0%, rgba(14, 26, 48, .15) 40%, rgba(14, 26, 48, .85) 100%);
}
.hero__content { position: absolute; inset-inline: var(--pad); bottom: clamp(60px, 11vh, 120px); display: grid; gap: 26px; max-width: 900px; }
.hero__title { font-family: var(--ar-display); font-size: clamp(46px, 7.4vw, 118px); line-height: 1.15; }
.hero__sub { font-size: clamp(16px, 1.4vw, 19px); max-width: 520px; opacity: .85; }
.hero__scroll { position: absolute; left: var(--pad); bottom: clamp(60px, 11vh, 120px); display: grid; justify-items: center; gap: 14px; font-size: 11px; }
.hero__scroll i { width: 1px; height: 70px; background: rgba(245, 239, 230, .25); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--gold); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@media (max-width: 700px) { .hero__scroll { display: none; } }

/* ───── شريط الكلام ───── */
.marquee { background: var(--navy); color: var(--gold-soft); padding: 26px 0; overflow: hidden; border-top: 1px solid rgba(200, 169, 106, .15); }
.marquee__track { display: flex; width: max-content; gap: 0; }
.marquee__item { font-family: var(--ar-display); font-size: clamp(28px, 3.4vw, 48px); white-space: nowrap; padding-inline: 40px; display: flex; align-items: center; gap: 80px; }
.marquee__item img { height: 34px; width: auto; }

/* ───── التعريف ───── */
.intro { background: var(--ivory); text-align: center; }
.intro .eyebrow { margin-bottom: 34px; display: block; }
.intro__text { font-family: var(--ar-display); font-size: clamp(30px, 4.2vw, 64px); line-height: 1.55; max-width: 1150px; margin-inline: auto; color: var(--navy); }
.intro__text .word { opacity: .14; }

/* ───── الأقسام ───── */
.cats { background: var(--ivory); padding-top: 0; }
.cats__head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 50px; gap: 20px; flex-wrap: wrap; }
.cats__head h2 { font-family: var(--ar-display); font-size: clamp(36px, 4.5vw, 64px); color: var(--navy); line-height: 1.2; }
.cats__list { border-top: 1px solid rgba(14, 26, 48, .14); }
.cat-row {
  display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 30px;
  padding: 34px 0; border-bottom: 1px solid rgba(14, 26, 48, .14); position: relative;
  color: var(--navy); transition: padding .7s var(--ease);
}
.cat-row__num { font-family: var(--lat); font-size: 18px; color: var(--gold); }
.cat-row__name { font-family: var(--ar-display); font-size: clamp(30px, 4vw, 58px); line-height: 1.2; transition: transform .7s var(--ease), color .5s; }
.cat-row__en { font-family: var(--lat); letter-spacing: .3em; font-size: 13px; text-transform: uppercase; color: var(--muted); }
.cat-row:hover .cat-row__name { transform: translateX(-24px); color: var(--gold); }
.cat-row:hover { padding-inline: 18px; }
.cat-preview {
  position: fixed; top: 0; left: 0; width: 320px; height: 400px; z-index: 30; pointer-events: none;
  overflow: hidden; opacity: 0; transform: scale(.6); border-radius: 2px;
}
.cat-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (max-width: 900px) { .cat-preview { display: none; } .cat-row { grid-template-columns: 44px 1fr; } .cat-row__en { display: none; } }

/* ───── المجموعة الأفقية ───── */
.hscroll { background: var(--navy); color: var(--ivory); overflow: hidden; position: relative; }
.hscroll__inner { height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 46px; }
.hscroll__head { padding-inline: var(--pad); display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.hscroll__head h2 { font-family: var(--ar-display); font-size: clamp(36px, 4.5vw, 64px); line-height: 1.2; }
.hscroll__track { display: flex; gap: 40px; padding-inline: var(--pad); width: max-content; will-change: transform; }
.hcard { width: clamp(270px, 28vw, 430px); flex: none; }
.hcard__media { aspect-ratio: 4 / 5; overflow: hidden; position: relative; background: var(--navy-3); }
.hcard__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.4s var(--ease); }
.hcard:hover .hcard__media img { transform: scale(1.02); }
.hcard__meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; gap: 12px; }
.hcard__name { font-family: var(--ar-display); font-size: 26px; }
.hcard__cat { font-size: 13px; color: var(--gold-soft); }
.hscroll__progress { margin-inline: var(--pad); height: 1px; background: rgba(245, 239, 230, .15); }
.hscroll__progress span { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: right; }

/* ───── الصنعة ───── */
.craft { background: var(--ivory-2); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.craft__media { aspect-ratio: 4 / 5; }
.craft__media img { height: 120%; }
.craft h2 { font-family: var(--ar-display); font-size: clamp(36px, 4.4vw, 62px); color: var(--navy); line-height: 1.25; margin: 22px 0 26px; }
.craft p { font-size: 17px; color: #4b4842; max-width: 480px; }
.craft__points { margin-top: 44px; display: grid; gap: 0; border-top: 1px solid rgba(14, 26, 48, .14); }
.craft__points div { padding: 20px 0; border-bottom: 1px solid rgba(14, 26, 48, .14); display: flex; gap: 22px; align-items: baseline; color: var(--navy); font-size: 18px; }
.craft__points b { font-family: var(--lat); color: var(--gold); font-weight: 400; }
@media (max-width: 900px) { .craft { grid-template-columns: 1fr; } }

/* ───── دعوة ───── */
.cta { position: relative; overflow: hidden; color: var(--ivory); text-align: center; min-height: 90svh; display: grid; place-items: center; }
.cta__bg { position: absolute; inset: -10% 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta__bg::after { content: ""; position: absolute; inset: 0; background: rgba(14, 26, 48, .72); }
.cta__content { position: relative; display: grid; justify-items: center; gap: 30px; }
.cta__content img { width: 74px; }
.cta h2 { font-family: var(--ar-display); font-size: clamp(40px, 6vw, 92px); line-height: 1.2; }

/* ───── الفوتر ───── */
.footer { background: var(--navy); color: rgba(245, 239, 230, .7); padding: 90px var(--pad) 40px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; padding-bottom: 60px; border-bottom: 1px solid rgba(200, 169, 106, .18); }
.footer__logo { width: 120px; }
.footer h4 { color: var(--gold); font-family: var(--lat); letter-spacing: .3em; font-weight: 400; font-size: 13px; margin-bottom: 20px; }
.footer a { display: block; padding-block: 5px; transition: color .4s; }
.footer a:hover { color: var(--gold); }
.footer__bottom { display: flex; justify-content: space-between; padding-top: 30px; font-size: 13px; gap: 20px; flex-wrap: wrap; }
@media (max-width: 800px) { .footer__top { grid-template-columns: 1fr; } }

/* ───── صفحة المجموعة ───── */
.page-head { background: var(--navy); color: var(--ivory); padding: clamp(150px, 22vh, 220px) var(--pad) 70px; }
.page-head h1 { font-family: var(--ar-display); font-size: clamp(48px, 7vw, 110px); line-height: 1.15; }
.page-head p { margin-top: 18px; opacity: .7; max-width: 520px; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; padding: 40px var(--pad) 10px; position: sticky; top: 62px; z-index: 20; background: var(--ivory); }
.chip { padding: 10px 22px; border-radius: 100px; border: 1px solid rgba(14, 26, 48, .2); font-size: 14px; color: var(--navy); transition: background .5s var(--ease), color .5s, border-color .5s; }
.chip:hover { border-color: var(--gold); }
.chip.is-active { background: var(--navy); color: var(--ivory); border-color: var(--navy); }
.chip sup { font-family: var(--lat); color: var(--gold); margin-inline-start: 4px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px 36px; padding: 40px var(--pad) clamp(80px, 10vw, 140px); }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card { display: block; color: var(--navy); }
.card__media { aspect-ratio: 4 / 5; overflow: hidden; position: relative; background: var(--ivory-2); }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), opacity .9s var(--ease); }
.card__media img + img { opacity: 0; transform: scale(1.08); }
.card:hover .card__media img:first-child { transform: scale(1.06); }
.card:hover .card__media img + img { opacity: 1; transform: scale(1); }
.card__tag { position: absolute; top: 18px; right: 18px; z-index: 2; font-size: 12px; background: rgba(245, 239, 230, .9); padding: 5px 14px; border-radius: 100px; }
.card__meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; align-items: baseline; }
.card__name { font-family: var(--ar-display); font-size: 25px; }
.card__en { font-family: var(--lat); letter-spacing: .2em; font-size: 12px; color: var(--muted); text-transform: uppercase; }
.card__swatches { display: flex; gap: 6px; margin-top: 10px; }
.card__swatches i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .1); }

/* ───── صفحة المنتج ───── */
.product { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 6vw, 110px); padding: clamp(120px, 16vh, 160px) var(--pad) clamp(80px, 10vw, 140px); background: var(--ivory); }
.gallery { display: grid; gap: 16px; align-self: start; }
.gallery__main { aspect-ratio: 4 / 5; position: relative; overflow: hidden; background: var(--ivory-2); }
.gallery__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 12px; }
.gallery__thumbs button { width: 86px; aspect-ratio: 1; overflow: hidden; opacity: .5; transition: opacity .4s; outline: 1px solid transparent; outline-offset: 3px; }
.gallery__thumbs button.is-active { opacity: 1; outline-color: var(--gold); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pinfo { align-self: start; position: sticky; top: 110px; color: var(--navy); }
.pinfo__crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 10px; }
.pinfo__crumbs a:hover { color: var(--gold); }
.pinfo h1 { font-family: var(--ar-display); font-size: clamp(42px, 4.6vw, 70px); line-height: 1.2; margin: 22px 0 6px; }
.pinfo__en { font-family: var(--lat); letter-spacing: .3em; font-size: 14px; color: var(--gold); text-transform: uppercase; }
.pinfo__price { margin-top: 26px; font-size: 18px; }
.pinfo__desc { margin-top: 22px; font-size: 17px; color: #4b4842; }
.pinfo__label { margin-top: 38px; font-size: 14px; color: var(--muted); }
.pinfo__label b { color: var(--navy); font-weight: 500; }
.models { display: flex; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.models button { width: 40px; height: 40px; border-radius: 50%; position: relative; border: 1px solid rgba(0, 0, 0, .12); }
.models button::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--gold); opacity: 0; transform: scale(.8); transition: opacity .4s, transform .5s var(--ease); }
.models button.is-active::after { opacity: 1; transform: scale(1); }
.specs { margin-top: 40px; border-top: 1px solid rgba(14, 26, 48, .14); }
.specs__row { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid rgba(14, 26, 48, .14); font-size: 15px; }
.specs__row span:first-child { color: var(--muted); }
.pinfo .btn { margin-top: 40px; }
.related { background: var(--ivory-2); }
.related h2 { font-family: var(--ar-display); font-size: clamp(32px, 4vw, 54px); color: var(--navy); padding: 0 var(--pad); }
.related .grid { padding-bottom: 0; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } .pinfo { position: static; } }

/* ───── التواصل ───── */
.contact { min-height: 100svh; background: var(--navy); color: var(--ivory); display: grid; grid-template-columns: 1fr 1fr; }
.contact__media { position: relative; overflow: hidden; }
.contact__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact__body { padding: clamp(140px, 20vh, 200px) var(--pad) 80px; display: grid; align-content: center; gap: 30px; }
.contact h1 { font-family: var(--ar-display); font-size: clamp(44px, 6vw, 92px); line-height: 1.15; }
.contact__lines { display: grid; gap: 0; border-top: 1px solid rgba(200, 169, 106, .2); }
.contact__lines div { display: flex; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid rgba(200, 169, 106, .2); gap: 20px; }
.contact__lines span:first-child { color: var(--gold-soft); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } .contact__media { min-height: 50vh; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ───── صور المنتجات: مقصوصة على أبيض ⇒ contain مو cover (11/10) ───── */
.card__media, .gallery__main, .hcard__media, .cat-preview, .gallery__thumbs button { background: #fff; }
.card__media img, .gallery__main img, .hcard__media img, .cat-preview img, .gallery__thumbs img { object-fit: contain; padding: 7%; }
.gallery__thumbs img { padding: 6%; }
.card__media { aspect-ratio: 1 / 1; }
.gallery__main { aspect-ratio: 1 / 1; }
.hcard__media { aspect-ratio: 1 / 1; }
.hcard__media img { transform: scale(1.04); }
.card__swatches:empty { display: none; }

/* تصاميم (فنادق · أبواب): صور مشاهد كاملة ⇒ cover بلا حشوة */
.card__media.is-cover, .gallery__main.is-cover, .hcard__media.is-cover { background: var(--ivory-2); }
.card__media.is-cover img, .gallery__main.is-cover img, .hcard__media.is-cover img { object-fit: cover; padding: 0; }
.gallery__main.is-cover { aspect-ratio: 4 / 5; }
/* جملة الإلهام */
.pinfo__story { margin-top: 24px; font-family: var(--ar-display); font-size: 20px; line-height: 1.7; color: var(--navy); border-inline-start: 2px solid var(--gold); padding-inline-start: 18px; }
.card__meta { flex-wrap: wrap; } .card__name { font-size: 22px; }

/* الفلاتر: صف واحد بيتمرّر بالعرض (27 قسم كانوا ياكلوا شاشة الموبايل، 11/10) */
body { -webkit-tap-highlight-color: transparent; }
.filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 14px; -webkit-mask-image: linear-gradient(to left, #000 85%, transparent); mask-image: linear-gradient(to left, #000 85%, transparent); }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: none; white-space: nowrap; }
.more { display: flex; justify-content: center; padding: 0 var(--pad) clamp(80px, 10vw, 140px); }
.grid[data-grid] { padding-bottom: 50px; }
/* الموبايل: المعرض الأفقي بالسحب العادي (بلا تثبيت) */
.hscroll.is-native .hscroll__inner { height: auto; padding-block: 90px; }
.hscroll.is-native .hscroll__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.hscroll.is-native .hscroll__track::-webkit-scrollbar { display: none; }
.hscroll.is-native .hcard { scroll-snap-align: start; width: 78vw; }
.hscroll.is-native .hscroll__progress { display: none; }

/* أسهم الأقسام عاللابتوب */
.filters-wrap { position: sticky; top: 62px; z-index: 20; background: var(--ivory); display: flex; align-items: center; }
.filters-wrap .filters { position: static; flex: 1; min-width: 0; cursor: grab; user-select: none; }
.fbtn { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(14, 26, 48, .2); margin-inline: 10px; position: relative; transition: opacity .3s, background .3s, border-color .3s; margin-top: 30px; }
.fbtn::after { content: ""; position: absolute; inset: 0; margin: auto; width: 9px; height: 9px; border-top: 1.5px solid var(--navy); border-left: 1.5px solid var(--navy); }
.fbtn--prev::after { transform: translateX(-2px) rotate(135deg); }   /* سهم لليمين (بداية القائمة) */
.fbtn--next::after { transform: translateX(2px) rotate(-45deg); }    /* سهم للشمال */
.fbtn:hover { background: var(--navy); border-color: var(--navy); }
.fbtn:hover::after { border-color: var(--ivory); }
.fbtn.is-off { opacity: .25; pointer-events: none; }
@media (hover: none), (pointer: coarse) { .fbtn { display: none; } }


/* ───── مختاراتي ───── */
.fav { position: absolute; top: 14px; left: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; background: rgba(245, 239, 230, .92); display: grid; place-items: center; transition: background .3s, transform .3s; }
.fav svg { width: 19px; height: 19px; fill: none; stroke: var(--navy); stroke-width: 1.6; transition: fill .3s, stroke .3s; }
.fav:hover { transform: scale(1.08); }
.fav.is-on svg { fill: var(--gold); stroke: var(--gold); }
.pinfo .fav { position: static; width: auto; height: auto; border-radius: 100px; padding: 15px 26px; margin-top: 40px; margin-inline-start: 10px; display: inline-flex; gap: 10px; border: 1px solid rgba(14, 26, 48, .2); background: transparent; font-size: 15px; color: var(--navy); vertical-align: top; }
.header__fav { position: relative; display: grid; place-items: center; width: 38px; height: 38px; margin-inline-start: auto; margin-inline-end: 22px; }
.header__fav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.header__favn { position: absolute; top: -2px; left: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: var(--navy); font-size: 11px; display: grid; place-items: center; font-weight: 500; }
.header__favn.is-zero { display: none; }
@media (min-width: 901px) { .header__fav { margin-inline-start: 0; margin-inline-end: 0; order: 3; } .header__nav { margin-inline-start: auto; margin-inline-end: 30px; } }

/* ───── تكبير الكرت لصفحة القطعة ───── */
.zoom-fly { position: fixed; z-index: 80; overflow: hidden; background: #fff; pointer-events: none; will-change: left, top, width, height; }
.zoom-fly img { width: 100%; height: 100%; object-fit: contain; }
.zoom-fly.is-cover img { object-fit: cover; }


/* ───── بحث + مجموعات (11/10) ───── */
.search { padding: 34px var(--pad) 0; display: flex; align-items: center; gap: 16px; background: var(--ivory); }
.search__in { flex: 1; max-width: 520px; font: inherit; font-size: 16px; padding: 14px 22px; border-radius: 100px; border: 1px solid rgba(14, 26, 48, .2); background: #fff; color: var(--navy); outline: none; transition: border-color .3s, box-shadow .3s; }
.search__in:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(200, 169, 106, .18); }
.search__n { font-size: 14px; color: var(--muted); }
.groups { display: flex; gap: 10px; flex-wrap: wrap; padding: 22px var(--pad) 0; background: var(--ivory); }
.grp { padding: 12px 24px; border-radius: 100px; font-size: 15px; color: var(--navy); border: 1px solid transparent; background: var(--ivory-2); transition: background .4s, color .4s; }
.grp.is-active { background: var(--gold); color: var(--navy); font-weight: 500; }
.grp sup { font-family: var(--lat); margin-inline-start: 4px; opacity: .7; }
.filters-wrap .filters { padding-top: 18px; }
.cat-row__subs { display: block; font-family: var(--ar-text); font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.6; }

/* ───── شريط الطلب السفلي عالموبايل ───── */
.pbar { display: none; }
@media (max-width: 900px) {
  .pbar { display: flex; gap: 10px; align-items: center; position: fixed; inset-inline: 0; bottom: 0; z-index: 40; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(14, 26, 48, .94); backdrop-filter: blur(10px); }
  .pbar__order { flex: 1; text-align: center; padding: 15px; border-radius: 100px; background: var(--gold); color: var(--navy); font-weight: 500; font-size: 16px; }
  .pbar .fav { position: static; width: 50px; height: 50px; flex: none; }
  .product { padding-bottom: 120px; }
}

/* صفحة القطعة عالموبايل (11/10): 8 صور صغيرة × 86px كانوا يعرّضوا العمود لـ~790px ⇒ الصورة مقصوصة والصفحة أعرض من الشاشة */
.gallery, .pinfo { min-width: 0; }
.gallery__thumbs { overflow-x: auto; scrollbar-width: none; }
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumbs button { flex: none; }
@media (max-width: 900px) { .gallery__thumbs button { width: 64px; } }


/* شوفها ببيتك */
.room { margin-top: 26px; }
.room__btn { display: flex; gap: 16px; align-items: center; padding: 18px 22px; border-radius: 18px; background: var(--navy); color: var(--ivory); transition: transform .5s var(--ease), box-shadow .5s; }
.room__btn:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(14, 26, 48, .6); }
.room__btn svg { width: 34px; height: 34px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.4; }
.room__btn b { display: block; font-family: var(--ar-display); font-size: 22px; font-weight: 400; color: var(--gold-soft); }
.room__btn small { display: block; font-size: 13px; opacity: .75; line-height: 1.6; }

/* نافذة «شوفها ببيتك» (مخفية لحتى الإطلاق — ?room=1) */
.rm { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 18px; visibility: hidden; }
.rm__veil { position: absolute; inset: 0; background: rgba(14, 26, 48, .72); backdrop-filter: blur(8px); }
.rm__box { position: relative; width: min(680px, 100%); max-height: calc(100svh - 36px); overflow-y: auto; overscroll-behavior: contain; background: var(--navy); color: var(--ivory); border: 1px solid rgba(200, 169, 106, .28); border-radius: 22px; padding: clamp(24px, 4vw, 40px); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6); }
.rm__box h2 { font-family: var(--ar-display); font-weight: 400; font-size: clamp(32px, 5vw, 44px); color: var(--gold-soft); line-height: 1.3; margin: 6px 0 4px; }
.rm__lead { font-size: 15px; opacity: .78; margin-bottom: 22px; }
.rm__lead b { color: var(--gold); font-weight: 500; font-family: var(--lat); letter-spacing: .08em; }
.rm__x { position: absolute; top: 18px; left: 18px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(245, 239, 230, .2); transition: border-color .3s, transform .5s var(--ease); }
.rm__x:hover { border-color: var(--gold); transform: rotate(90deg); }
.rm__x i { position: absolute; left: 50%; top: 50%; width: 16px; height: 1px; background: var(--ivory); transform: translate(-50%, -50%) rotate(45deg); }
.rm__x i + i { transform: translate(-50%, -50%) rotate(-45deg); }
.rm__stage > div { display: none; }
.rm__pick { grid-template-columns: 1fr 1fr; gap: 14px; }
.rm__opt { display: grid; place-items: center; gap: 12px; padding: 34px 16px; border: 1px dashed rgba(200, 169, 106, .45); border-radius: 16px; cursor: pointer; text-align: center; transition: background .4s, border-color .4s; }
.rm__opt:hover { background: rgba(200, 169, 106, .08); border-color: var(--gold); }
.rm__opt svg { width: 40px; height: 40px; fill: none; stroke: var(--gold); stroke-width: 1.2; }
.rm__opt b { font-weight: 400; font-size: 16px; }
.rm__prev { position: relative; border-radius: 14px; overflow: hidden; background: var(--navy-2); }
.rm__prev img { width: 100%; max-height: 52svh; object-fit: contain; }
.rm__work { position: absolute; inset: 0; display: none; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 22px; background: linear-gradient(to top, rgba(14, 26, 48, .92), rgba(14, 26, 48, .25) 70%); }
.rm__work p { font-size: 15px; color: var(--gold-soft); }
.rm__line { display: block; height: 2px; background: rgba(245, 239, 230, .15); border-radius: 2px; overflow: hidden; }
.rm__line i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-soft), var(--gold)); transform-origin: right; transform: scaleX(0); box-shadow: 0 0 12px var(--gold); }
.rm__cmp { position: relative; --x: 50%; border-radius: 14px; overflow: hidden; touch-action: none; cursor: ew-resize; user-select: none; max-height: 60svh; margin-inline: auto; }
.rm__cmp img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.rm__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.rm__handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: var(--gold); box-shadow: 0 0 10px rgba(0, 0, 0, .35); }
.rm__handle span { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--navy); border: 1px solid var(--gold); }
.rm__handle span::before, .rm__handle span::after { content: ""; position: absolute; top: 50%; width: 7px; height: 7px; border-top: 1px solid var(--gold); border-left: 1px solid var(--gold); }
.rm__handle span::before { left: 10px; transform: translateY(-50%) rotate(-45deg); }
.rm__handle span::after { right: 10px; transform: translateY(-50%) rotate(135deg); }
.rm__tag { position: absolute; top: 12px; font-size: 12px; padding: 3px 12px; border-radius: 100px; background: rgba(14, 26, 48, .7); color: var(--ivory); pointer-events: none; }
.rm__tag--b { left: 12px; }
.rm__tag--a { right: 12px; }
.rm__msg { min-height: 0; font-size: 14px; margin-top: 12px; }
.rm__msg.is-err { color: #F0B8A8; }
.rm__acts { display: none; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.rm__acts .btn { display: none; padding: 14px 28px; }
.rm__note { display: none; font-size: 12.5px; opacity: .6; margin-top: 14px; }
.rm[data-state="pick"] .rm__pick { display: grid; }
.rm[data-state="ready"] .rm__prev, .rm[data-state="busy"] .rm__prev { display: block; }
.rm[data-state="busy"] .rm__work { display: flex; }
.rm[data-state="done"] .rm__cmp { display: block; }
.rm[data-state="ready"] .rm__acts, .rm[data-state="done"] .rm__acts { display: flex; }
.rm[data-state="ready"] .rm__go, .rm[data-state="ready"] .rm__again,
.rm[data-state="done"] .rm__dl, .rm[data-state="done"] .rm__again { display: inline-flex; }
.rm[data-state="done"] .rm__note, .rm[data-state="busy"] .rm__note { display: block; }
button.room__btn { width: 100%; text-align: right; }
@media (max-width: 520px) { .rm { padding: 0; align-items: end; } .rm__box { border-radius: 22px 22px 0 0; max-height: 94svh; } .rm__opt { padding: 26px 10px; } }
