/* ============================================================
   NexGenTrend — "Desert Dusk" design system
   Logical properties throughout so [dir=rtl] flips for free.
   ============================================================ */

:root {
  --ink: #16110d;
  --ink-2: #221a14;
  --ink-3: #2e241c;
  --cream: #faf5ee;
  --cream-2: #f2e9dc;
  --cream-3: #e6d9c7;
  --copper: #c9622f;
  --copper-lit: #e8874b;
  --gold: #e0b25c;
  --pine: #1d3b33;
  --muted: #6f6055;
  --muted-dk: #a8998c;
  --line: #e2d6c6;
  --line-dk: rgba(250, 245, 238, 0.14);
  --white: #fffdf9;

  --f-lat: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-ar: "Tajawal", "Manrope", ui-sans-serif, system-ui, sans-serif;

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --r-xl: 34px;

  --sh-s: 0 1px 2px rgba(22, 17, 13, 0.06), 0 4px 14px rgba(22, 17, 13, 0.05);
  --sh-m: 0 2px 6px rgba(22, 17, 13, 0.07), 0 18px 40px rgba(22, 17, 13, 0.1);
  --sh-l: 0 30px 80px rgba(22, 17, 13, 0.22);

  --hdr-h: 74px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --mq-shift: -50%;
  --drawer-shift: 100%;
}

html[dir="rtl"] {
  --mq-shift: 50%;
  --drawer-shift: -100%;
}

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

/* Author `display` rules beat the UA `[hidden]` rule, so without this the
   off-screen modal/drawer stay rendered and swallow every click. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-block-start: calc(var(--hdr-h) + 18px);
  scrollbar-gutter: stable;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-lat);
  font-size: 16.5px;
  line-height: 1.65;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[lang="ar"] body { font-family: var(--f-ar); line-height: 1.85; }

img,
svg,
video { display: block; max-width: 100%; }

img { height: auto; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

button { background: none; border: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

ul[class],
ol[class] { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.45; }

p { text-wrap: pretty; }

:where(a, button, summary, select, input):focus-visible {
  outline: 2.5px solid var(--copper);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--copper); color: var(--cream); }

/* ---------- primitives ---------- */

.wrap {
  width: min(1220px, 100% - 2.5rem);
  margin-inline: auto;
}

.sec { padding-block: clamp(4rem, 9vw, 7.5rem); }

.sec--tint {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 55%, var(--cream) 100%);
}

.sec__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-block-end: clamp(1.75rem, 4vw, 2.75rem);
}

.sec__title { font-size: clamp(1.85rem, 4.4vw, 3rem); }

.sec__note {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 30ch;
  padding-block-end: 0.3rem;
}

.eyebrow {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  margin-block-end: 0.7rem;
}

html[lang="ar"] .eyebrow { letter-spacing: 0.02em; font-size: 0.85rem; }

.lede { color: var(--muted); font-size: 1.06rem; max-width: 54ch; }

.btn {
  --bg: transparent;
  --fg: var(--ink);
  --bd: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.82rem 1.5rem;
  border-radius: 999px;
  border: 1.6px solid var(--bd);
  background: var(--bg);
  color: var(--fg);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn svg { width: 19px; height: 19px; flex: none; transition: transform 0.35s var(--ease); }

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--solid { --bg: var(--ink); --fg: var(--cream); --bd: var(--ink); box-shadow: var(--sh-m); }
.btn--solid:hover { --bg: var(--copper); --bd: var(--copper); box-shadow: 0 14px 34px rgba(201, 98, 47, 0.34); }
.btn--solid:hover svg { transform: translateX(4px); }

html[dir="rtl"] .btn svg { transform: scaleX(-1); }
html[dir="rtl"] .btn--solid:hover svg { transform: scaleX(-1) translateX(4px); }

.btn--ghost { --bd: var(--cream-3); }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--cream); --bd: var(--ink); }

.btn--block { width: 100%; }

.iconbtn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: inherit;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.iconbtn svg { width: 20px; height: 20px; }
.iconbtn:hover { background: rgba(22, 17, 13, 0.07); transform: rotate(90deg); }

.skip {
  position: fixed;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 200;
  padding: 0.7rem 1.2rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}

.skip:focus { transform: translateY(0); }

/* ---------- scroll progress ---------- */

.progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  z-index: 120;
  pointer-events: none;
  background: linear-gradient(90deg, var(--copper), var(--gold), var(--copper-lit));
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

