/* SIN96: shared home background; catalog appearance only, no viewport/zoom rules. */
html.sin96-storefront {
    background-color: #f7fbff !important;
    background-image: linear-gradient(rgba(255,255,255,.82), rgba(255,255,255,.82)), url('/images/home-parts-bg.png') !important;
    background-position: center top !important;
    background-size: 100% auto !important;
    background-repeat: repeat-y !important;
}
html.sin96-storefront body,
html.sin96-storefront body .head_wrap,
html.sin96-storefront body .wrapper,
html.sin96-storefront body .catalog-container,
html.sin96-storefront body .catalog-container-desktop,
html.sin96-storefront body .mobile-version {
    background-color: transparent !important;
}

/* A single grid across all server-generated groups, including incomplete pages. */
html.sin96-storefront body #catalogContainer:is(.sin96-design-grid,.grid-view) :is(.sin96-design-host,[data-entity="items-container"],.catalog-section-internal-wrapper:has(>[data-entity="items-row"])) {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 20px 16px !important;
    align-items: stretch !important;
    align-content: start !important;
    height: auto !important;
    min-height: 0 !important;
}
html.sin96-storefront body #catalogContainer:is(.sin96-design-grid,.grid-view) :is(.sin96-design-flat,[data-entity="items-row"],.product-item-small-card,.row) {
    display: contents !important;
}
html.sin96-storefront body #catalogContainer:is(.sin96-design-grid,.grid-view) :is(.sin96-design-flat,[data-entity="items-row"],.product-item-small-card,.row)::before,
html.sin96-storefront body #catalogContainer:is(.sin96-design-grid,.grid-view) :is(.sin96-design-flat,[data-entity="items-row"],.product-item-small-card,.row)::after,
html.sin96-storefront body #catalogContainer:is(.sin96-design-grid,.grid-view) :is(.sin96-design-host,[data-entity="items-container"],.catalog-section-internal-wrapper:has(>[data-entity="items-row"]))::before,
html.sin96-storefront body #catalogContainer:is(.sin96-design-grid,.grid-view) :is(.sin96-design-host,[data-entity="items-container"],.catalog-section-internal-wrapper:has(>[data-entity="items-row"]))::after {
    display: none !important;
    content: none !important;
}
html.sin96-storefront body #catalogContainer:is(.sin96-design-grid,.grid-view) :is(.sin96-design-host,[data-entity="items-container"],.catalog-section-internal-wrapper:has(>[data-entity="items-row"])) > :not(:is(.sin96-design-flat,[data-entity="items-row"],.product-item-small-card,.row)) {
    grid-column: 1 / -1 !important;
}
html.sin96-storefront body #catalogContainer:is(.sin96-design-grid,.grid-view) :is(.sin96-design-item,[data-entity="item"]) {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Quiet white cards; orange belongs to the action and existing product photos. */
html.sin96-storefront body #catalogContainer.catalog-section .product-item.trigger-product-card {
    background: #fff !important;
    border: 1px solid #e1e9f1 !important;
    border-radius: 16px !important;
    box-shadow: 0 3px 12px rgba(25, 55, 90, .045) !important;
    box-sizing: border-box !important;
    font-family: Inter, 'Segoe UI', Arial, sans-serif !important;
    transition: border-color .18s ease, box-shadow .18s ease !important;
}
html.sin96-storefront body #catalogContainer.catalog-section .product-item.trigger-product-card:hover {
    border-color: #c2d2e3 !important;
    box-shadow: 0 8px 24px rgba(25, 55, 90, .10) !important;
}
html.sin96-storefront body #catalogContainer.catalog-section.grid-view .product-item.trigger-product-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 10px !important;
}
html.sin96-storefront body #catalogContainer.catalog-section.grid-view .product-item-image-wrapper {
    order: 0 !important;
    border-radius: 11px !important;
    margin-bottom: 12px !important;
}

/* Title: three stable lines at six columns, with the complete name in its link title. */
html.sin96-storefront body #catalogContainer.catalog-section .trigger-product-card .product-item-title,
html.sin96-storefront body #catalogContainer.catalog-section .trigger-product-card .product-item-title a {
    font-family: Inter, 'Segoe UI', Arial, sans-serif !important;
    color: #20354d !important;
    font-weight: 600 !important;
    letter-spacing: -.15px !important;
    text-decoration: none !important;
    text-transform: none !important;
}
html.sin96-storefront body #catalogContainer.catalog-section.grid-view .product-item-title {
    order: 2 !important;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    flex: 0 0 60px !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
}
html.sin96-storefront body #catalogContainer.catalog-section.grid-view .product-item.trigger-product-card .product-item-title a {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    height: auto !important;
    max-height: 60px !important;
    min-height: 0 !important;
    font-size: 14px !important;
    line-height: 20px !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
}
html.sin96-storefront body #catalogContainer.catalog-section .product-item-title a:hover {
    color: #0b2a78 !important;
}

