/* ==========================================================================
   TM Promo Codes UI v1 (Catalog Cards, PDP, Quick-View, Shopping Cart)
   Shared across Top-Matras.ru & Matrasy-v-SPb.rf -- Pure 7-bit ASCII
   ========================================================================== */

/* --- 1. Catalog / Homepage / Related Card Top-Right Photo Sticker (0px flow height) --- */
.product-preview-cont {
    position: relative;
}

.inner-item-cont .tm-promo-card-wrap,
#oom-block .tm-promo-card-wrap,
.item-prewiew .tm-promo-card-wrap,
.product-preview-cont .tm-promo-card-wrap,
.tm-promo-card-wrap {
    position: absolute !important;
    top: 7px !important;
    right: 7px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 8 !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    max-width: calc(100% - 52px) !important;
    pointer-events: auto !important;
}

.inner-item-cont .tm-promo-card-wrap.has-top-tag,
#oom-block .tm-promo-card-wrap.has-top-tag,
.item-prewiew .tm-promo-card-wrap.has-top-tag,
.tm-promo-card-wrap.has-top-tag {
    top: 31px !important;
}

.tm-promo-card-sticker {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    padding: 4px 7px;
    border-radius: 8px;
    border: 1px solid #6ac995;
    background: rgba(243, 252, 247, 0.96);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 3px 10px rgba(13, 92, 50, 0.13);
    cursor: pointer;
    text-align: right;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.18;
    transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.tm-promo-card-sticker:hover {
    background: #e5f8ed;
    border-color: #3eb574;
    box-shadow: 0 4px 12px rgba(13, 92, 50, 0.2);
}

.tm-promo-card-sticker:active {
    transform: scale(0.97);
}

.tm-promo-card-sticker.is-copied {
    background: #169c56 !important;
    border-color: #169c56 !important;
    color: #ffffff !important;
    padding: 6px 9px;
    font-size: 11.5px;
    font-weight: 700;
}

.tm-promo-st-top {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.tm-promo-card-pct {
    display: inline-block;
    padding: 1px 4px;
    border-radius: 4px;
    background: #169c56;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.25;
}

.tm-promo-st-code {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 11px;
    font-weight: 800;
    color: #0f5f35;
    letter-spacing: 0.2px;
}

.tm-promo-st-sub {
    font-size: 10.5px;
    font-weight: 600;
    color: #336349;
    white-space: nowrap;
}

.tm-promo-st-sub strong {
    font-weight: 800;
    color: #0d753e;
    font-size: 11px;
}

/* Shared inline copy chip used in Cart hints */
.tm-promo-copy-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border-radius: 6px;
    border: 1px solid #9adbb7;
    background: #ffffff;
    color: #11683b;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
    flex-shrink: 0;
}

.tm-promo-copy-chip:hover {
    background: #e2f7eb;
    border-color: #54bd85;
}

.tm-promo-copy-chip.is-copied {
    background: #169c56 !important;
    border-color: #169c56 !important;
    color: #ffffff !important;
}

@media screen and (max-width: 767px) {
    .inner-item-cont .tm-promo-card-wrap,
    #oom-block .tm-promo-card-wrap,
    .item-prewiew .tm-promo-card-wrap,
    .product-preview-cont .tm-promo-card-wrap,
    .tm-promo-card-wrap {
        top: 5px !important;
        right: 5px !important;
        max-width: calc(100% - 42px) !important;
    }
    .inner-item-cont .tm-promo-card-wrap.has-top-tag,
    #oom-block .tm-promo-card-wrap.has-top-tag,
    .item-prewiew .tm-promo-card-wrap.has-top-tag,
    .tm-promo-card-wrap.has-top-tag {
        top: 27px !important;
    }
    .tm-promo-card-sticker {
        padding: 3px 5px;
        border-radius: 6px;
        gap: 1px;
    }
    .tm-promo-card-pct {
        font-size: 9.5px;
        padding: 1px 3px;
    }
    .tm-promo-st-code {
        font-size: 10px;
    }
    .tm-promo-st-sub {
        font-size: 9.5px;
    }
    .tm-promo-st-sub strong {
        font-size: 10px;
    }
}

/* --- 2. Product Detail Page (PDP) & Quick-View Promo Box --- */
.tm-promo-pdp-box {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 10px 0 12px;
    padding: 11px 12px;
    border-radius: 12px;
    background: linear-gradient(180deg, #f3fbf6 0%, #ebf7f0 100%);
    border: 1px solid #b6e4ca;
    box-sizing: border-box !important;
    overflow: hidden;
    text-align: left;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.tm-promo-pdp-box.is-manual-only {
    background: #f7fafd;
    border-color: #d7e4f2;
    padding: 9px 11px;
}

.tm-promo-pdp-offer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.tm-promo-pdp-offer-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tm-promo-pdp-kicker {
    font-size: 11.5px;
    font-weight: 600;
    color: #2f6b4b;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tm-promo-pdp-price-line {
    display: flex;
    align-items: baseline;
    gap: 7px;
    flex-wrap: wrap;
}

.tm-promo-pdp-price {
    font-size: 19px;
    font-weight: 800;
    color: #0e7a42;
    letter-spacing: -0.2px;
}

.tm-promo-pdp-save {
    font-size: 11.5px;
    font-weight: 700;
    color: #ffffff;
    background: #169c56;
    padding: 2px 6px;
    border-radius: 6px;
}

.tm-promo-pdp-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px dashed #4db87e;
    background: #ffffff;
    color: #0f683a;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.tm-promo-pdp-copy-btn code {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 13px;
    font-weight: 800;
    background: transparent;
    padding: 0;
    color: inherit;
}

.tm-promo-pdp-copy-btn:hover {
    background: #e3f6ec;
    border-style: solid;
}

.tm-promo-pdp-copy-btn.is-copied {
    background: #169c56 !important;
    border-color: #169c56 !important;
    border-style: solid !important;
    color: #ffffff !important;
}

.tm-promo-toggle-link {
    background: none;
    border: none;
    padding: 0;
    color: #1f5f99;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

.tm-promo-toggle-link:hover {
    color: #123e6b;
}

.tm-promo-form-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.tm-promo-form-row.is-collapsed {
    display: none;
}

.tm-promo-inp {
    flex: 1 1 0%;
    width: 0;
    min-width: 0;
    max-width: 100%;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid #bdd3e8;
    background: #ffffff;
    color: #162b40;
    font-size: 16px !important;
    font-weight: 600;
    text-transform: uppercase;
    outline: none;
    box-sizing: border-box;
}

.tm-promo-inp:focus {
    border-color: #2670b8;
    box-shadow: 0 0 0 3px rgba(38, 112, 184, 0.14);
}

.tm-promo-apply-btn {
    flex: 0 0 auto;
    height: 36px;
    padding: 0 13px;
    border-radius: 8px;
    border: none;
    background: #1f67ab;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.tm-promo-apply-btn:hover {
    background: #17528a;
}

.tm-promo-apply-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.tm-promo-applied-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    background: #dff5e8;
    border: 1px solid #8fd6ae;
    color: #0d6235;
    font-size: 12.5px;
    font-weight: 700;
    margin-top: 6px;
}

.tm-promo-remove-btn {
    background: none;
    border: none;
    color: #8c2a2a;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 5px;
}

.tm-promo-remove-btn:hover {
    background: rgba(180, 35, 35, 0.1);
}

.tm-promo-msg {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.35;
}

.tm-promo-msg.is-err {
    color: #c22525;
    font-weight: 600;
}

.tm-promo-msg.is-ok {
    color: #0f703d;
    font-weight: 600;
}

/* Highlighted active promo price near main PDP / QV price */
.tm-pdp-price-struck {
    text-decoration: line-through !important;
    opacity: 0.72 !important;
}

.tm-pdp-active-price-pill {
    display: inline-block;
    margin-left: 6px;
    padding: 4px 11px;
    border-radius: 8px;
    background: linear-gradient(135deg, #169c56 0%, #0f7c43 100%);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 17px;
    line-height: 1.2;
    vertical-align: middle;
    box-shadow: 0 4px 12px rgba(15, 124, 67, 0.25);
    z-index: 5;
    white-space: nowrap;
}

.tm-pdp-active-price-pill.is-abs-under {
    position: absolute !important;
    right: 0 !important;
    margin-left: 0 !important;
}

/* --- 3. Shopping Cart Promo Box & Recalculated Totals --- */
.tm-promo-cart-wrap {
    margin: 16px 0;
    padding: 16px 18px;
    border-radius: 14px;
    background: #f7fafd;
    border: 1px solid #d5e4f2;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.tm-promo-cart-hints {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.tm-promo-cart-hint {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 10px;
    background: #ecf9f2;
    border: 1px dashed #7bcba2;
    font-size: 13px;
    color: #165936;
}

.tm-promo-cart-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tm-promo-cart-title {
    font-size: 14px;
    font-weight: 700;
    color: #193654;
    margin-right: 4px;
}

.tm-promo-cart-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 280px;
    max-width: 440px;
}

.tm-promo-cart-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tm-promo-active-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border-radius: 999px;
    background: #def5e8;
    border: 1px solid #87d3ab;
    color: #0e6336;
    font-size: 13px;
    font-weight: 700;
}

.tm-cart-item-old-price {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #7c8d9e;
    text-decoration: line-through;
    line-height: 1.2;
}

.tm-cart-item-new-price {
    display: block;
    font-size: 17px;
    font-weight: 800;
    color: #107c43;
    line-height: 1.25;
}

.tm-cart-item-promo-tag {
    display: inline-block;
    margin-top: 3px;
    padding: 2px 6px;
    border-radius: 5px;
    background: #e6f7ee;
    color: #11733f;
    font-size: 11px;
    font-weight: 700;
}

.tm-cart-summary-breakdown {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    margin-bottom: 6px;
    font-size: 14px;
    color: #496179;
}

.tm-cart-summary-discount {
    color: #117c44;
    font-weight: 700;
}

@media screen and (max-width: 640px) {
    .tm-promo-cart-wrap {
        padding: 13px 14px;
    }
    .tm-promo-cart-form {
        max-width: 100%;
        width: 100%;
    }
    .tm-cart-summary-breakdown {
        align-items: flex-start;
    }
}

/* ==========================================================================
   4. Unified Fav / Compare / Single-Star Reviews Pill Row (PDP & Quick-View)
   Shared across Top-Matras.ru & Matrasy-v-SPb.rf
   ========================================================================== */

/* Hide legacy bulky bottom rating box everywhere */
.cmtx_average_rating_block_show,
.cmtx_average_rating_block_show222,
#main_container.topm-no-sidebar .item-single .cmtx_average_rating_block_show,
#main_container.topm-no-sidebar .item-single .cmtx_average_rating_block_show222,
.product_qv_info .cmtx_average_rating_block_show,
.product_qv_info .cmtx_average_rating_block_show222 {
    display: none !important;
}

/* Clean card container for Quick-View manufacturer + actions (matches PDP) */
.product_qv_info .column-photo .manufacturer {
    margin-top: 10px !important;
    padding: 10px 12px !important;
    background: #f8fbfe !important;
    border: 1px solid #dce8f4 !important;
    border-radius: 10px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    text-align: left !important;
    box-sizing: border-box !important;
}

.product_qv_info .column-photo .manufacturer > img,
.product_qv_info .column-photo .manufacturer > picture {
    display: none !important;
}

.product_qv_info .column-photo .manufacturer > span.cena_2 {
    order: 1 !important;
    margin: 0 !important;
    font-size: 12px !important;
    color: #546d85 !important;
    white-space: nowrap !important;
}

.product_qv_info .column-photo .manufacturer > font#currentPrice {
    order: 1 !important;
    margin-right: auto !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
}

.product_qv_info .column-photo .manufacturer > font#currentPrice a {
    padding: 2px 8px !important;
    font-size: 12.5px !important;
    border-radius: 6px !important;
}

/* Action pills row inside .manufacturer on both PDP and Quick-View */
.item-single .manufacturer .tm-prod-meta-actions,
.product_qv_info .manufacturer .tm-prod-meta-actions,
.tm-prod-meta-actions {
    order: 2 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 2px 0 0 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.tm-prod-meta-actions .prod-fav-comp,
#main_container.topm-no-sidebar .item-single .manufacturer-lg .tm-prod-meta-actions .prod-fav-comp {
    order: 1 !important;
    flex: 0 1 auto !important;
    width: auto !important;
    display: inline-flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 5px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tm-prod-meta-actions .tm-prod-rating-slot {
    order: 2 !important;
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Harmonize Fav & Compare pills across TOPM (.custom-ic) & MSPB (.to-favorites / .to-compare) */
.tm-prod-meta-actions .prod-fav-comp .dobSr,
#main_container.topm-no-sidebar .item-single .manufacturer-lg .tm-prod-meta-actions .prod-fav-comp .dobSr,
.product_qv_info .tm-prod-meta-actions .prod-fav-comp .dobSr {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    height: 30px !important;
    padding: 0 8px !important;
    margin: 0 !important;
    border-radius: 7px !important;
    border: 1px solid #d5e3f0 !important;
    background-color: #ffffff !important;
    color: #243b53 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
}

.tm-prod-meta-actions .prod-fav-comp .dobSr:not(.custom-ic) {
    background-image: none !important;
}

.tm-prod-meta-actions .prod-fav-comp .dobSr.custom-ic,
.product_qv_info .tm-prod-meta-actions .prod-fav-comp .dobSr.custom-ic {
    padding: 0 8px !important;
    background-image: none !important;
}

.tm-prod-meta-actions .prod-fav-comp .dobSr.custom-ic::before,
.product_qv_info .tm-prod-meta-actions .prod-fav-comp .dobSr.custom-ic::before {
    font-size: 14.5px !important;
    margin-right: 1px !important;
    line-height: 1 !important;
}

/* Crisp SVG icons for MSPB .to-favorites / .to-compare where .custom-ic is not used */
.tm-prod-meta-actions .prod-fav-comp .dobSr.to-favorites:not(.custom-ic)::before,
.tm-prod-meta-actions .prod-fav-comp .dobSr.to-compare:not(.custom-ic)::before {
    content: "";
    display: inline-block;
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 13px 13px;
}

.tm-prod-meta-actions .prod-fav-comp .dobSr.to-favorites:not(.custom-ic)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%233b76a8' stroke-width='1.9' stroke-linejoin='round'%3E%3Cpath d='M10 17.2s-6.7-4.2-6.7-8.9A3.9 3.9 0 0 1 10 5.6a3.9 3.9 0 0 1 6.7 2.7c0 4.7-6.7 8.9-6.7 8.9z'/%3E%3C/svg%3E");
}

.tm-prod-meta-actions .prod-fav-comp .dobSr.to-compare:not(.custom-ic)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%233b76a8' stroke-width='2' stroke-linecap='round'%3E%3Cline x1='4.5' y1='16.5' x2='4.5' y2='9'/%3E%3Cline x1='10' y1='16.5' x2='10' y2='3.5'/%3E%3Cline x1='15.5' y1='16.5' x2='15.5' y2='11.5'/%3E%3C/svg%3E");
}

