.deals-home {
  margin-top: 22px;
  padding-top: 8px;
}

.deals-home-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.deals-home-text {
  margin: 4px 0 0;
  color: var(--text-muted);
}

.deals-home-link {
  align-self: center;
  white-space: nowrap;
  font-weight: 600;
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.deals-grid-home {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.deals-grid-home .deal-image {
  aspect-ratio: 16 / 11;
}

.deals-grid-home .deal-body {
  padding: 11px;
  gap: 7px;
}

.deal-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-elevated);
  overflow: hidden;
  min-height: 100%;
}

.deal-image {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: center;
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
}

.deal-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

.deal-badge {
  align-self: flex-start;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-muted);
  color: var(--text-muted);
  line-height: 1.2;
}

.deal-badge-placeholder {
  display: block;
  height: 22px;
}

.deal-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.35em * 2);
}

.deal-category {
  margin: 0;
  margin-top: -2px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.3;
}

/* Bloco de preço: grupo visual; com preço antigo, leve destaque de “oportunidade” (sem texto de urgência) */
.deal-pricing {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin-top: 2px;
  padding: 0;
  border-radius: var(--radius-md);
}

.deal-pricing:has(.deal-old-price) {
  padding: 10px 12px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Contraste do bloco mesmo quando --bg-muted === --bg-elevated (tema escuro) */
@supports (background: color-mix(in srgb, red, blue)) {
  .deal-pricing:has(.deal-old-price) {
    background: color-mix(in srgb, var(--bg) 38%, var(--bg-elevated) 62%);
  }
}

@media (prefers-color-scheme: dark) {
  body:not(.light-theme) .deal-pricing:has(.deal-old-price) {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  }
}

body.dark-theme .deal-pricing:has(.deal-old-price) {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* Cards mais estreitos (home + relacionados no post): bloco de preço um pouco mais leve */
.deals-grid-home .deal-pricing:has(.deal-old-price),
.post-related-deal-card .deal-pricing:has(.deal-old-price) {
  padding: 8px 10px;
}

/* Preço atual: hierarquia máxima no card */
.deal-price {
  font-size: clamp(1.125rem, 3.5vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.15;
}

/* Preço antigo: secundário, discreto, contraste com o atual */
.deal-old-price {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  opacity: 0.88;
  line-height: 1.2;
}

.deal-actions {
  margin-top: auto;
  padding-top: 10px;
  width: 100%;
}

/* CTA: mobile-first, alinhado ao tom de .aff-btn (accent, sombra, hover/active) */
.deal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 3rem;
  padding: 0.625rem var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.25;
  cursor: pointer;
  box-shadow: var(--cta-shadow);
  transition: background var(--ease), box-shadow var(--ease), transform var(--ease), filter var(--ease),
    border-color var(--ease);
}

.deal-link:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--cta-shadow-hover);
}

.deal-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  text-decoration: none;
}

.deal-link:active:not(.deal-link-disabled) {
  transform: translateY(0);
  box-shadow: var(--cta-shadow-active);
  filter: brightness(0.96);
}

.deal-link-disabled {
  pointer-events: none;
  opacity: 0.72;
  cursor: not-allowed;
  background: var(--bg-muted);
  color: var(--text-muted);
  border: 1px solid var(--border);
  box-shadow: none;
  transform: none;
  filter: none;
}

.deal-link-disabled:hover {
  transform: none;
  box-shadow: none;
  filter: none;
}

.deals-page-hero p {
  margin-top: 8px;
  color: var(--text-muted);
  max-width: 900px;
}

.achadinhos-transparency {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-muted);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.deals-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}

.deals-filter-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 220px;
}

.deals-filter-item select {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

@media (max-width: 1024px) {
  .deals-grid,
  .deals-grid-home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .deals-home-head {
    flex-direction: column;
  }

  .deals-home-link {
    align-self: flex-start;
  }

  .deals-grid,
  .deals-grid-home {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .deal-link,
  .deal-link:hover,
  .deal-link:active:not(.deal-link-disabled) {
    transform: none;
  }

  .deal-link {
    transition-duration: 0.01ms;
  }
}
