/* ==========================================================================
   Altura — The pilot's marketplace
   Master stylesheet · built on Brand Guide v1.0 palette
   Theme  · DARK — full Abyss body (brand guide original)
   Palette · Abyss #0A1A2F · Altitude #13497A · Azure #2E7DD1
            Horizon #E8A33D · Ember #D6622B · Mist #EAF1F7
   Type   · Fraunces (headings) · Outfit (body) · Vazirmatn (FA/RTL)
   ========================================================================== */

:root {
  /* Brand palette */
  --abyss:    #0A1A2F;
  --abyss-2:  #0c2036;               /* slightly raised abyss */
  --altitude: #13497A;
  --azure:    #2E7DD1;
  --horizon:  #E8A33D;
  --ember:    #D6622B;
  --mist:     #EAF1F7;
  --white:    #FFFFFF;

  /* Dark-theme surfaces */
  --bg:        #0A1A2F;             /* page background — Abyss */
  --surface-1: #0D2238;            /* card */
  --surface-2: #11304f;            /* raised card */
  --surface-3: #16395e;            /* hover / input */
  --line:      rgba(234,241,247,.10);
  --line-2:    rgba(234,241,247,.16);

  /* Neutral overlays (light on dark) */
  --overlay-1: rgba(234,241,247,.04);
  --overlay-2: rgba(234,241,247,.07);
  --overlay-3: rgba(234,241,247,.12);

  /* Text */
  --heading:   #EAF1F7;            /* headings — Mist */
  --ink:       var(--mist);        /* primary body */
  --ink-soft:  rgba(234,241,247,.72);
  --ink-mute:  rgba(234,241,247,.52);
  --eyebrow:   var(--horizon);     /* gold accent, readable on dark */

  /* EN class accents */
  --en-a: #2e9e6b;
  --en-b: #2E7DD1;
  --en-c: #d18a1f;
  --en-d: #D6622B;

  /* Type */
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-fa:   "Vazirmatn", system-ui, sans-serif;

  /* Rhythm */
  --maxw: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --shadow: 0 22px 50px -28px rgba(19,73,122,.42);
  --shadow-soft: 0 12px 30px -20px rgba(19,73,122,.20);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* Root is already dark — no per-section override needed. */

/* RTL switches the body font to Vazirmatn */
html[dir="rtl"] body { font-family: var(--font-fa); }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3,
html[dir="rtl"] .display { font-family: var(--font-fa); font-weight: 800; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(ellipse at top, var(--altitude) 0%, var(--abyss) 65%);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--azure); text-decoration: none; }
a:hover { color: var(--horizon); }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; color: var(--heading); font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); font-weight: 600; }
h3 { font-size: 1.32rem; font-weight: 600; }
p { margin: 0 0 1rem; color: var(--ink-soft); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

section { padding-block: clamp(56px, 8vw, 104px); }

/* Section rhythm — subtle tinted bands on the dark body */
.band {
  background: rgba(19,73,122,.18);
  border-block: 1px solid rgba(234,241,247,.06);
}
.band + .band { border-block-start: 0; }

.eyebrow {
  font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--eyebrow); margin: 0 0 14px;
}
html[dir="rtl"] .eyebrow { letter-spacing: 0; }

.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 60ch; }
.text-accent { color: var(--eyebrow); }
.text-azure { color: var(--azure); }
.muted { color: var(--ink-mute); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ===== Buttons ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease), background .2s, box-shadow .2s, border-color .2s;
  white-space: nowrap; line-height: 1;
}
html[dir="rtl"] .btn { font-family: var(--font-fa); }
.btn:hover { transform: translateY(-2px); }
.btn .arw { transition: transform .2s var(--ease); font-size: 0; }
.btn .arw::after { content: "\2192"; font-size: 0.875rem; }
.btn:hover .arw { transform: translateX(3px); }
html[dir="rtl"] .btn:hover .arw { transform: translateX(-3px); }

.btn-cta { background: linear-gradient(135deg, var(--horizon), var(--ember)); color: #2a1305; box-shadow: 0 14px 30px -12px rgba(214,98,43,.55); }
.btn-cta:hover { background: linear-gradient(135deg, #f2b052, #e2702f); color: #2a1305; }
.btn-ghost { background: var(--overlay-2); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--overlay-3); color: var(--heading); border-color: var(--line-2); }
.btn-azure { background: var(--azure); color: #04111f; }
.btn-azure:hover { background: #4a93de; color: #04111f; }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 16px 28px; font-size: 1rem; }

/* ===== Header / nav ======================================================= */
.site-header {
  position: sticky; top: 0; z-index: 80;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(10,26,47,.92), rgba(10,26,47,.66));
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; color: var(--white); }
.brand .dot { color: var(--horizon); }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav-links a {
  color: var(--ink-soft); font-size: .92rem; font-weight: 500; padding: 8px 12px; border-radius: 10px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--white); background: rgba(234,241,247,.06); }
.nav-links a.active { color: var(--horizon); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: 6px; }
html[dir="rtl"] .nav-links { margin-inline-start: auto; }

/* ===== Nav dropdown (grouped AI tools) ==================================== */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--ink-soft); font-size: .92rem; font-weight: 500; padding: 8px 12px; border-radius: 10px;
  background: transparent; border: 0; cursor: pointer; font-family: inherit;
  transition: color .15s, background .15s;
}
.nav-dropdown-toggle .chev { width: 12px; height: 12px; transition: transform .15s; }
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle { color: var(--white); background: rgba(234,241,247,.06); }
.nav-dropdown-toggle.active { color: var(--horizon); }
.nav-dropdown:hover .nav-dropdown-toggle .chev,
.nav-dropdown:focus-within .nav-dropdown-toggle .chev { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 6px); inset-inline-start: 0; min-width: 210px;
  background: var(--surface-1); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 6px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .15s, transform .15s, visibility .15s;
  z-index: 90;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a {
  display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink-soft); font-size: .9rem;
  transition: color .15s, background .15s;
}
.nav-dropdown-menu a:hover { color: var(--white); background: rgba(234,241,247,.06); }
.nav-dropdown-menu a.active { color: var(--horizon); }

