/* =========================================================
   Mehrzad Gold Gallery — Stylesheet
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 180ms var(--ease-out);

  --font-fa: 'Vazirmatn', system-ui, sans-serif;
  --font-en: 'Manrope', system-ui, sans-serif;
  --font-display-en: 'Cormorant Garamond', Georgia, serif;
  --font-body: var(--font-fa);
  --font-display: var(--font-fa);

  --text-xs: clamp(0.72rem, 0.7rem + 0.1vw, 0.8rem);
  --text-sm: clamp(0.84rem, 0.8rem + 0.15vw, 0.92rem);
  --text-base: clamp(0.95rem, 0.92rem + 0.15vw, 1.05rem);
  --text-lg: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  --text-xl: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  --text-2xl: clamp(1.8rem, 1.2rem + 2vw, 3rem);
  --text-hero: clamp(2.6rem, 1.2rem + 6vw, 6.4rem);

  --radius: 2px;
  --radius-lg: 4px;
  --container: 1320px;
  --gutter: clamp(1.1rem, 0.6rem + 2.4vw, 2.5rem);
  --header-h: 76px;
}

/* Dark (default) — black, gold, dark grey, dark brown */
[data-theme='dark'] {
  --bg: #0a0a0a;
  --bg-2: #111110;
  --surface: #151413;
  --surface-2: #1c1a18;
  --brown: #2a2119;
  --text: #f5f2ec;
  --text-2: #bdb6ab;
  --muted: #8a847b;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --gold: #c9a45c;
  --gold-2: #e2c78c;
  --gold-ink: #0a0a0a;
  --on-gold: #0a0a0a;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --img-bg: #1a1817;
  color-scheme: dark;
}

/* Light — white/cream, gold, grey, light brown */
[data-theme='light'] {
  --bg: #fbfaf7;
  --bg-2: #f4f1ea;
  --surface: #ffffff;
  --surface-2: #f2eee6;
  --brown: #cdb89a;
  --text: #0f0e0d;
  --text-2: #4a453e;
  --muted: #7a736a;
  --line: rgba(0, 0, 0, 0.09);
  --line-2: rgba(0, 0, 0, 0.18);
  --gold: #9e7a34;
  --gold-2: #b8914a;
  --gold-ink: #fff;
  --on-gold: #ffffff;
  --shadow: 0 24px 60px -28px rgba(40, 30, 15, 0.28);
  --img-bg: #efebe3;
  color-scheme: light;
}