.tm-prod-meta-actions .prod-fav-comp .dobSr:hover,
.tm-prod-meta-actions .prod-fav-comp .dobSr.in,
#main_container.topm-no-sidebar .item-single .manufacturer-lg .tm-prod-meta-actions .prod-fav-comp .dobSr:hover,
#main_container.topm-no-sidebar .item-single .manufacturer-lg .tm-prod-meta-actions .prod-fav-comp .dobSr.in {
    background-color: #ebf5fe !important;
    border-color: #63ace0 !important;
    color: #135d90 !important;
}

/* Single-Star Rating & Reviews Pill (high specificity to beat .product_qv_info .column-photo a[href]:not(.zoom):not(.dobSr)) */
.product_qv_info .column-photo .manufacturer .tm-prod-meta-actions a.tm-rating-pill,
.product_qv_info .column-photo a.tm-rating-pill,
#main_container .item-single .manufacturer .tm-prod-meta-actions a.tm-rating-pill,
.item-single .manufacturer a.tm-rating-pill,
a.tm-rating-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    height: 30px !important;
    padding: 0 9px !important;
    margin: 0 !important;
    border-radius: 7px !important;
    border: 1px solid #f6c768 !important;
    background: #fffbeb !important;
    color: #1e293b !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease !important;
}

.product_qv_info .column-photo .manufacturer .tm-prod-meta-actions a.tm-rating-pill:hover,
.product_qv_info .column-photo a.tm-rating-pill:hover,
#main_container .item-single .manufacturer .tm-prod-meta-actions a.tm-rating-pill:hover,
.item-single .manufacturer a.tm-rating-pill:hover,
a.tm-rating-pill:hover {
    background: #fef3c7 !important;
    border-color: #f59e0b !important;
    box-shadow: 0 2px 7px rgba(245, 158, 11, 0.18) !important;
    text-decoration: none !important;
}

.product_qv_info .column-photo .manufacturer .tm-prod-meta-actions a.tm-rating-pill:active,
.product_qv_info .column-photo a.tm-rating-pill:active,
.item-single .manufacturer a.tm-rating-pill:active,
a.tm-rating-pill:active {
    transform: scale(0.98) !important;
}

.product_qv_info .column-photo .manufacturer .tm-prod-meta-actions a.tm-rating-pill.is-empty,
.product_qv_info .column-photo a.tm-rating-pill.is-empty,
#main_container .item-single .manufacturer .tm-prod-meta-actions a.tm-rating-pill.is-empty,
.item-single .manufacturer a.tm-rating-pill.is-empty,
a.tm-rating-pill.is-empty {
    background: #ffffff !important;
    border-color: #d5e3f0 !important;
    color: #475569 !important;
}

.product_qv_info .column-photo a.tm-rating-pill.is-empty:hover,
.item-single .manufacturer a.tm-rating-pill.is-empty:hover,
a.tm-rating-pill.is-empty:hover {
    background: #f3f8fd !important;
    border-color: #9ec5e6 !important;
    box-shadow: none !important;
}

.tm-rating-pill__star {
    width: 14px !important;
    height: 14px !important;
    fill: #f59e0b !important;
    flex-shrink: 0 !important;
    display: block !important;
}

a.tm-rating-pill.is-empty .tm-rating-pill__star {
    fill: #fbbf24 !important;
    opacity: 0.85;
}

.tm-rating-pill__val {
    font-size: 12.5px !important;
    font-weight: 800 !important;
    color: #111827 !important;
    letter-spacing: -0.01em !important;
}

.tm-rating-pill__sep {
    color: #94a3b8 !important;
    font-weight: 700 !important;
    margin: 0 -1px !important;
}

.tm-rating-pill__cnt {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #334e68 !important;
}

/* Force single-row fit with identical 28px height inside Quick-View popup (.product_qv_info) */
.product_qv_info .column-photo .manufacturer .tm-prod-meta-actions,
.product_qv_info .tm-prod-meta-actions {
    flex-wrap: nowrap !important;
    gap: 4px !important;
    width: 100% !important;
}

.product_qv_info .tm-prod-meta-actions .prod-fav-comp {
    flex-wrap: nowrap !important;
    gap: 4px !important;
    flex: 0 0 auto !important;
}

.product_qv_info .tm-prod-meta-actions .prod-fav-comp .dobSr,
.product_qv_info .tm-prod-meta-actions .prod-fav-comp .dobSr.custom-ic {
    height: 28px !important;
    padding: 0 6.5px !important;
    font-size: 11px !important;
    gap: 3.5px !important;
}

.product_qv_info .tm-prod-meta-actions .prod-fav-comp .dobSr.custom-ic::before {
    font-size: 13.5px !important;
    margin-right: 0 !important;
}

.product_qv_info .column-photo .manufacturer .tm-prod-meta-actions a.tm-rating-pill,
.product_qv_info .column-photo a.tm-rating-pill {
    height: 28px !important;
    padding: 0 6.5px !important;
    font-size: 11px !important;
    gap: 3px !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
}

.product_qv_info .tm-rating-pill__star {
    width: 13px !important;
    height: 13px !important;
}

.product_qv_info .tm-rating-pill__val {
    font-size: 11.5px !important;
}

.product_qv_info .tm-rating-pill__cnt {
    font-size: 11px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.product_qv_info .tm-promo-inp {
    font-size: 11px !important;
    padding: 0 8px !important;
}

/* Hide empty .item-single-controls wrapper in Quick-View when product has no delivery description */
.product_qv_info .item-single-controls:empty {
    display: none !important;
}

/* Quick-View Desktop 3-Column Order Matches PDP: [1: Photo] [2: Composition + Stock + Cover] [3: Size + Promo + Buy + Delivery] */
@media screen and (min-width: 768px) {
    html body #fancybox-wrap .product_qv_info .item-single .row-columns-wrapper,
    html body .product_qv_info .item-single .row-columns-wrapper {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        gap: 16px 20px !important;
        padding: 20px 22px 18px !important;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    html body #fancybox-wrap .product_qv_info .item-single .row-columns-wrapper > .column-photo,
    html body .product_qv_info .item-single .row-columns-wrapper > .column-photo {
        order: 1 !important;
        flex: 0 0 calc(36% - 14px) !important;
        width: calc(36% - 14px) !important;
        max-width: calc(36% - 14px) !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        float: none !important;
        box-sizing: border-box !important;
    }

    html body #fancybox-wrap .product_qv_info .item-single .row-columns-wrapper > .column-composition,
    html body .product_qv_info .item-single .row-columns-wrapper > .column-composition {
        order: 2 !important;
        flex: 0 0 calc(33% - 13px) !important;
        width: calc(33% - 13px) !important;
        max-width: calc(33% - 13px) !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        float: none !important;
        box-sizing: border-box !important;
        position: relative !important;
        overflow: visible !important;
        z-index: 5 !important;
    }

    html body #fancybox-wrap .product_qv_info .column-composition .item-single-info,
    html body .product_qv_info .column-composition .item-single-info,
    html body #fancybox-wrap .product_qv_info .column-composition .sloi,
    html body .product_qv_info .column-composition .sloi,
    html body #fancybox-wrap .product_qv_info .column-composition .sloi h2,
    html body .product_qv_info .column-composition .sloi h2,
    html body #fancybox-wrap .product_qv_info .column-composition .item-single-stock,
    html body .product_qv_info .column-composition .item-single-stock,
    html body #fancybox-wrap .product_qv_info .column-composition .storage,
    html body .product_qv_info .column-composition .storage {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    html body .product_qv_info .column-composition .ioc-col-nmt:not(:has(img)) {
        display: none !important;
    }

    html body #fancybox-wrap .product_qv_info .item-single .row-columns-wrapper > .column-composition:hover,
    html body .product_qv_info .item-single .row-columns-wrapper > .column-composition:hover {
        z-index: 30 !important;
    }

    html body #fancybox-wrap .product_qv_info .item-single .row-columns-wrapper > .column-information,
    html body .product_qv_info .item-single .row-columns-wrapper > .column-information {
        order: 3 !important;
        flex: 0 0 calc(31% - 13px) !important;
        width: calc(31% - 13px) !important;
        max-width: calc(31% - 13px) !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        float: none !important;
        box-sizing: border-box !important;
    }
}

@media screen and (max-width: 767px) {
    html body #main_container.topm-no-sidebar .item-single .topm-pdp-hero .manufacturer-lg,
    html body #main_container.topm-no-sidebar .item-single .manufacturer,
    html body #main_container .item-single .manufacturer,
    .item-single .manufacturer {
        padding-left: 8px !important;
        padding-right: 8px !important;
        box-sizing: border-box !important;
    }

    #main_container.topm-no-sidebar .item-single .topm-pdp-hero .manufacturer-lg .tm-prod-meta-actions,
    #main_container.topm-no-sidebar .item-single .manufacturer .tm-prod-meta-actions,
    #main_container .item-single .manufacturer .tm-prod-meta-actions,
    .item-single .manufacturer .tm-prod-meta-actions,
    .tm-prod-meta-actions {
        flex-wrap: nowrap !important;
        gap: 3px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    #main_container.topm-no-sidebar .item-single .topm-pdp-hero .manufacturer-lg .tm-prod-meta-actions .prod-fav-comp,
    #main_container.topm-no-sidebar .item-single .manufacturer .tm-prod-meta-actions .prod-fav-comp,
    .item-single .manufacturer .tm-prod-meta-actions .prod-fav-comp,
    .tm-prod-meta-actions .prod-fav-comp {
        flex-wrap: nowrap !important;
        gap: 3px !important;
        flex: 0 0 auto !important;
    }

    .tm-prod-meta-actions .prod-fav-comp .dobSr,
    .tm-prod-meta-actions .prod-fav-comp .dobSr.custom-ic,
    #main_container.topm-no-sidebar .item-single .manufacturer-lg .tm-prod-meta-actions .prod-fav-comp .dobSr,
    #main_container.topm-no-sidebar .item-single .manufacturer-lg .tm-prod-meta-actions .prod-fav-comp .dobSr.custom-ic {
        height: 28px !important;
        padding: 0 4px !important;
        font-size: 10px !important;
        gap: 2.5px !important;
        background-image: none !important;
    }

    .tm-prod-meta-actions .prod-fav-comp .dobSr.custom-ic::before {
        font-size: 11.5px !important;
        margin-right: 0 !important;
    }

    .tm-prod-meta-actions .prod-fav-comp .dobSr.to-favorites:not(.custom-ic)::before,
    .tm-prod-meta-actions .prod-fav-comp .dobSr.to-compare:not(.custom-ic)::before {
        width: 11px;
        height: 11px;
        background-size: 11px 11px;
    }

    .product_qv_info .column-photo .manufacturer .tm-prod-meta-actions a.tm-rating-pill,
    .product_qv_info .column-photo a.tm-rating-pill,
    #main_container .item-single .manufacturer .tm-prod-meta-actions a.tm-rating-pill,
    .item-single .manufacturer a.tm-rating-pill,
    a.tm-rating-pill {
        height: 28px !important;
        padding: 0 4px !important;
        font-size: 10px !important;
        gap: 2.5px !important;
        flex: 0 1 auto !important;
        min-width: 0 !important;
    }

    .tm-rating-pill__star {
        width: 11.5px !important;
        height: 11.5px !important;
    }

    .tm-rating-pill__val {
        font-size: 10.5px !important;
    }

    .tm-rating-pill__cnt {
        font-size: 10px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Mobile PDP Promo Box: strictly inside column bounds across 320px-414px */
    .tm-promo-pdp-box {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 10px !important;
        margin: 8px 0 10px !important;
    }

    .tm-promo-pdp-offer {
        gap: 6px !important;
        margin-bottom: 7px !important;
    }

    .tm-promo-pdp-kicker {
        font-size: 11.5px !important;
        line-height: 1.3 !important;
    }

    .tm-promo-pdp-price {
        font-size: 17.5px !important;
    }

    .tm-promo-pdp-copy-btn {
        height: 30px !important;
        padding: 0 9px !important;
        font-size: 12px !important;
        max-width: 100% !important;
    }

    .tm-promo-pdp-copy-btn code {
        font-size: 12px !important;
    }

    .tm-promo-form-row {
        gap: 5px !important;
    }

    .tm-promo-inp {
        height: 36px !important;
        padding: 0 8px !important;
        font-size: 16px !important;
    }

    .tm-promo-inp::placeholder {
        font-size: 12.5px !important;
    }

    .tm-promo-apply-btn {
        height: 36px !important;
        padding: 0 11px !important;
        font-size: 12.5px !important;
    }

    /* Prevent iOS Safari auto-zoom on focus for ALL editable inputs on mobile */
    html body input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not([type="hidden"]):not([type="range"]),
    html body textarea,
    html body select {
        font-size: 16px !important;
    }

    /* Mobile header cart icon & counter badge: crisp non-overlapping layout */
    html body a.mobile-menu-cart,
    .mobile-menu-cart {
        position: relative !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 38px !important;
        height: 46px !important;
        padding: 0 4px 0 2px !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    html body a.mobile-menu-cart > i,
    .mobile-menu-cart > i {
        display: block !important;
        width: 24px !important;
        height: 24px !important;
        margin-top: 4px !important;
        background-size: 24px 24px !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        flex-shrink: 0 !important;
    }

    html body a.mobile-menu-cart #mobile-cart-order,
    #mobile-cart-order {
        position: absolute !important;
        top: 5px !important;
        right: 0 !important;
        min-width: 17px !important;
        width: auto !important;
        height: 17px !important;
        padding: 0 4px !important;
        margin: 0 !important;
        border-radius: 999px !important;
        background: #eaf1f8 !important;
        color: #163450 !important;
        border: 1.5px solid #ffffff !important;
        box-shadow: 0 1px 3px rgba(10, 26, 46, 0.22) !important;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
        font-size: 10.5px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        pointer-events: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 2 !important;
    }

    html body a.mobile-menu-cart #mobile-cart-order.has-items,
    #mobile-cart-order.has-items {
        background: #e53935 !important;
        color: #ffffff !important;
        border-color: #ffffff !important;
        box-shadow: 0 1px 4px rgba(229, 57, 53, 0.42) !important;
    }
}

@media screen and (max-width: 359px) {
    html body #main_container.topm-no-sidebar .item-single .topm-pdp-hero .manufacturer-lg,
    html body #main_container.topm-no-sidebar .item-single .manufacturer,
    html body #main_container .item-single .manufacturer,
    .item-single .manufacturer {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    html body #main_container.topm-no-sidebar .item-single .topm-pdp-hero .manufacturer-lg .tm-prod-meta-actions,
    #main_container.topm-no-sidebar .item-single .manufacturer .tm-prod-meta-actions,
    #main_container .item-single .manufacturer .tm-prod-meta-actions,
    .item-single .manufacturer .tm-prod-meta-actions,
    .tm-prod-meta-actions,
    html body #main_container.topm-no-sidebar .item-single .topm-pdp-hero .manufacturer-lg .tm-prod-meta-actions .prod-fav-comp,
    #main_container.topm-no-sidebar .item-single .manufacturer .tm-prod-meta-actions .prod-fav-comp,
    .tm-prod-meta-actions .prod-fav-comp {
        flex-wrap: nowrap !important;
        gap: 2.5px !important;
    }

    .tm-prod-meta-actions .prod-fav-comp .dobSr,
    .tm-prod-meta-actions .prod-fav-comp .dobSr.custom-ic,
    #main_container.topm-no-sidebar .item-single .manufacturer-lg .tm-prod-meta-actions .prod-fav-comp .dobSr {
        height: 26px !important;
        padding: 0 3.5px !important;
        font-size: 9px !important;
        letter-spacing: -0.02em !important;
        gap: 2px !important;
    }

    .tm-prod-meta-actions .prod-fav-comp .dobSr.custom-ic::before {
        font-size: 11px !important;
    }

    .tm-prod-meta-actions .prod-fav-comp .dobSr.to-favorites:not(.custom-ic)::before,
    .tm-prod-meta-actions .prod-fav-comp .dobSr.to-compare:not(.custom-ic)::before {
        width: 10.5px;
        height: 10.5px;
        background-size: 10.5px 10.5px;
    }

    .product_qv_info .column-photo .manufacturer .tm-prod-meta-actions a.tm-rating-pill,
    .product_qv_info .column-photo a.tm-rating-pill,
    #main_container .item-single .manufacturer .tm-prod-meta-actions a.tm-rating-pill,
    .item-single .manufacturer a.tm-rating-pill,
    a.tm-rating-pill {
        height: 26px !important;
        padding: 0 4px !important;
        font-size: 9.5px !important;
        letter-spacing: -0.02em !important;
        gap: 2px !important;
    }

    .tm-rating-pill__star {
        width: 11px !important;
        height: 11px !important;
    }

    .tm-rating-pill__val {
        font-size: 10px !important;
    }

    .tm-rating-pill__cnt {
        font-size: 9.5px !important;
    }

    .tm-promo-pdp-box {
        padding: 9px 8px !important;
    }

    .tm-promo-inp {
        font-size: 16px !important;
        padding: 0 7px !important;
    }

    .tm-promo-inp::placeholder {
        font-size: 11.5px !important;
    }

    .tm-promo-apply-btn {
        padding: 0 9px !important;
        font-size: 11.5px !important;
    }
}

/* ==========================================================================
   5. Similar Products by Characteristics (#tm-similar-products)
   Standalone block on grey page background (outside white Description card),
   10 active items: 5 per row on desktop (2 rows), 2 per row on mobile
   ========================================================================== */
#main_container.topm-no-sidebar #prod-tabs #prod-tabs-1.tm-tabs1-split,
#prod-tabs #prod-tabs-1.tm-tabs1-split {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

#main_container.topm-no-sidebar #prod-tabs #prod-tabs-1.tm-tabs1-split > .tm-pdp-desc-card,
#prod-tabs #prod-tabs-1.tm-tabs1-split > .tm-pdp-desc-card {
    background: #ffffff !important;
    border: 1px solid #e1ebf4 !important;
    border-top: none !important;
    border-radius: 0 0 12px 12px !important;
    padding: 22px 26px !important;
    box-shadow: 0 4px 14px rgba(18, 42, 68, 0.04) !important;
    box-sizing: border-box !important;
}

#main_container.topm-no-sidebar #prod-tabs #prod-tabs-1.tm-tabs1-split > .tm-pdp-tail-card,
#prod-tabs #prod-tabs-1.tm-tabs1-split > .tm-pdp-tail-card {
    background: #ffffff !important;
    border: 1px solid #e1ebf4 !important;
    border-radius: 12px !important;
    padding: 20px 26px !important;
    margin-top: 20px !important;
    box-shadow: 0 4px 14px rgba(18, 42, 68, 0.04) !important;
    box-sizing: border-box !important;
}

#main_container.topm-no-sidebar #prod-tabs .ui-tabs-panel.prod_tabs_show:not(#prod-tabs-1) {
    border-top: 1px solid #e1ebf4 !important;
    border-radius: 12px !important;
    margin-top: 18px !important;
}

