@import url("../vendor/peyda/fontiran.css");

/* ── Goaltage design tokens (shared by catalog + wholesale) ───────────── */
:root {
  --primary-50: #E6F7F9; --primary-100: #B3E8EE; --primary-200: #80D9E3;
  --primary-300: #4DCAD8; --primary-400: #26BFCE; --primary-500: #00A9B5;
  --primary-600: #008B96; --primary-700: #006D77; --primary-800: #004F58;
  --primary-900: #003139;
  --gray-50: #F8FAFC; --gray-100: #F1F5F9; --gray-200: #E2E8F0; --gray-300: #CBD5E1;
  --gray-400: #94A3B8; --gray-500: #64748B; --gray-600: #475569; --gray-700: #334155;
  --gray-800: #1E293B; --gray-900: #0F172A;
  --success: #10B981; --success-light: #D1FAE5; --error: #EF4444; --error-light: #FEE2E2;
  --warning: #F59E0B;

  --bg: #fff; --bg-soft: var(--gray-50); --surface: #fff;
  --text: var(--gray-900); --muted: var(--gray-500); --border: var(--gray-200);
  --accent: var(--primary-500); --accent-strong: var(--primary-700);
  --on-accent: #fff;

  --radius: 16px; --radius-sm: 10px; --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgb(0 49 57 / .06), 0 1px 3px rgb(0 49 57 / .05);
  --shadow: 0 6px 20px -6px rgb(0 49 57 / .14), 0 2px 6px rgb(0 49 57 / .05);
  --shadow-lg: 0 24px 48px -16px rgb(0 49 57 / .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1200px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07161a; --bg-soft: #0b1e23; --surface: #0f272d;
    --text: #e8f4f6; --muted: #8fb0b6; --border: #1b3a41;
    --accent: var(--primary-400); --accent-strong: var(--primary-300);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
    --shadow: 0 8px 24px -8px rgb(0 0 0 / .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "PeydaWeb", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.7; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-strong); text-decoration: none; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--primary-300); outline-offset: 2px; border-radius: 6px; }