.lang-toggle {
  display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; background: rgba(0,0,0,.2);
}
.lang-toggle button {
  background: transparent; color: var(--ink-mute); border: 0; cursor: pointer;
  font-family: var(--font-body); font-size: .8rem; font-weight: 600; padding: 7px 12px; transition: .15s;
}
.lang-toggle button.active { background: var(--horizon); color: #2a1c05; }

.nav-toggle { display: none; background: transparent; border: 1px solid var(--line-2); color: var(--mist); border-radius: 10px; width: 42px; height: 38px; cursor: pointer; font-size: 1.1rem; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; margin-inline-start: auto; }
  .nav-links {
    position: absolute; inset-inline: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--abyss-2); border-bottom: 1px solid var(--line); padding: 12px 16px; margin: 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .nav-actions { margin-inline-start: 0; }
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; padding: 12px; }
  .nav-dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: 0; box-shadow: none; padding: 0 0 4px 14px;
    display: flex; flex-direction: column;
  }
  .nav-dropdown-menu a { padding: 10px 12px; }
}
@media (max-width: 600px) {
  .nav-actions .btn-cta { display: none; }
}

/* ===== Hero =============================================================== */
.hero {
  position: relative; overflow: hidden; padding-block: clamp(64px, 10vw, 128px);
  background: var(--abyss);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('../img/hero-webp/h01.webp') center 35% / cover no-repeat;
  transition: opacity 1.2s ease;
}
.hero-bg.fade-out { opacity: 0; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(10,26,47,.97) 30%, rgba(10,26,47,.55) 52%, rgba(10,26,47,.05) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 420px at 78% 18%, rgba(46,125,209,.22), transparent 62%),
    radial-gradient(520px 320px at 18% 88%, rgba(232,163,61,.12), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 .accent { color: var(--horizon); }
.hero .lead { margin-block: 18px 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 30px; } }

/* Hero canopy art */
.canopy-art {
  position: relative; aspect-ratio: 1/1; border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(46,125,209,.30), transparent 60%),
    linear-gradient(160deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden;
  display: grid; place-items: center;
}
.canopy-art svg { width: 72%; height: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); }

/* ===== Glass pills (EN class tags) ======================================== */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .76rem; font-weight: 600; letter-spacing: .02em;
  padding: 6px 12px; border-radius: 999px;
  background: var(--overlay-2); border: 1px solid var(--line-2); color: var(--ink-soft);
  backdrop-filter: blur(6px);
}
.pill .dotc { width: 8px; height: 8px; border-radius: 50%; background: var(--azure); }
.pill[data-en="A"] .dotc { background: var(--en-a); }
.pill[data-en="B"] .dotc { background: var(--en-b); }
.pill[data-en="C"] .dotc { background: var(--en-c); }
.pill[data-en="D"] .dotc { background: var(--en-d); }

/* ===== Cards / grid ======================================================= */
.grid { display: grid; gap: 22px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(165deg, var(--surface-1), var(--surface-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: 0 1px 2px rgba(19,73,122,.05), 0 16px 34px -26px rgba(19,73,122,.30);
  transition: transform .22s var(--ease), border-color .2s, box-shadow .22s;
}
.card.hoverable:hover { transform: translateY(-5px); border-color: rgba(46,125,209,.32); box-shadow: 0 1px 2px rgba(19,73,122,.06), 0 26px 50px -28px rgba(19,73,122,.42); }
.card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(46,125,209,.14); color: var(--azure); border: 1px solid rgba(46,125,209,.25); }
.card .ic svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: .96rem; }

.section-head { max-width: 64ch; margin-bottom: 38px; }
.section-head.center { margin-inline: auto; }

/* ===== Trust badge strip (honest, verifiable claims only) ================ */
.trust-strip {
  background: rgba(19,73,122,.18);
  border-block: 1px solid rgba(234,241,247,.06);
  padding-block: 18px;
}
.trust-strip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 32px; }
.trust-item { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: .87rem; font-weight: 500; white-space: nowrap; }
.trust-item svg { width: 18px; height: 18px; color: var(--horizon); flex: none; }
@media (max-width: 700px) { .trust-strip-row { gap: 12px 20px; } .trust-item { font-size: .8rem; } }

/* ===== Value / trust strip =============================================== */
.strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.strip > div { background: var(--surface-1); padding: 22px; }
.strip b { color: var(--heading); font-family: var(--font-head); font-size: 1.5rem; display: block; }
.strip span { color: var(--ink-mute); font-size: .85rem; }
@media (max-width: 760px) { .strip { grid-template-columns: repeat(2,1fr); } }

/* ===== Product cards ====================================================== */
.product-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.product-card.has-photo .product-thumb { background: none; }
.product-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.product-card[data-en]::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px; z-index: 3;
  background: var(--azure);
}
.product-card[data-en="A"]::before { background: var(--en-a); }
.product-card[data-en="B"]::before { background: var(--en-b); }
.product-card[data-en="C"]::before { background: var(--en-c); }
.product-card[data-en="D"]::before { background: var(--en-d); }
.product-thumb {
  aspect-ratio: 16/10; position: relative; display: grid; place-items: center;
  background:
    radial-gradient(90% 90% at 50% 0%, rgba(46,125,209,.25), transparent 65%),
    linear-gradient(160deg, var(--surface-3), var(--surface-1));
  border-bottom: 1px solid var(--line);
}
.product-thumb svg { width: 56%; opacity: .92; }
.product-thumb .en-badge {
  position: absolute; inset-block-start: 12px; inset-inline-start: 12px;
}
.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-body .cat { font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-mute); }
html[dir="rtl"] .product-body .cat { letter-spacing: 0; }
.product-body h3 { font-size: 1.1rem; margin: 0; }
.product-body .desc { font-size: .88rem; color: var(--ink-mute); margin: 0; flex: 1; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 6px; gap: 10px; }
.price { font-family: var(--font-head); font-size: 1.3rem; color: var(--heading); }
.price small { font-size: .72rem; color: var(--ink-mute); font-family: var(--font-body); }

