/* =========================================================
   Base (partilhada com a gestão)
   ========================================================= */
:root {
  --font: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sans: var(--font);
  --cond: var(--font);

  --bg: #ebecef;
  --paper: var(--bg);
  --surface: #ffffff;
  --ink: #020309;
  --text: #242526;
  --muted: #66676c;
  --ink-2: #4b4c52;
  --ink-3: #66676c;
  --line: #dcdde0;
  --line-2: #ecf1f3;
  --line-3: #d5dbde;

  --blue: #0071ce;
  --blue-2: #005ea9;
  --blue-3: #056ee8;
  --blue-soft: #e6f1fb;
  --red: #c82814;
  --soft: rgba(18, 80, 105, .08);
  --chip-ink: #5e6466;

  --res: #8a5300;
  --res-bg: #fff1cf;
  --sold: #9e1f1f;
  --wa: #157f45;
  --wa-2: #106636;

  --r-card: 4px;
  --r-btn: 8px;
  --wrap: 1272px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.4; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { top: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.ic { width: 20px; height: 20px; flex: none; }
.grow { flex: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: var(--r-btn); border: 1px solid transparent;
  font-size: 16px; font-weight: 600; letter-spacing: -.5px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; letter-spacing: 0; }
.btn-lg { min-height: 48px; border-radius: 12px; font-weight: 500; letter-spacing: 0; }
.btn-blue, .btn-primary { background: var(--blue); color: #fff; }
.btn-blue:hover, .btn-primary:hover { background: var(--blue-2); }
.btn-blue2 { background: var(--blue-3); color: #fff; }
.btn-blue2:hover { background: #0359c0; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-outline { background: var(--surface); color: var(--blue); border: 2px solid var(--blue); }
.btn-soft { background: var(--soft); color: var(--text); }
.btn-soft:hover { background: rgba(18, 80, 105, .14); }
.btn-line { background: var(--surface); color: var(--text); border-color: var(--line-3); }
.btn-line:hover { border-color: var(--muted); }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-btn);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none;
}
.icon-btn:hover { border-color: var(--muted); }

.field { display: grid; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field > span { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--surface); font-size: 16px; color: var(--ink);
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23242526' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: var(--blue); }

.noimg { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); }
.noimg .ic { width: 44px; height: 44px; stroke-width: 1.2; }
.empty { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 48px 24px; text-align: center; display: grid; justify-items: center; gap: 10px; }
.empty h1, .empty h2, .empty h3 { font-size: 20px; font-weight: 700; color: var(--ink); }
.empty p { color: var(--muted); max-width: 44ch; }
.empty .btn { margin-top: 8px; }
.empty-ic { width: 52px; height: 52px; color: var(--muted); stroke-width: 1.2; }
.empty-page { margin: 48px auto; max-width: 640px; }

/* =========================================================
   Página do vendedor (lista)
   ========================================================= */
.sh-bar { background: var(--surface); box-shadow: 0 1px 4px rgba(0, 0, 0, .16); position: relative; }
.sh-bar-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.sh-bar-in.has-logo { grid-template-columns: 160px minmax(0, 1fr) auto; }
.logo-box {
  width: 160px; height: 100px; padding: 20px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-card); display: grid; place-items: center;
}
.logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sh-info h1 { font-size: 22px; line-height: 28px; font-weight: 700; color: var(--ink); letter-spacing: -.2px; }
.sh-info p { font-size: 12px; line-height: 14px; color: var(--muted); margin-top: 4px; }
.sh-actions { display: flex; gap: 8px; }
.sh-desc { margin-top: 12px; max-width: 72ch; font-size: 15px; line-height: 1.55; color: var(--ink-2); white-space: pre-line; }
.sh-actions .btn { min-height: 48px; }
.sh-tabs { display: flex; margin-top: 8px; }
.sh-tabs a {
  width: 128px; height: 56px; display: grid; place-items: center; font-size: 14px; color: var(--ink-2); text-decoration: none;
}
.sh-tabs a:hover { color: var(--ink); }
.sh-tabs a[aria-current="page"] { color: var(--blue); font-weight: 700; box-shadow: inset 0 -2px 0 var(--blue); }

.sv-main { padding: 24px 0 48px; }
.panel-tab + .panel-tab { margin-top: 24px; }
.inv-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; min-height: 50px; margin-bottom: 16px; }
.inv-head h2 { font-size: 20px; line-height: 20px; font-weight: 700; color: var(--ink); margin-right: auto; }
.inv-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.inv-filters { order: 2; }
.inv-clear { order: 1; font-size: 14px; font-weight: 600; text-decoration: none; }
.inv-clear:hover { text-decoration: underline; }
.sort-in { position: relative; display: flex; align-items: center; }
.inv-head select {
  appearance: none; -webkit-appearance: none; height: 48px; min-width: 170px; padding: 0 40px 0 12px;
  border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); font-size: 16px; color: var(--ink); cursor: pointer;
}
.inv-head select:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
.fsel.is-on select { border-color: var(--blue); color: var(--blue); font-weight: 600; }
.sort-order { margin-left: 8px; }
.sort-order select { min-width: 200px; }
.sort-chev { position: absolute; right: 12px; pointer-events: none; width: 22px; height: 22px; color: var(--ink); }
.fsel.is-on .sort-chev { color: var(--blue); }
.sort-ic { display: none; }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 16px; }
.grid > li { min-width: 0; }
.inv-foot { margin-top: 24px; font-size: 14px; color: var(--muted); }

