/* ============================================================
   LACÉ — دار الأناقة | Luxury Bridal & Couture House
   Design system + components  (RTL, bilingual AR/EN)
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Warm luxury neutrals */
  --bg:        #FBF8F3;
  --bg-2:      #F4ECE1;
  --bg-3:      #EFE6D8;
  --surface:   #FFFFFF;
  --ink:       #2A2521;
  --ink-2:     #4A433C;
  --ink-soft:  #8A8076;
  --line:      #EAE0D2;
  --line-2:    #DDD0BD;

  /* Brand */
  --gold:      #BFA06A;
  --gold-2:    #A6864B;
  --gold-soft: #E7D8B8;
  --rose:      #C98C79;
  --rose-soft: #F2E2DB;
  --dark:      #211D19;
  --sale:      #C2665A;
  --ok:        #6E8B6E;

  /* Effects */
  --r-xs: 8px;
  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(42,37,33,.04), 0 2px 6px rgba(42,37,33,.04);
  --sh-2: 0 10px 30px -12px rgba(42,37,33,.18);
  --sh-3: 0 24px 60px -22px rgba(42,37,33,.30);
  --sh-gold: 0 14px 32px -14px rgba(166,134,75,.55);

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --container: 1240px;
  --header-h: 92px;

  --font-ui: "Tajawal","Jost",system-ui,sans-serif;
  --font-disp: "El Messiri","Cormorant Garamond",serif;
  --font-lat: "Cormorant Garamond",serif;
}

/* On the English (LTR) side, render text with a premium Latin pairing
   (Jost body + Cormorant Garamond display) instead of the Arabic face's
   Latin glyphs — the single biggest lift to how "designed" English looks. */
[dir="ltr"] {
  --font-ui: "Jost", system-ui, -apple-system, sans-serif;
  --font-disp: "Cormorant Garamond", Georgia, serif;
  --font-lat: "Cormorant Garamond", Georgia, serif;
}
[dir="ltr"] { letter-spacing: .002em; }
[dir="ltr"] h1, [dir="ltr"] h2, [dir="ltr"] .hero-title, [dir="ltr"] .section-head h2 { letter-spacing: -.018em; }
[dir="ltr"] .eyebrow, [dir="ltr"] .btn, [dir="ltr"] .nav > a { letter-spacing: .06em; }
/* Sharper type rendering everywhere */
body { font-feature-settings: "kern" 1, "liga" 1, "calt" 1; }

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input,select { font-family: inherit; }
ul { list-style: none; }
::selection { background: var(--gold-soft); color: var(--ink); }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; border: 3px solid var(--bg-2); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ---------- Layout helpers ---------- */
.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }
.section { padding-block: clamp(56px, 8vw, 110px); }
.eyebrow {
  font-size: .74rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-2); font-weight: 700; display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); display: inline-block; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 42px; flex-wrap: wrap; }
.section-title {
  font-family: var(--font-disp); font-weight: 600; line-height: 1.08;
  font-size: clamp(1.9rem, 3.6vw, 3rem); color: var(--ink); margin-top: 14px;
  letter-spacing: -.01em;
}
.section-title em { font-style: normal; color: var(--gold-2); }
.muted { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  --bg-btn: var(--dark);
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: var(--r-pill);
  font-weight: 700; font-size: .94rem; letter-spacing: .01em;
  background: var(--bg-btn); color: #fff; overflow: hidden;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease), color .4s;
  isolation: isolate; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .4s var(--ease-out); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, var(--gold-2), var(--gold));
  transform: translateX(-101%); transition: transform .5s var(--ease-out);
}
[dir="rtl"] .btn::before { transform: translateX(101%); }
.btn:hover { transform: translateY(-3px); box-shadow: var(--sh-gold); }
.btn:hover::before { transform: translateX(0); }
.btn:hover svg { transform: translateX(-4px); }
[dir="rtl"] .btn:hover svg { transform: translateX(4px); }

.btn-gold { --bg-btn: linear-gradient(110deg, var(--gold-2), var(--gold)); }
.btn-gold::before { background: var(--dark); }
.btn-ghost {
  background: transparent; color: var(--ink); border: 1.5px solid var(--line-2);
}
.btn-ghost::before { background: var(--ink); }
.btn-ghost:hover { color: #fff; border-color: var(--ink); }
.btn-sm { padding: 11px 22px; font-size: .85rem; }
.btn-block { width: 100%; justify-content: center; }

.link-underline {
  position: relative; font-weight: 700; color: var(--gold-2); font-size: .92rem;
  display: inline-flex; align-items: center; gap: 8px; padding-bottom: 3px;
}
.link-underline::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1.5px;
  background: var(--gold); transform: scaleX(.0); transform-origin: inline-start;
  transition: transform .4s var(--ease-out);
}
.link-underline:hover::after { transform: scaleX(1); }
.link-underline svg { width: 16px; height: 16px; transition: transform .35s; }
.link-underline:hover svg { transform: translateX(-4px); }
[dir="rtl"] .link-underline:hover svg { transform: translateX(4px); }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--dark); color: #d9cdbb; font-size: .8rem; letter-spacing: .02em;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 42px; gap: 16px; }
.topbar a { transition: color .3s; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: var(--gold-soft); }
.topbar .tb-left, .topbar .tb-right { display: flex; align-items: center; gap: 22px; }
.topbar svg { width: 15px; height: 15px; opacity: .85; }
.tb-socials { display: flex; gap: 14px; }
.tb-marquee { overflow: hidden; flex: 1; max-width: 380px; }
.tb-marquee span { display: inline-block; white-space: nowrap; animation: marquee 18s linear infinite; color: var(--gold-soft); }
@keyframes marquee { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100; background: rgba(251,248,243,.82);
  backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent; transition: box-shadow .4s, background .4s, border-color .4s;
}
.header.is-stuck { box-shadow: var(--sh-2); border-color: var(--line); background: rgba(251,248,243,.94); }
.header .container { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); transition: min-height .4s var(--ease); }
.header.is-stuck .container { min-height: 72px; }

.logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-lat); }
.logo-mark { width: 42px; height: 42px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text b { font-size: 1.5rem; letter-spacing: .14em; font-weight: 600; color: var(--ink); }
.logo-text small { font-size: .58rem; letter-spacing: .42em; color: var(--gold-2); font-family: var(--font-ui); text-transform: uppercase; font-weight: 700; }

.nav { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav > a { position: relative; padding: 10px 16px; font-weight: 600; font-size: .96rem; color: var(--ink-2); transition: color .3s; border-radius: var(--r-pill); }
.nav > a::after {
  content: ""; position: absolute; inset-inline: 16px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: center; transition: transform .35s var(--ease-out);
}
.nav > a:hover, .nav > a.active { color: var(--ink); }
.nav > a:hover::after, .nav > a.active::after { transform: scaleX(1); }
.nav .has-drop { display: inline-flex; align-items: center; gap: 5px; }
.nav .has-drop svg { width: 13px; height: 13px; transition: transform .3s; }
.nav-item { position: relative; }
.nav-item:hover .nav-drop { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-item:hover .has-drop svg { transform: rotate(180deg); }
.nav-drop {
  position: absolute; top: calc(100% + 8px); inset-inline-start: 50%; translate: -50% 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  box-shadow: var(--sh-3); padding: 10px; min-width: 210px;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .35s var(--ease-out);
}
[dir="rtl"] .nav-drop { translate: 50% 0; }
.nav-drop a { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: var(--r-xs); font-size: .9rem; color: var(--ink-2); transition: background .25s, color .25s; }
.nav-drop a:hover { background: var(--bg-2); color: var(--gold-2); }

.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: var(--r-pill);
  display: grid; place-items: center; color: var(--ink); transition: background .3s, color .3s, transform .3s;
}
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn:hover { background: var(--bg-2); color: var(--gold-2); transform: translateY(-2px); }
.icon-btn .badge {
  position: absolute; top: 4px; inset-inline-end: 4px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--gold-2); color: #fff; font-size: .66rem; font-weight: 800; border-radius: 99px;
  display: grid; place-items: center; line-height: 1;
}
.burger { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg-2); }
.hero-track { display: flex; transition: transform .9s var(--ease-out); }
.hero-slide { min-width: 100%; position: relative; }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 30px;
  min-height: min(82vh, 760px); padding-block: 40px;
}
.hero-copy { position: relative; z-index: 2; max-width: 560px; }
.hero-copy .eyebrow { margin-bottom: 22px; opacity: 0; animation: heroUp .9s var(--ease-out) .15s forwards; }
.hero-title {
  font-family: var(--font-disp); font-weight: 700; line-height: 1.04;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem); letter-spacing: -.015em; color: var(--ink);
  opacity: 0; animation: heroUp 1s var(--ease-out) .3s forwards;
}
.hero-title em { font-style: normal; color: transparent; background: linear-gradient(110deg,var(--gold-2),var(--rose)); -webkit-background-clip: text; background-clip: text; }
.hero-sub { margin-top: 22px; font-size: 1.06rem; color: var(--ink-2); max-width: 460px; opacity: 0; animation: heroUp 1s var(--ease-out) .45s forwards; }
.hero-cta { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; opacity: 0; animation: heroUp 1s var(--ease-out) .6s forwards; }
.hero-stats { display: flex; gap: 38px; margin-top: 46px; opacity: 0; animation: heroUp 1s var(--ease-out) .75s forwards; }
.hero-stats .num { font-family: var(--font-disp); font-size: 2rem; font-weight: 700; color: var(--ink); line-height: 1; }
.hero-stats .lbl { font-size: .82rem; color: var(--ink-soft); margin-top: 6px; }
@keyframes heroUp { from { opacity: 0; transform: translateY(34px);} to { opacity: 1; transform: translateY(0);} }

.hero-visual { position: relative; height: 100%; min-height: 460px; }
.hero-blob {
  position: absolute; inset: 0; margin: auto; width: 92%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #fff 0%, var(--bg-3) 70%);
  filter: blur(2px); z-index: 0;
}
.hero-img-wrap {
  position: relative; z-index: 1; height: 100%; border-radius: 200px 200px 28px 28px; overflow: hidden;
  box-shadow: var(--sh-3); background: linear-gradient(135deg, var(--gold-soft), var(--rose-soft));
  aspect-ratio: 4/5; margin-inline: auto; max-height: 660px;
  animation: floaty 7s ease-in-out infinite;
}
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: kenburns 16s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.04) translateY(0);} to { transform: scale(1.14) translateY(-12px);} }
@keyframes floaty { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-14px);} }
.hero-tag {
  position: absolute; z-index: 3; background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; box-shadow: var(--sh-2);
  display: flex; align-items: center; gap: 12px;
}
.hero-tag.t1 { top: 12%; inset-inline-start: -4%; animation: floaty 6s ease-in-out infinite; }
.hero-tag.t2 { bottom: 14%; inset-inline-end: -2%; animation: floaty 8s ease-in-out infinite .5s; }
.hero-tag .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--rose-soft); display: grid; place-items: center; color: var(--rose); flex: none; }
.hero-tag .ic svg { width: 20px; height: 20px; }
.hero-tag b { display: block; font-size: .95rem; }
.hero-tag span { font-size: .76rem; color: var(--ink-soft); }