.container { width: min(var(--container), 100% - 2rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ── Header ───────────────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-in { display: flex; align-items: center; gap: 1rem; height: 68px; }
.logo { display: flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 800; }
.logo img { height: 38px; width: auto; }
.logo small { display: block; font-weight: 400; font-size: .72rem; color: var(--muted); margin-top: -4px; }
.nav { display: flex; gap: .25rem; margin-inline-start: 1rem; }
.nav a { padding: .45rem .9rem; border-radius: 999px; color: var(--gray-600); font-weight: 500; font-size: .95rem; transition: .2s var(--ease); }
@media (prefers-color-scheme: dark) { .nav a { color: var(--muted); } }
.nav a:hover, .nav a.on { background: var(--primary-50); color: var(--primary-700); }
@media (prefers-color-scheme: dark) { .nav a:hover, .nav a.on { background: var(--surface); color: var(--primary-300); } }
.header-end { margin-inline-start: auto; display: flex; align-items: center; gap: .6rem; }
.lang { border: 1px solid var(--border); border-radius: 999px; padding: .3rem .8rem; font-size: .85rem; color: var(--text); font-weight: 600; }
.lang:hover { border-color: var(--accent); }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .6rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; transition: .22s var(--ease);
}
.btn-primary { background: linear-gradient(135deg, var(--primary-500), var(--primary-700)); color: #fff; box-shadow: 0 8px 20px -8px rgb(0 139 150 / .7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgb(0 139 150 / .8); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn-light { background: #fff; color: var(--primary-800); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--primary-900); }
.btn-outline-light { border-color: rgb(255 255 255 / .45); color: #fff; }
.btn-outline-light:hover { background: rgb(255 255 255 / .12); color: #fff; }
.btn-sm { min-height: 38px; padding: .35rem 1rem; font-size: .88rem; }
.btn-block { width: 100%; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background:
    radial-gradient(900px 400px at 85% -10%, rgb(38 191 206 / .55), transparent 60%),
    radial-gradient(700px 400px at 0% 110%, rgb(0 169 181 / .35), transparent 60%),
    linear-gradient(160deg, var(--primary-900), var(--primary-800) 55%, var(--primary-700));
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .09;
  background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero-in { padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 9vw, 6.5rem); max-width: 760px; }
.kicker { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .9rem; border-radius: 999px; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .2); font-size: .85rem; font-weight: 600; margin-bottom: 1.2rem; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary-300); box-shadow: 0 0 0 4px rgb(77 202 216 / .25); }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); font-weight: 900; margin-bottom: .4em; }
.hero p { font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgb(255 255 255 / .82); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-search { margin-top: 2rem; display: flex; background: #fff; border-radius: 999px; padding: .35rem; box-shadow: var(--shadow-lg); max-width: 560px; }
.hero-search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; padding: 0 1.1rem; color: var(--gray-900); outline: none; }
.hero-search .btn { min-height: 44px; }

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section.soft { background: var(--bg-soft); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0; }
.sec-head h2::after { content: ""; display: block; width: 42px; height: 4px; border-radius: 4px; margin-top: .5rem; background: linear-gradient(90deg, var(--primary-400), var(--primary-600)); }

/* ── Category tiles ───────────────────────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.cat-tile { display: flex; flex-direction: column; gap: .3rem; padding: 1.3rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: .25s var(--ease); position: relative; overflow: hidden; }
.cat-tile::after { content: ""; position: absolute; inset-inline-end: -30px; bottom: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--primary-50); transition: .35s var(--ease); z-index: 0; }
@media (prefers-color-scheme: dark) { .cat-tile::after { background: var(--primary-900); } }
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-300); }
.cat-tile:hover::after { transform: scale(2.4); }
.cat-tile > * { position: relative; z-index: 1; }
.cat-tile b { font-size: 1.02rem; }
.cat-tile span { color: var(--muted); font-size: .85rem; }
.cat-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary-600); font-size: 1.1rem; margin-bottom: .5rem; }

/* ── Product cards ────────────────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.2rem; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: .28s var(--ease); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--primary-200); }
.card-img { position: relative; aspect-ratio: 1; background: radial-gradient(circle at 50% 40%, #fff, var(--gray-100)); display: grid; place-items: center; padding: 1rem; }
@media (prefers-color-scheme: dark) { .card-img { background: radial-gradient(circle at 50% 40%, #1a3a41, #0b1e23); } }
.card-img img { max-height: 100%; width: auto; object-fit: contain; transition: transform .45s var(--ease); }
.card:hover .card-img img { transform: scale(1.06); }
.card-img .ph { font-size: 2.4rem; color: var(--gray-300); }
.badge { position: absolute; top: .7rem; inset-inline-start: .7rem; background: var(--primary-600); color: #fff; font-size: .72rem; font-weight: 700; padding: .15rem .7rem; border-radius: 999px; }
.card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.card-cat { font-size: .78rem; color: var(--accent-strong); font-weight: 600; }
.card-title { font-size: 1rem; font-weight: 700; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: .8rem; color: var(--muted); direction: ltr; text-align: start; margin-top: auto; padding-top: .4rem; }
html[dir="rtl"] .card-meta { text-align: right; }

/* ── Listing toolbar ──────────────────────────────────────────────────── */
.toolbar { position: sticky; top: 68px; z-index: 20; background: var(--bg); padding: .9rem 0; border-bottom: 1px solid var(--border); }
.search { display: flex; align-items: center; background: var(--bg-soft); border: 1.5px solid var(--border); border-radius: 999px; padding: .2rem .35rem .2rem 1.1rem; max-width: 520px; }
html[dir="rtl"] .search { padding: .2rem 1.1rem .2rem .35rem; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgb(0 169 181 / .15); }
.search i { color: var(--muted); margin-inline-end: .6rem; }
.search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: var(--text); padding: .55rem 0; outline: none; }
.chips { display: flex; gap: .5rem; overflow-x: auto; padding: .8rem 0 .1rem; scrollbar-width: thin; }
.chip { flex: none; padding: .35rem 1rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: .88rem; font-weight: 500; transition: .2s var(--ease); }
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--primary-600); border-color: var(--primary-600); color: #fff; }
.chip em { font-style: normal; opacity: .65; margin-inline-start: .3rem; font-size: .78rem; }
.count { margin: 1.2rem 0 1rem; color: var(--muted); font-size: .92rem; }
.empty { text-align: center; padding: 4rem 1rem; }
.empty i { font-size: 3rem; color: var(--primary-200); margin-bottom: 1rem; }
.pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 2.5rem; }