#main_container .tm-similar-sec,
.tm-similar-sec {
    margin: 24px 0 24px !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

.tm-sim-head {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px 12px !important;
    margin: 0 0 14px 0 !important;
}

#main_container .tm-similar-sec .tm-sim-head > h2,
#main_container #prod-tabs .ui-tabs-panel .tm-similar-sec .tm-sim-head > h2,
.tm-similar-sec .tm-sim-head > h2 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #162c43 !important;
    letter-spacing: -0.01em !important;
    line-height: 1.25 !important;
}

.tm-sim-sub {
    display: inline-flex !important;
    align-items: center !important;
    padding: 4px 12px !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    border: 1px solid #cfe1f2 !important;
    color: #27567d !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    box-shadow: 0 1px 4px rgba(18, 42, 68, 0.04) !important;
}

#main_container .tm-similar-grid.items-list.display-grid,
.tm-similar-grid.items-list.display-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 2px 0 6px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

#main_container .tm-similar-grid.items-list.display-grid::before,
#main_container .tm-similar-grid.items-list.display-grid::after,
.tm-similar-grid.items-list.display-grid::before,
.tm-similar-grid.items-list.display-grid::after {
    display: none !important;
}

#main_container .tm-similar-grid.display-grid > .inner-item-cont,
.tm-similar-grid.display-grid > .inner-item-cont {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Harmonize 5-per-row desktop card proportions so 5 cards fit cleanly across 992px-1920px */
@media screen and (min-width: 992px) {
    .tm-similar-grid.items-list.display-grid .item-prewiew .a_href-m1 {
        height: 152px !important;
    }

    .tm-similar-grid.items-list.display-grid .item-prewiew img.for_tovar {
        max-height: 140px !important;
    }

    .tm-similar-grid.items-list.display-grid .item-name {
        padding: 0 8px !important;
    }

    .tm-similar-grid.items-list.display-grid .item-controls {
        padding: 6px 8px 7px !important;
    }

    .tm-similar-grid.items-list.display-grid .item-controls .stiffness .col_left {
        flex: 1 1 auto !important;
        width: auto !important;
        max-width: calc(100% - 46px) !important;
    }

    .tm-similar-grid.items-list.display-grid .item-controls .stiffness .col_left .row .indicator i {
        min-width: 8px !important;
    }

    .tm-similar-grid.items-list.display-grid .item-useful-cont {
        padding: 7px 8px 9px !important;
    }

    .tm-similar-grid.items-list.display-grid .item-useful-cont form[name^="MainForm2_"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
        padding-right: 68px !important;
        min-height: 34px !important;
        gap: 1px !important;
    }

    .tm-similar-grid.items-list.display-grid .item-useful-cont .item-price {
        font-size: 15.5px !important;
    }

    .tm-similar-grid.items-list.display-grid .item-useful-cont .item-buy {
        right: 8px !important;
        bottom: 9px !important;
    }

    .tm-similar-grid.items-list.display-grid .item-useful-cont .item-buy a {
        padding: 0 11px !important;
        height: 31px !important;
        font-size: 12px !important;
    }
}

@media screen and (min-width: 992px) and (max-width: 1199px) {
    #main_container .tm-similar-grid.items-list.display-grid,
    .tm-similar-grid.items-list.display-grid {
        gap: 8px !important;
    }

    .tm-similar-grid.items-list.display-grid .item-prewiew .a_href-m1 {
        height: 128px !important;
    }

    .tm-similar-grid.items-list.display-grid .item-prewiew img.for_tovar {
        max-height: 116px !important;
    }

    .tm-similar-grid.items-list.display-grid .item-name > a:first-child {
        font-size: 12px !important;
    }

    .tm-similar-grid.items-list.display-grid .item-name .item-info-article {
        display: none !important;
    }

    .tm-similar-grid.items-list.display-grid .item-useful-cont .sel-size > span {
        font-size: 10.5px !important;
    }

    .tm-similar-grid.items-list.display-grid .item-useful-cont .item-price {
        font-size: 14px !important;
    }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
    #main_container .tm-similar-grid.items-list.display-grid,
    .tm-similar-grid.items-list.display-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}

/* Mobile <= 767px: 100% Identical 2-Column Catalog Card Layout (#products_list mirror) */
@media screen and (max-width: 767px) {
    #main_container.topm-no-sidebar #prod-tabs #prod-tabs-1.tm-tabs1-split > .tm-pdp-desc-card,
    #prod-tabs #prod-tabs-1.tm-tabs1-split > .tm-pdp-desc-card,
    #main_container.topm-no-sidebar #prod-tabs #prod-tabs-1.tm-tabs1-split > .tm-pdp-tail-card,
    #prod-tabs #prod-tabs-1.tm-tabs1-split > .tm-pdp-tail-card {
        padding: 14px 12px 16px !important;
        border-radius: 10px !important;
    }

    #main_container.topm-no-sidebar #prod-tabs #prod-tabs-1.tm-tabs1-split > .tm-pdp-desc-card,
    #prod-tabs #prod-tabs-1.tm-tabs1-split > .tm-pdp-desc-card {
        border-radius: 0 0 10px 10px !important;
    }

    .tm-sim-head {
        gap: 6px 8px !important;
        margin: 0 0 10px 0 !important;
    }

    #main_container .tm-similar-sec .tm-sim-head > h2,
    #main_container #prod-tabs .ui-tabs-panel .tm-similar-sec .tm-sim-head > h2,
    .tm-similar-sec .tm-sim-head > h2 {
        font-size: 18px !important;
    }

    .tm-sim-sub {
        font-size: 11px !important;
        padding: 3px 9px !important;
        line-height: 1.3 !important;
    }

    #main_container .tm-similar-grid.items-list.display-grid,
    .tm-similar-grid.items-list.display-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .tm-similar-grid.items-list.display-grid .item-box {
        border-radius: 10px !important;
    }

    .tm-similar-grid.items-list.display-grid .item-prewiew .a_href-m1 {
        height: 118px !important;
        padding: 4px 6px !important;
    }

    .tm-similar-grid.items-list.display-grid .item-prewiew img.for_tovar {
        height: auto !important;
        max-height: 104px !important;
        max-width: 94% !important;
        transform: scale(1.04) !important;
    }

    .tm-similar-grid.items-list.display-grid .item-prewiew > div > picture > img,
    .tm-similar-grid.items-list.display-grid .item-prewiew img[src*="/images/hit."] {
        width: 38px !important;
        max-width: 38px !important;
    }

    .tm-similar-grid.items-list.display-grid .item-prewiew .a_href-m1 > div[style*="top: 0"],
    .tm-similar-grid.items-list.display-grid .item-prewiew .a_href-m1 > div[style*="top:0"] {
        top: 4px !important;
        right: 4px !important;
        padding: 2px 5px !important;
        font-size: 9px !important;
        max-width: calc(100% - 40px) !important;
    }

    .tm-similar-grid.items-list.display-grid .item-prewiew .a_href-m1 > div[style*="bottom: 0"]:not([style*="gift.png"]),
    .tm-similar-grid.items-list.display-grid .item-prewiew .a_href-m1 > div[style*="bottom:0"]:not([style*="gift.png"]) {
        bottom: 4px !important;
        left: 4px !important;
        padding: 1px 5px !important;
        font-size: 9.5px !important;
        border-radius: 5px !important;
    }

    .tm-similar-grid.items-list.display-grid .quick-view {
        height: 23px !important;
        line-height: 23px !important;
        font-size: 10.5px !important;
        padding: 0 4px !important;
        gap: 4px !important;
    }

    .tm-similar-grid.items-list.display-grid .item-name {
        height: 36px !important;
        min-height: 36px !important;
        padding: 3px 7px !important;
        align-items: center !important;
    }

    .tm-similar-grid.items-list.display-grid .item-name > a:first-child {
        white-space: normal !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        font-size: 12px !important;
        line-height: 1.2 !important;
    }

    .tm-similar-grid.items-list.display-grid .item-name .item-info-article {
        display: none !important;
    }

    .tm-similar-grid.items-list.display-grid .item-controls {
        padding: 4px 7px 5px !important;
    }

    .tm-similar-grid.items-list.display-grid .item-controls .stiffness {
        min-height: 28px !important;
        gap: 4px !important;
    }

    .tm-similar-grid.items-list.display-grid .item-controls .stiffness .col_left {
        flex: 1 1 auto !important;
        width: auto !important;
        max-width: calc(100% - 40px) !important;
    }

    .tm-similar-grid.items-list.display-grid .item-controls .stiffness .col_left .row .text {
        font-size: 9.5px !important;
    }

    .tm-similar-grid.items-list.display-grid .item-controls .stiffness .col_left .row .indicator i {
        min-width: 5px !important;
        height: 4px !important;
    }

    .tm-similar-grid.items-list.display-grid .item-controls .stiffness .col_right i {
        min-width: 20px !important;
        height: 19px !important;
        line-height: 17px !important;
        padding: 0 3px !important;
        font-size: 10.5px !important;
    }

    .tm-similar-grid.items-list.display-grid .item-controls .stiffness .col_right span {
        font-size: 9.5px !important;
    }

    .tm-similar-grid.items-list.display-grid .item-controls table:not(.mspb-brief-specs-tbl) {
        margin-top: 2px !important;
        padding-top: 0 !important;
    }

    .tm-similar-grid.items-list.display-grid .item-controls table:not(.mspb-brief-specs-tbl) tr:first-child {
        margin: 0 0 2px 0 !important;
    }

    .tm-similar-grid.items-list.display-grid .item-controls table:not(.mspb-brief-specs-tbl) tr:not(:first-child) {
        padding: 1px 0 !important;
        gap: 3px !important;
    }

    .tm-similar-grid.items-list.display-grid .item-controls table:not(.mspb-brief-specs-tbl) tr:not(:first-child) td:first-child,
    .tm-similar-grid.items-list.display-grid .item-controls table:not(.mspb-brief-specs-tbl) tr:not(:first-child) td:last-child {
        font-size: 10px !important;
        line-height: 1.25 !important;
    }

    .tm-similar-grid.items-list.display-grid .item-controls table.mspb-brief-specs-tbl,
    .tm-similar-grid.items-list.display-grid .item-controls table.mspb-brief-specs-tbl tbody {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .tm-similar-grid.items-list.display-grid .item-controls table.mspb-brief-specs-tbl tr {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 4px !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 1px 0 !important;
    }

    .tm-similar-grid.items-list.display-grid .item-controls table.mspb-brief-specs-tbl tr td[colspan] {
        display: block !important;
        width: 100% !important;
        flex: 1 1 100% !important;
    }

    .tm-similar-grid.items-list.display-grid .item-controls table.mspb-brief-specs-tbl tr:not(.mspb-stiff-row) td:first-child {
        flex: 0 0 auto !important;
        font-size: 10px !important;
    }

    .tm-similar-grid.items-list.display-grid .item-controls table.mspb-brief-specs-tbl tr:not(.mspb-stiff-row) td:last-child:not([colspan]) {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        font-size: 10px !important;
        font-weight: 600 !important;
        text-align: right !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .tm-similar-grid.items-list.display-grid .item-useful-cont {
        padding: 5px 7px 7px !important;
        border-radius: 0 0 9px 9px !important;
    }

    .tm-similar-grid.items-list.display-grid .item-useful-cont .sel-size {
        margin: 0 0 5px 0 !important;
        padding: 0 0 5px 0 !important;
        gap: 4px !important;
    }

    .tm-similar-grid.items-list.display-grid .item-useful-cont .sel-size > span {
        font-size: 10px !important;
    }

    .tm-similar-grid.items-list.display-grid .item-useful-cont .sel-size .select-cont {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .tm-similar-grid.items-list.display-grid .item-useful-cont .sel-size .topm-sz-trigger--tile,
    .tm-similar-grid.items-list.display-grid .item-useful-cont .sel-size .topm-sz-trigger {
        width: 100% !important;
        min-width: 0 !important;
        height: 25px !important;
        padding: 0 6px !important;
        font-size: 11px !important;
        justify-content: space-between !important;
    }

    .tm-similar-grid.items-list.display-grid .item-useful-cont form[name^="MainForm2_"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
        min-height: 32px !important;
        padding-right: 60px !important;
        gap: 1px !important;
    }

    .tm-similar-grid.items-list.display-grid .item-useful-cont form[name^="MainForm2_"] > div[style*="inline-block"]:first-of-type {
        display: none !important;
    }

    .tm-similar-grid.items-list.display-grid .item-useful-cont .topm-old-price {
        font-size: 10.5px !important;
        line-height: 1.08 !important;
    }

    .tm-similar-grid.items-list.display-grid .item-useful-cont .item-price {
        min-height: 0 !important;
        font-size: 13.5px !important;
        font-weight: 800 !important;
        letter-spacing: -0.02em !important;
        line-height: 1.12 !important;
    }

    .tm-similar-grid.items-list.display-grid .item-useful-cont .item-buy {
        right: 7px !important;
        bottom: 7px !important;
    }

    .tm-similar-grid.items-list.display-grid .item-useful-cont .item-buy a {
        height: 28px !important;
        padding: 0 9px !important;
        font-size: 11.5px !important;
        border-radius: 6px !important;
    }

    @media screen and (max-width: 359px) {
        #main_container .tm-similar-grid.items-list.display-grid,
        .tm-similar-grid.items-list.display-grid {
            gap: 6px !important;
        }
        .tm-similar-grid.items-list.display-grid .item-useful-cont .sel-size > span {
            display: none !important;
        }
        .tm-similar-grid.items-list.display-grid .item-useful-cont form[name^="MainForm2_"] {
            padding-right: 54px !important;
        }
        .tm-similar-grid.items-list.display-grid .item-useful-cont .topm-old-price {
            font-size: 9.5px !important;
        }
        .tm-similar-grid.items-list.display-grid .item-useful-cont .item-price {
            font-size: 12.5px !important;
        }
        .tm-similar-grid.items-list.display-grid .item-useful-cont .item-buy a {
            padding: 0 7px !important;
        }
    }
}


/* ==========================================================================
   6. Unified Add-to-Cart Notification Popup (.popup_block) & Darkened Backdrop
      Shared across TOPM & MSPB on BOTH Desktop & Mobile
   ========================================================================== */
#fade,
#topm-cartpop-backdrop,
.topm-cartpop-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(12, 28, 46, 0.58) !important;
    backdrop-filter: blur(2.5px) !important;
    -webkit-backdrop-filter: blur(2.5px) !important;
    z-index: 2147483646 !important;
    opacity: 1 !important;
    cursor: pointer !important;
}

body:has(#topm-cartpop-backdrop[style*="block"]) jdiv {
    z-index: 2147483000 !important;
}

html body .popup_block,
.popup_block {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    width: min(540px, calc(100vw - 24px)) !important;
    max-width: 540px !important;
    height: auto !important;
    max-height: calc(100vh - 28px) !important;
    padding: 0 !important;
    background: #ffffff !important;
    border: 1px solid #d5e4f2 !important;
    border-radius: 16px !important;
    box-shadow: 0 24px 60px rgba(10, 26, 46, 0.34) !important;
    z-index: 2147483647 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    text-shadow: none !important;
}

html body .popup_block *,
.popup_block .new_cart-inner,
.popup_block .new_cart-inner * {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    text-shadow: none !important;
    box-sizing: border-box !important;
}

html body .popup_block > a.close,
html body .popup_block > a.closebtn2,
.popup_block > a.close,
.popup_block > a.closebtn2 {
    position: absolute !important;
    top: 11px !important;
    right: 12px !important;
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 8px !important;
    background: #e6f0fa !important;
    color: #1c3a57 !important;
    opacity: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    z-index: 5 !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease !important;
}

html body .popup_block > a.close:hover,
html body .popup_block > a.closebtn2:hover {
    background: #d4e6f7 !important;
}

.popup_block > a.close img,
.popup_block > a.closebtn2 img {
    display: none !important;
}

.popup_block > a.close::before,
.popup_block > a.closebtn2::before {
    content: "\00d7";
    font-size: 21px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    color: #1c3a57 !important;
}

.popup_block .popup_block_inner {
    padding: 0 !important;
    margin: 0 !important;
    background: #ffffff !important;
    text-align: left !important;
}

.popup_block .popup_block_inner::before {
    content: "\0422\043e\0432\0430\0440\0020\0434\043e\0431\0430\0432\043b\0435\043d\0020\0432\0020\043a\043e\0440\0437\0438\043d\0443";
    display: flex !important;
    align-items: center !important;
    height: 54px !important;
    padding: 0 52px 0 46px !important;
    background-color: #f4f9fe !important;
    background-repeat: no-repeat !important;
    background-position: 16px center !important;
    background-size: 22px 22px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='10' fill='%2322c55e'/%3E%3Cpolyline points='6.5 11.2 9.6 14.3 15.8 8.1' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    border-bottom: 1px solid #e1edf8 !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #0f2942 !important;
}

.popup_block .popup_block_inner > p.title {
    display: none !important;
}

.popup_block .popup_block_inner > div.new_cart-inner {
    padding: 16px 18px 18px !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: 124px minmax(0, 1fr) !important;
    gap: 10px 16px !important;
    align-items: start !important;
}

.popup_block .popup_block_inner > div.new_cart-inner::before,
.popup_block .popup_block_inner > div.new_cart-inner::after {
    display: none !important;
}

.popup_block .new_cart-inner > p.cart-header,
.popup_block .cart-header,
.popup_block .cart-title {
    display: none !important;
}

.popup_block .new_cart-inner > .cart-item-image {
    grid-column: 1 !important;
    grid-row: 1 / 3 !important;
    float: none !important;
    width: 124px !important;
    height: 104px !important;
    padding: 6px !important;
    margin: 0 !important;
    border-radius: 10px !important;
    background: #f9fcff !important;
    border: 1px solid #e4eef7 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.popup_block .new_cart-inner > .cart-item-image img {
    max-width: 100% !important;
    max-height: 90px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

.popup_block .cart-information {
    grid-column: 2 !important;
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

.popup_block .cart-information h2 {
    font-size: 16.5px !important;
    font-weight: 800 !important;
    color: #0f2942 !important;
    line-height: 1.28 !important;
    margin: 0 0 8px 0 !important;
    letter-spacing: -0.01em !important;
}

.popup_block .cart-item-information {
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.popup_block .cart-item-information p {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    color: #48627c !important;
    display: flex !important;
    align-items: baseline !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}

.popup_block .cart-item-information b.cart-size {
    display: inline-flex !important;
    align-items: center !important;
    padding: 2px 9px !important;
    border-radius: 6px !important;
    background: #eef6fe !important;
    border: 1px solid #cfe3f6 !important;
    color: #165988 !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.popup_block .cart-price-decorated,
.popup_block .new_cart-inner .important.cart-price-decorated {
    display: inline-flex !important;
    align-items: baseline !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    color: #0f2942 !important;
    letter-spacing: -0.01em !important;
    white-space: nowrap !important;
    vertical-align: baseline !important;
}

/* Aligned single-axis summary bar: "V korzine 2 tovara na summu:   10 310 R" */
.popup_block .tm-cart-pop-summary,
.popup_block .cart-information > span {
    grid-column: 2 !important;
    display: flex !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 4px 10px !important;
    padding: 9px 12px !important;
    margin: 2px 0 0 0 !important;
    border-radius: 10px !important;
    background: #f3f8fe !important;
    border: 1px solid #d6e6f6 !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    color: #334e68 !important;
}

.popup_block .tm-cart-pop-summary__txt {
    display: inline !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    color: #334e68 !important;
    vertical-align: baseline !important;
}

html body .popup_block .tm-cart-pop-summary a,
html body .popup_block .cart-information > span a,
.popup_block .tm-cart-pop-summary a,
.popup_block .cart-information > span a {
    display: inline !important;
    position: static !important;
    float: none !important;
    vertical-align: baseline !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    color: #16659e !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
}

html body .popup_block .tm-cart-pop-summary a:hover,
html body .popup_block .cart-information > span a:hover {
    text-decoration: underline !important;
    color: #0e4c7a !important;
}

.popup_block .cart-common-price-wrapper {
    display: inline-flex !important;
    align-items: baseline !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    color: #0f2942 !important;
    letter-spacing: -0.01em !important;
    white-space: nowrap !important;
    vertical-align: baseline !important;
}

.popup_block .cart-price-blue {
    font-size: 17px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    color: #0f2942 !important;
    vertical-align: baseline !important;
}

.popup_block .tm-rub-cap {
    font-size: 1em !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    vertical-align: baseline !important;
}

.popup_block .cart-footer {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    padding: 12px 0 0 0 !important;
    margin: 4px 0 0 0 !important;
    border-top: 1px solid #e8f0f8 !important;
    background: transparent !important;
}

html body .popup_block .cart-footer a.close_link_a,
.popup_block .cart-footer a.close_link_a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 44px !important;
    padding: 0 14px !important;
    margin: 0 !important;
    border-radius: 10px !important;
    background: #f3f8fd !important;
    border: 1.5px solid #c5ddf2 !important;
    color: #165988 !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease !important;
}

html body .popup_block .cart-footer a.close_link_a:hover {
    background: #e5f2fd !important;
    border-color: #4aa0d5 !important;
}

html body .popup_block .cart-footer a.gocheckout,
.popup_block .cart-footer a.gocheckout {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 44px !important;
    padding: 0 14px !important;
    margin: 0 !important;
    border-radius: 10px !important;
    border: none !important;
    background: linear-gradient(180deg, #f25c5c 0%, #de3e3e 100%) !important;
    color: #ffffff !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(222, 62, 62, 0.28) !important;
    transition: filter 0.15s ease !important;
}

html body .popup_block .cart-footer a.gocheckout:hover {
    filter: brightness(1.05) !important;
}

@media screen and (max-width: 540px) {
    .popup_block .popup_block_inner::before {
        height: 48px !important;
        padding: 0 46px 0 42px !important;
        background-position: 14px center !important;
        background-size: 20px 20px !important;
        font-size: 15px !important;
    }

    .popup_block .popup_block_inner > div.new_cart-inner {
        grid-template-columns: 88px minmax(0, 1fr) !important;
        padding: 14px 14px 16px !important;
        gap: 10px 12px !important;
    }

    .popup_block .new_cart-inner > .cart-item-image {
        grid-row: 1 !important;
        width: 88px !important;
        height: 78px !important;
    }

    .popup_block .new_cart-inner > .cart-item-image img {
        max-height: 66px !important;
    }

    .popup_block .cart-information h2 {
        font-size: 15px !important;
        margin-bottom: 6px !important;
    }

    .popup_block .cart-price-decorated,
    .popup_block .new_cart-inner .important.cart-price-decorated {
        font-size: 16.5px !important;
    }

    .popup_block .tm-cart-pop-summary,
    .popup_block .cart-information > span {
        grid-column: 1 / -1 !important;
        padding: 9px 11px !important;
        font-size: 13px !important;
    }

    .popup_block .tm-cart-pop-summary__txt,
    html body .popup_block .tm-cart-pop-summary a {
        font-size: 13px !important;
    }

    .popup_block .cart-common-price-wrapper,
    .popup_block .cart-price-blue {
        font-size: 16px !important;
    }

    .popup_block .cart-footer {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        padding-top: 10px !important;
    }

    html body .popup_block .cart-footer a.gocheckout {
        order: -1 !important;
    }
}

/* ==========================================================================
   7. Rich Visual Product Description (.tm-rich-desc-*) -- Desktop & Mobile
   ========================================================================== */
.tm-rich-desc-wrap {
    display: flow-root;
    box-sizing: border-box;
    margin: 2px 0 18px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #142233;
}

.tm-rich-desc-wrap *,
.tm-rich-desc-wrap *::before,
.tm-rich-desc-wrap *::after {
    box-sizing: border-box;
}

.tm-rich-desc-card {
    background: #ffffff;
    border: 1px solid #e1eaf3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 35, 58, 0.03);
}

.tm-rich-desc-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 22px;
    margin: 0;
    background: #ffffff;
}

.tm-rich-desc-row + .tm-rich-desc-row {
    border-top: 1px solid #eaeff6;
}

.tm-rich-desc-media {
    flex: 0 0 168px;
    width: 168px;
    height: 108px;
    border-radius: 10px;
    overflow: hidden;
    background: #f6f9fc;
    border: 1px solid #ebf1f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

#main_container .tm-rich-desc-media img,
.tm-rich-desc-media img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    float: none !important;
}

.tm-rich-desc-body {
    flex: 1 1 0%;
    min-width: 0;
}

#main_container #prod-tabs .tm-rich-desc-title,
#main_container .tm-rich-desc-title,
.card-body .tm-rich-desc-title,
.tm-rich-desc-title {
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 17px !important;
    line-height: 1.32 !important;
    font-weight: 700 !important;
    color: #132235 !important;
    border: none !important;
    background: transparent !important;
    text-transform: none !important;
    letter-spacing: -0.01em !important;
}

#main_container #prod-tabs .tm-rich-desc-text,
#main_container .tm-rich-desc-text,
.card-body .tm-rich-desc-text,
.tm-rich-desc-text {
    margin: 0 !important;
    padding: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 14.5px !important;
    line-height: 1.52 !important;
    font-weight: 400 !important;
    color: #3a4a5d !important;
}

.tm-rich-desc-suits {
    margin-top: 14px;
    padding: 16px 22px;
    background: #f2f6fb;
    border: 1px solid #e1ebf5;
    border-radius: 12px;
}

#main_container #prod-tabs .tm-rich-desc-suits__title,
#main_container .tm-rich-desc-suits__title,
.card-body .tm-rich-desc-suits__title,
.tm-rich-desc-suits__title {
    margin: 0 0 5px 0 !important;
    padding: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 16.5px !important;
    line-height: 1.32 !important;
    font-weight: 700 !important;
    color: #132235 !important;
    border: none !important;
    background: transparent !important;
    text-transform: none !important;
}

#main_container #prod-tabs .tm-rich-desc-suits__text,
#main_container .tm-rich-desc-suits__text,
.card-body .tm-rich-desc-suits__text,
.tm-rich-desc-suits__text {
    margin: 0 !important;
    padding: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 14.5px !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
    color: #3a4a5d !important;
}

.tm-rich-desc-classic-sep {
    height: 16px;
    clear: both;
}

@media screen and (max-width: 920px) {
    .tm-rich-desc-wrap {
        clear: both;
    }

    .tm-rich-desc-row {
        gap: 16px;
        padding: 15px 16px;
    }

    .tm-rich-desc-media {
        flex: 0 0 144px;
        width: 144px;
        height: 94px;
    }
}

@media screen and (max-width: 640px) {
    .tm-rich-desc-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 14px 14px 16px !important;
    }

    .tm-rich-desc-media {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: auto !important;
        border-radius: 10px !important;
        overflow: hidden !important;
    }

    .tm-rich-desc-media img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: none !important;
        object-fit: contain !important;
        display: block !important;
    }

    #main_container #prod-tabs .tm-rich-desc-title,
    #main_container .tm-rich-desc-title,
    .card-body .tm-rich-desc-title,
    .tm-rich-desc-title {
        font-size: 16px !important;
        margin-bottom: 5px !important;
    }

    #main_container #prod-tabs .tm-rich-desc-text,
    #main_container .tm-rich-desc-text,
    .card-body .tm-rich-desc-text,
    .tm-rich-desc-text,
    #main_container #prod-tabs .tm-rich-desc-suits__text,
    #main_container .tm-rich-desc-suits__text,
    .card-body .tm-rich-desc-suits__text,
    .tm-rich-desc-suits__text {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    .tm-rich-desc-suits {
        padding: 14px 15px !important;
        margin-top: 14px !important;
    }

    #main_container #prod-tabs .tm-rich-desc-suits__title,
    #main_container .tm-rich-desc-suits__title,
    .card-body .tm-rich-desc-suits__title,
    .tm-rich-desc-suits__title {
        font-size: 16px !important;
    }
}

/* ==========================================================================
   TM Fast Order Sidebar (moved below "Sostav" inside .right-details-container)
   ========================================================================== */
#main_container.topm-no-sidebar #prod-tabs .right-details-container .bottom-container,
#prod-tabs .right-details-container .bottom-container {
    float: none !important;
    margin-bottom: 20px !important;
}

#main_container.topm-no-sidebar #prod-tabs .right-details-container .post-fast-order.tm-fast-order-sidebar,
#prod-tabs .right-details-container .post-fast-order.tm-fast-order-sidebar {
    clear: both !important;
    float: none !important;
    width: 356px !important;
    max-width: 100% !important;
    margin: 20px 0 0 0 !important;
    padding: 16px 16px 18px !important;
    background: #f1f7fc !important;
    border: 1px solid #d3e6f7 !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
    text-align: left !important;
}

#main_container.topm-no-sidebar #prod-tabs .right-details-container .tm-fast-order-sidebar .fast-order-title h2,
#prod-tabs .right-details-container .tm-fast-order-sidebar .fast-order-title h2 {
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    font-size: 16px !important;
    line-height: 1.32 !important;
    font-weight: 700 !important;
    color: #162c43 !important;
    text-align: left !important;
}