html[dir="rtl"] .progress { transform-origin: 100% 50%; }

/* ---------- header ---------- */

.hdr {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--hdr-h);
  display: flex;
  align-items: center;
  color: var(--cream);
  transition: height 0.4s var(--ease), background-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease), color 0.4s var(--ease);
}

.hdr::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(250, 245, 238, 0.86);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.hdr.is-stuck {
  height: 62px;
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(22, 17, 13, 0.07);
}

.hdr.is-stuck::after { opacity: 1; }

.hdr__in {
  width: min(1220px, 100% - 2.5rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.brand { display: inline-flex; align-items: center; gap: 0.6rem; flex: none; }

.brand__mark { width: 30px; height: 30px; color: var(--copper-lit); }

.hdr.is-stuck .brand__mark { color: var(--copper); }

.brand__name { font-weight: 800; font-size: 1.13rem; letter-spacing: -0.035em; }
.brand__name span { font-weight: 500; opacity: 0.68; }

.nav {
  display: flex;
  gap: 0.35rem;
  margin-inline-start: auto;
  align-items: center;
}

.nav a {
  position: relative;
  padding: 0.5rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 0.78;
  border-radius: 999px;
  transition: opacity 0.25s var(--ease), background-color 0.25s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  inset-block-end: 4px;
  inset-inline: 0.85rem;
  height: 2px;
  border-radius: 2px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: var(--o, 0) 50%;
  transition: transform 0.35s var(--ease);
}

html[dir="rtl"] .nav a::after { --o: 100%; }

.nav a:hover { opacity: 1; }
.nav a:hover::after { transform: scaleX(1); }

.hdr__act { display: flex; align-items: center; gap: 0.5rem; margin-inline-start: 0.75rem; }

.acctlink {
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--ink, #1a1a1a); background: var(--acc, #C9622F); color: #fff;
  padding: 0.42rem 0.9rem; border-radius: 999px; text-decoration: none;
  white-space: nowrap;
}
.acctlink:hover { filter: brightness(1.08); }
.acctlink[hidden] { display: none; }

.langsw {
  position: relative;
  display: flex;
  padding: 3px;
  border-radius: 999px;
  border: 1.4px solid currentColor;
  opacity: 0.9;
}

.langsw__b {
  position: relative;
  z-index: 1;
  padding: 0.28rem 0.72rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  color: inherit;
  transition: color 0.3s var(--ease);
}

.langsw__b[aria-pressed="true"] { color: var(--ink); }

.langsw__pill {
  position: absolute;
  inset-block: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: var(--gold);
  inset-inline-start: 3px;
  transition: transform 0.42s var(--ease);
}

.langsw[data-active="ar"] .langsw__pill { transform: translateX(100%); }
html[dir="rtl"] .langsw[data-active="ar"] .langsw__pill { transform: translateX(-100%); }

.cartbtn {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: inherit;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.cartbtn svg { width: 22px; height: 22px; }
.cartbtn:hover { background: rgba(201, 98, 47, 0.16); transform: translateY(-1px); }

.cartbtn__n {
  position: absolute;
  inset-block-start: 1px;
  inset-inline-end: 0;
  min-width: 19px;
  height: 19px;
  padding-inline: 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--copper);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  animation: pop 0.4s var(--ease);
}

@keyframes pop { 0% { transform: scale(0.4); } 60% { transform: scale(1.22); } 100% { transform: scale(1); } }

.burger { display: none; width: 42px; height: 42px; place-items: center; gap: 5px; color: inherit; }
.burger span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  padding-block: calc(var(--hdr-h) + clamp(2.5rem, 7vw, 5rem)) clamp(4rem, 9vw, 7rem);
}

.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: drift 22s var(--ease-io) infinite alternate;
}

.hero__glow--a {
  width: 46vw; height: 46vw;
  inset-block-start: -14vw;
  inset-inline-end: -8vw;
  background: radial-gradient(circle, var(--copper) 0%, transparent 68%);
}

.hero__glow--b {
  width: 38vw; height: 38vw;
  inset-block-end: -16vw;
  inset-inline-start: -10vw;
  background: radial-gradient(circle, #4a2a18 0%, transparent 70%);
  animation-delay: -8s;
}

@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-4vw, 3vw, 0) scale(1.16); }
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line-dk) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dk) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 35%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 35%, #000 0%, transparent 78%);
  opacity: 0.55;
}

