/*
 * CT_CATALOG_CARD_PATCH_01B
 * Final category cascade for card actions, compact prices, points modal and
 * product-detail-aligned quick view. Presentation only: no pricing/cart logic.
 */

/* Keep the two approved card actions visible and interactive. This final
 * category-scoped rule supersedes the obsolete 02B rule that hid .pro3-btn. */
html body#category #js-product-list .ajax_block_product .pro3-btn,
html body#category #js-product-list article.product-miniature .pro3-btn,
html body#category #js-product-list .product-miniature .pro3-btn {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 42px !important;
    max-width: none !important;
    max-height: none !important;
    margin: 12px auto 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: visible !important;
    pointer-events: auto !important;
    transform: none !important;
}

html body#category #js-product-list .ajax_block_product .pro3-btn::before,
html body#category #js-product-list .ajax_block_product .pro3-btn::after {
    content: none !important;
    display: none !important;
}

html body#category #js-product-list .ajax_block_product .pro3-btn .button-container.cart,
html body#category #js-product-list .ajax_block_product .pro3-btn .quickview {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #eee6dc !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-shadow: none !important;
    overflow: visible !important;
    pointer-events: auto !important;
    transform: none !important;
}

html body#category #js-product-list .ajax_block_product .pro3-btn .add-to-cart,
html body#category #js-product-list .ajax_block_product .pro3-btn .quick-view {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #111 !important;
    pointer-events: auto !important;
}

html body#category #js-product-list .ajax_block_product .pro3-btn .button-container.cart:hover,
html body#category #js-product-list .ajax_block_product .pro3-btn .quickview:hover,
html body#category #js-product-list .ajax_block_product .pro3-btn .button-container.cart:focus-within,
html body#category #js-product-list .ajax_block_product .pro3-btn .quickview:focus-within {
    border-color: #111 !important;
}

/* One compact line for every discounted presenter branch. */
html body#category #js-product-list .ajax_block_product
.product-price-and-shipping.ct-catalog-price-native-02d-r3:is(
    [data-ct-price-branch-02d-r3="native"],
    [data-ct-price-branch-02d-r3="aphelper"]
) {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    gap: 0 6px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 22px !important;
    max-height: none !important;
    margin: 2px 0 4px !important;
    padding: 0 !important;
    line-height: 22px !important;
    white-space: nowrap !important;
    overflow: visible !important;
}

html body#category #js-product-list .ajax_block_product
.product-price-and-shipping.ct-catalog-price-native-02d-r3:is(
    [data-ct-price-branch-02d-r3="native"],
    [data-ct-price-branch-02d-r3="aphelper"]
) > .regular-price,
html body#category #js-product-list .ajax_block_product
.product-price-and-shipping.ct-catalog-price-native-02d-r3:is(
    [data-ct-price-branch-02d-r3="native"],
    [data-ct-price-branch-02d-r3="aphelper"]
) > .discount-percentage,
html body#category #js-product-list .ajax_block_product
.product-price-and-shipping.ct-catalog-price-native-02d-r3:is(
    [data-ct-price-branch-02d-r3="native"],
    [data-ct-price-branch-02d-r3="aphelper"]
) > .discount-amount,
html body#category #js-product-list .ajax_block_product
.product-price-and-shipping.ct-catalog-price-native-02d-r3:is(
    [data-ct-price-branch-02d-r3="native"],
    [data-ct-price-branch-02d-r3="aphelper"]
) > .current-price {
    position: static !important;
    float: none !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: baseline !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 14px !important;
    line-height: 22px !important;
    white-space: nowrap !important;
    transform: none !important;
}

html body#category #js-product-list .ajax_block_product
.product-price-and-shipping.ct-catalog-price-native-02d-r3 > .regular-price {
    color: #777 !important;
    font-weight: 400 !important;
    text-decoration: line-through 1px solid !important;
}

html body#category #js-product-list .ajax_block_product
.product-price-and-shipping.ct-catalog-price-native-02d-r3 > .discount-product {
    color: #202020 !important;
    font-weight: 500 !important;
}