/* ===== Filters ============================================================ */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip {
  border: 1px solid var(--line-2); background: var(--overlay-1); color: var(--ink-soft);
  padding: 9px 16px; border-radius: 999px; cursor: pointer; font-family: inherit; font-size: .86rem; font-weight: 500; transition: .15s;
}
.chip:hover { border-color: var(--azure); color: var(--heading); }
.chip.active { background: var(--horizon); color: #2a1c05; border-color: var(--horizon); font-weight: 600; }

/* ===== Blog listing ======================================================= */
.blog-media {
  aspect-ratio: 16/10; position: relative; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(90% 90% at 50% 0%, rgba(46,125,209,.25), transparent 65%), linear-gradient(160deg, var(--surface-3), var(--surface-1));
  border-radius: var(--radius-sm);
}
.blog-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.blog-media svg { width: 34%; opacity: .5; }
.blog-tag {
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--eyebrow); padding: 4px 11px; border-radius: 999px;
  background: rgba(232,163,61,.14); border: 1px solid rgba(232,163,61,.35);
}
.blog-cat-label { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--eyebrow); }
.blog-meta { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--ink-mute); }

.blog-featured {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center;
  text-decoration: none; color: inherit; margin-bottom: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--line);
}
.blog-featured .blog-media { aspect-ratio: 16/11; box-shadow: 0 22px 50px -28px rgba(19,73,122,.5); }
.blog-featured-tags { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.blog-featured h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.3; margin: 0 0 12px; }
.blog-featured p { font-size: .93rem; line-height: 1.7; color: var(--ink-soft); margin: 0 0 16px; }
.blog-featured .blog-meta { margin-bottom: 16px; }
.blog-featured .read-link { color: var(--eyebrow); font-size: .9rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 760px) { .blog-featured { grid-template-columns: 1fr; gap: 20px; } }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 26px; }
.blog-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.blog-card .blog-media { margin-bottom: 14px; }
.blog-card .blog-cat-label { margin-bottom: 8px; display: block; }
.blog-card h3 { font-size: 1.08rem; line-height: 1.4; margin: 0 0 8px; }
.blog-card p { font-size: .88rem; line-height: 1.65; color: var(--ink-mute); margin: 0 0 12px; flex: 1; }
.blog-card:hover h3 { color: var(--azure); }

/* ===== Search bar ========================================================= */
.search-wrap { margin-bottom: 18px; }
.search-bar {
  position: relative;
  max-width: 480px;
}
.search-bar .s-icon {
  position: absolute;
  inset-inline-start: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--ink-mute);
  pointer-events: none;
}
.search-bar input[type="search"] {
  padding-block: 10px;
  padding-inline-start: 42px;
  padding-inline-end: 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line-2);
  background: var(--surface-2);
  font-size: .93rem;
  width: 100%;
  color: var(--ink);
}
.search-bar input[type="search"]:focus {
  border-color: var(--azure);
  box-shadow: 0 0 0 3px rgba(46,125,209,.18);
}
.search-bar input[type="search"]::placeholder { color: var(--ink-mute); }
/* Homepage hero search */
.hero-search { display: flex; gap: 10px; align-items: center; margin-top: 22px; max-width: 480px; }
.hero-search .search-bar { flex: 1; }
.hero-search input[type="search"] {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.22);
  color: var(--heading);
}
.hero-search input[type="search"]::placeholder { color: rgba(255,255,255,.5); }
.hero-search input[type="search"]:focus { border-color: var(--azure); background: rgba(255,255,255,.12); }

/* ===== Forms ============================================================== */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.hint { font-size: .76rem; color: var(--ink-mute); font-weight: 400; }
input, select, textarea {
  font-family: inherit; font-size: .95rem; color: var(--mist);
  background: var(--surface-1); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color .15s, box-shadow .15s; width: 100%;
}
textarea { resize: vertical; min-height: 92px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--azure); box-shadow: 0 0 0 3px rgba(46,125,209,.22); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-mute) 50%), linear-gradient(135deg, var(--ink-mute) 50%, transparent 50%); background-position: calc(100% - 18px) center, calc(100% - 13px) center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
html[dir="rtl"] select { background-position: 18px center, 13px center; }
.range-row { display: flex; align-items: center; gap: 14px; }
input[type="range"] { padding: 0; accent-color: var(--horizon); }

/* segmented control */
.segmented { display: flex; gap: 6px; flex-wrap: wrap; }
.segmented label {
  flex: 1; min-width: 90px; text-align: center; padding: 11px 10px; border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); cursor: pointer; font-weight: 500; color: var(--ink-soft); transition: .15s; background: var(--surface-1);
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented input:checked + label, .segmented label.active { border-color: var(--horizon); background: rgba(232,163,61,.14); color: var(--white); }

/* ===== Quiz (gear matcher) =============================================== */
.quiz-opts { display: grid; gap: 10px; }
.seg-opt {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 15px 18px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--surface-1); color: var(--ink-soft); font-weight: 500; transition: .15s;
}
.seg-opt::before { content:""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; transition: .15s; }
.seg-opt:hover { border-color: var(--azure); color: var(--white); }
.seg-opt.active { border-color: var(--horizon); background: rgba(232,163,61,.12); color: var(--white); }
.seg-opt.active::before { border-color: var(--horizon); background: var(--horizon); box-shadow: inset 0 0 0 3px var(--surface-1); }

/* ===== Upload dropzone ==================================================== */
.dropzone {
  border: 1.5px dashed var(--line-2); border-radius: var(--radius); padding: 40px 24px; text-align: center;
  background: var(--overlay-1); cursor: pointer; transition: .18s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--azure); background: rgba(46,125,209,.08); }
.dropzone .dz-ic { width: 54px; height: 54px; margin: 0 auto 14px; color: var(--azure); }
.dropzone h3 { margin-bottom: 6px; }
.dropzone.disabled { cursor: default; }
.dropzone.disabled:hover { border-color: var(--line-2); background: var(--overlay-1); }
.dropzone.disabled .dz-ic { color: var(--horizon); }