.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-block: 0.42rem;
  padding-inline-start: 0.75rem;
  padding-inline-end: 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-dk);
  background: rgba(250, 245, 238, 0.06);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cream-2);
  margin-block-end: 1.6rem;
}

.chip__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(224, 178, 92, 0.6);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(224, 178, 92, 0.55); }
  70% { box-shadow: 0 0 0 11px rgba(224, 178, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(224, 178, 92, 0); }
}

.hero__title {
  font-size: clamp(2.6rem, 7.4vw, 5.4rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin-block-end: 1.5rem;
}

html[lang="ar"] .hero__title { font-size: clamp(2.2rem, 6.2vw, 4.4rem); line-height: 1.3; letter-spacing: 0; }

.mask { display: block; overflow: hidden; padding-block-end: 0.06em; }

.mask > span {
  display: block;
  transform: translateY(115%);
  animation: rise 1.05s var(--ease) forwards;
}

.mask:nth-child(2) > span { animation-delay: 0.13s; color: var(--gold); }

@keyframes rise { to { transform: translateY(0); } }

.hero__sub { color: var(--muted-dk); font-size: 1.09rem; max-width: 50ch; margin-block-end: 2.1rem; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-block-end: 2.6rem; }

.hero .btn--solid { --bg: var(--copper); --bd: var(--copper); --fg: #fff; }
.hero .btn--solid:hover { --bg: var(--copper-lit); --bd: var(--copper-lit); }
.hero .btn--ghost { --bd: rgba(250, 245, 238, 0.28); --fg: var(--cream); }
.hero .btn--ghost:hover { --bg: var(--cream); --fg: var(--ink); --bd: var(--cream); }

.hero__trust { display: flex; flex-wrap: wrap; gap: 0.6rem 1.9rem; }

.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--cream-3);
}

.hero__trust svg { width: 20px; height: 20px; color: var(--copper-lit); flex: none; }

/* hero floating product cards */

.hero__stage { position: relative; height: clamp(320px, 44vw, 520px); pointer-events: none; }

.hero__orb {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  width: 74%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: conic-gradient(from 200deg, rgba(201, 98, 47, 0.42), rgba(224, 178, 92, 0.2), rgba(29, 59, 51, 0.3), rgba(201, 98, 47, 0.42));
  filter: blur(46px);
  opacity: 0.6;
  animation: spin 26s linear infinite;
}

@keyframes spin { to { rotate: 360deg; } }

.float {
  position: absolute;
  width: 46%;
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--ink-3);
  border: 1px solid var(--line-dk);
  box-shadow: var(--sh-l);
  animation: bob 7s var(--ease-io) infinite alternate;
}

.float img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.float__tag {
  position: absolute;
  inset-block-end: 0.7rem;
  inset-inline-start: 0.7rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(22, 17, 13, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--cream);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.float--1 { inset-block-start: 2%; inset-inline-start: 4%; animation-delay: -1s; }
.float--2 { inset-block-end: 4%; inset-inline-start: 0%; width: 40%; animation-delay: -3.4s; }
.float--3 { inset-block-start: 20%; inset-inline-end: 0%; width: 42%; animation-delay: -5.2s; }

@keyframes bob {
  0% { transform: translateY(-11px); }
  100% { transform: translateY(11px); }
}

.hero__cue {
  position: absolute;
  inset-block-end: 1.4rem;
  inset-inline-start: 50%;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-dk);
}

.hero__cue i {
  width: 1px; height: 42px;
  background: linear-gradient(var(--copper-lit), transparent);
  animation: cue 2.2s var(--ease-io) infinite;
}

@keyframes cue {
  0%, 100% { transform: scaleY(0.35); opacity: 0.4; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* ---------- marquee ---------- */

.marquee {
  background: var(--copper);
  color: #fff;
  overflow: hidden;
  padding-block: 0.85rem;
  border-block: 1px solid rgba(0, 0, 0, 0.12);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes marquee { to { transform: translateX(var(--mq-shift)); } }

.marquee__set { display: flex; flex: none; align-items: center; }

.marquee__set span {
  display: inline-flex;
  align-items: center;
  gap: 1.6rem;
  padding-inline: 1.6rem;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

html[lang="ar"] .marquee__set span { letter-spacing: 0; font-size: 0.95rem; }

.marquee__set span::after {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  flex: none;
}

/* ---------- category rail ---------- */

.catrail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-block-end: 0.6rem;
  scrollbar-width: thin;
  scrollbar-color: var(--cream-3) transparent;
}

.catrail::-webkit-scrollbar { height: 6px; }
.catrail::-webkit-scrollbar-thumb { background: var(--cream-3); border-radius: 99px; }

.cat {
  position: relative;
  scroll-snap-align: start;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line);
  cursor: pointer;
  text-align: start;
  color: var(--cream);
  isolation: isolate;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.cat img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
}

.cat::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(22, 17, 13, 0.94) 0%, rgba(22, 17, 13, 0.45) 46%, rgba(22, 17, 13, 0.12) 100%);
  transition: opacity 0.5s var(--ease);
}

