/* Quick View Button Style */
.product .quick-view-button {
    display: none;
    position: absolute;
    top: 55%;
    left: 57.5%;
    transform: translate(-55%, -50%);
    background-color: transparent;
    color: #4E97FD;
    border: none;
    cursor: pointer;
    z-index: 2;
    transition: color 0.3s ease;
}

@media only screen and (max-width: 768px) {
    .product .quick-view-button {
        top: 45%;
    }
}

/* 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: #5FA1FD;
    width: 30px;
    height: 30px;
}

/* Quick View Icon Hover Effect */
.quick-view-button:hover svg {
    fill: #00A651;
}

/* 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 #00A651; /* 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: #fff;
    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: #00A651;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.close-popup:hover {
    color: #4E97FD; /* 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: #fff;
    background: rgba(0, 166, 81);
    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(78, 151, 253);
}

/* Pagination Dots */
.swiper-pagination {
    bottom: 10px;
    position: absolute;
}

.swiper-pagination-bullet {
    background: #007bff;
    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: #0056b3;
    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: #00A651; /* 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: #fff !important;
    background-color: #00A651 !important;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

/* Buy Now Button (optional styling) */
.buy_now_button:hover {
    background-color: #4E97FD !important;
}

.whatsapp_button:hover {
    background-color: #4E97FD !important;
}
