/* HIGOLD — прайс РРЦ и наличие. */

.price-page { padding-bottom: var(--s7); }

.price-hero {
  background: var(--ink);
  color: #fff;
  padding: var(--s6) 0 var(--s5);
  border-bottom: 1px solid var(--ink-line);
}
.price-hero h1 {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.06;
  letter-spacing: -.02em;
  margin: 18px 0 14px;
  max-width: 22ch;
}
.price-hero h1 em { font-style: normal; color: var(--brass); }
.price-hero p { color: var(--muted-dark); max-width: 64ch; margin: 0 0 24px; }
.price-hero .label { color: var(--muted-dark); }
.price-hero .label .num { color: var(--brass); }

.price-stats { display: flex; flex-wrap: wrap; gap: 28px 48px; border-top: 1px solid var(--ink-line); padding-top: 22px; }
.price-stats div b { display: block; font-size: 26px; font-weight: 700; }
.price-stats div span { color: var(--muted-dark); font-size: 13px; }

.price-toolbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(244,245,247,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.price-toolbar .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.price-search {
  flex: 1 1 320px; min-width: 220px;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line-strong); padding: 10px 14px;
}
.price-search input { border: 0; outline: 0; font: inherit; width: 100%; background: transparent; }
.price-btn {
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink);
  padding: 10px 16px; font: inherit; cursor: pointer; font-size: 14px;
}
.price-btn:hover { border-color: var(--ink); }
.price-btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.price-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 8px; }
.price-chip {
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink);
  padding: 6px 13px; font-size: 13px; cursor: pointer; font-family: 'IBM Plex Mono', monospace;
}
.price-chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.price-tablewrap { border: 1px solid var(--line); background: #fff; }
table.price-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
table.price-table th {
  text-align: left; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); font-family: 'IBM Plex Mono', monospace; font-weight: 500;
  padding: 10px 8px; border-bottom: 1px solid var(--line-strong); background: var(--paper);
  position: sticky; top: var(--price-sticky, 58px); z-index: 2;
}
table.price-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: top; }
table.price-table th:nth-child(1), table.price-table td:nth-child(1) { width: 104px; }
table.price-table th:nth-child(2), table.price-table td:nth-child(2) { width: 58px; }
table.price-table th:nth-child(3), table.price-table td:nth-child(3) { width: 96px; }
table.price-table th:nth-child(4), table.price-table td:nth-child(4) { width: auto; }
table.price-table th:nth-child(5), table.price-table td:nth-child(5) { width: 86px; }
table.price-table th:nth-child(6), table.price-table td:nth-child(6) { width: 118px; }
table.price-table th:nth-child(7), table.price-table td:nth-child(7) { width: 96px; }
table.price-table th:nth-child(8), table.price-table td:nth-child(8) { width: 96px; }
table.price-table th:nth-child(9), table.price-table td:nth-child(9) { width: 108px; }
table.price-table tr:hover td { background: #FAFBFC; }
table.price-table td.art { font-family: 'IBM Plex Mono', monospace; white-space: nowrap; }
table.price-table td.name { min-width: 0; overflow-wrap: anywhere; }
table.price-table td.rrc { text-align: right; font-family: 'IBM Plex Mono', monospace; white-space: nowrap; }
table.price-table td.rrc b { font-weight: 600; }
table.price-table .series { font-size: 12px; color: var(--muted); display: block; }
table.price-table .thumb { width: 46px; height: 46px; object-fit: contain; background: var(--paper); border: 1px solid var(--line); display: block; }
.avail-tag {
  display: inline-block; font-size: 12px; font-family: 'IBM Plex Mono', monospace;
  padding: 3px 8px; border: 1px solid var(--line-strong); background: var(--paper); white-space: nowrap;
}
.avail-tag.yes { border-color: #2F7D4F; color: #1F5E39; background: #EAF5EE; }
.avail-tag.order { border-color: #B8863B; color: #7A5620; background: #FBF3E4; }
.price-add { font-size: 12px; color: var(--brand); border-bottom: 1px solid var(--brand); white-space: nowrap; }
.price-note { font-size: 13px; color: var(--muted); margin: 18px 0 0; }

.price-chipsep { width: 1px; height: 22px; background: var(--line-strong); margin: 0 4px; align-self: center; }
.tb-tag { display: inline-block; margin-top: 4px; font-size: 10.5px; font-family: 'IBM Plex Mono', monospace; padding: 2px 6px; border: 1px solid var(--line-strong); color: var(--muted); background: var(--paper); white-space: nowrap; }

/* ---------- Адаптив: карточный вид прайса на узких экранах ---------- */
@media (max-width: 760px) {
  .price-tablewrap { border: 0; background: none; }
  table.price-table { table-layout: auto; }
  table.price-table thead { display: none; }
  table.price-table tbody, table.price-table tr, table.price-table td { display: block; width: auto; }
  table.price-table tr {
    border: 1px solid var(--line); border-radius: 14px; margin: 0 0 12px;
    padding: 14px 14px 12px; background: var(--surface);
  }
  table.price-table td {
    border: 0; padding: 3px 0; display: flex; gap: 12px; align-items: baseline;
    font-size: 13.5px;
  }
  table.price-table td::before {
    content: attr(data-label);
    flex: 0 0 92px; font-family: 'IBM Plex Mono', monospace; font-size: 10px;
    letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  }
  table.price-table td[data-ph] { order: -2; padding-bottom: 8px; }
  table.price-table td[data-ph]::before { display: none; }
  table.price-table td.art { font-size: 15px; }
  table.price-table td.art::before { display: none; }
  table.price-table td.name { font-weight: 600; }
  table.price-table td.name::before { display: none; }
  table.price-table td.name { border-bottom: 1px dashed var(--line); padding-bottom: 8px; margin-bottom: 4px; }
  table.price-table td.rrc { text-align: left; }
  table.price-table td.rrc b { font-size: 15px; }
  table.price-table tr:hover td { background: none; }
  .price-table .thumb { width: 64px; height: 64px; }
  .price-toolbar { position: static; }
}

/* ---------- Планшет: компактная таблица прайса ---------- */
@media (max-width: 1000px) and (min-width: 761px) {
  table.price-table th:nth-child(2), table.price-table td:nth-child(2) { display: none; }
  table.price-table th, table.price-table td { padding: 8px 6px; font-size: 12px; }
  table.price-table th:nth-child(1), table.price-table td:nth-child(1) { width: 92px; }
  table.price-table th:nth-child(2), table.price-table td:nth-child(2) { width: 0; }
  table.price-table th:nth-child(3), table.price-table td:nth-child(3) { width: 84px; }
  table.price-table th:nth-child(5), table.price-table td:nth-child(5) { width: 72px; }
  table.price-table th:nth-child(6), table.price-table td:nth-child(6) { width: 104px; }
  table.price-table th:nth-child(7), table.price-table td:nth-child(7) { width: 88px; }
  table.price-table th:nth-child(8), table.price-table td:nth-child(8) { width: 84px; }
  table.price-table th:nth-child(9), table.price-table td:nth-child(9) { width: 78px; }
  .avail-tag { font-size: 11px; padding: 2px 6px; }
  .price-add { font-size: 11px; }
}

@media (max-width: 860px) and (min-width: 761px) {
  table.price-table th:nth-child(5), table.price-table td:nth-child(5) { display: none; }
  table.price-table th:nth-child(1), table.price-table td:nth-child(1) { width: 86px; }
  table.price-table th:nth-child(3), table.price-table td:nth-child(3) { width: 78px; }
  table.price-table th:nth-child(6), table.price-table td:nth-child(6) { width: 92px; }
  table.price-table th:nth-child(7), table.price-table td:nth-child(7) { width: 76px; }
  table.price-table th:nth-child(8), table.price-table td:nth-child(8) { width: 78px; }
  table.price-table th:nth-child(9), table.price-table td:nth-child(9) { width: 78px; }
}

/* ссылка «В каталог» в строке прайса */
.price-cat {
  display: block; margin-top: 6px; font-size: 12px; line-height: 1.3;
  color: var(--brand); text-decoration: underline; white-space: nowrap;
}
.price-cat:hover { color: var(--ink); }