#main_container.topm-no-sidebar #prod-tabs .right-details-container .tm-fast-order-sidebar .row,
#prod-tabs .right-details-container .tm-fast-order-sidebar .row {
    margin: 0 !important;
    display: block !important;
}

#main_container.topm-no-sidebar #prod-tabs .right-details-container .tm-fast-order-sidebar .col-md-6,
#prod-tabs .right-details-container .tm-fast-order-sidebar .col-md-6 {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#main_container.topm-no-sidebar #prod-tabs .right-details-container .tm-fast-order-sidebar .cart-contact-form-item,
#prod-tabs .right-details-container .tm-fast-order-sidebar .cart-contact-form-item {
    margin-bottom: 10px !important;
}

#main_container.topm-no-sidebar #prod-tabs .right-details-container .tm-fast-order-sidebar .cart-contact-form-item label {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    margin: 0 !important;
}

#main_container.topm-no-sidebar #prod-tabs .right-details-container .tm-fast-order-sidebar input[type="text"],
#main_container.topm-no-sidebar #prod-tabs .right-details-container .tm-fast-order-sidebar textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border: 1px solid #c9ddef !important;
    border-radius: 7px !important;
    font-size: 14px !important;
}

#main_container.topm-no-sidebar #prod-tabs .right-details-container .tm-fast-order-sidebar label[for="m_credit1"] {
    display: inline !important;
    width: auto !important;
    font-size: 12.5px !important;
    line-height: 1.35 !important;
    color: #354d66 !important;
}

