/* Continental Clean Shell — Market list (MISUMI grammar, files-first, no Streamlit).
   Empty slots keep footprint. No product photos in v1. */

:root {
  --blue: #004b91;
  --blue-dk: #003366;
  --blue-link: #0066cc;
  --yellow: #f5c400;
  --sale: #c62828;
  --line: #cccccc;
  --line-soft: #e5e5e5;
  --cfg-head: #8a8a8a;
  --cfg-sub: #efefef;
  --slot: #f5f5f5;
  --rail: #2a2a2a;
  --text: #222222;
  --muted: #666666;
  --page: #fafafa;
  --card: #ffffff;
  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --h-ctrl: 36px;
  --h-search: 40px;
  --cfg-w: 268px;
  --rail-w: 58px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  font-size: 12px;
  color: var(--text);
  background: var(--page);
  line-height: 1.3;
}
a { color: var(--blue-link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font-family: inherit; }
button:disabled, input:disabled, select:disabled { cursor: default; opacity: 0.85; }

/* Calm motion — soft hover/press, no bounce / glow / purple */
:root {
  --motion: 160ms ease;
  --motion-slow: 220ms ease;
}
.launch-offer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 24px;
  align-items: center;
  margin: 12px 16px;
  padding: 12px 16px 10px;
  border: 1px solid #b9c0c8;
  border-left: 3px solid #53697f;
  background: #eef0f2;
  color: #28323c;
  line-height: 1.4;
}
.launch-offer[hidden] { display: none !important; }
.launch-offer-close {
  position: absolute;
  top: 6px;
  right: 8px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: #59636e;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.launch-offer-close:hover {
  border-color: #e05252;
  color: #b42318;
  background: #fff;
}
.launch-offer-close:focus-visible {
  border-color: #e05252;
}
.launch-offer-close:focus-visible {
  outline: 2px solid #e05252;
  outline-offset: 2px;
}
.launch-offer-main {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}
.launch-offer-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.launch-offer-kicker {
  color: #394652;
  font-size: 12px;
  font-weight: 600;
}
.launch-offer-copy strong {
  color: #1f2c38;
  font-size: 14px;
  line-height: 1.25;
}
.launch-offer-copy > span:last-child {
  color: #3f4a55;
  font-size: 12px;
}
.launch-offer-status {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 0 24px 0 0;
  text-align: left;
  white-space: nowrap;
}
.launch-offer-places,
.launch-offer-countdown {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.launch-offer-places > strong {
  color: #293d50;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.launch-offer-label {
  color: #4e5964;
  font-size: 11px;
  font-weight: 500;
}
.launch-countdown-units {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.launch-countdown-units > span {
  display: inline;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.launch-countdown-units strong {
  color: #293d50;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.launch-countdown-units small {
  color: #4e5964;
  font-size: 11px;
  margin-left: 3px;
}
.launch-countdown-units > span:not(:last-child)::after {
  content: "·";
  margin: 0 5px 0 4px;
  color: #66717c;
}
.launch-offer small {
  grid-column: 1 / -1;
  color: #4e5964;
  font-size: 10px;
}
.launch-offer-auth { margin: 12px auto; max-width: 780px; }
.launch-offer-register {
  margin: 0 0 14px;
  padding: 9px 10px;
  border-left: 3px solid #53697f;
  background: #eef0f2;
  color: #293d50;
  font-size: 12px;
  line-height: 1.4;
}
.launch-offer-register[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  :root { --motion: 0ms; --motion-slow: 0ms; }
  .toast, .mega, .acc-body { transition: none !important; }
}
button:not(:disabled),
a.live,
a.go,
.card-acts .ghost:not(:disabled),
.view-btns button:not(:disabled),
.rail button:not(:disabled),
.nav-cat,
.nav-item:not(:disabled),
.icon-btn:not(:disabled),
.btn-login:not(:disabled),
.btn-quote:not(:disabled),
.cfg-clear:not(:disabled),
.search-go,
.pager button:not(:disabled),
.type-cell.is-live {
  transition:
    background-color var(--motion),
    border-color var(--motion),
    color var(--motion),
    transform var(--motion),
    box-shadow var(--motion),
    opacity var(--motion);
}
button:not(:disabled):hover,
a.live:hover,
a.go:hover,
.card-acts .ghost:not(:disabled):hover,
.view-btns button:not(:disabled):hover,
.rail button:not(:disabled):hover,
.nav-cat:hover,
.nav-item:not(:disabled):hover,
.icon-btn:not(:disabled):hover,
.btn-login:not(:disabled):hover,
.btn-quote:not(:disabled):hover,
.cfg-clear:not(:disabled):hover,
.search-go:hover,
.pager button:not(:disabled):hover {
  filter: brightness(1.04);
}
button:not(:disabled):active,
a.live:active,
a.go:active,
.search-go:active {
  transform: translateY(1px);
}
.type-cell.is-live:hover {
  background: #f3f7fc;
}
.card.is-live {
  transition: box-shadow var(--motion-slow), border-color var(--motion);
}
.card.is-live:hover {
  box-shadow: 0 4px 14px rgba(0, 51, 102, 0.08);
}
.acc-body {
  overflow: hidden;
  transition: opacity var(--motion-slow);
}
.acc-body.is-collapsed {
  display: none;
}
.acc-h {
  cursor: pointer;
  user-select: none;
}
.acc-h:hover { background: #e8e8e8; }

/* Toast + mega + cookie (interactive chrome) */
.toast-host {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  min-width: 220px;
  max-width: 320px;
  padding: 10px 12px;
  background: rgba(42, 42, 42, 0.94);
  color: #f2f2f2;
  font-size: 12px;
  line-height: 1.35;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--motion-slow), transform var(--motion-slow);
}
.toast.success {
  background: rgba(21, 128, 61, 0.92);
  border-color: rgba(187, 247, 208, 0.68);
  color: #fff;
}
.toast.success::before {
  content: "✓";
  margin-right: 8px;
  font-weight: 700;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.mega {
  display: none;
  position: absolute;
  top: 100%;
  left: 16px;
  z-index: 30;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 8px 0;
}
.mega.open { display: block; }
.mega a, .mega button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  font-size: 12px;
  color: var(--blue-link);
  cursor: pointer;
}
.mega a:hover, .mega button:hover { background: #f3f7fc; }
.nav { position: relative; }
.cookie-bar {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 35;
  width: min(440px, 92vw);
  padding: 12px 14px;
  background: #333;
  color: #eee;
  font-size: 12px;
  border: 1px solid #555;
  display: none;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.cookie-bar.show { display: flex; }
.cookie-bar button {
  height: 28px;
  padding: 0 12px;
  border: 1px solid #888;
  background: #fff;
  color: #222;
  font-weight: 700;
  font-size: 11px;
  flex: 0 0 auto;
}
.grid.is-list {
  grid-template-columns: 1fr;
}
.grid.is-list .card:not(.is-live) { display: none; }
.grid.is-list .card.is-live {
  min-height: 0;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.grid.is-list .card-media { width: 96px; height: 72px; flex: 0 0 96px; }
.card.is-dimmed { opacity: 0.35; pointer-events: none; }
/* Catalog filter: hide non-matches (not “unlock / dim”) */
.card.is-filtered-out {
  display: none !important;
}
.rail button:not(:disabled):hover { background: #3a3a3a; color: #fff; }

/* ========== TOP ========== */
.top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  height: 60px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.top > .market-brand {
  justify-self: start;
  user-select: none;
  -webkit-user-drag: none;
}
.logo {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--blue-dk);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.logo .logo-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 auto;
  display: block;
}
.logo small {
  flex: 1 0 100%;
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
  margin-left: 36px;
}
.market-brand {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  height: 100%;
}
.market-brand .logo-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.market-brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}
.market-brand-name {
  color: var(--blue-dk);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.market-brand small {
  display: block;
  flex: 0 0 auto;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.2;
}
.search {
  display: flex;
  justify-self: center;
  width: 100%;
  min-width: 0;
  max-width: 480px;
  height: var(--h-search);
  margin: 0;
}
.search input {
  flex: 1;
  height: var(--h-search);
  border: 1px solid var(--line);
  border-right: 0;
  padding: 0 10px;
  font-size: 13px;
  outline: none;
  background: #fff;
}
.search input:focus { border-color: var(--blue); }
.search-go {
  width: var(--h-search);
  height: var(--h-search);
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  font-size: 18px;
  flex: 0 0 var(--h-search);
  cursor: pointer;
}
.top-act {
  justify-self: end;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
[hidden] { display: none !important; }
.icon-btn {
  width: 70px;
  height: var(--h-ctrl);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.top-act .icon-btn:not(:disabled) {
  cursor: pointer;
}
.top-act .icon-btn:not(:disabled):hover,
.top-act .icon-btn:not(:disabled):focus-visible {
  background: #eef5fc;
  border-color: var(--blue);
  color: var(--blue-dk);
}
#btn-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
}
.btn-login {
  height: var(--h-ctrl);
  padding: 0 14px;
  border: 1px solid var(--blue-dk);
  background: var(--blue-dk);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.btn-quote {
  height: var(--h-ctrl);
  padding: 0 14px;
  border: 1px solid var(--yellow);
  background: var(--yellow);
  color: #222;
  font-size: 12px;
  font-weight: 700;
}

/* ========== NAV ========== */
.nav {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  gap: 0;
}
.nav-cat {
  height: 30px;
  padding: 0 12px;
  background: var(--blue-dk);
  border: 1px solid var(--blue-dk);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  margin-right: 8px;
}
.nav-item {
  height: 30px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.nav-gap {
  width: 1px;
  height: 16px;
  background: var(--line);
  margin: 0 4px;
}
.nav-empty {
  height: 30px;
  min-width: 88px;
  border: 0;
  background: transparent;
}

/* ========== PAGE ========== */
.page {
  display: grid;
  grid-template-columns: var(--cfg-w) 1fr var(--rail-w);
  min-height: calc(100vh - 100px);
  background: #fff;
}

/* ----- Configure ----- */
.cfg {
  border-right: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.cfg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 8px 0 10px;
  background: var(--cfg-head);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.cfg-clear {
  height: 24px;
  padding: 0 8px;
  border: 1px solid #bbb;
  background: #fff;
  color: #444;
  font-size: 11px;
  font-weight: 600;
}
.cfg-scroll {
  flex: 1;
  overflow: auto;
  padding: 0 8px 8px;
}
.cfg-h2 {
  margin: 0;
  padding: 10px 2px 6px;
  font-size: 13px;
  font-weight: 700;
}
.cfg-note {
  margin: 0 0 10px;
  padding: 0 2px;
  font-size: 11px;
  color: #666;
  line-height: 1.35;
}
.acc-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  margin: 0 -8px;
  padding: 4px 8px 4px 10px;
  background: var(--cfg-sub);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
  font-weight: 700;
}
.acc-pm {
  width: 14px;
  height: 14px;
  border: 1px solid #999;
  background: #bbb;
  color: #fff;
  font-size: 10px;
  line-height: 12px;
  text-align: center;
  flex: 0 0 14px;
}
.acc-body {
  padding: 6px 8px 8px;
  border-bottom: 1px solid var(--line);
}
.chk-box {
  border: 1px solid var(--line);
  background: #fff;
  max-height: 110px;
  overflow: auto;
  padding: 4px 0;
}
.facet-block[data-facet="dia"] .chk-box {
  max-height: 160px;
}
.chk-box-ends {
  max-height: 168px;
}
.chk-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 3px 8px;
  font-size: 12px;
}
.chk-row label { color: var(--blue-link); }
.chk-row input { margin-top: 2px; }
.chk-more {
  display: block;
  width: 100%;
  height: 22px;
  border: 0;
  border-top: 1px solid var(--line-soft);
  background: #f0f0f0;
  color: #666;
  font-size: 11px;
}
.slot {
  min-height: 72px;
  background: var(--slot);
  border: 1px solid var(--line-soft);
}
.slot-sm { min-height: 48px; }
.cfg-foot {
  padding: 8px;
  border-top: 1px solid var(--line);
}
.cfg-foot a.live {
  display: block;
  height: var(--h-ctrl);
  line-height: var(--h-ctrl);
  text-align: center;
  background: var(--blue);
  color: #fff !important;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none !important;
}

/* ----- Main ----- */
.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.crumb {
  padding: 8px 12px 4px;
  font-size: 11px;
  color: var(--muted);
}
.main-title {
  margin: 0 12px 8px;
  font-size: 18px;
  font-weight: 700;
}
.main-lead {
  margin: 0 12px 12px;
  color: #555;
  font-size: 13px;
  max-width: 42rem;
  line-height: 1.4;
}

.faq-section {
  border-top: 1px solid var(--line-soft);
  background: #fff;
  padding: 32px 20px 36px;
}
.faq-inner {
  max-width: 920px;
  margin: 0 auto;
}
.faq-eyebrow {
  margin: 0 0 5px;
  color: var(--blue-link);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.faq-inner h2 {
  margin: 0;
  color: var(--blue-dk);
  font-size: 21px;
}
.faq-intro {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.faq-item {
  border-top: 1px solid var(--line-soft);
}
.faq-item:last-child {
  border-bottom: 1px solid var(--line-soft);
}
.faq-item summary {
  position: relative;
  padding: 14px 30px 14px 0;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  position: absolute;
  top: 12px;
  right: 3px;
  color: var(--blue-link);
  content: "+";
  font-size: 18px;
  font-weight: 400;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item summary:focus-visible {
  outline: 2px solid var(--blue-link);
  outline-offset: 2px;
}
.faq-item p {
  max-width: 78ch;
  margin: -3px 28px 15px 0;
  color: #555;
  font-size: 12px;
  line-height: 1.65;
}

.type-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0 12px;
  border: 1px solid var(--line);
}
.type-cell {
  min-height: 78px;
  border-right: 1px solid var(--line-soft);
  background: var(--slot);
}
.type-cell:last-child { border-right: 0; }
.type-cell.is-live {
  background: #fff;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
}
.type-cell.is-live label {
  color: var(--blue-link);
  font-weight: 600;
}

.strip {
  margin: 8px 12px 0;
  border: 1px solid var(--line);
  padding: 8px 10px;
}
.strip-h {
  font-size: 11px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--muted);
}
.strip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.strip-row label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--blue-link);
}
.brand-current {
 display: inline-flex;
 align-items: center;
 min-height: 24px;
 color: var(--blue-link);
 font-size: 12px;
 font-weight: 700;
}
.brand-search {
  height: 24px;
  width: 140px;
  border: 1px solid var(--line);
  padding: 0 6px;
  font-size: 11px;
  background: #fff;
}
.brand-slot-empty {
  display: inline-block;
  width: 72px;
  height: 18px;
  background: var(--slot);
  border: 1px solid var(--line-soft);
  vertical-align: middle;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 8px 12px 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.toolbar .count { font-size: 13px; font-weight: 700; }
.toolbar select {
  height: 26px;
  border: 1px solid var(--line);
  font-size: 12px;
  background: #fff;
}
.cad-filters {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid var(--line);
  font-weight: 700;
  color: var(--blue-dk);
}
.cad-filters label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-dk);
}
.view-btns { margin-left: auto; display: flex; gap: 4px; }
.view-btns button {
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 11px;
  font-weight: 600;
}
.view-btns button.on {
  border-color: var(--blue);
  background: #e8f0fa;
  color: var(--blue-dk);
}
.chip-row {
  margin: 6px 12px 0;
  font-size: 11px;
  color: var(--muted);
}
.chip {
  display: inline-block;
  padding: 2px 8px;
  margin-right: 6px;
  border: 1px solid var(--line);
  background: #f7f7f7;
}
.chip button {
  border: 0;
  background: transparent;
  color: var(--muted);
  margin-left: 4px;
}

.pager {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 12px;
  font-size: 11px;
  color: var(--muted);
}
.pager button {
  height: 22px;
  min-width: 28px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 11px;
}
.pager button.on {
  border-color: var(--blue);
  background: #e8f0fa;
  color: var(--blue-dk);
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 12px 16px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.card {
  min-height: 260px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--slot);
}
.card.is-live {
  background: var(--card);
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}
.card-media {
  height: 120px;
  background: var(--slot);
  border: 1px solid var(--line-soft);
  /* intentionally empty — photos later */
}
.card-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-link);
}
.card-meta { margin: 0; font-size: 11px; color: var(--muted); }
.cad-line {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-dk);
}
.cad-line span {
  display: inline-block;
  margin-right: 4px;
  padding: 1px 5px;
  border: 1px solid var(--blue);
  font-size: 10px;
}
.price-line { font-size: 12px; }
.price-line strong { font-size: 14px; }
.ship-line { font-size: 11px; color: var(--muted); }
.card-acts {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.card-acts a,
.card-acts button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
}
.card-acts .go {
  background: var(--blue);
  border: 1px solid var(--blue);
  color: #fff !important;
}
.card-acts .ghost {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
}
.grid.is-list {
  display: flex;
  flex-direction: column;
}
.grid.is-list > .card:not(.is-live) {
  display: none;
}
.grid.is-list > .card.is-live {
  display: grid;
  grid-template-columns: minmax(130px, 180px) minmax(0, 1.25fr) minmax(0, 1fr) 120px;
  grid-template-areas:
    "media title meta actions"
    "media top pn actions"
    "media cad ship actions";
  align-items: center;
  gap: 6px 12px;
  min-height: 0;
  padding: 10px;
}
.grid.is-list .card-top { grid-area: top; min-width: 0; gap: 8px; flex-wrap: wrap; }
.grid.is-list .card-media { grid-area: media; width: 100%; height: auto; min-height: 100px; }
.grid.is-list .card-title { grid-area: title; min-width: 0; overflow-wrap: anywhere; }
.grid.is-list .card-meta { grid-area: meta; min-width: 0; overflow-wrap: anywhere; }
.grid.is-list .card-pn { grid-area: pn; min-width: 0; overflow-wrap: anywhere; }
.grid.is-list .cad-line { grid-area: cad; min-width: 0; overflow-wrap: anywhere; }
.grid.is-list .ship-line { grid-area: ship; min-width: 0; overflow-wrap: anywhere; }
.grid.is-list .card-acts { grid-area: actions; width: 100%; }
.grid.is-list .card-acts a { width: 100%; }
.card-top label.compare-limit {
 opacity: 0.45;
 cursor: not-allowed;
}
.card-top label.compare-limit input { cursor: not-allowed; }
.compare-hint {
  margin: 8px 12px 0;
  color: var(--blue-dk);
  font-size: 12px;
}
.compare-panel {
  margin: 8px 12px 0;
  border: 1px solid var(--line);
  background: #fff;
}
.compare-panel[hidden] { display: none !important; }
.compare-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  background: #f5f7fa;
  border-bottom: 1px solid var(--line);
}
.compare-panel-head button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}
.compare-table-wrap { overflow-x: auto; }
.compare-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 12px;
}
.compare-table th,
.compare-table td {
  min-width: 120px;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.compare-table thead th,
.compare-table tbody th {
  background: #f7f9fc;
  color: var(--blue-dk);
}
.compare-table tbody th { min-width: 145px; }

.components-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: min(80vh, 640px);
  padding: 18px;
  border: 1px solid var(--line);
  color: var(--text);
  background: #fff;
}
.components-dialog::backdrop { background: rgb(0 0 0 / 42%); }
.components-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.components-dialog-head h2 { margin: 0; font-size: 18px; }
.components-dialog-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.components-close {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.components-empty { margin: 16px 0; color: var(--muted); font-size: 13px; }
.components-items { list-style: none; margin: 0; padding: 0; }
.components-items li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.components-items li strong { font-size: 13px; }
.components-items li p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.components-items li a,
.components-cart-link { color: var(--blue-link); font-size: 12px; font-weight: 700; }
.components-cart-link { display: inline-block; margin-top: 16px; }

.rail {
  background: var(--rail);
  display: flex;
  flex-direction: column;
}
.rail button {
  height: 70px;
  border: 0;
  border-bottom: 1px solid #444;
  background: transparent;
  color: #ccc;
  font-size: 9px;
  font-weight: 700;
  padding: 8px 4px;
  line-height: 1.25;
}
.rail .cart-n {
  display: block;
  margin-top: 4px;
  color: var(--yellow);
  font-size: 12px;
}

.cookie {
  position: fixed;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  width: min(420px, 90vw);
  min-height: 56px;
  pointer-events: none;
}
.promo-foot {
  position: fixed;
  left: 0;
  right: var(--rail-w);
  bottom: 0;
  height: 40px;
  pointer-events: none;
}
.chat-slot {
  position: fixed;
  right: calc(var(--rail-w) + 12px);
  bottom: 52px;
  width: 48px;
  height: 48px;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .page { grid-template-columns: 220px 1fr var(--rail-w); }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .launch-offer { grid-template-columns: 1fr; gap: 12px; }
  .launch-offer-status {
    justify-content: flex-start;
    padding: 0 24px 0 47px;
    border-left: 0;
    border-top: 0;
    text-align: left;
    white-space: normal;
  }
  .top {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 44px 40px;
    height: auto;
    min-height: 108px;
    gap: 8px 12px;
    padding: 8px 12px;
  }
  .top > .market-brand {
    grid-column: 1;
    grid-row: 1;
  }
  .top > .search {
    grid-column: 1 / -1;
    grid-row: 2;
    width: min(100%, 560px);
  }
  .top > .top-act {
    grid-column: 2;
    grid-row: 1;
  }
}
@media (max-width: 680px) {
  .launch-offer { margin: 10px; padding: 12px 12px 10px; }
  .launch-offer-main { align-items: flex-start; gap: 10px; }
  .launch-offer-copy strong { font-size: 13px; }
  .launch-offer-status { flex-wrap: wrap; gap: 12px 20px; padding-left: 0; }
  .page {
    grid-template-columns: 1fr;
    padding-bottom: 64px;
  }
  .page > .cfg {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .page > .cfg .cfg-scroll {
    max-height: 260px;
    overflow: auto;
  }
  .page > .rail {
    position: fixed;
    z-index: 20;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: row;
    width: 100%;
    height: auto;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.18);
  }
  .page > .rail button {
    flex: 1;
    height: 48px;
    border-right: 1px solid #444;
    border-bottom: 0;
    font-size: 11px;
  }
  .grid { grid-template-columns: 1fr; }
  .grid.is-list > .card.is-live {
    grid-template-columns: minmax(96px, 130px) minmax(0, 1fr);
    grid-template-areas:
      "media title"
      "media top"
      "meta meta"
      "pn pn"
      "cad cad"
      "ship ship"
      "actions actions";
  }
  .grid.is-list .card-media { grid-row: 1 / span 2; }
  .grid.is-list .card-acts { flex-direction: row; }
}
