/* ShopGlut Quick View CSS */
.shopglut-quick-view-button {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 16px;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.shopglut-quick-view-button:hover {
    background-color: #005a87;
    color: white;
    text-decoration: none;
}

.shopglut-quickview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shopglut-quickview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.shopglut-quickview-container {
    position: relative;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
}

.shopglut-quickview-loading {
    padding: 40px;
    text-align: center;
}

.shopglut-quickview-loading .spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.shopglut-quickview-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.shopglut-quickview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background-color: #f9f9f9;
}

.shopglut-quickview-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.shopglut-quickview-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.shopglut-quickview-close:hover {
    background-color: #e0e0e0;
}

.shopglut-quickview-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.shopglut-quickview-images {
    flex: 1;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fafafa;
}

.shopglut-quickview-images img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.shopglut-quickview-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.quickview-gallery-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.shopglut-quickview-details {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.shopglut-quickview-price {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #0073aa;
}

.shopglut-quickview-rating {
    margin-bottom: 15px;
}

.shopglut-quickview-description {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #666;
}

.shopglut-quickview-attributes {
    margin-bottom: 20px;
}

.shopglut-quickview-attributes h4 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

.shopglut-quickview-attributes ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shopglut-quickview-attributes li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.shopglut-quickview-cart {
    margin-bottom: 20px;
}

.shopglut-quickview-cart .cart {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.shopglut-quickview-cart input[type="number"] {
    width: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.shopglut-quickview-cart .single_add_to_cart_button {
    padding: 10px 20px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.shopglut-quickview-cart .single_add_to_cart_button:hover {
    background-color: #005a87;
}

.shopglut-quickview-view-details {
    text-align: center;
}

.shopglut-quickview-view-details .button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #666;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.shopglut-quickview-view-details .button:hover {
    background-color: #555;
    color: white;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .shopglut-quickview-body {
        flex-direction: column;
    }
    
    .shopglut-quickview-images,
    .shopglut-quickview-details {
        flex: none;
    }
    
    .shopglut-quickview-container {
        max-width: 95%;
        max-height: 95%;
    }
    
    .shopglut-quickview-header h2 {
        font-size: 18px;
    }
    
    .shopglut-quickview-price {
        font-size: 20px;
    }
}