/* =========================================================
   Vintage Studio Thailand — Home (2026 redesign)
   Bright, clean, shop-forward — Sweetwater inspired
   ========================================================= */

:root {
  --bg: #ffffff;
  --surface: #f5f7fa;
  --surface-2: #eef1f6;
  --ink: #131922;
  --muted: #5d6675;
  --line: #e4e8ef;

  --brand: #f7b500;        /* golden yellow accent */
  --brand-dk: #c8881a;     /* hover / deeper bronze-gold (premium) */
  --brand-ink: #9a6b00;    /* readable amber text on white */
  --brand-soft: #fff4cf;   /* soft yellow tint */
  --on-brand: #1a1205;     /* dark text on yellow surfaces */

  --navy: #141d2e;         /* studio dark */
  --navy-2: #1d2840;
  --gold: #e3a83c;

  --ok: #1f9d57;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(19,25,34,.06), 0 2px 8px rgba(19,25,34,.05);
  --shadow-md: 0 8px 24px rgba(19,25,34,.10);
  --shadow-lg: 0 18px 50px rgba(19,25,34,.16);

  --container: 1240px;
  --font: "Plus Jakarta Sans", "Noto Sans Thai", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", "Noto Serif Thai", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.18; letter-spacing: -.01em; }

/* ---------- Display typeface (Fraunces serif) for major headings ---------- */
.hero__title, .section__title, .pagehero h1, .contactcta h2, .comingsoon h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0;
}

/* ---------- Accessibility: visible keyboard focus + skip link ---------- */
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff;
  padding: 10px 18px; border-radius: 0 0 10px 10px; font-weight: 700; font-size: 14px;
  transition: top .15s ease; }
.skip-link:focus { top: 0; outline: none; }

