/* Owner-approved 13 September: shared quantity, desktop views and photo galleries. */
.desktop-manager-shortcut { display: none; }
@media(min-width:781px) {
  .desktop-manager-shortcut { position: fixed; top: 12px; right: 12px; z-index: 110; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff3b0; color: #173d29; box-shadow: 0 2px 6px #0002; }
}
.product-summary .product-summary__order { order: 5; }
.product-order-quantity { display: grid; gap: 6px; width: 100%; max-width: 380px; margin: 12px 0; }
.product-order-total { display: flex; flex-wrap: wrap; justify-content: space-between; align-content: center; gap: 2px 12px; min-height: 36px; font: 500 15px/18px Arial,sans-serif; color: #101715; }
.product-order-total > span { min-width: 0; overflow-wrap: anywhere; }
.product-order-quantity .product-card__stepper {
  display: grid !important; grid-template-columns: 44px minmax(44px,1fr) 44px !important;
  width: 100% !important; height: 46px !important; min-height: 46px !important;
  padding: 0 !important; border: 1px solid #d5ddda !important; border-radius: 10px !important;
  background: #f7faf8 !important; color: #101715 !important; overflow: hidden;
}
.product-order-quantity .product-card__stepper button { min-width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: inherit; }
.product-order-quantity .product-card__stepper-action { font: 700 22px/22px Arial,sans-serif; }
.product-order-quantity :is(.product-card__stepper-value,.product-card__stepper-value small,.product-card__stepper-value span) { font: 700 18px/22px Arial,sans-serif !important; }
.product-order-quantity .product-card__stepper-value { display: flex; align-items: center; justify-content: center; gap: 4px; border-inline: 1px solid #d5ddda !important; }
.product-order-quantity .product-card__stepper.is-added { background: #edf6ef !important; color: #125c35 !important; border-color: #80b796 !important; }
.product-card .product-card__image[data-card-gallery] { position: relative !important; }
.product-card .product-card__image .catalog-photo-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.55); color: #818783; box-shadow: none;
  font: 400 22px/1 Arial,sans-serif; cursor: pointer;
}
.catalog-photo-arrow--previous { left: 0; }
.catalog-photo-arrow--next { right: 0; }
.catalog-photo-arrow:focus-visible { outline: 2px solid #087f4a; outline-offset: -2px; }

@media(min-width:781px) {
  body.catalog-menu-root.catalog-view-list .catalog-feed-products { display: grid !important; grid-template-columns: minmax(0,1fr) !important; gap: 14px !important; }
  body.catalog-menu-root.catalog-view-grid .catalog-feed-products { display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)) !important; gap: 16px !important; }
  body.catalog-menu-root .catalog-feed-product { min-width: 0; padding: 0 !important; }
  body.catalog-menu-root .catalog-feed-product .product-card {
    display: grid !important; position: relative !important; gap: 8px 20px !important;
    grid-template-columns: minmax(0,1fr) !important; grid-template-rows: 200px 202px !important;
    height: 434px !important; min-height: 434px !important; max-height: 434px !important;
    padding: 12px !important; border: 0 !important; box-shadow: none !important; background: #fff !important;
    box-sizing: border-box !important; overflow: hidden !important;
  }
  body.catalog-menu-root.catalog-view-list .catalog-feed-product .product-card {
    grid-template-columns: minmax(160px,28%) minmax(0,1fr) !important;
    grid-template-rows: 220px !important; height: 244px !important; min-height: 244px !important; max-height: 244px !important;
  }
  body.catalog-menu-root .catalog-feed-product .product-card .product-card__image {
    position: relative !important; inset: auto !important; width: 100% !important; height: 200px !important; min-height: 0 !important;
    margin: 0 !important; padding: 8px !important; aspect-ratio: auto !important; background: transparent !important;
    overflow: hidden !important; grid-row: 1 !important; grid-column: 1 !important;
  }
  body.catalog-menu-root.catalog-view-list .catalog-feed-product .product-card .product-card__image { height: 220px !important; }
  body.catalog-menu-root .catalog-feed-product .product-card .product-card__image :is(picture,img) {
    width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: 100% !important;
    object-fit: contain !important; object-position: center !important; transform: none !important;
    min-width: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; aspect-ratio: auto !important;
  }
  body.catalog-menu-root .catalog-feed-product .product-card .product-card__image > picture { position: absolute !important; inset: 8px !important; width: calc(100% - 16px) !important; height: calc(100% - 16px) !important; }
  body.catalog-menu-root .catalog-feed-product .product-card .product-card__image > picture > img { position: static !important; }
  body.catalog-menu-root .catalog-feed-product .product-card .product-card__body {
    display: grid !important; grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
    grid-template-rows: 15px 42px 17px 116px !important; gap: 4px !important; align-content: start !important;
    grid-row: 2 !important; grid-column: 1 !important; height: 202px !important; min-height: 0 !important; padding: 0 !important;
  }
  body.catalog-menu-root.catalog-view-list .catalog-feed-product .product-card .product-card__body { grid-row: 1 !important; grid-column: 2 !important; align-self: center !important; }
  body.catalog-menu-root .catalog-feed-product .product-card :is(.product-card__category,.product-card__spec,.product-card__material) { display: none !important; }
  body.catalog-menu-root .catalog-feed-product .product-card .product-card__code-row { grid-row: 1 !important; grid-column: 1/-1 !important; margin: 0 !important; min-height: 0 !important; padding: 0 40px 0 0 !important; }
  body.catalog-menu-root .catalog-feed-product .product-card .product-card__code { font: 400 12px/15px Arial,sans-serif !important; color: #7d8983 !important; }
  body.catalog-menu-root .catalog-feed-product .product-card .product-card__title {
    grid-row: 2 !important; grid-column: 1/-1 !important; margin: 0 !important; padding: 0 !important;
    height: 42px !important; min-height: 42px !important; max-height: 42px !important;
    display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical !important;
    overflow: hidden !important; font: 700 16px/21px Arial,sans-serif !important;
  }
  body.catalog-menu-root .catalog-feed-product .product-card .product-card__pack-info {
    grid-row: 3 !important; grid-column: 1 !important; display: block !important; margin: 0 !important; padding: 0 !important;
    background: transparent !important; font: 400 12px/17px Arial,sans-serif !important; white-space: nowrap;
  }
  body.catalog-menu-root .catalog-feed-product .product-card .product-card__availability-line { display: block !important; grid-row: 3 !important; grid-column: 2 !important; text-align: right; padding-right: 8px; color: #08733f; font: 600 12px/17px Arial,sans-serif; white-space: nowrap; }
  body.catalog-menu-root .catalog-feed-product .product-card .product-card__footer {
    display: grid !important; grid-column: 1/-1 !important; grid-row: 4 !important; width: 100% !important;
    grid-template-columns: minmax(0,1fr) !important; grid-template-rows: 28px 34px 46px !important; gap: 4px !important;
    height: 116px !important; min-height: 116px !important; padding: 0 !important; border: 0 !important; margin: 0 !important;
  }
  body.catalog-menu-root .catalog-feed-product .product-card .product-card__footer > div:first-child { display: flex !important; align-items: baseline; gap: 6px; flex-wrap: wrap; height: 28px; }
  body.catalog-menu-root .catalog-feed-product .product-card .product-card__footer > div:first-child small { display: none; }
  body.catalog-menu-root .catalog-feed-product .product-card [data-request-unit-label] { display: inline !important; }
  body.catalog-menu-root.catalog-view-list .catalog-feed-product .product-card .product-card__footer { max-width: 380px; }
  body.catalog-menu-root .catalog-feed-product .product-card .product-card__price { font: 700 15px/18px Arial,sans-serif !important; white-space: nowrap; }
  body.catalog-menu-root .catalog-feed-product .product-card .product-card__price::after { content: ' / шт.'; }
  body.catalog-menu-root .catalog-feed-product .product-card .product-card__selection-total {
    display: flex !important; justify-content: space-between !important; align-content: center; flex-wrap: wrap; gap: 0 8px;
    grid-row: 2 !important; grid-column: 1 !important; min-height: 34px !important; height: 34px !important; margin: 0 !important;
    font: 500 15px/17px Arial,sans-serif !important; color: #101715 !important; overflow: hidden;
  }
  body.catalog-menu-root .catalog-feed-product .product-card .product-card__selection-total > span { white-space: nowrap; max-width: 100%; }
  body.catalog-menu-root .catalog-feed-product .product-card .product-card__buy-row { display: block !important; grid-row: 3 !important; grid-column: 1 !important; width: 100% !important; max-width: 380px; height: 46px !important; padding: 0 !important; margin: 0 !important; }
  body.catalog-menu-root .catalog-feed-product .product-card .product-card__stepper {
    display: grid !important; grid-template-columns: 44px minmax(44px,1fr) 44px !important; height: 46px !important; min-height: 46px !important;
    width: 100% !important; padding: 0 !important; background: #f7faf8 !important; color: #101715 !important;
    border: 1px solid #d5ddda !important; border-radius: 10px !important; overflow: hidden; box-shadow: none !important;
  }
  body.catalog-menu-root .catalog-feed-product .product-card .product-card__stepper.is-added { background: #edf6ef !important; color: #125c35 !important; border-color: #80b796 !important; }
  body.catalog-menu-root .catalog-feed-product .product-card .product-card__stepper button { min-width: 44px !important; height: 44px !important; padding: 0 !important; background: transparent !important; color: inherit !important; }
  body.catalog-menu-root .catalog-feed-product .product-card .product-card__stepper-action { font: 700 22px/22px Arial,sans-serif !important; }
  body.catalog-menu-root .catalog-feed-product .product-card :is(.product-card__stepper-value,.product-card__stepper-value span,.product-card__stepper-value small) { font: 700 18px/22px Arial,sans-serif !important; }
  body.catalog-menu-root .catalog-feed-product .product-card .product-card__stepper-value { display: flex !important; align-items: center; justify-content: center; gap: 4px; border-inline: 1px solid #d5ddda; }
  body.catalog-menu-root .catalog-feed-product .product-card .product-card__favorite { position: absolute !important; top: 2px !important; right: 2px !important; width: 44px !important; height: 44px !important; min-width: 44px !important; background: transparent !important; box-shadow: none !important; border: 0 !important; }
}
@media(min-width:781px) and (max-width:1100px) {
  body.catalog-menu-root.catalog-view-grid .catalog-feed-products { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
}
@media(min-width:781px) and (max-width:900px) {
  body.catalog-menu-root.catalog-view-grid .catalog-feed-products { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
}

/* Approved 13 September mobile LIST card. Grid and desktop retain their rules. */
@media(max-width:780px) {
  html body.catalog-menu-root.catalog-view-grid .catalog-feed-product[data-product-category] .product-card .product-card__image > picture {
    position: absolute !important; inset: 6px !important; width: calc(100% - 12px) !important; height: calc(100% - 12px) !important;
    min-height: 0 !important; min-width: 0 !important; max-height: none !important; margin: 0 !important; padding: 0 !important; aspect-ratio: auto !important;
  }
  html body.catalog-menu-root.catalog-view-grid .catalog-feed-product[data-product-category] .product-card .product-card__image > picture > img {
    position: static !important; width: 100% !important; height: 100% !important; min-height: 0 !important; min-width: 0 !important;
    max-height: 100% !important; object-fit: contain !important; margin: 0 !important; padding: 0 !important; transform: none !important;
  }
}
@media (max-width: 780px) {
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-products,#request-drawer .request-drawer__items) {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    background: transparent !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) {
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  /* audit2 10.10.2026 (T1-2): names in 3 lines (model, size and pack visible: ДП 51/250, ПФ-115 2,6 кг, XPS 20/30/50 мм):
     the title row 42 → 63 px, so the card, its photo and its body are 21 px taller (195 → 216, 187 → 208); the rows below
     the name keep their sizes. Same numbers in mobile-standards.css (list rule with [data-product-category]). */
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product)[data-product-category] .product-card,
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 36fr) minmax(0, 64fr) !important;
    grid-template-rows: 208px !important;
    column-gap: 9px !important;
    row-gap: 0 !important;
    width: 100% !important;
    height: 216px !important;
    min-height: 216px !important;
    max-height: 216px !important;
    margin: 0 !important;
    padding: 6px 0 2px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    transform: none !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card::before,
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card::after {
    content: none !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card .product-card__image {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    place-items: center !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    height: 208px !important;
    min-height: 0 !important;
    max-height: 208px !important;
    padding: 6px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product)[data-product-category] .product-card .product-card__image :is(picture, img) {
    display: block !important;
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
    clip-path: none !important;
    filter: none !important;
    mix-blend-mode: normal !important;
    background: transparent !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card .product-card__body {
    display: grid !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) !important;
    grid-template-rows: 15px 63px 17px 98px !important;
    gap: 5px 4px !important;
    height: 208px !important;
    min-height: 0 !important;
    max-height: 208px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    align-content: start !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card .product-card__code-row {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    height: 15px !important;
    min-height: 15px !important;
    padding: 0 36px 0 0 !important;
    margin: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card .product-card__code {
    color: #5f6b66 !important; /* a23 23.10.2026: «Код: …» contrast 5.5:1 (was #7d8983, 3.6:1) */
    font: 400 12px/15px Arial, sans-serif !important;
    white-space: nowrap !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card .product-card__title {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    height: 63px !important;
    min-height: 63px !important;
    max-height: 63px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #101715 !important;
    font: 700 16px/21px Arial, sans-serif !important;
    overflow: hidden !important;
    overflow-wrap: anywhere;
    text-overflow: ellipsis !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card .product-card__title a {
    font: inherit !important;
    color: inherit !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card :is(.product-card__pack-info, .product-card__availability-line) {
    grid-row: 3 !important;
    display: block !important;
    width: 100% !important;
    height: 17px !important;
    min-height: 17px !important;
    max-height: 17px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #58655f !important;
    font: 400 12px/17px Arial, sans-serif !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card .product-card__pack-info {
    grid-column: 1 !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card .product-card__pack-info[data-list-pack] {
    font-size: 0 !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card .product-card__pack-info[data-list-pack]::after {
    content: attr(data-list-pack) !important;
    font: 400 12px/17px Arial, sans-serif !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card .product-card__availability-line {
    grid-column: 2 !important;
    align-self: start !important;
    color: #08733f !important;
    font-weight: 700 !important;
    text-align: right !important;
    padding-right: 8px !important;
    box-sizing: border-box !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card .product-card__availability-line[data-list-available="false"] {
    color: #5f6b66 !important; /* a23 23.10.2026: contrast 5.5:1 */
  }
  /* audit2 10.10.2026 (T1-1): out of stock in the colour of the product page (7.3:1 on white), not grey. */
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card .product-card__availability-line.is-unavailable {
    color: #9a3412 !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card .product-card__footer {
    display: grid !important;
    grid-column: 1 / -1 !important;
    grid-row: 4 !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: 18px 30px 46px !important;
    gap: 2px !important;
    height: 98px !important;
    min-height: 98px !important;
    max-height: 98px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card .product-card__footer > div:first-child {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 5px !important;
    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    overflow: hidden !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card .product-card__price {
    font: 700 15px/18px Arial, sans-serif !important;
    color: #101715 !important;
    white-space: nowrap !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card .product-card__price::before {
    content: none !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card .product-card__price::after {
    content: ' / шт.' !important;
    font: inherit !important;
  }
  /* Discounts keep their existing amount and separate crossed-out value. */
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card[data-list-discount] .product-card__footer {
    grid-template-rows: 31px 17px 46px !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card[data-list-discount] .product-card__footer > div:first-child {
    height: 31px !important;
    min-height: 31px !important;
    max-height: 31px !important;
    flex-direction: column !important;
    gap: 0 !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card .product-card__old-price {
    font: 400 11px/13px Arial, sans-serif !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card .product-card__selection-total {
    grid-column: 1 !important;
    grid-row: 2 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-content: center !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0 3px !important;
    width: 100% !important;
    height: 30px !important;
    min-height: 0 !important;
    max-height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    font: 400 15px/15px Arial, sans-serif !important;
    color: #101715 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card[data-list-discount] .product-card__selection-total {
    height: 17px !important;
    max-height: 17px !important;
    flex-wrap: nowrap !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card .product-card__selection-total[hidden] {
    visibility: hidden !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card .product-card__selection-total > span {
    flex: 0 1 auto !important;
    font: inherit !important;
    color: inherit !important;
    min-width: 0 !important;
    max-width: 100% !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card .product-card__selection-amount {
    margin-left: auto !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card .product-card__buy-row {
    display: block !important;
    grid-column: 1 !important;
    grid-row: 3 !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card .product-card__stepper {
    display: grid !important;
    grid-template-columns: 44px minmax(44px, 1fr) 44px !important;
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    padding: 0 !important;
    border: 1px solid #d5ddda !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #101715 !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card .product-card__stepper button {
    width: auto !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    color: inherit !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card .product-card__stepper-action {
    font: 700 22px/22px Arial, sans-serif !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card :is(.product-card__stepper-value, .product-card__stepper-value span, .product-card__stepper-value small) {
    font: 700 18px/22px Arial, sans-serif !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card .product-card__stepper-value {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    border-inline: 1px solid #d5ddda !important;
    white-space: nowrap !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card .product-card__stepper.is-added {
    border-color: #087f4a !important;
    background: #087f4a !important;
    color: #fff !important;
    box-shadow: none !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card .product-card__stepper.is-added .product-card__stepper-value {
    border-color: rgba(255, 255, 255, .62) !important;
  }
  /* Code and heart share one horizontal axis. The next row starts below the icon. */
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card .product-card__favorite,
  body.catalog-menu-root.catalog-navigation-ready.catalog-view-list .catalog-feed-product .product-card .product-card__image .product-card__favorite {
    position: absolute !important;
    top: -8.5px !important;
    right: var(--alyans-list-heart-right, -10.5px) !important;
    bottom: auto !important;
    left: auto !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 0 !important;
    color: #9ca3a8 !important;
    transform: none !important;
    z-index: 8 !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card .product-card__favorite > * {
    display: none !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card .product-card__favorite::before {
    content: '' !important;
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    background: currentColor !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78L12 21.23l8.84-8.84a5.5 5.5 0 0 0 0-7.78Z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78L12 21.23l8.84-8.84a5.5 5.5 0 0 0 0-7.78Z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card .product-card__favorite.is-favorite {
    color: #e30613 !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card .product-card__favorite.is-favorite::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78L12 21.23l8.84-8.84a5.5 5.5 0 0 0 0-7.78Z' fill='black' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78L12 21.23l8.84-8.84a5.5 5.5 0 0 0 0-7.78Z' fill='black' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card .product-card__favorite::after {
    content: none !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card .product-card__favorite:focus-visible {
    outline: 2px solid #087f4a !important;
    outline-offset: -4px !important;
    border-radius: 6px !important;
  }
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card .product-card__promo-badge {
    max-width: calc(100% - 12px) !important;
    height: 22px !important;
    min-height: 22px !important;
    top: 0 !important;
    left: 0 !important;
  }
}

/* Mobile reference: quiet grey gutters, white rounded cards, unchanged contents. */
@media (max-width:780px) {
  :is(body.catalog-menu-root #content,#request-drawer) .catalog-feed-products {
    width:calc(100% + 28px)!important;max-width:none!important;
    margin-left:-14px!important;margin-right:-14px!important;
    padding:6px 14px!important;box-sizing:border-box!important;
    background:#f4f5f6!important;gap:6px!important;
  }
  :is(body.catalog-menu-root #content,#request-drawer) .catalog-feed-product {
    position:relative;isolation:isolate;background:#fff!important;border-radius:14px!important;
  }
  body.catalog-menu-root.catalog-view-list #content .catalog-feed-product::before {
    content:none!important;
  }
  :is(body.catalog-menu-root #content,#request-drawer) .catalog-feed-product[data-product-category] .product-card {
    background:#fff!important;border-radius:14px!important;
  }
  /* Fit existing dots in the bottom padding, without covering or shrinking images. */
  :is(body.catalog-menu-root #content,#request-drawer) .product-card .product-card__image .product-card__gallery-dots {
    display:flex!important;align-items:center!important;justify-content:center!important;
    position:absolute!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;
    height:6px!important;min-height:0!important;width:100%!important;gap:4px!important;
    padding:0!important;margin:0!important;transform:none!important;background:transparent!important;
    border:0!important;border-radius:0!important;box-shadow:none!important;pointer-events:none!important;
  }
  :is(body.catalog-menu-root #content,#request-drawer) .product-card__gallery-dots i {
    flex:0 0 4px!important;width:4px!important;height:4px!important;
    padding:0!important;margin:0!important;border:0!important;border-radius:50%!important;
    background:#d8dcda!important;box-shadow:none!important;
  }
  :is(body.catalog-menu-root #content,#request-drawer) .product-card__gallery-dots i.is-active{background:#727a75!important}
  :is(body.catalog-menu-root #content,#request-drawer) .product-card__gallery-dots:not(:has(i:nth-child(2))){display:none!important}
}

/* Round two: side breathing room and the same list card inside the basket. */
@media(max-width:780px){
 #request-drawer.request-drawer{
  height:calc(100dvh - var(--alyans-mobile-nav-height,70px) - env(safe-area-inset-bottom))!important;
  max-height:calc(100dvh - var(--alyans-mobile-nav-height,70px) - env(safe-area-inset-bottom))!important;
  margin:0 0 calc(var(--alyans-mobile-nav-height,70px) + env(safe-area-inset-bottom)) auto!important;
 }
 :is(body.catalog-menu-root.catalog-view-list #content .catalog-feed-product,#request-drawer .catalog-feed-product){
  width:calc(100% + 16px)!important;max-width:none!important;box-sizing:border-box!important;
  margin-left:-8px!important;margin-right:-8px!important;padding-left:8px!important;padding-right:8px!important;
 }
 :is(body.catalog-menu-root.catalog-view-list #content,#request-drawer) .catalog-feed-product .product-card__image>picture{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;margin:0!important}
 :is(body.catalog-menu-root.catalog-view-list #content,#request-drawer) .catalog-feed-product .product-card .product-card__image>picture>img{
  position:absolute!important;inset:0 6px auto!important;width:calc(100% - 12px)!important;height:calc(100% - 12px)!important;
  min-width:0!important;min-height:0!important;max-width:calc(100% - 12px)!important;max-height:calc(100% - 12px)!important;
  object-fit:contain!important;object-position:center top!important;transform:none!important;padding:0!important;margin:0!important;
 }
 :is(body.catalog-menu-root.catalog-view-list #content,#request-drawer) .catalog-feed-product .product-card .product-card__favorite{top:0!important;right:4px!important;transform:none!important}
 :is(body.catalog-menu-root.catalog-view-list #content,#request-drawer) .catalog-feed-product .product-card .product-card__title{padding-right:38px!important}
 :is(body.catalog-menu-root #content,#request-drawer) .catalog-feed-product .product-card .product-card__price::after{content:' / шт'!important}
 #request-drawer .request-drawer__panel{padding-left:14px!important;padding-right:14px!important}
 #request-drawer .request-drawer__selection{padding:0!important;border:0!important;background:transparent!important}
 #request-drawer .request-drawer__items{max-height:none!important;overflow:visible!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important}
 #request-drawer .request-drawer__items[hidden]{display:none!important}
 #request-drawer .mobile-cart-card{display:block!important;padding-top:0!important;padding-bottom:0!important;border:0!important;box-shadow:none!important}
 #request-drawer .mobile-cart-remove{position:static!important;display:block!important;width:auto!important;height:44px!important;min-width:88px!important;min-height:44px!important;margin:4px 0 0 auto!important;padding:0 12px!important;clip-path:none!important;overflow:visible!important;border:1px solid #d5ddda!important;border-radius:8px;background:#fff;color:#555;font:400 14px/20px Arial,sans-serif}
 #request-drawer .mobile-cart-remove:focus-visible{outline:2px solid #267b45;outline-offset:2px}
 #request-drawer .request-drawer__total{position:static!important;margin-top:14px!important}
 #request-drawer .request-review-actions{
  position:static!important;inset:auto!important;z-index:auto!important;
  margin-top:13px!important;padding-bottom:0!important;
  background:transparent!important;box-shadow:none!important;
 }
}

/* hidden gallery slides must stay unrendered so lazy images do not load */
.product-card__image picture[data-card-gallery-slide][hidden]:not(#_a):not(#_b){display:none!important}

/* audit 08.10.2026 (A6): goods priced per package (priceUnit «уп.», XPS boards) say « / уп.» instead of « / шт».
   One copy of each « / шт» rule (here and assets/css/mobile-standards.css) in the same @media with the same !important;
   .product-card--price-pack makes each copy stronger than its own rule. Uzbek text: inc/i18n-uz-pseudo.css. */
@media(min-width:781px) {
  body.catalog-menu-root .catalog-feed-product .product-card.product-card--price-pack .product-card__price::after { content: ' / уп.'; }
}
@media (max-width: 780px) {
  :is(body.catalog-menu-root.catalog-view-list .catalog-feed-product,#request-drawer .catalog-feed-product) .product-card.product-card--price-pack .product-card__price::after { content: ' / уп.' !important; }
  body.catalog-menu-root .catalog-feed-product .product-card.product-card--price-pack .product-card__price::after { content: ' / уп.' !important; }
}
@media(max-width:780px){
 :is(body.catalog-menu-root #content,#request-drawer) .catalog-feed-product .product-card.product-card--price-pack .product-card__price::after{content:' / уп.'!important}
}
