/* src/public/modules/store/product-modal/product-modal.css */

#product-modal-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
}

#product-modal-container.visible {
    display: block;
}

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

.product-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.product-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #333;
    z-index: 10;
}

.product-modal-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.product-modal-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
}

@media (min-width: 600px) {
    .product-modal-content {
        flex-direction: row;
    }
}

.product-modal-image {
    flex: 1;
    min-height: 250px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

@media (min-width: 600px) {
    .product-modal-image {
        flex: 1;
        min-height: 350px;
        border-radius: 16px 0 0 16px;
    }
}

.product-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 400px;
}

.product-modal-details {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-modal-category {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.product-modal-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #222;
    line-height: 1.3;
}

.product-modal-brand {
    font-size: 0.95rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-modal-brand i {
    color: var(--primary-color);
}

.product-modal-price-section {
    margin: 10px 0;
}

.product-modal-original-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
    margin-right: 10px;
}

.product-modal-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-modal-price.discount {
    color: #e74c3c;
}

.product-modal-discount-badge {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 10px;
}

.product-modal-description {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    background: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.product-modal-actions {
    margin-top: auto;
    padding-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-modal-add-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.product-modal-add-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product-modal-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.product-modal-quantity button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-modal-quantity button:hover {
    background: var(--primary-color);
    color: white;
}

.product-modal-quantity span {
    font-size: 1.2rem;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

@media (max-width: 480px) {
    .product-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .product-modal-name {
        font-size: 1.3rem;
    }
    
    .product-modal-price {
        font-size: 1.5rem;
    }
}