/* Fix the original width:100% + flex:0 0 auto on BOTH dt and dd. */
html.sin96-storefront body #catalogContainer.catalog-section .product-item-properties.trigger-catalog-props {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
}
html.sin96-storefront body #catalogContainer.catalog-section.grid-view .product-item-properties.trigger-catalog-props {
    order: 1 !important;
    min-height: 34px !important;
    flex: 0 0 auto !important;
    margin: 0 0 12px !important;
}
html.sin96-storefront body #catalogContainer.catalog-section .product-item.trigger-product-card .trigger-catalog-props .param-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 2px !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
}
html.sin96-storefront body #catalogContainer.catalog-section .product-item.trigger-product-card .trigger-catalog-props .param-row dt,
html.sin96-storefront body #catalogContainer.catalog-section .product-item.trigger-product-card .trigger-catalog-props .param-row dd {
    display: block !important;
    position: static !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    flex: 0 1 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-align: left !important;
    font-family: Inter, 'Segoe UI', Arial, sans-serif !important;
}
html.sin96-storefront body #catalogContainer.catalog-section .trigger-catalog-props .param-row dt {
    color: #778596 !important;
    font-size: 10px !important;
    line-height: 14px !important;
    font-weight: 400 !important;
    letter-spacing: .25px !important;
}
html.sin96-storefront body #catalogContainer.catalog-section .trigger-catalog-props .param-row dd {
    color: #42566d !important;
    font-size: 12px !important;
    line-height: 18px !important;
    font-weight: 600 !important;
    font-variant-numeric: tabular-nums !important;
}

/* A single size for buy, unavailable and quantity states; preserve hidden states. */
html.sin96-storefront body #catalogContainer.catalog-section.grid-view .product-item-info-container[data-entity="buttons-block"] {
    order: 3 !important;
    margin: auto 0 0 !important;
}
html.sin96-storefront body #catalogContainer.catalog-section .product-item.trigger-product-card .product-item-info-container[data-entity="buttons-block"],
html.sin96-storefront body #catalogContainer.catalog-section .product-item.trigger-product-card .product-item-button-container.trigger-card-cart {
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    flex: 0 0 40px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
html.sin96-storefront body #catalogContainer.catalog-section .product-item.trigger-product-card .trigger-card-cart .btn_btn-default:not([hidden]),
html.sin96-storefront body #catalogContainer.catalog-section .product-item.trigger-product-card .trigger-card-cart .trigger-cart-counter:not([hidden]) {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    margin: 0 !important;
    padding: 0 8px !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
}
html.sin96-storefront body #catalogContainer.catalog-section .trigger-card-cart .btn_btn-default:not([hidden]) {
    justify-content: center !important;
    gap: 6px !important;
    font-family: Inter, 'Segoe UI', Arial, sans-serif !important;
}
html.sin96-storefront body #catalogContainer.catalog-section .trigger-card-cart .btn_text {
    font-family: Inter, 'Segoe UI', Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 16px !important;
    white-space: nowrap !important;
}
html.sin96-storefront body #catalogContainer.catalog-section.grid-view .trigger-card-cart .btn_btn-default svg {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px !important;
}
html.sin96-storefront body #catalogContainer.catalog-section .trigger-card-cart .trigger-cart-status:disabled {
    background: #edf1f5 !important;
    color: #687789 !important;
    border: 1px solid #e1e7ee !important;
    box-shadow: none !important;
    opacity: 1 !important;
    cursor: default !important;
}
html.sin96-storefront body #catalogContainer.catalog-section .trigger-cart-status:disabled .btn_text {
    color: #687789 !important;
}
html.sin96-storefront body #catalogContainer.catalog-section .trigger-card-cart .trigger-cart-counter:not([hidden]) {
    justify-content: space-between !important;
}
html.sin96-storefront body #catalogContainer.catalog-section .trigger-card-cart [hidden] {
    display: none !important;
}

/* List view keeps its existing columns and zoom, gaining readable type and spacing. */
html.sin96-storefront body #catalogContainer.catalog-section.list-view .product-item.trigger-product-card .product-item-title a {
    font-size: 17px !important;
    line-height: 25px !important;
}
html.sin96-storefront body #catalogContainer.catalog-section.list-view .product-item-container {
    margin-bottom: 16px !important;
}
html.sin96-storefront body #catalogContainer.catalog-section.list-view .product-item.trigger-product-card .trigger-catalog-props .param-row {
    flex-direction: row !important;
    align-items: baseline !important;
    gap: 8px !important;
}
html.sin96-storefront body #catalogContainer.catalog-section.list-view .trigger-catalog-props .param-row dt {
    font-size: 12px !important;
}
html.sin96-storefront body #catalogContainer.catalog-section.list-view .trigger-catalog-props .param-row dd {
    font-size: 13px !important;
}
html.sin96-storefront body #catalogContainer.catalog-section.list-view .trigger-card-cart .btn_text {
    font-size: 14px !important;
}
@media (prefers-reduced-motion: reduce) {
    html.sin96-storefront body #catalogContainer.catalog-section .product-item.trigger-product-card {
        transition: none !important;
    }
}