.cat:hover { transform: translateY(-6px); box-shadow: var(--sh-l); }
.cat:hover img { transform: scale(1.09); }

.cat__body {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cat__h {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

html[lang="ar"] .cat__h { letter-spacing: 0; line-height: 1.5; }

.cat__n { font-size: 0.8rem; font-weight: 600; color: var(--cream-3); opacity: 0.85; }

.cat__go {
  position: absolute;
  inset-block-start: 1rem;
  inset-inline-end: 1rem;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(250, 245, 238, 0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transform: translateY(-6px);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease), background-color 0.3s;
}

.cat__go svg { width: 18px; height: 18px; }
html[dir="rtl"] .cat__go svg { transform: scaleX(-1); }
.cat:hover .cat__go { transform: translateY(0); opacity: 1; }
.cat:hover .cat__go:hover { background: var(--copper); }

.cat[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--copper), var(--sh-m); }

/* ---------- toolbar ---------- */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block-end: 1.9rem;
}

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.filters button {
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--muted);
  transition: all 0.3s var(--ease);
}

.filters button:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }

.filters button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
  box-shadow: var(--sh-s);
}

.filters button b { font-weight: 700; opacity: 0.55; margin-inline-start: 0.35rem; font-size: 0.8em; }

.sortwrap { display: inline-flex; align-items: center; gap: 0.6rem; }
.sortwrap__l { font-size: 0.82rem; font-weight: 650; color: var(--muted); }

.sortwrap select {
  padding: 0.5rem 2.1rem 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%236f6055' stroke-width='2' stroke-linecap='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 17px;
  transition: border-color 0.25s var(--ease);
}

html[dir="rtl"] .sortwrap select {
  padding: 0.5rem 0.9rem 0.5rem 2.1rem;
  background-position: left 0.6rem center;
}

.sortwrap select:hover { border-color: var(--ink); }

/* ---------- product grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s var(--ease);
}

.card:hover { transform: translateY(-7px); box-shadow: var(--sh-m); border-color: var(--cream-3); }

.card__media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(140deg, var(--cream-2), var(--cream-3));
  cursor: pointer;
}

.card__media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.85s var(--ease), opacity 0.5s var(--ease);
}

.card__media img:nth-of-type(2) { opacity: 0; }
.card:hover .card__media img:nth-of-type(1) { transform: scale(1.07); }
.card:hover .card__media img:nth-of-type(2) { opacity: 1; transform: scale(1.07); }

.card__badge {
  position: absolute;
  inset-block-start: 0.8rem;
  inset-inline-start: 0.8rem;
  z-index: 2;
  padding: 0.26rem 0.72rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--cream);
}

html[lang="ar"] .card__badge { letter-spacing: 0; font-size: 0.78rem; }

.card__badge--sale { background: var(--copper); color: #fff; }
.card__badge--new { background: var(--pine); color: var(--cream); }
.card__badge--best { background: var(--gold); color: var(--ink); }

.card__qv {
  position: absolute;
  inset-block-end: 0.8rem;
  inset-inline-start: 50%;
  translate: -50% 10px;
  z-index: 2;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: rgba(250, 245, 238, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.4s var(--ease), translate 0.4s var(--ease), background-color 0.25s;
}

.card:hover .card__qv,
.card:focus-within .card__qv { opacity: 1; translate: -50% 0; }
.card__qv:hover { background: var(--ink); color: var(--cream); }

.card__body { padding: 1.05rem 1.15rem 1.2rem; display: flex; flex-direction: column; flex: 1; gap: 0.4rem; }

.card__cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--copper);
}

html[lang="ar"] .card__cat { letter-spacing: 0; font-size: 0.8rem; }

.card__name { font-size: 1.03rem; font-weight: 750; letter-spacing: -0.018em; line-height: 1.32; }

.card__desc {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__ft {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-block-start: auto;
  padding-block-start: 0.95rem;
}

.card__price { font-size: 1.12rem; font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; }
.card__price small { font-size: 0.72em; font-weight: 700; color: var(--muted); margin-inline-start: 0.18rem; }

.add {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.84rem;
  font-weight: 700;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.add svg { width: 16px; height: 16px; }
.add:hover { background: var(--copper); transform: translateY(-2px); }
.add.is-done { background: var(--pine); }

.empty { text-align: center; color: var(--muted); padding-block: 3.5rem; font-size: 1.02rem; }

/* ---------- sticky why ---------- */

