/* Overlay for the popup */
#sytech-quick-view-popup {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    z-index: 9999; /* Ensure it's on top */
    display: flex; /* Enable Flexbox */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    overflow: auto; /* Enable scrolling if content is taller than viewport */
}

/* Popup Content */
.sytech-quick-view-content {
    background-color: #fff;
    padding: 20px;
    max-width: 800px;
    width: 90%;
    position: relative;
    border-radius: 8px; /* Rounded corners for better aesthetics */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); /* Subtle shadow */
    animation: fadeInScale 0.3s ease-in-out; /* Smooth entrance animation */
}

/* Close Button */
.sytech-quick-view-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: color 0.3s;
}

.sytech-quick-view-close:hover {
    color: #000;
}

/* Product Image */
.sytech-quick-view-product-image {
    float: left;
    width: 40%;
    margin-right: 20px;
}

.sytech-quick-view-product-image img {
    width: 100%;
    height: auto;
    border-radius: 4px; /* Slightly rounded corners */
}

/* Product Details */
.sytech-quick-view-product-details {
    float: left;
    width: 55%;
}

.sytech-quick-view-clear {
    clear: both;
}

/* Short Description Styling */
.sytech-quick-view-short-description {
    margin: 10px 0;
    color: #555;
    font-size: 14px;
}

/* Quantity Selector Styling */
.sytech-quick-view-quantity {
    margin: 15px 0;
    display: flex;
    align-items: center;
}

.sytech-quick-view-quantity label {
    margin-right: 10px;
    font-weight: bold;
}

.quantity-buttons {
    display: flex;
    align-items: center;
}

.quantity-buttons button {
    width: 30px;
    height: 30px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    color: #333;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    text-align: center;
    padding: 0;
    transition: background-color 0.3s, color 0.3s, transform 0.1s;
}

.quantity-buttons button:hover {
    background-color: #ddd;
}

.quantity-buttons button:active {
    transform: scale(0.95);
}

.quantity-buttons input[type="number"] {
    width: 50px;
    height: 30px;
    text-align: center;
    border: 1px solid #ccc;
    margin: 0 5px;
    font-size: 16px;
    border-radius: 0;
}

/* Loading Indicator */
.sytech-quick-view-loading {
    text-align: center;
    font-size: 18px;
    padding: 50px 0;
    color: #fff;
}

/* Spinner Animation */
.sytech-quick-view-loading::before {
    content: "";
    display: block;
    margin: 0 auto 20px;
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Keyframes for Spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error Message Styling */
.sytech-quick-view-error {
    background-color: #f44336;
    color: #fff;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    text-align: center;
    animation: fadeInDown 0.3s ease-in-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation for Popup Content */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .sytech-quick-view-content {
        max-width: 95%;
        padding: 15px;
    }

    .sytech-quick-view-product-image,
    .sytech-quick-view-product-details {
        float: none;
        width: 100%;
        margin: 0;
    }

    .sytech-quick-view-product-image {
        margin-bottom: 20px;
    }
}