/* Match the header's 1280px frame and 24px inner gutters. Keep existing body zoom. */
@media (min-width: 601px) {
    html.sin96-storefront body.sin96-catalog-page .wrapper.first_wrap {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    html.sin96-storefront body.sin96-catalog-page .sin96-catalog-shell {
        width: 100% !important;
        max-width: 1280px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
        box-sizing: border-box !important;
        display: flow-root !important;
        clear: both !important;
    }
    html.sin96-storefront body.sin96-catalog-page .sin96-catalog-shell .sin96-view-switcher {
        display: flex !important;
        clear: both !important;
        float: none !important;
        position: relative !important;
        inset: auto !important;
        transform: none !important;
        width: 100% !important;
        margin: 0 0 16px !important;
        padding: 0 !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
    }
    html.sin96-storefront body.sin96-catalog-page .sin96-view-switcher .btn-view {
        display: flex !important;
        padding: 0 !important;
        margin: 0 !important;
        line-height: 1 !important;
    }
}
html.sin96-storefront body #catalogContainer.catalog-section.list-view .product-item.trigger-product-card .product-item-properties.trigger-catalog-props {
    grid-row: 1 !important;
    align-self: start !important;
    margin: 0 !important;
}
html.sin96-storefront body #catalogContainer.catalog-section.list-view .product-item.trigger-product-card .product-item-title {
    grid-row: 2 !important;
    align-self: start !important;
    margin: 0 !important;
}

/* v4: flatten server groups so mobile products flow left to right in pairs. */
@media (max-width: 600px) {
    html.sin96-storefront body.sin96-catalog-page .grid-view-mobile .catalog-section-internal-wrapper > [data-entity="items-row"],
    html.sin96-storefront body.sin96-catalog-page .grid-view-mobile [data-entity="items-row"] > .product-item-small-card,
    html.sin96-storefront body.sin96-catalog-page .grid-view-mobile [data-entity="items-row"] > .product-item-small-card > .row {
        display: contents !important;
    }
    html.sin96-storefront body.sin96-catalog-page .grid-view-mobile [data-entity="items-row"]::before,
    html.sin96-storefront body.sin96-catalog-page .grid-view-mobile [data-entity="items-row"]::after,
    html.sin96-storefront body.sin96-catalog-page .grid-view-mobile .product-item-small-card::before,
    html.sin96-storefront body.sin96-catalog-page .grid-view-mobile .product-item-small-card::after,
    html.sin96-storefront body.sin96-catalog-page .grid-view-mobile .product-item-small-card > .row::before,
    html.sin96-storefront body.sin96-catalog-page .grid-view-mobile .product-item-small-card > .row::after {
        content: none !important;
        display: none !important;
    }
}

/* v3: article on one line; more balanced typography in list view. */
html.sin96-storefront body #catalogContainer.catalog-section.grid-view .product-item.trigger-product-card .trigger-catalog-props .param-row {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    gap: 2px 6px !important;
}
html.sin96-storefront body #catalogContainer.catalog-section .product-item.trigger-product-card .trigger-catalog-props .prop-articul-name {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}
html.sin96-storefront body #catalogContainer.catalog-section .product-item.trigger-product-card .trigger-catalog-props .prop-articul-name::after {
    content: ":" !important;
    display: inline !important;
    margin: 0 !important;
}
html.sin96-storefront body #catalogContainer.catalog-section.list-view .product-item.trigger-product-card {
    grid-template-rows: 1fr 1fr auto !important;
}
html.sin96-storefront body #catalogContainer.catalog-section.list-view .product-item.trigger-product-card .product-item-title {
    grid-row: 1 / 3 !important;
    align-self: center !important;
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 0 12px !important;
    -webkit-line-clamp: unset !important;
}
html.sin96-storefront body #catalogContainer.catalog-section.list-view .product-item.trigger-product-card .product-item-title a {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    font-size: 22px !important;
    line-height: 30px !important;
    overflow: visible !important;
    overflow-wrap: anywhere !important;
    -webkit-line-clamp: unset !important;
}
html.sin96-storefront body #catalogContainer.catalog-section.list-view .product-item.trigger-product-card .product-item-properties.trigger-catalog-props {
    grid-row: 3 !important;
    align-self: center !important;
}
html.sin96-storefront body #catalogContainer.catalog-section.list-view .product-item.trigger-product-card .trigger-catalog-props .param-row {
    flex-wrap: wrap !important;
}
html.sin96-storefront body #catalogContainer.catalog-section.list-view .product-item.trigger-product-card .trigger-catalog-props .param-row dt {
    font-size: 14px !important;
    line-height: 22px !important;
}
html.sin96-storefront body #catalogContainer.catalog-section.list-view .product-item.trigger-product-card .trigger-catalog-props .param-row dd {
    font-size: 16px !important;
    line-height: 22px !important;
}


html body .trigger-desktop-header__nav {
    display: none !important;
}