#main_container.topm-no-sidebar #prod-tabs .right-details-container .tm-fast-order-sidebar .cart-contact-form-additional-link {
    font-size: 12.5px !important;
    line-height: 1.35 !important;
    margin: 6px 0 10px !important;
    color: #0b69b7 !important;
    cursor: pointer !important;
}

#main_container.topm-no-sidebar #prod-tabs .right-details-container .tm-fast-order-sidebar .cart-contact-form-descr p {
    font-size: 12.5px !important;
    line-height: 1.42 !important;
    color: #4f6478 !important;
    margin: 4px 0 10px !important;
}

#main_container.topm-no-sidebar #prod-tabs .right-details-container .tm-fast-order-sidebar button.-b-submit-order,
#main_container.topm-no-sidebar #prod-tabs .right-details-container .tm-fast-order-sidebar #send_order_button-bf1 {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    float: none !important;
    margin: 6px 0 0 0 !important;
    padding: 11px 16px !important;
    border-radius: 8px !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

#main_container.topm-no-sidebar #prod-tabs .right-details-container .tm-fast-order-sidebar #result,
#main_container.topm-no-sidebar #prod-tabs .right-details-container .tm-fast-order-sidebar #result2 {
    float: none !important;
    display: block !important;
    margin-top: 8px !important;
    font-size: 13px !important;
}

@media screen and (max-width: 900px) {
    #main_container.topm-no-sidebar #prod-tabs .right-details-container .post-fast-order.tm-fast-order-sidebar,
    #prod-tabs .right-details-container .post-fast-order.tm-fast-order-sidebar,
    #main_container.topm-no-sidebar #prod-tabs #tm-fast-order-mobile-slot .post-fast-order.tm-fast-order-sidebar,
    #prod-tabs #tm-fast-order-mobile-slot .post-fast-order.tm-fast-order-sidebar {
        clear: both !important;
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 18px 0 8px 0 !important;
        padding: 15px 14px 16px !important;
        background: #f1f7fc !important;
        border: 1px solid #d3e6f7 !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
    }

    #tm-fast-order-mobile-slot .tm-fast-order-sidebar .fast-order-title h2 {
        margin: 0 0 12px 0 !important;
        font-size: 16px !important;
        line-height: 1.32 !important;
        font-weight: 700 !important;
        color: #162c43 !important;
    }

    #tm-fast-order-mobile-slot .tm-fast-order-sidebar .row {
        margin: 0 !important;
        display: block !important;
    }

    #tm-fast-order-mobile-slot .tm-fast-order-sidebar .col-md-6 {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    #tm-fast-order-mobile-slot .tm-fast-order-sidebar input[type="text"],
    #tm-fast-order-mobile-slot .tm-fast-order-sidebar textarea {
        width: 100% !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
        border: 1px solid #c9ddef !important;
        border-radius: 7px !important;
    }

    #tm-fast-order-mobile-slot .tm-fast-order-sidebar button.-b-submit-order,
    #tm-fast-order-mobile-slot .tm-fast-order-sidebar #send_order_button-bf1 {
        width: 100% !important;
        display: block !important;
        float: none !important;
        margin-top: 8px !important;
        padding: 12px 16px !important;
        border-radius: 8px !important;
        font-size: 15px !important;
        font-weight: 700 !important;
    }
}

/* ==========================================================================
   TM Composition Stack ("Sostav"): keep 100% original layer scale & cover_02.png,
   remove empty gap on thin layers (spunbond 9px), and align labels symmetrically.
   ========================================================================== */
/* 1. Remove forced 22px min-height on image layers so thin layers (spunbond/felt) have zero empty gap */
#main_container.topm-no-sidebar #prod-tabs .right-details-container .bottom-container ol li:has(img.img-layer) {
    min-height: 0 !important;
}

#main_container.topm-no-sidebar #prod-tabs .right-details-container .bottom-container ol li:has(img.img-layer) .mlname.show-layer-name {
    margin-top: -3px !important;
}

/* 2. Top cover row (first <li>, text-only): match natural 8px cap height so label points right at top cover */
#main_container.topm-no-sidebar #prod-tabs .right-details-container .bottom-container ol li:first-child:has(.extend):not(:has(img.img-layer)) {
    height: 8px !important;
    min-height: 8px !important;
}

#main_container.topm-no-sidebar #prod-tabs .right-details-container .bottom-container ol li:first-child:has(.extend):not(:has(img.img-layer)) .mlname.show-layer-name {
    top: 1.5px !important;
}

/* 3. Bottom-most inner layer (carries the 7px bottom scalloped cover): lift label to true center of bottom layer */
#main_container.topm-no-sidebar #prod-tabs .right-details-container .bottom-container ol li:has(.layer-info[style*="margin-bottom"]) .mlname.show-layer-name {
    margin-top: -7.5px !important;
}

/* 4. Bottom cover row (last visible text-only <li>): remove dangling cover_02 side-strip & align label to bottom cover */
#main_container.topm-no-sidebar #prod-tabs .right-details-container .bottom-container ol li:not(:first-child):has(.extend):not(:has(img.img-layer)) {
    height: 8px !important;
    min-height: 8px !important;
}

#main_container.topm-no-sidebar #prod-tabs .right-details-container .bottom-container ol li:not(:first-child):has(.extend):not(:has(img.img-layer)) .faq-layer .mlayer {
    background: none !important;
    top: -7px !important;
    height: 8px !important;
}

#main_container.topm-no-sidebar #prod-tabs .right-details-container .bottom-container ol li:not(:first-child):has(.extend):not(:has(img.img-layer)) .mlname.show-layer-name {
    top: -1.5px !important;
}

/* 5. Single-inner-layer models (toppers / foam-only, where LI[0] draws top cover_02.png & LI[1] has both margin-top & margin-bottom) */
#main_container.topm-no-sidebar #prod-tabs .right-details-container .bottom-container ol li:first-child:has(.mlayer[style*="cover_02"]) .faq-layer .mlayer {
    top: 0 !important;
}

#main_container.topm-no-sidebar #prod-tabs .right-details-container .bottom-container ol li:first-child:has(.mlayer[style*="cover_02"]) .mlname.show-layer-name {
    top: 0.5px !important;
}

#main_container.topm-no-sidebar #prod-tabs .right-details-container .bottom-container ol li:has(.layer-info[style*="margin-bottom"][style*="margin-top"]) img.img-layer {
    margin-bottom: 6px !important;
}