.sticky {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}

.sticky__side { position: sticky; top: calc(var(--hdr-h) + 2.2rem); }

.sticky__side .sec__title { margin-block-end: 1.1rem; }

.sticky__bar {
  margin-block-start: 2.2rem;
  height: 3px;
  width: 100%;
  max-width: 240px;
  background: var(--cream-3);
  border-radius: 99px;
  overflow: hidden;
}

.sticky__bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--copper), var(--gold));
  border-radius: 99px;
  transform: scaleX(0);
  transform-origin: 0 50%;
}

html[dir="rtl"] .sticky__bar i { transform-origin: 100% 50%; }

.steps { display: flex; flex-direction: column; gap: 1.1rem; counter-reset: s; }

.step {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.step:hover { border-color: var(--copper); transform: translateX(6px); box-shadow: var(--sh-s); }
html[dir="rtl"] .step:hover { transform: translateX(-6px); }

.step__n {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--copper);
  margin-block-end: 0.8rem;
}

.step h3 { font-size: 1.24rem; margin-block-end: 0.55rem; }
.step p { color: var(--muted); font-size: 0.96rem; }

/* ---------- stats ---------- */

.stats {
  background: var(--ink);
  color: var(--cream);
  padding-block: clamp(2.8rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 20% 0%, rgba(201, 98, 47, 0.3), transparent 70%);
  pointer-events: none;
}

.stats__in {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat b {
  display: block;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(180deg, var(--cream), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-block-end: 0.6rem;
}

.stat span { font-size: 0.88rem; font-weight: 600; color: var(--muted-dk); }

/* ---------- reviews ---------- */

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.2rem;
}

.quote {
  padding: 1.8rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.quote:hover { transform: translateY(-5px); box-shadow: var(--sh-m); }

.stars {
  height: 16px;
  width: 96px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e0b25c' d='M12 2l2.9 6.3 6.9.8-5.1 4.7 1.4 6.8L12 17.3 5.9 20.6l1.4-6.8L2.2 9.1l6.9-.8z'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 20px 16px;
}

.quote blockquote {
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.quote blockquote::before { content: "\201C"; color: var(--copper); margin-inline-end: 0.06em; }
.quote blockquote::after { content: "\201D"; color: var(--copper); margin-inline-start: 0.06em; }

.quote figcaption { display: flex; flex-direction: column; gap: 0.15rem; margin-block-start: auto; }
.quote figcaption span { font-weight: 750; font-size: 0.95rem; }
.quote figcaption small { color: var(--muted); font-size: 0.8rem; }

/* ---------- contact ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact__main .sec__title { margin-block-end: 1rem; }
.contact__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-block-start: 1.9rem; }

.contact__facts {
  display: grid;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
}

.contact__facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  border-block-end: 1px solid var(--line);
}

.contact__facts > div:last-child { border-block-end: 0; }

.contact__facts dt { font-size: 0.82rem; font-weight: 700; color: var(--muted); letter-spacing: 0.02em; }
.contact__facts dd { font-weight: 700; font-size: 0.98rem; text-align: end; }
.contact__facts a { color: var(--copper); border-block-end: 1.5px solid transparent; transition: border-color 0.25s; }
.contact__facts a:hover { border-color: var(--copper); }

/* ---------- footer ---------- */

.ftr { background: var(--ink); color: var(--cream-2); padding-block: clamp(3rem, 6vw, 4.5rem) 1.6rem; }

.ftr__in {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.8rem, 4vw, 3rem);
  padding-block-end: 2.6rem;
  border-block-end: 1px solid var(--line-dk);
}

.brand--light .brand__mark { color: var(--copper-lit); }

.ftr__brand p { color: var(--muted-dk); font-size: 0.93rem; max-width: 34ch; margin-block-start: 1.1rem; }

.ftr__col { display: flex; flex-direction: column; gap: 0.65rem; align-items: flex-start; }

.ftr__col h3 {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  margin-block-end: 0.5rem;
}

html[lang="ar"] .ftr__col h3 { letter-spacing: 0; font-size: 0.9rem; }

.ftr__col a { font-size: 0.93rem; color: var(--muted-dk); transition: color 0.25s var(--ease), transform 0.25s var(--ease); }
.ftr__col a:hover { color: var(--gold); transform: translateX(3px); }
html[dir="rtl"] .ftr__col a:hover { transform: translateX(-3px); }

.pol { width: 100%; border-block-end: 1px solid var(--line-dk); }
.pol:first-of-type { border-block-start: 1px solid var(--line-dk); }

.pol summary {
  padding-block: 0.75rem;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--muted-dk);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color 0.25s var(--ease);
}

.pol summary::-webkit-details-marker { display: none; }

.pol summary::after {
  content: "";
  width: 9px; height: 9px;
  flex: none;
  border-inline-end: 1.8px solid currentColor;
  border-block-end: 1.8px solid currentColor;
  rotate: 45deg;
  translate: 0 -2px;
  transition: rotate 0.35s var(--ease);
}

.pol[open] summary::after { rotate: 225deg; }
.pol[open] summary, .pol summary:hover { color: var(--gold); }
.pol p { font-size: 0.87rem; color: var(--muted-dk); padding-block-end: 0.9rem; line-height: 1.7; }

.ftr__base {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  padding-block-start: 1.6rem;
  font-size: 0.83rem;
  color: var(--muted-dk);
}

/* ---------- cart drawer ---------- */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(22, 17, 13, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.scrim.is-in { opacity: 1; }

.drawer {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  z-index: 140;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--cream);
  box-shadow: var(--sh-l);
  transform: translateX(var(--drawer-shift));
  transition: transform 0.5s var(--ease);
}

.drawer.is-in { transform: translateX(0); }

.drawer__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border-block-end: 1px solid var(--line);
  background: var(--white);
}

