/* Shop & save — Housofai Finance. Builds on site.css tokens. */
.shoppage { background: #fff; }
.sh-kicker { margin: 0 0 8px; font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.sh-kicker.light { color: #FF9F87; }
.sh-sec { padding: 72px 0; }
.sh-sec.tight { padding: 28px 0 56px; }
.sh-alt { background: #F6F7F9; }
.sh-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.sh-head h2 { margin: 0; font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -.015em; line-height: 1.1; }
.sh-sub { margin: 10px 0 0; color: var(--ink-2); max-width: 60ch; }
.sh-count { margin: 0; color: var(--ink-3); font-weight: 500; }

/* ---------- hero ---------- */
.sh-hero { position: relative; overflow: hidden; padding: 56px 0 0; background:
  radial-gradient(700px 420px at 92% 10%, rgba(210, 42, 18, .10), transparent 65%),
  radial-gradient(600px 400px at 0% 0%, rgba(233, 161, 0, .10), transparent 60%), #fff; }
.sh-hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }
.sh-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--red-tint); color: var(--red-deep); font-weight: 700; font-size: .88rem; }
.sh-eyebrow span { width: 20px; height: 20px; border-radius: 50%; background: var(--red); box-shadow: inset 0 0 0 5px var(--red-tint), inset 0 0 0 7px var(--red); }
.sh-hero h1 { margin: 0 0 18px; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: .98; letter-spacing: -.035em; }
.sh-lede { font-size: 1.18rem; color: var(--ink-2); max-width: 52ch; margin: 0 0 26px; }
.sh-search { position: relative; display: flex; align-items: center; gap: 8px; max-width: 560px; padding: 7px 7px 7px 18px; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px -26px rgba(31, 27, 45, .45); }
.sh-search:focus-within { border-color: var(--ink); }
.sh-search > svg { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.sh-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 1.05rem var(--body); color: var(--ink); padding: 10px 4px; }
.sh-search .btn { padding: 10px 20px; border-radius: 11px; }
.sh-results { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 28px 60px -24px rgba(31, 27, 45, .45); padding: 8px; }
.sh-results a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.sh-results a:hover, .sh-results a:focus { background: #F6F7F9; outline: none; }
.sh-results img { width: 64px; height: 32px; object-fit: contain; flex: none; }
.sh-results b { display: block; font-size: .98rem; line-height: 1.25; }
.sh-results small { color: var(--ink-3); }
.sh-none { margin: 10px; color: var(--ink-3); }
.sh-popular { margin: 16px 0 0; color: var(--ink-3); font-size: .95rem; display: flex; flex-wrap: wrap; gap: 6px 4px; align-items: center; }
.sh-popular a { margin-left: 6px; padding: 4px 12px; border-radius: 999px; background: #F1F2F5; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.sh-popular a:hover { background: var(--ink); color: #fff; }

.sh-stack { position: relative; height: 420px; }
.sh-stack .cc { position: absolute; width: 330px; transition: transform .3s; }
.sh-stack .cc:nth-child(1) { top: 20px; left: 40px; transform: rotate(-10deg); }
.sh-stack .cc:nth-child(2) { top: 112px; left: 150px; transform: rotate(3deg); z-index: 2; }
.sh-stack .cc:nth-child(3) { top: 216px; left: 30px; transform: rotate(-4deg); z-index: 3; }
.sh-stack .cc:nth-child(1) { animation: shf 8s ease-in-out infinite; }
.sh-stack .cc:nth-child(2) { animation: shf 9s ease-in-out -3s infinite; }
.sh-stack .cc:nth-child(3) { animation: shf 10s ease-in-out -6s infinite; }
@keyframes shf { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.sh-stack .badge { position: absolute; z-index: 4; display: flex; gap: 10px; align-items: center; padding: 10px 14px; background: #fff; border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(31, 27, 45, .5); font-size: .88rem; line-height: 1.25; }
.sh-stack .badge b { display: block; font-size: 1rem; }
.sh-stack .badge i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #E8F5EE; color: var(--ok); font-style: normal; font-weight: 800; }
.sh-stack .b1 { top: 0; right: 0; }
.sh-stack .b2 { bottom: 26px; right: 10px; }

.sh-trust { list-style: none; margin: 48px 0 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; border-top: 1px solid var(--line); }
.sh-trust li { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--ink-3); line-height: 1.35; }
.sh-trust b { display: block; color: var(--ink); font-size: .98rem; }
.sh-trust svg, .sh-checks svg { width: 22px; height: 22px; flex: none; color: var(--ok); background: #E8F5EE; border-radius: 50%; padding: 3px; }

/* ---------- card art ---------- */
.cc { position: relative; aspect-ratio: 1.586; border-radius: 16px; padding: 18px 20px; color: #fff; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 26px 50px -24px rgba(16, 12, 32, .7), inset 0 1px 0 rgba(255, 255, 255, .25); isolation: isolate; }
.cc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .28), transparent 55%), radial-gradient(80% 60% at 0% 100%, rgba(0, 0, 0, .25), transparent 60%); }
.cc::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; border: 26px solid rgba(255, 255, 255, .08); z-index: -1; }
.cc .cc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.cc .cc-bank { font-weight: 800; font-size: .92rem; letter-spacing: .02em; text-transform: uppercase; opacity: .95; }
.cc .cc-wave { width: 24px; height: 24px; opacity: .85; }
.cc .cc-chip { width: 38px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, #F7DD9B, #C9962C); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.cc .cc-name { font: 800 1.25rem/1.15 var(--display); letter-spacing: -.01em; text-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.cc .cc-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.cc .cc-dots { font-size: .8rem; letter-spacing: .18em; opacity: .75; }

/* ---------- logo marquee ---------- */
.sh-logos { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.sh-marquee-wrap { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.sh-marquee { display: flex; gap: 8px; width: max-content; padding: 14px 0; animation: shm 60s linear infinite; }
.sh-marquee:hover { animation-play-state: paused; }
.sh-marquee a { display: grid; place-items: center; width: 132px; height: 66px; border-radius: 12px; }
.sh-marquee a:hover { background: #F6F7F9; }
.sh-marquee img { width: 112px; height: 56px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.sh-marquee a:hover img { filter: none; opacity: 1; }
@keyframes shm { to { transform: translateX(-50%); } }

/* ---------- top picks ---------- */
.sh-picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pick { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 22px; background: #fff; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.pick:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(31, 27, 45, .5); }
.pick-top { padding: 26px 30px 0; background: linear-gradient(180deg, #F6F7F9, #fff); }
.pick-top .cc { max-width: 290px; margin: 0 auto -6px; }
.pick-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pick-award { align-self: flex-start; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--red-deep); background: var(--red-tint); padding: 4px 10px; border-radius: 999px; }
.pick h3 { margin: 0; font-size: 1.25rem; }
.pick .why { margin: 0; color: var(--ink-2); font-size: .98rem; }

/* ---------- tabs / chips ---------- */
.sh-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 14px; margin-bottom: 8px; scrollbar-width: none; }
.sh-tabs::-webkit-scrollbar { display: none; }
.sh-tabs button { flex: none; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 999px; padding: 8px 16px; font: 600 .94rem var(--body); cursor: pointer; }
.sh-tabs button:hover { border-color: var(--ink-3); }
.sh-tabs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- comparison list ---------- */
.sh-list { display: grid; gap: 14px; }
.row-card { display: grid; grid-template-columns: 210px 1fr 220px; gap: 26px; align-items: center; padding: 20px 24px; background: #fff; border: 1px solid var(--line); border-radius: 20px; transition: box-shadow .2s, border-color .2s; }
.row-card:hover { border-color: #C9CED6; box-shadow: 0 20px 40px -30px rgba(31, 27, 45, .5); }
.row-card .cc { width: 100%; padding: 12px 14px; border-radius: 12px; }
.row-card .cc .cc-name { font-size: 1rem; }
.row-card .cc .cc-bank { font-size: .74rem; }
.row-card .cc .cc-chip { width: 28px; height: 21px; }
.row-card .cc::after { width: 140px; height: 140px; border-width: 18px; }
.rc-main { min-width: 0; }
.rc-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 6px; }
.rc-tag { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #EEF4FF; color: #1F4FA8; }
.rc-tag.hot { background: var(--red-tint); color: var(--red-deep); }
.rc-bank { font-size: .86rem; color: var(--ink-3); }
.row-card h3 { margin: 0 0 10px; font-size: 1.2rem; line-height: 1.25; }
.ben { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ben li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: .97rem; line-height: 1.45; }
.ben li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%; background: #E8F5EE url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3L15 7' fill='none' stroke='%231E7A4B' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.rc-cta { display: flex; flex-direction: column; gap: 8px; align-items: stretch; text-align: center; }
.rc-cta .btn { justify-content: center; }
.rc-logo { height: 40px; object-fit: contain; align-self: center; max-width: 120px; }
.rc-fine { font-size: .78rem; color: var(--ink-3); line-height: 1.35; }
.sh-more { text-align: center; margin-top: 10px; }
.sh-more .btn { min-width: 260px; justify-content: center; }

/* ---------- stores ---------- */
.sh-stores { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); }
.store { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: var(--ink); text-align: center; transition: transform .2s, box-shadow .2s, border-color .2s; }
.store:hover { transform: translateY(-3px); border-color: #C9CED6; box-shadow: 0 20px 36px -26px rgba(31, 27, 45, .5); }
.store img { width: 140px; height: 70px; object-fit: contain; }
.store .lt { width: 140px; height: 70px; display: grid; place-items: center; font: 800 1.2rem var(--display); }
.store .cat { font-size: .82rem; color: var(--ink-3); }
.store .note { font-size: .76rem; color: var(--ink-3); line-height: 1.3; }
.store .go { margin-top: 4px; font-size: .9rem; font-weight: 700; color: var(--red); }
.store:hover .go { text-decoration: underline; }

/* ---------- steps, dark, faq ---------- */
.sh-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sh-steps li { counter-increment: s; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.sh-steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 12px; background: var(--ink); color: #fff; font: 800 1.1rem var(--display); }
.sh-steps b { display: block; font-size: 1.15rem; margin-bottom: 6px; }
.sh-steps p { margin: 0; color: var(--ink-2); }
.sh-dark { background: var(--ink); color: #fff; }
.sh-dark h2 { color: #fff; margin: 0 0 20px; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.12; }
.sh-two { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.sh-checks { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 14px; }
.sh-checks li { display: flex; gap: 12px; color: #D9D6E3; }
.sh-checks svg { background: rgba(124, 211, 158, .15); color: #7CD39E; }
.sh-faq details { border-color: rgba(255, 255, 255, .14); }
.sh-faq summary { color: #fff; }
.sh-faq p { color: #C9C5D6; }
.sh-disc { margin: 0; font-size: .88rem; color: var(--ink-3); max-width: 90ch; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) { .row-card { grid-template-columns: 180px 1fr; } .rc-cta { grid-column: 1 / -1; flex-direction: row; align-items: center; } .rc-cta .btn { flex: 1; } .rc-logo { display: none; } }
@media (max-width: 960px) {
  .sh-hero-grid { grid-template-columns: 1fr; } .sh-stack { height: 330px; max-width: 460px; } .sh-stack .cc { width: 270px; }
  .sh-stack .cc:nth-child(2) { left: 120px; top: 90px; } .sh-stack .cc:nth-child(3) { top: 170px; }
  .sh-trust { grid-template-columns: repeat(2, 1fr); }
  .sh-picks { grid-template-columns: 1fr; max-width: 520px; } .sh-steps { grid-template-columns: 1fr; } .sh-two { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 600px) {
  .sh-hero { padding-top: 28px; } .sh-lede { font-size: 1.05rem; } .sh-stack { display: none; } .sh-trust { margin-top: 30px; gap: 14px; } .sh-sec { padding: 52px 0; }
  .sh-search .btn { display: none; }
  .row-card { grid-template-columns: 1fr; gap: 14px; padding: 16px; } .row-card .cc { max-width: 190px; } .rc-cta { flex-direction: column; align-items: stretch; }
  .sh-stores { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .store img, .store .lt { width: 120px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) { .sh-marquee, .sh-stack .cc { animation: none !important; } }

/* ---------- card matcher ---------- */
.sh-popular a.sh-matchlink { margin-left: 0; background: var(--ink); color: #fff; font-weight: 700; padding: 8px 16px; }
.sh-popular a.sh-matchlink:hover { background: var(--red); }
.sh-match { background: linear-gradient(180deg, #FFF7F4, #fff); scroll-margin-top: 70px; }
.mt-form { display: grid; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: 0 24px 50px -36px rgba(31, 27, 45, .5); }
.mt-form fieldset { border: 0; margin: 0; padding: 0 0 14px; border-bottom: 1px dashed var(--line); }
.mt-form fieldset[hidden] { display: none; }
.mt-form legend { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 700 1.08rem var(--display); margin-bottom: 12px; padding: 0; }
.mt-form legend span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--red-tint); color: var(--red-deep); font-size: .9rem; }
.mt-form legend small { font: 500 .88rem var(--body); color: var(--ink-3); }
.mt-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.mt-opts button { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 600 .98rem var(--body); cursor: pointer; }
.mt-opts button:hover { border-color: var(--ink); }
.mt-opts button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.mt-opts button:focus-visible { outline: none; box-shadow: var(--focus); }
.mt-go { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.mt-go .err { margin: 0; color: var(--warn); font-weight: 600; }
.mt-out { margin-top: 22px; }
.mt-out h3.mt-title { margin: 0 0 14px; font-size: 1.4rem; }
.mt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mt-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.mt-card.best { border: 2px solid var(--red); box-shadow: 0 24px 48px -30px rgba(210, 42, 18, .55); }
.mt-card .cc { width: 100%; max-width: 300px; }
.mt-badge { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; font-size: .82rem; }
.mt-badge.alt { background: #F1F2F5; color: var(--ink-2); }
.mt-card h4 { margin: 0; font: 700 1.15rem/1.2 var(--display); }
.mt-why { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.mt-why li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: .96rem; }
.mt-why li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2.4px solid var(--ok); border-bottom: 2.4px solid var(--ok); transform: rotate(-45deg); }
.mt-card .btn { margin-top: auto; }
.mt-note { margin: 16px 0 0; color: var(--ink-3); font-size: .92rem; }
.mt-none { padding: 18px; border-radius: 16px; background: #F6F7F9; }
@media (max-width: 900px) { .mt-grid { grid-template-columns: 1fr; } .mt-form { padding: 18px; } }