.card { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.card:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, .1); }
.c-media { position: relative; aspect-ratio: 4 / 3; background: var(--bg); border-radius: var(--r-card) var(--r-card) 0 0; overflow: hidden; }
.c-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.c-track::-webkit-scrollbar { display: none; }
.c-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: block; }
.c-slide img { width: 100%; height: 100%; object-fit: cover; }
.c-noimg { display: grid; place-items: center; color: var(--muted); }
.c-noimg .ic { width: 44px; height: 44px; stroke-width: 1.2; }
.c-tags { position: absolute; left: 8px; top: 8px; display: flex; gap: 6px; }
.tag { font-size: 12px; font-weight: 600; line-height: 1; padding: 6px 8px; border-radius: var(--r-card); }
.tag-res { background: var(--res-bg); color: var(--res); }
.tag-sold { background: var(--ink); color: #fff; }
.c-arrow {
  position: absolute; top: 50%; translate: 0 -50%; width: 32px; height: 32px; padding: 4px; border: 0; border-radius: var(--r-card);
  background: #fff; color: var(--blue); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .15s;
}
.c-arrow .ic { width: 20px; height: 20px; stroke-width: 2; }
.c-prev { left: 8px; } .c-next { right: 8px; }
.card:hover .c-arrow:not(:disabled), .c-arrow:focus-visible { opacity: 1; }
.c-arrow:disabled { visibility: hidden; }
.c-dots { position: absolute; left: 50%; bottom: 12px; translate: -50% 0; display: flex; gap: 8px; pointer-events: none; }
.c-dots span { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line); background: rgba(2, 3, 9, .25); }
.c-dots span.on { border-color: #fff; background: #fff; }
.c-count {
  position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px;
  border-radius: 16px; background: #fff; color: var(--ink); font-size: 12px; line-height: 14px;
}
.c-count .ic { width: 15px; height: 15px; }
.c-body { flex: 1; display: block; padding: 16px; color: inherit; text-decoration: none; }
.c-title { font-size: 16px; line-height: 22px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-body:hover .c-title { text-decoration: underline; }
.c-meta { list-style: none; margin: 4px 0 0; padding: 0; font-size: 14px; line-height: 16.8px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-meta li { display: inline; }
.c-meta li + li::before { content: " · "; }
.c-price { margin-top: 16px; font-size: 16px; line-height: 22px; font-weight: 600; color: var(--red); }
.c-price span { font-size: 12px; }
.c-price s { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.c-price.is-sold { color: var(--muted); }
.c-price.is-ask { color: var(--ink); }
.card.is-sold .c-slide img { filter: grayscale(.85); opacity: .8; }

.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; }
.box h2 { font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 16px; }
.box-text { white-space: pre-line; max-width: 72ch; line-height: 1.55; }
.box-line { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--muted); font-size: 14px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .ic { color: var(--muted); margin-top: 2px; }
.contact-list span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.contact-list a { font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* Rodapé */
.foot { background: var(--surface); border-top: 1px solid var(--line); }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; padding-bottom: 20px; flex-wrap: wrap; }
.foot-brand strong { display: block; font-size: 16px; color: var(--ink); }
.foot-brand span { font-size: 14px; color: var(--muted); }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; flex-wrap: wrap; }
.foot-links a { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-size: 14px; }
.foot-links a:hover { color: var(--blue); }
.foot-links .ic { width: 18px; height: 18px; color: var(--muted); }
.foot-base { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 24px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--muted); }
.foot-base a { color: var(--muted); }

.m-cta { display: none; }

/* =========================================================
   Página do anúncio
   ========================================================= */
.page-ad { background: var(--surface); }
.dh { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line-2); }
.dh-in { display: flex; align-items: center; gap: 8px; height: 60px; }
.dh-back { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; color: var(--ink); }
.dh-back:hover, .dh-act:hover { background: var(--soft); }
.dh-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; min-width: 0; }
.dh-brand img { height: 30px; max-width: 110px; object-fit: contain; }
.dh-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dh-act { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--ink); font-size: 15px; cursor: pointer; }

