/*
 * CT_PRODUCT_ELOY_PRIVILEGE_01B_COUNTDOWN_REMOVE_CARD_SAFE
 * CT_PRODUCT_ELOY_PRIVILEGE_01C_R2_NEW_ASSET_DIRECT_INSERT_SAFE
 * CT_PRODUCT_ELOY_PRIVILEGE_01D_POSITION_SPACING_SAFE
 * CT_PRODUCT_ELOY_PRIVILEGE_01E_BRAND_TITLE_REFERENCE_CLEANUP_SAFE
 * CT_PRODUCT_DETAIL_02A_FINAL_MOCKUP_CART_READY_SAFE
 */

/*
 * Il placeholder Leo viene nascosto già al caricamento CSS,
 * impedendo il flicker del countdown prima della rimozione JS.
 */
html body#product .leo-more-cdown {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

/*
 * Nasconde eventuali card legacy ricreate da runtime storici.
 */
html body#product
[data-ct-product-eloy-01b-legacy-hidden="1"],

html body#product
[data-ct-product-eloy-01b-request-hidden="1"] {
    display: none !important;
}

html body#product
#ct-product-eloy-privilege-01b {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;

    width: 100%;
    min-height: 78px;

    margin: 10px 0 12px;
    padding: 10px 14px;

    border: 1px solid #eee8df;
    background:
        linear-gradient(
            90deg,
            #f8f5ef 0%,
            #fbfaf7 58%,
            #f6f2eb 100%
        );

    color: #151515;
    box-sizing: border-box;
}

/*
 * 01D: la stessa card viene inserita nel form prodotto,
 * subito prima del blocco quantità/carrello.
 */
html body#product
form#add-to-cart-or-refresh >
#ct-product-eloy-privilege-01b {
    align-self: stretch;
}

html body#product
.ct-product-eloy-privilege-01b__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    border: 2px solid rgba(188, 145, 76, 0.28);
    border-radius: 50%;

    color: #b88943;
    background: rgba(255, 255, 255, 0.5);
}

html body#product
.ct-product-eloy-privilege-01b__icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

html body#product
.ct-product-eloy-privilege-01b__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

html body#product
.ct-product-eloy-privilege-01b__earn {
    display: block;

    margin: 0 0 5px;

    color: #171717;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

html body#product
.ct-product-eloy-privilege-01b__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 8px;

    color: #444;

    font-size: 11px;
    font-weight: 400;
    line-height: 1.35;
}

html body#product
.ct-product-eloy-privilege-01b__meta a {
    color: inherit;
    text-decoration: none;
}

html body#product
.ct-product-eloy-privilege-01b__meta a:hover,

html body#product
.ct-product-eloy-privilege-01b__meta a:focus {
    color: #9d7133;
    text-decoration: underline;
}

html body#product
.ct-product-eloy-privilege-01b__divider {
    color: #b88943;
}

html body#product
.ct-product-eloy-privilege-01b__cta {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;

    min-width: 155px;

    color: #202020;

    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.02em;
    text-decoration: none;
    white-space: nowrap;
}

html body#product
.ct-product-eloy-privilege-01b__cta b {
    color: #111;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}

html body#product
.ct-product-eloy-privilege-01b__cta:hover,

html body#product
.ct-product-eloy-privilege-01b__cta:focus {
    color: #9d7133;
    text-decoration: none;
}

@media (max-width: 1199px) {
    html body#product
    #ct-product-eloy-privilege-01b {
        grid-template-columns: 50px minmax(0, 1fr);
        gap: 11px;
    }

    html body#product
    .ct-product-eloy-privilege-01b__cta {
        grid-column: 2;
        justify-content: flex-start;
        min-width: 0;
    }
}

@media (max-width: 575px) {
    html body#product
    #ct-product-eloy-privilege-01b {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 10px;

        margin: 10px 0 10px;
        padding: 10px;
    }

    html body#product
    .ct-product-eloy-privilege-01b__icon {
        width: 38px;
        height: 38px;
    }

    html body#product
    .ct-product-eloy-privilege-01b__icon svg {
        width: 22px;
        height: 22px;
    }

    html body#product
    .ct-product-eloy-privilege-01b__earn {
        font-size: 12px;
    }

    html body#product
    .ct-product-eloy-privilege-01b__meta {
        font-size: 10px;
    }

    html body#product
    .ct-product-eloy-privilege-01b__cta {
        font-size: 9px;
    }
}

/*
 * CT_PRODUCT_ELOY_PRIVILEGE_01E_BRAND_TITLE_REFERENCE_CLEANUP_SAFE
 * Gerarchia testuale scheda prodotto:
 * brand primario, nome prodotto secondario, riferimento consolidato.
 */
html body#product
[data-ct-product-01e-hidden] {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

html body#product
[data-ct-product-text-hierarchy-01e="active"]
#ct-product-brand-01e {
    display: block;
    margin: 0 0 7px;
    padding: 0;

    color: #111;

    font-family: inherit;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: 0;
    text-transform: uppercase;
}

