/* Overlay */
/* #overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 998;
}
#overlay.active {
  opacity: 1;
  pointer-events: all;
} */
/* ===== Carrinho Móvel (Minimalista e Profissional) ===== */
.mobile-cart {
  position: fixed;
  top: 75px;
  right: 0;
  width: 320px;
  max-width: 90%;
  height: max-content;
  max-height: 600px;
  /* height: 600px; */
  /* height: calc(100vh - 65px); */
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px 0 0 20px;
  box-shadow: -6px 0 20px rgba(0, 0, 0, 0.15);
  transform: translateX(110%);
  transition: transform 0.3s ease;
  z-index: 999;
  overflow-y: auto;
  padding: 20px 18px;
  font-family: "Roboto", sans-serif;
}

.mobile-cart.open {
  transform: translateX(0%);
}

/* ===== Cabeçalho ===== */
.mobile-cart h4 {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  padding-bottom: 15px;
  border-bottom: 1px solid #e5e7eb;
}

/* ===== Lista de Itens ===== */
#cart-items-list {
  margin: 20px 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#cart-items-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  background: #f9fafb;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#cart-items-list li:hover {
  background: #f3f4f6;
  transform: translateY(-2px);
}

#cart-items-list li img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.cart-item-info {
  flex: 1;
  font-size: 14px;
  color: #111827;
  display: flex;
  flex-direction: column;
}

.cart-item-info span {
  font-size: 13px;
  color: #6b7280;
}

/* ===== Botão Remover ===== */
.remove-item {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 16px;
  transition: color 0.3s ease;
}

.remove-item:hover {
  color: #dc2626;
}

/* ===== Total ===== */
#mobile-cart-total {
  font-weight: 600;
  font-size: 16px;
  color: #111827;
}

.mobile-cart ul > li strong {
  color: #374151;
}

/* ===== Ações ===== */
.cart-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  gap: 10px;
}

.cart-actions button,
.cart-actions a {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
}

.cart-actions button {
  background: #f3f4f6;
  color: #374151;
  border: none;
}

.cart-actions button:hover {
  background: #e5e7eb;
}

.cart-actions a {
  background: #2175ca;
  color: #fff;
  box-shadow: 0 2px 8px rgba(33, 117, 202, 0.25);
}

.cart-actions a:hover {
  background: #1b5ea8;
  box-shadow: 0 3px 10px rgba(33, 117, 202, 0.35);
}

/* ===== Scroll Suave ===== */
.mobile-cart::-webkit-scrollbar {
  width: 6px;
}

.mobile-cart::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 10px;
}

.mobile-cart::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* ===== Responsividade ===== */
@media (max-width: 480px) {
  .mobile-cart {
    width: 75%;
    /* border-radius: 0; */
    /* top: 60px; */
    padding: 16px;
  }

  #cart-items-list li {
    flex-direction: row;
    align-items: flex-start;
  }

  .cart-actions {
    flex-direction: column;
  }

  .cart-actions button,
  .cart-actions a {
    width: 100%;
  }
}

