.product-detail-modal {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    animation: modalFadeIn 0.3s ease-out;
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    z-index: 10;
}

.close-popup:hover {
    color: #333;
}

.product-images {
    flex: 1;
    padding: 30px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-product-image {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 4px;
}

.product-info {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.collection-link {
    margin-bottom: 15px;
    color: #666;
}

.collection-link a {
    color: #0066cc;
    text-decoration: none;
}

.collection-link a:hover {
    text-decoration: underline;
}

.price {
    font-size: 22px;
    font-weight: bold;
    color: #d32f2f;
    margin: 15px 0;
}

.description {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #444;
}

.add-to-cart-form {
    margin-top: auto;
}

.quantity-selector {
    margin-bottom: 15px;
}

.quantity-selector label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.quantity-selector input {
    width: 80px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--shop-second-btn);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-cart-btn:hover {
    background-color: var(--shop-second-btn-hover);
}

.add-to-cart-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.out-of-stock {
    color: #d32f2f;
    font-weight: 500;
    margin-top: 20px;
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    color: white;
    z-index: 1001;
    animation: slide-in 0.5s ease-out;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.notification.success {
    background-color: #00ff26;
}

.notification.error {
    background-color: #f44336;
}

.notification.fade-out {
    animation: fade-out 0.5s ease-out;
}

.cart-count.updated {
    animation: bounce 0.5s;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-in {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

@media (max-width: 768px) {
    .product-detail-modal {
        flex-direction: column;
        max-width: 95%;
    }
    
    .product-images {
        padding: 20px;
    }
    
    .product-info {
        padding: 20px;
    }
}