/* Sidebar do carrinho */
#cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 100%;
    height: 100%;
    background: #f8f9fa;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    border-radius: 30px 0 0 30px;
    font-family: 'Roboto', sans-serif;
    color: #343a40;
    overflow: hidden;
}

#cart-sidebar.open {
    right: 0;
}

/* Responsivo */
@media (min-width: 768px) {
    #cart-sidebar {
        width: 400px;
    }
}
@media (min-width: 1024px) {
    #cart-sidebar {
        width: 500px;
    }
}
@media (min-width: 1400px) {
    #cart-sidebar {
        width: 600px;
    }
}

/* Cabeçalho */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #e9ecef;
    border-bottom: 1px solid #dee2e6;
}
.cart-header h2 {
    font-size: 1.25rem;
    margin: 0;
}
#close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    transition: color 0.2s ease;
}
#close-cart:hover {
    color: #212529;
}

/* Conteúdo */
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}
.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #dee2e6;
}
.item-thumb img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}
.item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.item-info-text {
    flex-direction: row;
}
.item-title {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 4px;
}
.item-title:hover {
    text-decoration: underline;
}
.item-price {
    color: #212529;
    font-size: 0.95rem;
}
.remove-item {
    background: none;
    border: none;
    font-size: 20px;
    color: #dc3545;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}
.remove-item:hover {
    color: #a71d2a;
}

/* Rodapé */
.cart-footer {
    padding: 20px;
    border-top: 1px solid #dee2e6;
    background: #e9ecef;
}
.cart-footer strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #212529;
}
.checkout {
    width: 100%;
    padding: 12px;
    background: #8602FD;
    color: #fff;
    border: none;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-radius: 30px;
}
.checkout:hover {
    background: #A745FF;
}

/* Fundo escuro ao abrir o carrinho */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1000;
}

/* Controle de quantidade */
.quantity-control {
    margin-top: 8px;
}

.quantity-group {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    max-width: 110px;
    background: #f9f9f9;
}

.qty-btn {
    width: 32px;
    height: 32px;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-right: 1px solid #ddd;
    padding: 0;
    transition: background 0.2s;
    font-size: 18px;
    color: #333;
}

.qty-btn.plus {
    border-left: 1px solid #ddd;
    border-right: none;
}

.qty-btn:hover {
    background: #f1f1f1;
}

.qty-input {
    width: 40px;
    height: 32px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 14px;
}
.qty-input:focus {
    outline: none;
}

.cart-table-total {
    width: 100%;
}

.tr-total {
    font-weight: bold;
}

.btn-remove-cupom {
    
}

.tr-cupom-desconto {
    font-weight: bold;
    color: #CD0004;
}

#cart-sidebar .valor {
    text-align: right;
}

.cart-cupom {
    border-top: 1px solid #CCC;
    padding: 20px;
    text-align: center;
}

.cart-cupom label {
    padding: 5px;
    font-weight: bold;
}

.cart-cupom .cupom-desconto {
    background-color: #EFEFEF;
    padding: 10px;
    border-radius: 20px;
}

.cart-cupom .btn-cupom-desconto {
    background: #000;
    color: #FFF;
    padding: 10px;
    border-radius: 20px;
}