.badge-soon {
  display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--horizon);
  border: 1px solid rgba(232,163,61,.4); background: rgba(232,163,61,.12);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.badge-soon svg { width: 14px; height: 14px; flex: none; }

/* ===== Result / AI panels ================================================= */
.ai-result { border: 1px solid rgba(46,125,209,.3); border-radius: var(--radius); padding: 0; overflow: hidden; background: linear-gradient(165deg, rgba(46,125,209,.10), var(--surface-1)); }
.ai-result-head { display: flex; align-items: center; gap: 10px; padding: 16px 22px; border-bottom: 1px solid var(--line); background: rgba(46,125,209,.12); }
.ai-result-head .badge-ai { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--azure); border: 1px solid rgba(46,125,209,.4); padding: 4px 9px; border-radius: 999px; }
.ai-result-body { padding: 22px; }
.price-estimate { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 2.8rem); color: var(--eyebrow); line-height: 1; }
.price-range { color: var(--ink-soft); font-size: .95rem; margin-top: 6px; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin: 18px 0; }
.metrics > div { background: var(--surface-2); padding: 16px; }
.metrics b { display: block; font-family: var(--font-head); font-size: 1.35rem; color: var(--heading); }
.metrics span { font-size: .78rem; color: var(--ink-mute); }
.bar { height: 8px; border-radius: 999px; background: var(--overlay-3); overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--azure), var(--horizon)); border-radius: 999px; }

.notice { font-size: .84rem; color: var(--ink-mute); background: rgba(214,98,43,.08); border: 1px solid rgba(214,98,43,.25); border-radius: var(--radius-sm); padding: 12px 14px; display: flex; gap: 10px; }
.notice svg { flex: none; color: var(--ember); width: 18px; }

.is-hidden { display: none !important; }

/* ===== Steps / how it works =============================================== */
.steps { counter-reset: step; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step .num { counter-increment: step; flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-head); color: var(--horizon); background: rgba(232,163,61,.12); border: 1px solid rgba(232,163,61,.3); }
.step .num::before { content: counter(step); }

/* ===== About / split ===================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.founder-card { background: linear-gradient(165deg, var(--surface-2), var(--surface-1)); border:1px solid var(--line-2); border-radius: var(--radius); padding: 28px; }
.founder-card .who { display:flex; align-items:center; gap:14px; }
.avatar { width:56px;height:56px;border-radius:50%; background: linear-gradient(135deg,var(--altitude),var(--azure)); display:grid;place-items:center; font-family:var(--font-head); color:#fff; font-size:1.3rem; }

/* ===== Value list ========================================================= */
.vlist { display: grid; gap: 14px; }
.vlist .vrow { display: flex; gap: 12px; align-items: flex-start; }
.vlist .vrow .tick { flex: none; color: var(--horizon); margin-top: 2px; }

/* ===== CTA band =========================================================== */
.cta-band {
  background: linear-gradient(135deg, var(--altitude), var(--abyss-2));
  border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px);
  text-align: center; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.cta-band::after { content:""; position:absolute; inset:0; z-index:0; background: radial-gradient(500px 240px at 50% -20%, rgba(232,163,61,.22), transparent 60%); }
.cta-band > * { position: relative; z-index: 1; }

/* ===== Footer ============================================================= */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; background: var(--abyss-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-block: 52px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; } }
.footer-grid h4 { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-mute); margin-bottom: 14px; }
html[dir="rtl"] .footer-grid h4 { letter-spacing: 0; }
.footer-grid a { display: block; color: var(--ink-soft); font-size: .92rem; padding: 5px 0; }
.footer-grid a:hover { color: var(--horizon); }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--ink-mute); font-size: .82rem; }

/* ===== Page hero (inner pages) =========================================== */
.page-hero { padding-block: clamp(48px, 7vw, 84px) clamp(28px,4vw,42px); }
.page-hero .eyebrow { margin-bottom: 12px; }
.breadcrumb { font-size: .82rem; color: var(--ink-mute); margin-bottom: 14px; }
.breadcrumb a { color: var(--ink-mute); }

/* utilities */
.stack-lg > * + * { margin-top: 20px; }
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
.flex { display:flex; } .gap-12{gap:12px} .wrap{flex-wrap:wrap} .items-center{align-items:center}
.tag-row { display:flex; flex-wrap:wrap; gap:8px; }
.spinner { width: 20px; height: 20px; border: 2.5px solid var(--overlay-3); border-top-color: var(--horizon); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1; transform:none; transition:none; } * { scroll-behavior:auto; } }

/* ===== Product detail panel ============================================== */
#productPanel { display: none; position: fixed; inset: 0; z-index: 200; }
#productPanel.open { display: block; }

.panel-backdrop {
  position: absolute; inset: 0;
  background: rgba(5,14,26,.72);
  backdrop-filter: blur(4px);
  animation: fadeIn .22s var(--ease);
}
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

.panel-drawer {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(520px, 100vw);
  background: var(--surface-1);
  border-inline-start: 1px solid var(--line);
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: slideIn .28s var(--ease);
  display: flex; flex-direction: column;
}
@keyframes slideIn {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
html[dir="rtl"] .panel-drawer {
  inset-inline-end: auto;
  inset-inline-start: 0;
  border-inline-start: none;
  border-inline-end: 1px solid var(--line);
  animation-name: slideInRtl;
}
@keyframes slideInRtl {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}

.panel-close {
  position: sticky; top: 0; z-index: 2;
  align-self: flex-end;
  margin: 14px 14px 0;
  width: 38px; height: 38px;
  background: var(--overlay-2); border: 1px solid var(--line);
  color: var(--ink-soft); border-radius: 50%;
  font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.panel-close:hover { background: var(--overlay-3); color: var(--heading); }

.panel-inner { padding: 0 28px 40px; }

.panel-photo {
  margin: 0 -28px 24px;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.panel-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  display: block;
}

/* Gallery carousel */
.panel-gallery {
  position: relative;
  margin: 0 -28px 24px;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface-2);
}
.panel-gallery img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  display: block;
  transition: opacity .25s ease;
}
.gal-prev, .gal-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(10,26,47,.55); backdrop-filter: blur(4px);
  border: none; color: var(--heading); font-size: 1.6rem;
  line-height: 1; padding: 6px 14px; cursor: pointer;
  border-radius: 6px; z-index: 2; opacity: 0;
  transition: opacity .2s;
}
.gal-prev { left: 10px; }
.gal-next { right: 10px; }
.panel-gallery:hover .gal-prev,
.panel-gallery:hover .gal-next { opacity: 1; }
.gal-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.gal-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.4); transition: background .2s;
}
.gal-dot.active { background: var(--heading); }