html body#product
[data-ct-product-text-hierarchy-01e="active"]
h1.product-detail-name {
    margin: 0 0 7px !important;
    padding: 0 !important;

    color: #222;

    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

html body#product
[data-ct-product-text-hierarchy-01e="active"]
#ct-product-reference-01e {
    display: block;
    margin: 0 0 18px;
    padding: 0;

    color: #555;

    font-size: 11px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0.06em;
}

@media (max-width: 767px) {
    html body#product
    [data-ct-product-text-hierarchy-01e="active"]
    #ct-product-brand-01e {
        font-size: 26px;
    }

    html body#product
    [data-ct-product-text-hierarchy-01e="active"]
    h1.product-detail-name {
        font-size: 13px !important;
    }
}


/*
 * CT_PRODUCT_DETAIL_02A_FINAL_MOCKUP_CART_READY_SAFE
 * Restyling conclusivo della colonna prodotto senza alterare
 * eventi, endpoint o runtime funzionali di carrello/checkout.
 */
html body#product
[data-ct-product-detail-02a="active"]
#ct-product-brand-01e {
    margin: 0 0 5px;
    color: #111;
    font-family: "Montserrat", Arial, sans-serif !important;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

html body#product
[data-ct-product-detail-02a="active"]
h1.product-detail-name {
    margin: 0 0 5px !important;
    color: #171717;
    font-family: "Montserrat", Arial, sans-serif !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase;
}

html body#product
[data-ct-product-detail-02a="active"]
#ct-product-reference-01e {
    margin: 0 0 18px;
    color: #565656;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0.055em;
}

html body#product
[data-ct-product-02a-price-native-hidden="1"] {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

html body#product
[data-ct-product-detail-02a="active"]
.product-prices {
    margin: 0 0 22px !important;
}

html body#product
#ct-product-price-row-02a {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px 12px;
    min-height: 30px;
    margin: 0;
    padding: 0;
    font-family: "Montserrat", Arial, sans-serif;
}

html body#product
.ct-product-price-row-02a__final {
    color: #111;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

html body#product
.ct-product-price-row-02a__regular {
    color: #8d8d8d;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

html body#product
.ct-product-price-row-02a__discount {
    color: #d20a2e;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.02em;
}

html body#product
[data-ct-product-detail-02a="active"]
.product-prices .tax-shipping-delivery-label {
    margin: 4px 0 0 !important;
    color: #4e4e4e;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 9px !important;
    line-height: 1.45 !important;
}

html body#product
[data-ct-product-detail-02a="active"]
.product-actions {
    padding-top: 4px !important;
}

html body#product
[data-ct-product-detail-02a="active"]
.product-variants[data-ct-product-variants-02a="active"] {
    margin: 0 0 8px !important;
    padding: 0 !important;
}

html body#product
[data-ct-product-detail-02a="active"]
.product-variants-item[data-ct-product-variant-02a] {
    display: block !important;
    width: 100%;
    min-height: 0;
    margin: 0 0 16px !important;
    padding: 0 !important;
}

html body#product
[data-ct-product-detail-02a="active"]
.product-variants-item[data-ct-product-variant-02a]
.control-label {
    display: block !important;
    width: 100% !important;
    margin: 0 0 9px !important;
    color: #151515;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    letter-spacing: 0.07em !important;
    text-transform: uppercase;
}

html body#product
[data-ct-product-detail-02a="active"]
.product-variants-item[data-ct-product-variant-02a="color"]
label {
    margin: 0 8px 0 0 !important;
}

html body#product
[data-ct-product-detail-02a="active"]
.product-variants-item[data-ct-product-variant-02a="color"]
.color,
html body#product
[data-ct-product-detail-02a="active"]
.product-variants-item[data-ct-product-variant-02a="color"]
.color-texture {
    width: 44px !important;
    height: 52px !important;
    min-width: 44px;
    border: 1px solid #e6e1da !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    box-shadow: none !important;
}

html body#product
[data-ct-product-detail-02a="active"]
.product-variants-item[data-ct-product-variant-02a="size"]
label {
    margin: 0 7px 0 0 !important;
}

html body#product
[data-ct-product-detail-02a="active"]
.product-variants-item[data-ct-product-variant-02a="size"]
.radio-label {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 38px !important;
    min-width: 40px;
    padding: 0 !important;
    border: 1px solid #dedede;
    background: #fff;
    color: #161616;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
}

html body#product
[data-ct-product-detail-02a="active"]
.product-variants-item[data-ct-product-variant-02a="size"]
input.input-radio:checked + .radio-label,
html body#product
[data-ct-product-detail-02a="active"]
.product-variants-item[data-ct-product-variant-02a="size"]
input.input-radio:checked ~ .radio-label {
    border-color: #111 !important;
    box-shadow: inset 0 0 0 1px #111;
}

html body#product
#ct-product-services-02a {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    width: 100%;
    margin: 4px 0 10px;
    padding: 12px 0;
    border-top: 1px solid #e6e6e6;
    border-bottom: 1px solid #e6e6e6;
    box-sizing: border-box;
}

html body#product
.ct-product-services-02a__item {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 0 12px;
    border-right: 1px solid #ececec;
}

html body#product
.ct-product-services-02a__item:first-child {
    padding-left: 4px;
}

html body#product
.ct-product-services-02a__item:last-child {
    padding-right: 4px;
    border-right: 0;
}

html body#product
.ct-product-services-02a__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 29px;
    width: 29px;
    height: 29px;
    margin-right: 8px;
    color: #111;
}