html body#category #js-product-list .ajax_block_product
.product-price-and-shipping.ct-catalog-price-native-02d-r3 > .current-price {
    color: #d20a2e !important;
    font-weight: 700 !important;
}

/* Privilege information is a real overlay, not a flow block at document end. */
.ct-catalog-eloy-modal-03c[hidden] {
    display: none !important;
}

.ct-catalog-eloy-modal-03c {
    position: fixed !important;
    z-index: 2147482500 !important;
    inset: 0 !important;
    display: grid !important;
    place-items: center !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 24px !important;
    overflow: hidden !important;
}

.ct-catalog-eloy-modal-03c__backdrop {
    position: absolute !important;
    z-index: 0 !important;
    inset: 0 !important;
    display: block !important;
    background: rgba(17, 17, 17, 0.58) !important;
}

.ct-catalog-eloy-modal-03c__dialog {
    position: relative !important;
    z-index: 1 !important;
    width: min(680px, calc(100vw - 48px)) !important;
    max-height: calc(100vh - 48px) !important;
    margin: 0 !important;
    padding: 42px 38px 32px !important;
    overflow: auto !important;
    border: 1px solid #e8dfd4 !important;
    border-top: 3px solid #b48a45 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #111 !important;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22) !important;
}

.ct-catalog-eloy-modal-03c__close {
    position: absolute !important;
    top: 10px !important;
    right: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #111 !important;
    font-size: 28px !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

.ct-catalog-eloy-modal-03c__title {
    margin: 0 0 18px !important;
    color: #111 !important;
    font-family: "Montserrat", Arial, sans-serif !important;
    font-size: 21px !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    line-height: 1.25 !important;
    text-transform: uppercase !important;
}

.ct-catalog-eloy-modal-03c__body p {
    margin: 0 0 14px !important;
    color: #36322e !important;
    font-family: "Montserrat", Arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
}

.ct-catalog-eloy-modal-03c__cta {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 42px !important;
    padding: 0 18px !important;
    border: 1px solid #111 !important;
    background: #111 !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
}

/* Quick view follows the same hierarchy and visual language as the current
 * product detail while remaining a compact modal component. */
.ct-product-quickview-01b .modal-dialog {
    width: calc(100% - 48px) !important;
    max-width: 1120px !important;
    margin: 24px auto !important;
}

.ct-product-quickview-01b .modal-content {
    min-height: 0 !important;
    max-height: calc(100vh - 48px) !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.24) !important;
}

.ct-product-quickview-01b .modal-header {
    position: absolute !important;
    z-index: 20 !important;
    top: 0 !important;
    right: 0 !important;
    width: 52px !important;
    height: 52px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.ct-product-quickview-01b .modal-header .close {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 52px !important;
    height: 52px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #111 !important;
    font-size: 30px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    opacity: 1 !important;
}

.ct-product-quickview-01b .modal-body {
    min-height: 0 !important;
    max-height: calc(100vh - 116px) !important;
    padding: 34px 34px 24px !important;
    overflow: auto !important;
}

.ct-product-quickview-01b__layout {
    display: grid !important;
    grid-template-columns: minmax(0, 56%) minmax(320px, 44%) !important;
    gap: 38px !important;
    margin: 0 !important;
}

.ct-product-quickview-01b__gallery,
.ct-product-quickview-01b__summary {
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
}

.ct-product-quickview-01b__gallery {
    min-height: 560px !important;
    border: 1px solid #eee8df !important;
    background: #fff !important;
}

.ct-product-quickview-01b__gallery .images-container {
    position: relative !important;
    min-height: 560px !important;
    padding: 0 0 0 88px !important;
    text-align: center !important;
}

.ct-product-quickview-01b__gallery .product-cover {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 560px !important;
    padding: 20px !important;
}

.ct-product-quickview-01b__gallery .product-cover img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 510px !important;
    margin: 0 auto !important;
    object-fit: contain !important;
}

