/* ==========================
   RESET
========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #f3f4f6;
}

body.no-scroll {
  overflow: hidden;
}

/* ==========================
   HEADER
========================== */
.header {
  width: 100%;
  height: 460px;
  background-color: #2563eb;
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;

  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
}

.header-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 12px 22px;

  position: absolute;
  top: 0;
  left: 0;
}

.header-container button {
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

/* BADGE */
.cart-btn {
  position: relative;
}

#cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

/* ==========================
   HERO
========================== */
.apresentacao {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  height: 100%;
  text-align: center;
  color: #fff;

  max-width: 420px;
  width: 100%;
}

.logo {
  width: 10rem;
  height: 10rem;
  border-radius: 9999px;
  margin-bottom: 24px;
  object-fit: cover;

  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.12),
    0 6px 10px rgba(0, 0, 0, 0.08);
}

.titulo {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.subtitulo {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 18px;
}

.date-span span {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

.aberto {
  background: #22c55e;
}
.fechado {
  background: #ef4444;
}

/* ==========================
   CATÁLOGO
========================== */
.catalogo {
  margin-top: -30px;
  padding: 60px 20px 80px;
  text-align: center;
}

.catalogo h2 {
  font-size: 28px;
  font-weight: 700;
}

/* ==========================
   FILTROS
========================== */
.filtros {
  margin-top: 25px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;

  max-width: 1000px;
  margin-inline: auto;
}

.input-group,
.select-group {
  display: flex;
  align-items: center;
  gap: 10px;

  background: #fff;
  border-radius: 10px;
  padding: 12px 16px;

  border: 1px solid #e5e7eb;
  box-shadow: none;

  flex: 1;
  min-width: 280px;
}

.input-group input,
.select-group select {
  border: none;
  outline: none;
  width: 100%;
}

.input-group i,
.select-group i {
  color: #9ca3af;
}

.select-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background: transparent;
}

/* ==========================
   PRODUTOS
========================== */
.produtos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 30px;
}

@media (max-width: 1024px) {
  .produtos {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .produtos {
    grid-template-columns: 1fr;
  }
}

/* CARD */
.card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  text-align: center;

  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: 0.2s;

  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 🔥 ESSENCIAL */
}

.card:hover {
  transform: translateY(-3px);
}

.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #22c55e;
  color: #fff;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
}

.card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 8px;
}

.card h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  min-height: 42px;
}
.card p {
  font-size: 12px;
  color: #666;
  min-height: 36px;
}

.preco {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin: 10px 0;
  margin-top: auto;
}

/* ==========================
   BOTÃO / CONTADOR (GLOBAL)
========================== */
.btn-add {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 8px;
  border-radius: 8px;
  width: 100%;
  cursor: pointer;
}

.btn-add:hover {
  background: #60a5fa;
}

.contador {
  display: inline-flex;
  align-items: center;

  border: 2px solid #111;
  border-radius: 10px;

  height: 40px;
  padding: 0 10px;
  gap: 8px;
  margin-top: 10px;
}

.contador button {
  width: 34px;
  height: 34px;

  border: none;
  background: #f3f4f6;
  border-radius: 8px;

  font-size: 18px;
  font-weight: 700;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: 0.2s;
}

.contador button:hover {
  background: #e5e7eb;
}

.contador span {
  font-size: 15px;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}
/* ==========================
   OVERLAY
========================== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 999;
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ==========================
   CARRINHO
========================== */
.cart {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 100%;
  height: 100%;
  background: #fff;

  transform: translateX(100%);
  transition: transform 0.3s ease;

  z-index: 1000;

  display: flex;
  flex-direction: column;
}

.cart.active {
  transform: translateX(0);
}

@media (max-width: 768px) {
  .cart {
    width: 100%;
  }
}

/* HEADER */
.cart-header {
  display: flex;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #eee;
}

.btn-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #ef4444;
}

