.vbc-zoomlens-cover {
    position: relative;
    overflow: visible;
}

.vbc-zoomlens-lens,
.vbc-zoomlens-window {
    background-repeat: no-repeat;
    box-sizing: border-box;
    display: none;
    pointer-events: none;
    z-index: 50;
}

.vbc-zoomlens-lens {
    border-style: solid;
    left: 0;
    position: absolute;
    top: 0;
}

.vbc-zoomlens-window {
    background-color: #fff;
    border-style: solid;
    position: absolute;
}

.vbc-zoomlens-window-right {
    left: calc(100% + 16px);
    top: 0;
}

.vbc-zoomlens-window-on-image {
    left: 0;
    top: 0;
}

.vbc-zoomlens-lens-zoom {
    background-color: #fff;
}

.vbc-zoomlens-lens.is-visible,
.vbc-zoomlens-window.is-visible {
    display: block;
}

@media (max-width: 767px) {

    .vbc-zoomlens-lens,
    .vbc-zoomlens-window {
        display: none !important;
    }
}

.vbc-zoomlens-cover-slide-body {
    position: relative;
    padding: 0;
}

.vbc-zoomlens-cover-slide-body figure {
    margin: 0;
}

.vbc-zoomlens-cover-slide,
.vbc-zoomlens-cover-close,
.vbc-zoomlens-cover-counter {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.vbc-zoomlens-cover-slide {
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    height: 50px;
    justify-content: center;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    z-index: 1065;
    padding: 0;
    transition: background-color 0.2s, transform 0.2s;
}

.vbc-zoomlens-cover-slide::before {
    background-position: center;
    background-repeat: no-repeat;
    background-size: 28px 28px;
    content: "";
    display: block;
    height: 28px;
    width: 28px;
    filter: brightness(0) invert(1);
    opacity: .85;
    transition: opacity 0.2s;
}

.vbc-zoomlens-cover-slide:hover,
.vbc-zoomlens-cover-slide:focus {
    background: rgba(0, 0, 0, 0.75);
    outline: 0;
    transform: translateY(-50%) scale(1.08);
}

.vbc-zoomlens-cover-slide:hover::before,
.vbc-zoomlens-cover-slide:focus::before {
    opacity: 1;
}

.vbc-zoomlens-cover-slide-prev {
    left: 15px;
}

.vbc-zoomlens-cover-slide-prev::before {
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMiIgaGVpZ2h0PSIyMiIgY2xhc3M9InVpLWljb24iIHZpZXdCb3g9IjAgMCAxOCAxOCI+PGcgZmlsbD0iIzAwMDAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJtMTAuNjQ2IDQuNjQ2LTQgNEw2LjI5MyA5IDcgOS43MDdsLjM1NC0uMzUzIDQtNEwxMS43MDcgNSAxMSA0LjI5M3oiLz48cGF0aCBkPSJtMTEuMzU0IDEyLjY0Ni00LTRMNyA4LjI5MyA2LjI5MyA5bC4zNTMuMzU0IDQgNCAuMzU0LjM1My43MDctLjcwN3oiLz48L2c+PC9zdmc+");
}

.vbc-zoomlens-cover-slide-next {
    right: 15px;
}

.vbc-zoomlens-cover-slide-next::before {
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMiIgaGVpZ2h0PSIyMiIgY2xhc3M9InVpLWljb24gdWktaWNvbi0tY2hldnJvbi1yaWdodCIgdmlld0JveD0iMCAwIDE4IDE4Ij48ZyBmaWxsPSIjMDAwMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Im02LjY0NiA1LjM1NCA0IDQgLjM1NC4zNTMuNzA3LS43MDctLjM1My0uMzU0LTQtNEw3IDQuMjkzIDYuMjkzIDV6Ii8+PHBhdGggZD0ibTcuMzU0IDEzLjM1NCA0LTRMMTEuNzA3IDkgMTEgOC4yOTNsLS4zNTQuMzUzLTQgNC0uMzUzLjM1NC43MDcuNzA3eiIvPjwvZz48L3N2Zz4=");
}

.vbc-zoomlens-cover-close {
    background: rgba(0, 0, 0, .0);
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIyMyIgdmlld0JveD0iMCAwIDMwIDIzIj48cGF0aCBmaWxsPSIjZmZmIiBmaWxsLXJ1bGU9Im5vbnplcm8iIGQ9Im0xNSAxMC45NCA1LjQ3LTUuNDcgMS4wNiAxLjA2TDE2LjA2IDEybDUuNDcgNS40Ny0xLjA2IDEuMDZMMTUgMTMuMDZsLTUuNDcgNS40Ny0xLjA2LTEuMDZMMTMuOTQgMTIgOC40NyA2LjUzbDEuMDYtMS4wNnoiLz48L3N2Zz4=");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 28px 28px;
    border: 0;
    cursor: pointer;
    width: 48px;
    height: 48px;
    padding: 0;
    position: fixed;
    right: 15px;
    top: 15px;
    z-index: 1065;
    border-radius: 4px;
}

.vbc-zoomlens-cover-close:hover,
.vbc-zoomlens-cover-close:focus {
    background-color: rgba(0, 0, 0, .45);
    outline: 0;
}

.vbc-zoomlens-cover-counter {
    background: rgba(0, 0, 0, .45);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    left: 15px;
    padding: 4px 10px;
    position: fixed;
    text-align: center;
    top: 15px;
    z-index: 1065;
    border-radius: 4px;
}

.product-cover .layer .zoom-in {
    display: none !important;
}


@media (min-width: 768px) {
    .vbc-zoomlens-cover-close {
        right: 40px;
        top: 40px;
    }

    .vbc-zoomlens-cover-counter {
        left: 40px;
        top: 40px;
    }

    .vbc-zoomlens-cover-slide-prev {
        left: 40px;
    }

    .vbc-zoomlens-cover-slide-next {
        right: 40px;
    }
}
#product-modal.fade .modal-dialog,
#product-modal .modal-dialog {
    transform: none !important;
    transition: none !important;
}