#main_container.topm-no-sidebar #prod-tabs .right-details-container .bottom-container ol li:has(.layer-info[style*="margin-bottom"][style*="margin-top"]) .mlname.show-layer-name {
    margin-top: -1px !important;
}

#main_container.topm-no-sidebar #prod-tabs .right-details-container .bottom-container ol li:has(.layer-info[style*="margin-bottom"][style*="margin-top"]) + li .mlname.show-layer-name {
    top: -1px !important;
}

/* ==========================================================================
   TM Rich Description: Hover Zoom Popup (Desktop) + Layer Lightbox Modal +
   Mobile "Podrobnee" Button
   ========================================================================== */
.tm-rich-desc-media {
    position: relative;
    cursor: zoom-in;
}

.tm-rich-desc-media::after {
    content: "";
    position: absolute;
    right: 7px;
    bottom: 7px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%231c3d5a' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E") center no-repeat;
    box-shadow: 0 2px 6px rgba(15, 34, 56, 0.16);
    opacity: 0;
    transform: scale(0.88);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    .tm-rich-desc-media:hover::after {
        opacity: 1;
        transform: scale(1);
    }
}

/* Desktop hover preview popup */
.tm-rd-hover-pop {
    position: fixed;
    z-index: 10050;
    width: 500px;
    max-width: calc(100vw - 32px);
    background: #ffffff;
    border: 1px solid #d5e5f4;
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(15, 36, 62, 0.22), 0 4px 12px rgba(15, 36, 62, 0.08);
    padding: 10px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px) scale(0.97);
    transition: opacity 0.16s ease, transform 0.16s ease;
    box-sizing: border-box;
    display: none;
}

.tm-rd-hover-pop.is-open {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.tm-rd-hover-pop img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 9px;
    background: #f3f7fb;
}

.tm-rd-hover-pop__cap {
    margin-top: 8px;
    padding: 0 4px 2px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    color: #162c43;
}

/* Full Layer Lightbox Modal (Desktop click + Mobile tap / "Podrobnee") */
.tm-rd-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10090;
    background: rgba(15, 29, 46, 0.64);
    backdrop-filter: blur(2px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.tm-rd-modal-backdrop.is-open {
    display: flex;
}

.tm-rd-modal-card {
    position: relative;
    width: 100%;
    max-width: 680px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(10, 24, 42, 0.32);
    padding: 16px 16px 20px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.tm-rd-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: 1px solid #d7e4f0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #1c3550;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 8px rgba(15, 34, 56, 0.14);
}

.tm-rd-modal-close:hover {
    background: #f0f6fc;
}

.tm-rd-modal-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 11px;
    background: #f3f7fb;
}

.tm-rd-modal-title {
    margin: 14px 0 8px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.32;
    color: #132235;
}

.tm-rd-modal-text {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.55;
    color: #3a4a5d;
}

/* Mobile-only "Podrobnee" button disabled per UX review */
.tm-rd-more-btn {
    display: none !important;
}

@media screen and (max-width: 640px) {
    .tm-rd-hover-pop {
        display: none !important;
    }

    .tm-rd-modal-card {
        padding: 12px 12px 18px;
        border-radius: 14px;
    }

    .tm-rd-modal-title {
        font-size: 16.5px;
        margin: 12px 0 6px;
    }

    .tm-rd-modal-text {
        font-size: 14px;
        line-height: 1.5;
    }
}

/* ==========================================================================
   8. Hybrid Liquid-Glass Design System (Menu + Colored Layers + Gallery +
      Buy Box + 5-Spec Icon Bar) -- Desktop, Mobile & Quick-View
   ========================================================================== */

/* --- 8A. Azure Liquid-Glass Main Menu & Header Polish --- */
.header-menu .header-nav--sale,
.header-wrapper-new .btn-sail {
    border-radius: 999px !important;
    transition: transform 0.14s ease, filter 0.15s ease !important;
}

@media screen and (min-width: 768px) {
    .header-wrapper-new #quicksearch_form input[type="text"],
    .header-wrapper-new .search-form input[type="text"] {
        border-radius: 999px !important;
    }

    .header-wrapper-new .btn-recall,
    .header-wrapper-new #callback_a.btn-recall {
        border-radius: 999px !important;
    }

    /* Variant 1: Rich Azure Liquid-Glass Bar on Top-Matras (preserves MSPB light rail) */
    .main-menu-wrapper.topm-main-menu-bar:not(.mspb-cat-rail) {
        height: 52px !important;
        padding: 5px 7px !important;
        border-radius: 14px !important;
        background: linear-gradient(135deg, #2176b2 0%, #3692ce 52%, #2379b5 100%) !important;
        border: 1px solid rgba(255, 255, 255, 0.24) !important;
        box-shadow: 0 2px 8px rgba(27, 98, 154, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.34) !important;
    }

    .main-menu-wrapper.topm-main-menu-bar:not(.mspb-cat-rail) .topm-catalog-btn {
        height: 40px !important;
        padding: 0 18px !important;
        margin-right: 6px !important;
        border-radius: 11px !important;
        background: rgba(10, 46, 76, 0.30) !important;
        border: 1px solid rgba(255, 255, 255, 0.54) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
        font-size: 12.8px !important;
        font-weight: 700 !important;
        letter-spacing: 0.04em !important;
        text-transform: uppercase !important;
    }

    .main-menu-wrapper.topm-main-menu-bar:not(.mspb-cat-rail) .topm-catalog-btn:hover,
    .main-menu-wrapper.topm-main-menu-bar:not(.mspb-cat-rail) .topm-catalog-btn:focus,
    .main-menu-wrapper.topm-main-menu-bar:not(.mspb-cat-rail) .topm-catalog-btn.is-open {
        background: rgba(8, 39, 66, 0.48) !important;
        border-color: rgba(255, 255, 255, 0.88) !important;
    }

    /* Remove legacy dashed inner border */
    .main-menu-wrapper.topm-main-menu-bar .main-menu {
        border: none !important;
        height: 40px !important;
        padding: 0 4px !important;
        gap: 2px !important;
    }

    .main-menu-wrapper.topm-main-menu-bar:not(.mspb-cat-rail) .main-menu-link {
        height: 38px !important;
        line-height: 1.15 !important;
        padding: 0 12px !important;
        border-radius: 10px !important;
        font-size: 12.3px !important;
        font-weight: 700 !important;
        letter-spacing: 0.03em !important;
        text-transform: uppercase !important;
        color: #ffffff !important;
        gap: 5px !important;
        transition: background-color 0.16s ease, transform 0.12s ease !important;
    }

    .main-menu-wrapper.topm-main-menu-bar:not(.mspb-cat-rail) .main-menu-item:hover > .main-menu-link,
    .main-menu-wrapper.topm-main-menu-bar:not(.mspb-cat-rail) .main-menu-item.open > .main-menu-link {
        background: rgba(255, 255, 255, 0.16) !important;
        color: #ffffff !important;
    }

    /* MSPB Light Architectural Rail uppercase links without icons */
    body .mspb-cat-rail #mm_menu .main-menu-link,
    .mspb-cat-rail .main-menu-link {
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        padding: 0 7px !important;
        font-size: 12px !important;
        text-transform: uppercase !important;
    }

    /* Right CTA Pill: "PODOBRAT MATRAS ->" */
    .main-menu-wrapper.topm-main-menu-bar:not(.mspb-cat-rail) .main-menu-link1 {
        height: 38px !important;
        padding: 0 15px !important;
        border-radius: 10px !important;
        background: #ffffff !important;
        color: #154d80 !important;
        font-size: 11.8px !important;
        font-weight: 800 !important;
        letter-spacing: 0.03em !important;
        text-transform: uppercase !important;
        gap: 6px !important;
        box-shadow: 0 1px 3px rgba(9, 38, 66, 0.08) !important;
        transition: background-color 0.15s ease, transform 0.12s ease !important;
    }

    .main-menu-wrapper.topm-main-menu-bar:not(.mspb-cat-rail) .main-menu-link1:hover {
        background: #f0f7ff !important;
        color: #0e3b63 !important;
        transform: translateY(-1px) !important;
    }

    .tm-nav-arr {
        font-size: 13px !important;
        line-height: 1 !important;
        opacity: 0.85 !important;
        pointer-events: none !important;
    }

    .main-menu-wrapper.topm-main-menu-bar .main-menu-item .dropdown-menu {
        top: 54px !important;
        border-radius: 14px !important;
        border: 1px solid #d8e5f2 !important;
        box-shadow: 0 18px 40px rgba(15, 36, 62, 0.15) !important;
    }
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
    .main-menu-wrapper.topm-main-menu-bar:not(.mspb-cat-rail) .topm-catalog-btn {
        padding: 0 12px !important;
        font-size: 11.5px !important;
    }

    .main-menu-wrapper.topm-main-menu-bar:not(.mspb-cat-rail) .main-menu-link {
        padding: 0 7px !important;
        font-size: 11px !important;
        letter-spacing: 0.015em !important;
        gap: 4px !important;
    }

    .main-menu-wrapper.topm-main-menu-bar:not(.mspb-cat-rail) .main-menu-link1 {
        padding: 0 11px !important;
        font-size: 11px !important;
    }
}

/* --- 8B. PDP Card Outer Polish, SKU Pill & Gallery Floating Price Capsule --- */
html body #main_container.topm-no-sidebar .item-single .topm-pdp-hero {
    border-radius: 16px !important;
    box-shadow: 0 1px 4px rgba(18, 42, 68, 0.03) !important;
}

html body #main_container.topm-no-sidebar .item-single .topm-pdp-hero .item-single-title-top .text_osnov_center1 > span,
#main_container.topm-no-sidebar .item-single .text_osnov_center1 > span {
    background: #eef4fb !important;
    color: #264360 !important;
    border: 1px solid #d5e4f2 !important;
    border-radius: 999px !important;
    padding: 5px 13px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    box-shadow: none !important;
}

@media screen and (min-width: 768px) {
    #main_container.topm-no-sidebar .item-single > .row-columns-wrapper > .column-composition {
        background: #f7fafd !important;
        border: 1px solid #dde8f4 !important;
        border-radius: 15px !important;
        padding: 11px 12px !important;
        box-shadow: none !important;
    }

    #main_container.topm-no-sidebar .item-single > .row-columns-wrapper > .column-information {
        background: #f7fafd !important;
        border: 1px solid #dde8f4 !important;
        border-radius: 16px !important;
        padding: 16px !important;
        box-shadow: none !important;
    }
}

@media screen and (min-width: 992px) {
    html body #main_container.topm-no-sidebar .item-single .topm-pdp-hero .row-columns-wrapper > .column-composition {
        background: #f7fafd !important;
        border: 1px solid #e0ebf6 !important;
        border-radius: 14px !important;
        padding: 11px 12px !important;
        box-shadow: none !important;
    }

    html body #main_container.topm-no-sidebar .item-single .topm-pdp-hero .column-information .item-single-buy {
        background: #f7fafd !important;
        border: 1px solid #e0ebf6 !important;
        border-radius: 14px !important;
        padding: 14px !important;
        box-shadow: none !important;
    }
}

html body #main_container.topm-no-sidebar .item-single .topm-pdp-hero .manufacturer-lg,
#main_container.topm-no-sidebar .item-single .manufacturer-lg {
    background: #f7fafd !important;
    border: 1px solid #dde8f4 !important;
    border-radius: 14px !important;
    padding: 12px 14px !important;
    box-shadow: none !important;
}

#main_container.topm-no-sidebar .item-single .manufacturer-lg .prod-label-item {
    background: #ffffff !important;
    border: 1px solid #e2ecf6 !important;
    border-radius: 11px !important;
    padding: 8px 10px !important;
    box-shadow: none !important;
}

/* Gallery Frame, Circular Nav Arrows, Counter & Rounded Thumbnails */
.topm-gallery__frame,
.product_qv_info .item-image {
    border-radius: 16px !important;
    border: 1px solid #dde8f3 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f7fafd 100%) !important;
    box-shadow: none !important;
}

.topm-gallery__nav {
    width: 38px !important;
    height: 38px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1px solid #d5e3f1 !important;
    color: #244363 !important;
    font-size: 23px !important;
    line-height: 34px !important;
    box-shadow: 0 1px 4px rgba(16, 38, 64, 0.06) !important;
    transition: background-color 0.14s ease, transform 0.14s ease !important;
}

.topm-gallery__nav:not(:disabled):hover {
    background: #ffffff !important;
    border-color: #9ec5ea !important;
}

.topm-gallery__counter {
    border-radius: 999px !important;
    padding: 4px 11px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #3d566f !important;
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1px solid #d8e5f2 !important;
    box-shadow: none !important;
}

.topm-gallery__thumbs {
    gap: 8px !important;
    padding: 10px 2px 6px !important;
}

.topm-gallery__thumb,
.p-thumbs li {
    border-radius: 11px !important;
    border: 1px solid #dae6f2 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    transition: border-color 0.15s ease, transform 0.12s ease !important;
}

.topm-gallery__thumb:hover,
.p-thumbs li:hover {
    border-color: #8cbbe6 !important;
}

.topm-gallery__thumb[aria-current="true"] {
    border: 2px solid #257bb7 !important;
    box-shadow: none !important;
}

/* Top-Left Coral Discount Pill */
.topm-gallery .product-sale,
.column-photo .item-image .product-sale {
    top: 12px !important;
    left: 12px !important;
    bottom: auto !important;
    right: auto !important;
    background: linear-gradient(135deg, #f24c50 0%, #dc2626 100%) !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    padding: 5px 12px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.01em !important;
    box-shadow: 0 1px 3px rgba(15, 38, 64, 0.10) !important;
}

/* Top-Right Floating Frosted-Glass Price Capsule (preserves #optionOldPrice & #optionPrice live updates) */
.column-photo {
    position: relative !important;
}

.column-photo .item-single-price {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 8 !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: center !important;
    gap: 2px !important;
    width: auto !important;
    padding: 7px 14px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid #d5e4f2 !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 5px rgba(15, 38, 64, 0.05) !important;
}

.column-photo .item-single-price span.optionOldPrice,
.column-photo .item-single-price #optionOldPrice {
    position: static !important;
    top: auto !important;
    right: auto !important;
    display: block !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    color: #788fa6 !important;
    text-align: right !important;
    white-space: nowrap !important;
}

