/* ==========================================================
   أصل الريادة — Site styles
   Brand: green #3E645D · gold #89723A · ink #4C4028 · Cairo
   ========================================================== */
@font-face { font-family: 'Cairo'; src: url('../fonts/Cairo-Light.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Cairo'; src: url('../fonts/Cairo-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Cairo'; src: url('../fonts/Cairo-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Cairo'; src: url('../fonts/Cairo-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Cairo'; src: url('../fonts/Cairo-Black.ttf') format('truetype'); font-weight: 900; font-display: swap; }

:root {
  --green-950: #142925;
  --green-900: #1b3530;
  --green-800: #23443d;
  --green-700: #2e554d;
  --green: #3e645d;
  --green-500: #52806f;
  --green-100: #e3ece8;
  --green-50: #f1f6f3;
  --gold: #89723a;
  --gold-400: #b0924c;
  --gold-300: #c9a95c;
  --gold-100: #f3ecd9;
  --ink: #2c261a;
  --ink-2: #4c4028;
  --muted: #6f6a5f;
  --line: #e4e0d6;
  --paper: #faf8f3;
  --white: #fff;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(20, 41, 37, .06);
  --shadow: 0 18px 50px -18px rgba(20, 41, 37, .28);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --container: 1240px;
  --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: 'Cairo', system-ui, sans-serif; color: var(--ink); background: var(--paper);
  line-height: 1.75; font-size: 16px; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold-300); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold-300); color: var(--green-950); }

.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: embed; }
[dir="rtl"] .flip { transform: scaleX(-1); }
.num { font-feature-settings: 'tnum'; direction: ltr; unicode-bidi: isolate; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--green); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .85em 1.6em; border-radius: 999px; border: 0; background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 1rem; line-height: 1.2; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(0,0,0,.35); }
.btn:hover::after { transform: translateX(120%); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn-gold { --bg: linear-gradient(135deg, var(--gold-300), var(--gold)); --fg: #fff; background: var(--bg); }
.btn-ghost { --bg: transparent; --fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-outline { --bg: transparent; --fg: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-light { --bg: #fff; --fg: var(--green-900); }
.btn-wa { --bg: #1faa55; }
.btn-sm { padding: .55em 1.1em; font-size: .9rem; }
.btn-block { width: 100%; }

.chip {
  display: inline-flex; align-items: center; gap: .45em; padding: .3em .9em; border-radius: 999px;
  font-size: .82rem; font-weight: 700; background: var(--gold-100); color: var(--gold);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .7em; font-weight: 700; font-size: .9rem; letter-spacing: .02em;
  color: var(--gold); margin-bottom: .8rem;
}
.eyebrow::before { content: ''; width: 34px; height: 2px; background: currentColor; border-radius: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50; height: var(--header-h);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 48px; width: auto; transition: height .3s var(--ease); }
.brand .logo-dark { display: none; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a {
  padding: .5em .95em; border-radius: 999px; color: rgba(255,255,255,.88); font-weight: 600; font-size: .95rem;
  transition: background .2s, color .2s;
}
.nav a:hover, .nav a.active { background: rgba(255,255,255,.12); color: #fff; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  border: 0; background: rgba(255,255,255,.12); color: #fff; width: 42px; height: 42px; border-radius: 50%; font-weight: 800; font-size: .85rem;
}
.menu-btn { display: none; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 44px; height: 44px; border-radius: 12px; }
.menu-btn svg { width: 22px; height: 22px; }
.quote-btn { position: relative; }
.quote-count {
  position: absolute; top: -4px; inset-inline-end: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--gold-300); color: var(--green-950); font-size: .72rem; font-weight: 900; display: grid; place-items: center;
}
.quote-count:empty, .quote-count[data-n="0"] { display: none; }

.site-header.scrolled, .site-header.solid {
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(0,0,0,.25);
  --header-h: 70px;
}
.site-header.scrolled .brand .logo-light, .site-header.solid .brand .logo-light { display: none; }
.site-header.scrolled .brand .logo-dark, .site-header.solid .brand .logo-dark { display: block; }
.site-header.scrolled .brand img, .site-header.solid .brand img { height: 42px; }
.site-header.scrolled .nav a, .site-header.solid .nav a { color: var(--ink-2); }
.site-header.scrolled .nav a:hover, .site-header.scrolled .nav a.active,
.site-header.solid .nav a:hover, .site-header.solid .nav a.active { background: var(--green-50); color: var(--green); }
.site-header.scrolled .lang-btn, .site-header.scrolled .menu-btn,
.site-header.solid .lang-btn, .site-header.solid .menu-btn { background: var(--green-50); color: var(--green); }
.site-header.scrolled .btn-ghost, .site-header.solid .btn-ghost { --fg: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); }

/* mobile nav */
@media (max-width: 1020px) {
  .menu-btn { display: grid; place-items: center; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0; padding: 12px 20px 24px;
    background: #fff; box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: .3s var(--ease); margin: 0;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { color: var(--ink-2) !important; padding: .9em 1em; border-radius: 12px; }
  .header-actions { margin-inline-start: auto; }
  .header-actions .hide-sm { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: center; color: #fff; overflow: hidden;
  background: var(--green-950); isolation: isolate; padding: calc(var(--header-h) + 40px) 0 120px;
}
.hero-bg { position: absolute; inset: -6% 0 0; z-index: -3; background-size: cover; background-position: 60% 60%; transform: scale(1.08); will-change: transform; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(to left, rgba(20,41,37,.95) 0%, rgba(20,41,37,.78) 42%, rgba(20,41,37,.35) 100%),
    linear-gradient(to top, rgba(20,41,37,.95), transparent 45%);
}
[dir="ltr"] .hero::before {
  background:
    linear-gradient(to right, rgba(20,41,37,.95) 0%, rgba(20,41,37,.78) 42%, rgba(20,41,37,.35) 100%),
    linear-gradient(to top, rgba(20,41,37,.95), transparent 45%);
}
.hero-pattern { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .5; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); font-weight: 900; line-height: 1.18; margin-bottom: .35em; }
.hero h1 .gold { background: linear-gradient(90deg, var(--gold-300), #e8d39c, var(--gold-300)); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% auto; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
[lang="en"] .hero h1 { font-size: clamp(2.1rem, 4.3vw, 3.7rem); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
  .hero { padding-bottom: 110px; }
  .scroll-cue { display: none; }
}
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgba(255,255,255,.82); max-width: 40ch; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 2.2rem; color: rgba(255,255,255,.8); font-size: .95rem; font-weight: 600; }
.hero-badges span { display: inline-flex; align-items: center; gap: .5em; }
.hero-badges svg { width: 20px; height: 20px; color: var(--gold-300); }

.hero-mark { position: relative; justify-self: center; width: min(360px, 80%); aspect-ratio: 1; }
.hero-mark svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 30px 60px rgba(0,0,0,.4)); }
.hero-mark .m-piece { transform-box: fill-box; opacity: 0; }
.hero-mark .ring { position: absolute; inset: -12%; border-radius: 50%; border: 1px dashed rgba(201,169,92,.35); animation: spin 60s linear infinite; }
.hero-mark .ring.r2 { inset: -26%; border-color: rgba(255,255,255,.12); animation-duration: 90s; animation-direction: reverse; }
.hero-mark .ring::before { content: ''; position: absolute; top: 50%; inset-inline-start: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-300); box-shadow: 0 0 20px var(--gold-300); }
@keyframes spin { to { transform: rotate(360deg); } }
.loaded .hero-mark .p1 { animation: build 1s .2s var(--ease) forwards; }
.loaded .hero-mark .p2 { animation: build 1s .45s var(--ease) forwards; }
.loaded .hero-mark .p3 { animation: build 1s .7s var(--ease) forwards; }
@keyframes build { from { opacity: 0; transform: translate(40px, 60px); } to { opacity: 1; transform: none; } }

.hero-reveal > * { opacity: 0; transform: translateY(30px); }
.loaded .hero-reveal > * { animation: rise .9s var(--ease) forwards; }
.loaded .hero-reveal > *:nth-child(2) { animation-delay: .12s; }
.loaded .hero-reveal > *:nth-child(3) { animation-delay: .24s; }
.loaded .hero-reveal > *:nth-child(4) { animation-delay: .36s; }
.loaded .hero-reveal > *:nth-child(5) { animation-delay: .48s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.scroll-cue { position: absolute; bottom: 92px; inset-inline-start: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; }
[dir="rtl"] .scroll-cue { translate: 50% 0; }
.scroll-cue::after { content: ''; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ticker */
.ticker { position: absolute; bottom: 0; inset-inline: 0; background: linear-gradient(90deg, var(--gold), var(--gold-400), var(--gold)); color: #fff; overflow: hidden; padding: 14px 0; font-weight: 800; font-size: 1.02rem; }
.ticker-track { display: flex; gap: 48px; width: max-content; animation: ticker 40s linear infinite; }
[dir="ltr"] .ticker-track { animation-name: ticker-ltr; }
@keyframes ticker-ltr { to { transform: translateX(-50%); } }
.ticker-track span { display: inline-flex; align-items: center; gap: 48px; white-space: nowrap; }
.ticker-track span::after { content: ''; width: 10px; height: 10px; transform: rotate(45deg); background: rgba(255,255,255,.7); }
@keyframes ticker { to { transform: translateX(50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 10vw, 130px) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 900; color: var(--green-900); }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section.dark { background: var(--green-900); color: #fff; }
.section.dark .section-head h2 { color: #fff; }
.section.dark .section-head p { color: rgba(255,255,255,.72); }
.section.tint { background: var(--green-50); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reveal-x { opacity: 0; transform: translateX(-50px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[dir="rtl"] .reveal-x { transform: translateX(50px); }
.reveal-x.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-x, .hero-reveal > *, .hero-mark .m-piece { opacity: 1 !important; transform: none !important; }
}

/* ---------- Stats ---------- */
.stats { padding-top: 56px; position: relative; z-index: 5; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 24px; box-shadow: var(--shadow); border: 1px solid var(--line);
  overflow: hidden;
}
.stat { padding: 34px 24px; text-align: center; position: relative; }
.stat + .stat::before { content: ''; position: absolute; inset-block: 26%; inset-inline-start: 0; width: 1px; background: var(--line); }
.stat b { display: block; font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 900; color: var(--green); line-height: 1.1; }
.stat b small { font-size: .55em; color: var(--gold); margin-inline-start: 2px; }
.stat span { color: var(--muted); font-weight: 600; }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.about-media { position: relative; aspect-ratio: 5/5.2; }
.about-media .img-a, .about-media .img-b { position: absolute; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.about-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about-media > div:hover img { transform: scale(1.05); }
.about-media .img-a { inset: 0 0 18% 20%; }
.about-media .img-b { inset: 46% 48% 0 0; border: 8px solid var(--paper); }
[dir="rtl"] .about-media .img-a { inset: 0 20% 18% 0; }
[dir="rtl"] .about-media .img-b { inset: 46% 0 0 48%; }
.about-media .badge {
  position: absolute; top: 8%; inset-inline-end: -10px; background: var(--green); color: #fff; padding: 18px 22px; border-radius: 18px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px; animation: float 5s ease-in-out infinite;
}
[dir="rtl"] .about-media .badge { inset-inline-end: auto; inset-inline-start: -10px; }
.about-media .badge img { width: 40px; height: auto; }
.about-media .badge b { display: block; font-size: 1.05rem; }
.about-media .badge small { opacity: .75; }
@keyframes float { 50% { transform: translateY(-10px); } }
.about-text p { color: var(--muted); font-size: 1.08rem; }
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 28px 0 32px; }
.pillar {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.pillar:hover { transform: translateY(-4px); border-color: var(--gold-300); box-shadow: var(--shadow-sm); }
.pillar .ic { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--green-50); color: var(--green); }
.pillar .ic svg { width: 24px; height: 24px; }
.pillar b { display: block; color: var(--green-900); }
.pillar small { color: var(--muted); font-size: .88rem; line-height: 1.6; display: block; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-media { max-width: 560px; } }

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.cat-card {
  position: relative; padding: 26px 22px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  overflow: hidden; isolation: isolate; transition: transform .4s var(--ease), box-shadow .4s var(--ease), color .4s;
  display: flex; flex-direction: column; min-height: 190px;
}
.cat-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(150deg, var(--green), var(--green-900));
  clip-path: circle(0% at 85% 15%); transition: clip-path .6s var(--ease);
}
[dir="rtl"] .cat-card::before { clip-path: circle(0% at 15% 15%); }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); color: #fff; }
.cat-card:hover::before { clip-path: circle(150% at 85% 15%); }
[dir="rtl"] .cat-card:hover::before { clip-path: circle(150% at 15% 15%); }
.cat-card .ic { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: var(--green-50); color: var(--green); margin-bottom: auto; transition: .4s var(--ease); }
.cat-card .ic svg { width: 32px; height: 32px; }
.cat-card:hover .ic { background: rgba(255,255,255,.12); color: var(--gold-300); transform: rotate(-6deg) scale(1.05); }
.cat-card h3 { font-size: 1.15rem; margin: 18px 0 2px; }
.cat-card .meta { font-size: .88rem; color: var(--muted); transition: color .4s; }
.cat-card:hover .meta { color: rgba(255,255,255,.7); }
.cat-card .code { position: absolute; top: 18px; inset-inline-end: 20px; font-size: .8rem; font-weight: 800; color: var(--gold); opacity: .8; }
.cat-card .arrow { position: absolute; bottom: 20px; inset-inline-end: 20px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-100); color: var(--gold); transition: .4s var(--ease); }
.cat-card .arrow svg { width: 16px; height: 16px; }
[dir="rtl"] .cat-card .arrow svg { transform: scaleX(-1); }
.cat-card:hover .arrow { background: var(--gold-300); color: var(--green-950); }
@media (max-width: 560px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-card { min-height: 150px; padding: 18px 14px 16px; }
  .cat-card .ic { width: 48px; height: 48px; }
  .cat-card h3 { font-size: 1rem; margin-top: 14px; }
  .cat-card .arrow { display: none; }
  .about-media .badge, [dir="rtl"] .about-media .badge { inset-inline: 10px auto; padding: 12px 14px; }
}
.cat-card.soon .meta::after { content: attr(data-soon); margin-inline-start: 6px; color: var(--gold); font-weight: 700; }

/* ---------- Product cards ---------- */
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.featured-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) { .featured-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .featured-grid { grid-template-columns: repeat(2, 1fr); } }
.p-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.p-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.p-media { position: relative; aspect-ratio: 1; background: var(--green-50); overflow: hidden; display: block; }
.p-media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .6s var(--ease); background: #fff; }
.p-card:hover .p-media img { transform: scale(1.06); }
.p-media .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--green); background: radial-gradient(circle at 50% 40%, #fff, var(--green-50) 70%); }
.p-media .ph svg { width: 42%; height: 42%; opacity: .75; transition: transform .6s var(--ease); }
.p-card:hover .p-media .ph svg { transform: scale(1.1) rotate(-4deg); }
.p-media .ph::after { content: ''; position: absolute; inset: 0; background-image: url('../img/cubes.svg'); background-size: 90px; opacity: .06; }
.p-flags { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.p-flag { font-size: .72rem; font-weight: 800; padding: .2em .7em; border-radius: 999px; background: var(--green); color: #fff; }
.p-flag.gold { background: var(--gold-300); color: var(--green-950); }
.p-flag.pdf { background: #fff; color: #b3261e; box-shadow: var(--shadow-sm); display: inline-flex; align-items: center; gap: 4px; }
.p-flag.pdf svg { width: 12px; height: 12px; }
.p-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-sku { font-size: .78rem; color: var(--gold); font-weight: 800; direction: ltr; text-align: end; unicode-bidi: plaintext; }
[dir="rtl"] .p-sku { text-align: right; }
.p-name { font-size: 1rem; font-weight: 700; color: var(--green-900); line-height: 1.55; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .8rem; color: var(--muted); margin-top: auto; padding-top: 8px; }
.swatch { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); display: inline-block; flex: none; }
.swatch.mf { background: linear-gradient(135deg, #e6e8ea, #a5aaaf 50%, #dfe2e5) !important; }
.p-meta .tag { background: var(--paper); border: 1px solid var(--line); padding: .1em .6em; border-radius: 999px; }
.p-actions { display: flex; gap: 8px; margin-top: 10px; }
.p-actions .btn { flex: 1; padding: .6em .8em; font-size: .88rem; }
.icon-btn {
  width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--green);
  transition: .25s var(--ease);
}
.icon-btn:hover { background: var(--green); color: #fff; border-color: var(--green); }
.icon-btn.on { background: var(--gold-300); border-color: var(--gold-300); color: var(--green-950); }
.icon-btn svg { width: 18px; height: 18px; }

/* skeleton */
.skel { background: linear-gradient(90deg, #eee9df 25%, #f6f3ec 50%, #eee9df 75%); background-size: 200% 100%; animation: skel 1.2s infinite; border-radius: var(--radius); }
@keyframes skel { to { background-position: -200% 0; } }

/* ---------- Brands ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.brand-card {
  position: relative; border-radius: 22px; padding: 12px; overflow: hidden; background: linear-gradient(160deg, var(--green-800), var(--green-950));
  border: 1px solid rgba(255,255,255,.08); transition: transform .4s var(--ease), border-color .4s, box-shadow .4s; display: flex; flex-direction: column;
}
.brand-card:hover { transform: translateY(-6px); border-color: rgba(201,169,92,.55); box-shadow: 0 24px 50px -24px rgba(0,0,0,.6); }
.brand-card .plate { aspect-ratio: 3 / 1; border-radius: 14px; overflow: hidden; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -12px rgba(0,0,0,.5); }
.brand-card .plate img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.brand-card:hover .plate img { transform: scale(1.06); }
.brand-card .wm { font-size: 2.2rem; font-weight: 900; color: var(--green-900); direction: ltr; }
.brand-body { padding: 16px 10px 10px; display: flex; flex-direction: column; flex: 1; }
.brand-card .kind { font-size: .8rem; font-weight: 700; color: var(--gold-300); margin-bottom: 6px; }
.brand-card p { color: rgba(255,255,255,.72); font-size: .93rem; line-height: 1.7; margin-bottom: 14px; }
.brand-card .more { margin-top: auto; font-weight: 700; color: #fff; display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; }
.brand-card .more svg { width: 16px; transition: transform .3s; }
[dir="rtl"] .brand-card .more svg { transform: scaleX(-1); }
.brand-card:hover .more svg { transform: translateX(4px); }
[dir="rtl"] .brand-card:hover .more svg { transform: scaleX(-1) translateX(4px); }
@media (max-width: 560px) { .brand-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .brand-card p, .brand-card .kind { display: none; } .brand-body { padding: 10px 4px 4px; } .brand-card .more { font-size: .82rem; } }

.origins { margin-top: 36px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.origin {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  transition: background .3s, transform .3s var(--ease);
}
.origin:hover { background: rgba(255,255,255,.1); transform: translateY(-3px); }
.origin .flag { width: 44px; height: 30px; border-radius: 6px; overflow: hidden; flex: none; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.origin b { display: block; font-size: 1rem; }
.origin small { color: rgba(255,255,255,.6); font-size: .82rem; }
@media (max-width: 1100px) { .origins { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .origins { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Audience (wholesale / retail) ---------- */
.aud-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.aud-card { position: relative; padding: 40px; border-radius: 26px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.aud-card.featured { background: linear-gradient(145deg, var(--gold-100), #fff 60%); border-color: #e9dcb8; }
.aud-card .ic { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--green); color: #fff; margin-bottom: 20px; }
.aud-card.featured .ic { background: var(--gold); }
.aud-card .ic svg { width: 32px; height: 32px; }
.aud-card h3 { font-size: 1.6rem; color: var(--green-900); }
.aud-card ul { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 10px; }
.aud-card li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.aud-card li svg { flex: none; width: 22px; height: 22px; color: var(--green); margin-top: 3px; }
@media (max-width: 860px) { .aud-grid { grid-template-columns: 1fr; } .aud-card { padding: 30px 24px; } }

/* ---------- Packaging ---------- */
.pack-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.pack-text h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 900; color: var(--green-900); }
.pack-text p { color: var(--muted); font-size: 1.08rem; }
.pack-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.pack-list li { display: flex; align-items: center; gap: 14px; font-weight: 600; color: var(--ink-2); }
.pack-list .ic { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--gold); box-shadow: var(--shadow-sm); }
.pack-list .ic svg { width: 22px; height: 22px; }
.pack-media { position: relative; min-height: 520px; }
.pack-card { position: absolute; margin: 0; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.pack-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pack-card:hover img { transform: scale(1.05); }
.pack-card figcaption { position: absolute; bottom: 14px; inset-inline-start: 14px; background: rgba(20,41,37,.82); color: #fff; font-weight: 700; font-size: .88rem; padding: .35em .9em; border-radius: 999px; backdrop-filter: blur(6px); }
.pack-a { width: 58%; aspect-ratio: 1; top: 0; inset-inline-start: 0; }
.pack-b { width: 60%; aspect-ratio: 1.3; bottom: 0; inset-inline-end: 0; border: 8px solid var(--green-50); }
@media (max-width: 900px) {
  .pack-grid { grid-template-columns: 1fr; }
  .pack-media { min-height: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
  .pack-card { position: relative; width: auto; inset: auto; border-width: 0; }
  .pack-a, .pack-b { aspect-ratio: 4 / 3; }
  .pack-card figcaption { font-size: .8rem; bottom: 10px; inset-inline-start: 10px; }
}

/* ---------- Delivery map ---------- */
.delivery { background: var(--green-950); color: #fff; overflow: hidden; isolation: isolate; }
.delivery .bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: .22; }
.delivery::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 30% 50%, transparent, var(--green-950) 75%); }
.delivery-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.ksa-map { width: 100%; height: auto; overflow: visible; }
.ksa-map .land { fill: rgba(62,100,93,.35); stroke: rgba(201,169,92,.8); stroke-width: 2; stroke-linejoin: round; }
.ksa-map .land-glow { fill: none; stroke: var(--gold-300); stroke-width: 6; opacity: .15; filter: blur(6px); }
.ksa-map .route { fill: none; stroke: var(--gold-300); stroke-width: 2; stroke-linecap: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); opacity: .9; }
.ksa-map .route.export { stroke: #fff; stroke-dasharray: 6 8; stroke-dashoffset: 0; opacity: 0; }
.in .ksa-map .route { animation: draw 1.4s var(--ease) forwards; animation-delay: var(--d); }
.in .ksa-map .route.export { animation: fadeDash 1s var(--ease) forwards, dash 1.2s linear infinite; animation-delay: var(--d), var(--d); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeDash { to { opacity: .55; } }
@keyframes dash { to { stroke-dashoffset: -28; } }
.ksa-map .city circle { fill: var(--gold-300); }
.ksa-map .city { opacity: 0; }
.in .ksa-map .city { animation: pop .5s var(--ease) forwards; animation-delay: var(--d); }
@keyframes pop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
.ksa-map .city, .ksa-map .hub { transform-box: fill-box; transform-origin: center; }
.ksa-map .city text, .ksa-map .ext text { fill: rgba(255,255,255,.85); font-size: 17px; font-weight: 700; font-family: Cairo, sans-serif; }
.ksa-map .ext circle { fill: #fff; }
.ksa-map .ext { opacity: 0; }
.in .ksa-map .ext { animation: pop .5s var(--ease) forwards; animation-delay: var(--d); }
.ksa-map .hub-core { fill: var(--gold-300); }
.ksa-map .hub-pulse { fill: none; stroke: var(--gold-300); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s var(--ease) infinite; }
.ksa-map .hub-pulse.p2 { animation-delay: 1.2s; }
@keyframes pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(3.4); opacity: 0; } }
.ksa-map .hub-label { fill: #fff; font-size: 22px; font-weight: 900; font-family: Cairo, sans-serif; }
.ksa-map .truck { fill: #fff; }
.delivery-list { display: grid; gap: 14px; margin: 26px 0 30px; }
.delivery-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.delivery-item .ic { width: 50px; height: 50px; flex: none; display: grid; place-items: center; border-radius: 14px; background: rgba(201,169,92,.16); color: var(--gold-300); }
.delivery-item .ic svg { width: 26px; height: 26px; }
.delivery-item b { display: block; font-size: 1.08rem; }
.delivery-item small { color: rgba(255,255,255,.65); font-size: .92rem; }
@media (max-width: 960px) { .delivery-grid { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; position: relative; }
.steps::before { content: ''; position: absolute; top: 38px; inset-inline: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--gold-300) 0 8px, transparent 8px 16px); opacity: .6; }
.step { text-align: center; position: relative; }
.step .n { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: #fff; border: 2px solid var(--gold-300); color: var(--green); position: relative; transition: .4s var(--ease); }
.step .n svg { width: 32px; height: 32px; }
.step .n::after { counter-increment: step; content: counter(step); position: absolute; top: -6px; inset-inline-end: -6px; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; font-size: .8rem; font-weight: 800; display: grid; place-items: center; }
.step:hover .n { background: var(--green); color: #fff; transform: translateY(-4px); }
.step h3 { font-size: 1.12rem; color: var(--green-900); }
.step p { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } .steps::before { display: none; } }

/* ---------- Showroom gallery ---------- */
.showroom { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; align-items: stretch; }
.showroom .photo { position: relative; border-radius: 26px; overflow: hidden; min-height: 380px; box-shadow: var(--shadow); }
.showroom .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.showroom .photo:hover img { transform: scale(1.05); }
.showroom .photo .cap { position: absolute; inset-inline: 0; bottom: 0; padding: 60px 26px 22px; background: linear-gradient(to top, rgba(20,41,37,.92), transparent); color: #fff; }
.showroom .photo .cap b { font-size: 1.3rem; display: block; }
.map-box { border-radius: 26px; overflow: hidden; min-height: 380px; box-shadow: var(--shadow); position: relative; background: var(--green-100); }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.85); }
@media (max-width: 900px) { .showroom { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; }
.contact-cards { display: grid; gap: 14px; align-content: start; }
.c-card { display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); transition: .3s var(--ease); }
a.c-card:hover { border-color: var(--green); transform: translateX(-4px); box-shadow: var(--shadow-sm); }
[dir="ltr"] a.c-card:hover { transform: translateX(4px); }
.c-card .ic { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--green); color: #fff; }
.c-card .ic.wa { background: #1faa55; }
.c-card .ic.gold { background: var(--gold); }
.c-card .ic svg { width: 24px; height: 24px; }
.c-card small { display: block; color: var(--muted); font-size: .85rem; }
.c-card b { font-size: 1.08rem; color: var(--green-900); }
.form-card { background: #fff; border-radius: 24px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8em 1em; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(62,100,93,.12); }
.form-msg { margin-top: 12px; font-weight: 700; min-height: 1.5em; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: #b3261e; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-radius: 30px; overflow: hidden; padding: clamp(36px, 6vw, 70px); color: #fff; background: linear-gradient(120deg, var(--green), var(--green-900)); isolation: isolate; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url('../img/cubes.svg') repeat; background-size: 120px; opacity: .08; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0 0 .2em; }
.cta-band p { margin: 0; opacity: .8; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: rgba(255,255,255,.72); padding: 80px 0 0; margin-top: 0; position: relative; overflow: hidden; }
.site-footer::before { content: ''; position: absolute; inset: 0; background: url('../img/cubes.svg') repeat; background-size: 140px; opacity: .035; pointer-events: none; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; position: relative; }
.footer-grid h4 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a:hover { color: var(--gold-300); }
.footer-logo { width: 190px; margin-bottom: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 56px; padding: 22px 0; font-size: .85rem; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; position: relative; }
.footer-bottom .credits { opacity: .55; font-size: .78rem; }
.footer-bottom .credits a { text-decoration: underline; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: .3s; }
.socials a:hover { background: var(--gold); color: #fff; }
.socials svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Floating WhatsApp ---------- */
.fab-wa {
  position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: #1faa55; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(31,170,85,.7); transition: transform .3s var(--ease);
}
.fab-wa:hover { transform: scale(1.08); }
.fab-wa svg { width: 30px; height: 30px; }
.fab-wa::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1faa55; animation: pulse-wa 2.2s infinite; }
@keyframes pulse-wa { to { transform: scale(1.6); opacity: 0; } }
.to-top {
  position: fixed; bottom: 26px; inset-inline-end: 22px; z-index: 60; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--green); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); transition: .3s var(--ease); pointer-events: none;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + 50px) 0 60px; background: var(--green-900); color: #fff; overflow: hidden; isolation: isolate; }
.page-hero .bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center 65%; opacity: .25; }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, var(--green-900), rgba(27,53,48,.6)); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; margin-bottom: .2em; }
.page-hero p { color: rgba(255,255,255,.75); margin: 0; font-size: 1.05rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: rgba(255,255,255,.6); margin-bottom: 12px; }
.crumbs a:hover { color: var(--gold-300); }
.crumbs span::before { content: '/'; margin-inline-end: 8px; opacity: .5; }

/* ---------- Catalog ---------- */
.scrim { display: none; }
.catalog { display: grid; grid-template-columns: 290px 1fr; gap: 28px; padding: 36px 0 90px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 8px 0; max-height: calc(100vh - var(--header-h) - 32px); overflow: auto; }
.filters-head { display: none; }
.f-group { padding: 14px 20px; border-bottom: 1px solid var(--line); }
.f-group:last-child { border-bottom: 0; }
.f-group > h4 { font-size: .95rem; color: var(--green-900); margin: 0 0 10px; display: flex; justify-content: space-between; align-items: center; }
.f-group > h4 button { border: 0; background: none; color: var(--gold); font-size: .8rem; font-weight: 700; padding: 0; }
.tree { list-style: none; margin: 0; padding: 0; }
.tree ul { list-style: none; margin: 2px 0 4px; padding-inline-start: 16px; border-inline-start: 1px dashed var(--line); margin-inline-start: 10px; display: none; }
.tree li.open > ul { display: block; }
.tree .row { display: flex; align-items: center; gap: 4px; }
.tree .tog { width: 22px; height: 22px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; border-radius: 6px; flex: none; transition: transform .2s; }
.tree .tog svg { width: 14px; height: 14px; }
.tree li.open > .row .tog { transform: rotate(90deg); }
[dir="rtl"] .tree .tog svg { transform: scaleX(-1); }
[dir="rtl"] .tree li.open > .row .tog { transform: rotate(-90deg); }
.tree .tog.leaf { visibility: hidden; }
.tree a { flex: 1; display: flex; justify-content: space-between; gap: 8px; padding: .35em .6em; border-radius: 8px; font-size: .92rem; color: var(--ink-2); transition: background .2s; }
.tree a:hover { background: var(--green-50); }
.tree a.active { background: var(--green); color: #fff; font-weight: 700; }
.tree a .c { font-size: .78rem; color: var(--muted); font-weight: 700; }
.tree a.active .c { color: rgba(255,255,255,.8); }
.tree a.zero { opacity: .55; }
.checks { display: grid; gap: 4px; }
.check { display: flex; align-items: center; gap: 10px; padding: .3em .2em; font-size: .92rem; cursor: pointer; border-radius: 8px; }
.check input { width: 18px; height: 18px; accent-color: var(--green); flex: none; }
.check .c { margin-inline-start: auto; color: var(--muted); font-size: .78rem; font-weight: 700; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw-btn { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); padding: 0; position: relative; transition: transform .2s; }
.sw-btn:hover { transform: scale(1.1); }
.sw-btn.on { box-shadow: 0 0 0 2px var(--green); }
.sw-btn.on::after { content: ''; position: absolute; inset: 9px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -2px); height: 6px; filter: drop-shadow(0 0 1px rgba(0,0,0,.8)); }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.search { position: relative; flex: 1; min-width: 240px; }
.search input { width: 100%; padding: .95em 3.2em .95em 1.2em; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
[dir="ltr"] .search input { padding: .95em 1.2em .95em 3.2em; }
.search input:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 4px rgba(62,100,93,.12); }
.search svg { position: absolute; top: 50%; inset-inline-start: 18px; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search .kbd { position: absolute; top: 50%; inset-inline-end: 14px; transform: translateY(-50%); font-size: .75rem; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; }
.select { padding: .8em 1em; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; }
.view-toggle { display: flex; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; }
.view-toggle button { border: 0; background: none; width: 40px; height: 36px; border-radius: 999px; display: grid; place-items: center; color: var(--muted); }
.view-toggle button.on { background: var(--green); color: #fff; }
.view-toggle svg { width: 18px; height: 18px; }
.filter-toggle { display: none; }
.result-info { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--muted); font-size: .92rem; }
.result-info b { color: var(--green-900); }
.active-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--green-50); color: var(--green); border: 1px solid var(--green-100); border-radius: 999px; padding: .2em .4em .2em .8em; font-weight: 700; font-size: .82rem; }
[dir="rtl"] .active-chip { padding: .2em .8em .2em .4em; }
.active-chip button { border: 0; background: var(--green); color: #fff; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; padding: 0; }
.active-chip button svg { width: 10px; height: 10px; }
.clear-all { border: 0; background: none; color: var(--gold); font-weight: 800; font-size: .85rem; }

.p-grid.list { grid-template-columns: 1fr; gap: 10px; }
.p-grid.list .p-card { flex-direction: row; align-items: stretch; }
.p-grid.list .p-media { width: 120px; aspect-ratio: auto; flex: none; }
.p-grid.list .p-media img { padding: 8px; }
.p-grid.list .p-flags { display: none; }
.p-grid.list .p-body { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.p-grid.list .p-sku { width: 100%; text-align: start; }
.p-grid.list .p-name { flex: 1; min-width: 220px; -webkit-line-clamp: 1; }
.p-grid.list .p-meta { margin: 0; padding: 0; }
.p-grid.list .p-actions { margin: 0; }
.p-grid.list .p-actions .btn { flex: none; }

.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 36px; }
.pager button { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 700; }
.pager button:hover:not(:disabled) { border-color: var(--green); color: var(--green); }
.pager button.on { background: var(--green); color: #fff; border-color: var(--green); }
.pager button:disabled { opacity: .4; cursor: default; }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: 20px; }
.empty svg { width: 64px; height: 64px; color: var(--gold-300); margin: 0 auto 12px; }

@media (max-width: 980px) {
  .catalog { grid-template-columns: 1fr; }
  .filter-toggle { display: inline-flex; }
  .filters { position: fixed; inset: 0 0 0 auto; width: min(360px, 90vw); z-index: 80; border-radius: 0; max-height: none; transform: translateX(100%); transition: transform .35s var(--ease); box-shadow: var(--shadow); padding-top: 0; }
  [dir="rtl"] .filters { inset: 0 auto 0 0; transform: translateX(-100%); }
  .filters.open { transform: none !important; }
  .filters-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
  .filters-head b { font-size: 1.1rem; }
  .scrim { position: fixed; inset: 0; background: rgba(20,41,37,.45); z-index: 79; opacity: 0; pointer-events: none; transition: .3s; display: block; }
  .scrim.show { opacity: 1; pointer-events: auto; }
}
@media (max-width: 560px) {
  .p-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .p-body { padding: 12px; }
  .p-name { font-size: .9rem; }
  .p-actions .btn span { display: none; }
  .p-grid.list .p-media { width: 90px; }
}

/* ---------- Product page ---------- */
.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 60px); padding: 40px 0 70px; align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.gallery .main { position: relative; aspect-ratio: 1; border-radius: 24px; background: #fff; border: 1px solid var(--line); overflow: hidden; cursor: zoom-in; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; padding: 24px; transition: transform .4s var(--ease); }
.gallery .main.zoom img { transform: scale(2); cursor: zoom-out; }
.gallery .main .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--green); background: radial-gradient(circle at 50% 40%, #fff, var(--green-50) 70%); }
.gallery .main .ph svg { width: 40%; height: 40%; opacity: .7; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { width: 78px; height: 78px; flex: none; border-radius: 14px; border: 2px solid var(--line); background: #fff; padding: 4px; overflow: hidden; }
.thumbs button.on { border-color: var(--green); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.p-info h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--green-900); font-weight: 900; }
.p-info .en { color: var(--muted); direction: ltr; text-align: end; font-weight: 600; margin-top: -6px; }
[dir="ltr"] .p-info .en { display: none; }
.p-info .sku-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.p-info .desc { color: var(--ink-2); font-size: 1.05rem; }
.spec-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; margin: 22px 0; }
.spec-table th, .spec-table td { padding: 12px 16px; text-align: start; border-bottom: 1px solid var(--line); font-size: .95rem; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 38%; background: var(--paper); color: var(--muted); font-weight: 700; }
.spec-table td { font-weight: 600; color: var(--green-900); }
.sheet-card { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 18px; background: linear-gradient(135deg, var(--gold-100), #fff); border: 1px solid #eadfbf; margin-bottom: 20px; }
.sheet-card .ic { width: 54px; height: 54px; flex: none; border-radius: 14px; background: #b3261e; color: #fff; display: grid; place-items: center; font-weight: 900; font-size: .8rem; }
.sheet-card b { display: block; color: var(--green-900); }
.sheet-card small { color: var(--muted); }
.sheet-card .acts { margin-inline-start: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.buy-row { display: flex; flex-wrap: wrap; gap: 10px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.qty button { width: 42px; height: 46px; border: 0; background: none; font-size: 1.2rem; font-weight: 800; color: var(--green); }
.qty input { width: 56px; text-align: center; border: 0; background: none; font-weight: 800; }
.qty input:focus { outline: 0; }
.pdf-viewer { width: 100%; height: 80vh; border: 0; border-radius: 18px; background: #fff; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } .gallery { position: static; } }

/* ---------- Drawer (quote list) & modal ---------- */
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(440px, 100vw); background: #fff; z-index: 90; box-shadow: var(--shadow); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .4s var(--ease); }
[dir="rtl"] .drawer { transform: translateX(-100%); }
.drawer.open { transform: none !important; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; color: var(--green-900); }
.drawer-body { flex: 1; overflow: auto; padding: 16px 22px; }
.drawer-foot { padding: 18px 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.q-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.q-item .t { flex: 1; min-width: 0; }
.q-item .t b { display: block; font-size: .92rem; color: var(--green-900); line-height: 1.5; }
.q-item .t small { color: var(--gold); font-weight: 700; direction: ltr; display: inline-block; }
.q-item .qty button { width: 32px; height: 34px; }
.q-item .qty input { width: 40px; }
.overlay { position: fixed; inset: 0; background: rgba(20,41,37,.5); z-index: 85; opacity: 0; pointer-events: none; transition: .3s; backdrop-filter: blur(2px); }
.overlay.show { opacity: 1; pointer-events: auto; }
.modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 20px; pointer-events: none; }
.modal .box { width: min(1000px, 100%); max-height: 92vh; overflow: auto; background: #fff; border-radius: 22px; box-shadow: var(--shadow); transform: scale(.96); opacity: 0; transition: .3s var(--ease); pointer-events: auto; }
.modal.open .box { transform: none; opacity: 1; }
.modal:not(.open) .box { pointer-events: none; }
.close-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--paper); display: grid; place-items: center; }
.close-btn svg { width: 18px; height: 18px; }

.toast { position: fixed; bottom: 100px; left: 50%; transform: translate(-50%, 30px); background: var(--green-900); color: #fff; padding: 12px 22px; border-radius: 999px; font-weight: 700; z-index: 100; opacity: 0; transition: .35s var(--ease); pointer-events: none; box-shadow: var(--shadow); display: flex; gap: 8px; align-items: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; color: var(--gold-300); }

/* 404 */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; background: var(--green-900); color: #fff; padding: 20px; }
.nf h1 { font-size: 7rem; font-weight: 900; margin: 0; background: linear-gradient(135deg, #fff, var(--gold-300)); -webkit-background-clip: text; background-clip: text; color: transparent; }
