/* cart-style.css - Estilos Premium para o Carrinho Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: #0a0a0a;
    border-left: 1px solid rgba(139, 92, 246, 0.3);
    z-index: 10000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

.cart-sidebar.active {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-style: italic;
    font-size: 1.5rem;
    text-transform: uppercase;
}

.cart-close {
    background: none;
    border: none;
    color: #666;
    font-size: 1.8rem;
    cursor: pointer;
    transition: 0.3s;
}

.cart-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 1.2rem;
    margin-bottom: 1rem;
    transition: 0.3s;
}

.cart-item:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(139, 92, 246, 0.3);
}

.cart-item img {
    width: 70px;
    height: 90px;
    object-fit: cover;
    border-radius: 0.8rem;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-item-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.cart-item-price {
    color: var(--store-accent);
    font-weight: 900;
    font-style: italic;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #444;
    cursor: pointer;
    transition: 0.3s;
}

.cart-item-remove:hover {
    color: #ef4444;
}

.cart-footer {
    padding: 2rem;
    background: rgba(255,255,255,0.02);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.1rem;
}

.btn-checkout-cart {
    width: 100%;
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
    color: #fff;
    border: none;
    padding: 1.2rem;
    border-radius: 1.2rem;
    font-weight: 900;
    font-style: italic;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.cart-empty-msg {
    text-align: center;
    color: #666;
    margin-top: 3rem;
}

.cart-count-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 900;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000;
}

@media (max-width: 480px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}
