/* Custom styles for e-commerce enhancements */

/* Variant options - always visible, no collapse */
.variant-options {
    display: block !important;
}

/* Add to Cart button states */
.qv-addtocart {
    position: relative;
    transition: all 0.3s ease;
}

.qv-addtocart.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #999 !important;
}

.qv-addtocart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading spinner animation */
#btnLoading svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Cart page improvements */
.popular-img-view-cart {
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 8px;
    margin-right: 15px;
}

.popular-img-view-cart img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Quick View Modal */
.quick-view-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.quick-view-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    position: relative;
}

.quick-view-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 10px;
}

.quick-view-close:hover,
.quick-view-close:focus {
    color: #000;
}

.quick-view-product-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
}

.quick-view-details {
    padding: 20px;
}

.quick-view-details h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

.quick-view-details .price {
    font-size: 20px;
    color: #d4af37;
    font-weight: bold;
    margin: 10px 0;
}

.quick-view-details .variant-info {
    margin: 15px 0;
}

.quick-view-details .variant-info span {
    display: inline-block;
    margin-right: 15px;
    padding: 5px 10px;
    background: #f5f5f5;
    border-radius: 4px;
}

/* Email validation feedback */
.email-validation-feedback {
    display: inline-block;
    margin-left: 10px;
    font-size: 14px;
}

.email-validation-feedback.available {
    color: #28a745;
}

.email-validation-feedback.taken {
    color: #dc3545;
}

.email-validation-feedback.checking {
    color: #6c757d;
}

/* Stock warning */
.stock-warning {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.stock-warning.show {
    display: block;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .popular-img-view-cart {
        width: 80px;
        height: 80px;
    }
    
    .quick-view-content {
        width: 95%;
        padding: 20px;
    }
    
    .quick-view-product-image {
        max-width: 100%;
    }
}
