.nav-links li {
  list-style: none;
}
.cart-icon {
  position: relative;
  cursor: pointer;
  /* margin-left: 2rem; */
  color: var(--color-white);
}
/* .floating .cart-icon{
  color: var(--color-text);
} */
.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--neon-blue);
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 600;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--color-text);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  width: 320px;
  padding: 1.65rem;
  display: none;
  z-index: 1000;
  cursor: default;
}

.cart-items {
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 1rem;
  /* Opcional: para personalizar a aparência do scroll */
  scrollbar-width: thin;
  scrollbar-color: var(--neon-blue) var(--electric-purple);
  
}

/* Para navegadores baseados em WebKit */
.cart-items::-webkit-scrollbar {
  width: 6px;
}

.cart-items::-webkit-scrollbar-track {
  background: var(--electric-purple);
}

.cart-items::-webkit-scrollbar-thumb {
  background-color: var(--neon-blue);
  border-radius: 3px;
}
.cart-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--electric-purple);
}

.cart-item:last-child {
  border-bottom: none;
}

/* Botão de fechar no dropdown */
.close-dropdown {
  position: absolute;
  top: 5px;
  right: 5px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--color-white);
  cursor: pointer;
  z-index: 1100;
  line-height: 1;
  padding: 0;
}

.close-dropdown:hover {
  color: var(--neon-blue);
}

.remove-item-btn{
  color: var(--pure-white);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-right: .4rem;
}
.remove-item-btn:hover{
  color: var(--neon-blue);
}

.cart-item-image {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.cart-item-name {
  font-weight: 500;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.cart-item-price {
  font-size: 0.9rem;
  color: var(--color-white);
}

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

.quantity-btn {
  background: none;
  border: 1px solid var(--electric-purple);
  color: var(--color-white);
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.quantity-btn:hover {
  background: var(--electric-purple);
}

.cart-total {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--neon-blue);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.reset-cart-button,
.checkout-button {
  display: block;
  width: 100%;
  padding: 0.75rem;
  margin-top: 1rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.reset-cart-button {
  background: var(--neon-blue);
  color: var(--color-text);
}

.checkout-button {
  background: var(--electric-purple);
  color: var(--color-text);
}

.reset-cart-button:hover {
  background: #6cbef5;
}

.checkout-button:hover {
  background: #bb72ff;
}

.empty-cart {
  text-align: center;
  padding: 2rem 0;
  color: var(--color-white);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  /* .cart-dropdown {
    width: 280px;
  } */
  .cart-dropdown {
    position: absolute;
    top: -380%;         /* Abaixo do container do carrinho */
    right: -130px;           /* Alinhado à esquerda */
    width: 300px;      /* Defina a largura conforme sua necessidade */
    
    /* Limita a altura e adiciona scroll se necessário */
    max-height: 80vh;
    overflow-y: auto;
  }

  .cart-item-name {
    font-size: 0.8rem;
  }
  
  .cart-item-price {
    font-size: 0.8rem;
  }
}