/* ---------- Floating LINE button (mobile) ---------- */
.fab-line { position: fixed; right: 16px; bottom: 16px; bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #06c755;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(6,199,85,.42); transition: transform .15s ease; }
.fab-line svg { width: 30px; height: 30px; fill: #fff; }
.fab-line:hover { background: #05b34c; }
.fab-line:active { transform: scale(.94); }
@media (max-width: 860px) { .fab-line { display: flex; } }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9;
       stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 15px; transition: .18s ease; white-space: nowrap;
}
.btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 16px rgba(247,181,0,.38); }
.btn--primary:hover { background: var(--brand-dk); transform: translateY(-1px); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn--white { background: #fff; color: var(--navy); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.btn--white:hover { background: #eef2f8; transform: translateY(-1px); }
.btn--block { width: 100%; }
.btn--line { background: #06c755; color: #fff; box-shadow: 0 6px 16px rgba(6,199,85,.32); }
.btn--line:hover { background: #05b34c; transform: translateY(-1px); }
.btn--line .ico { stroke: none; fill: #fff; }
.btn--lg { padding: 15px 28px; font-size: 16px; }
.btn--ghost-light { background: transparent; border-color: rgba(255,255,255,.32); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.07); }
.btn--ghost-light .ico { stroke: #fff; }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy); color: #cfd6e4; font-size: 13px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.topbar__left { display: flex; align-items: center; gap: 22px; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar__item .ico { width: 15px; height: 15px; stroke-width: 1.7; }
.topbar__right { display: flex; align-items: center; gap: 12px; }
.topbar__link:hover { color: #fff; }
.topbar__sep { opacity: .4; }
.topbar__lang { background: none; border: 1px solid rgba(255,255,255,.22); color: #cfd6e4;
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.topbar__lang:hover { color: #fff; border-color: #fff; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: #fff;
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; gap: 28px; height: 84px; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark { width: 46px; height: 46px; border-radius: 11px;
  background: linear-gradient(135deg, #ffcb2e, var(--brand-dk));
  color: var(--on-brand); font-weight: 800; font-size: 18px; letter-spacing: .5px;
  display: grid; place-items: center; box-shadow: 0 6px 14px rgba(247,181,0,.4); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 800; font-size: 19px; letter-spacing: .02em; }
.brand__tag { font-size: 10.5px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

/* Search */
.search { flex: 1; display: flex; align-items: center; position: relative;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 4px 4px 4px 16px; transition: .18s; }
.search:focus-within { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
.search__ico { width: 19px; height: 19px; fill: none; stroke: var(--muted); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.search__input { flex: 1; border: none; background: none; outline: none; font-size: 15px;
  padding: 10px 12px; color: var(--ink); font-family: inherit; }
.search__btn { background: var(--brand); color: var(--on-brand); border: none; border-radius: 999px;
  padding: 10px 22px; font-weight: 700; font-size: 14px; }
.search__btn:hover { background: var(--brand-dk); }
/* ---- header search autocomplete dropdown ---- */
.ac { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  overflow: hidden; max-height: min(70vh, 460px); overflow-y: auto; }
.ac__row, .ac__all { display: flex; align-items: center; gap: 12px; padding: 9px 14px;
  text-decoration: none; color: var(--ink); }
.ac__row + .ac__row, .ac__all { border-top: 1px solid var(--line); }
.ac__row:hover, .ac__row.is-active, .ac__all:hover, .ac__all.is-active { background: var(--brand-soft); }
.ac__thumb { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 8px; background: #fff;
  border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.ac__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.ac__brandico { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 8px; background: var(--navy);
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.ac__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ac__name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac__meta { font-size: 12px; color: var(--muted); }
.ac__price { font-weight: 700; font-size: 14px; color: var(--ink); white-space: nowrap; }
.ac__all { justify-content: center; font-weight: 700; font-size: 13.5px; color: var(--brand-ink); }

.header__actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.iconbtn { display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 12px; border-radius: 12px; color: var(--ink); position: relative; }
.iconbtn:hover { background: var(--surface); }
.iconbtn__label { font-size: 11.5px; font-weight: 600; }
.iconbtn--cart .iconbtn__badge { position: absolute; top: 2px; right: 6px;
  background: var(--navy); color: #fff; font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none;
  padding: 10px; }
.hamburger span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* Language toggle (TH / EN) — injected into .header__actions by i18n.js */
.langtoggle { display: inline-flex; align-items: center; flex-shrink: 0;
  border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.langtoggle__btn { font: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: .03em;
  padding: 6px 11px; border: none; background: none; color: var(--muted); cursor: pointer;
  line-height: 1; transition: .15s; }
.langtoggle__btn.is-active { background: var(--navy); color: #fff; }
.langtoggle__btn:not(.is-active):hover { background: var(--surface); color: var(--ink); }
.langtoggle__btn:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }

/* Nav */
.nav { background: #fff; border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; gap: 4px; height: 52px; }
.nav__link { padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 14.5px;
  color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.nav__link:hover { background: var(--surface); }
.nav__link--shop { background: var(--navy); color: #fff; font-weight: 700; }
.nav__link--shop:hover { background: var(--navy-2); }
.nav__link--shop .ico { width: 18px; height: 18px; }
.nav__cta { margin-left: auto; padding: 9px 18px; border-radius: 999px;
  color: var(--brand-ink); font-weight: 700; font-size: 14.5px; border: 1.5px solid #f2dd9a;
  background: var(--brand-soft); }
.nav__cta:hover { background: var(--brand); color: var(--on-brand); }

/* ---------- Page hero / breadcrumb (sub-pages) ---------- */
.pagehero { background:
    radial-gradient(130% 130% at 100% 0%, rgba(247,181,0,.12) 0%, transparent 52%),
    var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08); padding: 34px 0 38px; }
.pagehero .crumbs, .pagehero .crumbs a { color: rgba(255,255,255,.72); }
.pagehero .crumbs span { color: rgba(255,255,255,.4); }
.pagehero .crumbs .crumbs__cur { color: #fff; }
.pagehero .crumbs a:hover { color: var(--brand); }
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--brand-ink); }
.crumbs span { opacity: .5; }
.crumbs .crumbs__cur { color: var(--ink); font-weight: 600; }
.pagehero__brandline { display: flex; align-items: center; gap: 16px; }
.pagehero__logo { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg,#f5a300,#ffc24d); color: var(--on-brand); font-weight: 800; font-size: 18px;
  box-shadow: 0 6px 14px rgba(247,181,0,.32); flex-shrink: 0; }
.pagehero h1 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; color: #fff; }
.pagehero p { color: rgba(255,255,255,.82); font-size: 15.5px; margin: 6px 0 0; max-width: 640px; }
.section--group { padding: 40px 0 8px; }
.section--group + .section--group { padding-top: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative;
  background:
    linear-gradient(95deg, rgba(20,34,59,.93) 0%, rgba(20,34,59,.84) 38%, rgba(20,34,59,.66) 66%, rgba(20,34,59,.48) 100%),
    url("../img/hero/studio-hero.jpg") center right / cover no-repeat,
    var(--navy);
  padding: 56px 0 64px; }
.hero__inner { display: grid; grid-template-columns: 1.35fr .85fr; gap: 48px; align-items: center; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 700;
  color: var(--brand); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.hero__eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand); border-radius: 2px; }
.hero__logo { height: 58px; width: auto; display: block; margin: 16px 0 30px -1px; }
/* visually hidden but available to screen readers / search engines */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero__title { font-size: clamp(25px, 3vw, 39px); font-weight: 800; margin: 0 0 18px;
  letter-spacing: -.01em; line-height: 1.24; text-wrap: balance; }
.hero__stars { color: var(--gold); letter-spacing: 1px; }
.hero__sub { font-size: 17px; color: #20293a; font-weight: 500; max-width: 540px; margin: 0 0 28px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__actions .btn { padding: 14px 28px; font-size: 16px; }
.hero__trust { display: flex; align-items: center; gap: 14px; margin-top: 26px;
  font-size: 14px; color: rgba(255,255,255,.72); flex-wrap: wrap; }
.hero__trust strong { color: #fff; }
.hero__rating { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none;
  border-radius: 999px; transition: opacity .15s ease; }
.hero__rating:hover { opacity: .8; }
.hero__rating .hero__rating-src { color: rgba(255,255,255,.7); text-decoration: underline; text-underline-offset: 2px; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }

.hero__card { background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 24px; box-shadow: var(--shadow-lg); position: relative; }
.hero__product { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px;
  margin-bottom: 18px; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.hero__product img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .3s ease; }
.hero__card:hover .hero__product img { transform: scale(1.05); }
.hero__pname { font-size: 20px; font-weight: 800; }
.hero__pmeta { color: var(--muted); font-size: 14px; margin: 4px 0 14px; }
.hero__price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.badge { position: absolute; top: 16px; left: 16px; z-index: 2; font-size: 12px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px; }
.badge--deal { background: var(--brand); color: var(--on-brand); box-shadow: 0 4px 10px rgba(247,181,0,.4); }

.price { font-size: 24px; font-weight: 800; color: var(--ink); }
.price--was { font-size: 16px; color: var(--muted); text-decoration: line-through; }
.price__unit { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }

/* ---------- Product image placeholders (CSS art, no external deps) ---------- */
.prodimg { aspect-ratio: 4 / 3; border-radius: 12px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #fbfcfe 0%, #eef1f7 100%); }
.prodimg::before { content: ""; position: absolute; inset: 0; opacity: .9;
  background-repeat: no-repeat; background-position: center; background-size: 46%; }
.prodimg::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 12%; height: 10%;
  background: radial-gradient(ellipse at center, rgba(19,25,34,.16), transparent 70%); }
/* category-specific silhouettes via inline SVG data URIs */
.prodimg--mic::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9890c' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='2' width='6' height='12' rx='3'/%3E%3Cpath d='M6 11a6 6 0 0 0 12 0M12 17v4M8.5 21h7'/%3E%3C/svg%3E"); }
.prodimg--monitor::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23344'  stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='2' width='14' height='20' rx='2'/%3E%3Ccircle cx='12' cy='9' r='3.4'/%3E%3Ccircle cx='12' cy='17' r='1.7'/%3E%3C/svg%3E"); }
.prodimg--interface::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23344'  stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3Ccircle cx='7' cy='12' r='2.4'/%3E%3Ccircle cx='12' cy='12' r='2.4'/%3E%3Cpath d='M17 10v4'/%3E%3C/svg%3E"); }
.prodimg--outboard::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23344'  stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='10' rx='1.5'/%3E%3Ccircle cx='7' cy='12' r='1.6'/%3E%3Ccircle cx='12' cy='12' r='1.6'/%3E%3Ccircle cx='17' cy='12' r='1.6'/%3E%3C/svg%3E"); }
.prodimg--console::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23344'  stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4v16M10 4v16M15 4v16M20 4v16'/%3E%3Ccircle cx='5' cy='9' r='1.4'/%3E%3Ccircle cx='10' cy='14' r='1.4'/%3E%3Ccircle cx='15' cy='8' r='1.4'/%3E%3Ccircle cx='20' cy='13' r='1.4'/%3E%3C/svg%3E"); }
.prodimg--headphone::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23344'  stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13a8 8 0 0 1 16 0'/%3E%3Crect x='3' y='13' width='4' height='7' rx='1.6'/%3E%3Crect x='17' y='13' width='4' height='7' rx='1.6'/%3E%3C/svg%3E"); }

/* ---------- Value props ---------- */
.valueprops { border-bottom: 1px solid var(--line); background: #fff; }
.valueprops__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 22px 24px; }
.vp { display: flex; align-items: center; gap: 14px; padding: 8px 14px; }
.vp + .vp { border-left: 1px solid var(--line); }
.vp__ico { width: 30px; height: 30px; fill: none; stroke: var(--brand); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.vp strong { display: block; font-size: 15px; }
.vp span { font-size: 13px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section--tight { padding: 16px 0 40px; }
.section--tight-top { padding-top: 28px; }
.section--surface { background: var(--surface); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section__head--center { justify-content: center; text-align: center; }
.section__title { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; }
.section__desc { color: var(--muted); font-size: 16px; margin: 8px 0 0; }
.section__link { color: var(--brand-ink); font-weight: 700; font-size: 15px; white-space: nowrap; }
.section__link:hover { color: var(--on-brand); }

/* ---------- Category grid ---------- */
.catgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  transition: .18s; }
.cat:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.cat__art { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 6px; }
.cat__art svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; }
.cat__logo { color: #fff; font-weight: 800; font-size: 16px; letter-spacing: .02em; line-height: 1; }
.cat__art--1, .cat__art--2, .cat__art--3, .cat__art--4,
.cat__art--5, .cat__art--6, .cat__art--7, .cat__art--8 {
  background: linear-gradient(155deg, #2a3a59 0%, #141d2e 100%); }
.cat:hover .cat__art { background: linear-gradient(155deg, #ffc24d, var(--brand-dk)); }
.cat:hover .cat__art svg { stroke: var(--on-brand); }
.cat__name { font-weight: 700; font-size: 16px; }
.cat__count { font-size: 13px; color: var(--muted); }

/* ---------- Promo strip ---------- */
.promo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.promo__card { border-radius: 18px; padding: 36px; color: #fff; position: relative; overflow: hidden;
  min-height: 200px; display: flex; flex-direction: column; justify-content: center; }
.promo__card--a { background: linear-gradient(120deg, #2a2207, #7a5b0f 58%, #f3ae00); }
.promo__card--b { background: linear-gradient(120deg, #0f1830, #243a6b 60%, #2d6cdf); }
.promo__tag { font-size: 12.5px; font-weight: 700; background: rgba(255,255,255,.18);
  padding: 5px 12px; border-radius: 999px; align-self: flex-start; margin-bottom: 12px; }
.promo__card h3 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.promo__card p { opacity: .85; margin: 0 0 16px; max-width: 320px; }
.promo__link { font-weight: 700; color: #fff; }
.promo__link:hover { text-decoration: underline; }

/* ---------- Product grid ---------- */
.prodgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; position: relative; transition: .18s; display: flex; flex-direction: column;
  min-width: 0; /* let 1fr grid tracks shrink below content min-content (prevents mobile blowout) */ }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #d7dde7; }
.card__badge { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 11.5px; font-weight: 700;
  background: var(--navy); color: #fff; padding: 4px 11px; border-radius: 999px; }
.card__badge--new { background: var(--ok); }
.card__badge--deal { background: var(--brand); color: var(--on-brand); }
.card__fav { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px;
  border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; }
.card__fav svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.card__fav:hover { border-color: var(--brand); }
.card__fav:hover svg { stroke: var(--brand); }
.card__img { margin-bottom: 14px; }
.card__photo { aspect-ratio: 1 / 1; border-radius: 12px; background: #fff; border: 1px solid var(--line);
  position: relative; overflow: hidden; }
.card__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform .25s ease; }
.card:hover .card__photo img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; flex: 1; }
.card__brand { font-size: 12px; font-weight: 700; color: var(--brand-ink); text-transform: uppercase; letter-spacing: .04em; overflow-wrap: anywhere; }
.card__name { font-size: 16px; font-weight: 700; margin: 4px 0 8px; overflow-wrap: anywhere; }
.card__rating { color: var(--gold); font-size: 14px; margin-bottom: 10px; }
.card__rating span { color: var(--muted); font-size: 13px; }
.card__price { display: flex; align-items: baseline; gap: 8px; margin: auto 0 14px; flex-wrap: wrap; }
.card__price .price { font-size: 20px; }

/* ---------- Blog / Articles ---------- */
.bloggrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: .18s; display: flex; flex-direction: column; }
.post:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #d7dde7; }
.post__img { display: block; aspect-ratio: 16/10; position: relative; }
.post__img::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10,15,25,.30)); }
.post__img--1 { background: linear-gradient(135deg, #1d2840, #f3ae00); }
.post__img--2 { background: linear-gradient(135deg, #2d6cdf, #1d2840); }
.post__img--3 { background: linear-gradient(135deg, #7a3ff2, #1d2840); }
.post__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.post__cat { font-size: 12px; font-weight: 700; color: var(--brand-ink); text-transform: uppercase; letter-spacing: .04em; }
.post__title { font-size: 18px; font-weight: 800; line-height: 1.32; margin: 8px 0 10px; }
.post__title a:hover { color: var(--brand-ink); }
.post__excerpt { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.post__meta { margin-top: auto; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 9px; }

/* ---------- Brands ---------- */
.brands { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.brandchip { background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 28px; font-weight: 800; font-size: 18px; letter-spacing: .02em; color: var(--navy);
  transition: .18s; }
.brandchip:hover { border-color: var(--brand); color: var(--brand-ink); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ---------- Studio ---------- */
.studio { background:
    radial-gradient(120% 80% at 0% 0%, #20304f 0%, transparent 60%),
    var(--navy);
  color: #fff; padding: 72px 0; }
.studio .section__title { color: #fff; }
.studio .section__desc { color: #aeb8ca; }
.section__head--invert { align-items: center; }
.studio__eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 700;
  color: var(--gold); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.studio__eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--gold); border-radius: 2px; }
.studio__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.room { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); overflow: hidden; transition: .18s; }
.room:hover { transform: translateY(-3px); border-color: rgba(227,168,60,.5); }
.room__img { aspect-ratio: 16/10; position: relative; overflow: hidden; background: var(--navy-2); }
.room__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.room:hover .room__img img { transform: scale(1.04); }
.room__img::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 55%, rgba(10,15,25,.45)); }
.room__img--a { background: linear-gradient(135deg,#3a2d22,#5a4632); }
.room__img--b { background: linear-gradient(135deg,#22303f,#33506b); }
.room__img--c { background: linear-gradient(135deg,#2b2740,#433c66); }
.room__body { padding: 20px; }
.room__body h3 { font-size: 18px; font-weight: 800; }
.room__body p { color: #aeb8ca; font-size: 14px; margin: 6px 0 12px; }
.room__price { font-weight: 700; color: var(--gold); font-size: 15px; }

/* ---------- Community ---------- */
.community { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.community__art { aspect-ratio: 4/3; border-radius: 18px; box-shadow: var(--shadow-lg);
  background:
    linear-gradient(150deg, rgba(20,29,46,.10), rgba(20,29,46,.24)),
    url("../img/studio/training-program.jpg") center/cover no-repeat, var(--navy);
  position: relative; overflow: hidden; }
.community__art::after { content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 58%, rgba(13,20,33,.32)); }
.community__label { font-weight: 800; font-size: 15px; color: var(--ink); margin: 18px 0 0; }
.ticklist { list-style: none; padding: 0; margin: 12px 0 26px; display: grid; gap: 10px; }
.ticklist li { padding-left: 30px; position: relative; color: var(--ink); }
.ticklist li::before { content:""; position:absolute; left:0; top:4px; width:18px; height:18px;
  border-radius:50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8780a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E") center/12px no-repeat; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--navy); color: #fff; padding: 56px 0; }
.newsletter__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.newsletter__copy h2 { font-size: 26px; font-weight: 800; }
.newsletter__copy p { color: #aeb8ca; margin: 6px 0 0; }
.newsletter__form { display: flex; gap: 10px; flex: 1; min-width: 300px; max-width: 480px; }
.newsletter__form input { flex: 1; border: none; border-radius: 999px; padding: 14px 20px;
  font-size: 15px; font-family: inherit; outline: none; }
.newsletter__form input:focus { box-shadow: 0 0 0 4px rgba(247,181,0,.45); }

/* ---------- Footer ---------- */
.footer { background: #0e1420; color: #aeb8ca; padding: 56px 0 20px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.brand--footer .brand__name { color: #fff; }
.brand--footer .brand__tag { color: #8b93a5; }
.footer__about { font-size: 14px; margin: 16px 0 18px; max-width: 320px; }
.footer__social { display: flex; flex-wrap: wrap; gap: 10px; }
.social { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.06);
  display: grid; place-items: center; transition: .18s; }
.social svg { width: 18px; height: 18px; fill: #cfd6e4; }
.social:hover { background: var(--brand); }
.social:hover svg { fill: var(--on-brand); }
.footer__col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer__col a { display: block; font-size: 14px; padding: 6px 0; color: #aeb8ca; }
.footer__col a:hover { color: #fff; }
.footer__contact { font-size: 14px; margin: 0 0 12px; }
.footer__contact a { display: inline; padding: 0; }
.footer__bar { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; font-size: 13px; }
.footer__bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__legal { display: flex; gap: 20px; }
.footer__legal a:hover { color: #fff; }

/* ---------- Brand logo image (header / footer) ---------- */
.brand__logo { height: 40px; width: auto; display: block; }
.brand--footer .brand__logo { height: 42px; }

/* ---------- Brand logo wall ---------- */
.brandgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.brandcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: .18s; }
.brandcard:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.brandcard__logo { height: 66px; display: grid; place-items: center; margin-bottom: 18px; }
.brandcard__logo img { max-height: 66px; max-width: 180px; object-fit: contain; }
.brandwordmark { font-size: 28px; font-weight: 800; letter-spacing: .06em; color: #0a5bd3; }
.brandcard__name { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.brandcard__desc { font-size: 14px; color: var(--muted); line-height: 1.65; margin: 0; }

/* ---------- Section eyebrow (gold bar label) ---------- */
.section__eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 700;
  color: var(--brand-ink); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.section__eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--brand); border-radius: 2px; }

/* ---------- Brand trust strip ---------- */
.brandstrip { background: #fff; border-bottom: 1px solid var(--line); padding: 24px 0; }
.brandstrip__inner { display: flex; align-items: center; justify-content: center; }
.brandstrip__logos { display: flex; align-items: center; gap: 30px 48px; flex: 1; flex-wrap: wrap;
  justify-content: center; }
.brandstrip__logos img { height: 28px; width: auto; max-width: 130px; object-fit: contain;
  filter: grayscale(1); opacity: .5; transition: .2s ease; }
.brandstrip__logos img:hover { filter: none; opacity: 1; }

/* ---------- Coming soon (products page) ---------- */
.comingsoon { max-width: 620px; margin: 0 auto; text-align: center; padding: 16px 0 24px; }
.comingsoon__icon { width: 76px; height: 76px; border-radius: 20px; margin: 0 auto 22px;
  background: linear-gradient(155deg, #2a3a59, #141d2e); display: grid; place-items: center; }
.comingsoon__icon svg { width: 38px; height: 38px; fill: none; stroke: var(--brand); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; }
.comingsoon h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; margin-bottom: 12px; }
.comingsoon p { color: var(--muted); font-size: 16px; line-height: 1.7; margin: 0 auto 26px; max-width: 520px; }
.comingsoon__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Thai text wrapping (avoid awkward breaks / orphans) ---------- */
.hero__title, .section__title, .room__body h3, .brandcard__name, .post__title { text-wrap: balance; }
.hero__sub, .section__desc, .brandcard__desc, .room__body p, .post__excerpt,
.comingsoon p, .ticklist li, .community__copy > p, .footer__about, .hero__pmeta {
  overflow-wrap: break-word; word-break: normal; text-wrap: pretty; }

/* ---------- LINE QR card ---------- */
.contactcta__side { display: flex; flex-direction: column; align-items: center; }
.qrcard { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg);
  width: 296px; max-width: 100%; transition: transform .18s ease; }
.qrcard:hover { transform: translateY(-3px); }
.qrcard__head { display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #06c755; color: #fff; padding: 13px; font-weight: 700; font-size: 15px; }
.qrcard__lineico { width: 22px; height: 22px; fill: #fff; }
.qrcard__frame { padding: 22px 22px 12px; display: grid; place-items: center; }
.qrcard__img { width: 100%; max-width: 212px; height: auto; aspect-ratio: 1; display: block; border-radius: 8px; }
.qrcard__id { text-align: center; font-size: 19px; font-weight: 800; color: var(--navy); margin: 0 0 16px; }
.qrcard__cta { padding: 0 18px 20px; }

/* ---------- Header LINE CTA + topbar ---------- */
.header__cta { padding: 11px 18px; }
.header.is-scrolled { box-shadow: var(--shadow-md); }
.topbar__line { color: #6fe6a0; font-weight: 700; }
.topbar__line:hover { color: #fff; }

/* ---------- Contact CTA (LINE) ---------- */
.contactcta { background:
    radial-gradient(120% 80% at 100% 0%, #20304f 0%, transparent 60%),
    var(--navy);
  color: #fff; padding: 64px 0; }
.contactcta__inner { display: grid; grid-template-columns: 1.4fr .85fr; gap: 48px; align-items: center; }
.contactcta__eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: var(--gold);
  letter-spacing: .04em; margin-bottom: 12px; }
.contactcta h2 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 800; }
.contactcta p { color: #aeb8ca; font-size: 16px; margin: 12px 0 26px; max-width: 540px; }
.contactcta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.contactcta__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contactcta__list li { padding-left: 32px; position: relative; color: #dfe5ef; font-size: 15.5px; }
.contactcta__list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px;
  border-radius: 50%; background: #06c755 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E") center/12px no-repeat; }

/* ---------- Room card as link (home studio section) ---------- */
.room { display: block; color: inherit; }
.room__more { margin-left: 8px; color: #aeb8ca; font-weight: 600; font-size: 13px; white-space: nowrap; }
.room:hover .room__more { color: var(--gold); }

/* ---------- Anchor landing offset (sticky header) ---------- */
section[id], .roomnav, .roomdetail { scroll-margin-top: 120px; }

/* ---------- Page hero note ---------- */
.pagehero__note { font-size: 14px; color: var(--muted); background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 15px; display: inline-block; margin: 10px 0 0; }
.pagehero__note strong { color: var(--ink); }

/* ---------- Sub-page sticky header (condenses on scroll) + jump nav ---------- */
.page-sub .header { transition: box-shadow .2s ease; }
@media (min-width: 861px) { .header.is-condensed .nav { display: none; } }
.page-sub section[id], .page-sub .roomdetail { scroll-margin-top: 150px; }

/* ---------- Room jump nav (sticky below header) ---------- */
.roomnav { position: sticky; top: 0; z-index: 39; background: #fff;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(19,25,34,.06); }
.roomnav__inner { display: flex; gap: 6px; overflow-x: auto; }
.roomnav a { padding: 16px 18px; font-weight: 700; font-size: 15px; color: var(--ink);
  white-space: nowrap; border-bottom: 2px solid transparent; transition: .15s; }
.roomnav a span { color: var(--muted); font-weight: 500; }
.roomnav a:hover { color: var(--brand-ink); border-bottom-color: var(--brand); }

/* ---------- Room detail ---------- */
.roomdetail { padding: 56px 0; }
.roomdetail--surface { background: var(--surface); }
.roomdetail__head { display: grid; grid-template-columns: 1.55fr .85fr; gap: 36px; align-items: start; }
.roombook { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 24px 26px; }
.roombook__price { font-size: 32px; font-weight: 800; color: #fff; line-height: 1; }
.roombook__price span { font-size: 15px; font-weight: 600; color: #aeb8ca; }
.roombook__terms { list-style: none; padding: 0; margin: 18px 0 20px; display: grid; gap: 9px; }
.roombook__terms li { font-size: 13.5px; color: #cfd6e4; padding-left: 24px; position: relative; }
.roombook__terms li::before { content: ""; position: absolute; left: 0; top: 1px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141d2e' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E") center/10px no-repeat; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 28px 0 30px; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px;
  border: 1px solid var(--line); display: block; }
.gallery__feat { grid-column: span 2; grid-row: span 2; aspect-ratio: auto !important; height: 100%; }

/* ---------- Quick specs ---------- */
.specquick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 34px; }
.specquick > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.specquick span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; }
.specquick strong { font-size: 18px; font-weight: 800; }

/* ---------- Spec groups ---------- */
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 30px; }
.specs--instrument { margin-top: 28px; grid-template-columns: repeat(2, 1fr); max-width: 760px; }
.specgroup h4 { font-size: 13px; font-weight: 800; color: var(--brand-ink); text-transform: uppercase;
  letter-spacing: .05em; margin-bottom: 11px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.specgroup ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.specgroup li { font-size: 14.5px; color: var(--ink); padding-left: 16px; position: relative; line-height: 1.5; }
.specgroup li::before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--brand); }
.specgroup__link { color: var(--brand-ink); font-weight: 700; margin-left: 4px; white-space: nowrap; }
.specgroup__link:hover { text-decoration: underline; }

/* ---------- Instrument category block ---------- */
.instcat { margin-top: 36px; }
.instcat:first-of-type { margin-top: 8px; }
.instcat__title { font-size: 20px; font-weight: 800; margin-bottom: 18px; display: flex;
  align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.instcat__only { font-size: 12px; font-weight: 700; color: var(--brand-ink); background: var(--brand-soft);
  padding: 3px 11px; border-radius: 999px; letter-spacing: .01em; }

/* ---------- Instrument grid ---------- */
.instgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.inst { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: .18s; display: flex; flex-direction: column; }
.inst:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #d7dde7; }
.inst__img { position: relative; aspect-ratio: 4/5; background: var(--surface); overflow: hidden; }
.inst__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.inst__tag { position: absolute; top: 10px; left: 10px; z-index: 2; background: rgba(20,29,46,.85); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em; }
.inst--soon .inst__img { background: var(--surface-2); }
.inst__soon { position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--muted); font-size: 13px; font-weight: 600; }
.inst__name { font-size: 15px; font-weight: 700; margin: 13px 15px 3px; line-height: 1.35; }
.inst__cat { font-size: 12.5px; color: var(--muted); margin: 0 15px 15px; }

/* ---------- Serif heading weight (override base 800 so Fraunces 600 applies) ---------- */
.hero__title, .section__title, .pagehero h1, .contactcta h2, .comingsoon h2,
.contactcta__copy h2 { font-weight: 600; letter-spacing: 0; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .hero { background:
    linear-gradient(rgba(20,34,59,.90) 0%, rgba(20,34,59,.80) 50%, rgba(20,34,59,.62) 100%),
    url("../img/hero/studio-hero.jpg") center / cover no-repeat, var(--navy); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__card { max-width: 380px; }
  .catgrid { grid-template-columns: repeat(3, 1fr); }
  .brandgrid { grid-template-columns: repeat(2, 1fr); }
  .studio__grid { grid-template-columns: repeat(2, 1fr); }
  .prodgrid { grid-template-columns: repeat(2, 1fr); }
  .bloggrid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .roomdetail__head { grid-template-columns: 1fr; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .instgrid { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .topbar__item--hide { display: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background:#fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
  .nav.is-open { display: block; }
  /* Dim the page behind the open menu so it reads as a solid layer (header stays above) */
  body.menu-open { overflow: hidden; }
  body.menu-open::before { content: ""; position: fixed; inset: 0; z-index: 40;
    background: rgba(15, 23, 42, .45); }
  .nav__inner { flex-direction: column; align-items: stretch; height: auto; padding: 12px 24px; gap: 2px; }
  .nav__link, .nav__cta { width: 100%; justify-content: flex-start; }
  .nav__cta { margin-left: 0; margin-top: 8px; }
  .header { position: relative; }
  .hamburger { display: flex; }
  .iconbtn__label { display: none; }
  .search { order: 3; flex-basis: 100%; }
  .header__inner { flex-wrap: wrap; height: auto; padding-top: 14px; padding-bottom: 14px; gap: 14px; }
  .valueprops__grid { grid-template-columns: 1fr 1fr; }
  .vp:nth-child(odd) { border-left: none; }
  .vp:nth-child(3), .vp:nth-child(4) { border-top: 1px solid var(--line); padding-top: 16px; }
  .studio__grid { grid-template-columns: 1fr; }
  .community { grid-template-columns: 1fr; }
  .promo { grid-template-columns: 1fr; }
  .bloggrid { grid-template-columns: 1fr; }
  .contactcta__inner { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .topbar { font-size: 12px; }
  .topbar__inner { height: 38px; }
  .topbar__item { white-space: nowrap; }
  .topbar__right .topbar__link:not(.topbar__line), .topbar__right .topbar__sep { display: none; }
  .header__cta span { display: none; }
  .header__cta { padding: 11px 13px; }
  .section { padding: 44px 0; }
  .catgrid { grid-template-columns: 1fr 1fr; }
  .brandgrid { grid-template-columns: 1fr; }
  .specquick { grid-template-columns: repeat(2, 1fr); }
  .specs, .specs--instrument { grid-template-columns: 1fr; }
  .instgrid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__feat { grid-column: span 2; grid-row: auto; aspect-ratio: 16/10 !important; height: auto; }
  .brandstrip__inner { flex-direction: column; gap: 16px; text-align: center; }
  .brandstrip__logos { justify-content: center; gap: 26px 30px; }
  .brandstrip__label br { display: none; }
  .prodgrid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .hero__pname { font-size: 18px; }
  .brandchip { padding: 12px 18px; font-size: 15px; }
}
@media (max-width: 420px) {
  .prodgrid, .catgrid { grid-template-columns: 1fr; }
  .brand__tag { display: none; }
  .qrcard { width: 100%; }
}

/* =========================================================
   Products listing (shop) + Product detail (PDP)
   Added 2026-06 — SSL product system
   ========================================================= */

/* All category tiles get the unified navy art (covers >8 categories) */
.cat__art { background: linear-gradient(155deg, #2a3a59 0%, #141d2e 100%); }

/* ---------- Shop toolbar: category filter + sort ---------- */
.shopbar { display: flex; align-items: center; justify-content: space-between; gap: 16px 22px;
  flex-wrap: wrap; margin-bottom: 26px; }
.filterchips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; font-size: 14px;
  transition: .16s ease; white-space: nowrap; }
.chip:hover { border-color: var(--brand); }
.chip__n { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip.is-active .chip__n { color: rgba(255,255,255,.62); }
.chip:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 999px; }
a.card:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: var(--radius); }
.shopbar__right { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.shop-count { color: var(--muted); font-size: 14px; }
.shop-count strong { color: var(--ink); font-weight: 700; }
.sortsel { position: relative; }
.sortsel select { appearance: none; -webkit-appearance: none; border: 1.5px solid var(--line); background: #fff;
  border-radius: 999px; padding: 9px 40px 9px 16px; font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--ink); cursor: pointer; }
.sortsel select:hover { border-color: var(--brand); }
.sortsel select:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.sortsel::after { content: ""; position: absolute; right: 17px; top: 50%; width: 7px; height: 7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); pointer-events: none; }

/* ---------- Product card (now a clickable link) ---------- */
a.card { color: inherit; }
.card__more { font-size: 13.5px; font-weight: 700; color: var(--brand-ink); margin-top: 2px; }
a.card:hover .card__more { color: var(--on-brand); }
.card__price { margin: auto 0 10px; min-height: 28px; }
.price--ask { font-size: 18px; font-weight: 800; color: var(--brand-ink); }
.card__price .price--ask { font-size: 17px; }

/* Photo placeholder for products with no image yet */
.card__photo--empty, .pdp__main--empty { background: var(--surface); border-style: dashed; }
.ph { display: flex; flex-direction: column; align-items: center; gap: 9px; color: var(--muted); text-align: center; }
.ph svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round; }
.ph span { font-size: 12.5px; font-weight: 600; }

/* Empty result state */
.shop-empty { text-align: center; padding: 56px 0 64px; color: var(--muted); }
.shop-empty h3 { font-size: 21px; color: var(--ink); margin-bottom: 8px; }
.shop-empty p { margin: 0 auto 20px; max-width: 440px; line-height: 1.7; }

/* ---------- Product detail (PDP) ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 46px; align-items: start; }
.pdp__main { aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  position: relative; overflow: hidden; }
.pdp__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 28px; }
.pdp__thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.pdp__thumb { width: 74px; height: 74px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  display: grid; place-items: center; padding: 7px; overflow: hidden; }
.pdp__thumb img { width: 100%; height: 100%; object-fit: contain; }
.pdp__thumb.is-active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

.pdp__info { padding-top: 2px; }
.pdp__brand { font-size: 13px; font-weight: 700; color: var(--brand-ink); text-transform: uppercase; letter-spacing: .05em; }
.pdp__title { font-size: clamp(25px, 3vw, 35px); font-family: var(--font-display); font-weight: 600;
  letter-spacing: 0; margin: 9px 0 16px; }
.pdp__short { color: var(--muted); font-size: 15.5px; line-height: 1.8; margin: 0 0 24px; }
.pdp__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pdp__price .price { font-size: 32px; }
.pdp__price .price--was { font-size: 19px; }
.pdp__pricenote { font-size: 13px; color: var(--muted); margin: 7px 0 22px; }
.pdp__buy { display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.pdp__assure { display: flex; flex-direction: column; gap: 11px; margin: 24px 0 0; padding: 20px 0 0;
  border-top: 1px solid var(--line); list-style: none; }
.pdp__assure li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.pdp__assure svg { width: 19px; height: 19px; fill: none; stroke: var(--brand-ink); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* PDP full-width sections (video, specs, related) */
.pdp__section { margin-top: 58px; }
.pdp__h2 { font-size: clamp(20px, 2.2vw, 26px); font-family: var(--font-display); font-weight: 600;
  letter-spacing: 0; margin-bottom: 20px; }
.pdp__videowrap { position: relative; width: 100%; max-width: 860px; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow-md); }
.pdp__videowrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pdp__videoplay { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; display: block; }
.pdp__poster { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp__playbtn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 48px; }
.pdp__playbtn svg { width: 100%; height: 100%; }
.pdp__playbtn-bg { fill: #212121; opacity: .82; transition: fill .15s ease, opacity .15s ease; }
.pdp__videoplay:hover .pdp__playbtn-bg, .pdp__videoplay:focus-visible .pdp__playbtn-bg { fill: #f00; opacity: 1; }
.pdp__videoplay:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* =========================================================
   Articles / Blog
   ========================================================= */
/* let .post cards show a real cover photo */
.post__img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.artpage { padding-top: 8px; }
.art__head { max-width: 820px; margin: 0 auto 22px; text-align: center; }
.art__cat { font-size: 12.5px; font-weight: 700; color: var(--brand-ink); text-transform: uppercase; letter-spacing: .06em; }
.art__h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.6vw, 42px); line-height: 1.18; margin: 12px 0 14px; }
.art__meta { color: var(--muted); font-size: 14.5px; }
.art__cover { margin: 0 0 36px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-md); aspect-ratio: 16 / 9; background: var(--surface); }
.art__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art__body { max-width: 760px; margin: 0 auto; }
.art__p { font-size: 17px; line-height: 1.9; color: #2a3340; margin: 0 0 22px; }
.art__h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(21px, 2.4vw, 27px); margin: 40px 0 16px; }
.art__h3 { font-size: 19px; font-weight: 800; margin: 32px 0 12px; }
.art__quote { margin: 28px 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--brand); }
.art__quote p { font-family: var(--font-display); font-weight: 500; font-style: italic; font-size: 20px; line-height: 1.7; color: var(--ink); margin: 0 0 10px; }
.art__quote cite { font-style: normal; font-size: 14px; font-weight: 700; color: var(--brand-ink); }
.art__figure { margin: 30px 0; }
.art__figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); display: block; }
.art__figure figcaption { margin-top: 10px; font-size: 13.5px; color: var(--muted); text-align: center; }
.art__list { margin: 4px 0 24px; padding: 0; list-style: none; }
.art__list li { position: relative; padding-left: 26px; margin-bottom: 11px; font-size: 16px; line-height: 1.7; }
.art__list li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.art__cta { margin: 44px 0 8px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.art__cta-text h3 { font-size: 20px; font-weight: 800; margin: 0 0 6px; }
.art__cta-text p { margin: 0; color: var(--muted); font-size: 14.5px; max-width: 460px; }
.art__cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.art__source { margin: 30px 0 0; font-size: 13px; color: var(--muted); word-break: break-word; }
.art__source a:hover { color: var(--brand-ink); }
@media (max-width: 600px) {
  .art__cta { flex-direction: column; align-items: flex-start; }
  .art__p { font-size: 16px; }
  .art__quote p { font-size: 18px; }
}
.hero__cardcta { display: flex; flex-direction: column; gap: 9px; }

/* =========================================================
   Home density + brand tiles + brand banner + mobile UX (2026-06)
   ========================================================= */
/* Compact category tiles (denser grid, centered) */
.catgrid { grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat { padding: 16px 12px; align-items: center; text-align: center; gap: 8px; }
.cat__art { width: 46px; height: 46px; margin-bottom: 2px; }
.cat__art svg { width: 26px; height: 26px; }
.cat__name { font-size: 14px; line-height: 1.3; }
@media (max-width: 1080px) { .catgrid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 680px)  { .catgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 420px)  { .catgrid { grid-template-columns: repeat(2, 1fr); } }

/* Compact brand tiles (logo + name only; descriptions live on the brand page) */
.brandgrid { grid-template-columns: repeat(6, 1fr); gap: 14px; }
.brandtile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 116px;
  text-align: center; transition: .18s ease; }
.brandtile:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.brandtile__logo { height: 44px; display: grid; place-items: center; }
.brandtile__logo img { max-height: 44px; max-width: 118px; object-fit: contain; }
.brandtile__name { font-size: 13.5px; font-weight: 700; color: var(--ink); }
@media (max-width: 1080px) { .brandgrid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 680px)  { .brandgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 420px)  { .brandgrid { grid-template-columns: repeat(2, 1fr); } }

/* Brand landing banner (products.html?brand=) */
.pagehero__logo { display: inline-block; background: #fff; padding: 8px 14px; border-radius: 10px;
  max-height: 52px; width: auto; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.pagehero__logo[hidden] { display: none; }
.pagehero--brand { background: var(--navy); padding: 38px 0 42px; position: relative; overflow: hidden; }
.pagehero--brand .container { position: relative; z-index: 2; }
.pagehero--brand .crumbs, .pagehero--brand .crumbs a { color: rgba(255,255,255,.78); }
.pagehero--brand .crumbs span { color: rgba(255,255,255,.45); }
.pagehero--brand .crumbs .crumbs__cur { color: #fff; }
.pagehero--brand h1 { color: #fff; }
.pagehero--brand p { color: rgba(255,255,255,.85); }
.pagehero--img { background-position: center; background-size: cover; }
.pagehero--img::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(10,14,24,.9) 0%, rgba(10,14,24,.66) 55%, rgba(10,14,24,.5) 100%); }

/* Mobile: sticky header so the menu follows on scroll (was position:relative) */
@media (max-width: 860px) {
  .header { position: sticky; top: 0; }
  .header.is-scrolled .search { display: none; }
}

/* Filter chips wrap onto multiple lines on small screens (no horizontal scroll —
   a nowrap row was overflowing the page width on mobile). */
@media (max-width: 700px) {
  .shopbar { flex-direction: column; align-items: stretch; }
  .shopbar__right { margin-left: 0; justify-content: space-between; }
}

/* Products: always 2 columns on phones */
@media (max-width: 420px) { .prodgrid { grid-template-columns: repeat(2, 1fr); } }

/* Back-to-top button (injected by main.js, all pages) */
.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 80; width: 46px; height: 46px; border: none;
  border-radius: 50%; background: var(--navy); display: grid; place-items: center; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s ease; box-shadow: var(--shadow-md); }
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.to-top:hover { background: var(--navy-2); }
@media (max-width: 860px) { .to-top { bottom: 84px; } }
.pdp__vidthumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; max-width: 860px; }
.pdp__vidthumb { position: relative; width: 150px; aspect-ratio: 16 / 9; border: 1.5px solid var(--line);
  border-radius: 10px; overflow: hidden; background: #000; padding: 0; cursor: pointer; }
.pdp__vidthumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .15s ease; }
.pdp__vidthumb:hover img { opacity: 1; }
.pdp__vidthumb.is-active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.pdp__vidthumb:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.pdp__playico { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.pdp__playico svg { width: 32px; height: 32px; fill: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }

.spec { margin-bottom: 26px; }
.spec__h { font-size: 16px; font-weight: 800; margin-bottom: 13px; color: var(--ink);
  display: inline-flex; align-items: center; gap: 9px; }
.spec__h::before { content: ""; width: 22px; height: 2px; background: var(--brand); border-radius: 2px; }
.spec p { color: var(--muted); font-size: 15px; line-height: 1.85; margin: 0 0 13px; max-width: 780px; }
.spec ul { margin: 0; padding: 0; list-style: none; max-width: 840px; }
.spec ul li { position: relative; padding-left: 25px; margin-bottom: 9px; font-size: 14.5px; line-height: 1.7; }
.spec ul li::before { content: ""; position: absolute; left: 5px; top: 10px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--brand); }
/* collapsible Features / Tech Specs (native <details>) */
details.spec--toggle { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: #fff; }
.spec__sum { list-style: none; cursor: pointer; padding: 16px 20px; font-size: 16px; font-weight: 800; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.spec__sum::-webkit-details-marker { display: none; }
.spec__sum::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s ease; flex-shrink: 0; }
details.spec--toggle[open] .spec__sum::after { transform: rotate(-135deg); }
.spec__sum:hover { color: var(--brand-ink); }
.spec__sum:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
.spec__content { padding: 2px 20px 18px; }
.spec__content p { margin-top: 0; }

@media (max-width: 860px) {
  .pdp { grid-template-columns: 1fr; gap: 26px; }
  .pdp__buy { max-width: none; }
  .pdp__section { margin-top: 44px; }
}

/* =========================================================
   Faceted shop filters (Sweetwater-style sidebar + mobile overlay)
   ========================================================= */
.shop-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 34px; align-items: start; }
.shop-main { min-width: 0; }
.shop-main .prodgrid { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); }

/* --- the filter panel (sidebar on desktop) --- */
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column;
  position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow: hidden; }
.filters__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 20px 12px; flex: none; }
.filters__scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 20px 8px; }
.filters__title { font-size: 17px; font-weight: 800; letter-spacing: .01em; }
.filters__clear { background: none; border: none; color: var(--brand-ink); font-size: 13px; font-weight: 700; cursor: pointer; padding: 4px 0; }
.filters__clear:hover { text-decoration: underline; }
.filters__clear[hidden] { display: none; }
.filters__foot { display: none; }
.filters__close { display: none; }

/* --- one facet group --- */
.facet { border-top: 1px solid var(--line); padding: 4px 0; }
.facet__head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: none; border: none; cursor: pointer; padding: 14px 0 12px; font: inherit; font-size: 15.5px; font-weight: 700; color: var(--ink); }
.facet__chevron { width: 16px; height: 16px; flex: none; stroke: var(--muted); stroke-width: 2.2; fill: none; transition: transform .18s ease; }
.facet.is-collapsed .facet__chevron { transform: rotate(-90deg); }
.facet__body { display: flex; flex-direction: column; gap: 2px; padding-bottom: 12px; }
.facet.is-collapsed .facet__body { display: none; }

/* --- a checkbox option --- */
.facet__opt { display: flex; align-items: center; gap: 11px; padding: 7px 4px; border-radius: 8px; cursor: pointer; font-size: 14.5px; color: var(--ink); }
.facet__opt:hover { background: var(--surface); }
.facet__opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.facet__box { flex: none; width: 19px; height: 19px; border: 1.8px solid var(--line); border-radius: 5px; display: grid; place-items: center; background: #fff; transition: .12s; }
.facet__box svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 3; fill: none; opacity: 0; }
.facet__opt input:checked + .facet__box { background: var(--navy); border-color: var(--navy); }
.facet__opt input:checked + .facet__box svg { opacity: 1; }
.facet__opt input:focus-visible + .facet__box { outline: 3px solid var(--brand); outline-offset: 2px; }
.facet__label { flex: 1; min-width: 0; }
.facet__n { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.facet__opt--checked { font-weight: 700; }

/* --- top tools bar (mobile filter button + sort) --- */
.shoptools { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-toggle { display: none; align-items: center; gap: 9px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font: inherit; font-weight: 700; font-size: 14.5px; padding: 10px 16px; border-radius: 10px; cursor: pointer; }
.filter-toggle:hover { border-color: var(--brand); }
.filter-toggle svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.9; fill: none; }
.filter-toggle__n { background: var(--brand); color: var(--on-brand); font-size: 12px; font-weight: 800; min-width: 20px; height: 20px;
  border-radius: 999px; display: inline-grid; place-items: center; padding: 0 6px; }
.filter-toggle__n[hidden] { display: none; }

/* --- active filter pills --- */
.active-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 8px 6px 13px; font-size: 13px; font-weight: 600; color: var(--ink); }
.pill__x { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  border: 1px solid var(--line); cursor: pointer; color: var(--muted); line-height: 1; font-size: 14px; }
.pill__x:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; gap: 0; }
  .shop-main .prodgrid { grid-template-columns: repeat(2, 1fr); }
  .filter-toggle { display: inline-flex; }
  /* the panel becomes a full-screen overlay */
  .filters { position: fixed; inset: 0; z-index: 120; border: none; border-radius: 0; padding: 0; margin: 0; max-height: none; top: 0;
    background: #fff; display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .26s ease;
    overflow: hidden; visibility: hidden; }
  .filters.is-open { transform: none; visibility: visible; box-shadow: var(--shadow-md); }
  .filters__head { padding: 16px 20px; border-bottom: 1px solid var(--line); flex: none; }
  .filters__title { font-size: 19px; }
  .filters__close { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; color: var(--brand-ink);
    font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; padding: 4px; }
  .filters__scroll { flex: 1; overflow-y: auto; padding: 0 20px; -webkit-overflow-scrolling: touch; }
  .facet__body { max-height: none; }
  /* 2-column option grid like Sweetwater mobile */
  .facet[data-cols="2"] .facet__body { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .facet[data-cols="2"] .facet__opt { border: 1px solid var(--line); border-radius: 10px; padding: 12px 12px; }
  .facet[data-cols="2"] .facet__opt:hover { background: #fff; border-color: var(--brand); }
  .filters__foot { display: flex; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); flex: none; }
  .filters__foot .btn { flex: 1; }
  .filters__clear--top { display: none; }
  body.filters-open { overflow: hidden; }
}
@media (max-width: 420px) {
  .shop-main .prodgrid { grid-template-columns: 1fr 1fr; }
}
