/* Quick View Modal Styles */
.quick-view-modal {
    z-index: 1055;
}

.quick-view-modal .modal-dialog {
    max-width: 900px;
    margin: 2rem auto;
}

.quick-view-modal .modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.quick-view-modal .modal-header {
    background: linear-gradient(135deg, #B8860B, #DAA520);
    color: white;
    border-bottom: none;
    padding: 1.5rem 2rem;
}

.quick-view-modal .modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.quick-view-modal .btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    opacity: 0.8;
    filter: invert(1);
}

.quick-view-modal .btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.quick-view-modal .modal-body {
    padding: 0;
}

/* Product Image Section */
.quick-view-image-section {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-view-product-image {
    width: 100%;
    max-width: 100%;
    height: 350px;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    transition: opacity 0.3s ease;
    display: block;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.quick-view-product-image.image-error {
    opacity: 0.7;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.quick-view-product-image:hover {
    opacity: 0.95;
}

/* Loading state for images */
.quick-view-product-image[src=""] {
    background: linear-gradient(90deg, 
        #f0f0f0 25%, 
        #e0e0e0 50%, 
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.quick-view-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #B8860B, #DAA520);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(184, 134, 11, 0.3);
}

.quick-view-stock-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.quick-view-stock-status.in-stock {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.quick-view-stock-status.low-stock {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: white;
}

.quick-view-stock-status.out-of-stock {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

/* Product Details Section */
.quick-view-details-section {
    padding: 2rem;
}

.quick-view-category {
    color: #B8860B;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.quick-view-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.quick-view-price {
    font-size: 2rem;
    font-weight: 700;
    color: #B8860B;
    margin-bottom: 1rem;
}

.quick-view-rating {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.quick-view-stars {
    margin-right: 0.5rem;
}

.quick-view-rating-text {
    color: #6c757d;
    font-size: 0.9rem;
}

.quick-view-description {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Quantity Selector */
.quick-view-quantity-section {
    margin-bottom: 2rem;
}

.quick-view-quantity-label {
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 0.5rem;
    display: block;
}

.quick-view-quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-input-group {
    display: flex;
    align-items: center;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.quantity-btn {
    background: #f8f9fa;
    border: none;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    color: #495057;
    transition: all 0.3s ease;
    cursor: pointer;
}

.quantity-btn:hover {
    background: #B8860B;
    color: white;
}

.quantity-input {
    border: none;
    padding: 0.5rem;
    width: 60px;
    text-align: center;
    font-weight: 600;
    background: white;
}

.quantity-input:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px #B8860B;
}

/* Action Buttons */
.quick-view-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.quick-view-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.quick-view-btn-primary {
    background: linear-gradient(135deg, #B8860B, #DAA520);
    color: white;
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
}

.quick-view-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.4);
}

.quick-view-btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #e9ecef;
}

.quick-view-btn-secondary:hover {
    background: #e9ecef;
    border-color: #B8860B;
    color: #B8860B;
}

/* Product Features */
.quick-view-features {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.quick-view-features h6 {
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 1rem;
}

.quick-view-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-view-feature-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    color: #495057;
}

.quick-view-feature-item i {
    color: #B8860B;
    margin-right: 0.5rem;
    width: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .quick-view-modal .modal-dialog {
        margin: 1rem;
        max-width: none;
    }
    
    .quick-view-details-section {
        padding: 1.5rem;
    }
    
    .quick-view-title {
        font-size: 1.5rem;
    }
    
    .quick-view-price {
        font-size: 1.5rem;
    }
    
    .quick-view-actions {
        flex-direction: column;
    }
    
    .quick-view-product-image {
        height: 250px;
    }
}

/* Loading Animation */
.quick-view-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    color: #B8860B;
    font-size: 1.2rem;
}

.quick-view-loading i {
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}