/* ============================================================
   UNISI B2B prototype — shared styles
   Palette: warm white #F7F5F1 / ink #242424 / wine #6B2838
   ============================================================ */
:root {
  --warm: #F7F5F1;
  --paper: #FFFFFF;
  --panel: #EFEDE8;
  --ink: #242424;
  --muted: #5C5C56;      /* >=5:1 on warm & white */
  --faint: #75756E;      /* large text only */
  --line: #DBD8D2;
  --line-soft: #E7E4DE;
  --imgbg: #E9E8E4;
  --wine: #6B2838;
  --wine-dark: #58202E;
  --radius: 2px;
  --maxw: 1240px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--warm);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.kicker {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--wine);
}

/* ---------- utility bar ---------- */
.utility { background: var(--ink); color: #EDEBE6; font-size: 12.5px; letter-spacing: 0.08em; }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 12px; }
.utility .u-right { color: #C9C7C1; }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,245,241,0.97); border-bottom: 1px solid var(--line);
}
.site-bar { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.logo {
  display: inline-block; line-height: 0;
}
.logo img { height: 30px; width: auto; display: block; }
nav.main { display: flex; gap: 26px; flex: 1; }
nav.main a {
  text-decoration: none; color: var(--ink);
  font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 8px 0; border-bottom: 2px solid transparent;
}
nav.main a:hover, nav.main a[aria-current="page"] { border-bottom-color: var(--wine); }
.head-tools { display: flex; align-items: center; gap: 12px; }
.searchbox { display: flex; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); height: 40px; padding: 0 12px; gap: 8px; }
.searchbox svg { flex: none; opacity: 0.55; }
.searchbox input { border: 0; outline: none; background: transparent; font: inherit; font-size: 13.5px; width: 150px; color: var(--ink); }
.burger { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px;
  border-radius: var(--radius); border: 1px solid var(--wine);
  font: inherit; font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--wine); color: #fff; }
.btn-primary:hover { background: var(--wine-dark); }
.btn-outline { background: transparent; color: var(--wine); }
.btn-outline:hover { background: rgba(107,40,56,0.06); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.65); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.08); }
.btn[disabled], .btn.added { background: #3E5E43; border-color: #3E5E43; color: #fff; cursor: default; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 13px; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 52% 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 52px; font-weight: 600; letter-spacing: -0.01em; margin: 14px 0 18px; }
.hero .sub { font-size: 17px; color: var(--muted); max-width: 46ch; margin: 0 0 28px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .note { margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.hero-figure { width: 100%; max-width: 420px; justify-self: end; }
.hero-figure .ph {
  aspect-ratio: 3 / 4; background: var(--imgbg); border-radius: var(--radius); overflow: hidden;
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }
.hero-figure figcaption { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* ---------- occasion chips ---------- */
.occasions { padding: 8px 0 10px; }
.occasions .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.occasions .label { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px;
  border: 1px solid var(--line); background: var(--paper); border-radius: 999px;
  font-size: 13.5px; color: var(--ink); text-decoration: none;
}
.chip:hover { border-color: var(--wine); color: var(--wine); }

/* ---------- sections ---------- */
section.block { padding: 64px 0; }
section.block.alt { background: var(--panel); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 12px; }
.sec-head h2 { font-size: 30px; font-weight: 600; }
.sec-head .more { font-size: 14px; color: var(--wine); font-weight: 600; text-decoration: none; white-space: nowrap; }
.sec-intro { color: var(--muted); font-size: 15.5px; max-width: 62ch; margin: 0 0 28px; }

/* ---------- product cards ---------- */
.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.card .ph { aspect-ratio: 3 / 4; background: var(--imgbg); overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.card a.ph-link { display: block; }
.card .ph-link:hover img { transform: scale(1.02); }
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .code { font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; color: var(--ink); }
.card .name { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.card .name a { text-decoration: none; color: inherit; }
.card .name a:hover { color: var(--wine); }
.card .hint { font-size: 12px; color: var(--faint); display: flex; align-items: center; gap: 6px; }
.card .hint .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--wine); flex: none; }
.card .actions { margin-top: auto; padding-top: 8px; }
.card .actions .btn { width: 100%; }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.team-copy p { color: var(--muted); margin: 14px 0 0; font-size: 16px; }
.cap-list { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.cap-list h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.cap-list p { margin: 0; color: var(--muted); font-size: 14.5px; }
.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.photo-note {
  aspect-ratio: 3 / 4; border: 1.5px dashed #B9B5AD; border-radius: var(--radius);
  background: rgba(255,255,255,0.5); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; padding: 14px; text-align: center;
}
.photo-note .tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: #8A857C;
  border: 1px solid #C9C5BC; border-radius: 3px; padding: 2px 8px; text-transform: uppercase;
}
.photo-note .cap { font-size: 12.5px; color: var(--muted); line-height: 1.45; }

/* ---------- two entry points ---------- */
.entries { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.entry {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 30px 30px 28px;
}
.entry h3 { font-size: 21px; font-weight: 600; margin-bottom: 10px; }
.entry p { color: var(--muted); font-size: 15px; margin: 0 0 22px; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 30px; }
.step { border-top: 2px solid var(--ink); padding-top: 14px; }
.step .num { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--wine); }
.step h3 { font-size: 16.5px; font-weight: 600; margin: 6px 0 6px; }
.step p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; padding: 18px 0; font-size: 16px; font-weight: 600;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { color: var(--wine); font-size: 20px; font-weight: 400; flex: none; }
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq .answer { padding: 0 0 18px; color: var(--muted); font-size: 15px; max-width: 66ch; }

/* ---------- CTA + footer ---------- */
.cta-dark { background: var(--ink); color: #F2F0EB; padding: 64px 0; }
.cta-dark .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.cta-dark h2 { font-size: 30px; font-weight: 600; margin-bottom: 10px; }
.cta-dark p { color: #BDBBB4; margin: 0; max-width: 56ch; }
footer.site { background: #1B1B19; color: #C9C7C1; padding: 56px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 44px; }
.foot-grid .logo img { height: 22px; }
.foot-grid p { font-size: 13.5px; margin: 14px 0 0; max-width: 30ch; }
.foot-grid h4 { color: #fff; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 14px; font-weight: 600; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid a { color: #C9C7C1; text-decoration: none; font-size: 13.5px; }
.foot-grid a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid #33332F; padding: 18px 0; font-size: 12.5px; color: #8F8D86; }

/* ---------- breadcrumb / page heads ---------- */
.crumbs { font-size: 13px; color: var(--muted); padding: 22px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--wine); }
.crumbs .sep { color: #A9A69E; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 14px 0 8px; }
.page-head h1 { font-size: 38px; font-weight: 600; }
.page-head .count { font-size: 13.5px; color: var(--muted); }

/* ---------- listing ---------- */
.listing-layout { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 18px 0 40px; }
.filters h3 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin: 22px 0 10px; }
.filters h3:first-child { margin-top: 0; }
.filters fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 2px; }
.filters label {
  display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink);
  padding: 8px 6px; border-radius: var(--radius); cursor: pointer; min-height: 40px;
}
.filters label:hover { background: rgba(107,40,56,0.05); }
.filters input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--wine); }
.filters .checked { color: var(--wine); font-weight: 600; }
.clear-all {
  border: 0; background: none; color: var(--wine); font: inherit; font-size: 13px;
  font-weight: 600; cursor: pointer; padding: 6px 0; text-decoration: underline; display: none;
}
.clear-all.show { display: inline-block; }
.result-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.result-bar .showing { font-size: 13.5px; color: var(--muted); }
.sort { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.sort select { font: inherit; font-size: 13.5px; height: 38px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 0 8px; color: var(--ink); }
.pager { display: flex; justify-content: center; gap: 8px; padding: 30px 0 10px; }
.pager button {
  min-width: 42px; min-height: 42px; border: 1px solid var(--line); background: var(--paper);
  font: inherit; font-size: 14px; cursor: pointer; border-radius: var(--radius); color: var(--ink);
}
.pager button[aria-current="page"] { background: var(--wine); border-color: var(--wine); color: #fff; font-weight: 600; }
.pager button:hover:not([aria-current="page"]) { border-color: var(--wine); color: var(--wine); }
.no-results { display: none; text-align: center; padding: 70px 0; }
.no-results.show { display: block; }
.no-results h3 { font-size: 19px; margin-bottom: 8px; }
.no-results p { color: var(--muted); margin: 0 0 20px; }

/* ---------- detail ---------- */
.proto-bar {
  background: #2E2A26; color: #E8E4DC; font-size: 13px; padding: 10px 0;
}
.proto-bar .wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.proto-bar .tag { font-weight: 700; letter-spacing: 0.1em; font-size: 11px; border: 1px solid #6B655C; padding: 2px 8px; border-radius: 3px; color: #CFC9BE; }
.proto-bar button {
  font: inherit; font-size: 13px; min-height: 34px; padding: 0 14px; cursor: pointer;
  border-radius: var(--radius); border: 1px solid #6B655C; background: transparent; color: #E8E4DC;
}
.proto-bar button.on { background: var(--wine); border-color: var(--wine); color: #fff; }
.proto-bar .hint { color: #A8A296; font-size: 12px; }

.detail-layout { display: grid; grid-template-columns: minmax(380px, 520px) 1fr; gap: 56px; padding: 26px 0 60px; align-items: start; }
.detail-media .main-ph { aspect-ratio: 3 / 4; background: var(--imgbg); border-radius: var(--radius); overflow: hidden; }
.detail-media .main-ph img { width: 100%; height: 100%; object-fit: cover; }
.thumb-row { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.thumb {
  width: 86px; border: 1px solid var(--line); background: var(--imgbg); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; padding: 0; font: inherit;
}
.thumb .tph { aspect-ratio: 3 / 4; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-pressed="true"] { border-color: var(--wine); box-shadow: 0 0 0 1px var(--wine); }
.thumb .tlabel { display: block; font-size: 11px; color: var(--muted); padding: 5px 0 6px; text-align: center; background: var(--paper); }
.detail-info .code { font-size: 13px; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.detail-info h1 { font-size: 32px; font-weight: 600; margin: 8px 0 16px; }
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.badge {
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; border-radius: 999px; padding: 5px 12px;
  background: var(--panel); color: var(--ink); border: 1px solid var(--line-soft);
}
.badge.status-open { background: rgba(62,94,67,0.1); color: #2F4A34; border-color: rgba(62,94,67,0.3); }
.badge.status-preview { background: var(--panel); color: var(--muted); }
.detail-info .desc { color: var(--muted); font-size: 15.5px; margin: 0 0 22px; }
.spec { display: grid; grid-template-columns: 150px 1fr; gap: 0; border-top: 1px solid var(--line); margin-bottom: 24px; }
.spec > div { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec .k { color: var(--muted); }
.spec .v { color: var(--ink); }
.qty-block { margin-bottom: 26px; }
.qty-block label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.qty-block select {
  font: inherit; font-size: 15px; height: 46px; min-width: 240px; border: 1px solid var(--line);
  background: var(--paper); border-radius: var(--radius); padding: 0 12px; color: var(--ink);
}
.detail-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.sample-note { font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; max-width: 60ch; }
.request-note { font-size: 13.5px; color: var(--muted); background: var(--panel); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 20px; }

/* ---------- inquiry page ---------- */
.inq-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; padding: 26px 0 60px; align-items: start; }
.inq-panel { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 26px; }
.inq-panel h2 { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.inq-panel .sub { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.inq-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.inq-item .iph { width: 64px; aspect-ratio: 3 / 4; background: var(--imgbg); border-radius: var(--radius); overflow: hidden; }
.inq-item img { width: 100%; height: 100%; object-fit: cover; }
.inq-item .icode { font-size: 12.5px; font-weight: 600; letter-spacing: 0.05em; }
.inq-item .iname { font-size: 13px; color: var(--muted); }
.inq-item .qty { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.inq-item .qty select { font: inherit; font-size: 12.5px; height: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.inq-item .rm {
  border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 15px;
  width: 40px; height: 40px; border-radius: var(--radius);
}
.inq-item .rm:hover { color: var(--wine); background: rgba(107,40,56,0.06); }
.inq-empty { text-align: center; padding: 34px 10px; color: var(--muted); }
.inq-empty p { margin: 0 0 18px; font-size: 14.5px; }
.req-type { display: grid; gap: 10px; margin-bottom: 6px; }
.req-type label { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; cursor: pointer; }
.req-type input { width: 17px; height: 17px; accent-color: var(--wine); margin-top: 3px; }
.req-type .small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; }
.field label .opt { color: var(--faint); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 12px; min-height: 46px;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid rgba(107,40,56,0.35); outline-offset: 1px; }
.field .err { display: none; font-size: 12.5px; color: #A03345; }
.field.invalid input { border-color: #A03345; }
.field.invalid .err { display: block; }
.submit-row { margin-top: 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.submit-row .fine { font-size: 12.5px; color: var(--muted); }
.inq-ok { display: none; text-align: center; padding: 30px 12px; }
.inq-ok.show { display: block; }
.inq-ok .mark { width: 52px; height: 52px; border-radius: 50%; background: rgba(62,94,67,0.12); color: #2F4A34; font-size: 26px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.inq-ok h3 { font-size: 21px; margin-bottom: 8px; }
.inq-ok .ref { font-size: 14px; color: var(--ink); background: var(--panel); display: inline-block; padding: 6px 14px; border-radius: var(--radius); margin: 8px 0 14px; }
.inq-ok p { color: var(--muted); font-size: 14.5px; max-width: 46ch; margin: 0 auto; }
.inq-fail { display: none; border: 1px solid #C99; background: #FDF3F4; color: #7E2A38; border-radius: var(--radius); padding: 14px 16px; font-size: 14px; margin-bottom: 16px; }
.inq-fail.show { display: block; }

/* ---------- design note (prototype-only visible notes) ---------- */
.dnote {
  font-size: 12.5px; color: #8A857C; background: rgba(233,232,228,0.7);
  border: 1px dashed #C9C5BC; border-radius: var(--radius); padding: 10px 12px; line-height: 1.5;
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .grid-products { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 44px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  nav.main, .searchbox { display: none; }
  .burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--line); background: var(--paper);
    border-radius: var(--radius); cursor: pointer; margin-left: auto;
  }
  .site-bar { gap: 14px; }
  .head-tools { margin-left: 0; }
  nav.main.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 24px 18px; gap: 2px;
  }
  nav.main.open a { padding: 13px 0; border-bottom: 0; font-size: 15px; }
  .hero { padding: 40px 0 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 37px; }
  .hero-figure { max-width: 340px; justify-self: start; }
  .grid-products { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .team-grid, .entries { grid-template-columns: 1fr; gap: 28px; }
  .photo-row { grid-template-columns: repeat(3, 1fr); }
  .listing-layout { grid-template-columns: 1fr; gap: 18px; }
  .filters-desktop { display: none; }
  .filters-open-btn { display: inline-flex; }
  .detail-layout, .inq-layout { grid-template-columns: 1fr; gap: 30px; }
  .cta-dark .wrap { flex-direction: column; align-items: flex-start; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .logo img { height: 26px; }
  .hero h1 { font-size: 32px; }
  .page-head h1 { font-size: 30px; }
  .sec-head h2 { font-size: 24px; }
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .utility .u-right { display: none; }
}

/* ---------- mobile filter drawer ---------- */
.filters-open-btn { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); font: inherit; font-size: 14px; cursor: pointer; color: var(--ink); }
.drawer-backdrop { display: none; position: fixed; inset: 0; background: rgba(20,20,18,0.45); z-index: 90; }
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; width: min(340px, 88vw); background: var(--warm);
  z-index: 100; transform: translateX(-105%); transition: transform 0.22s ease; padding: 20px;
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer-backdrop.show { display: block; }
.drawer .d-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.drawer .d-head h3 { font-size: 17px; }
.drawer .d-close { border: 0; background: none; font-size: 22px; cursor: pointer; color: var(--muted); width: 44px; height: 44px; }
.drawer .d-actions { display: grid; gap: 10px; margin-top: 22px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
