/* Price-comparison pages. Extends styles.css — only what those pages add. */

/* Only touch the vertical padding. These pages are also .container, which
   supplies `padding: 0 20px`, and the shorthand here was resetting left and
   right to zero, so on a phone the price table ran edge to edge with no
   margin at all. */
.price-page { padding-top: 32px; padding-bottom: 56px; max-width: 760px; }

.crumbs { font-size: 13px; color: #64748b; margin-bottom: 18px; }
.crumbs a { color: #64748b; text-decoration: none; }
.crumbs a:hover { color: #4d7c0f; text-decoration: underline; }

.p-head { display: flex; gap: 20px; align-items: center; margin-bottom: 22px; }
.p-img { border-radius: 12px; background: #fff; border: 1px solid #e2e8f0; object-fit: contain; padding: 6px; }
.price-page h1 { font-size: 30px; line-height: 1.22; margin: 0 0 6px; color: #0f172a; }
.price-page .sub { margin: 0; color: #64748b; font-size: 15px; }

/* The number people came for — it should be the loudest thing on the page. */
.headline-price {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  background: linear-gradient(135deg, #f7fee7, #ecfccb);
  border: 1px solid #d9f99d; border-radius: 16px; padding: 20px 24px; margin-bottom: 14px;
}
.hp-label { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #4d7c0f; font-weight: 700; width: 100%; }
.hp-value { font-size: 42px; font-weight: 800; color: #3f6212; line-height: 1; }
.hp-store { font-size: 17px; color: #4d7c0f; font-weight: 600; }

.save { font-size: 16px; color: #0f172a; margin: 0 0 22px; }
.save strong { color: #3f6212; }

.price-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: 15px; }
.price-table th {
  text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
  color: #64748b; border-bottom: 2px solid #e2e8f0; padding: 0 10px 8px;
}
.price-table td { padding: 13px 10px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.price-table .num { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-table th.num { text-align: right; }
.price-table .unit, .price-table .promo { color: #64748b; font-size: 13px; }
.price-table tr.is-cheapest td { background: #f7fee7; }
.price-table tr.is-cheapest .num { color: #3f6212; }

.chip { display: inline-block; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }

.disclaimer { font-size: 12.5px; color: #94a3b8; line-height: 1.6; margin: 0 0 28px; }

/* Ads sit between the answer and the CTA, clearly labelled and never styled to
   look like site content — passing them off as ours would breach AdSense policy
   and burn the trust these pages exist to build. */
.ad-slot { margin: 28px 0; padding: 10px 0; border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9; min-height: 100px; }
.ad-label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .09em; color: #cbd5e1; margin-bottom: 6px; }

.cta-band { background: #0f172a; border-radius: 18px; padding: 28px 30px; color: #fff; margin-top: 30px; }
.cta-band h2 { margin: 0 0 8px; font-size: 22px; color: #fff; }
.cta-band p { margin: 0 0 16px; color: #cbd5e1; font-size: 15px; line-height: 1.6; }
.cta-links { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }
.cta-band .btn { display: inline-block; padding: 11px 20px; border-radius: 10px; background: rgba(255,255,255,.12); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
.cta-band .btn.primary { background: #84cc16; color: #1a2e05; }
.cta-band .btn:hover { opacity: .9; }

/* Index */
.px-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 22px; }
.px-card { display: block; padding: 16px 18px; border: 1px solid #e2e8f0; border-radius: 14px; text-decoration: none; background: #fff; transition: border-color .15s, transform .15s; }
.px-card:hover { border-color: #84cc16; transform: translateY(-2px); }
.px-name { display: block; font-weight: 600; color: #0f172a; font-size: 15px; line-height: 1.35; margin-bottom: 6px; }
.px-meta { font-size: 13px; color: #64748b; }
.px-meta strong { color: #3f6212; }

@media (max-width: 640px) {
  .price-page h1 { font-size: 24px; }
  .hp-value { font-size: 34px; }
  .p-head { gap: 14px; }
  .p-img { width: 84px; height: 84px; }
  .price-table .unit { display: none; }
}

/* ── Weekly price movement ─────────────────────────────────────────────── */
.holding {
  background: #f7fee7; border: 1px solid #d9f99d; border-radius: 16px;
  padding: 24px 26px; margin-top: 24px;
}
.holding h2 { margin: 0 0 10px; font-size: 20px; color: #3f6212; }
.holding p { margin: 0 0 12px; color: #4d7c0f; line-height: 1.65; font-size: 15px; }
.holding p:last-child { margin-bottom: 0; }

.week { margin-top: 34px; }
.week h2 { font-size: 21px; margin: 0 0 4px; color: #0f172a; }
.movers-h { font-size: 15px; margin: 20px 0 8px; text-transform: uppercase; letter-spacing: .05em; }
.movers-h.up { color: #dc2626; }
.movers-h.down { color: #15803d; }
.movers td { font-size: 14.5px; }
.movers .was { color: #94a3b8; text-decoration: line-through; font-weight: 500; }
.movers .now { font-weight: 700; }
.movers tr.is-up .pct { color: #dc2626; font-weight: 700; }
.movers tr.is-down .pct { color: #15803d; font-weight: 700; }

@media (max-width: 640px) {
  .movers .was { display: none; }
  .movers th:nth-child(3) { display: none; }
}