.drawer__hd h2 { font-size: 1.18rem; }

.drawer__body { flex: 1; overflow-y: auto; padding: 1rem 1.4rem; display: flex; flex-direction: column; gap: 0.85rem; }

.drawer__empty {
  position: absolute;
  inset: 0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  color: var(--muted);
  background: var(--cream);
}

.drawer__empty svg { width: 52px; height: 52px; color: var(--cream-3); }
.drawer__empty p { font-weight: 650; }

.citem {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.7rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  animation: slidein 0.4s var(--ease);
}

@keyframes slidein { from { opacity: 0; transform: translateY(8px); } }

.citem img { width: 68px; height: 68px; object-fit: cover; border-radius: var(--r-s); background: var(--cream-2); }

.citem__n { font-size: 0.9rem; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; }
.citem__p { font-size: 0.84rem; color: var(--muted); font-weight: 600; margin-block-start: 0.2rem; }

.citem__ctl { display: flex; align-items: center; gap: 0.35rem; margin-block-start: 0.55rem; }

.citem__ctl button {
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.4px solid var(--line);
  background: var(--cream);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  transition: all 0.22s var(--ease);
}

.citem__ctl button:hover { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.citem__ctl output { min-width: 22px; text-align: center; font-size: 0.88rem; font-weight: 750; }

.citem__x {
  align-self: flex-start;
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  transition: all 0.22s var(--ease);
}

.citem__x svg { width: 14px; height: 14px; }
.citem__x:hover { background: rgba(201, 98, 47, 0.14); color: var(--copper); }

.drawer__ft { padding: 1.2rem 1.4rem 1.5rem; border-block-start: 1px solid var(--line); background: var(--white); }

.drawer__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
  color: var(--muted);
  padding-block-end: 0.5rem;
}

.drawer__row b { color: var(--pine); font-weight: 700; }

.drawer__row--total {
  padding-block: 0.75rem 0.5rem;
  margin-block-start: 0.3rem;
  border-block-start: 1px dashed var(--line);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
}

.drawer__row--total b { color: var(--ink); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; }

.drawer__cod { font-size: 0.8rem; color: var(--muted); margin-block-end: 1rem; }

.drawer__hint {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin-block-start: 0.75rem;
  line-height: 1.5;
}

.drawer__hint a { color: var(--copper); font-weight: 700; }

/* ---------- checkout view ---------- */