/* STEPS */
.cart-step {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.cart-step.active {
  display: flex;
}

/* ITENS */
.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 14px 16px;

  border-bottom: 1px solid #eee;
}

.cart-img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* TOPO */
.cart-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-top strong {
  flex: 1;
  font-size: 14px;
}

/* PREÇO */
.cart-price {
  margin-left: auto;
  padding-left: 12px;

  font-weight: 700;
  font-size: 14px;

  white-space: nowrap;
}

/* CONTADOR NO CARRINHO */
.cart-item .contador {
  display: inline-flex;
  align-items: center;

  height: 30px;
  padding: 0 6px;

  border: 1.5px solid #111;
  border-radius: 8px;

  gap: 6px;

  width: fit-content;
}

.cart-item .contador button {
  width: 22px;
  height: 22px;

  font-size: 15px;
  font-weight: 600;

  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item .contador span {
  min-width: 18px;
  text-align: center;

  font-size: 14px;
  font-weight: 700;
}

/* ENDEREÇO */
.cart-address {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-address input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #f9fafb;
}

.cart-address input:focus {
  border-color: #2563eb;
}

/* FOOTER */
.cart-footer {
  padding: 16px;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-footer button {
  padding: 12px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.btn-whatsapp {
  background: #2563eb;
  color: #fff;
}

.btn-whatsapp:hover {
  background: #60a5fa;
}

/* ==========================
   MENU LATERAL
========================== */
.menu {
  position: fixed;
  top: 0;
  left: 0;

  width: 320px;
  max-width: 100%;
  height: 100%;

  background: #2563eb;

  transform: translateX(-100%);
  transition: transform 0.3s ease;

  z-index: 1000;

  display: flex;
  flex-direction: column;
}

.menu.active {
  transform: translateX(0);
}

.menu-header {
  display: flex;
  justify-content: space-between;
  padding: 16px;
  color: #fff;
}

.menu-content {
  padding: 20px;
  color: #fff;

  display: flex;
  flex-direction: column;
  gap: 12px;

  overflow-y: auto;
}

.menu-content h4 {
  font-size: 14px;
  margin-top: 10px;
  opacity: 0.8;
}

.menu-content p {
  font-size: 14px;
}

.menu-contato a {
  display: flex;
  align-items: center;
  gap: 8px;

  color: #fff;
  text-decoration: none;
}

.menu-redes {
  display: flex;
  gap: 12px;
}

.menu-redes a {
  width: 40px;
  height: 40px;

  display: flex; /* 🔥 importante */
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;

  color: #fff;
  font-size: 18px;

  text-decoration: none;
  line-height: 0;
}

.menu-redes a i {
  display: block;
}

/* ==========================
   RESUMO
========================== */
#resumo {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#resumo p {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

#resumo hr {
  border: none;
  height: 1px;
  background: #eee;
  margin: 10px 0;
}

#resumo strong {
  font-size: 16px;
}

/* ==========================
   UTIL
========================== */
.input-error {
  border: 2px solid #ef4444 !important;
}

.cart-items,
.cart-address,
#resumo {
  flex: 1;
  overflow-y: auto;
}

/* SCROLL */
.cart-items::-webkit-scrollbar,
#resumo::-webkit-scrollbar {
  width: 6px;
}

.cart-items::-webkit-scrollbar-thumb,
#resumo::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 10px;
}

/* ==========================
   BOTÃO FLUTUANTE
========================== */

.floating-cart {
  position: fixed;
  bottom: 20px;
  right: 20px;

  width: 60px;
  height: 60px;
  border-radius: 50%;

  background: #2563eb;
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;
  border: none;
  cursor: pointer;

  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  z-index: 1100;

  transition: 0.2s;
}

.floating-cart:hover {
  transform: scale(1.1);
}

/* badge */
#floating-cart-count {
  position: absolute;
  top: -5px;
  right: -5px;

  background: #ef4444;
  color: #fff;

  width: 20px;
  height: 20px;
  border-radius: 50%;

  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}