.ad { padding-top: 24px; padding-bottom: 48px; }
.ad-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 16px; }
.ad-head h1 { font-size: 28px; line-height: 1.25; font-weight: 600; color: var(--ink); letter-spacing: -.3px; }
.ad-chips { display: flex; gap: 6px; }
.chip { display: inline-block; padding: 6px 8px; border-radius: 8px; background: var(--soft); color: var(--chip-ink); font-size: 12px; line-height: 14px; font-weight: 500; }
.chip-res { background: var(--res-bg); color: var(--res); }
.chip-sold { background: var(--ink); color: #fff; }

.ad-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; column-gap: 32px; align-items: start; }
.ad-side { position: sticky; top: 76px; }
.ad-side-m { display: none; }

.price-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; padding: 20px; box-shadow: 0 2px 14px rgba(0, 0, 0, .08); }
.pc-price { display: flex; align-items: baseline; gap: 4px; color: var(--text); }
.pc-price strong { font-size: 32px; line-height: 35px; font-weight: 600; letter-spacing: -.5px; }
.pc-price span { font-size: 16px; font-weight: 600; }
.pc-price .pc-ask { font-size: 26px; }
.pc-sold { font-size: 28px; font-weight: 600; color: var(--muted); }
.pc-old { margin-top: 4px; font-size: 14px; color: var(--muted); }
.pc-meta { list-style: none; margin: 10px 0 0; padding: 0; font-size: 16px; line-height: 1.45; color: var(--muted); }
.pc-meta li { display: inline; }
.pc-meta li + li::before { content: " · "; }
.pc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pc-note { margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--soft); color: var(--ink-2); font-size: 14px; }
.pc-res { background: var(--res-bg); color: var(--res); }
.pc-btns { display: grid; gap: 12px; margin-top: 20px; }
.pc-edit { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 14px; text-decoration: none; }
.pc-edit .ic { width: 16px; height: 16px; }

.gal { position: relative; margin-bottom: 20px; }
/* Foto principal com a proporção das fotos (1600x1134), sem corte; 2 pequenas ao lado. */
.mosaic { display: grid; gap: 8px; grid-template-columns: 3fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 1.88; }
.mosaic .tile:first-child { grid-row: 1 / span 2; }
.mosaic .tile:nth-child(n+4) { display: none; }
.m2 .tile:nth-child(2) { grid-row: 1 / span 2; }
.m1 { grid-template-columns: 1fr; grid-template-rows: 1fr; aspect-ratio: 1.41; }
.tile { display: block; min-height: 0; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--bg); cursor: zoom-in; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.tile:hover img { transform: scale(1.02); }
.gal-all {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px;
  border: 0; border-radius: 8px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}
.gal-all .ic { width: 18px; height: 18px; }
.gal-count { display: none; }
.gal-empty { height: 320px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; align-content: center; gap: 8px; color: var(--muted); }
.gal-empty .ic { width: 52px; height: 52px; stroke-width: 1.2; }