/* ── Product detail ───────────────────────────────────────────────────── */
.crumbs { font-size: .88rem; color: var(--muted); padding: 1.2rem 0 0; display: flex; gap: .5rem; flex-wrap: wrap; }
.detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding: 1.5rem 0 3rem; align-items: start; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } }
.gallery { position: sticky; top: 90px; }
@media (max-width: 860px) { .gallery { position: static; } }
.g-main { aspect-ratio: 1; background: radial-gradient(circle at 50% 40%, #fff, var(--gray-100)); border: 1px solid var(--border); border-radius: var(--radius-lg); display: grid; place-items: center; padding: 1.5rem; overflow: hidden; }
@media (prefers-color-scheme: dark) { .g-main { background: radial-gradient(circle at 50% 40%, #1a3a41, #0b1e23); } }
.g-main img { max-height: 100%; object-fit: contain; }
.g-thumbs { display: flex; gap: .6rem; margin-top: .8rem; overflow-x: auto; }
.g-thumbs button { flex: none; width: 74px; height: 74px; border-radius: 12px; border: 2px solid var(--border); background: var(--surface); padding: 6px; cursor: pointer; transition: .2s; }
.g-thumbs button.on, .g-thumbs button:hover { border-color: var(--accent); }
.g-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.info h1 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); margin: .3rem 0 .6rem; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.pill { font-size: .8rem; padding: .2rem .8rem; border-radius: 999px; background: var(--primary-50); color: var(--primary-700); font-weight: 600; direction: ltr; }
@media (prefers-color-scheme: dark) { .pill { background: var(--primary-900); color: var(--primary-200); } }
.variants { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.variants .chip { display: inline-flex; align-items: center; gap: .45rem; }
.swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgb(0 0 0 / .2); }
.cta-box { background: linear-gradient(160deg, var(--primary-900), var(--primary-700)); color: #fff; border-radius: var(--radius-lg); padding: 1.4rem; margin: 1.5rem 0; }
.cta-box p { color: rgb(255 255 255 / .8); font-size: .9rem; margin: 0 0 1rem; }
.block { margin-top: 2rem; }
.block h2 { font-size: 1.2rem; }
.rich { color: var(--gray-600); }
@media (prefers-color-scheme: dark) { .rich { color: var(--muted); } }
.rich ul { padding-inline-start: 1.2rem; }
.specs { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; font-size: .93rem; }
.specs th, .specs td { padding: .7rem 1rem; text-align: start; vertical-align: top; }
.specs tr:nth-child(odd) { background: var(--bg-soft); }
.specs th { width: 38%; color: var(--muted); font-weight: 500; }

/* ── Steps ────────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; counter-reset: s; }
.step { position: relative; padding: 1.4rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); counter-increment: s; }
.step::before { content: counter(s, decimal); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--primary-50); color: var(--primary-700); font-weight: 800; margin-bottom: .8rem; }
.step b { font-size: 1rem; }

/* ── Forms ────────────────────────────────────────────────────────────── */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.2rem, 3vw, 2rem); box-shadow: var(--shadow-sm); }
.form-card h2 { font-size: 1.15rem; display: flex; align-items: center; gap: .6rem; }
.form-card h2 i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary-600); font-size: .9rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; }
.field label .req { color: var(--error); }
.input, .field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg-soft);
  border: 1.5px solid var(--border); border-radius: 12px; padding: .7rem .95rem; transition: .2s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px rgb(0 169 181 / .15); }