.checkout {
  position: fixed;
  inset-block-start: var(--hdr-h);
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 145;
  overflow-y: auto;
  background: var(--cream);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.checkout.is-in { opacity: 1; }

.checkout__bar {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2rem);
  background: var(--white);
  border-block-end: 1px solid var(--line);
}

.checkout__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.22s var(--ease);
}

.checkout__back:hover { color: var(--ink); }
.checkout__back svg { width: 18px; height: 18px; }
html[dir="rtl"] .checkout__back svg { transform: scaleX(-1); }

.checkout__title { font-size: 1.15rem; margin-inline-start: auto; }

.checkout__cod {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--pine);
  background: rgba(29, 59, 51, 0.08);
  padding: 0.3rem 0.7rem;
  border-radius: 99px;
  white-space: nowrap;
}

.checkout__in { padding-block: clamp(1.5rem, 4vw, 2.5rem) 3rem; }

.checkout__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2.2rem);
  align-items: start;
}

.checkout__form,
.checkout__summary {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: clamp(1.2rem, 3vw, 1.9rem);
}

.checkout__form { display: flex; flex-direction: column; gap: 1rem; }

.checkout__summary { position: sticky; inset-block-start: calc(var(--hdr-h) + 1rem); }

.field { display: flex; flex-direction: column; gap: 0.35rem; }

.field label { font-size: 0.85rem; font-weight: 700; color: var(--ink-2); }

.field input,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: var(--r-s);
  padding: 0.7rem 0.85rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field textarea { resize: vertical; min-height: 84px; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(201, 98, 47, 0.14);
}

.field.is-bad input,
.field.is-bad textarea { border-color: #c0392b; }

.field__err { font-size: 0.76rem; font-weight: 600; color: #c0392b; }

.checkout__hint { font-size: 0.78rem; color: var(--muted); text-align: center; line-height: 1.5; }

.checkout__items { display: flex; flex-direction: column; gap: 0.7rem; margin-block: 0.9rem 1rem; }

.co-item { display: flex; gap: 0.75rem; align-items: center; }

.co-item img { width: 52px; height: 52px; object-fit: cover; border-radius: var(--r-s); background: var(--cream-2); flex: none; }

.co-item__n { font-size: 0.86rem; font-weight: 700; line-height: 1.3; }
.co-item__q { font-size: 0.78rem; color: var(--muted); font-weight: 600; margin-block-start: 0.15rem; }
.co-item__p { margin-inline-start: auto; font-size: 0.86rem; font-weight: 750; white-space: nowrap; }

.checkout__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

.checkout__empty svg { width: 52px; height: 52px; color: var(--cream-3); }
.checkout__empty p { font-weight: 650; }

.checkout__done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  text-align: center;
  padding: clamp(2.5rem, 7vw, 4.5rem) 1rem;
}

.checkout__done-ic {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(29, 59, 51, 0.1);
  color: var(--pine);
}

.checkout__done-ic svg { width: 30px; height: 30px; }

.checkout__done h3 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); letter-spacing: -0.02em; }

.checkout__done p { color: var(--muted); max-width: 46ch; line-height: 1.6; }

