#cart-icon {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: var(--first-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.0rem;
    cursor: pointer;
    z-index: 100;
    margin-bottom: 60px;
    margin-right: 18px;
}

#cart-count {
    position: absolute;
    top: -6px;
    right: -1px;
    background: white;
    color: var(--first-color);
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.8rem;
    font-weight: bold;
}

.cart__modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.cart__content {
    background: var(--admin-card);
    padding: 2rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 500px;
    background-color: rgba(250, 250, 250, 0.637);
}

.cart__item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--admin-border);
    padding-bottom: 0.5rem;
}

.close-cart {
    color: aliceblue;
    border-radius: 20px;
    width: 600px;
    font-size: larger;
    cursor: pointer;
}


.h3 {
    margin-bottom: 5px;
    margin-top: 5px;
}
/*=============== mobile ===============*/

@media screen and (max-width: 360px),
(max-width: 375px ),
(max-width: 414px ),
(max-width: 430px ),
(max-width: 768px ),
(max-width: 820px ),
(max-width: 1024px ) {
  #cart-icon {
    width: 40px; 
    height: 40px; 
    font-size: 20px;
    padding: 0;
    margin-right: -9px;
  }
 .cart__content {
    font-size: 80%;
 }

}


/*=============== Barra de Rolagem ===============*/

/* Container que envolve os itens do carrinho */
#cart-items {
    max-height: 400px; /* Ajuste esta altura conforme necessário */
    overflow-y: auto;  /* Ativa a rolagem vertical quando o conteúdo excede a altura */
    padding-right: 10px; /* Espaço para a barra não cobrir o ícone de lixeira */
    margin-bottom: 1rem;
}

/* Personalização da Barra de Rolagem (Webkit - Chrome, Edge, Safari) */
#cart-items::-webkit-scrollbar {
    width: 6px;
}

#cart-items::-webkit-scrollbar-track {
    background: var(--gray-border);
    border-radius: 10px;
}

#cart-items::-webkit-scrollbar-thumb {
    background: var(--black-color);
    border-radius: 10px;
}

#cart-items::-webkit-scrollbar-thumb:hover {
    background: var(--first-color); /* Muda para a cor principal ao passar o mouse */
}

/* Estilização básica para os itens não ficarem colados */
.cart__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-border);
}

.ri-delete-bin-line {
    cursor: pointer;
    color: #ff4d4d;
    margin-left: 10px;
}

/*============ Melhoria no Toque (Mobile UX) ==========*/

.cart__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0; /* Aumentado para facilitar o toque */
    border-bottom: 1px solid var(--gray-border);
}

.ri-delete-bin-line {
    font-size: 1.25rem; /* Ícone um pouco maior no mobile */
    color: #eb4d4b;
    padding: 5px; /* Área de clique maior */
    cursor: pointer;
}