.field input[dir="ltr"] { text-align: start; }
.errorlist { list-style: none; margin: 0; padding: 0; color: var(--error); font-size: .82rem; }
.hint { font-size: .8rem; color: var(--muted); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.alert { padding: .9rem 1.1rem; border-radius: 12px; margin-bottom: 1.2rem; font-size: .92rem; }
.alert-error { background: var(--error-light); color: #991b1b; }
.hp { position: absolute; inset-inline-start: -9999px; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.footer { background: var(--primary-900); color: rgb(255 255 255 / .75); padding: 3rem 0 1.5rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; margin: 0 0 .8rem; font-size: 1rem; }
.footer a { color: rgb(255 255 255 / .75); display: block; padding: .15rem 0; }
.footer a:hover { color: var(--primary-300); }
.footer-bar { border-top: 1px solid rgb(255 255 255 / .12); margin-top: 2rem; padding-top: 1.2rem; font-size: .85rem; text-align: center; }
.footer .logo { color: #fff; margin-bottom: .8rem; }
.footer .logo img { filter: brightness(0) invert(1); }

/* ── Success / notice page ────────────────────────────────────────────── */
.center-page { min-height: 55vh; display: grid; place-items: center; text-align: center; padding: 3rem 1rem; }
.center-page .big { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1.2rem; font-size: 2rem; background: var(--success-light); color: var(--success); }
.center-page .big.warn { background: var(--primary-50); color: var(--primary-600); }
.ref { display: inline-block; direction: ltr; font-family: ui-monospace, monospace; font-size: 1.3rem; font-weight: 700; letter-spacing: .08em; padding: .5rem 1.2rem; border-radius: 12px; background: var(--primary-50); color: var(--primary-800); margin: .5rem 0 1.2rem; }

/* ── Entry animation ──────────────────────────────────────────────────── */
@keyframes up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-in > *, .card, .cat-tile, .step { animation: up .6s var(--ease) backwards; }
.hero-in > :nth-child(2) { animation-delay: .08s; } .hero-in > :nth-child(3) { animation-delay: .16s; }
.hero-in > :nth-child(4) { animation-delay: .24s; } .hero-in > :nth-child(5) { animation-delay: .32s; }

/* ── Mobile ───────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .nav { display: none; }
  .header-in { height: 60px; }
  .toolbar { top: 60px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .card-body { padding: .8rem; }
  .logo small { display: none; }
}

/* ── Compact hero, lifestyles masonry, mobile tab bar ─────────────────── */
.hero-compact .hero-in { padding: clamp(2rem, 6vw, 4rem) 0 clamp(2.2rem, 6vw, 4.2rem); }
.hero-compact h1 { font-size: clamp(1.7rem, 4.4vw, 3rem); }
.lang i { margin-inline-end: .3rem; font-size: .8rem; color: var(--accent-strong); }

.masonry { columns: 4 240px; column-gap: 1rem; }
.shot { position: relative; display: block; break-inside: avoid; margin-bottom: 1rem; border-radius: var(--radius); overflow: hidden; background: var(--gray-100); box-shadow: var(--shadow-sm); }
.shot img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.shot:hover img { transform: scale(1.04); }
.shot-cap { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; gap: .1rem; padding: 2.4rem .9rem .8rem; color: #fff; font-size: .88rem; background: linear-gradient(to top, rgb(0 49 57 / .85), transparent); }
.shot-cap small { opacity: .8; font-size: .75rem; }

.tabbar { display: none; }
.sticky-cta { display: none; }

@media (max-width: 720px) {
  .hide-sm { display: none; }
  body.has-tabbar { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; inset: auto 0 0 0; z-index: 60;
    padding-bottom: env(safe-area-inset-bottom);
    background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-height: 60px; color: var(--muted); font-size: .72rem; font-weight: 600; -webkit-tap-highlight-color: transparent; }
  .tabbar a i { font-size: 1.15rem; }
  .tabbar a.on { color: var(--accent-strong); }
  .tabbar a.on i { transform: translateY(-1px); }
  .footer { margin-bottom: 0; padding-top: 2rem; }
  .footer-bar { margin-bottom: .5rem; }

  .hero-actions .btn { flex: 1 1 100%; }
  .chips { margin-inline: -1rem; padding-inline: 1rem; scroll-snap-type: x proximity; }
  .chip { min-height: 38px; display: inline-flex; align-items: center; scroll-snap-align: start; }
  .search { max-width: none; }
  .search input { font-size: 16px; }              /* prevents iOS zoom-on-focus */
  .masonry { columns: 2 140px; column-gap: .6rem; }
  .shot { margin-bottom: .6rem; border-radius: 12px; }
  .shot-cap { padding: 1.6rem .6rem .5rem; font-size: .78rem; }

  .detail { padding-bottom: 1rem; gap: 1rem; }
  .g-main { border-radius: 16px; padding: .8rem; }
  .g-thumbs button { width: 60px; height: 60px; }
  .cta-box { display: none; }                      /* replaced by the sticky bar */
  .sticky-cta {
    display: block; position: fixed; inset: auto 0 calc(60px + env(safe-area-inset-bottom)) 0; z-index: 55;
    padding: .6rem 1rem; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
  }
  .specs th { width: 42%; }
  .specs th, .specs td { padding: .6rem .75rem; }
  .btn { min-height: 48px; }
}

/* ── Filter bar (search + category dropdowns) ─────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.filters .search { flex: 1 1 280px; max-width: 460px; margin: 0; border-radius: 999px; min-height: 46px; }
.selects { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; flex: 1 1 auto; }
.select { position: relative; flex: 0 1 240px; min-width: 150px; }
.select::after { content: "\f078"; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free"; font-weight: 900; font-size: .7rem; position: absolute; top: 50%; inset-inline-end: 1rem; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.select select {
  appearance: none; -webkit-appearance: none; width: 100%; min-height: 46px; font: inherit; font-weight: 500;
  color: var(--text); background: var(--bg-soft); border: 1.5px solid var(--border); border-radius: 999px;
  padding: .5rem 2.6rem .5rem 1.1rem; cursor: pointer; text-overflow: ellipsis; transition: .2s var(--ease);
}
html[dir="rtl"] .select select { padding: .5rem 1.1rem .5rem 2.6rem; }
.select select:hover { border-color: var(--primary-300); }
.select select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgb(0 169 181 / .15); }
.select select:disabled { opacity: .5; cursor: not-allowed; }
.select option { background: var(--surface); color: var(--text); }
img.broken { visibility: hidden; }
@media (max-width: 720px) {
  .filters .search { flex-basis: 100%; max-width: none; }
  .selects { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
  .select { min-width: 0; flex: none; }
  .select select { font-size: 16px; }
  .selects .clear { grid-column: 1 / -1; }
  .toolbar { position: static; }
}
