.demo-product-listing { margin-block: 32px 56px; }
.demo-product-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.demo-product-heading h2, .demo-categories-heading, .demo-product-page h2 { font-size: 30px; line-height: 1.2; margin: 0 0 20px; }
.demo-product-heading > span, .demo-product-type { color: #595959; font-size: 14px; }
.demo-product-note { font-size: 16px; color: #595959; line-height: 1.5; margin: 0 0 24px; }
.demo-product-filters { display: grid; grid-template-columns: 248px minmax(0, 1fr); align-items: start; gap: 20px 28px; border-top: 1px solid #ccc; padding-top: 20px; }
.catalog-search-row { grid-column: 2; display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 8px 12px; }
.catalog-search-row label { grid-column: 1 / -1; font-size: 14px; }
.catalog-search-row input { min-width: 0; width: 100%; height: 48px; padding: 10px 14px; font: inherit; color: #222; background: #fff; border: 1px solid #bbb; border-radius: 8px; }
.catalog-filter-panel { grid-column: 1; grid-row: 1 / 3; min-width: 0; border-right: 1px solid #d5d5d5; padding-right: 24px; }
.catalog-filter-panel summary { display: flex; align-items: center; justify-content: space-between; font-size: 18px; font-weight: 700; padding-block: 0 20px; list-style: none; cursor: pointer; }
.catalog-filter-panel summary::-webkit-details-marker { display: none; }
.catalog-filter-panel summary .icon { display: none; }
.catalog-filter-fields fieldset { min-width: 0; margin: 0 0 24px; padding: 0 0 24px; border: 0; border-bottom: 1px solid #d5d5d5; }
.catalog-filter-fields legend { padding: 0; margin-bottom: 12px; font-size: 16px; font-weight: 600; }
.catalog-checks { display: grid; gap: 4px; max-height: 240px; overflow-y: auto; }
.catalog-checks label { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; cursor: pointer; overflow-wrap: anywhere; }
.catalog-checks input { appearance: auto; width: 20px; height: 20px; flex: 0 0 20px; margin: 0; accent-color: #f25a28; }
.catalog-range-values { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.catalog-range-values label { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #666; background: #fff; border: 1px solid #ccc; border-radius: 8px; padding: 0 8px; }
.catalog-range-values input { width: 100%; min-width: 0; height: 44px; border: 0; padding: 0; font: inherit; color: #181818; background: transparent; appearance: textfield; }
.catalog-range-values input::-webkit-inner-spin-button { appearance: none; }
.catalog-range-values span { font-size: 12px; color: #666; }
.catalog-range-track { position: relative; height: 44px; margin: 8px 10px 0; }
.catalog-range-track::before { content: ''; position: absolute; left: 0; right: 0; top: 21px; height: 3px; background: linear-gradient(to right, #ccc var(--range-from), #f25a28 var(--range-from), #f25a28 var(--range-to), #ccc var(--range-to)); }
.catalog-range-track input { position: absolute; inset: 0 -10px; width: calc(100% + 20px); height: 44px; margin: 0; padding: 0; border: 0; background: transparent; appearance: none; pointer-events: none; }
.catalog-range-track input::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; background: #f25a28; box-shadow: 0 0 0 1px #e95425; pointer-events: auto; cursor: grab; }
.catalog-range-track input::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; background: #f25a28; pointer-events: auto; cursor: grab; }
.catalog-range-track input:focus-visible { outline: 2px solid #f25a28; outline-offset: 2px; border-radius: 4px; }
.catalog-results-column { grid-column: 2; min-width: 0; }
.catalog-results-column .demo-product-results { margin-top: 0; }
.catalog-results-column .demo-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.demo-product-filters .icon-button { width: 48px; height: 48px; }
.demo-product-filters .icon { width: 20px; height: 20px; }
.demo-product-results { margin-block: 18px; color: #595959; font-size: 14px; }
.demo-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.demo-product-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid #d5d5d5; border-radius: 8px; background: #fff; overflow: hidden; }
.demo-product-card[hidden] { display: none; }
.demo-product-image { display: flex; align-items: center; justify-content: center; height: 280px; padding: 18px; background: #fff; }
.demo-product-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.demo-product-copy { display: flex; flex-direction: column; gap: 16px; flex: 1; padding: 20px; border-top: 1px solid #eee; }
.demo-product-copy h3 { font-size: 22px; line-height: 1.2; overflow-wrap: anywhere; margin: 0; }
.demo-product-copy h3 a:hover { color: #c43d15; }
.demo-product-stats { display: grid; grid-template-columns: 1fr 1.2fr .55fr; gap: 10px; margin: 0; }
.demo-product-stats dt { font-size: 12px; color: #666; margin-bottom: 6px; }
.demo-product-stats dd { margin: 0; font-size: 17px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.demo-product-card .demo-product-stats { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.demo-product-card .demo-product-stats > div { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.demo-product-card .demo-product-stats dt { margin: 0; }
.demo-product-summary .demo-product-stats { grid-template-columns: 1.7fr 1fr .5fr; }
.demo-product-copy .text-link { font-size: 15px; margin-top: auto; padding-top: 8px; }
.demo-product-copy .button { width: 100%; min-height: 48px; padding: 12px; font-size: 15px; gap: 10px; }
#product-empty { padding: 32px 0; }
#product-empty h3 { font-size: 24px; margin-bottom: 12px; }
#product-empty p { margin-bottom: 24px; }
.demo-product-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; margin-bottom: 56px; }
.demo-product-overview figure { margin: 0; height: 560px; background: #fff; padding: 32px; border-radius: 8px; }
.demo-product-overview figure img { width: 100%; height: 100%; object-fit: contain; display: block; }
.demo-product-summary h1 { font-size: 48px; line-height: 1.15; margin-block: 14px 20px; overflow-wrap: anywhere; }
.demo-product-description { font-size: 20px; line-height: 1.5; margin-bottom: 28px; }
.demo-product-summary .demo-product-stats { max-width: 420px; padding-block: 20px; margin-bottom: 28px; border-block: 1px solid #ccc; }
.demo-product-summary .demo-product-stats dt { font-size: 14px; }
.demo-product-summary .demo-product-stats dd { font-size: 26px; }
.demo-product-caveat { color: #595959; font-size: 16px; line-height: 1.5; margin-top: 24px; }
.demo-product-details { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; padding-top: 32px; border-top: 1px solid #ccc; }
.demo-specifications { margin: 0; }
.demo-specifications > div { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid #d5d5d5; line-height: 1.5; }
.demo-specifications dt { color: #595959; }
.demo-specifications dd { margin: 0; font-weight: 500; }
.demo-product-source { font-size: 14px; line-height: 1.6; color: #595959; margin-top: 20px; }
.demo-product-source a { text-decoration: underline; }
.demo-product-source .icon { display: inline-block; width: 14px; height: 14px; vertical-align: middle; }
.demo-related { margin-top: 56px; }
.demo-related .demo-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.demo-back { margin-top: 28px; }
.catalog-with-groups .page-heading h1 { font-size: 42px; }
.catalog-with-groups .page-heading { margin-bottom: 24px; }
.catalog-group-switcher { margin-block: 20px 12px; }
.review-category-filtered-detail { grid-template-columns: minmax(0, 1fr); }
.review-category-filtered-detail[hidden] { display: none; }
.catalog-group-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.catalog-group-bar h2 { font-size: 18px; margin: 0; }
.catalog-group-scroll { display: none; gap: 8px; }
.catalog-group-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 12px; }
.catalog-group-options > button { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; height: 108px; padding: 12px; border: 1px solid #e5e5e7; border-radius: 12px; background: #f5f5f6; color: #555; text-align: left; font: inherit; font-size: 17px; font-weight: 500; line-height: 1.35; transition: border-color .15s ease, background-color .15s ease; }
.catalog-group-options > button:hover { color: #181818; border-color: #c7c7cb; background: #f5f5f6; }
.catalog-group-options > button[aria-pressed="true"] { border-color: #e95425; box-shadow: none; background: #f5f5f6; color: #bd3e18; }
.catalog-group-options > button:focus-visible { outline: 2px solid #e95425; outline-offset: -2px; }
.catalog-group-options > button > img { width: 96px; max-width: 100%; height: 80px; object-fit: contain; flex: 0 0 96px; mix-blend-mode: darken; border-radius: 4px; }
.catalog-group-options > button > .positioner-pair { width: 96px; max-width: 100%; height: 80px; flex: 0 0 96px; background: transparent; }
.catalog-group-options > button > span:not(.positioner-pair) { min-width: 0; flex: 1; }
.catalog-selected-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-block: 16px; border-top: 1px solid #ccc; }
.catalog-selected-heading h2 { font-size: 30px; line-height: 1.2; margin: 0; }
.catalog-selected-heading .text-link { flex-shrink: 0; font-size: 15px; }
.catalog-group-content .demo-product-listing { margin-top: 0; }
.catalog-group-content .demo-product-heading h2 { display: none; }
.catalog-group-content .demo-product-heading { justify-content: flex-end; margin-bottom: 12px; }
.catalog-category-selection { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; padding-bottom: 32px; }
.catalog-category-selection p { font-size: 18px; line-height: 1.5; color: #555; margin-bottom: 20px; }
.catalog-category-request { border-left: 1px solid #ccc; padding-left: 32px; }
.catalog-category-request h3 { font-size: 24px; margin: 0 0 16px; }
.catalog-category-request .button { max-width: 100%; }
@media (max-width: 1390px) {
  .catalog-group-options { grid-template-columns: none; grid-template-rows: repeat(2, 108px); grid-auto-flow: column; grid-auto-columns: 260px; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
  .catalog-group-scroll { display: flex; }
  .catalog-group-scroll .icon { width: 18px; height: 18px; }
}
@media (max-width: 1190px) {
  .catalog-group-options { grid-template-columns: none; grid-template-rows: repeat(2, 108px); grid-auto-flow: column; grid-auto-columns: 260px; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
  .catalog-group-scroll { display: flex; }
  .catalog-group-scroll .icon { width: 18px; height: 18px; }
  .demo-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-results-column .demo-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-product-overview, .demo-product-details { gap: 32px; }
  .demo-product-summary h1 { font-size: 36px; }
}
@media (max-width: 700px) {
  .catalog-with-groups .page-heading h1 { font-size: 32px; }
  .catalog-group-switcher { margin-block: 16px 10px; }
  .catalog-group-scroll { display: flex; }
  .catalog-group-scroll .icon { width: 18px; height: 18px; }
  .catalog-selected-heading { flex-direction: column; gap: 12px; padding-block: 16px; }
  .catalog-selected-heading h2 { font-size: 26px; }
  .catalog-category-selection { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .catalog-category-request { border-left: 0; border-top: 1px solid #ccc; padding: 24px 0 0; }
  .catalog-category-request .button { width: 100%; }
  .demo-product-heading { align-items: start; flex-direction: column; gap: 0; margin-bottom: 14px; }
  .demo-product-heading h2, .demo-categories-heading, .demo-product-page h2 { font-size: 26px; }
  .demo-product-grid, .demo-related .demo-product-grid, .demo-product-overview, .demo-product-details { grid-template-columns: minmax(0, 1fr); }
  .catalog-results-column .demo-product-grid { grid-template-columns: minmax(0, 1fr); }
  .demo-product-image { height: 290px; }
  .demo-product-overview { gap: 24px; margin-bottom: 36px; }
  .demo-product-overview figure { height: 350px; padding: 20px; }
  .demo-product-summary h1 { font-size: 32px; }
  .demo-product-summary .button { width: 100%; }
  .demo-product-description { font-size: 18px; }
  .demo-product-summary .demo-product-stats dd { font-size: 22px; }
  .demo-specifications > div { gap: 16px; font-size: 15px; }
}
@media (max-width: 900px) {
  .demo-product-filters { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .catalog-search-row, .catalog-results-column, .catalog-filter-panel { grid-column: 1; grid-row: auto; }
  .catalog-filter-panel { padding: 0; border: 0; border-bottom: 1px solid #ccc; }
  .catalog-filter-panel summary { padding: 12px 0; min-height: 48px; }
  .catalog-filter-panel summary .icon { display: block; }
  .catalog-filter-panel[open] summary .icon { transform: rotate(180deg); }
  .catalog-filter-fields { padding-top: 12px; }
  .catalog-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.demo-product-navigation { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.demo-product-navigation .breadcrumbs { margin: 0; }
.demo-product-navigation .demo-catalog-back { flex-shrink: 0; align-items: center; min-width: 152px; }
.demo-catalog-back .arrow { transform: rotate(180deg); }
@media (max-width: 700px) {
  .demo-product-navigation { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 900px) { .catalog-group-options > button { font-size: 16px; } }
@media (min-width: 901px) and (max-width: 1500px) {
  .catalog-group-options > button { font-size: 16px; }
  .catalog-group-options > button > img { width: 76px; flex-basis: 76px; }
}

/* Наличие и цена из админки */
.demo-product-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 6px 0 10px; }
.demo-price { font-size: 18px; font-weight: 700; color: #181818; }
.demo-product-page .demo-price { font-size: 26px; }
.demo-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #f1f1ef; color: #555; }
.demo-stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.demo-stock--in_stock { background: #e8f5ec; color: #1e7a3c; }
.demo-stock--order { background: #fff3e6; color: #a35400; }
.demo-stock--none { background: #f6e9e9; color: #9b2a2a; }
