/* ===== Página Recomendados ===== */

/* Barra topo */
.recom-top-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem 0.5rem;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #f0f0f0;
}

.recom-voltar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #333;
  text-decoration: none;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.15s;
}

.recom-voltar-btn:hover {
  background: #f5f5f5;
}

.recom-voltar-btn svg {
  width: 20px;
  height: 20px;
}

.recom-page-title {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  margin: 0;
}

/* Secção principal */
.recom-section {
  padding: 0.75rem 0.75rem 5rem;
  background: #f7f7f7;
  min-height: calc(100vh - 120px);
}

/* Grid de cartões — mobile: 1 coluna */
.recom-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* Ajuste de cartão para a página */
.recom-card {
  flex: unset !important;
  width: 100% !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09) !important;
  overflow: hidden;
}

.recom-card .produto-left {
  width: 110px;
  height: 100px;
}

.recom-card .produto-bg {
  position: absolute !important;
  width: 100% !important;
  height: 100% !important;
  top: 0 !important;
  left: 0 !important;
  transform: none !important;
  border-radius: 0 !important;
  object-fit: contain !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

.recom-card .produto-img {
  position: relative !important;
  z-index: 1 !important;
  width: 72px !important;
  height: 72px !important;
  object-fit: contain !important;
  border-radius: 50% !important;
}

.recom-card .produto-right {
  padding: 0.7rem 0.9rem;
  gap: 5px;
}

/* Preço antigo riscado */
.produto-preco-old {
  font-size: 0.68rem;
  color: #aaa;
  text-decoration: line-through;
  font-weight: 500;
  white-space: nowrap;
}

/* Badge de desconto — espaçamento separado do preço */
.recom-card .produto-precos {
  gap: 6px !important;
}

.recom-card .produto-desconto-badge {
  margin-left: 4px;
}

/* PC — 2 colunas */
@media screen and (min-width: 640px) {
  .recom-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

/* PC — 3 colunas a partir de 1024px */
@media screen and (min-width: 1024px) {
  .recom-section {
    padding: 1.25rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
  }

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

  .recom-top-bar {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 0;
  }

  .recom-card .produto-left {
    width: 130px;
    height: 110px;
  }

  .recom-card .produto-img {
    width: 86px !important;
    height: 86px !important;
  }
}