.panel-meta {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.panel-meta .cat {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-mute);
}
.panel-en-badge {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  padding: 3px 9px; border-radius: 999px;
  background: var(--overlay-2); border: 1px solid var(--line);
  color: var(--ink-soft);
}
.panel-en-badge[data-en="A"] { background: rgba(46,158,107,.15); border-color: rgba(46,158,107,.3); color: var(--en-a); }
.panel-en-badge[data-en="B"] { background: rgba(46,125,209,.15); border-color: rgba(46,125,209,.3); color: var(--en-b); }
.panel-en-badge[data-en="C"] { background: rgba(209,138,31,.15); border-color: rgba(209,138,31,.3); color: var(--en-c); }
.panel-en-badge[data-en="D"] { background: rgba(214,98,43,.15); border-color: rgba(214,98,43,.3); color: var(--en-d); }

.panel-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--heading); margin: 0 0 8px;
}
.panel-price {
  font-size: 1.25rem; font-weight: 700;
  color: var(--horizon); margin: 0 0 20px;
}
.panel-price small { font-size: .75rem; font-weight: 500; color: var(--ink-mute); }

.panel-detail {
  font-size: .97rem; line-height: 1.75;
  color: var(--ink-soft); margin: 0 0 24px;
}

.panel-features {
  list-style: none; margin: 0 0 28px; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.panel-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .9rem; color: var(--ink-soft); line-height: 1.5;
}
.panel-features li::before {
  content: "✓";
  flex: none; width: 20px; height: 20px;
  background: rgba(46,125,209,.12); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; color: var(--azure); font-weight: 700;
  margin-top: 1px;
}

.panel-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  padding-top: 4px;
}
.pp-actions-stack { flex-direction: column; gap: 10px; }
.pp-actions-stack .btn { width: 100%; justify-content: center; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--azure);
  color: var(--azure);
}
.btn-outline:hover { background: rgba(46,125,209,.12); }
.pp-desc--below { margin-top: 20px; margin-bottom: 0; border-top: 1px solid var(--line); padding-top: 20px; }

/* Spec table */
.specs-wrap {
  margin-block: 24px 8px;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.specs-table {
  width: 100%; border-collapse: collapse;
  font-size: .78rem; white-space: nowrap;
}
.specs-table thead { background: var(--surface-2); }
.specs-table th {
  padding: 7px 10px; text-align: start;
  color: var(--eyebrow); font-weight: 600;
  font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.specs-table td {
  padding: 6px 10px; color: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.specs-table tbody tr:last-child td { border-bottom: none; }
.specs-table tbody tr:hover td { background: var(--surface-2); }

/* Size & colour selectors */
.panel-selectors { margin-block: 20px 4px; display: flex; flex-direction: column; gap: 16px; }
.selector-group { display: flex; flex-direction: column; gap: 8px; }
.sel-label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--eyebrow); font-weight: 600;
}
.size-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.size-chip {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 7px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: transparent;
  color: var(--ink); cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.sc-name { font-size: .85rem; font-weight: 600; line-height: 1; }
.sc-weight { font-size: .68rem; color: var(--ink-mute); line-height: 1; white-space: nowrap; }
.size-chip:hover  { border-color: var(--azure); color: var(--heading); }
.size-chip:hover .sc-weight { color: var(--azure); }
.size-chip.active { background: var(--azure); border-color: var(--azure); color: #fff; }
.size-chip.active .sc-weight { color: rgba(255,255,255,.75); }
.pp-suit-section { margin-bottom: 40px; }
.pp-sel-notice {
  background: rgba(232,163,61,.12);
  border: 1px solid var(--horizon);
  color: var(--horizon);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: .88rem;
  text-align: center;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .25s, transform .25s;
}
.pp-sel-notice--show { opacity: 1; transform: translateY(0); }

/* Colour palette — rectangular chip + name */
.color-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.color-option {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer; background: none; border: none; padding: 0;
}
.color-preview {
  width: 48px; height: 34px; border-radius: 6px;
  outline: 2px solid transparent; outline-offset: 2px;
  transition: transform .15s, outline-color .15s;
}
.color-option:hover .color-preview { transform: scale(1.08); }
.color-option.active .color-preview { outline-color: var(--heading); }
.color-name {
  font-size: .65rem; color: var(--ink-soft); text-align: center;
  width: 52px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: color .15s;
}
.color-option.active .color-name { color: var(--heading); font-weight: 600; }

/* Canopy top-view colour swatches (gliders only) */
.cpy-swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.cpy-option {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  cursor: pointer; background: none; border: 2px solid transparent;
  border-radius: 8px; padding: 3px 3px 2px; transition: border-color .15s;
}
.cpy-option .cpy-svg { width: 88px; height: 46px; display: block; border-radius: 4px; overflow: hidden; }
.cpy-img-frame { border-radius: 6px; overflow: hidden; line-height: 0; background: var(--surface-3); padding: 4px; }
.cpy-option .cpy-img-thumb { width: 130px; height: auto; display: block; border-radius: 3px; }
.pp-gallery img.contain { object-fit: contain !important; object-position: center center !important; background: var(--surface-2); }
.cpy-option .color-name { font-size: .65rem; color: var(--ink-soft); transition: color .15s; text-align: center; }
.cpy-option:hover { border-color: var(--azure); }
.cpy-option:hover .color-name { color: var(--heading); }
.cpy-option.active { border-color: var(--horizon); background: rgba(232,163,61,.08); }
.cpy-option.active .color-name { color: var(--heading); font-weight: 600; }

/* Cart item meta (size / colour) */
.cart-item-meta { display: block; font-size: .72rem; color: var(--ink-mute); margin-top: 2px; }

@media (max-width: 560px) {
  .panel-drawer { width: 100vw; }
  .panel-inner { padding: 0 18px 32px; }
  .panel-photo { margin: 0 -18px 20px; }
  .panel-gallery { margin: 0 -18px 20px; }
  .gal-prev, .gal-next { opacity: 1; padding: 4px 10px; font-size: 1.3rem; }
  .panel-actions { flex-direction: column; }
  .panel-actions .btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   Currency · price display + VAT hint
   ========================================================================== */

.price-group {
  display: flex; flex-direction: column; gap: 3px;
}

.vat-note {
  display: block;
  font-size: .72rem; color: var(--ink-mute);
  line-height: 1.4;
}

.panel-price-block {
  margin-bottom: 18px;
}
.panel-price-block .panel-price {
  margin-bottom: 4px;
}
.panel-vat-line .vat-note {
  font-size: .8rem;
}

/* ==========================================================================
   Cart button in nav
   ========================================================================== */

.cart-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--overlay-1);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
  flex-shrink: 0;
}
.cart-btn svg { width: 18px; height: 18px; }
.cart-btn:hover {
  background: var(--overlay-3);
  color: var(--heading);
  border-color: var(--line-2);
}
.cart-badge {
  position: absolute;
  top: -5px; inset-inline-end: -5px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  background: var(--horizon);
  color: var(--abyss);
  font-size: .65rem; font-weight: 700;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}

/* ==========================================================================
   Cart drawer
   ========================================================================== */

#cartDrawer {
  display: contents; /* children positioned independently */
}

.cart-backdrop {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(10,26,47,.65);
  backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none;
  transition: opacity .28s;
}
#cartDrawer.open .cart-backdrop {
  opacity: 1; pointer-events: auto;
}

