/* ============================================
   Product Variants Styles
   Scoped styles for Gallery, Size, and Color variants
   ============================================ */

/* Product Gallery Container Styles */
.product-gallery-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.product-gallery-container .featured-image-wrapper {
    position: relative;
    z-index: 1;
    transition: opacity 0.3s ease;
    width: 100%;
    height: 100%;
}

.product-gallery-container .featured-image-wrapper img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: cover;
}

.product-gallery-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery-container .gallery-slider-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 2;
}

.product-gallery-container:hover .featured-image-wrapper {
    opacity: 0;
}

.product-gallery-container:hover .gallery-slider-wrapper {
    opacity: 1;
    visibility: visible;
}

.product-gallery-container .gallery-slider {
    width: 100%;
    height: 100%;
}

.product-gallery-container .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-gallery-container .swiper-button-prev,
.product-gallery-container .swiper-button-next {
    color: #111111;
    background: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #00000026;
}

.product-gallery-container .swiper-button-prev:after,
.product-gallery-container .swiper-button-next:after {
    font-size: 16px;
    font-weight: bold;
}

.product-gallery-container .swiper-pagination {
    bottom: 8px !important;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-gallery-container .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    background: #8A8A8A;
    opacity: 0.5;
}

.product-gallery-container .swiper-pagination-bullet-active {
    opacity: 1;
    background: #fff;
}

/* Show slider on tablet and below without hover */
@media screen and (max-width: 1024px) {
    .product-gallery-container .featured-image-wrapper {
        display: none;
    }

    .product-gallery-container .gallery-slider-wrapper {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

@media (max-width: 576px) {

    .product-gallery-container .swiper-button-next,
    .product-gallery-container .swiper-button-prev {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .product-gallery-container .swiper-button-prev:after,
    .product-gallery-container .swiper-button-next:after {
        font-size: 12px !important;
    }
}

/* ============================================
   Product Size Variants Styles
   ============================================ */

.product-size-variants {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    justify-content: center;
}

.product-size-variants .size-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    height: 24px;
    line-height: 24px;
    padding: 5px 6px;
    border: 1.5px solid #00000026;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 400;
    text-decoration: none;
    color: #111111;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.product-size-variants .size-chip.size-available:hover {
    border-color: #3A5955;
    background: #3A5955;
    color: #fff;
    transform: scale(1.1);
}

.product-size-variants .size-chip.size-unavailable {
    border-color: #ddd;
    color: #999;
    background: #f5f5f5;
    cursor: not-allowed;
}

.product-size-variants .unavailable-mark {
    display: none;
}

.product-size-variants .size-chip.selected {
    border-color: #000;
    background: #000;
    color: #fff;
}

@media (max-width: 576px) {
    .product-size-variants .size-chip {
        font-size: 10px;
        padding: 2px 4px;
        height: 16px;
    }
}

/* ============================================
   Product Color Variants Styles
   ============================================ */

.product-color-variants {
    margin: 10px 0;
}

.product-color-variants .color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.product-color-variants .color-swatch {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.product-color-variants .color-swatch:hover {
    transform: scale(1.15);
}

.product-color-variants .color-swatch.active .color-circle {
    box-shadow: 0 0 0 2px #333;
}

.product-color-variants .color-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #eee;
    box-shadow: none;
    display: block;
    transition: all 0.3s ease;
}


.woo-variation-swatches .variable-items-wrapper {
    gap: 12px;
}
 
.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).button-variable-item {
    margin: 0px;
    font-family: SF Pro;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    height: 36px;
    width: 36px;
    background: #E5E5E5;
    color: #333333;
    border: none;
    box-shadow: none;
}

.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).button-variable-item.selected:not(.no-stock) {
    background: #3A5955 !important;
    color: #fff !important;
    border: none;
    box-shadow: none;
}

table.variations tbody tr:not(:last-child) {
    margin-bottom: 24px;
    display: block;
}
table.variations tbody tr th.label {
    margin-bottom: 16px;
}
:where(.brxe-product-add-to-cart) .bricks-variation-swatches.bricks-swatch-color li {
        height: 24px;
        padding: 0px;
        width: 24px;
    border-radius: 50px;
    border: 1px solid #c1c1c1;
    }

:where(.brxe-product-add-to-cart) .bricks-variation-swatches.bricks-swatch-color li.bricks-swatch-selected {
    border: 2px solid #3A5955;
} 
@media (max-width: 576px) {
    .woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).button-variable-item {
        font-size: 12px;
        height: 28px;
        width: 28px;
    }
}


/* Blurry image loading effect */
.image-blur-wrapper {
    position: relative;
    overflow: hidden;
}

.blur-up {
    filter: blur(12px);
    transition: filter 0.4s ease;
}

.blur-up:not([src]) {
    filter: none;
}

.blur-up.loaded,
.blur-up:not(.blur-up) {
    filter: none;
}