/*
Theme Name: Parrotaro
Theme URI: https://parrotaro.ir/
Author: Parrotaro
Description: قالب اختصاصی کاتالوگ طوطی Parrotaro — نسخه‌ی ۲ (طراحی جدید، بدون کتابخانه).
Version: 2.1.2
Requires PHP: 7.4
Text Domain: parrotaro
*/

@font-face { font-family: "IRANSansX"; src: url("assets/fonts/IRANSansXVFaNum.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }


:root {
  --brand: #0a7fb0;
  --brand-ink: #075a7d;
  --brand-soft: #e4f4fb;
  --brand-tint: #f2fafd;
  --accent: #f5841f;
  --accent-ink: #a94f00;
  --accent-soft: #fff1e4;
  --leaf: #1d7f55;
  --leaf-soft: #e6f4ec;
  --danger: #b3261e;
  --ink: #1f1b1f;
  --ink-2: #3c3a3e;
  --muted: #66636a;
  --line: #ebe6dd;
  --line-2: #ddd6ca;
  --bg: #faf8f4;
  --surface: #ffffff;
  --surface-2: #f4f1ea;

  --font: "IRANSansX", Tahoma, sans-serif;
  --fs-xs: .75rem; --fs-sm: .875rem; --fs-md: 1rem; --fs-lg: 1.125rem;
  --fs-xl: 1.375rem; --fs-2xl: 1.75rem; --fs-3xl: 2.25rem; --fs-4xl: 2.875rem;

  --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --r-xl: 30px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(31, 27, 31, .06), 0 1px 1px rgba(31, 27, 31, .04);
  --shadow-md: 0 8px 24px -8px rgba(31, 27, 31, .14), 0 2px 6px rgba(31, 27, 31, .05);
  --shadow-lg: 0 24px 48px -16px rgba(31, 27, 31, .22);
  --container: 1240px;
  --gutter: 16px;
  --header-h: 132px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: var(--fs-md); line-height: 1.85;
  color: var(--ink); background: var(--bg); direction: rtl; text-align: right;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.45; font-weight: 700; color: var(--ink); }
h1 { font-size: var(--fs-3xl); } h2 { font-size: var(--fs-2xl); } h3 { font-size: var(--fs-lg); }
p { margin: 0 0 1em; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; top: -60px; right: 16px; z-index: 200; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; }

.shop-layout > *, .product-top > *, .finder > *, .article > *, .contact-layout > *, .split > *, .finder-promo > * { min-width: 0; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 56px; }
.section-sm { padding-block: 32px; }
.stack > * + * { margin-top: 16px; }
.grid { display: grid; gap: 20px; }
.muted { color: var(--muted); }
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: currentColor; stroke: none; }

/* ---------- Buttons, chips, inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: var(--r-pill); border: 1.5px solid transparent;
  font-weight: 700; font-size: var(--fs-sm); white-space: nowrap;
  transition: background .2s var(--ease), color .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); }
.btn-accent { background: var(--accent); color: #2a1300; }
.btn-accent:hover { background: #e7740d; }
.btn-outline { border-color: var(--line-2); background: var(--surface); color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn-ghost { background: transparent; color: var(--brand-ink); padding-inline: 8px; }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-telegram { background: #229ed9; color: #fff; }
.btn-telegram:hover { background: #1a86ba; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: var(--fs-xs); }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: var(--fs-md); }
.btn-block { width: 100%; }
.btn-icon { width: 44px; min-height: 44px; padding: 0; border-radius: 50%; }
.btn[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--ink-2); font-size: var(--fs-xs); font-weight: 500; line-height: 1.8;
}
.chip-brand { background: var(--brand-soft); color: var(--brand-ink); }
.chip-accent { background: var(--accent-soft); color: var(--accent-ink); }
.chip-leaf { background: var(--leaf-soft); color: var(--leaf); }
.chip-outline { background: transparent; border: 1px solid var(--line-2); }
button.chip { border: 0; }
.chip .x { width: 14px; height: 14px; }

.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: var(--fs-sm); }
.field .hint { font-size: var(--fs-xs); color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 10px 16px; border-radius: var(--r-md); border: 1.5px solid var(--line-2);
  background: var(--surface); transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 130px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 5px; accent-color: var(--brand); flex: none; }

/* ---------- Header ---------- */
.topbar { background: var(--ink); color: #e9e6ea; font-size: var(--fs-xs); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; opacity: .9; }
.topbar a:hover { opacity: 1; color: #fff; }
.topbar-links { display: flex; gap: 20px; }

.site-header { position: sticky; top: 0; z-index: 90; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: var(--shadow-md); }
.header-main { display: flex; align-items: center; gap: 24px; min-height: 76px; transition: min-height .25s var(--ease); }
.is-scrolled .header-main { min-height: 64px; }
.logo { flex: none; display: flex; align-items: center; }
.logo img { width: 150px; height: auto; transition: width .25s var(--ease); }
.is-scrolled .logo img { width: 128px; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.header-call { display: flex; align-items: center; gap: 10px; font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; }
.header-call strong { display: block; color: var(--ink); font-size: var(--fs-sm); }
.header-call .icon-wrap { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; }
.counter-btn { position: relative; }
.counter-btn .badge {
  position: absolute; top: -2px; left: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--accent); color: #2a1300; font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1;
}
.counter-btn .badge:empty, .counter-btn .badge[data-count="0"] { display: none; }

/* Search with live suggestions */
.search { position: relative; flex: 1; max-width: 560px; }
.search-box { display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 6px 0 18px; border-radius: var(--r-pill); background: var(--surface-2); border: 1.5px solid transparent; transition: border-color .2s, background .2s, box-shadow .2s; }
.search-box:focus-within { background: var(--surface); border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.search-box .icon { color: var(--muted); }
.search-box input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; height: 100%; padding-inline-start: 12px; }
.search-box .btn { min-height: 38px; }
.search-close { display: none; min-height: 38px; width: 38px; }
.mobile-open .search-close { display: grid; }
.search-panel {
  position: absolute; inset-inline: 0; top: calc(100% + 8px); z-index: 95; background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 10px; max-height: min(70vh, 560px); overflow: auto; display: none;
}
.search.is-open .search-panel { display: block; }
.search-group-title { font-size: var(--fs-xs); color: var(--muted); padding: 8px 10px 4px; font-weight: 500; }
.search-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--r-md); }
.search-item:hover, .search-item.is-active { background: var(--brand-tint); }
.search-item img { width: 64px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
.search-item .meta { font-size: var(--fs-xs); color: var(--muted); }
.search-item mark { background: var(--accent-soft); color: inherit; border-radius: 3px; }
.search-empty { padding: 16px; text-align: center; color: var(--muted); font-size: var(--fs-sm); }
.search-hint { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 10px 10px; }
.search-footer { border-top: 1px solid var(--line); margin-top: 6px; padding: 10px 10px 4px; font-size: var(--fs-sm); }

/* Navigation + mega menu */
.nav { border-top: 1px solid var(--line); }
.nav .container { display: flex; align-items: center; gap: 4px; min-height: 48px; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); transition: background .2s, color .2s; border: 0; background: none; }
.nav-link:hover, .nav-link[aria-current="page"], .nav-item.is-open > .nav-link { background: var(--brand-soft); color: var(--brand-ink); }
.nav-link .chev { width: 14px; height: 14px; transition: transform .2s; }
.nav-item { position: relative; }
.nav-item.is-open .chev { transform: rotate(180deg); }
.nav-spacer { margin-inline-start: auto; }
.mega {
  position: absolute; top: calc(100% + 6px); right: 0; width: min(860px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 20px; display: none; z-index: 96;
}
.nav-item.is-open .mega { display: grid; grid-template-columns: 1fr 260px; gap: 20px; }
.mega-families { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 12px; align-content: start; }
.mega-families a { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-radius: var(--r-sm); font-size: var(--fs-sm); }
.mega-families a:hover { background: var(--brand-tint); color: var(--brand-ink); }
.mega-families small { color: var(--muted); font-size: var(--fs-xs); }
.mega-promo { border-radius: var(--r-md); overflow: hidden; background: var(--brand-tint); display: flex; flex-direction: column; }
.mega-promo img { aspect-ratio: 16/9; object-fit: cover; }
.mega-promo div { padding: 14px; font-size: var(--fs-sm); }
.mega-title { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.mega-title strong { font-size: var(--fs-md); }

.menu-toggle { display: none; }

/* Mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(20, 18, 20, .45); z-index: 120; opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer { position: fixed; top: 0; bottom: 0; right: 0; width: min(360px, 88vw); background: var(--surface); z-index: 121; transform: translateX(100%); transition: transform .3s var(--ease); display: flex; flex-direction: column; }
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer-body { overflow: auto; padding: 12px 16px 24px; flex: 1; }
.drawer-body a, .drawer-body summary { display: flex; justify-content: space-between; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); font-weight: 500; cursor: pointer; }
.drawer-body details a { font-weight: 400; padding-inline-start: 16px; font-size: var(--fs-sm); }
.drawer-body summary { list-style: none; }
.drawer-body summary::-webkit-details-marker { display: none; }
.drawer-contact { display: grid; gap: 10px; margin-top: 20px; }

/* Bottom bar (mobile) */
.bottom-bar { display: none; }

/* Floating contact */
.fab { position: fixed; left: 20px; bottom: 20px; z-index: 80; display: flex; flex-direction: column-reverse; align-items: center; gap: 10px; }
.fab-main { width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--accent); color: #2a1300; box-shadow: var(--shadow-lg); display: grid; place-items: center; transition: transform .2s; }
.fab-main .icon { width: 26px; height: 26px; }
.fab.is-open .fab-main { transform: rotate(45deg); }
.fab-item { display: none; align-items: center; gap: 8px; background: var(--surface); padding: 8px 14px 8px 8px; border-radius: var(--r-pill); box-shadow: var(--shadow-md); font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; }
.fab-item span.ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.fab.is-open .fab-item { display: flex; animation: pop .2s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Breadcrumb + page head ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--muted); padding-block: 18px 0; }
.breadcrumb a:hover { color: var(--brand-ink); }
.breadcrumb .sep { opacity: .5; }
.page-head { padding-block: 20px 28px; }
.page-head .lead { font-size: var(--fs-lg); color: var(--muted); max-width: 720px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-ink); font-weight: 700; font-size: var(--fs-sm); margin-bottom: 8px; }
.eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--accent); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding-top: 24px; }
.hero-slider { position: relative; display: grid; border-radius: var(--r-xl); overflow: hidden; background: #f3ede3; min-height: 460px; }
.hero-slide { position: relative; grid-area: 1 / 1; display: grid; grid-template-columns: 1fr 1.1fr; align-items: stretch; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; background: #f3ede3; --fade: #f3ede3; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-copy { padding: 48px 56px 76px; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 1; }
.hero-copy h1, .hero-copy h2 { font-size: var(--fs-4xl); line-height: 1.4; margin-bottom: 14px; }
.hero-copy h1 em, .hero-copy h2 em { font-style: normal; color: var(--brand-ink); }
.hero-copy p { color: var(--ink-2); font-size: var(--fs-lg); max-width: 500px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.hero-media { position: relative; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, var(--fade) 0%, transparent 22%); pointer-events: none; }
.hero-slide.theme-brand { background: #eaf3f6; --fade: #eaf3f6; }
.hero-slide.theme-accent { background: #f7ebdd; --fade: #f7ebdd; }
.hero-dots { position: absolute; bottom: 22px; right: 56px; display: flex; gap: 8px; z-index: 2; }
.hero-dots button { width: 10px; height: 10px; border-radius: 6px; border: 0; background: rgba(31, 27, 31, .2); transition: width .3s, background .3s; padding: 0; }
.hero-dots button.is-active { width: 28px; background: var(--accent); }
.hero-arrows { position: absolute; bottom: 14px; left: 20px; display: flex; gap: 8px; z-index: 2; }
.hero-arrows button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .85); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.hero-arrows button:hover { background: #fff; }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); }
.trust-item .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand-ink); }
.trust-item:nth-child(2) .ic { background: var(--accent-soft); color: var(--accent-ink); }
.trust-item:nth-child(3) .ic { background: var(--leaf-soft); color: var(--leaf); }
.trust-item strong { display: block; font-size: var(--fs-sm); }
.trust-item span { font-size: var(--fs-xs); color: var(--muted); line-height: 1.7; display: block; }

/* ---------- Family tiles ---------- */
.family-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.family-tile { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s; }
.family-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.family-tile img { aspect-ratio: 16/9; object-fit: cover; background: var(--surface-2); }
.family-tile .body { padding: 10px 12px 12px; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.family-tile strong { font-size: var(--fs-sm); line-height: 1.5; }
.family-tile small { color: var(--muted); font-size: var(--fs-xs); white-space: nowrap; }
.family-grid.is-large { grid-template-columns: repeat(4, 1fr); }
.family-grid.is-large .family-tile .body { padding: 14px 16px; }
.family-grid.is-large strong { font-size: var(--fs-md); }

/* ---------- Bird card ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.bird-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; transition: box-shadow .25s, transform .25s var(--ease), border-color .25s; }
.bird-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: transparent; }
.bird-card .media { position: relative; display: block; background: var(--surface-2); }
.bird-card .media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .5s var(--ease); }
.bird-card:hover .media img { transform: scale(1.04); }
.bird-card .media .tag { position: absolute; top: 10px; right: 10px; }
.card-tools { position: absolute; top: 8px; left: 8px; display: flex; gap: 6px; }
.tool-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--ink-2); box-shadow: var(--shadow-sm); transition: background .2s, color .2s; }
.tool-btn .icon { width: 18px; height: 18px; }
.tool-btn:hover { color: var(--brand-ink); }
.tool-btn[aria-pressed="true"] { background: var(--brand); color: #fff; }
.bird-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.bird-card .fam { font-size: var(--fs-xs); color: var(--brand-ink); font-weight: 500; }
.bird-card h3 { font-size: var(--fs-md); margin: 0; line-height: 1.6; }
.bird-card h3 a:hover { color: var(--brand-ink); }
.bird-card p { font-size: var(--fs-sm); color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.8; }
.bird-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--accent-ink); font-weight: 500; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.card-list .bird-card { flex-direction: row; }
.card-list { grid-template-columns: 1fr !important; }
.card-list .bird-card .media { width: 300px; flex: none; }
.card-list .bird-card p { -webkit-line-clamp: 3; }

/* Carousel */
.carousel { position: relative; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 16px; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; }
.carousel-nav { display: flex; gap: 8px; }
.carousel-nav button { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--surface); display: grid; place-items: center; color: var(--ink-2); }
.carousel-nav button:hover { border-color: var(--brand); color: var(--brand-ink); }

/* ---------- Bands / promos ---------- */
.band { border-radius: var(--r-xl); padding: 40px; position: relative; overflow: hidden; }
.band-brand { background: var(--brand-ink); color: #fff; }
.band-brand h2, .band-brand h3 { color: #fff; }
.band-brand p { color: rgba(255, 255, 255, .8); }
.band-soft { background: var(--brand-tint); border: 1px solid var(--brand-soft); }
.band-accent { background: var(--accent-soft); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split-media img { border-radius: var(--r-lg); aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.finder-promo { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.finder-preview { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-lg); padding: 20px; display: grid; gap: 12px; }
.finder-preview .q { font-weight: 700; }
.finder-preview .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.finder-preview .opts span { padding: 6px 14px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .12); font-size: var(--fs-sm); }
.finder-preview .opts span.on { background: var(--accent); color: #2a1300; font-weight: 700; }

.colour-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.colour-chip { text-align: center; font-size: var(--fs-xs); font-weight: 500; }
.colour-chip img { aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r-md); margin-bottom: 6px; border: 3px solid #fff; box-shadow: var(--shadow-sm); }
.colour-chip:hover img { box-shadow: 0 0 0 3px var(--brand); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; position: relative; }
.step::before { counter-increment: step; content: counter(step, persian); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--brand); color: #fff; font-weight: 700; font-size: var(--fs-lg); margin-bottom: 14px; }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }

.guide-card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; transition: box-shadow .25s, transform .25s var(--ease); }
.guide-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.guide-card img { aspect-ratio: 16/9; object-fit: cover; }
.guide-card .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.guide-card h3 { margin: 0; font-size: var(--fs-md); }
.guide-card p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.guide-card .meta { display: flex; gap: 10px; font-size: var(--fs-xs); color: var(--muted); margin-top: auto; }

.reels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.reel { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 9/16; background: var(--ink); color: #fff; display: flex; align-items: flex-end; }
.reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #2b272b; }
.reel .cap { position: relative; padding: 14px; width: 100%; background: linear-gradient(to top, rgba(0, 0, 0, .75), transparent); font-size: var(--fs-sm); font-weight: 500; }
.reel .play { position: absolute; top: 12px; left: 12px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: grid; place-items: center; backdrop-filter: blur(4px); }

.seo-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 32px; }
.seo-block .content { max-height: 140px; overflow: hidden; position: relative; transition: max-height .4s var(--ease); }
.seo-block .content::after { content: ""; position: absolute; inset: auto 0 0; height: 70px; background: linear-gradient(transparent, var(--surface)); }
.seo-block.is-open .content { max-height: 2000px; }
.seo-block.is-open .content::after { display: none; }

/* FAQ / accordion */
.accordion { display: grid; gap: 10px; }
.acc-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.acc-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 20px; font-weight: 700; }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary .icon { transition: transform .2s; color: var(--brand); }
.acc-item[open] summary .icon { transform: rotate(45deg); }
.acc-item .acc-body { padding: 0 20px 18px; color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfcbd1; margin-top: 64px; font-size: var(--fs-sm); }
.footer-cta { background: var(--brand-ink); color: #fff; border-radius: var(--r-xl); padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; transform: translateY(-50%); flex-wrap: wrap; }
.footer-cta h2 { color: #fff; font-size: var(--fs-xl); margin: 0; }
.footer-cta p { margin: 0; color: rgba(255, 255, 255, .8); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; margin-top: -20px; }
.site-footer h3 { color: #fff; font-size: var(--fs-md); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: #fff; }
.footer-logo { background: #fff; display: inline-block; padding: 8px 12px; border-radius: var(--r-md); margin-bottom: 14px; }
.footer-logo img { width: 140px; }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; }
.social a:hover { background: rgba(255, 255, 255, .16); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { margin-top: 4px; color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--fs-xs); color: #a39fa6; }

/* ---------- Catalogue (shop) ---------- */
.shop-layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 6px 18px 18px; max-height: calc(100vh - var(--header-h) - 32px); overflow: auto; }
.filter-group { border-bottom: 1px solid var(--line); padding-block: 14px; }
.filter-group:last-child { border-bottom: 0; }
.filter-group h3 { font-size: var(--fs-sm); margin-bottom: 10px; display: flex; justify-content: space-between; }
.filter-group .check { justify-content: space-between; padding: 4px 0; }
.filter-group .check span { flex: 1; }
.filter-group .check small { color: var(--muted); }
.filter-scroll { max-height: 280px; overflow: auto; padding-inline-end: 4px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { border: 1.5px solid var(--line-2); background: var(--surface); border-radius: var(--r-pill); padding: 4px 12px; font-size: var(--fs-xs); }
.seg button[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.shop-toolbar .select { min-height: 40px; width: auto; padding-block: 4px; border-radius: var(--r-pill); }
.view-toggle { display: flex; gap: 4px; background: var(--surface-2); padding: 3px; border-radius: var(--r-pill); }
.view-toggle button { border: 0; background: transparent; width: 36px; height: 34px; border-radius: var(--r-pill); display: grid; place-items: center; color: var(--muted); }
.view-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--brand-ink); box-shadow: var(--shadow-sm); }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.active-filters:empty { display: none; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.pagination button { min-width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); font-weight: 500; }
.pagination button[aria-current="page"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.pagination button:disabled { opacity: .4; cursor: default; }
.empty-state { text-align: center; padding: 56px 20px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.empty-state .icon { width: 48px; height: 48px; color: var(--muted); margin: 0 auto 12px; }
.filter-open { display: none; }

/* ---------- Product ---------- */
.product-top { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: start; padding-top: 16px; }
.gallery-main { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--surface-2); cursor: zoom-in; }
.gallery-main img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.gallery-main .label { position: absolute; bottom: 14px; right: 14px; background: rgba(31, 27, 31, .72); color: #fff; padding: 4px 12px; border-radius: var(--r-pill); font-size: var(--fs-xs); backdrop-filter: blur(4px); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.gallery-thumbs button { border: 2px solid transparent; border-radius: var(--r-md); overflow: hidden; padding: 0; background: var(--surface-2); }
.gallery-thumbs button[aria-current="true"] { border-color: var(--brand); }
.gallery-thumbs img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.gallery-thumbs .placeholder { aspect-ratio: 16/9; display: grid; place-items: center; font-size: var(--fs-xs); color: var(--muted); border: 1.5px dashed var(--line-2); border-radius: var(--r-md); line-height: 1.5; text-align: center; padding: 4px; }
.product-info h1 { font-size: var(--fs-2xl); margin-bottom: 6px; }
.product-info .aka { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 14px; }
.product-info .summary { color: var(--ink-2); }
.info-table { display: grid; grid-template-columns: auto 1fr; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin-block: 18px; font-size: var(--fs-sm); background: var(--surface); }
.info-table dt, .info-table dd { margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.info-table dt { color: var(--muted); background: var(--surface-2); }
.info-table dt:nth-last-of-type(1), .info-table dd:last-of-type { border-bottom: 0; }
.cta-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: grid; gap: 10px; }
.cta-card .row { display: flex; gap: 10px; }
.cta-card .row > * { flex: 1; }
.cta-card .note { font-size: var(--fs-xs); color: var(--muted); line-height: 1.8; display: flex; gap: 8px; }
.profile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.profile-row { display: grid; grid-template-columns: 110px 1fr 70px; align-items: center; gap: 12px; padding-block: 8px; font-size: var(--fs-sm); }
.meter { height: 10px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(to left, var(--brand), #46b6e3); }
.profile-row .val { color: var(--muted); font-size: var(--fs-xs); }
.review-flag { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-xs); color: var(--accent-ink); background: var(--accent-soft); border-radius: var(--r-sm); padding: 8px 12px; margin-top: 10px; }
.tabs { margin-top: 48px; }
.tab-list { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; position: sticky; top: var(--header-h); background: var(--bg); z-index: 5; }
.tab-list button { border: 0; background: none; padding: 14px 18px; font-weight: 500; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.tab-list button[aria-selected="true"] { color: var(--brand-ink); border-bottom-color: var(--brand); font-weight: 700; }
.tab-panel { padding-block: 28px; max-width: 820px; }
.tab-panel[hidden] { display: none; }
.callout { display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--r-md); background: var(--leaf-soft); color: #134d35; font-size: var(--fs-sm); }
.callout .icon { margin-top: 4px; color: var(--leaf); }
.callout.info { background: var(--brand-tint); color: var(--brand-ink); }
.callout.info .icon { color: var(--brand); }
.callout.warn { background: var(--accent-soft); color: #6b3300; }
.callout.warn .icon { color: var(--accent-ink); }
.sticky-cta { display: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(15, 13, 15, .92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 90vh; width: auto; border-radius: var(--r-md); }
.lightbox .close { position: absolute; top: 16px; left: 16px; }

/* ---------- Compare ---------- */
.compare-table { width: 100%; min-width: 640px; table-layout: fixed; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; font-size: var(--fs-sm); }
.compare-table th, .compare-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: right; }
.compare-table th { background: var(--surface-2); width: 160px; color: var(--muted); font-weight: 500; }
.compare-table tr:last-child td, .compare-table tr:last-child th { border-bottom: 0; }
.compare-head img { aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r-md); margin-bottom: 8px; width: 100%; }
.compare-slot { border: 1.5px dashed var(--line-2); border-radius: var(--r-md); aspect-ratio: 16/9; display: grid; place-items: center; color: var(--muted); font-size: var(--fs-sm); text-align: center; padding: 10px; }
.compare-dock { position: fixed; bottom: 16px; left: 50%; transform: translate(-50%, 140%); z-index: 85; background: var(--ink); color: #fff; border-radius: var(--r-pill); padding: 8px 8px 8px 8px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-lg); transition: transform .3s var(--ease); max-width: calc(100vw - 32px); }
.compare-dock.is-visible { transform: translate(-50%, 0); }
.compare-dock .thumbs { display: flex; gap: 6px; padding-inline: 8px; }
.compare-dock .thumbs img { width: 52px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; border: 2px solid rgba(255, 255, 255, .3); }
.compare-dock span.txt { font-size: var(--fs-sm); padding-inline: 4px; white-space: nowrap; }

/* ---------- Inquiry list (no cart, no payment) ---------- */
.sheet { position: fixed; top: 0; bottom: 0; left: 0; width: min(420px, 92vw); background: var(--surface); z-index: 121; transform: translateX(-100%); transition: transform .3s var(--ease); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
body.sheet-open .sheet { transform: none; }
body.sheet-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.sheet-body { flex: 1; overflow: auto; padding: 16px; display: grid; gap: 12px; align-content: start; }
.sheet-foot { border-top: 1px solid var(--line); padding: 16px; display: grid; gap: 10px; }
.inq-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-md); }
.inq-item img { aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; }
.inq-item strong { font-size: var(--fs-sm); display: block; line-height: 1.6; }

/* ---------- Finder ---------- */
.finder { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.finder-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 32px; }
.progress { height: 6px; background: var(--surface-2); border-radius: 4px; overflow: hidden; margin-bottom: 24px; }
.progress i { display: block; height: 100%; background: var(--accent); transition: width .3s var(--ease); }
.option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-block: 20px; }
.option { border: 1.5px solid var(--line-2); border-radius: var(--r-lg); padding: 16px; background: var(--surface); text-align: right; display: flex; gap: 12px; align-items: flex-start; transition: border-color .2s, background .2s; }
.option:hover { border-color: var(--brand); }
.option[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-tint); }
.option .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; flex: none; }
.option strong { display: block; }
.option span.d { font-size: var(--fs-xs); color: var(--muted); }

/* ---------- Article ---------- */
.article { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.prose { font-size: var(--fs-lg); line-height: 2.05; max-width: 760px; }
.prose h2 { font-size: var(--fs-xl); margin-top: 1.8em; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose ul { padding-inline-start: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--r-lg); aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.toc { position: sticky; top: calc(var(--header-h) + 16px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; font-size: var(--fs-sm); }
.toc ol { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 6px; }
.toc a:hover { color: var(--brand-ink); }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: var(--fs-sm); margin-bottom: 20px; }
.article-meta span { display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 14px; align-items: center; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .2s; }
a.contact-card:hover { border-color: var(--brand); }
.contact-card .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; color: #fff; }
.contact-card small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.contact-card strong { font-size: var(--fs-md); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }

/* 404 */
.notfound { text-align: center; padding-block: 64px 24px; }
.notfound .big { font-size: 7rem; font-weight: 700; line-height: 1; color: var(--brand); letter-spacing: -2px; }

/* Toast */
.toast { position: fixed; bottom: 24px; right: 50%; transform: translate(50%, 150%); visibility: hidden; opacity: 0; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: var(--r-pill); z-index: 160; font-size: var(--fs-sm); transition: transform .3s var(--ease); box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; }
.toast.is-visible { transform: translate(50%, 0); visibility: visible; opacity: 1; }


/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .family-grid { grid-template-columns: repeat(4, 1fr); }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .carousel-track { grid-auto-columns: calc((100% - 40px) / 3); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .header-call { display: none; }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; --fs-3xl: 1.875rem; --fs-4xl: 2.125rem; --fs-2xl: 1.5rem; }
  .topbar, .nav { display: none; }
  .header-main { min-height: 64px; gap: 10px; }
  .logo img, .is-scrolled .logo img { width: 116px; }
  .menu-toggle { display: grid; }
  .header-main .search { display: none; }
  .header-main .search.mobile-open { display: block; position: fixed; inset: 0 0 auto; background: var(--surface); padding: 12px 16px; max-width: none; z-index: 130; box-shadow: var(--shadow-md); }
  .hide-md { display: none !important; }
  .hero-slider { min-height: 0; border-radius: var(--r-lg); }
  .hero-slide { grid-template-columns: 1fr; grid-template-rows: 220px 1fr; }
  .hero-media { order: -1; }
  .hero-media::after { background: linear-gradient(to top, var(--fade), transparent 30%); }
  .hero-copy { padding: 8px 24px 64px; justify-content: flex-start; }
  .hero-dots { right: 24px; }
  .trust { grid-template-columns: 1fr 1fr; }
  .shop-layout, .product-top, .finder, .article, .contact-layout, .split, .finder-promo { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: auto 0 0 0; top: auto; max-height: 85vh; border-radius: var(--r-xl) var(--r-xl) 0 0; z-index: 125; transform: translateY(105%); transition: transform .3s var(--ease); padding-bottom: 90px; }
  body.filters-open .filters { transform: none; }
  body.filters-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
  .filter-open { display: inline-flex; }
  .filters-close { display: flex !important; }
  .toc { position: static; }
  .bottom-bar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; inset-inline: 0; z-index: 88; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-bar a, .bottom-bar button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); border: 0; background: none; position: relative; padding: 4px 0; }
  .bottom-bar .active { color: var(--brand-ink); font-weight: 700; }
  .bottom-bar .badge { position: absolute; top: 0; left: calc(50% - 20px); min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: #2a1300; font-size: 10px; display: grid; place-items: center; }
  .bottom-bar .badge[data-count="0"] { display: none; }
  body { padding-bottom: 68px; }
  .fab { bottom: 84px; left: 14px; }
  .fab-main { width: 52px; height: 52px; }
  .sticky-cta { display: flex; gap: 8px; position: fixed; bottom: 64px; inset-inline: 0; padding: 10px 16px; background: var(--surface); border-top: 1px solid var(--line); z-index: 87; }
  .sticky-cta .btn { flex: 1; }
  .product-page .fab { display: none; }
  .compare-dock { display: none; }
  .toast { bottom: 84px; }
  .footer-cta { transform: none; margin-top: 32px; }
  .footer-grid { margin-top: 32px; }
  .site-footer { padding-top: 1px; }
  .tab-list { top: 64px; }
}
@media (max-width: 720px) {
  :root { --fs-3xl: 1.625rem; --fs-4xl: 1.75rem; --fs-2xl: 1.375rem; }
  .section { padding-block: 40px; }
  .family-grid, .family-grid.is-large { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-grid, .card-grid.cols-3 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .bird-card .body { padding: 10px 12px 12px; }
  .bird-card p { display: none; }
  .bird-card h3 { font-size: var(--fs-sm); }
  .bird-card .foot { flex-direction: column; align-items: stretch; }
  .bird-card .foot .btn { width: 100%; }
  .carousel-track { grid-auto-columns: 72%; gap: 12px; }
  .carousel-nav { display: none; }
  .card-list .bird-card { flex-direction: column; }
  .card-list .bird-card .media { width: auto; }
  .colour-strip { grid-template-columns: repeat(3, 1fr); }
  .steps, .reels { grid-template-columns: 1fr; }
  .reels { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: 1fr; }
  .band { padding: 24px; border-radius: var(--r-lg); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; }
  .option-grid, .form-grid { grid-template-columns: 1fr; }
  .finder-card, .form-card { padding: 20px; }
  .section-head { flex-wrap: wrap; align-items: flex-start; }
  .profile-row { grid-template-columns: 90px 1fr 56px; }
  .compare-table th { width: 96px; }
  .seo-block { padding: 20px; }
  .hero-copy h1, .hero-copy h2 { font-size: var(--fs-4xl); }
  .shop-toolbar .result-count { width: 100%; order: 3; font-size: var(--fs-xs); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   WordPress theme layer: markup from PHP templates, CSS-only interactions.
   ========================================================================== */

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
bdi { unicode-bidi: isolate; }
.small { font-size: var(--fs-xs); }
.h-sm { font-size: var(--fs-lg); }
.mt { margin-top: 16px; }
.end { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.center { justify-content: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.split-top { align-items: start; }
.section-tight { padding-top: 0; }
.eyebrow-light { color: #ffc690; }
.btn-on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-on-dark:hover { background: rgba(255, 255, 255, .12); }
.band-brand a:not(.btn) { color: #fff; text-decoration: underline; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-md); padding: 12px 16px; position: relative; padding-inline-start: 40px; }
.check-list li::before { content: ""; position: absolute; right: 14px; top: 50%; width: 14px; height: 8px; border: solid var(--accent); border-width: 0 0 2.5px 2.5px; transform: translateY(-70%) rotate(-45deg); }

/* Mobile drawer: native <details>, the open summary doubles as the backdrop. */
.drawer { display: none; position: static; transform: none; width: auto; background: none; }
.drawer > summary { list-style: none; }
.drawer > summary::-webkit-details-marker { display: none; }
.drawer-panel { position: fixed; top: 0; bottom: 0; right: 0; width: min(360px, 88vw); background: var(--surface); z-index: 121; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: slide-in .25s var(--ease); }
.drawer[open] > summary::before { content: ""; position: fixed; inset: 0; background: rgba(20, 18, 20, .45); z-index: 120; cursor: default; }
@keyframes slide-in { from { transform: translateX(100%); } }
.drawer-body { display: block; }
.drawer-body details > summary { list-style: none; }

/* Mega menu: opens on hover and keyboard focus, no script. */
.nav-item.has-mega:hover .mega, .nav-item.has-mega:focus-within .mega { display: grid; grid-template-columns: 1fr 260px; gap: 20px; }
.nav-item.has-mega:hover .chev, .nav-item.has-mega:focus-within .chev { transform: rotate(180deg); }
.nav-item.has-mega::after { content: ""; position: absolute; inset: 100% 0 auto; height: 10px; }
.mega-promo img { width: 100%; }
.mega-promo > span { padding: 14px; font-size: var(--fs-sm); display: block; }

/* Header search panel */
.search-panel[hidden] { display: none !important; }
.search-panel:not([hidden]) { display: block; }
.search-item > span { display: block; }
.search-item .meta { display: block; }
.search-footer button { width: 100%; }

/* Hero: horizontal scroll-snap slider, dots are anchors. */
.hero-slider { display: block; min-height: 0; }
.hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide { position: relative; flex: 0 0 100%; min-height: 460px; scroll-snap-align: start; opacity: 1; visibility: visible; grid-area: auto; }
.hero-media img { height: 100%; }
.hero-dots a { width: 10px; height: 10px; border-radius: 6px; background: rgba(31, 27, 31, .25); display: block; }
.hero-dots a:hover, .hero-dots a:focus-visible { background: var(--accent); }

/* Cards */
.bird-card .card-title { font-size: var(--fs-md); margin: 0; line-height: 1.6; }
.bird-card .card-title a:hover { color: var(--brand-ink); }
.bird-card .media img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.bird-card .fam:hover { text-decoration: underline; }
.tool-btn[hidden] { display: none; }
a.tool-btn { text-decoration: none; }
.family-tile img { width: 100%; height: auto; }
.family-tile .body { display: flex; }
.family-grid-2 { grid-template-columns: repeat(2, 1fr); }
.colour-chip img { width: 100%; height: auto; }
.colour-chip span { display: block; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding: 4px 2px 16px; }
.carousel-track > * { scroll-snap-align: start; }
.carousel-nav[hidden] { display: none; }

/* Steps as an ordered list */
ol.steps { list-style: none; margin: 0; padding: 0; }

/* SEO block with native expand */
details.seo-block > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
details.seo-block > summary::-webkit-details-marker { display: none; }
details.seo-block > summary h2 { margin: 0; font-size: var(--fs-xl); }
details.seo-block .more { color: var(--brand-ink); font-weight: 700; font-size: var(--fs-sm); white-space: nowrap; }
details.seo-block[open] .more { visibility: hidden; }
details.seo-block .content { max-height: none; margin-top: 16px; }
details.seo-block .content::after { display: none; }

/* Catalogue */
.filters { padding: 14px 18px 18px; }
.filters-details > summary { list-style: none; display: none; }
.filters-details > summary::-webkit-details-marker { display: none; }
.filter-form { display: grid; gap: 4px; }
.filter-form .filter-group { border: 0; border-bottom: 1px solid var(--line); margin: 0; padding: 12px 0; min-width: 0; }
.filter-title { display: block; font-weight: 700; font-size: var(--fs-sm); margin-bottom: 8px; padding: 0; }
.filter-form .btn { margin-top: 8px; }
.shop-toolbar .active-filters { margin: 0; }
.pagination ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); font-weight: 500; display: inline-flex; align-items: center; justify-content: center; }
.pagination a.page-numbers:hover { border-color: var(--brand); color: var(--brand-ink); }
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }
.pagination .dots { border: 0; background: none; }
.empty-state .hero-actions { margin-top: 12px; }
.family-hero { padding-block: 20px 28px; }
.split-media img { width: 100%; height: auto; }

/* Compare */
.table-scroll { overflow-x: auto; }
.compare-head img { width: 100%; height: auto; }
.compare-head strong { display: block; margin-bottom: 4px; }
.compare-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.compare-slot a { color: var(--brand-ink); text-decoration: underline; }
.compare-table td a:not(.btn) { color: var(--brand-ink); }
.shop-toolbar .select { flex: 1; min-width: 0; max-width: 420px; }

/* Product */
.product-top { padding-top: 16px; }
.gallery-main { display: block; }
.gallery-main img { width: 100%; height: auto; }
.gallery-thumbs a { display: block; border-radius: var(--r-md); overflow: hidden; }
.gallery-thumbs img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(15, 13, 15, .92); display: none; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox:target { display: flex; }
.lightbox img { max-height: 90vh; width: auto; border-radius: var(--r-md); }
.product-info .chip { margin-bottom: 10px; }
.info-table dd a { color: var(--brand-ink); }
.cta-card .note { margin: 0; }
.cta-card .note .icon { margin-top: 3px; flex: none; }
.cta-card button[hidden] { display: none; }
.section-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-top: 40px; position: sticky; top: 124px; background: var(--bg); z-index: 5; }
.section-nav a { padding: 14px 16px; white-space: nowrap; color: var(--muted); font-weight: 500; border-bottom: 3px solid transparent; }
.section-nav a:hover { color: var(--brand-ink); border-bottom-color: var(--brand); }
.product-detail { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; padding-block: 28px; }
.product-detail > * { min-width: 0; }
.product-detail section { scroll-margin-top: 190px; }
.product-detail .callout { margin-bottom: 20px; }
#colours, #related { scroll-margin-top: 190px; }

/* Prose (page content from the editor) */
.prose { font-size: var(--fs-lg); line-height: 2; max-width: 820px; }
.prose h2 { font-size: var(--fs-xl); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--r-lg); height: auto; }
.prose figure { margin: 1.5em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; }
.prose-sm { font-size: var(--fs-md); }
.page-article { max-width: 880px; }
.callout .icon { flex: none; }

/* Contact */
.contact-card > span:last-child { display: block; }
.contact-card .ic-telegram { background: #229ed9; }
.contact-card .ic-phone { background: var(--leaf); }
.contact-card .ic-instagram { background: #c13584; }
.contact-card .ic-map { background: var(--accent-ink); }

/* Fluent Forms, restyled to match */
.form-card .fluentform .ff-el-group { margin-bottom: 16px; }
.form-card .fluentform label { font-weight: 500; font-size: var(--fs-sm); margin-bottom: 6px; display: inline-block; }
.form-card .fluentform .ff-el-form-control { width: 100%; min-height: 48px; padding: 10px 16px; border-radius: var(--r-md); border: 1.5px solid var(--line-2); background: var(--surface); font: inherit; }
.form-card .fluentform textarea.ff-el-form-control { min-height: 130px; }
.form-card .fluentform .ff-el-form-control:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.form-card .fluentform .ff-btn-submit { background: var(--brand) !important; color: #fff !important; border: 0; border-radius: var(--r-pill); min-height: 50px; padding: 0 28px; font: inherit; font-weight: 700; width: 100%; cursor: pointer; }
.form-card .fluentform .ff-btn-submit:hover { background: var(--brand-ink) !important; }
.form-card .fluentform .error, .form-card .fluentform .text-danger { color: var(--danger); font-size: var(--fs-xs); }
.form-card .ff-message-success { background: var(--leaf-soft); color: #134d35; border-radius: var(--r-md); padding: 14px 16px; border: 0; }

/* 404 search */
.notfound-search { max-width: 560px; margin: 24px auto; background: var(--surface); border-color: var(--line-2); }

/* Floating contact: native <details> */
.fab { display: block; }
.fab > summary { list-style: none; }
.fab > summary::-webkit-details-marker { display: none; }
.fab-items { position: absolute; bottom: 70px; left: 0; display: grid; gap: 10px; }
.fab-item { display: flex; }
.fab[open] .fab-main { transform: none; background: var(--ink); color: #fff; }
.fab-item .ic-telegram { background: #229ed9; }
.fab-item .ic-phone { background: var(--leaf); }

/* Inquiry sheet (JavaScript enhancement) */
.sheet { position: fixed; inset: 0; z-index: 130; transform: none; width: auto; background: none; box-shadow: none; display: block; }
.sheet[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(20, 18, 20, .45); }
.sheet-panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(420px, 92vw); background: var(--surface); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: slide-in-left .25s var(--ease); }
@keyframes slide-in-left { from { transform: translateX(-100%); } }
.inq-item { grid-template-columns: 1fr auto; }
.counter-btn[hidden], .badge[hidden] { display: none !important; }
.counter-btn .badge { display: grid; }

@media (min-width: 961px) {
  .filters-details > summary { display: none; }
}
@media (max-width: 1180px) {
  .carousel-track { grid-auto-columns: calc((100% - 40px) / 3); }
  .product-detail { grid-template-columns: 1fr 300px; }
}
@media (max-width: 960px) {
  .drawer { display: block; }
  .header-main { flex-wrap: wrap; padding-block: 10px; row-gap: 10px; }
  .header-main .search { display: block; order: 10; flex: 1 0 100%; max-width: none; }
  .header-main .search-box { height: 46px; }
  .hero-slide { min-height: 0; grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .hero-media { order: -1; aspect-ratio: 16/9; }
  .hero-media::after { background: linear-gradient(to top, var(--fade), transparent 30%); }
  .hero-copy { padding: 8px 24px 56px; }
  .filters { position: static; transform: none; max-height: none; border-radius: var(--r-lg); padding: 10px 14px; z-index: auto; overflow: visible; }
  .filters-details > summary { display: inline-flex; }
  .filters-details[open] > summary { margin-bottom: 8px; }
  .section-nav { top: 118px; }
  .product-detail { grid-template-columns: 1fr; }
  .family-hero .split-media { order: -1; }
  body.single-product .fab { display: none; }
  .fab { bottom: 84px; }
  .footer-cta { transform: none; }
}
@media (max-width: 720px) {
  .carousel-track { grid-auto-columns: 72%; gap: 12px; }
  .family-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .hero-copy h1, .hero-copy h2 { font-size: var(--fs-3xl); }
  .end { justify-content: flex-start; }
  details.seo-block > summary { flex-direction: column; align-items: flex-start; }
}
.bird-card .foot { flex-wrap: wrap; row-gap: 8px; }

/* v2.1.0: dropdowns built from WordPress menus, and the full colour guide grid */
.nav-item.has-sub .mega-sub { width: 240px; padding: 10px; }
.nav-item.has-sub:hover .mega-sub, .nav-item.has-sub:focus-within .mega-sub, .nav-item.has-sub.is-open .mega-sub { display: block; }
.mega-sub .mega-families { grid-template-columns: 1fr; }
.colour-guide { margin-top: 32px; }
.colour-guide h2 { margin-bottom: 16px; }

/* v2.1.1: the header blur lives on its own layer, so the mobile drawer (fixed, inside the header) is not trapped in the header box */
.site-header { backdrop-filter: none; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; backdrop-filter: saturate(1.4) blur(10px); pointer-events: none; }
@media (max-width: 782px) { .admin-bar .drawer-panel { top: 46px; } }

/* v2.1.2: Instagram in the floating contact menu */
.fab-item .ic-instagram { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }
.family-links { display: grid; gap: 2px; }
.family-links a { display: flex; justify-content: space-between; align-items: center; padding: 9px 10px; border-radius: var(--r-sm); font-size: var(--fs-sm); }
.family-links a:hover, .family-links a[aria-current="page"] { background: var(--brand-tint); color: var(--brand-ink); }
.family-links small { color: var(--muted); font-size: var(--fs-xs); }
