.gift-finder { max-width: 1040px; margin: 0 auto; padding: 28px 20px 54px; color: #202020; }
.gift-hero { max-width: 720px; padding: 34px 0 26px; }
.gift-hero h1, .gift-results h1, .gift-result-state h1 { margin: 4px 0 12px; font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.02; }
.gift-kicker { margin: 0; color: #b31820; font-size: .78rem; font-weight: 800; letter-spacing: .16em; }
.gift-step { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 26px 0; border-top: 1px solid #dedede; }
.gift-step h2 { margin: 0 0 5px; font-size: 1.45rem; }
.gift-step p { margin: 0 0 17px; color: #666; }
.gift-step-number { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #171717; color: #fff; font-weight: 800; }
.gift-step-body { min-width: 0; }
.gift-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.gift-pill, .gift-action button, .gift-result-actions button, .gift-primary-link { min-height: 44px; border: 2px solid #242424; border-radius: 5px; padding: 10px 18px; background: #fff; color: #202020; font: inherit; font-weight: 700; cursor: pointer; }
.gift-pill[aria-pressed="true"] { background: #202020; color: #fff; }
.gift-pill-secondary { border-color: #777; }
.gift-progressive[hidden], .gift-note[hidden] { display: none; }
.gift-price-inputs { display: flex; justify-content: space-between; gap: 18px; max-width: 620px; }
.gift-price-inputs label { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; min-width: 0; font-weight: 700; }
.gift-price-inputs label span { position: absolute; left: 12px; bottom: 13px; color: #666; }
.gift-price-inputs input { grid-column: 1 / -1; width: 170px; min-height: 44px; box-sizing: border-box; margin-top: 7px; padding: 8px 10px 8px 25px; border: 1px solid #777; border-radius: 4px; font: inherit; }
.gift-range { position: relative; max-width: 620px; height: 54px; margin-top: 10px; }
.gift-range-track { position: absolute; top: 25px; right: 8px; left: 8px; height: 4px; background: #bbb; }
.gift-range input { position: absolute; top: 5px; left: 0; width: 100%; height: 44px; margin: 0; background: transparent; pointer-events: none; appearance: none; }
.gift-range input::-webkit-slider-thumb { width: 26px; height: 26px; border: 3px solid #fff; border-radius: 50%; background: #b31820; box-shadow: 0 0 0 1px #333; pointer-events: auto; appearance: none; }
.gift-range input::-moz-range-thumb { width: 24px; height: 24px; border: 3px solid #fff; border-radius: 50%; background: #b31820; box-shadow: 0 0 0 1px #333; pointer-events: auto; }
.gift-note { padding: 12px 15px; border-left: 4px solid #b31820; background: #f4f4f4; }
.gift-action { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 8px; padding: 22px; background: #efefef; border-radius: 6px; }
.gift-action strong { font-size: 1.25rem; }
.gift-action p { margin: 4px 0 0; }
.gift-action button, .gift-primary-link { border-color: #b31820; background: #b31820; color: #fff; text-decoration: none; }
.gift-action button:disabled { border-color: #999; background: #999; cursor: not-allowed; }
.gift-results-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 30px 0 24px; border-bottom: 1px solid #ddd; }
.gift-results-header h1 { font-size: clamp(2rem, 4vw, 3rem); }
.gift-result-actions { display: flex; align-items: center; gap: 12px; }
.gift-result-actions a { min-height: 44px; display: inline-flex; align-items: center; color: #222; font-weight: 700; }
.gift-result-list { margin-top: 24px; }
.gift-result-list .productBox { height: 305px; vertical-align: top; }
.gift-result-list .productBox:not(.gift-unavailable-card) > a { height: 245px; }
.gift-result-list .productBox:not(.gift-unavailable-card) .gift-reason { position: absolute; top: 245px; right: 15px; left: 15px; }
.gift-reason { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid #eee; color: #555; line-height: 1.35; }
.gift-unavailable { margin: 10px 0 0; color: #9c1118; font-weight: 800; }
.gift-unavailable-card { box-sizing: border-box; padding: 24px !important; background: #f4f4f4; }
.gift-result-state { max-width: 650px; padding: 80px 0; }
.gift-result-state p { margin-bottom: 26px; }
.gift-product-context { margin-bottom: 18px; padding: 12px 14px; border-left: 4px solid #b31820; background: #f1f1f1; }
.gift-product-context p { margin: 9px 0 0; }

@media screen and (max-width: 800px) {
  .gift-results-header { align-items: start; flex-direction: column; }
}

@media screen and (max-width: 540px) {
  .gift-finder { padding: 15px 10px 38px; }
  .gift-hero { padding-top: 20px; }
  .gift-step { grid-template-columns: 38px minmax(0, 1fr); gap: 9px; }
  .gift-step-number { width: 32px; height: 32px; }
  .gift-pill { width: 100%; }
  .gift-price-inputs { gap: 8px; }
  .gift-price-inputs label, .gift-price-inputs input { width: 100%; }
  .gift-action { align-items: stretch; flex-direction: column; }
  .gift-action button { width: 100%; }
  .gift-result-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .gift-result-actions button { width: 100%; }
  .gift-result-list .productBox { height: 315px; }
}