html body#product
.ct-product-services-02a__icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.35;
    stroke-linecap: round;
    stroke-linejoin: round;
}

html body#product
.ct-product-services-02a__copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    font-family: "Montserrat", Arial, sans-serif;
}

html body#product
.ct-product-services-02a__copy strong {
    overflow: hidden;
    color: #181818;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html body#product
.ct-product-services-02a__copy small {
    overflow: hidden;
    margin-top: 2px;
    color: #666;
    font-size: 8px;
    font-weight: 400;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html body#product
[data-ct-product-detail-02a="active"]
#ct-product-eloy-privilege-01b {
    margin-top: 0;
}

html body#product
[data-ct-product-cart-grid-02a="active"] {
    display: grid !important;
    grid-template-columns: 92px minmax(0, 1fr) 52px;
    align-items: start;
    gap: 12px;
    width: 100%;
    height: auto !important;
    min-height: 54px;
}

html body#product
[data-ct-product-cart-role-02a="quantity"] {
    grid-column: 1;
    width: 92px !important;
    max-width: 92px !important;
    margin: 0 !important;
}

html body#product
[data-ct-product-cart-role-02a="add"] {
    grid-column: 2;
    width: 100% !important;
    margin: 0 !important;
}

html body#product
[data-ct-product-cart-role-02a="wishlist"] {
    grid-column: 3;
    width: 52px !important;
    min-width: 52px !important;
    height: 54px !important;
    margin: 0 !important;
}

html body#product
[data-ct-product-add-button-02a="active"] {
    width: 100% !important;
    height: 54px !important;
    min-height: 54px;
    border: 1px solid #050505 !important;
    background: #050505 !important;
    color: #fff !important;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 52px !important;
    letter-spacing: 0.08em !important;
}

html body#product
[data-ct-product-ask-02a="active"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
    float: none !important;
    width: 100% !important;
    min-height: 44px;
    margin: 14px 0 15px !important;
    padding: 10px 14px !important;
    border: 1px solid #b88943 !important;
    background: #fff !important;
    color: #9b6d2c !important;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 10px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    letter-spacing: 0.02em;
}

@media (max-width: 1199px) {
    html body#product
    #ct-product-services-02a {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px 0;
    }

    html body#product
    .ct-product-services-02a__item,
    html body#product
    .ct-product-services-02a__item:first-child,
    html body#product
    .ct-product-services-02a__item:last-child {
        padding: 0 4px;
        border-right: 0;
    }

    html body#product
    .ct-product-services-02a__copy strong,
    html body#product
    .ct-product-services-02a__copy small {
        white-space: normal;
    }
}

@media (max-width: 767px) {
    html body#product
    [data-ct-product-detail-02a="active"]
    #ct-product-brand-01e {
        font-size: 24px;
    }

    html body#product
    [data-ct-product-detail-02a="active"]
    h1.product-detail-name {
        font-size: 16px !important;
    }

    html body#product
    .ct-product-price-row-02a__final {
        font-size: 21px;
    }

    html body#product
    [data-ct-product-cart-grid-02a="active"] {
        grid-template-columns: 88px minmax(0, 1fr) 48px;
        gap: 8px;
    }

    html body#product
    [data-ct-product-cart-role-02a="quantity"] {
        width: 88px !important;
        max-width: 88px !important;
    }

    html body#product
    [data-ct-product-cart-role-02a="wishlist"] {
        width: 48px !important;
        min-width: 48px !important;
    }
}

@media (max-width: 479px) {
    html body#product
    [data-ct-product-cart-grid-02a="active"] {
        grid-template-columns: 86px minmax(0, 1fr) 46px;
        gap: 6px;
    }

    html body#product
    [data-ct-product-cart-role-02a="quantity"] {
        width: 86px !important;
        max-width: 86px !important;
    }

    html body#product
    [data-ct-product-cart-role-02a="wishlist"] {
        width: 46px !important;
        min-width: 46px !important;
    }

    html body#product
    [data-ct-product-add-button-02a="active"] {
        font-size: 9px !important;
        letter-spacing: 0.04em !important;
    }
}
