/* =============================================================
   Vkard Product Gallery - late theme overrides
   Scoped to this widget so broad theme/Owl gallery styles lose.
   ============================================================= */

.vkard-product-gallery-widget.vkard-product-gallery-ready .vkard-gallery-owl-active div.product-images,
.vkard-product-gallery-widget.vkard-product-gallery-ready .vkard-gallery-owl-active .woocommerce-product-gallery__wrapper div.product-images {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: var(--vkard-radius) !important;
    background: #F1F5F9 !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

.vkard-product-gallery-widget.vkard-product-gallery-ready .vkard-gallery-owl-active .product-images .product-image-slider.owl-carousel,
.vkard-product-gallery-widget.vkard-product-gallery-ready .vkard-gallery-owl-active .product-images .product-image-slider.owl-carousel .owl-stage-outer,
.vkard-product-gallery-widget.vkard-product-gallery-ready .vkard-gallery-owl-active .product-images .product-image-slider.owl-carousel .owl-stage,
.vkard-product-gallery-widget.vkard-product-gallery-ready .vkard-gallery-owl-active .product-images .product-image-slider.owl-carousel .owl-item,
.vkard-product-gallery-widget.vkard-product-gallery-ready .vkard-gallery-owl-active .product-images .product-image-slider.owl-carousel .owl-item .img-thumbnail,
.vkard-product-gallery-widget.vkard-product-gallery-ready .vkard-gallery-owl-active .product-images .product-image-slider.owl-carousel .owl-item .img-thumbnail .inner {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: var(--vkard-radius) !important;
    background: #F1F5F9 !important;
    box-shadow: none !important;
}

.vkard-product-gallery-widget.vkard-product-gallery-ready .vkard-gallery-owl-active .product-images .product-image-slider.owl-carousel .owl-item img,
.vkard-product-gallery-widget.vkard-product-gallery-ready .vkard-gallery-owl-active .product-images .product-image-slider.owl-carousel .owl-item img.img-responsive,
.vkard-product-gallery-widget.vkard-product-gallery-ready .vkard-gallery-owl-active .product-images .product-image-slider.owl-carousel .owl-item img.wp-post-image,
.vkard-product-gallery-widget.vkard-product-gallery-ready .vkard-gallery-owl-active .product-images .product-image-slider.owl-carousel .owl-item img.woocommerce-main-image {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: calc(var(--vkard-radius) - 4px) !important;
    background: transparent !important;
    box-shadow: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    opacity: 1 !important;
    vertical-align: top !important;
}

.vkard-product-gallery-widget.vkard-product-gallery-ready .vkard-gallery-owl-active .product-images .image-galley-viewer,
.vkard-product-gallery-widget.vkard-product-gallery-ready .vkard-gallery-owl-active .product-images .zoom,
.vkard-product-gallery-widget.vkard-product-gallery-ready .vkard-gallery-owl-active .product-image-slider.owl-carousel .owl-nav,
.vkard-product-gallery-widget.vkard-product-gallery-ready .vkard-gallery-owl-active .product-image-slider.owl-carousel .owl-dots,
.vkard-product-gallery-widget.vkard-product-gallery-ready .vkard-gallery-owl-active .product-thumbs-slider.owl-carousel .owl-nav,
.vkard-product-gallery-widget.vkard-product-gallery-ready .vkard-gallery-owl-active .product-thumbs-slider.owl-carousel .owl-dots,
.vkard-product-gallery-widget.vkard-product-gallery-ready .vkard-gallery-owl-active .product-thumbs-slider.owl-carousel .thumb-nav,
.vkard-product-gallery-widget.vkard-product-gallery-ready .vkard-gallery-owl-active .product-thumbs-slider.owl-carousel .thumb-prev,
.vkard-product-gallery-widget.vkard-product-gallery-ready .vkard-gallery-owl-active .product-thumbs-slider.owl-carousel .thumb-next {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.vkard-product-gallery-widget.vkard-product-gallery-ready .vkard-gallery-owl-active div.product-thumbnails {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 12px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
}

.vkard-product-gallery-widget.vkard-product-gallery-ready .vkard-gallery-owl-active .product-thumbnails .product-thumbs-slider.owl-carousel,
.vkard-product-gallery-widget.vkard-product-gallery-ready .vkard-gallery-owl-active .product-thumbnails .product-thumbs-slider.owl-carousel .owl-stage-outer {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
}

.vkard-product-gallery-widget.vkard-product-gallery-ready .vkard-gallery-owl-active .product-thumbs-slider.owl-carousel .owl-stage-outer .owl-stage {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 10px !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

.vkard-product-gallery-widget.vkard-product-gallery-ready .vkard-gallery-owl-active .product-thumbs-slider.owl-carousel .owl-stage-outer .owl-stage .owl-item {
    display: block !important;
    flex: 0 0 96px !important;
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
    height: 96px !important;
    min-height: 96px !important;
    max-height: 96px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.vkard-product-gallery-widget.vkard-product-gallery-ready .vkard-gallery-owl-active .product-thumbs-slider.owl-carousel .owl-stage-outer .img-thumbnail,
html:not(.touch) .vkard-product-gallery-widget.vkard-product-gallery-ready .vkard-gallery-owl-active .product-thumbs-slider.owl-carousel .owl-stage-outer .owl-item:hover .img-thumbnail {
    display: block !important;
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
    height: 96px !important;
    min-height: 96px !important;
    max-height: 96px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 2px solid #E2E8F0 !important;
    border-radius: var(--vkard-radius) !important;
    background: #F8FAFC !important;
    box-shadow: none !important;
    overflow: hidden !important;
    cursor: pointer !important;
}

.vkard-product-gallery-widget.vkard-product-gallery-ready .vkard-gallery-owl-active .product-thumbs-slider.owl-carousel .owl-stage-outer .owl-item.selected .img-thumbnail,
.vkard-product-gallery-widget.vkard-product-gallery-ready .vkard-gallery-owl-active .product-thumbs-slider.owl-carousel .owl-stage-outer .owl-item.active.selected .img-thumbnail,
html:not(.touch) .vkard-product-gallery-widget.vkard-product-gallery-ready .vkard-gallery-owl-active .product-thumbs-slider.owl-carousel .owl-stage-outer .owl-item.selected:hover .img-thumbnail {
    border: 2px solid var(--vkard-blue) !important;
}

.vkard-product-gallery-widget.vkard-product-gallery-ready .vkard-gallery-owl-active .product-thumbs-slider.owl-carousel .owl-stage-outer .img-thumbnail img,
.vkard-product-gallery-widget.vkard-product-gallery-ready .vkard-gallery-owl-active .product-thumbs-slider.owl-carousel .owl-stage-outer .img-thumbnail img.img-responsive,
.vkard-product-gallery-widget.vkard-product-gallery-ready .vkard-gallery-owl-active .product-thumbs-slider.owl-carousel .owl-stage-outer .img-thumbnail img.woocommerce-main-thumb {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: calc(var(--vkard-radius) - 2px) !important;
    background: transparent !important;
    box-shadow: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    opacity: 1 !important;
}
