/* Deals-page design only; the approved leaderboard keeps its own styling. */
.deals-catalog .deals-backdrop {
  background:
    radial-gradient(ellipse at 8% 12%, #f9e2cd70, transparent 52%),
    radial-gradient(ellipse at 94% 30%, #ded6fa80, transparent 58%);
  padding-bottom: 64px;
}

.deals-catalog .deals-page-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 18px;
  margin-bottom: 0;
}

.deals-catalog .page-intro { text-align: center; }
.deals-catalog .page-intro .eyebrow { justify-content: center; }
.deals-catalog .page-intro h1,
.deals-catalog .page-intro > p { margin-inline: auto; }

.deals-catalog .catalog-card {
  display: flex;
  border-color: #e8e2ee;
  border-radius: 22px;
  box-shadow: 0 10px 30px -22px #53436845;
}

.deals-catalog .catalog-card:hover {
  transform: none;
  box-shadow: 0 14px 32px -20px #53436860;
}

.deals-catalog .catalog-card-body {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  width: 100%;
  min-width: 0;
  padding: 20px;
}

.deals-catalog .catalog-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
}

.deals-catalog .catalog-card-header > div { min-width: 0; }
.deals-catalog .catalog-card-header .product-logo { width: 40px; height: 40px; border-radius: 11px; }
.deals-catalog .catalog-title { font-size: 22px; line-height: 1.2; }
.deals-catalog .catalog-card-header p { margin-top: 5px; font-size: 11px; line-height: 1.5; }

.deals-catalog .catalog-description {
  min-height: 42px;
  margin-top: -8px;
  font-size: 13px;
  line-height: 1.6;
}

.deals-catalog .catalog-offer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 150px;
  padding: 15px;
  background: #fff7ed;
  border: 1px solid #f2e5d4;
  border-radius: 16px;
}

.deals-catalog .catalog-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.deals-catalog .catalog-price > strong { font-size: 32px; line-height: 1.1; letter-spacing: -.055em; }
.deals-catalog .catalog-price .pill { font-size: 13px; font-weight: 750; padding: 5px 11px; }
.deals-catalog .catalog-renewal { margin-top: 8px; font-size: 12px; line-height: 1.6; }
.deals-catalog .catalog-tiers { min-height: 34px; margin-top: 18px; }
.deals-catalog .catalog-tiers .progress-track > span { height: 5px; }
.deals-catalog .catalog-tiers .tier-labels { font-size: 12px; margin-top: 6px; }
.deals-catalog .catalog-tiers .tier-labels strong { font-weight: 750; }
.deals-catalog .catalog-tiers .single-tier-label { justify-content: center; }

.deals-catalog .catalog-stock {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 22px;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.deals-catalog .catalog-stock > span { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--green); }
.deals-catalog .catalog-card-footer .btn { min-height: 44px; margin: 0; font-size: 13px; }
.deals-catalog .catalog-offer-ended { align-items: center; text-align: center; background: #f7f5fa; border-color: #ebe5f0; }
.deals-catalog .catalog-offer-ended p { color: var(--ink); margin-top: 14px; font-size: 15px; font-weight: 600; }
.deals-catalog .catalog-offer-ended > span:not(.pill) { font-size: 12px; color: var(--muted); margin-top: 5px; }
.deals-catalog .catalog-stock-ended { color: var(--muted); }

.deals-catalog .catalog-pagination { padding-top: 32px; text-align: center; }
.deals-catalog .catalog-page-controls { display: flex; justify-content: center; align-items: center; gap: 8px; }
.deals-catalog .catalog-page-controls button { min-width: 36px; height: 36px; padding: 0 8px; border: 0; border-radius: 50%; background: transparent; color: var(--purple); font-size: 14px; font-weight: 600; }
.deals-catalog .catalog-page-controls button:hover:not(:disabled) { background: var(--lavender); }
.deals-catalog .catalog-page-controls button[aria-current="page"] { background: var(--purple); color: white; }
.deals-catalog .catalog-page-controls button:disabled { color: var(--muted); opacity: .4; }
.deals-catalog .catalog-pagination p { margin-top: 12px; font-size: 13px; }
.deals-catalog #deals-result-count { scroll-margin-top: 20px; }

body.deals-catalog:has(#preview-dark-mode:checked) .deals-backdrop {
  background:
    radial-gradient(ellipse at 8% 12%, #a9764326, transparent 52%),
    radial-gradient(ellipse at 94% 30%, #9670da2b, transparent 58%);
}
body.deals-catalog:has(#preview-dark-mode:checked) .catalog-offer { background: #30261f; border-color: #594433; }
body.deals-catalog:has(#preview-dark-mode:checked) .catalog-offer-ended { background: #282232; border-color: #44394f; }
body.deals-catalog:has(#preview-dark-mode:checked) .search-control { background: #211d2c; border-color: #484050; }
body.deals-catalog:has(#preview-dark-mode:checked) .catalog-tiers .progress-track > span { background: #574b40; }
body.deals-catalog:has(#preview-dark-mode:checked) .catalog-tiers .tier-labels { color: var(--muted); }
body.deals-catalog:has(#preview-dark-mode:checked) .catalog-page-controls button[aria-current="page"] { background: #6552ef; }

@media (max-width: 1150px) {
  .deals-catalog .deals-page-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .deals-catalog .catalog-card-body { padding: 18px; }
}

@media (max-width: 900px) {
  .deals-catalog .deals-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .deals-catalog .deals-page-grid { grid-template-columns: 1fr; }
  .deals-catalog .catalog-page-controls { gap: 4px; }
  .deals-catalog .catalog-page-controls button { min-width: 30px; padding-inline: 5px; font-size: 13px; }
  .deals-catalog .deals-backdrop { padding-bottom: 40px; }
  .deals-catalog .catalog-card-body { padding: 20px; }
  .deals-catalog .catalog-card-header p { font-size: 12px; }
}