.seller { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-radius: 12px; background: #f6f7f8; margin-bottom: 8px; }
.seller-logo { width: 96px; height: 52px; flex: none; padding: 6px; display: grid; place-items: center; border-radius: var(--r-card); background: #fff; border: 1px solid var(--line); }
.seller-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.seller strong { display: block; font-size: 15px; color: var(--ink); }
.seller span { font-size: 13px; color: var(--muted); }

.sec { padding: 28px 0; border-bottom: 1px solid var(--line-2); }
.sec:last-child { border-bottom: 0; }
.sec h2 { font-size: 24px; line-height: 26px; font-weight: 600; color: var(--ink); margin-bottom: 20px; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.stats li { display: grid; gap: 2px; align-content: start; }
.st-ic { width: 28px; height: 28px; color: var(--ink); stroke-width: 1.6; margin-bottom: 8px; }
.stats strong { font-size: 16px; line-height: 20px; font-weight: 600; color: var(--ink); }
.stats span { font-size: 12px; line-height: 14px; color: var(--muted); }
.desc { white-space: pre-line; line-height: 1.55; max-width: 75ch; }
.ref { margin-top: 20px; font-size: 12px; color: var(--muted); }
.extras { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.extras li { break-inside: avoid; position: relative; padding: 6px 0 6px 26px; }
.extras li::before { content: ""; position: absolute; left: 3px; top: 12px; width: 11px; height: 6px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); rotate: -45deg; }
.sub { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.rows { margin: 0; }
.rows div { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.rows dt { color: var(--muted); }
.rows dd { margin: 0; color: var(--text); }
.similar { border-bottom: 0; margin-top: 8px; }

/* Ecrã inteiro */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0d0f12; color: #fff; }
.lightbox::backdrop { background: #0d0f12; }
.lb-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-track figure { flex: 0 0 100%; margin: 0; display: grid; place-items: center; scroll-snap-align: center; scroll-snap-stop: always; }
.lb-track img { max-width: 100%; max-height: 100dvh; object-fit: contain; }
.lb-close, .lb-nav { position: fixed; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; z-index: 4; }
.lb-close { top: 14px; right: 14px; width: 44px; height: 44px; background: rgba(255, 255, 255, .14); color: #fff; }
.lb-nav { top: 50%; translate: 0 -50%; width: 44px; height: 44px; background: #fff; color: var(--ink); }
.lb-nav:disabled { opacity: 0; pointer-events: none; }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
.lb-count { position: fixed; left: 50%; bottom: 18px; translate: -50% 0; padding: 4px 10px; border-radius: 16px; background: rgba(255, 255, 255, .14); font-size: 14px; }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1000px) {
  .ad-grid { grid-template-columns: minmax(0, 1fr); }
  .ad-side { display: none; }
  .ad-side-m { display: block; margin-bottom: 20px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 24px; }
}

@media (max-width: 767px) {
  body { padding-bottom: 80px; }
  .m-cta {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 12px 16px max(12px, env(safe-area-inset-bottom)); background: var(--surface); box-shadow: 0 -1px 4px rgba(0, 0, 0, .16);
  }
  .m-cta .btn { min-height: 48px; }

  .sh-bar-in { display: block; padding-top: 20px; padding-bottom: 20px; min-height: 0; }
  .sh-desc { font-size: 15px; }
  .sh-bar-in.has-logo .sh-info { margin-top: 16px; }
  .sh-actions { display: none; }
  .sh-tabs { padding: 0; margin-top: 12px; border-bottom: 1px solid #9ea0a6; }
  .sh-tabs a { flex: 1; width: auto; font-size: 15px; }

  .sv-main { padding-top: 0; }
  .inv-head { margin: 0 -16px 16px; padding: 12px 16px; background: var(--surface); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); gap: 10px; }
  .inv-head h2 { font-size: 16px; }
  .inv-filters { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .inv-head select { min-width: 0; width: 100%; height: 40px; font-size: 15px; padding: 0 30px 0 10px; }
  .fsel:first-child { grid-row: 1; grid-column: 1; }
  .sort-order { grid-row: 1; grid-column: 2; margin-left: 0; }
  .sort-order select { min-width: 0; padding-left: 40px; }
  .sort-ic { display: block; position: absolute; left: 12px; pointer-events: none; width: 20px; height: 20px; }
  .sort-chev { width: 18px; height: 18px; right: 8px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .c-arrow { display: none; }
  .panel-tab + .panel-tab { margin-top: 16px; }
  .box { padding: 20px 16px; }

  .foot-in { display: grid; }
  .foot-links { display: grid; gap: 10px; }

  .dh-act span { display: none; }
  .ad { padding-top: 0; }
  .ad-head { margin: 16px 0 12px; }
  .ad-head h1 { font-size: 22px; }
  .gal { margin: 0 -16px 16px; }
  .gal .mosaic { display: flex; height: auto; aspect-ratio: 1.41; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .gal .mosaic::-webkit-scrollbar { display: none; }
  .gal .mosaic .tile:nth-child(n) { display: block; flex: 0 0 100%; border-radius: 0; scroll-snap-align: start; scroll-snap-stop: always; }
  .gal-all { display: none; }
  .gal-count { display: block; position: absolute; right: 12px; bottom: 12px; padding: 4px 8px; border-radius: 16px; background: #fff; color: var(--ink); font-size: 12px; }
  .gal-empty { border-radius: 0; height: 240px; }
  .price-card { box-shadow: none; border-color: var(--line); }
  .sec { padding: 24px 0; }
  .sec h2 { font-size: 20px; margin-bottom: 16px; }
  .extras { columns: 1; }
  .rows div { padding: 12px 0; gap: 12px; }
  .lb-nav { display: none; }
}

@media (hover: none) {
  .c-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
