/* ============================================
   SHOP MODULE - ADD TO CART MODAL STYLES
   ============================================ */

/* Modal Overlay */
.shop-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.shop-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

/* Modal Content */
.shop-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.shop-modal-content.shop-modal-show {
    transform: scale(1);
    opacity: 1;
}

/* Modal Close Button */
.shop-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
    font-size: 18px;
}

.shop-modal-close:hover {
    background: #e2e8f0;
    color: #334155;
    transform: rotate(90deg);
}

/* Modal Icon */
.shop-modal-icon {
    text-align: center;
    margin-bottom: 20px;
}

.shop-modal-icon i {
    font-size: 60px;
    color: #10b981;
    animation: shop-icon-bounce 0.6s ease;
}

@keyframes shop-icon-bounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Modal Title */
.shop-add-cart-modal h3 {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 25px 0;
}

/* Modal Product Info */
.shop-modal-product {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
}

.shop-modal-product-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    border: 1px solid #e2e8f0;
}

.shop-modal-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-modal-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.shop-modal-product-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-modal-product-brand {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.shop-modal-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #ef4444;
    margin: 5px 0 0 0;
}

.shop-modal-product-price .shop-original-price {
    font-size: 14px;
    font-weight: 400;
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 8px;
}

.shop-modal-product-quantity {
    font-size: 14px;
    color: #475569;
    margin: 5px 0 0 0;
}

.shop-modal-product-quantity strong {
    color: #1e293b;
    font-weight: 600;
}

/* Modal Actions */
.shop-modal-actions {
    display: flex;
    /* flex-direction: column; */
    gap: 10px;
}

.shop-modal-actions .shop-btn {
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.shop-modal-actions .shop-btn-primary {
    background: #ef4444;
    color: white;
}

.shop-modal-actions .shop-btn-primary:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.shop-modal-actions .shop-btn-secondary {
    background: white;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.shop-modal-actions .shop-btn-secondary:hover {
    background: #f8fafc;
    color: #334155;
    border-color: #cbd5e1;
}

.shop-modal-actions .shop-btn-block {
    width: 45%;
}

/* Responsive */
@media (max-width: 576px) {
    .shop-modal-content {
        padding: 20px;
        width: 95%;
    }

    .shop-add-cart-modal h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .shop-modal-icon i {
        font-size: 50px;
    }

    .shop-modal-product {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .shop-modal-product-image {
        width: 120px;
        height: 120px;
    }

    .shop-modal-actions .shop-btn {
        font-size: 15px;
        padding: 12px 20px;
    }
}

/* Loading Animation for Modal */
@keyframes shop-modal-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.shop-modal[style*="display: flex"] {
    animation: shop-modal-fade-in 0.3s ease;
}