html[lang='en'] {
  --font-body: var(--font-en);
  --font-display: var(--font-display-en);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.6s var(--ease-io), color 0.6s var(--ease-io);
}
body.is-locked { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--on-gold); }
:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 3px; }
.ltr { direction: ltr; unicode-bidi: isolate; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.5rem, 3rem + 6vw, 9rem); position: relative; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: #0a0a0a; color: #c9a45c;
  display: grid; place-items: center;
  transition: clip-path 0.9s var(--ease-io), visibility 0s linear 0.9s;
  clip-path: inset(0 0 0 0);
}
.loader.is-done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.loader__inner { display: grid; justify-items: center; gap: 1.1rem; }
.loader__logo { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 1.5px solid rgba(201,164,92,.5); opacity: 0; animation: fade 0.8s 0.2s var(--ease-out) forwards; }
.loader__mark { width: 64px; height: 64px; }
.loader__mark .draw { stroke-dasharray: 200; stroke-dashoffset: 200; animation: draw 1.3s var(--ease-out) forwards; }
.loader__mark .d2 { animation-delay: 0.35s; }
.loader__name { font-family: var(--font-display-en); letter-spacing: 0.6em; font-size: 0.95rem; color: #f5f2ec; padding-inline-start: 0.6em; opacity: 0; animation: fade 0.8s 0.5s var(--ease-out) forwards; direction: ltr; }
.loader__bar { width: 120px; height: 1px; background: rgba(255,255,255,0.12); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 100%; background: #c9a45c; transform: scaleX(0); transform-origin: left; animation: bar 1.4s var(--ease-io) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes bar { to { transform: scaleX(1); } }

/* ---------- Curtain (language transition) ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 150; pointer-events: none;
  background: #0a0a0a; display: grid; place-items: center;
  clip-path: inset(100% 0 0 0);
}
.curtain__mark { font-family: var(--font-display-en); font-size: 3rem; color: #c9a45c; opacity: 0; transition: opacity .3s; }
.curtain.is-in { clip-path: inset(0 0 0 0); transition: clip-path 0.5s var(--ease-io); }
.curtain.is-in .curtain__mark { opacity: 1; }
.curtain.is-out { clip-path: inset(0 0 100% 0); transition: clip-path 0.55s var(--ease-io); }

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none;
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid var(--gold); border-radius: 50%;
  opacity: 0; transition: width .3s var(--ease-out), height .3s var(--ease-out), margin .3s var(--ease-out), opacity .3s, background-color .3s;
  will-change: transform;
}
.cursor.is-visible { opacity: .7; }
.cursor.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: color-mix(in srgb, var(--gold) 12%, transparent); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background-color .5s var(--ease-io), border-color .5s, height .5s var(--ease-out), transform .5s var(--ease-out);
  border-bottom: 1px solid transparent;
  color: #f5f2ec;
}
.header.is-scrolled {
  --header-h: 64px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--line);
  color: var(--text);
}
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: clamp(.5rem, 2vw, 1.5rem); }

.brand { display: flex; align-items: center; gap: .8rem; flex-shrink: 0; }
.brand__logo { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--gold); transition: transform .8s var(--ease-out); }
.brand:hover .brand__logo { transform: rotate(90deg); }
.brand__text { display: grid; line-height: 1.25; }
.brand__name { font-weight: 600; font-size: 1rem; letter-spacing: 0; }
html[lang='en'] .brand__name { font-family: var(--font-display-en); font-size: 1.2rem; font-weight: 600; }
.brand__sub { font-family: var(--font-display-en); font-size: .64rem; letter-spacing: .32em; opacity: .7; direction: ltr; text-align: start; }
html[lang='en'] .brand__sub { display: none; }

.nav { display: flex; gap: clamp(1rem, 2vw, 2.2rem); }
.nav__link { position: relative; font-size: var(--text-sm); padding-block: .4rem; opacity: .82; transition: opacity var(--t-fast), color var(--t-fast); }
.nav__link::after {
  content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: var(--origin, right); transition: transform .45s var(--ease-out);
}
html[dir='ltr'] .nav__link::after { --origin: left; }
.nav__link:hover, .nav__link.is-active { opacity: 1; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.controls { display: flex; align-items: center; gap: .5rem; }
.lang { position: relative; display: flex; border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 28%, transparent); border-radius: 99px; padding: 3px; direction: ltr; }
.lang__btn { position: relative; z-index: 1; font-family: var(--font-en); font-size: .7rem; font-weight: 600; letter-spacing: .1em; width: 38px; height: 28px; border-radius: 99px; transition: color .35s var(--ease-out); }
.lang__pill { position: absolute; top: 3px; left: 3px; width: 38px; height: 28px; border-radius: 99px; background: var(--gold); transition: transform .45s var(--ease-out); }
html[lang='en'] .lang__pill { transform: translateX(38px); }
html[lang='fa'] .lang__btn[data-lang='fa'], html[lang='en'] .lang__btn[data-lang='en'] { color: var(--on-gold); }

.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  transition: border-color var(--t-fast), background-color var(--t-fast), transform var(--t-fast);
}
.icon-btn:hover { border-color: var(--gold); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle svg { position: absolute; transition: transform .6s var(--ease-out), opacity .4s; }
[data-theme='dark'] .theme-toggle .i-sun { transform: rotate(-90deg) scale(.5); opacity: 0; }
[data-theme='light'] .theme-toggle .i-moon { transform: rotate(90deg) scale(.5); opacity: 0; }
.bag__count {
  position: absolute; top: -4px; inset-inline-end: -4px;
  min-width: 18px; height: 18px; padding-inline: 4px; border-radius: 99px;
  background: var(--gold); color: var(--on-gold);
  font-size: .64rem; font-weight: 700; display: grid; place-items: center; line-height: 1;
  transform: scale(0); transition: transform .4s var(--ease-out);
}
.bag__count.is-on { transform: scale(1); }
.bag__count.bump { animation: bump .5s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.4); } }

.burger { display: none; }
.burger span { position: absolute; width: 16px; height: 1.4px; background: currentColor; transition: transform .4s var(--ease-out); }
.burger span:first-child { transform: translateY(-3px); }
.burger span:last-child { transform: translateY(3px); }
.burger[aria-expanded='true'] span:first-child { transform: rotate(45deg); }
.burger[aria-expanded='true'] span:last-child { transform: rotate(-45deg); }

.mmenu {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem;
  clip-path: circle(0% at var(--mx, 90%) 36px);
  transition: clip-path .7s var(--ease-io);
  visibility: hidden;
}
html[dir='rtl'] .mmenu { --mx: 10%; }
.mmenu.is-open { clip-path: circle(150% at var(--mx, 90%) 36px); visibility: visible; }
.mmenu__nav { display: grid; gap: .4rem; }
.mmenu__nav a { font-size: clamp(1.8rem, 8vw, 2.6rem); font-weight: 300; padding-block: .35rem; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .6s var(--ease-out), color var(--t-fast); }
html[lang='en'] .mmenu__nav a { font-family: var(--font-display-en); }
.mmenu.is-open .mmenu__nav a { opacity: 1; transform: none; }
.mmenu.is-open .mmenu__nav a:nth-child(1) { transition-delay: .15s; }
.mmenu.is-open .mmenu__nav a:nth-child(2) { transition-delay: .2s; }
.mmenu.is-open .mmenu__nav a:nth-child(3) { transition-delay: .25s; }
.mmenu.is-open .mmenu__nav a:nth-child(4) { transition-delay: .3s; }
.mmenu.is-open .mmenu__nav a:nth-child(5) { transition-delay: .35s; }
.mmenu__nav a:active { color: var(--gold); }
.mmenu__foot { margin-top: 2rem; color: var(--muted); font-size: var(--text-sm); display: grid; gap: 1rem; }
.mmenu__langs .flang { border-color: var(--line-2); color: var(--text); }
.mmenu__langs .flang.is-active { color: #0a0a0a; }
.hero__media { will-change: transform; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 50px; padding: 0 1.9rem; border-radius: 99px;
  font-size: var(--text-sm); font-weight: 500; letter-spacing: .01em;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: color .4s var(--ease-out), border-color .4s, transform .25s var(--ease-out), box-shadow .4s;
}
html[lang='en'] .btn { letter-spacing: .06em; text-transform: uppercase; font-size: .76rem; font-weight: 600; }
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: scale(.97); }
.btn--gold { background: var(--gold); color: var(--on-gold); }
.btn--gold::before { background: #f5f2ec; }
[data-theme='light'] .btn--gold::before { background: #0f0e0d; }
.btn--gold:hover { color: #0a0a0a; box-shadow: 0 14px 34px -12px color-mix(in srgb, var(--gold) 70%, transparent); }
[data-theme='light'] .btn--gold:hover { color: #fff; }
.btn--ghost { border: 1px solid rgba(255,255,255,.4); color: #f5f2ec; }
.btn--ghost::before { background: #f5f2ec; }
.btn--ghost:hover { color: #0a0a0a; border-color: #f5f2ec; }
.btn--line { border: 1px solid var(--line-2); color: var(--text); }
.btn--line::before { background: var(--text); }
.btn--line:hover { color: var(--bg); border-color: var(--text); }
.btn--solid { background: var(--text); color: var(--bg); }
.btn--solid::before { background: var(--gold); }
.btn--solid:hover { color: var(--on-gold); }
.btn--sm { min-height: 42px; padding: 0 1.1rem; font-size: .8rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: grid; grid-template-rows: 1fr auto; overflow: hidden;
  color: #f5f2ec; background: #0a0a0a;
}
@supports (min-height: 100svh) { .hero { min-height: 100svh; } }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  animation: heroBgIn 1.2s var(--ease-out, ease) both;
}
@keyframes heroBgIn { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: scale(1); } }
body.is-ready .hero__video { z-index: 1; }
.hero__video {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08); transition: transform 2.4s var(--ease-out), opacity 1.2s;
  will-change: transform;
}
body.is-ready .hero__video { transform: scale(1); }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 48%, rgba(0,0,0,.58) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.2) 100%),
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 30%, rgba(0,0,0,.25) 65%, rgba(10,10,10,.95) 100%);
}
.hero__grain {
  position: absolute; inset: 0; opacity: .06; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding-top: calc(var(--header-h) + 2rem); padding-bottom: 2rem;
  will-change: transform, opacity;
}
.hero__eyebrow { display: flex; align-items: center; gap: 1rem; font-size: var(--text-xs); letter-spacing: .12em; color: var(--gold-2); margin-bottom: 1.6rem; }
[data-theme='light'] .hero__eyebrow { color: #e2c78c; }
html[lang='en'] .hero__eyebrow { letter-spacing: .3em; text-transform: uppercase; }
.hero__eyebrow .line { width: 36px; height: 1px; background: currentColor; opacity: .7; }
.hero__logo-wrap { margin-bottom: 1.2rem; }
.hero__logo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(201,164,92,.6); box-shadow: 0 4px 30px rgba(0,0,0,.5); }
.hero__title { font-weight: 200; line-height: 1.15; margin: 0; }
.hero__title-fa { display: block; font-size: var(--text-hero); font-weight: 300; letter-spacing: -0.01em; text-shadow: 0 2px 40px rgba(0,0,0,.45); }
html[lang='en'] .hero__title-fa { font-family: var(--font-display-en); font-weight: 400; letter-spacing: .01em; }
.hero__latin { font-family: var(--font-display-en); letter-spacing: .55em; font-size: clamp(.7rem, .6rem + .4vw, .95rem); color: var(--gold-2); margin-top: 1.1rem; padding-inline-start: .55em; direction: ltr; }
[data-theme='light'] .hero__latin { color: #e2c78c; }
html[lang='en'] .hero__latin { display: none; }
.hero__slogan { max-width: 52ch; text-wrap: balance; font-size: clamp(1.02rem, .9rem + .6vw, 1.45rem); font-weight: 300; line-height: 1.9; color: rgba(245,242,236,.92); margin-top: 1.8rem; text-shadow: 0 1px 20px rgba(0,0,0,.5); }
html[lang='en'] .hero__slogan { font-family: var(--font-display-en); font-style: italic; font-size: clamp(1.15rem, 1rem + .8vw, 1.7rem); line-height: 1.5; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: 2.6rem; }

.hero__bottom {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 1rem;
  padding-bottom: 1.8rem;
}
.hero__badge { display: flex; align-items: center; gap: .6rem; font-size: var(--text-xs); color: rgba(245,242,236,.82); justify-self: start; }
.hero__badge svg { width: 20px; height: 20px; color: var(--gold-2); flex-shrink: 0; }
.hero__rate { justify-self: end; display: grid; text-align: end; font-size: var(--text-xs); color: rgba(245,242,236,.7); line-height: 1.5; }
.hero__rate strong { font-size: var(--text-sm); color: #f5f2ec; font-weight: 500; font-variant-numeric: tabular-nums; }
.hero__scroll { display: grid; justify-items: center; gap: .6rem; font-size: .66rem; letter-spacing: .2em; color: rgba(245,242,236,.7); text-transform: uppercase; }
.hero__scroll-line { width: 1px; height: 46px; background: rgba(255,255,255,.2); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ''; position: absolute; inset: 0; background: var(--gold-2); transform: translateY(-100%); animation: scrollLine 2.2s var(--ease-io) infinite; }
@keyframes scrollLine { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

.reveal-hero { opacity: 0; transform: translateY(26px); filter: blur(6px); }
body.is-ready .reveal-hero { opacity: 1; transform: none; filter: none; transition: opacity 1.1s var(--ease-out) var(--d, 0s), transform 1.2s var(--ease-out) var(--d, 0s), filter 1.1s var(--ease-out) var(--d, 0s); }

/* ---------- Marquee band ---------- */
.band { border-block: 1px solid var(--line); overflow: hidden; background: var(--bg); padding-block: 1.1rem; direction: ltr; }
.band__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.band__item { display: flex; align-items: center; gap: 2.6rem; padding-inline-end: 2.6rem; font-size: var(--text-lg); font-weight: 300; color: var(--text-2); white-space: nowrap; }
html[lang='en'] .band__item { font-family: var(--font-display-en); font-size: var(--text-xl); font-style: italic; }
.band__item i { width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); display: inline-block; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section head ---------- */
.sec-head { margin-bottom: clamp(2.2rem, 1.5rem + 2vw, 3.6rem); max-width: 720px; }
.sec-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .kicker { justify-content: center; }
.kicker { display: flex; align-items: center; gap: .8rem; font-size: var(--text-xs); color: var(--gold); letter-spacing: .1em; margin-bottom: 1rem; }
html[lang='en'] .kicker { letter-spacing: .28em; text-transform: uppercase; font-weight: 600; }
.kicker__num { font-family: var(--font-en); font-size: .72rem; font-weight: 500; letter-spacing: 0; padding-inline-end: .8rem; border-inline-end: 1px solid var(--line-2); color: var(--text-2); }
.sec-title { font-size: var(--text-2xl); font-weight: 300; line-height: 1.35; letter-spacing: -0.01em; }
html[lang='en'] .sec-title { font-family: var(--font-display-en); font-weight: 500; line-height: 1.12; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.4rem); }
.sec-lead { color: var(--text-2); margin-top: 1rem; max-width: 56ch; }
.sec-note { color: var(--muted); font-size: var(--text-sm); max-width: 44ch; }

/* Scroll reveal (opacity + blur — no layout shift) */
.reveal { opacity: 0; filter: blur(8px); transition: opacity 1s var(--ease-out), filter 1s var(--ease-out); transition-delay: var(--rd, 0s); }
.reveal.is-in { opacity: 1; filter: none; }

/* ---------- Categories ---------- */
.categories { background: var(--bg); }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.8rem, .5rem + 1vw, 1.4rem); }
.cat {
  display: flex; flex-direction: column; text-align: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: .7rem .7rem 1.1rem; gap: 1rem;
  transition: border-color .5s var(--ease-out), transform .6s var(--ease-out), box-shadow .6s var(--ease-out), background-color .6s;
}
.cat__img { position: relative; aspect-ratio: 4 / 3.6; overflow: hidden; border-radius: var(--radius); background: var(--img-bg); }
.cat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .8s; filter: saturate(.92); }
.cat__meta { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding-inline: .3rem; }
.cat__name { font-size: var(--text-lg); font-weight: 500; }
html[lang='en'] .cat__name { font-family: var(--font-display-en); font-size: 1.45rem; font-weight: 600; }
.cat__count { font-size: var(--text-xs); color: var(--muted); display: flex; align-items: center; gap: .5rem; white-space: nowrap; }
.cat__arrow { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: .8rem; transition: background-color .4s, color .4s, border-color .4s, transform .5s var(--ease-out); }
html[dir='rtl'] .cat__arrow { transform: scaleX(-1); }
.cat:hover { border-color: color-mix(in srgb, var(--gold) 55%, transparent); transform: translateY(-6px); box-shadow: var(--shadow); }
.cat:hover .cat__img img { transform: scale(1.07); filter: saturate(1.05); }
.cat:hover .cat__arrow { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.cat:active { transform: translateY(-2px) scale(.99); }
.cat.is-active { border-color: var(--gold); }

/* ---------- Filters ---------- */
.filters-bar {
  position: sticky; top: var(--sticky-top, 64px); z-index: 20;
  margin-inline: calc(var(--gutter) * -1); padding: .7rem var(--gutter);
  background: var(--bg); border-bottom: 1px solid transparent;
  transition: top .5s var(--ease-out), border-color .4s, background-color .6s;
}
body.hdr-hidden .filters-bar { --sticky-top: 0px; }
.filters-bar.is-stuck { border-color: var(--line); }
.filters {
  display: flex; gap: .45rem; flex-wrap: wrap;
  padding: .4rem; width: fit-content; max-width: 100%;
  border: 1px solid var(--line); border-radius: 99px; background: var(--surface);
}
.chip {
  position: relative; display: inline-flex; align-items: center; gap: .45rem;
  min-height: 42px; padding: 0 1.1rem; border-radius: 99px;
  font-size: var(--text-sm); color: var(--text-2); white-space: nowrap;
  transition: color .35s var(--ease-out), background-color .35s, transform .2s var(--ease-out);
}
.chip small { font-size: .68rem; color: var(--muted); font-variant-numeric: tabular-nums; transition: color .35s; }
.chip:hover { color: var(--text); background: var(--surface-2); }
.chip:active { transform: scale(.95); }
.chip.is-active { color: var(--bg); background: var(--text); }
.chip.is-active small { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.result-count { font-size: var(--text-xs); color: var(--muted); margin: .9rem 0 1.6rem; min-height: 1.4em; }

/* ---------- Product grid & card ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, .6rem + 1.2vw, 1.8rem); }
.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; min-width: 0;
  transition: border-color .5s var(--ease-out), box-shadow .6s var(--ease-out), transform .6s var(--ease-out), background-color .6s;
  opacity: 0; transform: translateY(24px) scale(.985);
}
.card.is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease-out) var(--sd, 0s), transform .9s var(--ease-out) var(--sd, 0s), border-color .5s, box-shadow .6s, background-color .6s; }
.card.is-out { opacity: 0; transform: scale(.96); transition: opacity .25s var(--ease-in), transform .25s var(--ease-in); }
.card:hover { border-color: color-mix(in srgb, var(--gold) 45%, transparent); box-shadow: var(--shadow); }

.card__media { position: relative; display: block; width: 100%; aspect-ratio: 9 / 14; overflow: hidden; background: var(--img-bg); cursor: zoom-in; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out), opacity .8s var(--ease-out); }
.card__media img.alt { opacity: 0; }
.card:hover .card__media img { transform: scale(1.06); }
.card:hover .card__media img.alt { opacity: 1; }
.card__media::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); pointer-events: none; }
.img-skel { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--text) 6%, transparent) 50%, transparent 70%) var(--img-bg); background-size: 200% 100%; animation: shimmer 1.5s var(--ease-io) infinite; }
.card__media img { opacity: 0; }
.card__media img.is-loaded { opacity: 1; }
.card__media img.alt.is-loaded { opacity: 0; }
.card:hover .card__media img.alt.is-loaded { opacity: 1; }
@keyframes shimmer { to { background-position: -200% 0; } }

.card__body { display: flex; flex-direction: column; gap: .9rem; padding: 1.1rem 1.1rem 1.2rem; flex: 1; min-width: 0; }
.card__top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.card__cat { font-size: .7rem; color: var(--gold); letter-spacing: .06em; }
html[lang='en'] .card__cat { letter-spacing: .2em; text-transform: uppercase; font-weight: 600; font-size: .62rem; }
.card__var { font-size: .68rem; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: .05rem .55rem; white-space: nowrap; }
.card__name { font-size: 1.02rem; font-weight: 500; line-height: 1.55; min-height: 3.1em; overflow-wrap: break-word; word-break: break-word; }
html[lang='en'] .card__name { font-family: var(--font-display-en); font-size: 1.3rem; font-weight: 600; line-height: 1.2; min-height: 2.4em; }
.card__specs { display: grid; gap: .35rem; padding-block: .8rem; border-block: 1px solid var(--line); font-size: var(--text-xs); }
.spec { display: flex; justify-content: space-between; gap: .6rem; color: var(--muted); }
.spec b { color: var(--text-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.card__price { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.card__price span { font-size: var(--text-xs); color: var(--muted); }
.card__price strong { font-size: 1.12rem; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: break-word; }
.card__price strong em { font-style: normal; font-size: .72rem; font-weight: 400; color: var(--muted); margin-inline-start: .25rem; }
.card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: auto; }
.card__actions .btn { padding: 0 .6rem; min-height: 44px; font-size: .8rem; }
html[lang='en'] .card__actions .btn { font-size: .66rem; letter-spacing: .08em; }

/* ---------- Lookbook ---------- */
.lookbook { padding-block: clamp(4.5rem, 3rem + 5vw, 8rem); background: var(--bg-2); overflow: hidden; }
.lb-row { overflow: hidden; direction: ltr; margin-bottom: 1rem; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%); }
.lb-track { display: flex; gap: 1rem; width: max-content; animation: marquee 90s linear infinite; }
.lb-track--rev { animation-direction: reverse; animation-duration: 110s; }
.lb-row:hover .lb-track { animation-play-state: paused; }
.lb-item { flex: 0 0 auto; width: clamp(150px, 12vw, 210px); aspect-ratio: 9 / 15; overflow: hidden; border-radius: var(--radius-lg); background: var(--img-bg); cursor: zoom-in; border: 1px solid var(--line); }
.lb-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out), filter .6s; filter: grayscale(.35); }
.lb-item:hover img { transform: scale(1.07); filter: none; }