.ct-product-quickview-01b__gallery .product-thumb-images {
    position: absolute !important;
    z-index: 4 !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 88px !important;
    padding: 0 !important;
    overflow: auto !important;
    border-right: 1px solid #eee8df !important;
    background: #fff !important;
}

.ct-product-quickview-01b__gallery .thumb-container {
    flex: 0 0 88px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 88px !important;
    height: 88px !important;
    padding: 8px !important;
    border-bottom: 1px solid #eee8df !important;
    background: #fff !important;
}

.ct-product-quickview-01b__gallery .thumb-container img {
    width: 70px !important;
    height: 70px !important;
    object-fit: contain !important;
}

.ct-product-quickview-01b__summary {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 8px 10px 0 0 !important;
}

.ct-product-quickview-01b__brand {
    margin: 0 0 5px !important;
    color: #111 !important;
    font-family: "Montserrat", Arial, sans-serif !important;
    font-size: 27px !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em !important;
    line-height: 1.12 !important;
    text-transform: uppercase !important;
}

.ct-product-quickview-01b__name {
    margin: 0 0 6px !important;
    color: #171717 !important;
    font-family: "Montserrat", Arial, sans-serif !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    letter-spacing: 0.08em !important;
    line-height: 1.3 !important;
    text-transform: uppercase !important;
}

.ct-product-quickview-01b__reference {
    margin: 0 0 18px !important;
    color: #666 !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    letter-spacing: 0.06em !important;
    line-height: 1.4 !important;
}

.ct-product-quickview-01b__summary .product-prices {
    display: flex !important;
    align-items: baseline !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin: 0 0 16px !important;
}

.ct-product-quickview-01b__summary .product-discount,
.ct-product-quickview-01b__summary .product-price {
    display: inline-flex !important;
    align-items: baseline !important;
    margin: 0 !important;
}

.ct-product-quickview-01b__summary .current-price span,
.ct-product-quickview-01b__summary .product-price {
    color: #d20a2e !important;
    font-size: 20px !important;
    font-weight: 700 !important;
}

.ct-product-quickview-01b__description {
    margin: 0 0 22px !important;
    color: #5c5752 !important;
    font-size: 12px !important;
    letter-spacing: 0.08em !important;
    line-height: 1.55 !important;
}

.ct-product-quickview-01b__summary .product-variants {
    margin: 0 0 16px !important;
}

.ct-product-quickview-01b__summary .product-variants-item {
    display: grid !important;
    grid-template-columns: 76px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 0 14px !important;
}

.ct-product-quickview-01b__summary .product-variants-item > .control-label {
    margin: 0 !important;
    color: #111 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
}

.ct-product-quickview-01b__summary .product-variants-item ul {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ct-product-quickview-01b__summary .product-variants-item .radio-label {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 42px !important;
    height: 40px !important;
    padding: 0 10px !important;
    border: 1px solid #e8dfd4 !important;
    background: #fff !important;
    color: #111 !important;
    font-size: 12px !important;
}

.ct-product-quickview-01b__summary .product-variants-item input:checked + .radio-label {
    border-color: #111 !important;
    box-shadow: inset 0 0 0 1px #111 !important;
}

.ct-product-quickview-01b__summary .product-quantity,
.ct-product-quickview-01b__summary .p-cartwapper {
    display: flex !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
}

.ct-product-quickview-01b__summary .qty {
    flex: 0 0 78px !important;
}

.ct-product-quickview-01b__summary .qty .control-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
}

.ct-product-quickview-01b__summary .qty input,
.ct-product-quickview-01b__summary .bootstrap-touchspin {
    width: 78px !important;
    min-height: 52px !important;
    border-color: #e8dfd4 !important;
    text-align: center !important;
}

.ct-product-quickview-01b__summary .add {
    flex: 1 1 auto !important;
}

