.dynamic-image-wrapper {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    position: relative;
    overflow: hidden
}

.dynamic-image,
.static-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    margin: auto;
    object-fit: contain
}

.dynamic-image {
    max-width: 500px !important;
    height: auto !important
}

.woocommerce-variation-add-to-cart {
    display: flex;
    flex-direction: column
}

.product-badge {
    position: absolute;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    z-index: 100;
    box-shadow: 0 2px 4px rgb(0 0 0 / .2);
    transition: all 0.3s ease;
    will-change: transform, opacity;
    backface-visibility: hidden;
    animation: badgeAppear 0.3s ease-out;
    text-shadow: 0 1px 1px rgb(0 0 0 / .2)
}

.backorder-badge {
    top: 10px;
    right: 10px;
    background-color: #007bff;
    color: #fff
}

.stock-badge {
    top: 10px;
    left: 10px;
    background-color: #f44336;
    color: #fff
}

.stock-level-badge {
    bottom: 10px;
    left: 10px;
    background-color: #FFC107;
    color: #000
}

.product-badge.badge-hover {
    transform: scale(1.05);
    box-shadow: 0 3px 6px rgb(0 0 0 / .3)
}

.backorder-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(0 123 255 / .1);
    pointer-events: none;
    z-index: 1
}

.swatches-wrapper {
    min-height: 50px;
    position: relative
}

.price-placeholder {
    font-size: 16px;
    font-weight: 700
}

.woocommerce-variation-description {
    display: none !important
}

.single_add_to_cart_button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.1s ease;
    background-color: #1859FF;
    font-size: 14px !important
}

.single_add_to_cart_button:hover:not(.out-of-stock):not(.max-reached) {
    transform: scale(1.05);
    cursor: pointer
}

.single_add_to_cart_button:active:not(.out-of-stock):not(.max-reached) {
    background-color: #004080;
    transform: scale(.98)
}

.single_add_to_cart_button:focus {
    outline: 2px solid orange;
    outline-offset: 2px
}

.single_add_to_cart_button.out-of-stock,
.single_add_to_cart_button.max-reached {
    cursor: not-allowed;
    opacity: .6;
    pointer-events: none;
    background-color: #6c757d !important;
    color: #fff !important
}

.single_add_to_cart_button.in-cart {
    background-color: #28a745 !important;
    color: #fff !important;
    cursor: pointer;
    opacity: 1
}

.single_add_to_cart_button.in-cart:hover {
    background-color: #1e7e34
}

.single_add_to_cart_button.backorder {
    background-color: #007bff !important;
    color: #fff !important;
    cursor: pointer;
    opacity: 1
}

.single_add_to_cart_button.backorder:hover {
    background-color: #0069d9 !important
}

.dynamic-price-widget bdi {
    font-size: 20px;
    font-weight: 600
}

.woocommerce-variation {
    display: none !important
}

.dynamic-price-widget {
    font-size: 1.5em;
    font-weight: 700;
    color: #333;
    margin-top: 10px
}

.product-badge+.product-badge {
    margin-top: 40px
}

@media (max-width:768px) {
    .dynamic-price-widget {
        font-size: 1.2em
    }

    .product-badge {
        font-size: 10px;
        padding: 3px 6px
    }

    .product-badge+.product-badge {
        margin-top: 35px
    }

    .backorder-badge,
    .stock-badge {
        font-size: 10px;
        padding: 3px 6px
    }

    .dynamic-image {
        max-width: 100% !important
    }
}

.dynamic-image-wrapper:hover .product-badge {
    z-index: 101
}

@keyframes badgeAppear {
    from {
        opacity: 0;
        transform: translateY(-10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.dynamic-badge-wrapper {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 105
}

.dynamic-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgb(0 0 0 / .2);
    transition: all 0.3s ease;
    animation: badgeAppear 0.3s ease-out
}

.badge-in-stock {
    background-color: #28a745;
    color: #fff
}

.badge-out-of-stock {
    background-color: #f44336;
    color: #fff
}

.badge-backorder {
    background-color: #007bff;
    color: #fff
}

.badge-max-reached {
    background-color: #6c757d;
    color: #fff
}

.dynamic-badge.badge-hover {
    transform: scale(1.05);
    box-shadow: 0 3px 6px rgb(0 0 0 / .3)
}