/* Estilos do Modal do Carrinho */
.cart-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.cart-modal-content {
    background-color: #1A1A2E;
    margin: 2% auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 0, 0.3);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 0, 0.1), rgba(74, 222, 128, 0.1));
}

.cart-modal-header h2 {
    color: #ffff00;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.cart-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.cart-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.cart-modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.cart-items {
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(31, 41, 55, 0.8);
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    color: white;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.cart-item-details {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: #ffff00;
    font-weight: bold;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.quantity-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.quantity-display {
    color: white;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.remove-btn {
    background: #ff4444;
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.3s ease;
}

.remove-btn:hover {
    background: #cc3333;
}

.cart-summary {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.cart-totals {
    margin-bottom: 1rem;
}

.cart-totals>div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: white;
}

.cart-total {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffff00 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.shipping-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: bold;
}

.shipping-message.free {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.shipping-message.paid {
    background: rgba(250, 204, 21, 0.2);
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.3);
}

.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, #ffff00, #facc15);
    color: #1A1A2E;
    border: none;
    border-radius: 8px;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.checkout-btn:hover {
    transform: translateY(-2px);
}

.checkout-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
}

.empty-cart {
    text-align: center;
    color: #ccc;
    padding: 2rem;
}

.empty-cart i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #666;
}

/* Responsividade para o modal do carrinho */
@media (max-width: 768px) {
    .cart-modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .cart-item {
        flex-direction: column;
        text-align: center;
    }

    .cart-item-image {
        width: 120px;
        height: 120px;
    }
}