/* Kestrel Market — demo marketplace styles */
:root {
  --ink: #0b2239;
  --ink-2: #1d3a58;
  --text: #1c2733;
  --muted: #5d6b7b;
  --line: #e2e7ee;
  --line-2: #cfd7e1;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --brand: #0e7c74;
  --brand-dark: #0a5f59;
  --brand-tint: #e5f4f2;
  --accent: #f5a524;
  --accent-dark: #d98a0b;
  --deal: #d6452f;
  --ok: #1a8a4a;
  --warn: #b7791f;
  --err: #c53030;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(11, 34, 57, .06), 0 4px 16px rgba(11, 34, 57, .06);
  --shadow-lg: 0 10px 40px rgba(11, 34, 57, .16);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --container: 1280px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.5; font-size: 15px; }
img { max-width: 100%; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -.01em; }
code { background: var(--bg-soft); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
:focus-visible { outline: 3px solid rgba(14, 124, 116, .45); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 1000; border-radius: 6px; }
.skip-link:focus { left: 8px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.icon { width: 20px; height: 20px; flex: none; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid transparent; background: var(--bg-soft); color: var(--ink); font-weight: 600; cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s, transform .05s, box-shadow .15s; white-space: nowrap; line-height: 1.2; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn .icon { width: 18px; height: 18px; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--accent-dark); }
.btn--outline { background: #fff; border-color: var(--brand); color: var(--brand-dark); }
.btn--outline:hover { background: var(--brand-tint); }
.btn--ghost { background: transparent; color: var(--brand-dark); }
.btn--ghost:hover { background: var(--bg-soft); }
.btn--ghost-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost-light:hover { background: rgba(255,255,255,.2); }
.btn--danger { background: #fff; border-color: var(--err); color: var(--err); }
.btn--danger:hover { background: #fdecec; }
.btn--sm { padding: 6px 12px; font-size: 13.5px; }
.btn--lg { padding: 13px 24px; font-size: 16px; }
.btn--block { width: 100%; }
.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(0,0,0,.2); border-top-color: currentColor; animation: spin .7s linear infinite; color: var(--ink); }
.btn--primary.is-busy::after { border-color: rgba(255,255,255,.35); border-top-color: #fff; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--brand-dark); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; font-size: 14px; }
.link-btn:hover { text-decoration: underline; }
.link-btn .icon { width: 16px; height: 16px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Demo bar & header ---------- */
.demo-bar { background: var(--accent); color: var(--ink); font-size: 13px; }
.demo-bar__inner { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 6px 20px; flex-wrap: wrap; text-align: center; }
.demo-bar strong { background: var(--ink); color: var(--accent); padding: 1px 8px; border-radius: 4px; letter-spacing: .05em; font-size: 11.5px; }
.demo-bar a { color: var(--ink); text-decoration: underline; font-weight: 600; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.util-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); padding-top: 6px; padding-bottom: 2px; }
.util-row__links { display: flex; gap: 18px; }
.util-row a { color: var(--muted); }
.head-row { display: flex; align-items: center; gap: 18px; padding-top: 10px; padding-bottom: 10px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; flex: none; }
.logo__mark { width: 38px; height: 38px; }
.logo__text { font-weight: 800; font-size: 22px; letter-spacing: -.03em; color: var(--ink); }
.logo__text span { color: var(--brand); margin-left: 2px; font-weight: 700; }
.logo__text--light { color: #fff; }
.logo__text--light span { color: var(--accent); }
.search { flex: 1; display: flex; align-items: stretch; border: 2px solid var(--ink); border-radius: 999px; background: #fff; min-width: 0; position: relative; }
.search__field { flex: 1; display: flex; align-items: center; position: relative; min-width: 0; }
.search__icon { position: absolute; left: 14px; color: var(--muted); }
.search input { border: 0; outline: 0; width: 100%; padding: 10px 12px 10px 42px; background: transparent; border-radius: 999px; min-width: 0; }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search__cat { border: 0; border-left: 1px solid var(--line-2); background: transparent; padding: 0 12px; max-width: 170px; color: var(--muted); cursor: pointer; outline: 0; }
.search__btn { border-radius: 999px; margin: 3px; padding: 8px 26px; }
.suggest { position: absolute; top: calc(100% + 8px); left: -2px; right: -180px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 60; overflow: hidden; max-height: 70vh; overflow-y: auto; }
.suggest__group { padding: 8px 0; }
.suggest__group + .suggest__group { border-top: 1px solid var(--line); }
.suggest__label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 2px 14px 6px; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 8px 14px; color: var(--text); text-decoration: none; }
.suggest a:hover, .suggest a.is-active { background: var(--bg-soft); }
.suggest__thumb { width: 44px; height: 44px; flex: none; border-radius: 6px; background: var(--bg-soft); overflow: hidden; display: grid; place-items: center; }
.suggest__thumb img { width: 100%; height: 100%; object-fit: contain; }
.suggest__thumb svg { width: 20px; height: 20px; color: var(--muted); }
.suggest__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest__name mark { background: none; font-weight: 700; color: var(--ink); }
.suggest__price { font-weight: 700; color: var(--ink); }
.suggest__all { justify-content: center; font-weight: 600; color: var(--brand-dark) !important; border-top: 1px solid var(--line); }
.suggest__empty { padding: 14px; color: var(--muted); }
.head-actions { display: flex; gap: 4px; flex: none; }
.icon-btn { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 44px; min-height: 44px; padding: 4px 8px; background: none; border: 0; border-radius: 10px; color: var(--ink); cursor: pointer; text-decoration: none !important; font-size: 11.5px; }
.icon-btn:hover { background: var(--bg-soft); }
.icon-btn .icon { width: 24px; height: 24px; }
.badge { position: absolute; top: 2px; right: 6px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--deal); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.badge--cart { background: var(--brand); }
.badge.is-bump { animation: bump .4s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }
.nav-toggle { display: none; }
.cat-nav { border-top: 1px solid var(--line); }
.cat-nav__inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 4px; padding-bottom: 4px; }
.cat-nav__inner::-webkit-scrollbar { display: none; }
.cat-nav a { white-space: nowrap; padding: 8px 12px; border-radius: 999px; color: var(--text); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.cat-nav a:hover { background: var(--bg-soft); text-decoration: none; }
.cat-nav .icon { width: 16px; height: 16px; }
.cat-nav__deals { color: var(--deal) !important; font-weight: 700; }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(11, 34, 57, .45); animation: fade .2s; }
.drawer__panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(340px, 88vw); background: #fff; overflow-y: auto; padding: 16px; animation: slide .25s ease; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; }
.drawer__note { background: #fff6e5; border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.drawer__title { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 6px; }
.drawer__list { list-style: none; margin: 0; padding: 0; }
.drawer__list a { display: flex; gap: 12px; align-items: center; padding: 10px 6px; color: var(--text); border-radius: 8px; }
.drawer__list a:hover { background: var(--bg-soft); text-decoration: none; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(-100%); } }

/* ---------- Layout ---------- */
.main { min-height: 50vh; }
.page { padding-top: 20px; padding-bottom: 40px; }
.page--narrow { max-width: 560px; }
.page--prose { max-width: 820px; }
.page--prose h2 { margin-top: 28px; font-size: 20px; }
.page--prose li { margin-bottom: 6px; }
.page__title { font-size: 28px; margin: 6px 0 6px; }
.page__intro { color: var(--muted); margin: 0 0 4px; max-width: 70ch; }
.lead { font-size: 18px; }
.flashes { padding-top: 14px; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 10px; border: 1px solid; font-weight: 500; }
.alert--success { background: #e9f7ef; border-color: #b6e3c7; color: #145c33; }
.alert--error { background: #fdecec; border-color: #f5c2c2; color: #8f1d1d; }
.alert--warning { background: #fff6e5; border-color: #f7d9a2; color: #7a4f09; }
.alert--info { background: #e9f2fb; border-color: #c4dbf2; color: #164a7a; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: 4px; color: var(--line-2); }
.breadcrumbs a { color: var(--muted); }
.section { margin: 34px 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section__title { font-size: 22px; margin: 0; }
.section__link { font-weight: 600; white-space: nowrap; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel h2 { font-size: 18px; margin-top: 0; }
.panel__title { font-size: 20px; margin: 0 0 12px; }
.panel__titlebar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.panel__titlebar .panel__title { margin: 0; }
.h3 { font-size: 17px; margin: 22px 0 8px; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-top: 18px; }
.hero__main { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: radial-gradient(120% 140% at 85% 30%, #155e75 0%, var(--ink) 55%, #071627 100%); color: #fff; border-radius: 20px; padding: 40px; overflow: hidden; min-height: 340px; }
.hero__main::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(245,165,36,.35), transparent 65%); pointer-events: none; }
.hero__copy { max-width: 470px; position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(28px, 3.6vw, 42px); margin: 10px 0 12px; letter-spacing: -.025em; }
.hero p { color: rgba(255,255,255,.85); font-size: 16.5px; margin: 0 0 22px; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.hero__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero__product { position: relative; z-index: 1; width: 300px; flex: none; background: #fff; border-radius: 18px; padding: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.35); transform: rotate(2deg); transition: transform .3s; text-decoration: none !important; }
.hero__product:hover { transform: rotate(0deg) scale(1.02); }
.hero__product .pimg { aspect-ratio: 1; }
.hero__tag { display: block; text-align: center; margin-top: 8px; font-weight: 700; color: var(--ink); }
.hero__side { display: grid; gap: 16px; }
.promo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px; border-radius: 20px; background: var(--brand-tint); color: var(--ink); text-decoration: none !important; overflow: hidden; transition: box-shadow .2s; }
.promo:hover { box-shadow: var(--shadow); }
.promo--1 { background: #fff1e0; }
.promo__copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.promo__off { font-weight: 800; color: var(--deal); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.promo strong { font-size: 18px; }
.promo__name { font-size: 13.5px; color: var(--muted); }
.promo__price { font-weight: 800; font-size: 18px; margin-top: 4px; }
.promo__img { width: 120px; flex: none; }
.promo__img .pimg { aspect-ratio: 1; border-radius: 12px; }

/* Category tiles */
.cat-tiles { display: grid; grid-template-columns: repeat(9, 1fr); gap: 12px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 18px 8px; border-radius: var(--radius); background: var(--bg-soft); color: var(--ink); text-decoration: none !important; transition: background .15s, transform .15s; }
.cat-tile:hover { background: var(--brand-tint); transform: translateY(-2px); }
.cat-tile__icon { width: 56px; height: 56px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--brand); box-shadow: var(--shadow); flex: none; }
.cat-tile__icon .icon { width: 26px; height: 26px; }
.cat-tile__name { font-weight: 600; font-size: 13.5px; line-height: 1.25; }
.cat-tile__count { font-size: 12px; color: var(--muted); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 14px; }
.cat-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none !important; transition: box-shadow .2s, border-color .2s; }
.cat-card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.cat-card h2 { font-size: 17px; margin: 0 0 4px; }
.cat-card p { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.band { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; background: var(--brand-tint); border-radius: var(--radius); flex-wrap: wrap; }
.band > div { display: flex; gap: 14px; align-items: center; }
.band__icon { width: 34px; height: 34px; color: var(--brand); }
.band strong { display: block; color: var(--ink); }
.band span { color: var(--muted); font-size: 14px; }

/* ---------- Product images ---------- */
.pimg { position: relative; aspect-ratio: 1 / 1; width: 100%; background: #fff; overflow: hidden; border-radius: var(--radius-sm); display: grid; place-items: center; }
.pimg img { width: 100%; height: 100%; object-fit: contain; opacity: 1; transition: opacity .3s ease; }
.pimg.is-loading { background: linear-gradient(100deg, #eef2f6 20%, #f8fafc 40%, #eef2f6 60%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.pimg.is-loading img { opacity: 0; }
.pimg.is-error img { object-fit: cover; }
.pimg--none { background: repeating-linear-gradient(45deg, #f4f6f9, #f4f6f9 10px, #eef1f5 10px, #eef1f5 20px); color: #7b8797; text-align: center; font-size: 12.5px; font-weight: 600; line-height: 1.3; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; padding: 10px; }
.pimg--none svg { width: 40px; height: 40px; fill: currentColor; opacity: .7; }
@keyframes shimmer { to { background-position: -200% 0; } }
.img-credit { font-size: 12px; color: var(--muted); margin: 10px 0 0; }

/* ---------- Product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card:hover { box-shadow: var(--shadow); border-color: var(--line-2); transform: translateY(-2px); }
.card__media { display: block; padding: 12px; position: relative; }
.card__media .pimg { border-radius: 8px; }
.card__media img { transition: transform .4s ease, opacity .3s; }
.card:hover .card__media img { transform: scale(1.04); }
.ribbon { position: absolute; top: 18px; left: 18px; background: var(--deal); color: #fff; font-weight: 800; font-size: 12px; padding: 3px 8px; border-radius: 6px; }
.wish-btn { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); box-shadow: 0 1px 4px rgba(0,0,0,.15); display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: transform .15s; z-index: 2; }
.wish-btn:hover { transform: scale(1.08); }
.wish-btn .icon { width: 20px; height: 20px; }
.wish-btn.is-saved, .wish-inline.is-saved { color: var(--deal); }
.wish-btn.is-saved .icon, .wish-inline.is-saved .icon { fill: currentColor; }
.card__body { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card__brand { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.card__title { font-size: 14.5px; font-weight: 500; margin: 0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.card__title a { color: var(--text); }
.card__price { margin-top: 2px; }
.card__meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.card__add { margin-top: auto; padding-top: 8px; }
.price { font-weight: 800; font-size: 19px; color: var(--ink); }
.price--xl { font-size: 32px; }
.price-old { color: var(--muted); font-size: 13.5px; }
.price-off { color: var(--deal); font-weight: 700; font-size: 13.5px; }
.stars { position: relative; display: inline-block; width: 80px; height: 15px; vertical-align: -2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 15'%3E%3Cpath d='m8 .8 2.2 4.6 5 .7-3.6 3.5.9 5L8 12.2 3.5 14.6l.9-5L.8 6.1l5-.7Z' fill='%23d5dbe3'/%3E%3C/svg%3E") repeat-x; background-size: 16px 15px; }
.stars__fill { position: absolute; inset: 0 auto 0 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 15'%3E%3Cpath d='m8 .8 2.2 4.6 5 .7-3.6 3.5.9 5L8 12.2 3.5 14.6l.9-5L.8 6.1l5-.7Z' fill='%23f5a524'/%3E%3C/svg%3E") repeat-x; background-size: 16px 15px; }
.rating-num { font-size: 13px; font-weight: 600; margin-left: 4px; }
.rating-count { font-size: 12.5px; color: var(--muted); margin-left: 3px; }
.avail { font-weight: 600; }
.avail--in { color: var(--ok); }
.avail--low { color: var(--warn); }
.avail--out { color: var(--err); }
.ship-tag { color: var(--muted); }

/* Rails */
.rail { position: relative; }
.rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 10px; }
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > .card { scroll-snap-align: start; min-width: 200px; }
@media (min-width: 1100px) { .rail__track { grid-auto-columns: calc((100% - 5 * 16px) / 6); } }
.rail__btn { position: absolute; top: 38%; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink); display: grid; place-items: center; }
.rail__btn:disabled { opacity: 0; pointer-events: none; }
.rail__btn--prev { left: -14px; }
.rail__btn--next { right: -14px; }

/* ---------- Listing ---------- */
.listing-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.result-count { color: var(--muted); margin: 0; font-size: 14px; }
.listing-tools { display: flex; gap: 10px; align-items: center; }
.sort-form { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.sort-form select, .filters select { padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; }
.filter-toggle { display: none; }
.listing { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: start; }
.filters { position: sticky; top: 150px; max-height: calc(100vh - 170px); overflow-y: auto; padding-right: 6px; }
.filters__head { display: flex; justify-content: space-between; align-items: center; }
.filters__head h2 { font-size: 18px; margin: 0; }
.filters__close { display: none; }
.filter-group { border: 0; border-top: 1px solid var(--line); padding: 14px 0; margin: 0; }
.filter-group legend { font-weight: 700; color: var(--ink); padding: 0; margin-bottom: 8px; float: left; width: 100%; }
.filter-group legend + * { clear: both; }
.filter-links { list-style: none; margin: 0; padding: 0; }
.filter-links a { display: block; padding: 4px 0; color: var(--text); font-size: 14px; }
.filter-links a.is-active { font-weight: 700; color: var(--brand-dark); }
.filter-scroll { max-height: 240px; overflow-y: auto; }
.check { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 14px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); flex: none; }
.check small { color: var(--muted); margin-left: auto; }
.check--box { align-items: flex-start; padding: 14px; background: #fff6e5; border: 1px solid #f7d9a2; border-radius: var(--radius-sm); margin: 18px 0 4px; }
.check--box input { margin-top: 2px; }
.price-range { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.price-range input { width: 100%; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; }
.filters__foot { padding-top: 10px; display: grid; gap: 8px; }
.pagination { display: flex; gap: 6px; justify-content: center; margin: 30px 0 10px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); color: var(--text); }
.pagination a:hover { background: var(--bg-soft); text-decoration: none; }
.pagination .is-current { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 700; }
.pagination .gap { border: 0; }
.empty { text-align: center; padding: 50px 20px; }
.empty__icon { width: 64px; height: 64px; color: var(--line-2); margin: 0 auto 10px; }
.empty h1, .empty h2 { margin: 0 0 8px; }
.empty p { color: var(--muted); margin: 0 auto 18px; max-width: 46ch; }
.empty__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Product detail ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; align-items: start; margin-top: 8px; }
.gallery { position: sticky; top: 150px; }
.gallery__main { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; }
.gallery__main .pimg { aspect-ratio: 1; }
.gallery__slide { margin: 0; }
.gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.95); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); color: var(--ink); display: grid; place-items: center; }
.gallery__nav--prev { left: 12px; }
.gallery__nav--next { right: 12px; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery__thumb { width: 72px; flex: none; padding: 4px; border: 2px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.gallery__thumb.is-active { border-color: var(--brand); }
.gallery__thumb .pimg { border-radius: 6px; }
.buybox__brand { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 13px; }
.buybox__title { font-size: clamp(22px, 2.4vw, 28px); margin: 6px 0 8px; }
.buybox__rating { margin-bottom: 14px; font-size: 14px; }
.buybox__price { padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.buybox__was { color: var(--muted); font-size: 14px; margin-top: 2px; }
.buybox__facts { margin: 14px 0; display: grid; gap: 8px; font-size: 14.5px; }
.buybox__facts > div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.buybox__facts dt { color: var(--muted); }
.buybox__facts dd { margin: 0; }
.buybox__form { display: grid; gap: 12px; margin-bottom: 10px; }
.buybox form + form { margin-bottom: 10px; }
.qty-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.qty-row label { font-weight: 600; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { width: 38px; height: 38px; border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--bg-soft); }
.qty input { width: 44px; text-align: center; border: 0; outline: 0; -moz-appearance: textfield; appearance: textfield; font-weight: 600; background: transparent; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm button { width: 32px; height: 32px; }
.qty--sm input { width: 36px; }
.wish-inline { margin: 4px 0 14px; }
.demo-notice { display: flex; gap: 12px; align-items: flex-start; background: #fff6e5; border: 1px solid #f7d9a2; border-left: 5px solid var(--accent); padding: 14px 16px; border-radius: var(--radius-sm); margin: 0 0 18px; font-size: 14.5px; }
.demo-notice .icon { color: var(--accent-dark); margin-top: 1px; }
.demo-notice--compact { font-size: 13.5px; margin: 0; }
.pdp-details { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.specs { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.specs th, .specs td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 40%; color: var(--muted); font-weight: 500; }

/* ---------- Cart ---------- */
.cart { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.cart__lines { display: grid; gap: 12px; }
.cart-line { display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: opacity .25s, transform .25s; }
.cart-line.is-removing { opacity: 0; transform: translateX(20px); }
.cart-line__img .pimg { aspect-ratio: 1; }
.cart-line__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 14px; }
.cart-line__name { font-weight: 600; color: var(--text); font-size: 15.5px; }
.cart-line__actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.cart-line__price { text-align: right; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.cart-line__price strong { font-size: 19px; color: var(--ink); }
.cart__clear { text-align: right; }
.summary { position: sticky; top: 150px; background: var(--bg-soft); border-radius: var(--radius); padding: 22px; }
.summary h2 { font-size: 19px; margin: 0 0 14px; }
.summary__rows { margin: 0 0 16px; display: grid; gap: 10px; font-size: 14.5px; }
.summary__rows > div { display: flex; justify-content: space-between; gap: 10px; }
.summary__rows dd { margin: 0; font-weight: 600; }
.summary__save dd { color: var(--ok); }
.summary__total { border-top: 1px solid var(--line-2); padding-top: 12px; font-size: 18px; }
.summary__total dt, .summary__total dd { font-weight: 800; color: var(--ink); }
.summary__note { display: flex; gap: 6px; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.summary__note .icon { width: 16px; height: 16px; }
.freeship { background: #fff; border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; font-size: 13.5px; }
.freeship__bar { height: 6px; background: var(--line); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.freeship__bar span { display: block; height: 100%; background: var(--brand); border-radius: 3px; transition: width .4s; }

/* ---------- Checkout ---------- */
.checkout-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.checkout-top__badge { background: var(--ink); color: var(--accent); font-weight: 800; font-size: 12px; letter-spacing: .08em; padding: 5px 10px; border-radius: 6px; }
.steps { list-style: none; display: flex; padding: 0; margin: 0 0 18px; counter-reset: s; gap: 6px; }
.steps li { flex: 1; position: relative; }
.steps li > a, .steps li > span { min-height: 49px; display: flex; align-items: center; gap: 8px; padding: 10px 6px; border-bottom: 3px solid var(--line); font-size: 13.5px; color: var(--muted); text-decoration: none; }
.steps__n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--line); font-weight: 700; font-size: 13px; flex: none; color: var(--text); }
.steps .is-done > a { border-color: var(--brand); color: var(--brand-dark); }
.steps .is-done .steps__n { background: var(--brand); color: #fff; }
.steps .is-current > span { border-color: var(--accent); color: var(--ink); font-weight: 700; }
.steps .is-current .steps__n { background: var(--accent); }
.checkout__grid { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.mini-lines { list-style: none; margin: 0; padding: 0; }
.mini-lines li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mini-lines__img { position: relative; width: 64px; flex: none; }
.mini-lines__qty { position: absolute; top: -6px; right: -6px; background: var(--ink); color: #fff; min-width: 22px; height: 22px; border-radius: 11px; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.mini-lines__name { flex: 1; font-size: 14.5px; }
.mini-lines__price { font-weight: 700; }
.form { display: grid; gap: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 5px; font-size: 14px; }
.field > span { font-weight: 600; color: var(--ink); }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14, 124, 116, .15); }
.field [aria-invalid="true"] { border-color: var(--err); background: #fffafa; }
.field__error { color: var(--err); font-size: 13px; font-weight: 500; }
.form-actions { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.form-actions--center { justify-content: center; }
.ship-options { display: grid; gap: 10px; margin-bottom: 10px; }
.ship-option { display: flex; align-items: center; gap: 14px; padding: 16px; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .15s, background .15s; }
.ship-option:hover { border-color: var(--line-2); }
.ship-option:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.ship-option input { width: 18px; height: 18px; accent-color: var(--brand); }
.ship-option__body { flex: 1; display: grid; font-size: 14px; color: var(--muted); }
.ship-option__body strong { color: var(--ink); font-size: 15.5px; }
.ship-option__price { font-weight: 800; color: var(--ink); }
.review-blocks, .order-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 8px; }
.review-block { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14px; }
.review-block h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 6px; }
.review-block__head { display: flex; justify-content: space-between; }
.review-block address { font-style: normal; }
.review-block p { margin: 0; }

/* ---------- Orders ---------- */
.confirm-hero { display: flex; gap: 18px; align-items: center; background: linear-gradient(135deg, var(--brand-tint), #fff); border: 1px solid #bfe3df; border-radius: 18px; padding: 24px; margin-bottom: 18px; }
.confirm-hero__icon { width: 60px; height: 60px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; animation: pop .5s ease; }
.confirm-hero__icon .icon { width: 32px; height: 32px; stroke-width: 2.6; }
.confirm-hero h1 { margin: 0 0 6px; font-size: 24px; }
.confirm-hero p { margin: 0; }
.order-no { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: #fff; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.1); } }
.order-layout { display: grid; grid-template-columns: 360px 1fr; gap: 20px; align-items: start; }
.timeline { list-style: none; margin: 10px 0 0; padding: 0; }
.timeline li { position: relative; display: flex; gap: 14px; padding-bottom: 20px; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.timeline li.is-done:not(:last-child)::before { background: var(--brand); }
.timeline__dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; display: grid; place-items: center; flex: none; z-index: 1; }
.timeline .is-done .timeline__dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.timeline .is-current .timeline__dot { box-shadow: 0 0 0 5px rgba(14, 124, 116, .2); }
.timeline__dot .icon { width: 15px; height: 15px; stroke-width: 3; }
.timeline div { display: grid; font-size: 14px; }
.timeline li:not(.is-done) strong { color: var(--muted); }
.timeline span, .timeline time { color: var(--muted); font-size: 13px; }
.status-pill { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--brand-tint); color: var(--brand-dark); font-size: 13.5px; font-weight: 700; vertical-align: middle; }
.status-pill--delivered { background: #e9f7ef; color: var(--ok); }
.status-pill--cancelled { background: #fdecec; color: var(--err); }
.status-pill--on_hold { background: #fff6e5; color: var(--warn); }
.order-table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-top: 12px; }
.order-table th, .order-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.order-table thead th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.order-table tfoot th { text-align: right; font-weight: 500; color: var(--muted); }
.order-table .num { text-align: right; white-space: nowrap; }
.order-table__total th, .order-table__total td { font-weight: 800; color: var(--ink) !important; font-size: 16px; }
.orders-list { display: grid; gap: 10px; margin: 16px 0; }
.order-card { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); }
.order-card:hover { box-shadow: var(--shadow); text-decoration: none; }
.order-card > div { display: grid; }

/* Print page */
.print-page { background: var(--bg-soft); }
.print-doc { max-width: 820px; margin: 30px auto; background: #fff; padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow); }
.print-doc__toolbar { display: flex; gap: 10px; margin-bottom: 20px; }
.print-doc__head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid var(--ink); padding-bottom: 16px; }
.print-doc__meta { text-align: right; font-size: 14px; }
.print-doc__stamp { border: 2px dashed var(--accent-dark); color: #7a4f09; background: #fff6e5; padding: 10px 14px; border-radius: 8px; font-weight: 700; text-align: center; margin: 18px 0; }
.print-doc__foot { color: var(--muted); font-size: 13px; margin-top: 24px; }

/* ---------- Contact / static ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.contact__list { list-style: none; padding: 0; display: grid; gap: 10px; }
.contact__list li { display: flex; gap: 10px; align-items: center; }
.hp { position: absolute; left: -9999px; }
details { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 10px; }
details summary { font-weight: 700; cursor: pointer; color: var(--ink); }
details p { margin: 10px 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); margin-top: 50px; font-size: 14px; }
.footer-perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-perks > div { display: flex; gap: 12px; align-items: center; }
.footer-perks .icon { width: 30px; height: 30px; color: var(--accent); }
.footer-perks strong { display: block; color: #fff; }
.footer-perks span { font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding-top: 34px; padding-bottom: 30px; }
.footer-brand p { max-width: 46ch; margin-top: 10px; }
.site-footer h2 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; padding-bottom: 22px; font-size: 12.5px; color: rgba(255,255,255,.55); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: grid; gap: 10px; max-width: min(380px, calc(100vw - 40px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; background: var(--ink); color: #fff; padding: 14px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); animation: toastIn .3s ease; font-size: 14.5px; }
.toast--error { background: #8f1d1d; }
.toast--warning { background: #7a4f09; }
.toast .icon { color: var(--accent); margin-top: 1px; }
.toast--error .icon, .toast--warning .icon { color: #fff; }
.toast a { color: var(--accent); font-weight: 700; margin-left: 4px; }
.toast__close { margin-left: auto; background: none; border: 0; color: rgba(255,255,255,.7); cursor: pointer; font-size: 18px; line-height: 1; padding: 0 0 0 8px; }
.toast.is-leaving { animation: toastOut .25s ease forwards; }
@keyframes toastIn { from { transform: translateY(16px); opacity: 0; } }
@keyframes toastOut { to { transform: translateY(16px); opacity: 0; } }

/* ---------- Page loading bar ---------- */
.loadbar { position: fixed; top: 0; left: 0; height: 3px; background: var(--accent); z-index: 300; width: 0; transition: width 8s cubic-bezier(.1,.7,.2,1); }
.loadbar.is-on { width: 85%; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cat-tiles { grid-template-columns: repeat(5, 1fr); }
  .hero { grid-template-columns: 1fr; }
  .hero__side { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-perks { grid-template-columns: 1fr 1fr; }
  .util-row__hello { display: none; }
  .util-row { justify-content: flex-end; }
}
@media (max-width: 900px) {
  .head-row { flex-wrap: wrap; gap: 8px 12px; }
  .nav-toggle { display: inline-flex; }
  .logo { margin-right: auto; }
  .logo__mark { width: 32px; height: 32px; }
  .logo__text { font-size: 19px; }
  .search { order: 3; flex-basis: 100%; }
  .search__cat { display: none; }
  .suggest { right: -2px; }
  .icon-btn__label { display: none; }
  .util-row, .cat-nav { display: none; }
  .listing { grid-template-columns: 1fr; }
  .filter-toggle { display: inline-flex; }
  .filters { position: fixed; inset: 0 auto 0 0; width: min(340px, 88vw); max-height: none; background: #fff; z-index: 120; padding: 18px; box-shadow: var(--shadow-lg); transform: translateX(-105%); transition: transform .25s ease; top: 0; }
  .filters.is-open { transform: none; }
  .filters__close { display: inline-flex; }
  body.filters-open::after { content: ""; position: fixed; inset: 0; background: rgba(11,34,57,.45); z-index: 110; }
  .pdp { grid-template-columns: 1fr; gap: 20px; }
  .gallery, .summary, .filters { position: static; }
  .filters { position: fixed; }
  .pdp-details { grid-template-columns: 1fr; }
  .cart, .checkout__grid, .order-layout { grid-template-columns: 1fr; }
  .review-blocks, .order-grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .site-header { position: sticky; }
  .hero__main { padding: 28px; }
  .hero__product { width: 220px; }
  .steps__l { display: none; }
  .steps .is-current .steps__l { display: inline; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .container { padding: 0 14px; }
  .demo-bar__inner { padding: 5px 14px; font-size: 12px; }
  .hero__main { flex-direction: column; align-items: flex-start; min-height: 0; padding: 24px 20px; }
  .hero__product { width: 100%; max-width: 260px; align-self: center; transform: none; }
  .hero__side { grid-template-columns: 1fr; }
  .promo__img { width: 96px; }
  .cat-tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cat-tile { padding: 12px 4px; }
  .cat-tile__icon { width: 46px; height: 46px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card__media { padding: 8px; }
  .card__body { padding: 0 10px 10px; }
  .card__title { font-size: 13.5px; }
  .price { font-size: 17px; }
  .wish-btn { top: 10px; right: 10px; width: 34px; height: 34px; }
  .ribbon { top: 12px; left: 12px; }
  .rail__track { grid-auto-columns: 46%; gap: 10px; }
  .rail__track > .card { min-width: 0; }
  .rail__btn { display: none; }
  .cart-line { grid-template-columns: 84px 1fr; gap: 12px; padding: 12px; }
  .cart-line__price { grid-column: 2; text-align: left; flex-direction: row; align-items: baseline; gap: 8px; flex-wrap: wrap; }
  .form-grid { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column-reverse; align-items: stretch; }
  .form-actions .btn { width: 100%; white-space: normal; }
  .panel { padding: 16px; }
  .page__title { font-size: 23px; }
  .footer-grid, .footer-perks { grid-template-columns: 1fr; }
  .order-card { grid-template-columns: 1fr auto; }
  .order-card > strong { grid-column: 2; }
  .confirm-hero { flex-direction: column; text-align: center; }
  .print-doc { padding: 20px; margin: 0; border-radius: 0; }
  .listing-head { align-items: stretch; }
  .listing-tools { justify-content: space-between; width: 100%; }
  .toasts { right: 10px; left: 10px; bottom: 10px; max-width: none; }
  .buybox__facts > div { grid-template-columns: 96px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .no-print, .demo-bar, .site-header, .site-footer, .toasts { display: none !important; }
  body, .print-page { background: #fff; font-size: 12pt; }
  .print-doc { box-shadow: none; margin: 0; padding: 0; max-width: none; }
  a { color: inherit; }
}
@media (max-width: 640px) {
  .head-row { gap: 8px 6px; }
  .head-actions { gap: 0; }
  .icon-btn { min-width: 38px; padding: 4px; }
  .badge { right: 0; }
  .logo { gap: 7px; }
}
