/* Stage58-64 safe visual polish */

:root {
  --rz-polish-gold: #b9935b;
  --rz-polish-border: #eadfce;
  --rz-polish-soft: rgba(185,147,91,.08);
}

/* Build marker */
body::after {
  content: "stage58-64";
  display: none;
}

/* Mobile: make first screen shorter and cleaner */
@media (max-width: 768px) {
  .hero {
    min-height: auto !important;
    padding: 28px 0 20px !important;
    margin-bottom: 22px !important;
  }

  .hero-title {
    font-size: 28px !important;
    line-height: 1.12 !important;
    margin-bottom: 10px !important;
  }

  .hero-sub {
    font-size: 12.5px !important;
    line-height: 1.55 !important;
    max-width: 96% !important;
  }

  .hero-eyebrow {
    font-size: 9.5px !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
  }

  .hero-disclaimer {
    display: none !important;
  }

  .stats {
    margin-bottom: 22px !important;
  }

  .value-panel {
    margin: -8px 0 22px !important;
    padding: 18px !important;
  }

  .filters-toggle-row {
    position: sticky;
    top: 8px;
    z-index: 80;
  }

  .filters-toggle {
    width: 100% !important;
  }
}

/* Cards: more premium and stable */
.card {
  border-radius: 18px !important;
  overflow: hidden !important;
  background: #fff !important;
  border: 1px solid rgba(234,223,206,.85) !important;
  box-shadow: 0 8px 26px rgba(0,0,0,.035) !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}

.card:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(185,147,91,.45) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,.075) !important;
}