.cart-panel {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  z-index: 1101;
  width: min(420px, 96vw);
  background: var(--surface-1);
  border-inline-start: 1px solid var(--line);
  display: flex; flex-direction: column;
  transform: translateX(105%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: -12px 0 40px rgba(0,0,0,.35);
}
html[dir="rtl"] .cart-panel {
  /* inset-inline-end:0 from base rule already maps to left:0 in RTL — don't override it */
  border-inline-start: none;
  border-inline-end: 1px solid var(--line);
  transform: translateX(-105%);
  box-shadow: 12px 0 40px rgba(0,0,0,.35);
}
#cartDrawer.open .cart-panel {
  transform: translateX(0);
}

/* Header */
.cart-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.cart-title {
  font-family: "Fraunces", serif;
  font-size: 1.15rem; font-weight: 600;
  color: var(--heading); margin: 0;
}
.cart-close {
  width: 32px; height: 32px;
  background: var(--overlay-1); border: 1px solid var(--line);
  border-radius: 8px; color: var(--ink-soft);
  font-size: .85rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.cart-close:hover { background: var(--overlay-3); color: var(--heading); }

/* Body (scrollable) */
.cart-body {
  flex: 1; overflow-y: auto;
  padding: 16px 24px;
  display: flex; flex-direction: column; gap: 16px;
}

.cart-empty {
  color: var(--ink-mute); font-size: .95rem;
  text-align: center; padding: 48px 0;
}

/* Cart item */
.cart-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
  background: var(--overlay-1);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.cart-item-img {
  width: 60px; height: 60px; border-radius: 8px;
  object-fit: cover; flex-shrink: 0;
  background: var(--surface-2);
}
.ci-placeholder {
  background: var(--surface-3);
}
.cart-item-info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.cart-item-name {
  font-size: .9rem; font-weight: 600; color: var(--heading);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-qty {
  display: flex; align-items: center; gap: 8px;
}
.qty-btn {
  width: 26px; height: 26px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 6px; color: var(--ink-soft);
  font-size: .9rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.qty-btn:hover { background: var(--surface-3); color: var(--heading); }
.qty-num {
  font-size: .88rem; font-weight: 600; color: var(--heading);
  min-width: 18px; text-align: center;
}
.cart-item-right {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 8px;
  flex-shrink: 0;
}
.cart-item-price {
  font-size: .92rem; font-weight: 700; color: var(--horizon);
}
.cart-remove {
  width: 24px; height: 24px; border-radius: 6px;
  background: transparent; border: none;
  color: var(--ink-mute); font-size: .7rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.cart-remove:hover { background: rgba(214,98,43,.15); color: var(--ember); }

/* Footer */
.cart-ft {
  padding: 20px 24px 28px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.cart-total-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .95rem; color: var(--ink-soft);
}
.cart-total-row strong {
  font-size: 1.05rem; color: var(--heading);
}
.cart-vat-hint .vat-note,
.cart-vat-hint {
  font-size: .75rem; color: var(--ink-mute);
}
.cart-ship-note {
  font-size: .75rem; color: var(--ink-mute);
  margin: 0; line-height: 1.5;
}

@media (max-width: 560px) {
  .cart-panel { width: 100vw; }
  .cart-hd, .cart-body, .cart-ft { padding-inline: 18px; }
}

/* ===== Chat UI ============================================================= */
.chat-shell {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}

.chat-panel {
  background: var(--surface-1);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 62vh;
  min-height: 480px;
  max-height: 780px;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-2);
  flex-shrink: 0;
}
.chat-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--altitude), var(--azure));
  display: grid; place-items: center;
}
.chat-avatar svg { width: 18px; height: 18px; color: var(--mist); }
.chat-header-info { flex: 1; min-width: 0; }
.chat-header-name { font-size: .9rem; font-weight: 600; color: var(--heading); }
.chat-header-status {
  display: flex; align-items: center; gap: 5px;
  font-size: .74rem; color: var(--ink-mute); margin-top: 2px;
}
.chat-status-dot {
  width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: #2e9e6b;
  animation: chatPulseDot 1.8s ease-in-out infinite;
}
@keyframes chatPulseDot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.chat-header-clear { font-size: .8rem; padding: 5px 14px; flex: none; }

