/* ===== PRODUCT MODAL STYLES ===== */

.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    animation: fadeIn 0.3s ease-out;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: white;
    margin: 2% auto;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 20px;
    overflow: hidden;
    animation: slideInUp 0.4s ease-out;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(0,0,0,0.2);
    transform: scale(1.1);
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.product-images {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.main-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-info {
    padding: 40px;
    overflow-y: auto;
    max-height: 90vh;
}

.product-title {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    animation: fadeInUp 0.5s ease-out 0.1s both;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    animation: fadeInUp 0.5s ease-out 0.2s both;
}

.stars {
    color: #FFD700;
}

.reviews-count {
    color: #666;
    font-size: 0.9rem;
}

.product-price {
    margin-bottom: 25px;
    animation: fadeInUp 0.5s ease-out 0.3s both;
}

.current-price {
    font-size: 2rem;
    font-weight: bold;
    color: #FF6B6B;
}

.original-price {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 10px;
}

.product-description {
    margin-bottom: 25px;
    animation: fadeInUp 0.5s ease-out 0.4s both;
}

.product-description h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.product-description p {
    color: #666;
    line-height: 1.6;
}

.product-details {
    margin-bottom: 25px;
    animation: fadeInUp 0.5s ease-out 0.5s both;
}

.detail-item {
    display: flex;
    margin-bottom: 8px;
}

.detail-item .label {
    font-weight: 600;
    color: #333;
    width: 80px;
}

.detail-item .value {
    color: #666;
}

.product-colors {
    margin-bottom: 25px;
    animation: fadeInUp 0.5s ease-out 0.6s both;
}

.product-colors h4 {
    margin-bottom: 10px;
    color: #333;
}

.colors-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.color-tag {
    background: rgba(255,107,107,0.1);
    color: #FF6B6B;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    border: 1px solid rgba(255,107,107,0.3);
}

.quantity-selector {
    margin-bottom: 30px;
    animation: fadeInUp 0.5s ease-out 0.7s both;
}

.quantity-selector label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-controls button {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.quantity-controls button:hover {
    background: #FF6B6B;
    color: white;
    border-color: #FF6B6B;
}

.quantity-controls input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.action-buttons {
    display: flex;
    gap: 15px;
    animation: fadeInUp 0.5s ease-out 0.8s both;
}

.btn-add-cart,
.btn-buy-now {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
}

.btn-add-cart {
    background: rgba(255,107,107,0.1);
    color: #FF6B6B;
    border: 2px solid #FF6B6B;
}

.btn-add-cart:hover {
    background: #FF6B6B;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,107,0.3);
}

.btn-buy-now {
    background: linear-gradient(135deg, #FF6B6B, #E85A4F);
    color: white;
    border: 2px solid transparent;
}

.btn-buy-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,107,107,0.4);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .product-images {
        padding: 20px;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .current-price {
        font-size: 1.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}