/* ---------- About ---------- */
.about { background: var(--bg); overflow: hidden; }
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 2rem + 4vw, 6rem); align-items: center; }
.about__visual { position: relative; height: clamp(460px, 40vw, 640px); }
.about__img { position: absolute; overflow: hidden; border-radius: var(--radius-lg); background: var(--img-bg); border: 1px solid var(--line); box-shadow: var(--shadow); will-change: transform; }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__img--a { inset-inline-start: 0; top: 0; width: 62%; height: 86%; }
.about__img--b { inset-inline-end: 0; bottom: 0; width: 46%; height: 62%; border: 6px solid var(--bg); }
.about__p { color: var(--text-2); margin-top: 1.2rem; max-width: 58ch; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-block: 2.4rem; padding-block: 1.6rem; border-block: 1px solid var(--line); }
.stat { display: grid; gap: .3rem; }
.stat strong { font-family: var(--font-display-en); font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); font-weight: 500; line-height: 1; color: var(--gold); font-variant-numeric: lining-nums tabular-nums; }
.stat span { font-size: var(--text-xs); color: var(--muted); }
.about__facts { list-style: none; display: grid; gap: 1rem; }
.fact { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.fact svg { width: 26px; height: 26px; color: var(--gold); flex-shrink: 0; margin-top: .15rem; }
.fact div { display: grid; gap: .15rem; }
.fact strong { font-weight: 500; }
.fact span { font-size: var(--text-sm); color: var(--muted); }

/* ---------- Promise ---------- */
.promise { background: var(--bg); border-top: 1px solid var(--line); }
.promise__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.promise__item { padding: clamp(2rem, 1.5rem + 2vw, 3.2rem) clamp(1rem, .5rem + 2vw, 2.4rem); border-inline-end: 1px solid var(--line); }
.promise__item:last-child { border-inline-end: 0; }
.promise__n { font-family: var(--font-display-en); color: var(--gold); font-size: 1.1rem; display: block; margin-bottom: 1rem; }
.promise__item h3 { font-size: var(--text-lg); font-weight: 500; margin-bottom: .5rem; }
html[lang='en'] .promise__item h3 { font-family: var(--font-display-en); font-size: 1.5rem; font-weight: 600; }
.promise__item p { color: var(--muted); font-size: var(--text-sm); }

/* ---------- Contact ---------- */
.contact { background: var(--bg-2); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 1.5rem + 4vw, 5rem); align-items: start; }
.contact__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ccard { position: relative; display: grid; gap: .5rem; align-content: start; text-align: start; padding: 1.5rem; min-height: 150px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); transition: border-color .4s, transform .5s var(--ease-out), box-shadow .5s; }
.ccard__label { font-size: var(--text-xs); color: var(--gold); letter-spacing: .08em; }
html[lang='en'] .ccard__label { letter-spacing: .24em; text-transform: uppercase; font-weight: 600; }
.ccard__value { font-size: var(--text-base); font-weight: 500; line-height: 1.6; }
.ccard__arrow { position: absolute; bottom: 1.2rem; inset-inline-end: 1.3rem; font-size: 1.1rem; color: var(--muted); transition: transform .5s var(--ease-out), color .3s; }
html[dir='rtl'] .ccard--btn .ccard__arrow { transform: scaleX(-1); }
.ccard--link:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow); }
.ccard--link:hover .ccard__arrow { color: var(--gold); }
.ccard--btn { width: 100%; }