.card-img {
  background:
    radial-gradient(circle at 50% 30%, rgba(185,147,91,.12), transparent 38%),
    linear-gradient(180deg, #fffdf8, #f7f3ec) !important;
}

.card-img img {
  object-fit: contain !important;
  padding: 10px !important;
  box-sizing: border-box !important;
  mix-blend-mode: multiply;
}

.card-ph {
  width: 100%;
  height: 100%;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 34%, rgba(185,147,91,.12), transparent 40%),
    linear-gradient(180deg, #fffdf8, #f7f3ec);
}

.card-ph span {
  font-size: 10px !important;
  letter-spacing: .18em !important;
}

.card .cf-price {
  font-size: 15px !important;
  font-weight: 650 !important;
  color: #171717 !important;
}

.card-meta,
.card-source,
.card-city {
  color: #8f8374 !important;
}

/* clamp title-like text inside cards */
.card h3,
.card-title,
.card-name,
.card .cf-title {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* Active filter chips */
.rz-active-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: -10px 0 22px;
}

.rz-active-chip {
  border: 1px solid rgba(185,147,91,.28);
  background: rgba(255,255,255,.86);
  color: #53483b;
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 11px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.rz-active-chip button {
  border: 0;
  background: transparent;
  color: #b9935b;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 0;
}

.rz-active-chip.reset {
  background: #171717;
  color: #fff;
  border-color: #171717;
  cursor: pointer;
}

/* Search inside dropdowns */
.rz-filter-search {
  padding: 8px;
  border-bottom: 1px solid rgba(185,147,91,.14);
  background: rgba(255,255,255,.96);
}

.rz-filter-search input {
  width: 100%;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #eadfce;
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
}

.rz-filter-search input:focus {
  border-color: rgba(185,147,91,.65);
  box-shadow: 0 0 0 2px rgba(185,147,91,.12);
}

/* Product modal */
.rz-lot-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(18,16,13,.55);
  backdrop-filter: blur(10px);
}

.rz-lot-modal.open {
  display: flex;
}

.rz-lot-dialog {
  width: min(920px, 96vw);
  max-height: 92vh;
  overflow: auto;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
  border: 1px solid rgba(185,147,91,.18);
}

.rz-lot-head {
  display: flex;
  justify-content: flex-end;
  padding: 12px 14px 0;
}

.rz-lot-close {
  border: 1px solid rgba(185,147,91,.25);
  background: #fff;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.rz-lot-body {
  display: grid;
  grid-template-columns: 44% 1fr;
  gap: 24px;
  padding: 8px 28px 30px;
}

.rz-lot-photo {
  background: linear-gradient(180deg,#fffdf8,#f7f3ec);
  border-radius: 20px;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.rz-lot-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  box-sizing: border-box;
}

.rz-lot-info h2 {
  margin: 6px 0 12px;
  font-size: 26px;
  line-height: 1.18;
  font-family: Georgia, serif;
  font-weight: 400;
}

.rz-lot-brand {
  color: var(--rz-polish-gold);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.rz-lot-price {
  font-size: 24px;
  font-weight: 700;
  margin: 14px 0 18px;
}

.rz-lot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
}

.rz-lot-field {
  border: 1px solid #eadfce;
  border-radius: 14px;
  padding: 11px 12px;
}

.rz-lot-field small {
  display: block;
  color: #9b8a76;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.rz-lot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.rz-lot-actions a,
.rz-lot-actions button {
  border-radius: 999px;
  border: 1px solid #171717;
  background: #171717;
  color: #fff;
  padding: 11px 16px;
  text-decoration: none;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rz-lot-actions button {
  background: #fff;
  color: #171717;
}

@media (max-width: 760px) {
  .rz-lot-body {
    grid-template-columns: 1fr;
    padding: 8px 18px 22px;
  }

  .rz-lot-photo {
    min-height: 270px;
  }

  .rz-lot-info h2 {
    font-size: 22px;
  }

  .rz-lot-grid {
    grid-template-columns: 1fr;
  }
}

/* Stage65 hybrid: hide active chips block */
.rz-active-chips {
  display: none !important;
}

/* Stage65 hybrid: keep current card visual, only add quick preview button */
.card {
  position: relative !important;
}

.rz-quick-view-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 8;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(185,147,91,.32);
  background: rgba(255,255,255,.88);
  color: #171717;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  opacity: .86;
  transition: opacity .16s ease, transform .16s ease, background .16s ease;
}

.rz-quick-view-btn:hover {
  opacity: 1;
  transform: translateY(-1px);
  background: #fff;
}

.rz-quick-view-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* Product quick preview modal */
.rz-lot-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(18,16,13,.55);
  backdrop-filter: blur(10px);
}

.rz-lot-modal.open {
  display: flex;
}

.rz-lot-dialog {
  width: min(920px, 96vw);
  max-height: 92vh;
  overflow: auto;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
  border: 1px solid rgba(185,147,91,.18);
}

.rz-lot-head {
  display: flex;
  justify-content: flex-end;
  padding: 12px 14px 0;
}

.rz-lot-close {
  border: 1px solid rgba(185,147,91,.25);
  background: #fff;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.rz-lot-body {
  display: grid;
  grid-template-columns: 44% 1fr;
  gap: 24px;
  padding: 8px 28px 30px;
}

.rz-lot-photo {
  background: linear-gradient(180deg,#fffdf8,#f7f3ec);
  border-radius: 20px;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.rz-lot-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  box-sizing: border-box;
}

.rz-lot-info h2 {
  margin: 6px 0 12px;
  font-size: 26px;
  line-height: 1.18;
  font-family: Georgia, serif;
  font-weight: 400;
}

.rz-lot-brand {
  color: #b9935b;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.rz-lot-price {
  font-size: 24px;
  font-weight: 700;
  margin: 14px 0 18px;
}

.rz-lot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
}

.rz-lot-field {
  border: 1px solid #eadfce;
  border-radius: 14px;
  padding: 11px 12px;
}

.rz-lot-field small {
  display: block;
  color: #9b8a76;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.rz-lot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.rz-lot-actions a,
.rz-lot-actions button {
  border-radius: 999px;
  border: 1px solid #171717;
  background: #171717;
  color: #fff;
  padding: 11px 16px;
  text-decoration: none;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rz-lot-actions button {
  background: #fff;
  color: #171717;
}

@media (max-width: 760px) {
  .rz-quick-view-btn {
    width: 32px;
    height: 32px;
    top: 8px;
    right: 8px;
  }

  .rz-lot-body {
    grid-template-columns: 1fr;
    padding: 8px 18px 22px;
  }

  .rz-lot-photo {
    min-height: 270px;
  }

  .rz-lot-info h2 {
    font-size: 22px;
  }

  .rz-lot-grid {
    grid-template-columns: 1fr;
  }
}

/* Stage66: quick preview is informational only */
.rz-lot-actions {
  display: none !important;
}

/* Stage73: precise mobile top fix, existing DOM only */
@media (max-width: 768px) {
  /* hero compact, disclaimer visible */
  .hero {
    padding: 18px 14px 16px !important;
    margin-bottom: 10px !important;
    min-height: 0 !important;
    border-radius: 18px !important;
  }

  .hero-eyebrow {
    font-size: 8px !important;
    line-height: 1.25 !important;
    letter-spacing: .13em !important;
    margin-bottom: 7px !important;
  }

  .hero-title {
    font-size: 22px !important;
    line-height: 1.05 !important;
    margin-bottom: 7px !important;
  }

  .hero-sub {
    font-size: 10.6px !important;
    line-height: 1.34 !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .hero-disclaimer {
    display: block !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    max-width: 100% !important;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: rgba(20,20,20,.42) !important;
    font-size: 8px !important;
    line-height: 1.3 !important;
    pointer-events: none !important;
  }

  /* value panel: main value on top, 3 metrics in one row */
  .value-panel {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0 !important;
    padding: 14px !important;
    margin: 8px 0 8px !important;
    border-radius: 18px !important;
  }

  .value-panel::before {
    left: 14px !important;
    right: 14px !important;
  }

  .value-head {
    grid-column: 1 / -1 !important;
    padding: 0 0 9px !important;
    margin: 0 0 8px !important;
    border-bottom: 1px solid rgba(184,151,90,.14) !important;
  }

  .value-title {
    font-size: 8px !important;
    letter-spacing: .13em !important;
    line-height: 1.2 !important;
    margin-bottom: 7px !important;
  }

  .value-main {
    font-size: 25px !important;
    line-height: 1 !important;
    margin-bottom: 7px !important;
  }

  .value-note {
    font-size: 9.5px !important;
    line-height: 1.3 !important;
    margin-bottom: 4px !important;
  }

  .value-updated {
    font-size: 7.8px !important;
    line-height: 1.1 !important;
  }

  .value-cell {
    min-width: 0 !important;
    padding: 0 6px !important;
    border: 0 !important;
  }

  .value-cell + .value-cell {
    border-left: 1px solid rgba(184,151,90,.14) !important;
  }

  .value-label {
    font-size: 6.8px !important;
    line-height: 1.1 !important;
    letter-spacing: .08em !important;
    margin-bottom: 4px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .value-num {
    font-size: 10.8px !important;
    line-height: 1.08 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* stats compact 2x2 */
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin-bottom: 10px !important;
    border-radius: 18px !important;
  }

  .stat {
    min-height: 56px !important;
    padding: 10px 12px !important;
  }

  .stat-label {
    font-size: 7px !important;
    line-height: 1.1 !important;
    margin-bottom: 5px !important;
  }

  .stat-val {
    font-size: 18px !important;
    line-height: 1 !important;
  }

  .stat-note {
    font-size: 8px !important;
    line-height: 1.2 !important;
  }

  /* category pills no cropping */
  .filters-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 6px !important;
    padding-bottom: 5px !important;
    margin-bottom: 8px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  .filters-row::-webkit-scrollbar {
    display: none !important;
  }

  .filters-row .pill {
    flex: 0 0 auto !important;
    height: 27px !important;
    padding: 0 10px !important;
    font-size: 9px !important;
    white-space: nowrap !important;
  }

  .filters-toggle-row {
    margin: 4px 0 10px !important;
  }

  .filters-toggle {
    height: 35px !important;
    min-height: 35px !important;
    font-size: 9.5px !important;
  }
}

/* Stage74B: fix mobile category / brand pills row */
@media (max-width: 768px) {
  .filters-row {
    display: flex !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
    gap: 6px !important;
    padding: 0 !important;
    margin: 8px 0 10px !important;
    max-width: 100% !important;
  }

  .filters-row .pill {
    flex: 0 0 auto !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    font-size: 9px !important;
    line-height: 28px !important;
    white-space: nowrap !important;
    max-width: none !important;
  }

  .filters-row .pill:nth-child(1),
  .filters-row .pill:nth-child(2),
  .filters-row .pill:nth-child(3),
  .filters-row .pill:nth-child(4) {
    font-size: 8.8px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .filters-row .pill.on,
  .filters-row .pill.active {
    background: #171717 !important;
    color: #fff !important;
    border-color: #171717 !important;
  }
}

/* Stage76: exact mobile filter-row search + hero disclaimer */
@media (max-width: 768px) {
  /* Возвращаем именно поиск бренда внутри строки Все / Часы / Ювелирка */
  .filters-row .brand-search-inline.nav-search {
    display: flex !important;
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 34px !important;
    margin: 2px 0 0 !important;
    padding: 0 13px !important;
    align-items: center !important;
    gap: 8px !important;
    border: 1px solid rgba(234,223,206,.95) !important;
    border-radius: 999px !important;
    background: #fff !important;
    box-sizing: border-box !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .filters-row .brand-search-inline.nav-search svg {
    display: block !important;
    width: 13px !important;
    height: 13px !important;
    flex: 0 0 13px !important;
    stroke: rgba(23,23,23,.38) !important;
  }

  .filters-row .brand-search-inline.nav-search input,
  #brandSearchInput {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 32px !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: #171717 !important;
    font-size: 10.5px !important;
    line-height: 32px !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  #brandSearchInput::placeholder {
    color: rgba(23,23,23,.38) !important;
  }

  /* Ряд кнопок остается переносом, без обрезки */
  .filters-row {
    display: flex !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
    gap: 6px !important;
    padding: 0 !important;
    margin: 8px 0 10px !important;
    max-width: 100% !important;
  }

  .filters-row .pill {
    flex: 0 0 auto !important;
    height: 27px !important;
    min-height: 27px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    font-size: 8.8px !important;
    line-height: 27px !important;
    white-space: nowrap !important;
    max-width: none !important;
  }

  /* Дисклеймер в hero */
  .hero-disclaimer {
    display: block !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    max-width: 100% !important;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: rgba(23,23,23,.46) !important;
    font-size: 8px !important;
    line-height: 1.3 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none !important;
    z-index: auto !important;
  }
}

/* Stage77: mobile search inline after Van Cleef + forced disclaimer */
@media (max-width: 768px) {
  /* поиск внутри ряда кнопок — НЕ отдельной строкой */
  .filters-row .brand-search-inline.nav-search {
    display: flex !important;
    flex: 0 0 150px !important;
    width: 150px !important;
    max-width: 150px !important;
    min-width: 150px !important;
    height: 27px !important;
    min-height: 27px !important;
    margin: 0 !important;
    padding: 0 9px !important;
    align-items: center !important;
    gap: 5px !important;
    border: 1px solid rgba(234,223,206,.95) !important;
    border-radius: 999px !important;
    background: #fff !important;
    box-sizing: border-box !important;
    opacity: 1 !important;
    visibility: visible !important;
    order: 999 !important;
  }

  .filters-row .brand-search-inline.nav-search svg {
    display: block !important;
    width: 11px !important;
    height: 11px !important;
    flex: 0 0 11px !important;
    stroke: rgba(23,23,23,.36) !important;
  }

  .filters-row .brand-search-inline.nav-search input,
  #brandSearchInput {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 25px !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: #171717 !important;
    font-size: 9px !important;
    line-height: 25px !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  #brandSearchInput::placeholder {
    color: rgba(23,23,23,.36) !important;
  }

  .filters-row {
    display: flex !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
    gap: 6px !important;
    padding: 0 !important;
    margin: 8px 0 10px !important;
    max-width: 100% !important;
  }

  .filters-row .pill {
    flex: 0 0 auto !important;
    height: 27px !important;
    min-height: 27px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    font-size: 8.8px !important;
    line-height: 27px !important;
    white-space: nowrap !important;
    max-width: none !important;
  }

  /* реальный старый дисклеймер не используем — показываем стабильный через hero::after */
  .hero-disclaimer {
    display: none !important;
  }

  .hero::after {
    content: "Rosenauer.ru — независимый агрегатор. Не являемся официальным дилером брендов. Данные получены из открытых источников — проверяйте информацию у продавца.";
    display: block !important;
    margin-top: 8px !important;
    max-width: 100% !important;
    color: rgba(23,23,23,.46) !important;
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
    font-size: 8px !important;
    line-height: 1.3 !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
  }
}

/* Stage79: clean mobile disclaimer, no hero outline hacks */
.rz-mobile-disclaimer-clean {
  display: none;
}

@media (max-width: 768px) {
  .hero {
    overflow: hidden !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
  }

  .hero::after {
    content: none !important;
    display: none !important;
  }

  .hero > .hero-disclaimer {
    display: none !important;
  }

  .rz-mobile-disclaimer-clean {
    display: block !important;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    color: rgba(23,23,23,.46) !important;
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
    font-size: 8px !important;
    line-height: 1.3 !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
  }

  .filters-row .brand-search-inline.nav-search {
    flex: 0 0 150px !important;
    width: 150px !important;
    max-width: 150px !important;
    min-width: 150px !important;
    height: 27px !important;
    margin: 0 !important;
    padding: 0 9px !important;
  }

  #brandSearchInput {
    font-size: 9px !important;
  }
}

/* Stage80: responsive mobile/tablet polish only. Desktop stays untouched. */

/* Phones and narrow mobile browsers */
@media (max-width: 768px) {
  html,
  body {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .container {
    width: calc(100% - 32px) !important;
    max-width: calc(100% - 32px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  nav {
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
    padding: 16px 13px 13px !important;
    border-radius: 18px !important;
    min-height: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    outline: 0 !important;
  }

  .hero-eyebrow {
    font-size: clamp(7px, 2vw, 8.5px) !important;
    line-height: 1.25 !important;
    letter-spacing: .12em !important;
    margin-bottom: 7px !important;
  }

  .hero-title {
    font-size: clamp(20px, 6vw, 25px) !important;
    line-height: 1.06 !important;
    margin-bottom: 7px !important;
  }

  .hero-sub {
    font-size: clamp(9.8px, 2.9vw, 11.2px) !important;
    line-height: 1.34 !important;
    max-width: 100% !important;
  }

  .rz-mobile-disclaimer-clean {
    font-size: clamp(7.2px, 2.1vw, 8px) !important;
    line-height: 1.3 !important;
    margin-top: 8px !important;
  }

  .value-panel {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0 !important;
    padding: 13px !important;
    margin: 8px 0 8px !important;
    border-radius: 18px !important;
  }

  .value-head {
    grid-column: 1 / -1 !important;
    padding-bottom: 8px !important;
    margin-bottom: 8px !important;
    border-bottom: 1px solid rgba(184,151,90,.14) !important;
  }

  .value-title {
    font-size: clamp(7px, 2vw, 8px) !important;
    line-height: 1.2 !important;
    letter-spacing: .12em !important;
    margin-bottom: 6px !important;
  }

  .value-main {
    font-size: clamp(22px, 6.4vw, 26px) !important;
    line-height: 1 !important;
    margin-bottom: 6px !important;
  }

  .value-note {
    font-size: clamp(8.7px, 2.6vw, 9.8px) !important;
    line-height: 1.3 !important;
    margin-bottom: 4px !important;
  }

  .value-updated {
    font-size: clamp(7px, 2vw, 7.8px) !important;
    line-height: 1.1 !important;
  }

  .value-cell {
    min-width: 0 !important;
    padding: 0 5px !important;
  }

  .value-cell:first-of-type {
    padding-left: 0 !important;
  }

  .value-cell + .value-cell {
    border-left: 1px solid rgba(184,151,90,.14) !important;
  }

  .value-label {
    font-size: clamp(6px, 1.8vw, 6.9px) !important;
    line-height: 1.08 !important;
    letter-spacing: .07em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-bottom: 4px !important;
  }

  .value-num {
    font-size: clamp(9.2px, 2.7vw, 10.8px) !important;
    line-height: 1.06 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: clip !important;
  }

  .stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin: 8px 0 10px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
  }

  .stat {
    min-height: 54px !important;
    padding: 10px 11px !important;
  }

  .stat-label {
    font-size: clamp(6.5px, 1.9vw, 7.2px) !important;
    line-height: 1.1 !important;
    margin-bottom: 5px !important;
  }

  .stat-val {
    font-size: clamp(16px, 5vw, 19px) !important;
    line-height: 1 !important;
  }

  .stat-note {
    font-size: clamp(7.2px, 2.1vw, 8px) !important;
    line-height: 1.18 !important;
  }

  .filters-row {
    display: flex !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
    gap: 6px !important;
    padding: 0 !important;
    margin: 8px 0 10px !important;
    max-width: 100% !important;
  }

  .filters-row .pill {
    flex: 0 0 auto !important;
    height: 27px !important;
    min-height: 27px !important;
    padding: 0 9px !important;
    border-radius: 999px !important;
    font-size: clamp(7.8px, 2.2vw, 8.8px) !important;
    line-height: 27px !important;
    white-space: nowrap !important;
    max-width: none !important;
  }

  .filters-row .brand-search-inline.nav-search {
    flex: 0 0 clamp(118px, 38vw, 155px) !important;
    width: clamp(118px, 38vw, 155px) !important;
    max-width: clamp(118px, 38vw, 155px) !important;
    min-width: 118px !important;
    height: 27px !important;
    min-height: 27px !important;
    margin: 0 !important;
    padding: 0 8px !important;
    gap: 5px !important;
  }

  .filters-row .brand-search-inline.nav-search svg {
    width: 10px !important;
    height: 10px !important;
    flex-basis: 10px !important;
  }

  #brandSearchInput {
    height: 25px !important;
    font-size: clamp(8px, 2.2vw, 9px) !important;
    line-height: 25px !important;
  }

  .filters-toggle-row {
    margin: 4px 0 10px !important;
  }

  .filters-toggle {
    height: 35px !important;
    min-height: 35px !important;
    border-radius: 999px !important;
    font-size: clamp(8.5px, 2.4vw, 9.5px) !important;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .card {
    min-width: 0 !important;
    border-radius: 14px !important;
  }

  .card-img {
    min-height: 145px !important;
  }

  .card-body,
  .card-info {
    padding: 10px !important;
  }

  .cf-brand,
  .card-brand {
    font-size: 7.4px !important;
    letter-spacing: .12em !important;
  }

  .cf-title,
  .card-title {
    font-size: 10.4px !important;
    line-height: 1.22 !important;
  }

  .cf-price,
  .card-price {
    font-size: 12px !important;
  }

  .rz-quick-view-btn {
    width: 28px !important;
    height: 28px !important;
    top: 7px !important;
    right: 7px !important;
  }
}

/* Very small phones: iPhone SE / old Android */
@media (max-width: 380px) {
  .container {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
  }

  .hero {
    padding: 14px 12px 12px !important;
  }

  .filters-row {
    gap: 5px !important;
  }

  .filters-row .pill {
    height: 26px !important;
    min-height: 26px !important;
    line-height: 26px !important;
    padding: 0 8px !important;
  }

  .filters-row .brand-search-inline.nav-search {
    flex-basis: 122px !important;
    width: 122px !important;
    max-width: 122px !important;
  }

  .value-panel {
    padding: 12px !important;
  }

  .value-cell {
    padding: 0 4px !important;
  }

  .card-img {
    min-height: 132px !important;
  }
}

/* Tiny screens where two product cards become too cramped */
@media (max-width: 330px) {
  .grid {
    grid-template-columns: 1fr !important;
  }

  .card-img {
    min-height: 190px !important;
  }

  .filters-row .brand-search-inline.nav-search {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Touch tablets only, so desktop stays untouched */
@media (hover: none) and (pointer: coarse) and (min-width: 769px) and (max-width: 1180px) {
  .container {
    width: min(100% - 44px, 980px) !important;
    max-width: min(100% - 44px, 980px) !important;
  }

  .hero {
    padding: 34px 28px 28px !important;
    border-radius: 24px !important;
  }

  .hero-title {
    font-size: 38px !important;
  }

  .hero-sub {
    max-width: 76% !important;
  }

  .value-panel {
    grid-template-columns: 1.15fr repeat(3, minmax(0, .75fr)) !important;
    padding: 22px 24px !important;
  }

  .value-main {
    font-size: 34px !important;
  }

  .filters-row {
    gap: 7px !important;
  }

  .filters-row .pill {
    height: 30px !important;
    line-height: 30px !important;
    font-size: 10px !important;
    padding: 0 12px !important;
  }

  .filters-row .brand-search-inline.nav-search {
    height: 30px !important;
    flex-basis: 190px !important;
    width: 190px !important;
    max-width: 190px !important;
  }

  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  .card-img {
    min-height: 220px !important;
  }
}
