:root {
  --card-radius: 12px;
  --card-bg: #fff;
  --card-border: #ddd;
  --title-color: #333;
  --text-color: #555;
  --price-color: #000;
  --accent: #c62828;
}

.product-card {
  width: 100%;
  max-width: 520px;
  /* +30px pra acomodar 2 linhas de descrição (Gustavo 2026-06-24).
     Cards sem descrição vão ter espaço sobrando em baixo — aceitável
     pra manter altura uniforme no grid. */
  height: 210px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin: 0 auto;
}

.product-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.product-card-content {
  display: flex;
  gap: 16px;
  align-items: center;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.product-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.product-card-content .top-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.product-card-content .top-row .info {
  flex: 1;
  min-width: 0;
}

.product-card-content .btn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Combo tem só o carrinho no btn-row (sem qty-control, add 22/08). No grid, o
   btn-row encolhe pro conteúdo e o botão ficaria à esquerda — alinha à direita
   (desktop) / centraliza (mobile, onde o btn-row já é column). Na lista as
   regras .list-view (width:auto !important, flex:0 0 auto) vencem → só vale grid. */
.card-restaurant[data-is-combo="true"] .product-card-content .btn-row {
  width: 100%;
  justify-content: flex-end;
}

.product-info {
  flex: 1;
}

.title {
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
}

.product-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--title-color);
  margin-bottom: 6px;
}

.product-description {
  color: #777;
  font-size: 12px;
  line-height: 1.3;
  margin: 2px 0 4px;
  /* 2 linhas truncadas com "..." — preserva altura previsível do card
     mesmo quando o lojista escreve descrições muito grandes. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  word-break: break-word;
}

.product-price {
  font-weight: 700;
  color: var(--price-color);
  font-size: 15px;
}

.product-price.promo {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.promo-price {
  color: var(--accent);
  font-size: 16px;
}

.original-price {
  text-decoration: line-through;
  color: #888;
  font-size: 13px;
}

.product-card-content .image {
  display: block;
  width: 90px;
  height: 90px;
  border-radius: 8px;
  object-fit: contain;
  background-color: #fff;
}

.product-card-content .image-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  background: #f3f3f3;
  border: 1px dashed #ddd;
  flex-shrink: 0;
}

.price-row {
  font-size: 14px;
  font-weight: 600;
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.pack-badge {
  background: #ffd54f;
  color: #5c3d00;
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.discount-badge {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
}



@media (max-width: 768px) {
  .product-card {
    width: 100%;
    max-width: none;
    /* +30px pra acomodar 2 linhas de descrição (Gustavo 2026-06-24). */
    height: 330px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .product-card-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .product-card-content .image,
  .product-card-content .image-placeholder {
    width: 100%;
    height: auto;
    max-height: 90px;
    border-radius: 10px;
    object-fit: contain;
  }

  .product-card-content .top-row {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .product-card-content .info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .product-card-content .btn-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .product-card-content .qty-control {
    align-items: center;
  }

  .product-card-content .top-row .info .title {
    padding: 0 16px;
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
  }
}

/* Combos agora têm a MESMA altura dos demais cards (Gustavo/Rafael 22/08):
   antes eram mais baixos (130px desktop / 200px mobile) porque o btn-row era
   vazio; agora têm o botão de carrinho, então herdam a altura padrão (210px
   desktop / 330px mobile) pra não cortar o botão e uniformizar o grid. */