/* কন্টাক্ট বাটনগুলোর কন্টেইনার */
.woocommerce div.product .bdi-product-contact-btns {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 8px;
    max-width: 306px;
    flex-wrap: wrap; 
    justify-content: space-between; 
}

/* দুটি বাটনের জন্য সাধারণ স্টাইল */
.woocommerce div.product .bdi-product-contact-btns .bdi-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px;
    font-size: 1em;
    font-weight: 600;
    color: white;
    border-radius: 5px;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
    flex: 1; 
    min-width: 145px;
}

.woocommerce div.product .bdi-product-contact-btns .bdi-btn:hover {
    opacity: 0.9;
}

/* আইকন বা SVG-এর জন্য স্টাইল */
.bdi-btn svg {
    width: 20px;
    height: 20px;
}

/* হোয়াটসঅ্যাপ বাটনের জন্য নির্দিষ্ট রঙ */
.bdi-btn.bdi-whatsapp-btn {
    background-color: #25D366;
}

/* মেসেঞ্জার বাটনের জন্য নির্দিষ্ট রঙ */
.bdi-btn.bdi-messenger-btn {
    background-color: #0084FF;
}

.back-to-top {
    width: 40px;
    height: 40px;
    position: fixed;
    bottom: 0;
    right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s, transform 0.2s, bottom 0.3s;
    z-index: 999;
}

.back-to-top.active-to-top {
    bottom: 45px;
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover svg {
    transform: scale(1.1);
    transition: transform 0.2s;
}

html {
    scroll-behavior: smooth;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* buy naw button */
#wpamit-adding-button {
    margin-left: 10px;
    background-color: #4E97FD;
}

/* Discount Percentage Badge Style */
.discount-percentage {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #00A651;
    color: #ffffff;
    padding: 6px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    z-index: 10;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    line-height: 1;
    text-align: center;
}

/* Ensure the product container is positioned relative */
.product {
    position: relative;
    overflow: hidden; /* Hide elements going outside the container */
}

/* Hover Image Style */
.product .hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

/* Show Second Image and Main Image Zoom Effect on Hover */
.woocommerce ul.products li.product:hover .hover-image,
.woocommerce ul.products li.product:hover img {
    opacity: 1;
    transform: scale(1.1); /* Zoom effect */
    transition: opacity 0.3s ease, transform 0.3s ease;
}