.on4-pdp-mobile,
.on4-pdp .on4-pdp-options > summary,
.on4-pdp-buy-bar,
.on4-pdp-dialog:not([open]),
#on4-pdp-complements-slot:empty {
    display: none;
}

.on4-pdp-options { border: 0; }
.on4-pdp .on4tech-product-gallery a[data-fancybox-type="image"] { cursor: zoom-in; }

.on4-pdp-dialog[open] {
    position: fixed;
    inset: 0;
    width: min(550px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100% - 32px);
    margin: auto;
    padding: 0 18px 18px;
    border: 0;
    border-radius: 12px;
    color: #202020;
    background: #fff;
    overflow-y: auto;
}

.on4-pdp-dialog::backdrop { background: rgba(20, 20, 20, .52); }

.on4-pdp-dialog-header {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    background: #fff;
}

.on4-pdp-dialog-header h2 { margin: 0; font-size: 1.85rem; }

.on4-pdp-dialog-header button {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 7px;
    background: #f5f3f0;
    font-size: 24px;
}

@media (max-width: 767px) {
    .on4-pdp-mobile { display: block; }
    .on4-pdp-desktop { display: none !important; }

    .on4-pdp .on4tech-product-gallery .product-gallery li.item {
        min-height: clamp(155px, 56vw, 270px);
    }

    .on4-pdp .on4tech-product-gallery .product-gallery li.item img {
        max-height: clamp(155px, 56vw, 270px);
    }

    .on4-pdp .on4tech-product-gallery .lSPager li { height: 48px; }

    .on4-pdp .product-title {
        margin: 0 0 5px;
        font-size: clamp(21px, 5.4vw, 28px);
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .on4-pdp .product-info-header {
        padding: 0 !important;
        margin: 8px 0 9px !important;
    }

    .on4-pdp .our_price_display { margin: 0; }
    .on4-pdp .product-detalhe-price { color: #ad4708; }

    .on4-pdp .on4-pdp-availability {
        margin: 3px 0 8px;
        font-size: 1.35rem;
        line-height: 1.4;
    }

    .on4-pdp .on4-pdp-availability strong { color: #216a43; }

    .on4-pdp .on4-pdp-availability .on4-pdp-no-stock { color: #4d5156; }

    .on4-pdp .on4-pdp-actions {
        padding: 0;
        margin-bottom: 12px;
    }

    .on4-pdp .on4-pdp-actions .purchase-box {
        width: 100%;
        margin: 0;
    }

    .on4-pdp .on4-pdp-actions .qty-line { margin-bottom: 8px; }

    .on4-pdp .on4-pdp-actions .qty-line label {
        margin: 0;
        font-size: 1.35rem !important;
    }

    .on4-pdp .on4-pdp-actions .qty-wrapper {
        width: 133px;
        height: 44px;
    }

    .on4-pdp .on4-pdp-actions .qty-btn { width: 44px; }

    .on4-pdp .on4-pdp-actions .on4-pdp-buy-cell { padding: 0; }

    .on4-pdp .on4-pdp-actions .on4-pdp-buy,
    .on4-pdp-buy-bar button {
        min-height: 48px;
        border: 0;
        border-radius: 7px;
        background: #f37021;
        color: #171717;
        font-size: 1.45rem;
        line-height: 1.2;
        font-weight: 700;
    }

    .on4-pdp .on4-pdp-actions .on4-pdp-buy {
        display: block;
        width: 100%;
        margin: 0;
    }

    .on4-pdp .on4-pdp-trust {
        margin-top: 7px !important;
        color: #555;
        font-size: 1.2rem;
        text-align: center;
    }

    .on4-pdp .on4-pdp-options {
        margin: 8px 0 12px;
        padding: 0 12px;
        border: 1px solid #e5e3df;
        border-radius: 8px;
    }

    .on4-pdp .on4-pdp-options > summary {
        display: list-item;
        min-height: 44px;
        padding: 11px 0;
        font-weight: 600;
        cursor: pointer;
    }

    .on4-pdp .on4-pdp-options[open] { padding-bottom: 10px; }

    .on4-pdp .on4-pdp-wishlist { margin-top: 10px !important; }

    .on4-pdp-key-specs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        margin: 13px 0 4px;
    }

    .on4-pdp-key-specs > div {
        padding: 8px 10px;
        border: 1px solid #e5e3df;
        border-radius: 7px;
        background: #faf9f7;
    }

    .on4-pdp-key-specs dt { color: #505050; font-size: 1.15rem; }
    .on4-pdp-key-specs dd {
        margin: 2px 0 0;
        color: #1e1e1e;
        font-size: 1.3rem;
        font-weight: 600;
        overflow-wrap: anywhere;
    }

    .on4-pdp-specs-link {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        color: #8b3a17;
        font-weight: 600;
        text-decoration: underline;
    }

    .on4-pdp-in-box {
        margin-top: 12px;
        padding: 12px 14px;
        border: 1px solid #e5e3df;
        border-radius: 8px;
    }

    .on4-pdp-in-box h2 { margin: 0 0 5px; font-size: 1.6rem; }
    .on4-pdp-in-box ul { margin: 0; padding-left: 18px; }

    #on4-pdp-complements-slot:not(:empty) { width: 100%; }

    .on4-pdp-buy-bar:not([hidden]) {
        position: fixed;
        inset: auto 0 0;
        z-index: 1030;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        padding: 8px 15px calc(8px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid #e7e4e0;
        background: #fff;
        box-shadow: 0 -4px 14px rgba(0, 0, 0, .08);
    }

    .on4-pdp-buy-bar strong { display: block; font-size: 1.8rem; line-height: 1.1; }
    .on4-pdp-buy-bar small { display: block; margin-top: 3px; color: #555; }
    .on4-pdp-buy-bar button { padding: 8px 12px; }

    body.on4-pdp-bar-visible .sticky-footer { visibility: hidden; }
    body.mmenu-active .on4-pdp-buy-bar:not([hidden]),
    body.modal-open .on4-pdp-buy-bar:not([hidden]),
    html.fancybox-lock .on4-pdp-buy-bar:not([hidden]),
    body:has(.cart-dropdown.opened, .fancybox-overlay, .on4-pdp-dialog[open], .on4-purchase-info[open], #cookie-consent-banner, #cookie-consent-panel.show) .on4-pdp-buy-bar:not([hidden]) {
        display: none;
    }

    .on4-pdp-dialog[open] {
        inset: auto 0 0;
        width: 100%;
        max-height: calc(100% - 28px);
        margin: 0;
        padding: 0 15px calc(15px + env(safe-area-inset-bottom, 0px));
        border-radius: 14px 14px 0 0;
    }

    .on4-pdp-specs-search label { display: block; margin: 3px 0 4px; }
    .on4-pdp-specs-search input {
        width: 100%;
        min-height: 44px;
        padding: 8px 10px;
        border: 1px solid #b8b4af;
        border-radius: 7px;
        font-size: 16px;
    }

    .on4-pdp-specs-list { margin: 9px 0 0; padding: 0; list-style: none; }
    .on4-pdp-specs-list li { padding: 9px 0; border-bottom: 1px solid #ece8e4; overflow-wrap: anywhere; }
    .on4-pdp-specs-empty { padding-top: 12px; }
}

.on4-pdp-recommendations .swiper-wrapper {
    align-items: stretch;
}

.on4-pdp-recommendations .swiper-slide {
    display: flex;
    height: auto;
}

.on4-pdp-recommendations .product-wrap {
    display: flex;
    width: 100%;
}

.on4-pdp-recommendations .swiper-slide .product {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.on4-pdp-recommendations .product-details {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.on4-pdp-recommendations .on4-related-card-price {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    gap: .6rem;
    width: 100%;
    margin-top: auto;
    padding-top: .4rem;
    text-align: left;
}

.on4-pdp-recommendations .on4-related-card-price .product-price {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
}

.on4-pdp .sequra-product-widget-wrap {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin: 10px 0 15px;
    padding: 12px 14px;
    border: 1px solid #d2ebe5;
    border-radius: 12px;
    background: #f3fbf9;
    clear: both;
}

.on4-pdp-sequra-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 10px;
    background: #dff4ee;
    color: #12695d;
    font-size: 17px;
    line-height: 1;
}

.on4-pdp-sequra-content {
    min-width: 0;
}

.on4-pdp-sequra-title {
    color: #18343c;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.on4-pdp-sequra-title strong {
    color: #12695d;
    font-weight: 800;
}

.on4-pdp-sequra-content .sequra-promotion-widget:not(:empty) {
    margin-top: 4px;
}


@media (max-width: 359px) {
    .on4-pdp-recommendations .product-wrap {
        padding-inline: 5px;
    }

    .on4-pdp-recommendations .on4-related-card-price .product-price,
    .on4-pdp-recommendations .on4-related-card-price .product-price .new-price {
        font-size: 13px;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}