/* Layout Fullscreen e aproveitamento maximo da tela no modal de produto */
#product-modal {
    padding: 0 !important;
}

#product-modal .modal-dialog {
    max-width: 100vw !important;
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none !important;
    transform: none !important;
    transition: none !important;
}

#product-modal .modal-content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important;
}

#product-modal .modal-body {
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    background: transparent !important;
}

#product-modal figure {
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

/* Imagem ajustada com respiro de 15px (mobile) e 40px no md (>= 768px) */
#product-modal .product-cover-modal,
#product-modal .js-modal-product-cover {
    max-width: calc(100vw - 30px) !important;
    max-height: calc(100vh - 30px) !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    cursor: zoom-in !important;
    transition: transform 0.28s cubic-bezier(0.2, 0, 0.2, 1) !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
    background: transparent !important;
}

@media (min-width: 768px) {
    #product-modal .product-cover-modal,
    #product-modal .js-modal-product-cover {
        max-width: calc(100vw - 80px) !important;
        max-height: calc(100vh - 80px) !important;
    }
}

/* Estado Super Zoom ao clicar na imagem */
#product-modal .product-cover-modal.is-zoomed,
#product-modal .js-modal-product-cover.is-zoomed {
    cursor: zoom-out !important;
    transform: scale(2) !important;
}


/* Mobile: Modal em 100% width com suporte a gestos de zoom de dois dedos (pinch-to-zoom) */
@media (max-width: 767.98px) {
    #product-modal .modal-dialog {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        margin: 0 !important;
    }

    #product-modal .modal-content {
        width: 100vw !important;
        max-width: 100vw !important;
    }

    #product-modal figure {
        width: 100vw !important;
        max-width: 100vw !important;
        overflow: hidden !important;
        touch-action: none !important;
    }

    #product-modal .product-cover-modal,
    #product-modal .js-modal-product-cover {
        width: 100% !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        object-fit: contain !important;
        touch-action: none !important;
    }
}
