/* Quick View Modal Styles */
#quickview-modal .modal-dialog {
    max-width: 900px;
}

#quickview-modal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#quickview-modal .modal-header {
    border-bottom: 1px solid #eee;
    padding: 1.5rem;
}

#quickview-modal .modal-title {
    font-weight: 600;
    color: #333;
}

#quickview-modal .modal-body {
    padding: 2rem;
}

#quickview-loading {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.quickview-image img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.quickview-image img:hover {
    transform: scale(1.02);
}

.quickview-details h4 {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.quickview-details .text-muted {
    color: #666 !important;
    font-size: 0.9rem;
}

.price-box .new-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
}

.price-box .old-price {
    font-size: 1rem;
    color: #999;
}

.product-specifications {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.product-specifications h6 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-specifications small {
    font-weight: 500;
    color: #666;
}

.product-specifications p {
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

/* Color selection styling */
.color-option {
    display: inline-block;
    margin: 0.5rem;
}

.color-option input[type="radio"] {
    display: none;
}

.color-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    background: #ffffff;
    color: #333;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.color-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.color-option input[type="radio"]:checked+.color-label {
    border-color: #333;
    background: #ffffff;
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.color-option input[type="radio"]:checked+.color-label::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.color-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.color-name {
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Legacy badge styling for fallback */
.product-colors .badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: #e9ecef;
    color: #495057;
    border: 1px solid #dee2e6;
}

/* Cart item color styling */
.cart-item-color {
    margin-top: 0.25rem;
}

.cart-item-color small {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
}

/* Quick view color selection improvements */
.quickview-details .product-colors {
    margin: 1rem 0;
}

.quickview-details .product-colors h6 {
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #333;
}

/* Color selection animation */
.color-option input[type="radio"]:checked+.color-label {
    animation: colorSelect 0.3s ease;
}

@keyframes colorSelect {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Color circle improvements */
.color-circle {
    position: relative;
    transition: all 0.3s ease;
}

.color-option input[type="radio"]:checked+.color-label .color-circle {
    transform: scale(1.2);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.8);
}

/* Hover effects for color options */
.color-option:hover .color-circle {
    transform: scale(1.1);
}

/* Special styling for white/light colors */
.color-label[style*="background-color: #FFFFFF"],
.color-label[style*="background-color: #FFFFF0"],
.color-label[style*="background-color: #FFFAFA"] {
    border: 2px solid #ddd !important;
}

.color-label[style*="background-color: #FFFFFF"] .color-name,
.color-label[style*="background-color: #FFFFF0"] .color-name,
.color-label[style*="background-color: #FFFAFA"] .color-name {
    color: #333 !important;
    text-shadow: none !important;
}

.product-actions .btn {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.product-actions .btn-primary {
    background: #007bff;
    border-color: #007bff;
}

.product-actions .btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

.product-actions .btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-actions .btn-outline-secondary:hover {
    background: #6c757d;
    border-color: #6c757d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.product-actions .btn-outline-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(108, 117, 125, 0.2);
}

/* Loading state for view full details button */
.product-actions .btn-outline-secondary.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Loading animation */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Toast notifications */
.toast-container {
    z-index: 9999;
}

.toast {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #quickview-modal .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }

    #quickview-modal .modal-body {
        padding: 1rem;
    }

    .quickview-details h4 {
        font-size: 1.25rem;
    }

    .price-box .new-price {
        font-size: 1.25rem;
    }

    .product-specifications {
        padding: 1rem;
    }
}

/* Animation for modal content */
#quickview-content {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Error state styling */
#quickview-loading .text-danger {
    color: #dc3545 !important;
}

#quickview-loading .feather-alert-circle {
    color: #dc3545;
}

/* Close button styling */
#quickview-modal .btn-close {
    background-size: 1.2em;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

#quickview-modal .btn-close:hover {
    opacity: 1;
}