/* WhatsApp Order Button */
#whatsapp-order-button {
    margin-top: 10px;
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
}

/* Mobile View - Adjust Button Size */
@media (max-width: 768px) {
    #whatsapp-order-button {
        padding: 10px 8px; /* Smaller padding for mobile */
    }
}


/* Call Now Button Styling */
.call-now-button {
    display: inline-block;
    margin-top: 10px;
    padding: 7px 20px;
    background-color: #A1EF8B;
    color: #1C7B7F !important;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}

.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;
}

/* Discount Percentage Badge Style */
.discount-percentage {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #A1EF8B;
    color: #1C7B7F;
    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;
}

/* buy naw button */
#wpamit-adding-button {
    margin-left: 10px;
    background-color: #A1EF8B;
    color: #1C7B7F;
}

/* 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;
}