.column-photo .item-single-price span.optionPrice,
.column-photo .item-single-price #optionPrice {
    position: static !important;
    top: auto !important;
    right: auto !important;
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 3px !important;
    height: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: 1.12 !important;
    color: #0f243a !important;
    letter-spacing: -0.02em !important;
    text-shadow: none !important;
    white-space: nowrap !important;
}

.column-photo .item-single-price span.optionPrice i,
.column-photo .item-single-price #optionPrice i {
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #36526e !important;
    font-style: normal !important;
}

.column-photo .item-single-price span.optionPrice::after,
.item-single-price span.optionPrice::after {
    display: none !important;
    content: none !important;
    border: none !important;
}

/* --- 8C. Material-Colored Composition ("Sostav modeli") - Left-Aligned & Compact --- */
html body #main_container.topm-no-sidebar .item-single .column-composition .sloi > h2,
html body #main_container .item-single .column-composition .sloi > h2,
html body .product_qv_info .column-composition .sloi > h2,
html body .item-single-info .sloi > h2 {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    margin: 0 0 8px 0 !important;
    padding: 0 2px 8px 2px !important;
    border-bottom: 1px solid #e2ecf6 !important;
    background: transparent !important;
    color: #12263a !important;
    font-size: 15.5px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    text-transform: none !important;
    text-align: left !important;
    border-radius: 0 !important;
}

.tm-sloi-h2-ic {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 26px !important;
    height: 26px !important;
    margin-right: 2px !important;
    border-radius: 8px !important;
    background: #e4f0fc !important;
    border: 1px solid #cbe0f6 !important;
    color: #1d68a6 !important;
    flex-shrink: 0 !important;
}

.tm-sloi-h2-ic svg {
    width: 14px !important;
    height: 14px !important;
    display: block !important;
}

html body .item-single-info .sloi div.perfectScrollbar,
.item-single-info .sloi div.perfectScrollbar {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

html body .item-single-info .sloi p.tm-layer-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 4px 8px !important;
    min-height: 28px !important;
    border-radius: 8px !important;
    border: 1px solid #e3ecf5 !important;
    background: #ffffff !important;
    color: #1e3247 !important;
    box-shadow: none !important;
    transition: transform 0.12s ease, border-color 0.15s ease !important;
    line-height: 1.22 !important;
}

html body .item-single-info .sloi p.tm-layer-row:hover,
html body .item-single-info .sloi p.tm-layer-row.clicked {
    background: #ffffff !important;
    color: #10243a !important;
    border-color: #8abbe6 !important;
    box-shadow: none !important;
    transform: translateX(2px);
}

.tm-layer-main {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    pointer-events: none !important;
}

.tm-layer-num {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
    background: #edf1f6 !important;
    color: #4c6075 !important;
    border: 1px solid #dae2ec !important;
    pointer-events: none !important;
}

.tm-layer-name {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #1e3247 !important;
    line-height: 1.22 !important;
    min-width: 0 !important;
    overflow-wrap: break-word !important;
    pointer-events: none !important;
}

.tm-layer-chip {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1px 6px !important;
    border-radius: 5px !important;
    font-size: 10.8px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    background: #f3f6fa !important;
    color: #52667a !important;
    pointer-events: none !important;
}

/* Material Palette B1: Natural Tactile 9-Group System + Dark Graphite Thermofelt */

/* 1. Spring Core (Heart of the Mattress) */
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="spring"] {
    background: #e7f1ff !important;
    border-color: #b6d3fb !important;
}
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="spring"]:hover,
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="spring"].clicked {
    background: #ddebfb !important;
    border-color: #7fb2f5 !important;
}
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="spring"] .tm-layer-num {
    background: #2563eb !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
}
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="spring"] .tm-layer-name {
    font-weight: 800 !important;
    color: #103466 !important;
}
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="spring"] .tm-layer-chip {
    background: #ffffff !important;
    border: 1px solid #bfdbfe !important;
    color: #1d4ed8 !important;
}

/* 2. Dark Thermofelt / Felt / Horsehair (Dark Graphite #475569 + Crisp White Number) */
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="thermofelt"] {
    border-color: #d5dde6 !important;
}
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="thermofelt"] .tm-layer-num {
    background: #475569 !important;
    border-color: #334155 !important;
    color: #ffffff !important;
}
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="thermofelt"] .tm-layer-chip {
    background: #edf1f6 !important;
    color: #334155 !important;
}

/* 3. Light Spunbond / White Cotton Felt / Padding (Light Silver-Stone) */
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="spunbond"] {
    border-color: #e2e8f0 !important;
}
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="spunbond"] .tm-layer-num {
    background: #e6ecf3 !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="spunbond"] .tm-layer-chip {
    background: #f1f5f9 !important;
    color: #475569 !important;
}

/* 4. Natural Latex / Latex Massage (Warm Honey-Cream) */
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="latex"] {
    border-color: #efe0b4 !important;
}
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="latex"] .tm-layer-num {
    background: #fde6a2 !important;
    border-color: #f2ca63 !important;
    color: #824905 !important;
}
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="latex"] .tm-layer-chip {
    background: #fff8e3 !important;
    color: #824905 !important;
}

/* 5. Coconut Coir / Bi-coconut (Warm Walnut-Terracotta) */
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="coconut"] {
    border-color: #e8d0ba !important;
}
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="coconut"] .tm-layer-num {
    background: #eecab0 !important;
    border-color: #dca984 !important;
    color: #6b330d !important;
}
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="coconut"] .tm-layer-chip {
    background: #fbf1e8 !important;
    color: #6b330d !important;
}

/* 6. Sisal / Flax / Hemp / Soya (Natural Botanical Olive-Herb) */
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="sisal"] {
    border-color: #d7e8c3 !important;
}
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="sisal"] .tm-layer-num {
    background: #dfefc9 !important;
    border-color: #c2de9e !important;
    color: #3a6111 !important;
}
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="sisal"] .tm-layer-chip {
    background: #f3f9eb !important;
    color: #3a6111 !important;
}

/* 7. Memory Foam / Lilac PPU / RelaxFoam (Soft Lavender-Lilac) */
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="lilac"],
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="memory"] {
    border-color: #e5d8f3 !important;
}
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="lilac"] .tm-layer-num,
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="memory"] .tm-layer-num {
    background: #ede2fa !important;
    border-color: #d4bef2 !important;
    color: #622996 !important;
}
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="lilac"] .tm-layer-chip,
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="memory"] .tm-layer-chip {
    background: #f7f2fc !important;
    color: #622996 !important;
}

/* 8. Orthopedic Foam / EcoFoam / PPU (Crisp White Badge + Sharp Border + Black Number) */
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="foam"] {
    border-color: #dde6f0 !important;
}
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="foam"] .tm-layer-num {
    background: #ffffff !important;
    border: 1.5px solid #94a3b8 !important;
    color: #0f172a !important;
}
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="foam"] .tm-layer-chip {
    background: #f8fafc !important;
    border: 1px solid #d8e2ec !important;
    color: #1e293b !important;
}

/* 9. Cover / Knit / Jacquard (Soft Sky-Pearl) */
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="cover"] {
    border-color: #e1ecf6 !important;
}
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="cover"] .tm-layer-num {
    background: #e5f0fb !important;
    border-color: #c8ddf4 !important;
    color: #21568a !important;
}
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="cover"] .tm-layer-chip {
    background: #f2f7fd !important;
    color: #2e5d8a !important;
}

/* 10. Carbon / Charcoal Foam (Deep Anthracite + White Number) */
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="charcoal"] {
    border-color: #cbd5e1 !important;
}
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="charcoal"] .tm-layer-num {
    background: #2d3748 !important;
    border-color: #1e293b !important;
    color: #ffffff !important;
}
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="charcoal"] .tm-layer-chip {
    background: #edf2f7 !important;
    color: #2d3748 !important;
}

/* Photo-Matched Cutaway Layer Tokens (derived from product's main studio cutaway photo) */
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="photo_pink"] {
    border-color: #f1cddc !important;
}
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="photo_pink"] .tm-layer-num {
    background: #fad8e6 !important;
    border-color: #efb2cb !important;
    color: #831843 !important;
}
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="photo_pink"] .tm-layer-chip {
    background: #fdf0f5 !important;
    color: #831843 !important;
}

html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="photo_peach"] {
    border-color: #f0d0bf !important;
}
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="photo_peach"] .tm-layer-num {
    background: #fbe1d2 !important;
    border-color: #f0bca1 !important;
    color: #7c2d12 !important;
}
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="photo_peach"] .tm-layer-chip {
    background: #fef3ec !important;
    color: #7c2d12 !important;
}

html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="photo_yellow"] {
    border-color: #efe0a3 !important;
}
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="photo_yellow"] .tm-layer-num {
    background: #fef0b5 !important;
    border-color: #f4d562 !important;
    color: #784605 !important;
}
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="photo_yellow"] .tm-layer-chip {
    background: #fff9de !important;
    color: #784605 !important;
}

html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="photo_cream"] {
    border-color: #eadcc8 !important;
}
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="photo_cream"] .tm-layer-num {
    background: #f6ead7 !important;
    border-color: #e5ceb0 !important;
    color: #6c4617 !important;
}
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="photo_cream"] .tm-layer-chip {
    background: #fbf5eb !important;
    color: #6c4617 !important;
}

html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="photo_olive"] {
    border-color: #d3e2be !important;
}
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="photo_olive"] .tm-layer-num {
    background: #dfe9cf !important;
    border-color: #c2d6a4 !important;
    color: #365314 !important;
}
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="photo_olive"] .tm-layer-chip {
    background: #f2f7eb !important;
    color: #365314 !important;
}

html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="photo_aqua"] {
    border-color: #c5e6ef !important;
}
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="photo_aqua"] .tm-layer-num {
    background: #d2f1f8 !important;
    border-color: #a2deed !important;
    color: #0e586e !important;
}
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="photo_aqua"] .tm-layer-chip {
    background: #ecf9fc !important;
    color: #0e586e !important;
}

html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="photo_slate"] {
    border-color: #d3dfed !important;
}
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="photo_slate"] .tm-layer-num {
    background: #dce6f2 !important;
    border-color: #bacce0 !important;
    color: #264566 !important;
}
html body .item-single-info .sloi p.tm-layer-row[data-tm-mat="photo_slate"] .tm-layer-chip {
    background: #eef3f9 !important;
    color: #264566 !important;
}

/* Hide legacy bulky stock block inside Composition (relocated to crisp Buy-Box header pill) */
html body #main_container.topm-no-sidebar .item-single .topm-pdp-hero .column-composition .item-single-stock,
html body #main_container .item-single .column-composition .item-single-stock,
html body .product_qv_info .column-composition .item-single-stock,
.column-composition .item-single-stock,
html body .column-information .width-50p-xs:has(i.item-single-stock),
html body .column-information .storage.width-50p-xs.line-height-17 {
    display: none !important;
}

/* Protective Cover Card ("Dobavit zashchitnyy namatrasnik"): #9bbcd3 -> #3b93ce gradient, white title, flat clean */
html body #main_container.topm-no-sidebar .item-single .topm-pdp-hero .column-composition .storage,
html body #main_container .item-single .column-composition .storage,
html body .product_qv_info .column-composition .storage {
    margin-top: 12px !important;
    padding: 10px 11px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #9bbcd3 0%, #3b93ce 100%) !important;
    border: 1px solid #6ea2c7 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

html body #main_container.topm-no-sidebar .item-single .topm-pdp-hero .column-composition .storage:has(input[type="checkbox"]:checked),
html body #main_container .item-single .column-composition .storage:has(input[type="checkbox"]:checked),
html body .product_qv_info .column-composition .storage:has(input[type="checkbox"]:checked) {
    background: linear-gradient(135deg, #88aec9 0%, #2f86c2 100%) !important;
    border-color: #4b8dbd !important;
    box-shadow: none !important;
}

html body #main_container.topm-no-sidebar .item-single .topm-pdp-hero .column-composition .storage .zn-ttl,
html body #main_container .item-single .column-composition .storage .zn-ttl,
html body .product_qv_info .column-composition .storage .zn-ttl {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin: 0 0 8px 0 !important;
    padding: 0 2px !important;
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(10, 42, 74, 0.24) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.28 !important;
    letter-spacing: 0.01em !important;
}

html body #main_container.topm-no-sidebar .item-single .topm-pdp-hero .column-composition .storage .zn-ttl .vopros-ico,
html body #main_container .item-single .column-composition .storage .zn-ttl .vopros-ico,
html body .product_qv_info .column-composition .storage .zn-ttl .vopros-ico {
    background: rgba(255, 255, 255, 0.22) !important;
    border: 1px solid rgba(255, 255, 255, 0.65) !important;
    color: #ffffff !important;
    opacity: 1 !important;
    box-shadow: none !important;
}

html body #main_container.topm-no-sidebar .item-single .topm-pdp-hero .column-composition .storage .zn-ttl .vopros-ico::after,
html body #main_container .item-single .column-composition .storage .zn-ttl .vopros-ico::after {
    color: #ffffff !important;
}

html body #main_container.topm-no-sidebar .item-single .topm-pdp-hero .column-composition .storage label.check,
html body #main_container .item-single .column-composition .storage label.check,
html body .product_qv_info .column-composition .storage label.check {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    margin: 0 !important;
    padding: 8px 11px !important;
    background: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.94) !important;
    border-radius: 9px !important;
    box-shadow: none !important;
    color: #142a40 !important;
    font-size: 12.6px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    cursor: pointer !important;
}

html body #main_container.topm-no-sidebar .item-single .topm-pdp-hero .column-composition .storage label.check:hover,
html body #main_container .item-single .column-composition .storage label.check:hover,
html body .product_qv_info .column-composition .storage label.check:hover {
    background: #f7fcff !important;
}

/* --- 8D. Buy Box, Size Header + Stock Pill, Tactile CTA Buttons & Delivery/Payment Cards --- */
html body .column-information .item-single-buy .item-single-buy-header,
html body .product_qv_info .item-single-buy .item-single-buy-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    background: transparent !important;
    color: #516a83 !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    padding: 0 2px 7px 2px !important;
    text-align: left !important;
    text-transform: none !important;
    border-radius: 0 !important;
}

