﻿
.cart-modal-overlay[hidden] {
    display: none !important;
}

.cart-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cart-modal {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    background: #1c1c1e;
    border: 1px solid #3a3530;
    border-radius: 18px;
    padding: 30px;
    color: white;
    font-family: "Outfit", sans-serif;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.65);
    animation: cartModalAppear 0.25s ease;
}

@keyframes cartModalAppear {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cart-modal-close {
    position: absolute;
    right: 18px;
    top: 15px;
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 22px;
    cursor: pointer;
}

    .cart-modal-close:hover {
        color: #e7c47b;
    }

.cart-modal-success {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 20px;
    margin-bottom: 25px;
}

    .cart-modal-success i {
        color: #41d97a;
        font-size: 28px;
    }

    .cart-modal-success h2 {
        font-size: 23px;
        font-weight: 600;
        margin: 0;
    }

.cart-modal-product {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid #363636;
    border-bottom: 1px solid #363636;
}

    .cart-modal-product img {
        width: 110px;
        height: 110px;
        object-fit: contain;
        background: #252527;
        border-radius: 10px;
        padding: 8px;
    }

.cart-modal-product-info {
    min-width: 0;
}

    .cart-modal-product-info h3 {
        font-size: 19px;
        font-weight: 600;
        margin-bottom: 10px;
        overflow-wrap: anywhere;
    }

    .cart-modal-product-info p {
        font-size: 15px;
        color: #aaa;
        margin-bottom: 8px;
    }

    .cart-modal-product-info span {
        font-size: 22px;
        font-weight: 700;
        color: #e7c47b;
    }

.cart-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.cart-modal-view-cart,
.cart-modal-continue {
    flex: 1;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 12px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s ease;
}

.cart-modal-view-cart {
    background: #e7c47b;
    color: #111;
    border: 1px solid #e7c47b;
}

    .cart-modal-view-cart:hover {
        background: #f5d38a;
        color: #111;
        text-decoration: none;
    }

.cart-modal-continue {
    background: transparent;
    color: #e7c47b;
    border: 1px solid #e7c47b;
}

    .cart-modal-continue:hover {
        background: rgba(231, 196, 123, 0.1);
    }

body.cart-modal-open {
    overflow: hidden;
}

@media (max-width: 480px) {
    .cart-modal {
        padding: 24px 18px;
    }

    .cart-modal-success h2 {
        font-size: 20px;
    }

    .cart-modal-product img {
        width: 85px;
        height: 85px;
    }

    .cart-modal-actions {
        flex-direction: column;
    }

    .cart-modal-view-cart,
    .cart-modal-continue {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cart-modal {
        animation: none;
    }
}
