/* BlueGreen website — styles
   Identity v1.1: Océan #0B3C6E · Terre #6B4A1E · Vert champ #3E9B2F · Pousse #9BCB4A · Sable #F3EDE1 · Encre #14212B
   Layout uses logical properties (inline-start/end) so Arabic (RTL) mirrors automatically. */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face { font-family: "Sora"; font-weight: 400; font-display: swap; src: url(../fonts/Sora-latin-400.ttf) format("truetype"); }
@font-face { font-family: "Sora"; font-weight: 600; font-display: swap; src: url(../fonts/Sora-latin-600.ttf) format("truetype"); }
@font-face { font-family: "Sora"; font-weight: 700; font-display: swap; src: url(../fonts/Sora-latin-700.ttf) format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(../fonts/Inter-latin-400.ttf) format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(../fonts/Inter-latin-500.ttf) format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(../fonts/Inter-latin-600.ttf) format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(../fonts/Inter-latin-ext-400.ttf) format("truetype"); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "Cairo"; font-weight: 400; font-display: swap; src: url(../fonts/Cairo-arabic-400.ttf) format("truetype"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Cairo"; font-weight: 700; font-display: swap; src: url(../fonts/Cairo-arabic-700.ttf) format("truetype"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  --ocean: #0B3C6E; --ocean-2: #0E4A86; --terre: #6B4A1E; --vert: #3E9B2F; --vert-btn: #2E7A22;
  --pousse: #9BCB4A; --sable: #F3EDE1; --encre: #14212B; --muted: #55606A; --text-2: #3A4650;
  --line: #E4DCCB; --line-2: #DDE3EA; --mist: #EEF2F6; --light-on-dark: #C9D6E4;
  --f-title: "Sora", system-ui, sans-serif; --f-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px; --wrap: 1240px;
}
html[lang="ar"] { --f-title: "Cairo", system-ui, sans-serif; --f-text: "Cairo", "Inter", system-ui, sans-serif; }
html[lang="zh-Hans"] { --f-title: "Sora", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; --f-text: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
html[lang="ja"] { --f-title: "Sora", "Hiragino Sans", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif; --f-text: "Inter", "Hiragino Sans", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif; }
html[lang="ko"] { --f-title: "Sora", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; --f-text: "Inter", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-text); font-size: 16px; line-height: 1.6; color: var(--encre); background: #FFFFFF; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ocean); }
h1, h2, h3 { font-family: var(--f-title); line-height: 1.15; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--pousse); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: #FFF; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: 8px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; background: none; white-space: nowrap; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.btn-lime { background: var(--pousse); color: var(--encre); }
.btn-lime:hover { background: #B2DB6B; }
.btn-ocean { background: var(--ocean); color: #FFF; }
.btn-ocean:hover { background: var(--ocean-2); }
.btn-outline { border-color: var(--ocean); color: var(--ocean); background: #FFF; }
.btn-outline:hover { background: var(--mist); }
.btn-outline-light { border-color: #FFF; color: #FFF; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.center { justify-content: center; }

/* ---------- Header ---------- */
.site-header { background: var(--ocean); color: #FFF; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand img { height: 40px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: #FFF; text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current] { border-bottom-color: var(--pousse); }
.lang-list { display: flex; gap: 2px; }
.lang-list a { display: flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; padding: 0 6px; border-radius: 6px;
  color: #FFF; text-decoration: none; font-weight: 600; font-size: 13px; }
.lang-list a:hover { background: rgba(255,255,255,.12); }
.lang-list a[aria-current] { background: #FFF; color: var(--ocean); }
.lang-full { display: none; }
.menu-toggle { display: none; background: none; border: 0; color: #FFF; width: 48px; height: 48px; align-items: center; justify-content: center; cursor: pointer; border-radius: 8px; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: inline; }

/* ---------- Hero (design B) ---------- */
.hero { overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center; padding-block: 56px 72px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--pousse); margin-bottom: 20px; }
html[lang="ar"] .kicker, html[lang="zh-Hans"] .kicker, html[lang="ja"] .kicker, html[lang="ko"] .kicker { letter-spacing: 0; }
.hero h1 { font-size: clamp(36px, 5.4vw, 68px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 24px; }
html[lang="ar"] .hero h1 { letter-spacing: 0; line-height: 1.35; }
.hero .lead { font-size: 18px; color: var(--light-on-dark); max-width: 540px; margin-bottom: 32px; }
.hero-img img { width: 100%; max-width: 620px; margin-inline: auto; filter: drop-shadow(0 24px 40px rgba(0,0,0,.35)); }
html[dir="rtl"] .hero-img img { transform: scaleX(-1); }

/* ---------- Facts strip ---------- */
.facts { background: var(--sable); }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-block: 48px; }
.fact { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; border-top: 3px solid; color: var(--text-2); }
.fact-n { font-family: var(--f-title); font-size: 36px; font-weight: 700; line-height: 1.1; }
.f-ocean { border-color: var(--ocean); } .f-ocean .fact-n { color: var(--ocean); }
.f-terre { border-color: var(--terre); } .f-terre .fact-n { color: var(--terre); }
.f-green { border-color: var(--vert); } .f-green .fact-n { color: var(--vert-btn); }
.f-ink { border-color: var(--encre); } .f-ink .fact-n { color: var(--encre); }

/* ---------- Sections ---------- */
section h2 { font-size: clamp(30px, 3.6vw, 44px); color: var(--ocean); letter-spacing: -0.01em; }
html[lang="ar"] section h2 { letter-spacing: 0; }
.products { background: var(--sable); padding-block: 24px 88px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.section-head p { color: var(--text-2); margin-top: 8px; max-width: 640px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1px solid #D6CCB6;
  background: #FFF; color: var(--encre); text-decoration: none; font-weight: 500; font-size: 14px; }
.chip-btn span { color: var(--muted); }
.chip-btn:hover { border-color: var(--ocean); }
.chip-btn.is-active { background: var(--ocean); border-color: var(--ocean); color: #FFF; }
.chip-btn.is-active span { color: var(--light-on-dark); }

/* ---------- Species card (design A) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-bottom: 36px; }
.card a { height: 100%; display: flex; flex-direction: column; gap: 14px; padding: 18px; background: #FFF; border: 1px solid var(--line);
  border-radius: 20px; text-decoration: none; color: var(--encre); transition: transform .15s, box-shadow .15s, border-color .15s; }
.card a:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(11,60,110,.12); border-color: #CFC3A8; }
.card-top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 500; color: var(--muted); }
.card-img { background: var(--sable); border-radius: 14px; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; padding: 14px; }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.card-names { display: flex; flex-direction: column; gap: 2px; }
.sp-name { font-family: var(--f-title); font-weight: 600; font-size: 19px; color: var(--ocean); line-height: 1.25; }
html[lang="ar"] .sp-name { font-weight: 700; font-size: 20px; line-height: 1.4; }
.sp-en { font-size: 13px; color: var(--muted); font-family: "Inter", system-ui, sans-serif; }
.sp-sci { font-size: 13px; font-style: italic; color: var(--terre); font-family: "Inter", system-ui, sans-serif; }
html[dir="rtl"] .sp-en, html[dir="rtl"] .sp-sci { text-align: right; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.chips li { font-size: 12px; padding: 3px 10px; border-radius: 12px; background: #EEF4EA; color: #2E5A24; }
.chips.lg li { font-size: 14px; padding: 6px 12px; border-radius: 8px; background: var(--mist); color: var(--ocean); font-weight: 500; }

/* ---------- How we work ---------- */
.how { padding-block: 88px; }
.how h2 { margin-bottom: 36px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.step { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 12px; background: var(--sable); }
.step-n { font-family: "Sora", sans-serif; font-size: 14px; font-weight: 700; color: var(--terre); }
.step-t { font-family: var(--f-title); font-size: 20px; font-weight: 600; color: var(--ocean); }
.step-d { color: var(--text-2); line-height: 1.55; }

/* ---------- About ---------- */
.about { background: #FFF; padding-block: 24px 88px; }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 24px; }
.about-intro { display: flex; flex-direction: column; gap: 16px; }
.about-intro p { color: var(--text-2); }
.about-box { padding: 28px; border-radius: 18px; display: flex; flex-direction: column; gap: 12px; }
.about-box.sea { background: #EAF0F6; } .about-box.land { background: #EEF4EA; }
.about-h { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
html[lang="ar"] .about-h, html[lang="zh-Hans"] .about-h, html[lang="ja"] .about-h, html[lang="ko"] .about-h { letter-spacing: 0; font-size: 15px; }
.sea .about-h { color: var(--ocean); } .land .about-h { color: var(--vert-btn); }

/* ---------- Contact (design B) ---------- */
.contact { background: var(--encre); color: #FFF; padding-block: 88px; scroll-margin-top: 0; }
.contact h2 { color: #FFF; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; }
.contact-info { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.contact-info .lead { color: var(--light-on-dark); }
.contact dl { display: grid; grid-template-columns: max-content 1fr; gap: 12px 20px; margin: 0; }
.contact dt { color: var(--pousse); font-weight: 600; }
.contact dd { margin: 0; }
.contact dd a { color: #FFF; }
.quote-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-content: start; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--light-on-dark); }
.req { font-weight: 400; opacity: .8; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 8px; border: 1px solid #3A4A58; background: #1C2C39; color: #FFF; font-size: 16px; }
.field textarea { padding-block: 12px; resize: vertical; }
.field select { padding-inline-end: 8px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--pousse); outline: none; box-shadow: 0 0 0 3px rgba(155,203,74,.35); }
.field.invalid input { border-color: #FF8A80; }
.form-status { min-height: 1em; font-weight: 500; }
.form-status.ok { color: var(--pousse); } .form-status.err { color: #FFB4AB; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ocean); color: var(--light-on-dark); font-size: 14px; }
.bands { display: flex; height: 6px; } .bands span { flex: 1; }
.b-green { background: var(--vert); } .b-terre { background: var(--terre); } .b-pousse { background: var(--pousse); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-block: 48px 28px; }
.footer-brand img { height: 36px; width: auto; margin-bottom: 12px; }
.footer-h { color: #FFF; font-weight: 600; margin-bottom: 10px; }
.site-footer a { color: #FFF; }
.footer-langs { display: grid; grid-template-columns: repeat(2, max-content); gap: 6px 24px; }
.footer-langs a { text-decoration: none; }
.footer-langs a[aria-current] { color: var(--pousse); }
.footer-bottom { padding-block: 20px 28px; border-top: 1px solid rgba(255,255,255,.12); }

/* ---------- Catalogue page (design C layout) ---------- */
.page-band { background: var(--ocean); border-top: 1px solid rgba(255,255,255,.1); }
.band-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; padding-block: 32px 40px; }
.page-band h1 { font-size: clamp(32px, 4vw, 48px); }
.page-band p { color: var(--light-on-dark); margin-top: 6px; }
.search { display: flex; flex-direction: column; gap: 6px; flex: 0 1 440px; min-width: 260px; }
.search label { font-size: 13px; color: var(--light-on-dark); font-weight: 500; }
.search input { min-height: 50px; padding: 0 16px; border: 0; border-radius: 10px; font-size: 16px; color: var(--encre); background: #FFF; }
.cat-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; align-items: start; padding-block: 32px 80px; }
.filters { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; background: var(--sable); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 22px; }
.filters-head { display: none; }
.filters fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.filters legend { font-weight: 700; color: var(--ocean); margin-bottom: 8px; font-size: 15px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ocean); flex: none; margin: 0; }
.check .cnt { margin-inline-start: auto; color: var(--muted); font-size: 12px; }
.filters-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.filters-apply { display: none; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; min-height: 44px; }
.count { color: var(--muted); }
.filters-open { display: none; }
.active-n { background: var(--ocean); color: #FFF; border-radius: 10px; padding: 0 7px; font-size: 12px; line-height: 20px; }
.results .card-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.no-results { padding: 48px 0; text-align: center; color: var(--muted); }
.filter-backdrop { display: none; }

/* ---------- Species page ---------- */
.page-species main { background: #FFF; }
.crumbs { padding-block: 24px 8px; }
.crumbs a { text-decoration: none; font-weight: 500; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
html[dir="rtl"] .crumbs .arrow { transform: scaleX(-1); display: inline-block; }
.sp-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding-block: 16px 48px; }
.sp-photo { background: var(--sable); border-radius: 24px; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; padding: 32px; }
.sp-photo img { width: 100%; height: 100%; object-fit: contain; }
.sp-info { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.sp-meta { display: flex; gap: 16px; font-size: 13px; color: var(--muted); font-weight: 500; }
.sp-names { display: flex; flex-direction: column; gap: 6px; }
.sp-names .sp-name { font-size: clamp(32px, 4vw, 48px); font-weight: 700; }
.sp-names .sp-en { font-size: 18px; }
.sp-names .sp-sci { font-size: 18px; }
.facts-list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; width: 100%; }
.facts-list div { border-top: 1px solid var(--line-2); padding-top: 10px; }
.facts-list dt { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
html[lang="ar"] .facts-list dt { letter-spacing: 0; text-transform: none; font-size: 13px; }
.facts-list dd { margin: 2px 0 0; font-weight: 500; }
html[dir="rtl"] .facts-list dd[dir="ltr"] { text-align: right; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; padding-block: 8px 24px; }
.spec-block { border: 1px solid var(--line-2); border-radius: 14px; padding: 22px; }
.spec-block h2 { font-size: 16px; font-family: var(--f-text); font-weight: 700; color: var(--ocean); margin-bottom: 14px; letter-spacing: 0; }
.hs, .names-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.hs th, .hs td, .names-table th, .names-table td { text-align: start; padding: 8px 0; border-bottom: 1px solid #EDF0F3; font-weight: 400; vertical-align: top; }
.hs th, .names-table th { color: var(--muted); padding-inline-end: 16px; width: 45%; }
.hs td { font-family: "Inter", monospace; font-weight: 600; }
html[dir="rtl"] td[dir="ltr"] { text-align: right; }
.note { color: var(--muted); font-size: 13px; padding-bottom: 64px; }

/* ---------- Root language chooser ---------- */
.root-choose { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; padding: 24px; background: var(--sable); }
.root-choose ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; width: min(100%, 720px); }
.root-choose a { display: flex; flex-direction: column; padding: 14px 18px; background: #FFF; border-radius: 12px; text-decoration: none; font-weight: 600; border: 1px solid var(--line); }
.root-choose small { color: var(--muted); font-weight: 400; }

/* =========================================================
   Tablet
   ========================================================= */
@media (max-width: 1100px) {
  .nav-links { gap: 18px; }
  .main-nav { gap: 18px; }
  .lang-short { font-size: 12px; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-intro { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =========================================================
   Mobile navigation (menu button) — up to 960 px
   ========================================================= */
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .header-row { min-height: 64px; }
  .brand img { height: 34px; }
  .main-nav { display: none; position: absolute; inset-inline: 0; top: 64px; z-index: 50; background: var(--ocean); flex-direction: column; align-items: stretch;
    gap: 20px; padding: 8px 24px 28px; border-top: 1px solid rgba(255,255,255,.12); box-shadow: 0 20px 30px rgba(0,0,0,.25); }
  .site-header { position: relative; }
  .main-nav.open { display: flex; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { display: flex; align-items: center; min-height: 52px; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .lang-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .lang-list a { justify-content: flex-start; min-height: 44px; padding: 0 12px; background: rgba(255,255,255,.06); font-size: 15px; font-weight: 500; }
  .lang-short { display: none; } .lang-full { display: inline; }
  .nav-cta { min-height: 52px; }

  .hero-grid { grid-template-columns: 1fr; padding-block: 32px 40px; gap: 8px; }
  .hero-img { order: -1; }
  .hero-img img { max-width: 420px; }
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: 32px; gap: 20px; }
  .fact-n { font-size: 30px; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  /* Catalogue: filters become a slide-in panel */
  .cat-layout { grid-template-columns: 1fr; padding-top: 20px; }
  .filters-open { display: inline-flex; }
  .filters { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(88vw, 360px); max-height: none; border-radius: 0; z-index: 80;
    transform: translateX(105%); transition: transform .25s ease; box-shadow: -10px 0 30px rgba(0,0,0,.2); padding-bottom: 0; }
  html[dir="rtl"] .filters { transform: translateX(-105%); }
  .filters.open, html[dir="rtl"] .filters.open { transform: none; }
  .filters-head { display: flex; justify-content: space-between; align-items: center; }
  .filters-title { font-family: var(--f-title); font-weight: 700; font-size: 20px; color: var(--ocean); }
  .filters-close { background: none; border: 0; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--encre); }
  .filters-actions { position: sticky; bottom: 0; background: var(--sable); padding-block: 14px 20px; margin-top: auto; border-top: 1px solid var(--line); }
  .filters-actions .btn { flex: 1; }
  .filters-apply { display: inline-flex; }
  .filter-backdrop { display: block; position: fixed; inset: 0; background: rgba(20,33,43,.45); z-index: 70; }

  .sp-detail { grid-template-columns: 1fr; gap: 24px; }
}

/* =========================================================
   Phone — up to 600 px
   ========================================================= */
@media (max-width: 600px) {
  .wrap { padding-inline: 16px; }
  .hero h1 { font-size: 34px; }
  .hero .lead { font-size: 16px; }
  .btn-row .btn { flex: 1 1 100%; }
  .btn-lg { min-height: 50px; }
  .products, .how, .about, .contact { padding-block: 56px; }
  .products { padding-top: 8px; }
  .cat-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .cat-chips::-webkit-scrollbar { display: none; }
  .chip-btn { white-space: nowrap; }
  .card-grid, .results .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card a { padding: 10px; gap: 8px; border-radius: 14px; }
  .card-img { border-radius: 10px; padding: 8px; }
  .card-top { font-size: 11px; }
  .sp-name { font-size: 15px; }
  html[lang="ar"] .sp-name { font-size: 16px; }
  .sp-en, .sp-sci { font-size: 12px; }
  .card .chips { display: none; }
  .steps { grid-template-columns: 1fr; }
  .step { padding: 20px; }
  .about-grid { grid-template-columns: 1fr; }
  .quote-form { grid-template-columns: 1fr; }
  .contact dl { grid-template-columns: 1fr; gap: 2px; }
  .contact dd { margin-bottom: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .band-row { padding-block: 24px; }
  .search { flex-basis: 100%; min-width: 0; }
  .facts-list { grid-template-columns: 1fr 1fr; }
  .sp-photo { padding: 16px; border-radius: 16px; }
  .spec-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