.tm-buy-hdr-lbl {
    color: #516a83 !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
}

.tm-stock-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 2.5px 9px !important;
    border-radius: 999px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

.tm-stock-pill.is-instock {
    background: #e7f8ef !important;
    border: 1px solid #bce8cf !important;
    color: #0e693c !important;
}

.tm-stock-pill.is-order {
    background: #fef5e7 !important;
    border: 1px solid #f6d8a6 !important;
    color: #9a5306 !important;
}

.tm-stock-dot {
    display: inline-block !important;
    width: 6.5px !important;
    height: 6.5px !important;
    border-radius: 50% !important;
    background: #16a34a !important;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.18) !important;
    flex-shrink: 0 !important;
}

.tm-stock-pill.is-order .tm-stock-dot {
    background: #f59e0b !important;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.22) !important;
}

.item-single-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-top: 10px !important;
}

.item-single-buttons form {
    margin: 0 !important;
    width: 100% !important;
}

/* Primary Red-Coral "V korzinu" Button */
.column-information .item-single-buy a.-a2b-button.button,
.product_qv_info .item-single-buy a.-a2b-button.button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 46px !important;
    padding: 0 16px !important;
    margin: 0 !important;
    border-radius: 12px !important;
    background: linear-gradient(180deg, #f1585b 0%, #dc373b 100%) !important;
    border: none !important;
    box-shadow: 0 1px 4px rgba(220, 55, 59, 0.12) !important;
    text-shadow: none !important;
    text-decoration: none !important;
    transition: filter 0.15s ease !important;
}

.column-information .item-single-buy a.-a2b-button.button:hover,
.product_qv_info .item-single-buy a.-a2b-button.button:hover {
    filter: brightness(1.04) !important;
    transform: none !important;
}

html body .column-information .item-single-buy a.-a2b-button.button span,
html body .column-information .item-single-buy a.-a2b-button.button:hover span,
html body .product_qv_info .item-single-buy a.-a2b-button.button span,
html body .product_qv_info .item-single-buy a.-a2b-button.button:hover span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: 0.01em !important;
    text-transform: none !important;
    white-space: nowrap !important;
}

/* Secondary Flat-Clean "Kupit v 1 klik" Button (Zero Shadows) */
.column-information .item-single-buy a.buy-fast.button,
.product_qv_info .item-single-buy a.buy-fast.button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 42px !important;
    padding: 0 16px !important;
    margin: 0 !important;
    border-radius: 12px !important;
    background: #f3f9ff !important;
    border: 1px solid #c6def5 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    text-decoration: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease !important;
}

.column-information .item-single-buy a.buy-fast.button:hover,
.column-information .item-single-buy a.buy-fast.button:focus,
.column-information .item-single-buy a.buy-fast.button:active,
.product_qv_info .item-single-buy a.buy-fast.button:hover,
.product_qv_info .item-single-buy a.buy-fast.button:focus,
.product_qv_info .item-single-buy a.buy-fast.button:active {
    background: #e6f2fe !important;
    border-color: #9ec6ed !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transform: none !important;
}

/* Also flatten heavy red glow on 1-Click / Fast-Order submit buttons */
html body .cart-contact-form .-b-submit-order,
html body #send_order_button,
html body #send_order_button-bf,
html body #send_order_button-bf1,
html body .cart-contact-form .-b-submit-order:hover,
html body #send_order_button:hover,
html body #send_order_button-bf:hover,
html body #send_order_button-bf1:hover {
    box-shadow: none !important;
    text-shadow: none !important;
}

html body .column-information .item-single-buy a.buy-fast.button span,
html body .column-information .item-single-buy a.buy-fast.button:hover span,
html body .product_qv_info .item-single-buy a.buy-fast.button span,
html body .product_qv_info .item-single-buy a.buy-fast.button:hover span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
    color: #164e82 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    white-space: nowrap !important;
}

i.tm-btn-ic,
.tm-btn-ic {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 16px !important;
    height: 16px !important;
    border: none !important;
    background: transparent !important;
    font-style: normal !important;
    pointer-events: none !important;
    flex-shrink: 0 !important;
}

.tm-btn-ic svg {
    width: 16px !important;
    height: 16px !important;
    display: block !important;
    pointer-events: none !important;
}

#main_container.topm-no-sidebar .item-single .item-single-delivery,
#main_container.topm-no-sidebar .item-single .item-single-payment,
.product_qv_info .item-single-delivery {
    background: #ffffff !important;
    border: 1px solid #dfeaf5 !important;
    border-radius: 13px !important;
    padding: 11px 13px !important;
    box-shadow: none !important;
}

/* --- 8E. 5-Parameter Icon Bar & Segmented Tabs --- */
#main_container.topm-no-sidebar .item-single table.params-table.tm-params-modern,
.product_qv_info table.params-table.tm-params-modern {
    background: #ffffff !important;
    border: 1px solid #dde8f3 !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 4px rgba(18, 42, 68, 0.025) !important;
    overflow: visible !important;
}

#main_container.topm-no-sidebar .item-single table.params-table.tm-params-modern td,
.product_qv_info table.params-table.tm-params-modern td {
    padding: 13px 14px !important;
    border-right: 1px solid #eaf1f8 !important;
    vertical-align: middle !important;
    overflow: visible !important;
}

#main_container.topm-no-sidebar .item-single table.params-table.tm-params-modern tr,
.product_qv_info table.params-table.tm-params-modern tr {
    overflow: visible !important;
}

#main_container.topm-no-sidebar .item-single table.params-table.tm-params-modern td:first-child,
.product_qv_info table.params-table.tm-params-modern td:first-child {
    border-radius: 16px 0 0 16px !important;
}

#main_container.topm-no-sidebar .item-single table.params-table.tm-params-modern td:last-child,
.product_qv_info table.params-table.tm-params-modern td:last-child {
    border-right: none !important;
    border-radius: 0 16px 16px 0 !important;
}

#main_container.topm-no-sidebar .item-single table.params-table.tm-params-modern td > div.tm-param-cell,
.product_qv_info table.params-table.tm-params-modern td > div.tm-param-cell {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 11px !important;
    text-align: left !important;
    width: 100% !important;
    position: relative !important;
}

.tm-param-tile {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 11px !important;
    background: #eaf3fd !important;
    border: 1px solid #d2e5f8 !important;
    color: #1f6fab !important;
    flex-shrink: 0 !important;
}

.tm-param-tile svg {
    width: 19px !important;
    height: 19px !important;
    display: block !important;
}

.tm-param-body {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

table.params-table.tm-params-modern .tm-param-body .ParamP {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    margin: 0 0 3px 0 !important;
    font-size: 11.8px !important;
    font-weight: 600 !important;
    color: #678099 !important;
    text-align: left !important;
}

table.params-table.tm-params-modern .tm-param-body b,
table.params-table.tm-params-modern .tm-param-val {
    display: inline-block !important;
    margin: 0 !important;
    font-size: 13.8px !important;
    font-weight: 800 !important;
    color: #12263a !important;
    line-height: 1.25 !important;
    text-align: left !important;
}

/* Dual Stiffness Scale (Upper & Lower like Catalog) + Hover Tooltip */
table.params-table.tm-params-modern div.urovenGestk.tm-param-cell {
    cursor: help !important;
    overflow: visible !important;
}

.tm-stiff-dual {
    display: inline-flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    padding: 3px 0 1px !important;
    outline: none !important;
}

.tm-stiff-track {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
}

.tm-stiff-track i {
    display: block !important;
    width: 21px !important;
    height: 5.5px !important;
    border-radius: 3px !important;
    background: #dce8f5 !important;
    transition: background-color 0.15s ease, transform 0.12s ease !important;
}

.tm-stiff-track i.is-on {
    background: linear-gradient(90deg, #2378b4 0%, #3894d1 100%) !important;
}

table.params-table.tm-params-modern div.urovenGestk.tm-param-cell:hover .tm-stiff-track i.is-on {
    background: linear-gradient(90deg, #1b669c 0%, #2d87c6 100%) !important;
}

.tm-stiff-popover {
    position: absolute !important;
    left: 0 !important;
    bottom: calc(100% + 11px) !important;
    z-index: 1200 !important;
    min-width: 220px !important;
    max-width: 270px !important;
    padding: 9px 12px !important;
    border-radius: 11px !important;
    background: rgba(16, 36, 56, 0.96) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 10px 26px rgba(10, 26, 44, 0.26) !important;
    color: #ffffff !important;
    text-align: left !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(4px) !important;
    pointer-events: none !important;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease !important;
}

.tm-stiff-popover::after {
    content: "" !important;
    position: absolute !important;
    left: 22px !important;
    top: 100% !important;
    border-width: 6px !important;
    border-style: solid !important;
    border-color: rgba(16, 36, 56, 0.96) transparent transparent transparent !important;
}

table.params-table.tm-params-modern div.urovenGestk.tm-param-cell:hover .tm-stiff-popover,
table.params-table.tm-params-modern div.urovenGestk.tm-param-cell:focus-within .tm-stiff-popover,
table.params-table.tm-params-modern div.urovenGestk.tm-param-cell.is-tip-open .tm-stiff-popover {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.tm-stiff-pop-ttl {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
    color: #93c5fd !important;
    margin: 0 0 5px 0 !important;
}

.tm-stiff-pop-row {
    display: flex !important;
    align-items: baseline !important;
    gap: 5px !important;
    font-size: 12.2px !important;
    line-height: 1.38 !important;
    color: #f1f5f9 !important;
    white-space: nowrap !important;
}

.tm-stiff-pop-side {
    color: #cbd5e1 !important;
    font-weight: 500 !important;
}

html body #main_container.topm-no-sidebar .item-single table.params-table.tm-params-modern .tm-stiff-popover .tm-stiff-pop-val,
html body .tm-stiff-popover .tm-stiff-pop-val,
html body .tm-stiff-popover .tm-stiff-pop-row b {
    color: #ffffff !important;
    font-size: 12.2px !important;
    font-weight: 700 !important;
}

.tm-stiff-pop-lvl {
    color: #93c5fd !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}

/* Hide legacy sprite icons inside modernized params-table */
table.params-table.tm-params-modern p.lineika,
table.params-table.tm-params-modern p.ves,
table.params-table.tm-params-modern p.pogoda,
table.params-table.tm-params-modern p.strelka,
table.params-table.tm-params-modern .progressbar1,
table.params-table.tm-params-modern .progressbar1_2 {
    display: none !important;
}

/* Segmented Rounded Tabs Bar (#prod-tabs) */
@media screen and (min-width: 768px) {
    #main_container.topm-no-sidebar #prod-tabs .ui-tabs-nav {
        background: #ffffff !important;
        border: 1px solid #dde8f3 !important;
        border-radius: 15px !important;
        padding: 5px !important;
        gap: 6px !important;
        box-shadow: none !important;
    }

    #main_container.topm-no-sidebar #prod-tabs .ui-tabs-nav li {
        border: 1px solid transparent !important;
        border-radius: 11px !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    #main_container.topm-no-sidebar #prod-tabs .ui-tabs-nav li:hover {
        background: #f2f7fc !important;
    }

    #main_container.topm-no-sidebar #prod-tabs .ui-tabs-nav li.ui-tabs-active,
    #main_container.topm-no-sidebar #prod-tabs .ui-tabs-nav li.ui-state-active {
        background: linear-gradient(135deg, #2378b4 0%, #3793cf 100%) !important;
        border-color: #2173ad !important;
        box-shadow: none !important;
    }
}

@media screen and (max-width: 767px) {
    /* Mobile Shadow Standardization: crisp borders, zero heavy drop shadows */
    html body #main_container.topm-no-sidebar .item-single .topm-pdp-hero,
    html body #main_container.topm-no-sidebar .item-single table.params-table.tm-params-modern,
    html body #main_container.topm-no-sidebar #prod-tabs #prod-tabs-1.tm-tabs1-split > .tm-pdp-desc-card,
    html body #main_container.topm-no-sidebar #prod-tabs #prod-tabs-1.tm-tabs1-split > .tm-pdp-tail-card,
    html body .tm-rich-desc-card,
    html body .topm-gallery__frame,
    html body .topm-gallery__nav,
    html body .topm-gallery .product-sale,
    html body .column-photo .item-image .product-sale,
    html body .column-information .item-single-buy a.-a2b-button.button,
    html body .column-information .item-single-buy a.buy-fast.button,
    html body .topm-sp-btn,
    html body .topm-sz-trigger,
    html body .tm-promo-pdp-copy-btn,
    html body .tm-promo-apply-btn,
    html body .items-list.display-grid .item-buy a,
    html body #main_container .items-list.display-grid .item-box,
    html body .items-list.display-grid .item-box {
        box-shadow: none !important;
    }

    .column-photo .item-single-price {
        top: 8px !important;
        right: 8px !important;
        padding: 5px 11px !important;
        border-radius: 12px !important;
        box-shadow: 0 1px 3px rgba(15, 38, 64, 0.05) !important;
    }

    .column-photo .item-single-price span.optionPrice,
    .column-photo .item-single-price #optionPrice {
        font-size: 19px !important;
    }

    .topm-gallery .product-sale,
    .column-photo .item-image .product-sale {
        top: 8px !important;
        left: 8px !important;
        padding: 4px 10px !important;
        font-size: 11px !important;
    }

    #main_container.topm-no-sidebar .item-single table.params-table.tm-params-modern tr {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    #main_container.topm-no-sidebar .item-single table.params-table.tm-params-modern td {
        width: 100% !important;
        float: none !important;
        height: auto !important;
        padding: 10px 11px !important;
        border-bottom: 1px solid #eaf1f8 !important;
        border-radius: 0 !important;
    }

    .tm-param-tile {
        width: 32px !important;
        height: 32px !important;
        border-radius: 9px !important;
    }

    .tm-param-tile svg {
        width: 16px !important;
        height: 16px !important;
    }

    .tm-stiff-track {
        gap: 2.5px !important;
    }

    .tm-stiff-track i {
        width: 16px !important;
        height: 5px !important;
    }

    .tm-stiff-popover {
        min-width: 205px !important;
        max-width: calc(100vw - 36px) !important;
        left: 0 !important;
    }

    .tm-stiff-pop-row {
        white-space: normal !important;
    }
}