/* ---------- Footer ---------- */
.footer { background: #070707; color: #e9e5dd; padding-top: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
[data-theme='light'] .footer { background: #0f0e0d; }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; padding-bottom: 2.6rem; border-bottom: 1px solid rgba(255,255,255,.09); }
.footer__brand { display: flex; align-items: center; gap: 1rem; }
.footer__logo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 1.5px solid #c9a45c; }
.footer__name { font-size: var(--text-xl); font-weight: 400; line-height: 1.3; }
html[lang='en'] .footer__name { font-family: var(--font-display-en); font-weight: 500; }
.footer__latin { font-family: var(--font-display-en); letter-spacing: .4em; font-size: .7rem; color: #c9a45c; direction: ltr; text-align: start; }
html[lang='en'] .footer__latin { display: none; }
.footer__slogan { max-width: 36ch; color: #b9b2a6; font-size: var(--text-lg); font-weight: 300; line-height: 1.8; }
html[lang='en'] .footer__slogan { font-family: var(--font-display-en); font-style: italic; font-size: 1.35rem; line-height: 1.4; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; padding-block: 2.8rem; }
.footer__col { display: grid; gap: .55rem; align-content: start; font-size: var(--text-sm); color: #a39c90; }
.footer__col h4 { font-size: var(--text-xs); color: #c9a45c; font-weight: 500; letter-spacing: .08em; margin-bottom: .5rem; }
html[lang='en'] .footer__col h4 { letter-spacing: .26em; text-transform: uppercase; font-weight: 600; }
.footer__col a, .footer__col button.flink { width: fit-content; text-align: start; transition: color var(--t-fast), transform .4s var(--ease-out); }
.footer__col a:hover, .footer__col button.flink:hover { color: #f5f2ec; transform: translateX(var(--nudge, -4px)); }
html[dir='ltr'] .footer__col { --nudge: 4px; }
.footer__lic { color: #e9e5dd; }
.footer__map { display: inline-block; margin-top: .4rem; font-size: .82rem; color: #c9a45c; transition: opacity .3s; }
.footer__map:hover { opacity: .75; }
.footer__langs { display: flex; gap: .4rem; margin-bottom: .6rem; }
.footer__social { display: flex; flex-direction: column; gap: .5rem; margin-top: .6rem; }
.footer__social-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .8rem; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-md); font-size: .82rem; color: #e9e5dd; transition: border-color .3s, background-color .3s, transform .3s var(--ease-out); }
.footer__social-btn:hover { border-color: #c9a45c; background: rgba(201,164,92,.1); transform: translateY(-2px); }
.footer__social-btn svg { width: 18px; height: 18px; flex-shrink: 0; color: #c9a45c; }
.ccard__map { display: inline-block; margin-top: .4rem; font-size: .82rem; color: var(--gold); transition: opacity .3s; }
.ccard__map:hover { opacity: .75; }
.ccard__ig-logo, .ccard__wa-logo { position: absolute; bottom: 1.2rem; inset-inline-start: 1.3rem; width: 22px; height: 22px; color: var(--gold); }
html[dir='rtl'] .ccard__ig-logo, html[dir='rtl'] .ccard__wa-logo { inset-inline-start: auto; inset-inline-end: 3rem; }
.flang { border: 1px solid rgba(255,255,255,.18); border-radius: 99px; padding: .35rem .95rem; font-size: .78rem; transition: background-color .3s, color .3s, border-color .3s; }
.flang:hover { border-color: #c9a45c; }
.flang.is-active { background: #c9a45c; color: #0a0a0a; border-color: #c9a45c; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.6rem; border-top: 1px solid rgba(255,255,255,.09); font-size: var(--text-xs); color: #7d776e; }
.to-top { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; transition: background-color .3s, color .3s, transform .4s var(--ease-out); }
.to-top:hover { background: #c9a45c; color: #0a0a0a; transform: translateY(-3px); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 1.2rem; visibility: hidden; pointer-events: none; }
.modal.is-open { visibility: visible; pointer-events: auto; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .4s var(--ease-out); }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__panel {
  position: relative; width: min(560px, 100%); max-height: calc(100svh - 2.4rem); overflow: auto; overscroll-behavior: contain;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 40px 100px -30px rgba(0,0,0,.8);
  opacity: 0; transform: translateY(28px) scale(.97);
  transition: opacity .35s var(--ease-out), transform .5s var(--ease-out);
}
.modal__panel--wide { width: min(1040px, 100%); }
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal.is-closing .modal__panel { opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .2s var(--ease-in), transform .2s var(--ease-in); }
.modal.is-closing .modal__backdrop { opacity: 0; transition-duration: .2s; }
.modal__close {
  position: absolute; top: .8rem; inset-inline-end: .8rem; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; font-size: 1.4rem; line-height: 1;
  background: var(--surface); border: 1px solid var(--line-2); display: grid; place-items: center;
  transition: transform .4s var(--ease-out), background-color .3s, color .3s;
}
.modal__close:hover { transform: rotate(90deg); background: var(--text); color: var(--bg); }
.modal__close--static { position: static; }

/* detail */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.detail__gallery { background: var(--img-bg); display: grid; gap: 1px; align-content: start; }
.detail__main { position: relative; aspect-ratio: 9 / 16; max-height: calc(100svh - 2.4rem); overflow: hidden; }
.detail__main img { width: 100%; height: 100%; object-fit: contain; animation: imgIn .7s var(--ease-out); }
@keyframes imgIn { from { opacity: 0; transform: scale(1.03); } }
.detail__thumbs { display: flex; gap: .5rem; padding: .6rem; background: var(--surface-2); }
.detail__thumbs button { width: 56px; aspect-ratio: 9/14; overflow: hidden; border-radius: 2px; border: 1px solid var(--line); opacity: .6; transition: opacity .3s, border-color .3s; position: relative; }
.detail__thumbs button.is-active { opacity: 1; border-color: var(--gold); }
.detail__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.dthumb__color { display: block; }

/* Color/model variant buttons in detail modal */
.vbtn--color { display: inline-flex; align-items: center; gap: .25rem; }
.vbtn--color i { flex: none; }

/* Small input variants for admin modal image editor */
.pinput--xs { padding: .3rem .5rem; font-size: .75rem; min-height: 32px; }
.pselect--xs { padding: .3rem .5rem; font-size: .75rem; min-height: 32px; }
.pbtn--xs { padding: .3rem .6rem; font-size: .75rem; min-height: 32px; }
.detail__info { padding: clamp(1.6rem, 1rem + 2vw, 2.6rem); display: flex; flex-direction: column; gap: 1.2rem; }
.detail__info > * { animation: infoIn .7s var(--ease-out) both; }
.detail__info > *:nth-child(2) { animation-delay: .05s; }
.detail__info > *:nth-child(3) { animation-delay: .1s; }
.detail__info > *:nth-child(4) { animation-delay: .15s; }
.detail__info > *:nth-child(5) { animation-delay: .2s; }
.detail__info > *:nth-child(6) { animation-delay: .25s; }
@keyframes infoIn { from { opacity: 0; transform: translateY(12px); } }
.detail__cat { font-size: var(--text-xs); color: var(--gold); letter-spacing: .08em; padding-inline-end: 3rem; }
html[lang='en'] .detail__cat { letter-spacing: .24em; text-transform: uppercase; font-weight: 600; }
.detail__name { font-size: var(--text-xl); font-weight: 400; line-height: 1.45; }
html[lang='en'] .detail__name { font-family: var(--font-display-en); font-weight: 500; font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); line-height: 1.15; }
.detail__desc { color: var(--text-2); font-size: var(--text-sm); line-height: 1.9; }
.variants { display: grid; gap: .5rem; }
.variants__label { font-size: var(--text-xs); color: var(--muted); }
.variants__list { display: flex; flex-wrap: wrap; gap: .4rem; }
.vbtn { min-height: 40px; padding: 0 .95rem; border-radius: 99px; border: 1px solid var(--line-2); font-size: .8rem; color: var(--text-2); transition: background-color .3s, color .3s, border-color .3s, transform .2s; }
.vbtn:hover { border-color: var(--gold); color: var(--text); }
.vbtn:active { transform: scale(.96); }
.vbtn.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.pricebox { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-2); }
.pricebox__row { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; font-size: var(--text-sm); color: var(--muted); border-bottom: 1px solid var(--line); }
.pricebox__row b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.pricebox__row--total { border-bottom: 0; padding-block: 1rem; }
.pricebox__row--total span { color: var(--text); }
.pricebox__row--total b { font-size: 1.25rem; font-weight: 600; color: var(--gold); }
.detail__actions { display: grid; grid-template-columns: 1fr; gap: .6rem; }
.detail__hint { font-size: .72rem; color: var(--muted); }

/* order */
.order { padding: clamp(1.4rem, 1rem + 1.5vw, 2.2rem); display: grid; gap: 1.3rem; }
.order__title { font-size: var(--text-xl); font-weight: 400; padding-inline-end: 3rem; }
html[lang='en'] .order__title { font-family: var(--font-display-en); font-weight: 500; font-size: 2rem; }
.order__product { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; padding: .8rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-2); align-items: center; }
.order__thumb { aspect-ratio: 9 / 14; overflow: hidden; border-radius: 2px; background: var(--img-bg); }
.order__thumb img { width: 100%; height: 100%; object-fit: cover; }
.order__pname { font-weight: 500; line-height: 1.5; margin-bottom: .45rem; }
html[lang='en'] .order__pname { font-family: var(--font-display-en); font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.order__specs { display: grid; gap: .2rem; font-size: var(--text-xs); }
.order__specs .spec b { color: var(--text); }
.order__total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 1.1rem; border-radius: var(--radius-lg); background: var(--text); color: var(--bg); }
.order__total span { font-size: var(--text-sm); opacity: .75; }
.order__total b { font-size: 1.2rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.form { display: grid; gap: .9rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.field { display: grid; gap: .35rem; }
.field label { font-size: var(--text-xs); color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: .7rem .95rem; border-radius: var(--radius-lg);
  background: var(--bg); border: 1px solid var(--line-2); color: var(--text); font-size: 16px;
  transition: border-color .3s, box-shadow .3s;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 20%, transparent); }
.field.has-error input { border-color: #c0564b; }
.field__err { font-size: .72rem; color: #d0685c; min-height: 0; }
.qty { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--radius-lg); height: 48px; background: var(--bg); }
.qty button { width: 46px; height: 100%; font-size: 1.1rem; transition: color .3s; }
.qty button:hover { color: var(--gold); }
.qty output { flex: 1; text-align: center; font-variant-numeric: tabular-nums; }
.success { padding: clamp(2rem, 1.5rem + 2vw, 3rem); text-align: center; display: grid; justify-items: center; gap: 1rem; }
.success__icon { width: 76px; height: 76px; color: var(--gold); }
.success__icon circle, .success__icon path { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 1s var(--ease-out) forwards; }
.success__icon path { animation-delay: .4s; }
.success h3 { font-size: var(--text-xl); font-weight: 400; }
html[lang='en'] .success h3 { font-family: var(--font-display-en); font-weight: 500; font-size: 2rem; }
.success p { color: var(--text-2); font-size: var(--text-sm); max-width: 38ch; }
.success__code { font-family: var(--font-en); letter-spacing: .12em; color: var(--gold); direction: ltr; }

/* ---------- Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 125; visibility: hidden; pointer-events: none; }
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); opacity: 0; transition: opacity .4s; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(440px, 100%);
  background: var(--surface); border-inline-start: 1px solid var(--line); display: flex; flex-direction: column;
  transform: translateX(var(--dx, 100%)); transition: transform .6s var(--ease-out);
}
html[dir='rtl'] .drawer__panel { --dx: -100%; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-weight: 500; font-size: var(--text-lg); }
html[lang='en'] .drawer__head h3 { font-family: var(--font-display-en); font-size: 1.6rem; }
.drawer__body { flex: 1; overflow: auto; padding: 1.2rem 1.4rem; display: grid; gap: .8rem; align-content: start; }
.oitem { display: grid; grid-template-columns: 64px 1fr; gap: .9rem; padding: .7rem; border: 1px solid var(--line); border-radius: var(--radius-lg); align-items: center; animation: infoIn .5s var(--ease-out) both; }
.oitem img { width: 64px; aspect-ratio: 9/14; object-fit: cover; border-radius: 2px; background: var(--img-bg); }
.oitem__name { font-weight: 500; font-size: var(--text-sm); line-height: 1.5; }
.oitem__meta { font-size: .72rem; color: var(--muted); display: grid; gap: .1rem; }
.oitem__meta b { color: var(--gold); font-weight: 600; }
.empty { text-align: center; color: var(--muted); padding: 3rem 1rem; display: grid; gap: 1rem; justify-items: center; }
.empty svg { width: 46px; height: 46px; color: var(--line-2); }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 1.4rem; left: 50%; z-index: 140; opacity: 0; visibility: hidden; transform: translate(-50%, calc(100% + 2rem)); transition: transform .5s var(--ease-out), opacity .4s, visibility 0s linear .5s; background: var(--text); color: var(--bg); padding: .8rem 1.4rem; border-radius: 99px; font-size: var(--text-sm); box-shadow: var(--shadow); max-width: calc(100vw - 2rem); text-align: center; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .5s var(--ease-out), opacity .4s; }

/* ---------- Theme / language transitions ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 9999; }
html.lang-switching main, html.lang-switching .footer { opacity: 0; transition: opacity .2s; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: grid; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .about__grid { grid-template-columns: 1fr; }
  .about__visual { height: clamp(420px, 70vw, 620px); max-width: 640px; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail { grid-template-columns: 1fr; }
  .detail__main { aspect-ratio: 4 / 5; max-height: 62svh; }
  .promise__grid { grid-template-columns: 1fr; }
  .promise__item { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .promise__item:last-child { border-bottom: 0; }
  .hero__bottom { grid-template-columns: 1fr 1fr; }
  .hero__scroll { display: none; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-radius: 99px; width: 100%; scroll-snap-type: x proximity; }
  .chip { scroll-snap-align: start; }
  .filters::-webkit-scrollbar { display: none; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .brand__sub { display: none; }
  .brand__name { font-size: .92rem; }
  .brand__logo { width: 36px; height: 36px; }
  .controls { gap: .35rem; }
  .icon-btn { width: 38px; height: 38px; }
  .lang__btn, .lang__pill { width: 34px; height: 28px; }
  html[lang='en'] .lang__pill { transform: translateX(34px); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat { padding: .5rem .5rem .8rem; gap: .7rem; }
  .cat__name { font-size: 1rem; }
  html[lang='en'] .cat__name { font-size: 1.2rem; }
  .cat__arrow { display: none; }
  .grid { gap: .7rem; }
  .card__body { padding: .8rem .75rem .9rem; gap: .7rem; }
  .card__name { font-size: .9rem; }
  html[lang='en'] .card__name { font-size: 1.08rem; }
  .card__var { display: none; }
  .card__price strong { font-size: .95rem; }
  .card__actions { grid-template-columns: 1fr; }
  .card__actions .btn { min-height: 42px; }
  .spec { flex-direction: column; gap: 0; }
  .hero__cta .btn { min-width: 200px; }
  .hero__bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: .6rem; }
  .hero__badge, .hero__rate { justify-self: center; text-align: center; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
  .contact__cards { grid-template-columns: 1fr; }
  .ccard { min-height: 0; }
  .footer__cols { grid-template-columns: 1fr; gap: 1.6rem; }
  .footer__bottom { flex-direction: row; }
  .form__row { grid-template-columns: 1fr; }
  .order__product { grid-template-columns: 78px 1fr; }
  .modal { padding: 0; align-items: end; }
  .modal__panel { width: 100%; max-height: 92svh; border-radius: 14px 14px 0 0; transform: translateY(40px); }
  .about__img--b { border-width: 4px; }
  .lb-item { width: clamp(170px, 56vw, 220px); }
}
@media (max-width: 480px) {
  .header .lang { display: none; }
  .hero__logo { width: 90px; height: 90px; }
}
@media (max-width: 360px) {
  .brand__name { font-size: .84rem; }
  .brand { gap: .55rem; }
}

/* Reduced motion — keep the hero video (brand requirement) but calm everything else */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .band__track, .lb-track { animation: none !important; }
  .reveal, .reveal-hero, .card { opacity: 1 !important; filter: none !important; transform: none !important; }
}

/* =========================================================
   v2 — Live gold price, discounts, hours, panel entry, site lock
   ========================================================= */
.live-dot { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.live-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid currentColor; opacity: 0; }
.live-dot[data-state='live'], .live-dot[data-state='single'] { background: #3fb67a; color: #3fb67a; }
.live-dot[data-state='live']::after, .live-dot[data-state='single']::after { animation: livePing 2.2s var(--ease-out) infinite; }
.live-dot[data-state='cached'] { background: #d9a23c; color: #d9a23c; }
.live-dot[data-state='unavailable'], .live-dot[data-state='offline'] { background: #d0574b; }
.live-dot[data-state='loading'] { background: var(--gold); animation: liveBlink 1s ease-in-out infinite alternate; }
@keyframes livePing { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes liveBlink { to { opacity: .25; } }
.hero__rate-label { display: inline-flex; align-items: center; gap: .5rem; justify-content: flex-end; }

.rate { background: var(--bg); padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem); border-bottom: 1px solid var(--line); }
.rate__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.rate__title { font-size: var(--text-2xl); font-weight: 300; line-height: 1.35; margin-bottom: 1rem; }
html[lang='en'] .rate__title { font-family: var(--font-display-en); font-weight: 500; line-height: 1.12; }
.rate__lead { color: var(--text-2); max-width: 46ch; }
.rate__card { position: relative; overflow: hidden; padding: clamp(1.5rem, 1rem + 2vw, 2.4rem); border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.rate__card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); transform: translateX(-100%); animation: rateSheen 5s var(--ease-io) infinite; }
@keyframes rateSheen { 60%, 100% { transform: translateX(100%); } }
.rate__status { display: flex; align-items: center; gap: .6rem; font-size: var(--text-xs); color: var(--text-2); margin-bottom: 1.4rem; }
.rate__label { font-size: var(--text-sm); color: var(--muted); }
.rate__value { display: flex; align-items: baseline; flex-wrap: wrap; gap: .6rem; margin-block: .3rem .4rem; }
.rate__value strong { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); font-weight: 300; line-height: 1.15; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.01em; color: var(--text); }
.rate__card[data-state='unavailable'] .rate__value strong, .rate__card[data-state='offline'] .rate__value strong { font-size: var(--text-xl); color: var(--text-2); }
.rate__value span { font-size: var(--text-sm); color: var(--gold); }
.rate__delta { min-height: 1.4em; font-size: var(--text-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.rate__delta[data-dir='up'] { color: #3fb67a; } .rate__delta[data-dir='down'] { color: #d0574b; }
.rate__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.rate__meta dt { font-size: var(--text-xs); color: var(--gold); margin-bottom: .2rem; }
.rate__meta dd { font-size: var(--text-sm); color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.7; }
.rate__meta dd a { border-bottom: 1px solid var(--line-2); transition: color .3s, border-color .3s; }
.rate__meta dd a:hover { color: var(--gold); border-color: var(--gold); }
.rate__meta .sep { margin-inline: .45rem; color: var(--muted); }
.rate__progress { height: 2px; margin-top: 1.4rem; background: var(--line); overflow: hidden; }
.rate__progress span { display: block; height: 100%; background: var(--gold); transform-origin: inline-start; transform: scaleX(0); transition: transform 1s linear; }
html[dir='rtl'] .rate__progress span { transform-origin: right; }
html[dir='ltr'] .rate__progress span { transform-origin: left; }
.rate__next { font-size: .72rem; color: var(--muted); margin-top: .5rem; font-variant-numeric: tabular-nums; }
.rate__refresh { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; padding: .55rem 1.1rem; border: 1px solid var(--line-2); border-radius: var(--radius-md); background: var(--surface); color: var(--text); font-size: var(--text-sm); cursor: pointer; transition: border-color .3s, background-color .3s, color .3s, transform .3s var(--ease-out); }
.rate__refresh:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.rate__refresh:disabled { opacity: .6; cursor: wait; }
.rate__refresh svg { width: 18px; height: 18px; }
.rate__refresh.is-refreshing svg { animation: rateSpin .8s linear infinite; }
@keyframes rateSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.card__off { font-size: .68rem; font-weight: 600; color: var(--on-gold); background: var(--gold); border-radius: 99px; padding: .05rem .55rem; white-space: nowrap; }
.card__top { gap: .4rem; }
.card__price strong s { display: block; font-size: .72rem; font-weight: 400; color: var(--muted); text-decoration-thickness: 1px; }
.card__price.is-na strong.na { font-size: .85rem; font-weight: 500; color: var(--text-2); }
.pricebox__row small { font-size: .68rem; color: var(--muted); }
.pricebox__row--off b { color: #3fb67a; }
.pricebox__na { padding: .9rem 1rem; font-size: var(--text-xs); color: var(--text-2); line-height: 1.8; }
.form__na, .form__err { font-size: var(--text-xs); color: #d0685c; }
.form__err:empty { display: none; }

.ccard--hours { grid-column: 1 / -1; }
.hours__now { display: inline-flex; align-items: center; gap: .5rem; }
.hours__now::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #d0574b; }
.hours__now[data-open='true']::before { background: #3fb67a; box-shadow: 0 0 0 4px color-mix(in srgb, #3fb67a 22%, transparent); }
.hours { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .1rem 1.6rem; margin-top: .4rem; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding-block: .45rem; border-bottom: 1px dashed var(--line); font-size: var(--text-sm); color: var(--text-2); }
.hours li b { font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.hours li.is-today span, .hours li.is-today b { color: var(--gold); }

.footer__panels { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-bottom: 2.4rem; }
.panel-btn { position: relative; overflow: hidden; display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; border: 1px solid rgba(201,164,92,.35); border-radius: var(--radius-lg); color: #f5f2ec; background: linear-gradient(135deg, rgba(201,164,92,.08), rgba(255,255,255,0)); transition: border-color .4s, transform .5s var(--ease-out), box-shadow .5s; isolation: isolate; }
.panel-btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, transparent 20%, rgba(201,164,92,.22) 50%, transparent 80%); transform: translateX(-110%); transition: transform .9s var(--ease-out); }
.panel-btn:hover { border-color: #c9a45c; transform: translateY(-3px); box-shadow: 0 18px 40px -20px rgba(201,164,92,.5); }
.panel-btn:hover::before { transform: translateX(110%); }
.panel-btn__icon { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(201,164,92,.45); color: #c9a45c; transition: background-color .4s, color .4s; }
.panel-btn__icon svg { width: 20px; height: 20px; }
.panel-btn:hover .panel-btn__icon { background: #c9a45c; color: #0a0a0a; }
.panel-btn__text { display: grid; gap: .1rem; flex: 1; min-width: 0; }
.panel-btn__text b { font-weight: 500; font-size: var(--text-base); }
.panel-btn__text small { font-size: .74rem; color: #9f988c; }
.panel-btn__arrow { color: #c9a45c; transition: transform .5s var(--ease-out); }
html[dir='rtl'] .panel-btn__arrow { transform: scaleX(-1); }
.panel-btn:hover .panel-btn__arrow { transform: translateX(4px); }
html[dir='rtl'] .panel-btn:hover .panel-btn__arrow { transform: scaleX(-1) translateX(4px); }

.sitelock { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 2rem; background: #070707; color: #f5f2ec; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease-out), visibility .6s; text-align: center; }
.sitelock.is-on { opacity: 1; visibility: visible; }
.sitelock__inner { display: grid; justify-items: center; gap: 1rem; max-width: 520px; }
.sitelock__logo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 2px solid #c9a45c; animation: lockFloat 4s ease-in-out infinite; }
@keyframes lockFloat { 50% { transform: translateY(-6px); } }
.sitelock__brand { letter-spacing: .12em; color: #c9a45c; font-size: var(--text-sm); }
.sitelock__title { font-size: var(--text-xl); font-weight: 300; line-height: 1.5; }
.sitelock__sub { color: #a39c90; font-size: var(--text-sm); }
.sitelock__langs { display: flex; gap: .4rem; margin-top: .6rem; }
.sitelock__admin { font-size: .75rem; color: #7d776e; border-bottom: 1px solid rgba(255,255,255,.14); margin-top: 1rem; }
body.is-sitelocked { overflow: hidden; }

@media (max-width: 900px) {
  .rate__grid { grid-template-columns: 1fr; }
  .footer__panels { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .rate__meta { grid-template-columns: 1fr; }
  .hours { grid-template-columns: 1fr; }
}

/* =========================================================
   Products page (standalone) — sidebar layout
   ========================================================= */

/* Footer with 3 columns (no quick-access) */
.footer--slim .footer__cols { grid-template-columns: repeat(3, 1fr); }

/* Products page layout */
.products-page { padding-top: clamp(7rem, 5rem + 6vw, 10rem); }
.products-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  align-items: start;
}
html[dir='rtl'] .products-layout { grid-template-columns: 280px 1fr; }

.products-main { min-width: 0; max-width: 100%; overflow: hidden; }
.products-main .result-count { margin-bottom: 1.4rem; }
.products-main .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 100%; }

.products-sidebar {
  position: sticky;
  top: calc(var(--header-h, 72px) + 1.5rem);
}
.products-sidebar h3 {
  font-size: var(--text-xs);
  color: var(--gold);
  letter-spacing: .1em;
  margin-bottom: 1rem;
  font-weight: 500;
}
html[lang='en'] .products-sidebar h3 { letter-spacing: .26em; text-transform: uppercase; font-weight: 600; }

.sidebar-cats { display: flex; flex-direction: column; gap: .3rem; }
.sidebar-cats .scat {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: .7rem 1rem; border-radius: var(--radius-lg);
  font-size: var(--text-sm); color: var(--text-2); text-align: start;
  border: 1px solid transparent; background: transparent;
  transition: color .3s var(--ease-out), background-color .3s, border-color .3s, transform .2s var(--ease-out);
  cursor: pointer;
}
.sidebar-cats .scat:hover { color: var(--text); background: var(--surface); }
.sidebar-cats .scat:active { transform: scale(.97); }
.sidebar-cats .scat.is-active {
  color: var(--on-gold, #0a0a0a); background: var(--gold); border-color: var(--gold);
}
.sidebar-cats .scat small {
  font-size: .68rem; color: var(--muted); font-variant-numeric: tabular-nums;
  transition: color .3s;
}
.sidebar-cats .scat.is-active small { color: color-mix(in srgb, var(--on-gold, #0a0a0a) 70%, transparent); }
html[dir='rtl'] .sidebar-cats .scat small { order: -1; }

/* Responsive */
@media (max-width: 1080px) {
  .products-layout { grid-template-columns: minmax(0, 1fr); }
  html[dir='rtl'] .products-layout { grid-template-columns: minmax(0, 1fr); }
  .products-sidebar { position: static; }
  .sidebar-cats { flex-direction: row; flex-wrap: wrap; gap: .4rem; }
  .sidebar-cats .scat { width: auto; }
}
@media (max-width: 860px) {
  .products-main .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .products-main .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .sidebar-cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .sidebar-cats::-webkit-scrollbar { display: none; }
  .sidebar-cats .scat { scroll-snap-align: start; white-space: nowrap; }
}

/* =========================================================
   Gold Calculator
   ========================================================= */
.calc { background: var(--bg); padding-block: clamp(3rem, 2rem + 3vw, 5rem); border-bottom: 1px solid var(--line); }
.calc__card { max-width: 900px; margin: 0 auto; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.calc__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: start; }
.calc__inputs { display: flex; flex-direction: column; gap: 1rem; }
.calc__row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.calc__row--rate { grid-template-columns: 1fr; }
.calc__field { display: flex; flex-direction: column; gap: .35rem; }
.calc__field > span { font-size: var(--text-xs); color: var(--gold); letter-spacing: .04em; }
html[lang='en'] .calc__field > span { letter-spacing: .06em; }
.calc__field input, .calc__field select {
  width: 100%; height: 46px; padding-inline: .8rem; border: 1px solid var(--line-2); border-radius: var(--radius-md, 8px);
  background: var(--bg); color: var(--text); font-size: var(--text-sm); font-family: var(--font-body); outline: 0;
  transition: border-color .3s, box-shadow .3s; font-variant-numeric: tabular-nums;
}
.calc__field input:focus, .calc__field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,164,92,.12); }
.calc__field input[readonly] { opacity: .6; cursor: not-allowed; }
.calc__field select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c9a45c' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left .8rem center; padding-left: 2.2rem; }
.calc__rate-wrap { display: flex; align-items: center; gap: .6rem; }
.calc__rate-wrap input { flex: 1; }
.calc__auto-toggle { flex: none; }
.calc__auto-btn {
  display: flex; align-items: center; gap: .5rem; padding: .35rem .6rem; border: 1px solid var(--line-2); border-radius: 20px;
  background: var(--bg); color: var(--text-2); font-size: var(--text-xs); cursor: pointer; transition: all .3s; white-space: nowrap;
}
.calc__auto-btn.is-on { color: var(--gold); border-color: var(--gold); }
.calc__auto-track { width: 32px; height: 18px; border-radius: 10px; background: var(--line-2); position: relative; transition: background .3s; flex: none; }
.calc__auto-btn.is-on .calc__auto-track { background: var(--gold); }
.calc__auto-thumb { position: absolute; top: 2px; inset-inline-start: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease-out); }
html[dir='rtl'] .calc__auto-btn.is-on .calc__auto-thumb { transform: translateX(-14px); }
html[dir='ltr'] .calc__auto-btn.is-on .calc__auto-thumb { transform: translateX(14px); }
.calc__results { display: flex; flex-direction: column; gap: .6rem; padding: clamp(1.2rem, .8rem + 1.5vw, 1.8rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); }
.calc__result-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: var(--text-sm); }
.calc__result-row span { color: var(--text-2); }
.calc__result-row b { font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.calc__result-row--discount span { color: #d0574b; }
.calc__result-row--discount b { color: #d0574b; }
.calc__result-row--total { margin-top: .4rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.calc__result-row--total span { color: var(--gold); font-size: var(--text-base); font-weight: 500; }
.calc__result-row--total b { font-size: var(--text-lg); color: var(--gold); font-weight: 600; }
.calc__note { font-size: var(--text-xs); color: var(--muted); margin-top: .6rem; line-height: 1.6; }
@media (max-width: 768px) {
  .calc__grid { grid-template-columns: 1fr; }
  .calc__row { grid-template-columns: 1fr; }
  .calc__rate-wrap { flex-direction: column; align-items: stretch; }
}

/* ============ Storefront showcase ============ */
.showcase { padding-block: clamp(3rem, 6vw, 5rem); background: var(--surface-1); }
.showcase__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.showcase__media { border-radius: var(--r-lg, 14px); overflow: hidden; box-shadow: var(--shadow-lg, 0 20px 60px -20px rgba(0,0,0,.4)); }
.showcase__media img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .8s var(--ease-out, ease); }
.showcase__media:hover img { transform: scale(1.03); }
.showcase__info { display: flex; flex-direction: column; gap: 1rem; }
.showcase__info .kicker { margin-bottom: 0; }
.showcase__info .btn { align-self: flex-start; margin-top: .5rem; }
@media (max-width: 880px) {
  .showcase__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .showcase__media { order: -1; }
}

/* =========================================================
   Enhanced Responsive — Mobile / Tablet / Laptop fixes
   Ensures layout integrity across all device sizes
   ========================================================= */

/* Safe area insets for notched phones */
@supports (padding: env(safe-area-inset-top)) {
  .header { padding-top: env(safe-area-inset-top); }
  .hero__content { padding-top: calc(var(--header-h) + env(safe-area-inset-top) + 2rem); }
  .toast { bottom: calc(1.4rem + env(safe-area-inset-bottom)); }
  .footer__bottom { padding-bottom: env(safe-area-inset-bottom); }
}

/* Tablet landscape fixes (1024px) */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero__title-fa { font-size: clamp(2.2rem, 1.5rem + 4vw, 4rem); }
  .calc__grid { gap: clamp(1rem, 2vw, 2rem); }
}

/* Tablet portrait fixes (768px) */
@media (max-width: 768px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__bottom { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sec-head--row { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .calc__grid { grid-template-columns: 1fr; }
  .calc__row { grid-template-columns: 1fr 1fr; }
}

/* Small tablet (600px) */
@media (max-width: 600px) {
  .hero__cta .btn { min-width: unset; width: 100%; }
  .hero__cta { flex-direction: column; gap: .6rem; width: 100%; max-width: 320px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .stats .stat { padding: .8rem .5rem; }
  .footer__cols { grid-template-columns: 1fr; gap: 1.2rem; }
  .footer__bottom { flex-direction: column; gap: .5rem; text-align: center; }
  .calc__row { grid-template-columns: 1fr; }
}

/* Very small phones (380px) */
@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .products-main .grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .hero__logo { width: 80px; height: 80px; }
  .hero__cta { max-width: 100%; }
  .brand__sub { display: none; }
  .brand__name { font-size: .82rem; }
  .controls { gap: .25rem; }
  .icon-btn { width: 34px; height: 34px; }
  .icon-btn svg { width: 16px; height: 16px; }
  .lang__btn, .lang__pill { width: 30px; height: 24px; }
  html[lang='en'] .lang__pill { transform: translateX(30px); }
  .modal__panel { border-radius: 0; max-height: 100svh; }
  .calc__card { padding: 1rem; }
  .calc__results { padding: 1rem; }
}

/* Landscape phone orientation */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 100vh; }
  .hero__content { padding-top: calc(var(--header-h) + 1rem); padding-bottom: 1rem; }
  .hero__logo { width: 70px; height: 70px; }
  .hero__slogan { margin-top: .8rem; font-size: .9rem; }
  .hero__cta { margin-top: 1.2rem; }
  .hero__bottom { display: none; }
}

/* Ensure images never overflow */
img, video, picture, svg { max-width: 100%; height: auto; }

/* Prevent horizontal scroll from any element */
*, *::before, *::after { box-sizing: border-box; }

/* Ensure tables scroll horizontally on small screens */
@media (max-width: 640px) {
  .ptable-wrap, table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ptable-wrap { display: block; }
}

/* Fix icon overlap on mobile — hide decorative logos, keep arrow */
@media (max-width: 640px) {
  .ccard__ig-logo, .ccard__wa-logo { display: none; }
}

/* Touch target minimum size */
@media (pointer: coarse) {
  .btn, .icon-btn, .nav__link, .cat, .card, .scat, .pbtn { min-height: 44px; }
  .filters { -webkit-overflow-scrolling: touch; }
}

/* Smooth scrolling on touch devices */
@media (hover: none) and (pointer: coarse) {
  html { scroll-behavior: smooth; }
  .smooth-scroll { scroll-behavior: smooth; }
}

/* Prevent text selection on UI elements (buttons, nav) */
@media (max-width: 640px) {
  .btn, .nav__link, .icon-btn, .burger, .cat__arrow {
    -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
  }
}

/* Form inputs: prevent zoom on iOS */
@media (max-width: 640px) {
  input, select, textarea { font-size: 16px; }
  input[type='text'], input[type='email'], input[type='tel'], input[type='password'], textarea, select {
    font-size: 16px;
  }
}