.chat-sidebar { display: flex; flex-direction: column; gap: 16px; }
.chat-side-card {
  background: var(--surface-1);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 18px;
}
.chat-side-kicker {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--horizon); margin-bottom: 8px; font-weight: 600;
}
.chat-side-card p { font-size: .84rem; line-height: 1.7; color: var(--ink-soft); margin: 0; }
.chat-quick-topics { display: flex; flex-direction: column; gap: 2px; }
.chat-quick-topic-btn {
  display: block; width: 100%; text-align: start;
  padding: 9px 10px; border-radius: var(--radius-sm);
  border: none; background: transparent; color: var(--ink-soft);
  font-family: inherit; font-size: .85rem; cursor: pointer; transition: background .15s, color .15s;
}
.chat-quick-topic-btn:hover { background: var(--overlay-1); color: var(--heading); }
.chat-safety-card { display: flex; gap: 10px; align-items: flex-start; }
.chat-safety-card svg { width: 16px; height: 16px; color: var(--horizon); flex: none; margin-top: 2px; }
.chat-safety-card p { font-size: .78rem; color: var(--ink-mute); }

@media (max-width: 860px) {
  .chat-shell { grid-template-columns: 1fr; }
  .chat-sidebar { flex-direction: row; flex-wrap: wrap; }
  .chat-sidebar .chat-side-card { flex: 1; min-width: 220px; }
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--overlay-2); border-radius: 2px; }

.chat-bubble {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: .92rem;
  line-height: 1.6;
  word-break: break-word;
  white-space: pre-wrap;
}

.chat-bubble.user {
  background: var(--azure);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

[dir="rtl"] .chat-bubble.user {
  align-self: flex-start;
  border-bottom-right-radius: 18px;
  border-bottom-left-radius: 4px;
}

.chat-bubble.assistant {
  background: var(--surface-2);
  color: var(--ink);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid var(--line);
}

[dir="rtl"] .chat-bubble.assistant {
  align-self: flex-end;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 4px;
}

.chat-bubble.typing {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 14px 18px;
  min-height: 46px;
}

.chat-bubble.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-mute);
  animation: chatDot 1.2s ease-in-out infinite;
}
.chat-bubble.typing span:nth-child(2) { animation-delay: .2s; }
.chat-bubble.typing span:nth-child(3) { animation-delay: .4s; }
.chat-bubble a { color: var(--azure); text-decoration: underline; word-break: break-all; }
.chat-bubble a:hover { color: var(--horizon); }

.chat-feedback {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.chat-fb-btn {
  font-size: .8rem;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line-2);
  cursor: pointer;
  opacity: .55;
  transition: opacity .15s, background .15s;
}
.chat-fb-btn:hover:not(:disabled) { opacity: 1; background: var(--overlay-1); }
.chat-fb-btn:disabled { cursor: default; }
.chat-fb-btn.voted { opacity: 1; background: var(--overlay-2); }

@keyframes chatDot {
  0%, 80%, 100% { transform: scale(.75); opacity: .45; }
  40%            { transform: scale(1);   opacity: 1;   }
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 20px 14px;
}

.chat-suggestion-btn {
  font-size: .8rem;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--overlay-1);
  border: 1px solid var(--line-2);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .15s, color .15s;
  font-family: var(--font-fa), var(--font-body);
}
.chat-suggestion-btn:hover {
  background: var(--overlay-2);
  color: var(--heading);
}

.chat-input-bar {
  display: flex;
  gap: 9px;
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface-1);
}

.chat-input-bar textarea {
  flex: 1;
  background: var(--surface-3, var(--surface-2));
  border: 1px solid var(--line-2);
  border-radius: 12px;
  color: var(--ink);
  font-family: var(--font-fa), var(--font-body);
  font-size: .92rem;
  padding: 10px 14px;
  resize: none;
  outline: none;
  line-height: 1.55;
  max-height: 140px;
  overflow-y: auto;
}
.chat-input-bar textarea::placeholder { color: var(--ink-mute); }
.chat-input-bar textarea:focus { border-color: var(--azure); }

.chat-send-btn {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--azure);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  transition: background .15s, transform .1s;
}
.chat-send-btn:hover  { background: #2568b8; }
.chat-send-btn:active { transform: scale(.94); }
.chat-send-btn svg { width: 18px; height: 18px; }

.chat-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink-mute);
  font-size: .9rem;
  text-align: center;
  padding: 24px;
}
.chat-empty-state svg {
  width: 48px;
  height: 48px;
  opacity: .35;
  margin-bottom: 4px;
}

/* Widget iframe container */
.chat-widget-frame {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 380px;
  height: 560px;
  border: none;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,.55);
  z-index: 9998;
  overflow: hidden;
  transition: opacity .2s, transform .2s;
}
.chat-widget-frame.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(.97);
}

.chat-widget-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--horizon, #E8A33D);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(232,163,61,.45);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s, box-shadow .15s;
}
.chat-widget-bubble:hover {
  transform: scale(1.07);
  box-shadow: 0 6px 28px rgba(232,163,61,.6);
}
.chat-widget-bubble svg { width: 26px; height: 26px; color: #fff; }

@media (max-width: 600px) {
  .chat-panel { height: 55vh; min-height: 380px; }
  .chat-widget-frame {
    width: 100vw;
    height: 100vh;
    bottom: 0;
    right: 0;
    border-radius: 0;
  }
  .chat-widget-bubble { bottom: 16px; right: 16px; }
}

/* ===== Dedicated Product Page ============================================= */
.pp-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--azure); font-size: .88rem; text-decoration: none;
  margin-bottom: 28px; transition: color .15s;
}
.pp-back:hover { color: var(--horizon); }

