/**
 * WooBiavi Single DC - VTEX Single-Row Gallery
 */
.woobiavi-vtex-gallery-wrapper {
    position: relative;
    width: 100%;
    margin: 0px;
    box-sizing: border-box;
}

/* Main Image Container */
.wb-vtex-main-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    box-sizing: border-box;
}

/* Aspect Ratio Formats */
.wb-vtex-main-container.wb-ratio-1-1 {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
}
.wb-vtex-main-container.wb-ratio-3-4 {
    aspect-ratio: 3 / 4 !important;
    height: auto !important;
}
.wb-vtex-main-container.wb-ratio-4-3 {
    aspect-ratio: 4 / 3 !important;
    height: auto !important;
}
.wb-vtex-main-container.wb-ratio-16-9 {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
}
.wb-vtex-main-container.wb-ratio-4-5 {
    aspect-ratio: 4 / 5 !important;
    height: auto !important;
}
.wb-vtex-main-container.wb-ratio-custom {
    aspect-ratio: auto !important;
    height: 440px;
}

/* Swiper inside Container */
.wb-vtex-main-swiper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.wb-vtex-main-container:not([class*="wb-ratio-"]):not([style*="aspect-ratio"]) .wb-vtex-main-swiper {
    height: 440px;
}

@media (max-width: 768px) {
    .wb-vtex-main-container.wb-ratio-custom,
    .wb-vtex-main-container:not([class*="wb-ratio-"]):not([style*="aspect-ratio"]) .wb-vtex-main-swiper {
        height: 340px;
    }
}

.wb-vtex-main-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    overflow: hidden;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.wb-vtex-main-container .wb-vtex-main-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.wb-vtex-main-slide:hover .wb-vtex-main-img {
    transform: scale(1.03);
}

/* Thumbs Single Row Wrapper */
.wb-vtex-thumbs-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
}

.wb-vtex-thumbs-swiper {
    flex: 1;
    width: 100%;
    padding: 2px 0;
    overflow: hidden;
}

.wb-vtex-thumb-slide {
    height: 72px;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    background: #ffffff;
    opacity: 0.7;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wb-vtex-thumb-slide:hover {
    opacity: 1;
    border-color: #94a3b8;
}

.wb-vtex-thumb-slide.swiper-slide-thumb-active {
    opacity: 1;
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 1px #0284c7;
}

.wb-vtex-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    box-sizing: border-box;
}

/* Nav Buttons */
.wb-vtex-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    color: #334155;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    z-index: 10;
    flex-shrink: 0;
}

.wb-vtex-nav-btn:hover {
    background-color: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.wb-vtex-nav-btn.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.wb-vtex-main-container .wb-main-prev,
.wb-vtex-main-container .wb-main-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.wb-vtex-main-container .wb-main-prev {
    left: 12px;
}

.wb-vtex-main-container .wb-main-next {
    right: 12px;
}