.hero-dots { position: absolute; inset-inline-start: 50%; translate: -50%; bottom: 26px; z-index: 4; display: flex; gap: 10px; }
.hero-dots button { width: 9px; height: 9px; border-radius: 99px; background: var(--line-2); transition: all .4s var(--ease); }
.hero-dots button.active { width: 28px; background: var(--gold-2); }
.hero-arrows { position: absolute; bottom: 26px; inset-inline-end: 24px; z-index: 4; display: flex; gap: 10px; }
.hero-arrows button, .car-nav button {
  width: 46px; height: 46px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink); transition: all .35s var(--ease); box-shadow: var(--sh-1);
}
.hero-arrows button:hover, .car-nav button:hover { background: var(--gold-2); color: #fff; border-color: var(--gold-2); transform: scale(1.06); }
.hero-arrows svg, .car-nav svg { width: 18px; height: 18px; }

/* ---------- Category strip ---------- */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.cat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px 14px; text-align: center; transition: transform .45s var(--ease-out), box-shadow .45s, border-color .45s;
  position: relative; overflow: hidden;
}
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, var(--bg-2)); opacity: 0; transition: opacity .45s; z-index: 0; }
.cat-card:hover { transform: translateY(-8px); box-shadow: var(--sh-2); border-color: var(--gold-soft); }
.cat-card:hover::after { opacity: .5; }
.cat-ic {
  position: relative; z-index: 1; width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%;
  background: linear-gradient(160deg, var(--bg-2), #fff); display: grid; place-items: center; color: var(--gold-2);
  transition: transform .5s var(--ease-out); box-shadow: inset 0 0 0 1px var(--line);
}
.cat-card:hover .cat-ic { transform: rotate(-6deg) scale(1.06); color: var(--rose); }
.cat-ic svg { width: 34px; height: 34px; }
.cat-card b { position: relative; z-index: 1; display: block; font-size: .98rem; }
.cat-card span { position: relative; z-index: 1; font-size: .76rem; color: var(--ink-soft); }
.cat-count { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 1; background: var(--rose); color: #fff; font-size: .64rem; font-weight: 800; padding: 3px 8px; border-radius: 99px; }

/* ---------- Product card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; transition: transform .5s var(--ease-out), box-shadow .5s, border-color .5s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--sh-3); border-color: var(--gold-soft); }
.card-media { position: relative; aspect-ratio: 3/4; overflow: hidden; background: linear-gradient(135deg, var(--bg-3), var(--rose-soft)); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out), opacity .6s; }
.card:hover .card-media img { transform: scale(1.08); }
.card-media img.alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .card-media img.alt { opacity: 1; }
.card-badges { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 3; display: flex; flex-direction: column; gap: 7px; }
.badge-tag { font-size: .7rem; font-weight: 800; letter-spacing: .04em; padding: 5px 11px; border-radius: var(--r-pill); color: #fff; box-shadow: var(--sh-1); }
.badge-sale { background: var(--sale); }
.badge-new { background: var(--dark); }
.badge-hot { background: linear-gradient(120deg, var(--gold-2), var(--gold)); }

.card-tools { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 3; display: flex; flex-direction: column; gap: 8px; }
.tool {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  display: grid; place-items: center; color: var(--ink); box-shadow: var(--sh-1);
  transform: translateX(14px); opacity: 0; transition: all .4s var(--ease-out);
}
[dir="rtl"] .tool { transform: translateX(-14px); }
.card:hover .tool { transform: translateX(0); opacity: 1; }
.card:hover .tool:nth-child(2) { transition-delay: .05s; }
.card:hover .tool:nth-child(3) { transition-delay: .1s; }
.tool:hover { background: var(--gold-2); color: #fff; }
.tool svg { width: 18px; height: 18px; }
.tool.is-active { background: var(--rose); color: #fff; }
.tool-wa:hover { background: #25D366 !important; color: #fff; }

/* WhatsApp inquiry button (product page) */
.btn-wa { display: inline-flex; align-items: center; background: #25D366; color: #fff; border: none; padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: .95rem; transition: background .2s, transform .2s; }
.btn-wa:hover { background: #1ebe5b; transform: translateY(-2px); }
.btn-wa svg { flex: none; }

/* Size guide modal */
.sg-modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 20px; }
.sg-modal[hidden] { display: none; }
.sg-backdrop { position: absolute; inset: 0; background: rgba(20,16,14,.55); backdrop-filter: blur(3px); }
.sg-dialog { position: relative; background: var(--surface, #fff); width: min(640px, 100%); max-height: 88vh; overflow: auto; border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.3); animation: sgPop .25s ease; }
@keyframes sgPop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.sg-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface, #fff); }
.sg-head b { font-size: 1.1rem; }
.sg-close { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--ink); }
.sg-close:hover { background: var(--bg, #f5f1ea); }
.sg-body { padding: 20px 22px 26px; }
.sg-note { font-size: .86rem; color: var(--ink-soft); line-height: 1.7; margin-bottom: 16px; }
.sg-note a { color: var(--gold-2); }
.sg-scroll { overflow-x: auto; }
.sg-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 460px; }
.sg-table th, .sg-table td { padding: 11px 10px; text-align: center; border-bottom: 1px solid var(--line); }
.sg-table thead th { background: var(--gold-soft, #f3ecdd); color: var(--gold-2, #A6864B); font-weight: 700; white-space: nowrap; }
.sg-table tbody tr:hover { background: var(--bg, #faf7f1); }
.sg-table td:first-child { font-weight: 800; }
.sg-h { margin: 22px 0 10px; font-size: 1rem; }
.sg-list { list-style: none; padding: 0; display: grid; gap: 8px; font-size: .87rem; color: var(--ink-2, #4a4038); line-height: 1.6; }
.sg-list li { padding-inline-start: 18px; position: relative; }
.sg-list li::before { content: "•"; position: absolute; inset-inline-start: 0; color: var(--gold-2, #A6864B); font-weight: 800; }

/* Product page: hide the static placeholder until the real product is loaded
   (prevents a flash of the fake demo product before renderProduct() runs). */
.pd-layout:not(.is-ready) { position: relative; min-height: 60vh; }
.pd-layout:not(.is-ready) > * { visibility: hidden; }
.pd-layout:not(.is-ready)::after {
  content: ""; visibility: visible; position: absolute; inset: 0; margin: auto;
  width: 40px; height: 40px; border: 3px solid var(--line); border-top-color: var(--gold-2);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.card-cart {
  position: absolute; inset-inline: 14px; bottom: 14px; z-index: 3;
  transform: translateY(140%); opacity: 0; transition: all .45s var(--ease-out);
}
.card:hover .card-cart { transform: translateY(0); opacity: 1; }

.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font-size: .73rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); font-weight: 700; }
.card-title { font-size: 1.02rem; font-weight: 700; color: var(--ink); line-height: 1.4; }
.card-title a { transition: color .3s; }
.card-title a:hover { color: var(--gold-2); }
.rating { display: flex; align-items: center; gap: 3px; color: var(--gold); }
.rating svg { width: 14px; height: 14px; }
.rating .count { color: var(--ink-soft); font-size: .76rem; margin-inline-start: 5px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.price { display: flex; align-items: baseline; gap: 9px; }
.price .now { font-family: var(--font-disp); font-size: 1.4rem; font-weight: 700; color: var(--ink); }
.price .was { font-size: .92rem; color: var(--ink-soft); text-decoration: line-through; }
.price-cur { font-size: .78rem; color: var(--ink-soft); font-weight: 600; }
.stock { font-size: .76rem; color: var(--ok); display: inline-flex; align-items: center; gap: 5px; }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

/* Carousel rows */
.carousel { position: relative; }
.car-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 8px; scrollbar-width: none; }
.car-track::-webkit-scrollbar { display: none; }
.car-track > * { scroll-snap-align: start; flex: 0 0 calc((100% - 72px) / 4); }
.car-nav { display: flex; gap: 10px; }

/* ---------- Offer of the week ---------- */
.offer { background: linear-gradient(135deg, var(--bg-2), var(--bg-3)); overflow: hidden; position: relative; }
.offer::before { content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, var(--rose-soft), transparent 70%); top: -160px; inset-inline-end: -120px; }
.offer-inner { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 40px; position: relative; z-index: 1; }
.offer-visual { position: relative; }
.offer-visual .ring { aspect-ratio: 1; border-radius: 50%; overflow: hidden; max-width: 380px; margin-inline: auto; box-shadow: var(--sh-3); border: 8px solid #fff; background: var(--rose-soft); }
.offer-visual .ring img { width: 100%; height: 100%; object-fit: cover; }
.countdown { display: flex; gap: 14px; margin: 26px 0 30px; }
.cd-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 18px; text-align: center; min-width: 76px; box-shadow: var(--sh-1); }
.cd-box .n { font-family: var(--font-disp); font-size: 2.1rem; font-weight: 700; color: var(--gold-2); line-height: 1; font-variant-numeric: tabular-nums; }
.cd-box .l { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 6px; }

/* ---------- New arrival banner ---------- */
.arrival { background: var(--dark); color: #fff; border-radius: var(--r-lg); overflow: hidden; position: relative; }
.arrival-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 20px; }
.arrival-copy { padding: clamp(34px, 5vw, 64px); }
.arrival-copy .eyebrow { color: var(--gold); }
.arrival-copy .eyebrow::before { background: var(--gold); }
.arrival-title { font-family: var(--font-disp); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; line-height: 1.05; margin: 16px 0; }
.arrival-copy p { color: rgba(255,255,255,.7); max-width: 380px; }
.arrival-price { font-family: var(--font-disp); font-size: 2.2rem; color: var(--gold); font-weight: 700; margin: 18px 0 24px; }
.arrival-media { position: relative; min-height: 360px; align-self: stretch; background: linear-gradient(135deg, #3a332c, #211d19); }
.arrival-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .92; }

/* ---------- Brands marquee ---------- */
.brands { border-block: 1px solid var(--line); background: var(--surface); }
.brands-track { display: flex; gap: 70px; align-items: center; overflow: hidden; padding-block: 36px; }
.brands-row { display: flex; gap: 70px; align-items: center; animation: marquee 26s linear infinite; flex: none; }
.brands:hover .brands-row { animation-play-state: paused; }
.brand-logo { font-family: var(--font-lat); font-size: 1.7rem; font-weight: 600; letter-spacing: .12em; color: var(--ink-soft); opacity: .6; transition: opacity .3s, color .3s; white-space: nowrap; }
.brand-logo:hover { opacity: 1; color: var(--gold-2); }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { display: flex; align-items: center; gap: 16px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: transform .4s var(--ease-out), box-shadow .4s; }
.feature:hover { transform: translateY(-5px); box-shadow: var(--sh-2); }
.feature .fic { width: 54px; height: 54px; border-radius: 14px; background: var(--bg-2); display: grid; place-items: center; color: var(--gold-2); flex: none; transition: background .4s, color .4s; }
.feature:hover .fic { background: var(--gold-2); color: #fff; }
.feature .fic svg { width: 26px; height: 26px; }
.feature b { display: block; font-size: 1rem; }
.feature span { font-size: .82rem; color: var(--ink-soft); }

/* ---------- Booking CTA ---------- */
.booking { background: linear-gradient(135deg, var(--bg-3), var(--bg-2)); border-radius: var(--r-lg); padding: clamp(34px, 5vw, 64px); text-align: center; position: relative; overflow: hidden; }
.booking::before, .booking::after { content: ""; position: absolute; border-radius: 50%; background: radial-gradient(circle, var(--rose-soft), transparent 70%); }
.booking::before { width: 320px; height: 320px; top: -120px; inset-inline-start: -100px; }
.booking::after { width: 280px; height: 280px; bottom: -120px; inset-inline-end: -90px; }
.booking-inner { position: relative; z-index: 1; max-width: 720px; margin-inline: auto; }
.booking-title { font-family: var(--font-disp); font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 700; margin: 14px 0; }
.booking-form { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; justify-content: center; }
.field { position: relative; flex: 1; min-width: 200px; }
.field input, .field select {
  width: 100%; padding: 15px 20px; border-radius: var(--r-pill); border: 1.5px solid var(--line-2);
  background: var(--surface); font-size: .95rem; color: var(--ink); transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.field input::placeholder { color: var(--ink-soft); }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #c8bcab; padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 52px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer .logo-text b { color: #fff; }
.footer-about { max-width: 320px; margin-top: 18px; font-size: .9rem; line-height: 1.8; }
.footer-soc { display: flex; gap: 10px; margin-top: 22px; }
.footer-soc a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.07); display: grid; place-items: center; color: #d9cdbb; transition: all .35s var(--ease); }
.footer-soc a:hover { background: var(--gold-2); color: #fff; transform: translateY(-3px); }
.footer-soc svg { width: 18px; height: 18px; }
.footer h4 { color: #fff; font-size: 1.02rem; margin-bottom: 20px; font-family: var(--font-ui); font-weight: 700; }
.footer-links a { display: block; padding: 7px 0; font-size: .9rem; transition: color .3s, padding-inline-start .3s; }
.footer-links a:hover { color: var(--gold-soft); padding-inline-start: 6px; }
.footer-contact li { display: flex; gap: 12px; padding: 8px 0; font-size: .9rem; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 3px; }
.newsletter { display: flex; margin-top: 18px; background: rgba(255,255,255,.06); border-radius: var(--r-pill); padding: 5px; }
.newsletter input { flex: 1; background: none; border: none; padding: 10px 18px; color: #fff; font-size: .9rem; }
.newsletter input:focus { outline: none; }
.newsletter input::placeholder { color: #9b9081; }
.newsletter button { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(120deg,var(--gold-2),var(--gold)); color: #fff; display: grid; place-items: center; flex: none; transition: transform .3s; }
.newsletter button:hover { transform: scale(1.08) rotate(8deg); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-block: 26px; font-size: .84rem; flex-wrap: wrap; gap: 14px; }
.footer-pay { display: flex; gap: 10px; align-items: center; }
.footer-pay span { padding: 5px 10px; background: rgba(255,255,255,.08); border-radius: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .05em; }

/* ---------- Breadcrumb ---------- */
.crumb { display: flex; align-items: center; gap: 9px; font-size: .85rem; color: var(--ink-soft); padding-block: 22px; flex-wrap: wrap; }
.crumb a:hover { color: var(--gold-2); }
.crumb .sep { opacity: .5; }
.crumb .cur { color: var(--ink); font-weight: 600; }

/* ---------- Page banner ---------- */
.page-banner { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 280px; display: flex; align-items: center; background: var(--dark); }
.page-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.page-banner .pb-inner { position: relative; z-index: 1; padding: clamp(30px, 5vw, 60px); color: #fff; max-width: 560px; }
.page-banner h1 { font-family: var(--font-disp); font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 700; line-height: 1.08; }
.page-banner p { margin-top: 14px; color: rgba(255,255,255,.78); }
.pb-arrows { position: absolute; bottom: 24px; inset-inline-end: 24px; z-index: 2; display: flex; align-items: center; gap: 14px; color: #fff; }

/* ---------- Catalog ---------- */
.catalog-layout { display: grid; grid-template-columns: 290px 1fr; gap: 36px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; }
.filter-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 14px; }
.filter-head b { font-family: var(--font-disp); font-size: 1.3rem; }
.filter-head button { font-size: .8rem; color: var(--gold-2); font-weight: 700; }
.filter-close { display: none; }   /* revealed only on mobile (off-canvas drawer) */
.fgroup { border-top: 1px solid var(--line); }
.fgroup-head { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 16px; font-weight: 700; font-size: .96rem; }
.fgroup-head svg { width: 16px; height: 16px; transition: transform .3s; color: var(--ink-soft); }
.fgroup.collapsed .fgroup-head svg { transform: rotate(-90deg); }
.fgroup-body { padding: 0 16px 18px; display: grid; gap: 11px; overflow: hidden; transition: max-height .4s var(--ease), opacity .3s, padding .3s; }
.fgroup.collapsed .fgroup-body { max-height: 0 !important; opacity: 0; padding-block: 0; }
.check { display: flex; align-items: center; gap: 11px; cursor: pointer; font-size: .9rem; color: var(--ink-2); transition: color .25s; }
.check:hover { color: var(--ink); }
.check input { position: absolute; opacity: 0; }
.check .box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: all .25s; flex: none; }
.check .box svg { width: 13px; height: 13px; color: #fff; opacity: 0; transform: scale(.4); transition: all .25s; }
.check input:checked + .box { background: var(--gold-2); border-color: var(--gold-2); }
.check input:checked + .box svg { opacity: 1; transform: scale(1); }
.check .cnt { margin-inline-start: auto; font-size: .76rem; color: var(--ink-soft); }

.price-range { padding-top: 6px; }
.price-inputs { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.price-inputs .pi { flex: 1; border: 1.5px solid var(--line-2); border-radius: var(--r-xs); padding: 9px 12px; }
.price-inputs .pi label { display: block; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.price-inputs .pi input { width: 100%; border: none; background: none; font-size: .92rem; font-weight: 700; color: var(--ink); }
.price-inputs .pi input:focus { outline: none; }
.range-wrap { position: relative; height: 4px; background: var(--line); border-radius: 99px; margin: 14px 6px; }
.range-fill { position: absolute; height: 100%; background: var(--gold-2); border-radius: 99px; }
.range-wrap input[type=range] { position: absolute; inset-inline: -6px; top: 50%; translate: 0 -50%; width: calc(100% + 12px); -webkit-appearance: none; background: none; pointer-events: none; }
.range-wrap input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: all; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--gold-2); box-shadow: var(--sh-1); cursor: pointer; }
.range-labels { display: flex; justify-content: space-between; font-size: .76rem; color: var(--ink-soft); margin-top: 8px; }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; transition: transform .25s, box-shadow .25s; }
.swatch:hover, .swatch.active { transform: scale(1.12); box-shadow: 0 0 0 2px var(--gold-2); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size-pill { min-width: 42px; padding: 8px 12px; text-align: center; border: 1.5px solid var(--line-2); border-radius: var(--r-xs); font-size: .85rem; font-weight: 700; cursor: pointer; transition: all .25s; }
.size-pill:hover { border-color: var(--gold); }
.size-pill.active { background: var(--dark); color: #fff; border-color: var(--dark); }

.catalog-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }
.catalog-top .res { font-size: .9rem; color: var(--ink-soft); }
.catalog-top .res b { color: var(--ink); }
.sort { display: flex; align-items: center; gap: 12px; }
.sort select { padding: 11px 18px; border: 1.5px solid var(--line-2); border-radius: var(--r-pill); background: var(--surface); font-size: .9rem; font-weight: 600; cursor: pointer; }
.view-toggle { display: flex; gap: 4px; background: var(--bg-2); padding: 4px; border-radius: var(--r-pill); }
.view-toggle button { width: 38px; height: 34px; border-radius: var(--r-pill); display: grid; place-items: center; color: var(--ink-soft); transition: all .3s; }
.view-toggle button.active { background: #fff; color: var(--gold-2); box-shadow: var(--sh-1); }
.view-toggle svg { width: 17px; height: 17px; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.filter-mobile-btn { display: none; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 50px; }
.pagination a { min-width: 44px; height: 44px; border-radius: var(--r-pill); display: grid; place-items: center; border: 1.5px solid var(--line); font-weight: 700; font-size: .9rem; color: var(--ink-2); transition: all .3s; padding: 0 12px; }
.pagination a:hover { border-color: var(--gold); color: var(--gold-2); }
.pagination a.active { background: var(--dark); color: #fff; border-color: var(--dark); }

/* active filter chips */
.active-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); font-size: .82rem; font-weight: 600; }
.chip button { color: var(--ink-soft); display: grid; place-items: center; transition: color .25s; }
.chip button:hover { color: var(--sale); }
.chip svg { width: 13px; height: 13px; }

/* ---------- Product detail ---------- */
.pd-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.gallery { display: grid; grid-template-columns: 86px 1fr; gap: 16px; }
.thumbs { display: flex; flex-direction: column; gap: 12px; }
.thumb { aspect-ratio: 3/4; border-radius: var(--r-sm); overflow: hidden; border: 2px solid transparent; cursor: pointer; transition: border-color .3s, transform .3s; background: var(--bg-3); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { transform: translateY(-2px); }
.thumb.active { border-color: var(--gold-2); }
.gallery-main { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 3/4; background: linear-gradient(135deg, var(--bg-3), var(--rose-soft)); box-shadow: var(--sh-2); cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .5s; }
.gallery-main .zoom-hint { position: absolute; bottom: 16px; inset-inline-end: 16px; background: rgba(255,255,255,.9); border-radius: 99px; padding: 8px 14px; font-size: .76rem; font-weight: 600; display: inline-flex; gap: 7px; align-items: center; box-shadow: var(--sh-1); }
.gallery-main .zoom-hint svg { width: 15px; height: 15px; }
.pd-fav { position: absolute; top: 16px; inset-inline-end: 16px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: var(--sh-1); z-index: 2; transition: all .3s; }
.pd-fav:hover { background: var(--rose); color: #fff; }
.pd-fav svg { width: 20px; height: 20px; }

.pd-cat { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); font-weight: 700; }
.pd-title { font-family: var(--font-disp); font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 700; line-height: 1.12; margin: 10px 0 14px; }
.pd-meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.pd-sku { font-size: .84rem; color: var(--ink-soft); }
.pd-price { display: flex; align-items: baseline; gap: 12px; margin: 22px 0; }
.pd-price .now { font-family: var(--font-disp); font-size: 2.4rem; font-weight: 700; color: var(--ink); }
.pd-price .was { font-size: 1.15rem; color: var(--ink-soft); text-decoration: line-through; }
.pd-price .off { background: var(--rose-soft); color: var(--sale); font-size: .8rem; font-weight: 800; padding: 4px 12px; border-radius: 99px; }

.pd-section { padding: 20px 0; border-bottom: 1px solid var(--line); }
.pd-section h3 { font-size: 1.05rem; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.pd-section h3 svg { width: 18px; height: 18px; color: var(--ink-soft); transition: transform .3s; }
.pd-section.collapsed h3 svg { transform: rotate(-90deg); }
.pd-section .pd-body { color: var(--ink-2); font-size: .95rem; line-height: 1.8; max-height: 400px; overflow: hidden; transition: max-height .4s var(--ease), opacity .3s; }
.pd-section.collapsed .pd-body { max-height: 0; opacity: 0; }
.spec-list { display: grid; gap: 12px; }
.spec-row { display: flex; align-items: center; gap: 14px; }
.spec-row .k { width: 110px; color: var(--ink-soft); font-size: .9rem; flex: none; }
.spec-row .v { font-weight: 600; }
.color-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border: 1px solid var(--line); border-radius: 99px; font-size: .85rem; }
.color-chip i { width: 20px; height: 20px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-2); }

.pd-sizes { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.pd-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.qty { display: flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: var(--r-pill); overflow: hidden; }
.qty button { width: 46px; height: 52px; display: grid; place-items: center; color: var(--ink); transition: background .25s; }
.qty button:hover { background: var(--bg-2); color: var(--gold-2); }
.qty input { width: 44px; text-align: center; border: none; font-weight: 700; font-size: 1rem; }
.qty input:focus { outline: none; }
.pd-trust { display: flex; gap: 22px; margin-top: 26px; flex-wrap: wrap; }
.pd-trust div { display: flex; align-items: center; gap: 10px; font-size: .86rem; color: var(--ink-2); }
.pd-trust svg { width: 22px; height: 22px; color: var(--gold-2); }

/* zoom modal */
.zoom-modal { position: fixed; inset: 0; z-index: 200; background: rgba(33,29,25,.92); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; padding: 30px; }
.zoom-modal.open { opacity: 1; visibility: visible; }
.zoom-modal img { max-width: 92vw; max-height: 90vh; border-radius: var(--r); box-shadow: var(--sh-3); transform: scale(.94); transition: transform .4s var(--ease-out); }
.zoom-modal.open img { transform: scale(1); }
.zoom-close { position: absolute; top: 24px; inset-inline-end: 24px; width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; transition: background .3s; }
.zoom-close:hover { background: var(--sale); }

/* ---------- Cart drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(33,29,25,.5); backdrop-filter: blur(3px); z-index: 150; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.overlay.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; inset-block: 0; inset-inline-end: 0; width: min(420px, 100%); z-index: 160;
  background: var(--bg); box-shadow: var(--sh-3); transform: translateX(100%);
  transition: transform .5s var(--ease-out); display: flex; flex-direction: column;
}
[dir="rtl"] .drawer { transform: translateX(-100%); }
.drawer.open { transform: translateX(0); }
/* Mobile nav anchors to the inline-start edge (right in RTL) and hides toward it */
#mobile-nav { inset-inline-start: 0; inset-inline-end: auto; transform: translateX(-100%); }
[dir="rtl"] #mobile-nav { transform: translateX(100%); }
#mobile-nav.open, [dir="rtl"] #mobile-nav.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head b { font-family: var(--font-disp); font-size: 1.4rem; }
.drawer-head button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; transition: background .3s; }
.drawer-head button:hover { background: var(--bg-2); }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
/* Mobile-nav links need real tap targets (the cart drawer reuses .drawer-body). */
#mobile-nav .drawer-body { gap: 2px; }
#mobile-nav .drawer-body a { display: block; padding: 14px 4px; font-size: 1.05rem; font-weight: 600; border-bottom: 1px solid var(--line); transition: color .25s; }
#mobile-nav .drawer-body a:hover { color: var(--gold-2); }
.cart-item { display: grid; grid-template-columns: 78px 1fr auto; gap: 14px; align-items: center; }
.cart-item .ci-img { aspect-ratio: 3/4; border-radius: var(--r-sm); overflow: hidden; background: var(--bg-3); }
.cart-item .ci-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item h5 { font-size: .92rem; font-weight: 700; }
.cart-item .ci-meta { font-size: .78rem; color: var(--ink-soft); margin: 4px 0; }
.cart-item .ci-price { color: var(--gold-2); font-weight: 700; }
.cart-item .ci-remove { color: var(--ink-soft); transition: color .25s; }
.cart-item .ci-remove:hover { color: var(--sale); }
.cart-empty { text-align: center; padding: 50px 20px; color: var(--ink-soft); }
.cart-empty svg { width: 64px; height: 64px; opacity: .3; margin-bottom: 16px; }
.drawer-foot { padding: 22px 24px; border-top: 1px solid var(--line); background: var(--surface); }
.drawer-total { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.drawer-total span { color: var(--ink-soft); }
.drawer-total b { font-family: var(--font-disp); font-size: 1.7rem; color: var(--ink); }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; bottom: 24px; inset-inline-start: 24px; z-index: 220; display: flex; flex-direction: column; gap: 10px; }
.toast { display: flex; align-items: center; gap: 12px; background: var(--dark); color: #fff; padding: 14px 20px; border-radius: var(--r-sm); box-shadow: var(--sh-3); transform: translateY(20px); opacity: 0; animation: toastIn .4s var(--ease-out) forwards; max-width: 340px; }
.toast .tic { width: 30px; height: 30px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; flex: none; }
.toast .tic svg { width: 17px; height: 17px; }
.toast.out { animation: toastOut .4s var(--ease) forwards; }
@keyframes toastIn { to { transform: translateY(0); opacity: 1; } }
@keyframes toastOut { to { transform: translateY(20px); opacity: 0; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

/* Section divider ornament */
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); }
.ornament::before, .ornament::after { content: ""; height: 1px; width: 60px; background: linear-gradient(90deg, transparent, var(--gold-soft)); }
.ornament svg { width: 22px; height: 22px; }

/* image fallback */
.imgwrap { position: relative; background: linear-gradient(135deg, var(--bg-3), var(--rose-soft)); }

/* ---------- Back to top ---------- */
.to-top { position: fixed; bottom: 24px; inset-inline-end: 24px; width: 50px; height: 50px; border-radius: 50%; background: var(--dark); color: #fff; display: grid; place-items: center; z-index: 90; box-shadow: var(--sh-2); opacity: 0; visibility: hidden; transform: translateY(16px) scale(.8); transition: all .4s var(--ease-out); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold-2); transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Search overlay ---------- */
.search-modal { position: fixed; inset: 0; z-index: 200; background: rgba(33,29,25,.45); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.search-modal.open { opacity: 1; visibility: visible; }
.search-panel { position: absolute; inset-inline: 0; top: 0; background: var(--bg); box-shadow: var(--sh-3); padding: 22px clamp(16px,5vw,60px) 30px; transform: translateY(-14px); transition: transform .4s var(--ease-out); }
.search-modal.open .search-panel { transform: none; }
.search-bar { display: flex; align-items: center; gap: 14px; max-width: 760px; margin-inline: auto; border-bottom: 2px solid var(--line); padding-bottom: 14px; }
.search-bar svg { width: 24px; height: 24px; color: var(--gold-2); flex: none; }
.search-bar input { flex: 1; border: none; background: none; font-size: clamp(1.1rem,3vw,1.4rem); font-family: var(--font-disp); color: var(--ink); }
.search-bar input:focus { outline: none; }
.search-close { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; transition: background .25s; flex: none; }
.search-close:hover { background: var(--bg-2); }
.search-close svg { width: 22px; height: 22px; color: var(--ink); }
.search-results { max-width: 760px; margin: 14px auto 0; max-height: 60vh; overflow-y: auto; }
.search-hint { text-align: center; color: var(--ink-soft); padding: 34px 20px; }
.search-row { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r-sm); transition: background .2s; }
.search-row:hover { background: var(--bg-2); }
.search-row .imgwrap { width: 52px; height: 64px; border-radius: 8px; overflow: hidden; flex: none; }
.search-row .imgwrap img { width: 100%; height: 100%; object-fit: cover; }
.search-row b { display: block; font-size: .96rem; color: var(--ink); }
.search-row span { font-size: .8rem; color: var(--ink-soft); }
.search-row .sr-price { margin-inline-start: auto; font-family: var(--font-disp); font-weight: 700; color: var(--gold-2); white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .product-grid, .features { grid-template-columns: repeat(2, 1fr); }
  .car-track > * { flex-basis: calc((100% - 48px) / 3); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  /* Off-canvas drawers (filters/menu) must not create horizontal scroll.
     `clip` (not `hidden`) avoids establishing a scroll container, so the
     sticky header keeps working. */
  html, body { overflow-x: clip; }
  .nav, .topbar .tb-marquee { display: none; }
  .burger { display: grid; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { max-width: 100%; margin-inline: auto; }
  .hero-cta, .hero-stats { justify-content: center; }
  /* Keep the banner image on mobile (like desktop), minus the floating chrome. */
  .hero-visual { display: block; min-height: 0; margin-top: 30px; }
  .hero-blob, .hero-tag { display: none; }
  .hero-img-wrap { aspect-ratio: 4/5; max-height: 460px; }
  .hero-inner { min-height: auto; padding-block: 56px; }
  .offer-inner, .arrival-inner, .pd-layout { grid-template-columns: 1fr; }
  .arrival-media { min-height: 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset-block: 0; left: 0; right: auto; width: min(330px,90%); z-index: 160; border-radius: 0; overflow-y: auto; transform: translateX(-100%); transition: transform .5s var(--ease-out); box-shadow: var(--sh-3); }
  .filters.open { transform: translateX(0); }
  [dir="rtl"] .filters { left: auto; right: 0; transform: translateX(100%); }
  [dir="rtl"] .filters.open { transform: translateX(0); }
  .filter-mobile-btn { display: inline-flex; }
  .filter-close { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; font-size: 1.15rem; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .product-grid, .car-track > *, .catalog-grid, .features, .footer-grid, .cats { grid-template-columns: 1fr; }
  .car-track > * { flex-basis: 78%; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 64px 1fr; }
  .countdown { flex-wrap: wrap; }
  .hero-title { font-size: clamp(2.2rem, 9vw, 3rem); }
  .section-head { flex-direction: column; align-items: flex-start; }
  .pd-trust { gap: 14px; }
}
/* ---- Mobile polish (phones): tidy the top bar + keep the brand on one line ---- */
@media (max-width: 760px) {
  .topbar { font-size: .72rem; }
  .topbar .container { gap: 10px; min-height: 38px; }
  .topbar .tb-left, .topbar .tb-right { gap: 12px; }
  .topbar [data-si-address], .topbar .tb-left a:first-child { display: none; }  /* drop address, keep phone */
  .topbar a { white-space: nowrap; }
  .tb-socials { gap: 12px; }
  .tb-socials a[aria-label="Telegram"] { display: none; }

  .header .container { gap: 10px; }
  .logo { gap: 8px; min-width: 0; flex: 1; }
  .logo-mark { width: 34px; height: 34px; }
  .logo-text { min-width: 0; }
  .logo-text b { font-size: 1rem; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .logo-text small { font-size: .5rem; letter-spacing: .22em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .header-actions { gap: 2px; flex: none; }
}

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