.ct-product-quickview-01b__summary .add-to-cart {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 52px !important;
    padding: 0 22px !important;
    border: 1px solid #111 !important;
    border-radius: 0 !important;
    background: #111 !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

.ct-product-quickview-01b__summary .leo-compare-wishlist-button {
    flex: 0 0 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 52px !important;
    border: 1px solid #e8dfd4 !important;
}

.ct-product-quickview-01b__full-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    margin: 14px 0 0 !important;
    border: 1px solid #b48a45 !important;
    color: #8b6833 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
}

.ct-product-quickview-01b .modal-footer {
    min-height: 54px !important;
    padding: 0 34px 18px !important;
    border: 0 !important;
    background: #fff !important;
}

.ct-product-quickview-01b .product-additional-info {
    width: 100% !important;
    border-top: 1px solid #eee8df !important;
}

@media (max-width: 767px) {
    html body#category #js-product-list .ajax_block_product .pro3-btn {
        gap: 10px !important;
        min-height: 38px !important;
        margin-top: 10px !important;
    }

    html body#category #js-product-list .ajax_block_product .pro3-btn .button-container.cart,
    html body#category #js-product-list .ajax_block_product .pro3-btn .quickview {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        max-width: 38px !important;
        max-height: 38px !important;
    }

    html body#category #js-product-list .ajax_block_product
    .product-price-and-shipping.ct-catalog-price-native-02d-r3:is(
        [data-ct-price-branch-02d-r3="native"],
        [data-ct-price-branch-02d-r3="aphelper"]
    ) {
        gap: 0 4px !important;
    }

    html body#category #js-product-list .ajax_block_product
    .product-price-and-shipping.ct-catalog-price-native-02d-r3:is(
        [data-ct-price-branch-02d-r3="native"],
        [data-ct-price-branch-02d-r3="aphelper"]
    ) > span {
        font-size: 11px !important;
    }

    .ct-catalog-eloy-modal-03c {
        align-items: end !important;
        padding: 10px !important;
    }

    .ct-catalog-eloy-modal-03c__dialog {
        width: 100% !important;
        max-height: calc(100vh - 20px) !important;
        padding: 38px 20px 22px !important;
    }

    .ct-catalog-eloy-modal-03c__title {
        font-size: 18px !important;
    }

    .ct-catalog-eloy-modal-03c__body p {
        font-size: 13px !important;
        line-height: 1.55 !important;
    }

    .ct-product-quickview-01b .modal-dialog {
        width: calc(100% - 20px) !important;
        margin: 10px auto !important;
    }

    .ct-product-quickview-01b .modal-content {
        max-height: calc(100vh - 20px) !important;
    }

    .ct-product-quickview-01b .modal-body {
        max-height: calc(100vh - 84px) !important;
        padding: 18px 18px 22px !important;
    }

    .ct-product-quickview-01b__layout {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 22px !important;
    }

    .ct-product-quickview-01b__gallery {
        min-height: 330px !important;
    }

    .ct-product-quickview-01b__gallery .images-container,
    .ct-product-quickview-01b__gallery .product-cover {
        min-height: 330px !important;
    }

    .ct-product-quickview-01b__gallery .images-container {
        padding-left: 64px !important;
    }

    .ct-product-quickview-01b__gallery .product-thumb-images {
        width: 64px !important;
    }

    .ct-product-quickview-01b__gallery .thumb-container {
        flex-basis: 64px !important;
        width: 64px !important;
        height: 64px !important;
        padding: 5px !important;
    }

    .ct-product-quickview-01b__gallery .thumb-container img {
        width: 52px !important;
        height: 52px !important;
    }

    .ct-product-quickview-01b__gallery .product-cover img {
        max-height: 300px !important;
    }

    .ct-product-quickview-01b__brand {
        font-size: 22px !important;
    }

    .ct-product-quickview-01b__name {
        font-size: 15px !important;
    }

    .ct-product-quickview-01b__summary .product-quantity,
    .ct-product-quickview-01b__summary .p-cartwapper {
        flex-wrap: wrap !important;
    }

    .ct-product-quickview-01b__summary .add {
        flex: 1 1 calc(100% - 88px) !important;
    }

    .ct-product-quickview-01b .modal-footer {
        padding: 0 18px 14px !important;
    }
}
