:root {
  --brand: #00a3e4;
  --accent: #c7162a;
  /* cor de destaque secundária */
  --bg: #ffffff;
  --muted: #6b6b6b;
  --card-radius: 12px;
  --gap: 16px;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  background: var(--bg);
  color: #222;
  -webkit-font-smoothing: antialiased;
}

main {
  padding-bottom: 80px; /* Ajuste conforme a altura do rodapé */
}

.container {
  padding-bottom: 100px;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f6b24d, #c7162a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.logo-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  /* <- deixa redonda */
  object-fit: cover;
  /* corta excesso mantendo proporção */
}

.store-info {
  line-height: 1;
}

.store-name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.store-sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
  text-decoration: none;
}

.store-sub a:hover {
  text-decoration: none;
  color: #00a3e4;
}

/* status + ETA row */
.status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.badge-success {
  background: #e6f9f1;
  color: #0b7a49;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.badge-danger {
  background: #ffa2a2;
  color: #ac1313ff;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eta {
  color: var(--muted);
  font-size: 13px;
}

/* More actions */
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.action-btn {
  background: transparent;
  border: 0;
  padding: 8px 10px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

/* "Mais Pedidos" */
.section-title {
  font-size: 20px;
  font-weight: 700;
  margin: 26px 0 12px 0;
}

.top-sold {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.top-sold::-webkit-scrollbar {
  display: none;
}

.card {
  min-width: 220px;
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #000;
}

.card-category-conteudo {
  height: 96px;
}

.card-title-mais-vendidos {
  font-weight: 700;
  margin-bottom: 6px;
}

.card-price-mais-vendidos {
  color: var(--muted);
  margin-bottom: 12px;
}

.btn-add {
  background: var(--accent);
  color: white;
  border: 0;
  padding: 10px 12px;
  width: 100%;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.btn-add.btn-disabled {
  background: #ccc; /* cinza apagado */
  color: #666; /* texto apagado */
  cursor: not-allowed; /* cursor de bloqueado */
  box-shadow: none;
}

.card-img-wrapper {
  position: relative;
}

.card-img-wrapper img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  border-top-left-radius: var(--card-radius);
  border-top-right-radius: var(--card-radius);
}
/* 
.tag-hot {
   position: absolute;
  top: 10px;
  left: 10px;
  background: #ffe9e9;
  color: #f84343;
  padding: 6px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  z-index: 2;
} */

.tags-container {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex; /* deixa lado a lado */
  gap: 6px; /* espaço entre as tags */
  z-index: 2; /* garante que fiquem acima da imagem */
}

.tag-hot,
.tag-promo {
  font-size: 12px;
  font-weight: bold;
  padding: 3px 6px;
  border-radius: 999px;
  color: #fff;
  white-space: nowrap;
}

.tag-hot {
  background: #e63946; /* vermelho */
}

.tag-promo {
  background: #00a3e4; /* azul da identidade Sysvon */
}
/* 
.tag-hot-no {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
} */

/* Categories grid */
.categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.cat-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.cat-card img {
  width: 84px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.cat-title {
  font-weight: 700;
  font-size: 16px;
}

/* Floating cart */
.cart-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: var(--brand);
  color: white;
  padding: 12px 16px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 40;
  cursor: pointer;
  font-weight: 700;
}

/* Responsive */
@media (min-width: 900px) {
  .top-sold {
    gap: 20px;
  }

  .card {
    min-width: 260px;
  }

  .categories {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* small helpers */
.sr-only {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Container do carrossel */
#topSold {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 1rem 0;
  scroll-behavior: smooth;
  cursor: grab; /* Indica que pode arrastar */
}

/* Esconde a barra de rolagem */
#topSold::-webkit-scrollbar {
  display: none;
}

/* Efeito de arrastar */
#topSold:active {
  cursor: grabbing;
}

/* Animação automática */
@keyframes scroll-carousel {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  } /* Ajuste conforme a quantidade de cards */
}

#topSold.auto-scroll {
  animation: scroll-carousel 20s linear infinite;
}

/* Flex item para manter o tamanho do card */
.card {
  flex: 0 0 auto;
}

input[type="checkbox"],
input[type="radio"] {
  position: absolute !important;
}
