/* Quick View Button Style */
.product .quick-view-button {
    display: none;
    position: absolute;
    top: 55%;
    left: 58%;
    transform: translate(-55%, -50%);
    color: #A1EF8B;
    border: none;
    cursor: pointer;
    z-index: 2;
    transition:color 0.3s ease-in-out;
}

/* Show Quick View Button on Hover */
.woocommerce ul.products li.product:hover .quick-view-button {
    display: block;
}

/* Quick View Button Icon Style */
.quick-view-button svg {
    fill: #A1EF8B;
    width: 30px;
    height: 30px;
}

/* Quick View Icon Hover Effect */
.quick-view-button:hover svg {
    fill: #8C8CEA;
     background-color: rgba(247, 245, 255, 0.9);
     border-radius: 50%;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-overlay .spinner {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #8C8CEA; /* Green */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Quick View Popup */
.quick-view-popup {
    background: #F7F5FF;
    border-radius: 10px;
    width: 95%; /* Popup width increased */
    max-width: 1000px;
    display: flex;
    overflow: hidden;
    position: relative;
}

.close-popup {
    position: absolute;
    top: -7px;
    right: 10px;
    font-size: 40px;
    color: #8C8CEA;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.close-popup:hover {
    color: #A1EF8B; /* Close button hover effect */
}

/* Left Section: Image Slider */
.popup-left {
    width: 50%;
    overflow: hidden;
    position: relative;
}

.zoom-container {
    overflow: hidden;
    position: relative;
}

.zoom-image {
    width: 100%;
    height: auto;
    transition: transform 0.1s ease, transform-origin 0.1s ease;
}

.zoom-active {
    transform: scale(1.5); /* Zoom effect increased */
    cursor: zoom-in;
}


/* Swiper Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
    color: #F7F5FF;
    background: rgba(140, 140, 234, 1);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(161, 239, 139, 1);
}

/* Pagination Dots */
.swiper-pagination {
    bottom: 10px;
    position: absolute;
}

.swiper-pagination-bullet {
    background: #A1EF8B;
    opacity: 0.8;
    width: 12px; /* Increased size */
    height: 12px;
    margin: 0 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.swiper-pagination-bullet:hover {
    transform: scale(1.3); /* Slight hover effect */
}

.swiper-pagination-bullet-active {
    background: #A1EF8B;
    opacity: 1;
}

/* Right Section: Product Information */
.popup-right {
    width: 50%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popup-right h2 {
    font-size: 22px;
    margin-top: 10px; /* Added margin for title spacing */
    margin-bottom: 15px;
    color: #333;
}

.popup-right .price del {
    color: #89949A; /* Regular price in black */
    font-size: 18px;
    margin-right: 5px;
}

.popup-right .price ins {
    color: #8C8CEA; /* Sale price in green */
    font-size: 22px;
    font-weight: bold;
}

.popup-right .description {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

/* Buttons Container */
.popup-buttons {
    display: flex;
    gap: 10px; /* Space between buttons */
}

/* Base Style for All Buttons */
.popup-buttons .button {
    display: inline-block;
    padding: 10px 15px;
    font-size: 14px;
    color: #F7F5FF !important;
    background-color: #8C8CEA !important;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

/* Buy Now Button (optional styling) */
.buy_now_button:hover {
    background-color: #A1EF8B !important;
}

.whatsapp_button:hover {
    background-color: #A1EF8B !important;
}