/* ---------- quick view modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(22, 17, 13, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  overflow-y: auto;
}

.modal.is-in { opacity: 1; }

.modal__box {
  position: relative;
  width: min(880px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--cream);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-l);
  transform: translateY(22px) scale(0.97);
  transition: transform 0.45s var(--ease);
}

.modal.is-in .modal__box { transform: translateY(0) scale(1); }

.modal__x {
  position: absolute;
  inset-block-start: 0.8rem;
  inset-inline-end: 0.8rem;
  z-index: 3;
  background: rgba(250, 245, 238, 0.9);
  color: var(--ink);
}

.modal__media { position: relative; background: var(--cream-2); }
.modal__media > img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.modal__thumbs { position: absolute; inset-block-end: 0.8rem; inset-inline-start: 0.8rem; display: flex; gap: 0.4rem; }

.modal__thumbs button {
  width: 46px; height: 46px;
  border-radius: var(--r-s);
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--white);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.modal__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.modal__thumbs button:hover { transform: translateY(-2px); }
.modal__thumbs button[aria-current="true"] { border-color: var(--copper); }

.modal__info { padding: clamp(1.5rem, 3vw, 2.3rem); display: flex; flex-direction: column; gap: 0.8rem; overflow-y: auto; max-height: 82vh; }
.modal__info h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.modal__desc { color: var(--muted); font-size: 0.97rem; }
.modal__price { font-size: 1.85rem; font-weight: 800; letter-spacing: -0.04em; }
.modal__price small { font-size: 0.5em; color: var(--muted); font-weight: 700; margin-inline-start: 0.25rem; }

.modal__buy { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-block-start: 0.4rem; }
.modal__buy .btn { flex: 1; min-width: 160px; }

.qty {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.3rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.qty button {
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease);
}

.qty button:hover { background: var(--ink); color: var(--cream); }
.qty output { min-width: 30px; text-align: center; font-weight: 750; font-size: 0.95rem; }

.modal__meta {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-block-start: auto;
  padding-block-start: 1.2rem;
  border-block-start: 1px solid var(--line);
}

.modal__meta li {
  position: relative;
  padding-inline-start: 1.3rem;
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 600;
}

.modal__meta li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.5em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--pine);
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  inset-block-end: 1.6rem;
  inset-inline-start: 50%;
  translate: -50% 20px;
  z-index: 160;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 650;
  box-shadow: var(--sh-l);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), translate 0.35s var(--ease);
  max-width: calc(100% - 2rem);
  text-align: center;
}

.toast.is-in { opacity: 1; translate: -50% 0; }

/* ---------- scroll reveal ---------- */

[data-reveal] {
  opacity: 0;
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease), clip-path 0.95s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: transform, opacity;
}

[data-reveal="up"] { transform: translateY(34px); }
[data-reveal="fade"] { transform: none; }
[data-reveal="left"] { transform: translateX(-34px); }
[data-reveal="right"] { transform: translateX(34px); }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal="clip"] { clip-path: inset(0 0 100% 0); transform: none; }

html[dir="rtl"] [data-reveal="left"] { transform: translateX(34px); }
html[dir="rtl"] [data-reveal="right"] { transform: translateX(-34px); }

[data-reveal].is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }

/* ---------- responsive ---------- */

@media (max-width: 1040px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__stage { height: clamp(260px, 62vw, 380px); margin-block-start: 1rem; }
  .sticky { grid-template-columns: 1fr; }
  .sticky__side { position: static; }
  .contact { grid-template-columns: 1fr; }
  .ftr__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset-block: 0;
    inset-inline-end: 0;
    z-index: 135;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.4rem;
    width: min(320px, 84vw);
    padding: 2rem;
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    box-shadow: var(--sh-l);
    transform: translateX(var(--drawer-shift));
    transition: transform 0.5s var(--ease);
  }

  .nav.is-in { transform: translateX(0); }
  .nav a { font-size: 1.25rem; font-weight: 700; padding: 0.6rem 0.4rem; opacity: 1; }
  .nav a::after { display: none; }
  .burger { display: grid; }
  .hdr__act { margin-inline-start: auto; }
  .modal__box { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
  .modal__info { max-height: none; }
  .checkout__grid { grid-template-columns: 1fr; }
  .checkout__summary { position: static; }
  .checkout__title { font-size: 1rem; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { width: min(1220px, 100% - 1.75rem); }
  .hdr__in { gap: 0.6rem; }
  .brand__name { font-size: 1rem; }
  .langsw__b { padding: 0.26rem 0.55rem; font-size: 0.72rem; }
  .hero { padding-block-end: 3.5rem; }
  .hero__cue { display: none; }
  .float { width: 52% !important; }
  .float--3 { inset-block-start: 34%; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 158px), 1fr)); gap: 0.8rem; }
  .card { border-radius: var(--r-m); }
  .card__body { padding: 0.85rem 0.9rem 1rem; }
  .card__name { font-size: 0.93rem; }
  .card__desc { display: none; }
  .card__ft { flex-direction: column; align-items: stretch; gap: 0.55rem; }
  .card__price { font-size: 1rem; }
  .add { justify-content: center; padding: 0.5rem; }
  .add span { display: none; }
  .add svg { width: 19px; height: 19px; }
  .card__qv { display: none; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .sortwrap { justify-content: space-between; }
  .sortwrap select { flex: 1; }
  .ftr__in { grid-template-columns: 1fr; }
  .stats__in { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; }
  .sec__note { max-width: none; }
  .drawer { width: 100%; }
  .catrail { grid-auto-columns: minmax(200px, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .mask > span { transform: none !important; }
  .marquee__track { animation: none !important; }
  .float { animation: none !important; }
}