.pp-hero {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 52px; align-items: start; margin-bottom: 56px;
}
@media (max-width: 780px) { .pp-hero { grid-template-columns: 1fr; gap: 28px; } }

.pp-gallery-col {
  display: flex; flex-direction: column; gap: 16px;
}
.pp-gallery-col .suit-chart { margin-top: 0; }
.pp-gallery {
  position: relative; border-radius: 16px; overflow: hidden;
  background: var(--surface-2); aspect-ratio: 4/3;
}
.pp-gallery img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 30%; display: block;
}
.pp-gallery .gal-prev, .pp-gallery .gal-next { opacity: .3; }
.pp-gallery:hover .gal-prev, .pp-gallery:hover .gal-next { opacity: 1; }
.pp-gallery-empty {
  display: flex; align-items: center; justify-content: center;
}
.pp-gallery-empty svg { width: 120px; opacity: .45; }

.pp-name {
  font-family: var(--font-serif); font-size: 2.1rem; font-weight: 600;
  color: var(--heading); margin: 10px 0 16px; line-height: 1.2;
}
.pp-desc {
  color: var(--ink-soft); line-height: 1.75; font-size: .97rem;
  margin-bottom: 24px;
}
.pp-details {
  border-top: 1px solid var(--line); padding-top: 48px;
  display: flex; flex-direction: column; gap: 32px;
}
@media (max-width: 600px) {
  .pp-gallery .gal-prev, .pp-gallery .gal-next { opacity: 1; }
}

/* ===== Suitability Chart ================================================= */
.suit-chart {
  margin-top: 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
}
.suit-group-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--eyebrow);
  margin-bottom: 12px;
}
.suit-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}
.suit-label {
  font-size: 12px;
  color: var(--ink-soft);
  width: 100px;
  flex-shrink: 0;
  text-align: right;
}
html[dir="rtl"] .suit-label { text-align: left; }
.suit-track {
  flex: 1;
  height: 6px;
  background: var(--surface-3);
  border-radius: 99px;
  overflow: hidden;
}
.suit-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--overlay-2);
}
.suit-fill--accent { background: var(--azure); }
.suit-fill--comp   { background: linear-gradient(90deg, #8AAF18, #B0D020); }
.suit-pct {
  font-size: 11px;
  color: var(--ink-mute);
  width: 28px;
  text-align: right;
}
html[dir="rtl"] .suit-pct { text-align: left; }
.suit-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 14px 0;
}

/* ===== Product Page — Extended Sections ================================== */
.pp-section {
  border-top: 1px solid var(--line);
  padding-top: 40px;
  margin-top: 8px;
}
.pp-section-title {
  font-family: var(--font-serif);
  font-size: 1.35rem; font-weight: 600;
  color: var(--heading); margin-bottom: 20px;
}
.pp-info-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
  color: var(--ink-soft);
  line-height: 1.8; font-size: .95rem;
}
.pp-delivery-list {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px 24px;
}
.pp-delivery-list li {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); font-size: .95rem;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.pp-delivery-list li::before {
  content: "✓";
  color: var(--horizon);
  font-weight: 700; flex-shrink: 0;
}
.pp-delivery-item-link {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit; width: 100%;
}
.pp-delivery-item-link:hover { color: var(--azure); }
.pp-delivery-item-link:hover .pp-delivery-thumb { opacity: 1; }
.pp-delivery-thumb {
  width: 44px; height: 34px;
  object-fit: contain; border-radius: 4px;
  background: var(--surface-1);
  opacity: .75; transition: opacity .2s; flex-shrink: 0;
}
.pp-bag-notice {
  margin-top: 20px;
  padding: 20px;
  background: var(--surface-2);
  border: 1px solid var(--horizon);
  border-radius: 12px;
  display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start;
}
.pp-bag-notice__text { flex: 1; min-width: 200px; }
.pp-bag-notice__title {
  margin: 0 0 6px; font-weight: 700; font-size: .95rem;
  color: var(--horizon); display: flex; align-items: center; gap: 6px;
}
.pp-bag-notice__title::before { content: ℹ; font-style: normal; }
.pp-bag-notice__body { margin: 0; color: var(--ink-soft); font-size: .875rem; line-height: 1.5; }
.pp-bag-notice__product {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface-3); border-radius: 10px; padding: 12px 16px;
  flex-wrap: wrap; text-decoration: none; cursor: pointer;
  transition: background .15s;
}
.pp-bag-notice__product:hover { background: var(--overlay-1); }
.pp-bag-notice__img { width: 56px; height: 44px; object-fit: contain; border-radius: 6px; opacity: .85; }
.pp-bag-notice__meta { display: flex; flex-direction: column; gap: 2px; }
.pp-bag-notice__name { font-size: .875rem; font-weight: 600; color: var(--heading); }
.pp-bag-notice__price { font-size: .8rem; color: var(--ink-mute); }
.pp-delivery-ctas {
  display: flex; flex-wrap: wrap; gap: 12px;
  padding: 32px 0 0;
}
.pp-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}
.pp-mini-card {
  display: flex; flex-direction: column;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
  text-decoration: none;
  transition: border-color .2s, transform .15s;
}
.pp-mini-card:hover { border-color: var(--azure); transform: translateY(-2px); }
.pp-mini-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.pp-mini-thumb {
  aspect-ratio: 4/3; background: var(--surface-3);
  display: flex; align-items: center; justify-content: center;
}
.pp-mini-thumb svg { width: 56px; opacity: .35; }
.pp-mini-info {
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.pp-mini-info strong { font-size: .88rem; color: var(--heading); line-height: 1.3; }
.pp-mini-info .price { font-size: .82rem; color: var(--horizon); }
.pp-mini-badge { font-size: .65rem; padding: 2px 7px; position: static; }

/* Warning variant for multi-class wings (safety-critical) */
.pp-info-card--warn {
  border-color: var(--horizon);
  background: rgba(232,163,61,.07);
}
.pp-info-card--warn strong { color: var(--horizon); }
