/*** CARRINHO Sidebar ***/ 
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
} 
.carrinho-sidebar {
    position: fixed;
    top: 0;
    right: -400px; /* Começa fora da tela */
    width: 350px;
    max-width: 100%;
    height: 100dvh;
    background-color: #fff;
    z-index: 999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
} 
.carrinho-sidebar.open {
    right: 0;
} 
.carrinho-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}
.carrinho-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}
.carrinho-header .closeBtn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
} 
.carrinho-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
} 
.carrinho-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #888;
}
.carrinho-empty i {
    font-size: 50px;
    margin-bottom: 15px;
    opacity: 0.4;
}
.carrinho-empty p {
    margin-bottom: 25px;
}
.btn-continue {
    background-color: #fff;
    color: #333;
    border: 1px solid #333;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-continue:hover {
    background-color: #f5f5f5;
} 
.carrinho-items {
    display: none; /* Por padrão os itens estão ocultos para mostrar o estado vazio */
}
.carrinho-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    position: relative;
}
.item-image {
    width: 80px;
    height: 100px;
    overflow: hidden;
    margin-right: 15px;
}
.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.item-details {
    flex: 1;
}
.item-details h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
}
.item-price {
    font-weight: bold;
    margin-bottom: 10px;
}
.item-quantity {
    display: flex;
    align-items: center;
}
.qty-btn {
    width: 25px;
    height: 25px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.item-quantity span {
    margin: 0 10px;
    min-width: 20px;
    text-align: center;
}
.remove-item {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
}
.remove-item:hover {
    color: #d9534f;
} 
.carrinho-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
}
.subtotal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-weight: bold;
}

.btn-finalizar {
    width: 100%;
    padding: 12px 0;
    background-color: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background-color 0.3s;
}
.btn-finalizar:hover {
    background-color: #222;
}
.btn-continue-shopping {
    width: 100%;
    padding: 10px 0;
    background-color: transparent;
    color: #333;
    border: 1px solid #333;
    cursor: pointer;
    transition: background-color 0.3s;
}
.btn-continue-shopping:hover {
    background-color: #f0f0f0;
}
@media (max-width: 400px) {
  .carrinho-sidebar {
    width: 100%;
  }
}