/* =====================================================================
   Lifehaki Shop — /shop + the "Shop this" strip on title/character pages.
   Prefix sh-*. Loaded by shop_assets_once() wherever product cards render.
   Tokens follow the shop design comp (cool-light surface, ink + red + gold).
   ===================================================================== */
.sh-page, .sh-strip {
    --sh-ink: #15171c;
    --sh-text: #20242b;
    --sh-body: #4a505b;
    --sh-muted: #767d89;
    --sh-faint: #9aa0ab;
    --sh-line: #e3e3ea;
    --sh-line-2: #d2d3dc;
    --sh-bg: #f5f5f9;
    --sh-tile: #ececf1;
    --sh-red: #ca2128;
    --sh-red-hover: #a81a20;
    --sh-gold: #fdc949;
    --sh-green: #2f8f5b;
    --sh-shadow: 0 2px 14px rgba(21, 23, 40, .06);
    --sh-shadow-up: 0 16px 40px rgba(21, 23, 40, .14);
    --sh-ease: cubic-bezier(.23, 1, .32, 1);
    --sh-serif: 'Fraunces', Georgia, serif;
    --sh-sans: 'Urbanist', system-ui, sans-serif;
    --sh-cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --sh-mono: 'DM Mono', ui-monospace, monospace;
    font-family: var(--sh-sans);
    color: var(--sh-text);
}
.sh-page { background: var(--sh-bg); overflow-x: clip; }
.sh-page *, .sh-strip * { box-sizing: border-box; }
.sh-wrap { max-width: 1240px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.sh-page [hidden], .sh-strip [hidden] { display: none !important; }  /* component display rules must never beat [hidden] */
.sh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.sh-kicker {
    font-family: var(--sh-cond); font-weight: 600; font-size: 14px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--sh-red); margin-bottom: 6px;
}
.sh-kicker--gold { color: var(--sh-gold); }
.sh-h2 {
    font-family: var(--sh-serif); font-weight: 900; font-size: 36px; line-height: 1.05;
    letter-spacing: -.02em; color: var(--sh-ink); margin: 0;
}
.sh-h2 em { font-style: italic; color: var(--sh-red); }
.sh-h2--sm { font-size: 32px; margin-bottom: 26px; }
.sh-meta { font-family: var(--sh-mono); font-size: 13px; color: var(--sh-muted); margin-top: 8px; }
.sh-section { padding-top: 52px; }
.sh-section--last { padding-bottom: 40px; }
.sh-section .sh-h2 { margin-bottom: 22px; }

/* ---------- hero ---------- */
.sh-hero { position: relative; overflow: hidden; background: var(--sh-ink); }
.sh-hero-glow { position: absolute; border-radius: 50%; pointer-events: none; }
.sh-hero-glow--gold { top: -160px; right: -120px; width: 560px; height: 560px; background: radial-gradient(circle, rgba(253,201,73,.22), rgba(253,201,73,0) 70%); }
.sh-hero-glow--red { bottom: -180px; left: -140px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(202,33,40,.2), rgba(202,33,40,0) 70%); }
.sh-hero-grid {
    position: relative; z-index: 2; display: grid; gap: 56px; align-items: center;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); padding-top: 56px; padding-bottom: 72px;
}
.sh-hero-grid--solo { grid-template-columns: minmax(0, 720px); }
.sh-live { display: flex; align-items: center; gap: 11px; margin-bottom: 18px;
    font-family: var(--sh-cond); font-weight: 600; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--sh-gold); }
.sh-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--sh-green); flex: none; animation: sh-pulse 2.2s infinite; }
@keyframes sh-pulse { 0% { box-shadow: 0 0 0 0 rgba(47,143,91,.55); } 70% { box-shadow: 0 0 0 7px rgba(47,143,91,0); } 100% { box-shadow: 0 0 0 0 rgba(47,143,91,0); } }
.sh-h1 {
    font-family: var(--sh-serif); font-weight: 900; font-size: 60px; line-height: .98; letter-spacing: -.02em;
    color: #fff; margin: 0 0 18px; text-wrap: balance;
}
.sh-h1 em { color: var(--sh-gold); font-style: italic; }
.sh-lede { font-size: 18px; line-height: 1.5; color: rgba(255,255,255,.82); margin: 0 0 30px; max-width: 520px; text-wrap: pretty; }
.sh-search {
    display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px;
    padding: 6px 6px 6px 20px; max-width: 560px; box-shadow: 0 14px 40px rgba(0,0,0,.35);
}
.sh-search svg { flex: none; }
.sh-search input {
    flex: 1; min-width: 0; border: 0; outline: none; background: transparent; height: 44px;
    font: 500 17px var(--sh-sans); color: var(--sh-ink);
}
.sh-search input::placeholder, .sh-field-search input::placeholder { color: var(--sh-faint); }
.sh-search button {
    flex: none; height: 44px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--sh-red); color: #fffdf8; font: 700 15px var(--sh-sans);
    box-shadow: 0 6px 18px rgba(202,33,40,.35);
    transition: transform 160ms var(--sh-ease), background-color 160ms ease;
}
.sh-hot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.sh-hot-label { flex: none; white-space: nowrap; font-family: var(--sh-cond); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-right: 4px; }
.sh-hot-chip {
    display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff;
    font-weight: 600; font-size: 14px; text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease;
}
.sh-hot-chip:hover { color: #fff; }

/* deal card */
.sh-deal-wrap { display: flex; justify-content: center; }
.sh-deal {
    position: relative; width: 100%; max-width: 380px; background: #fff; border: 2px solid var(--sh-ink);
    border-radius: 14px; box-shadow: 6px 6px 0 var(--sh-gold); padding: 16px; transform: rotate(1.5deg);
}
.sh-deal-flag {
    position: absolute; top: -15px; left: 18px; z-index: 3; display: inline-flex; align-items: center; height: 30px;
    padding: 0 13px; border-radius: 999px; background: var(--sh-gold); color: var(--sh-ink); border: 2px solid var(--sh-ink);
    font-family: var(--sh-cond); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
}
.sh-deal-media { position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--sh-tile); }
.sh-deal-body { padding: 14px 4px 4px; }
.sh-deal-meta { display: flex; align-items: center; gap: 6px; font-family: var(--sh-cond); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--sh-muted); }
.sh-deal-name { font-family: var(--sh-serif); font-weight: 800; font-size: 21px; line-height: 1.15; letter-spacing: -.01em; color: var(--sh-ink); margin: 6px 0 12px; }
.sh-deal-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- categories ---------- */
.sh-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; }
.sh-cat {
    display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; border-radius: 20px;
    background: #fff; border: 2px solid var(--sh-line); box-shadow: var(--sh-shadow); text-decoration: none;
    transition: transform 200ms var(--sh-ease), box-shadow 200ms var(--sh-ease);
}
.sh-cat.is-on { border-color: var(--sh-ink); box-shadow: 4px 4px 0 var(--sh-red); }
.sh-cat-chip { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 11px; flex: none; }
.sh-tint--red { background: #fde4e5; color: var(--sh-red); }
.sh-tint--gold { background: #fef3d6; color: #a77a0e; }
.sh-tint--green { background: #e3f2ea; color: var(--sh-green); }
.sh-cat-label { font-weight: 700; font-size: 15px; color: var(--sh-ink); line-height: 1.2; }
.sh-cat-count { font-family: var(--sh-mono); font-size: 13px; color: var(--sh-muted); white-space: nowrap; }

/* ---------- collections ---------- */
.sh-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.sh-col {
    position: relative; display: block; height: 230px; border-radius: 20px; overflow: hidden; background: var(--sh-ink);
    box-shadow: var(--sh-shadow); text-decoration: none; transition: transform 200ms var(--sh-ease), box-shadow 200ms var(--sh-ease);
}
.sh-col img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.sh-col-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,14,17,.05) 20%, rgba(13,14,17,.88) 100%); }
.sh-col-text { position: absolute; left: 22px; right: 80px; bottom: 20px; display: flex; flex-direction: column; }
.sh-col-count { font-family: var(--sh-mono); font-size: 13px; color: var(--sh-gold); margin-bottom: 6px; }
.sh-col-name { font-family: var(--sh-serif); font-weight: 900; font-size: 28px; line-height: 1; letter-spacing: -.02em; color: #fff; }
.sh-col-go { position: absolute; right: 22px; bottom: 20px; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 999px; background: var(--sh-gold); color: var(--sh-ink); }

/* ---------- catalog layout ---------- */
.sh-catalog { display: flex; gap: 32px; align-items: flex-start; padding-top: 56px; scroll-margin-top: var(--mn-offset, 64px); }
.sh-filters {
    /* No inner scroll box: the panel grows with its content and scrolls with the page
       (a capped, scrolling panel showed both scrollbars). The phone sheet below scrolls itself. */
    flex: 0 0 272px; min-width: 0;
    background: #fff; border: 1px solid var(--sh-line); border-radius: 20px; box-shadow: var(--sh-shadow); padding: 20px;
}
.sh-filters-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.sh-filters-title { font-family: var(--sh-serif); font-weight: 800; font-size: 20px; color: var(--sh-ink); margin-right: auto; }
.sh-reset { color: var(--sh-red); font-weight: 700; font-size: 14px; text-decoration: none; }
.sh-sheet-x, .sh-filters-foot, .sh-tool.sh-tool--filters { display: none; }
.sh-field-search {
    display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; margin-bottom: 18px;
    border: 1.5px solid var(--sh-line-2); border-radius: 14px; background: #fff;
}
.sh-field-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: 500 15px var(--sh-sans); color: var(--sh-ink); }
.sh-fs { border: 0; border-top: 1px solid var(--sh-line); margin: 0; padding: 16px 0 14px; min-width: 0; }
.sh-fs legend {
    float: left; width: 100%; padding: 0; margin-bottom: 8px;
    font-family: var(--sh-cond); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--sh-muted);
}
.sh-row-opt {
    clear: both; display: flex; align-items: center; justify-content: space-between; gap: 8px;
    min-height: 36px; padding: 0 10px; border-radius: 10px; cursor: pointer; font-size: 15px; font-weight: 600;
    transition: background-color 120ms ease;
}
.sh-row-opt input { position: absolute; opacity: 0; pointer-events: none; }
.sh-row-opt > span:first-of-type { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; }
.sh-row-opt:has(input:checked) { background: #fde4e5; color: var(--sh-red); font-weight: 800; }
.sh-row-opt:has(input:focus-visible) { outline: 2px solid var(--sh-red); outline-offset: 1px; }
.sh-row-opt--check > span:first-of-type::before {
    content: ''; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid #c4c8d0; background: #fff center / 12px no-repeat; flex: none;
}
.sh-row-opt--check:has(input:checked) { background: transparent; color: var(--sh-text); font-weight: 600; }
.sh-row-opt--check:has(input:checked) > span:first-of-type::before {
    background-color: var(--sh-red); border-color: var(--sh-red);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.sh-n { font-family: var(--sh-mono); font-size: 12px; color: var(--sh-faint); font-weight: 400; }
.sh-chips { clear: both; display: flex; flex-wrap: wrap; gap: 7px; }
.sh-chip { position: relative; cursor: pointer; max-width: 100%; min-width: 0; }
.sh-chip input { position: absolute; opacity: 0; pointer-events: none; }
.sh-chip span {
    /* One line: a long title ends in … (full name in the label's title) instead of
       wrapping out of a fixed-height pill. */
    display: block; max-width: 100%; height: 32px; line-height: 29px; padding: 0 12px; border-radius: 999px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    border: 1.5px solid var(--sh-line-2); background: #fff; font-size: 13px; font-weight: 700; color: var(--sh-text);
    transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}
.sh-chip input:checked + span { background: var(--sh-ink); border-color: var(--sh-ink); color: #fff; }
.sh-chip input:focus-visible + span { outline: 2px solid var(--sh-red); outline-offset: 2px; }
.sh-price-row { clear: both; display: flex; gap: 8px; }
.sh-price-row select, .sh-price-row input {
    min-width: 0; height: 40px; border: 1.5px solid var(--sh-line-2); border-radius: 12px; background: #fff;
    padding: 0 10px; font: 600 14px var(--sh-sans); color: var(--sh-ink);
}
.sh-price-row select { flex: 1 1 60%; }
.sh-price-row input { flex: 1 1 40%; }
.sh-hint { margin: 6px 0 0; font-size: 12px; color: var(--sh-muted); }
.sh-fs--toggles { display: flex; flex-direction: column; gap: 4px; }
.sh-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; cursor: pointer; font-size: 15px; font-weight: 600; }
.sh-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.sh-toggle i { position: relative; flex: none; width: 42px; height: 24px; border-radius: 999px; background: var(--sh-line-2); transition: background-color 200ms ease; }
.sh-toggle i::after {
    content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
    box-shadow: 0 1px 3px rgba(21,23,40,.25); transition: transform 200ms var(--sh-ease);
}
.sh-toggle input:checked + i { background: var(--sh-red); }
.sh-toggle input:checked + i::after { transform: translateX(18px); }
.sh-toggle input:focus-visible + i { outline: 2px solid var(--sh-red); outline-offset: 2px; }

/* results */
.sh-results { flex: 1 1 520px; min-width: 0; }
.sh-results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.sh-results-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sh-tool {
    display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 999px;
    border: 1.5px solid var(--sh-line-2); background: #fff; color: var(--sh-ink); font: 700 14px var(--sh-sans); cursor: pointer;
    transition: transform 160ms var(--sh-ease), background-color 160ms ease;
}
.sh-tool[aria-pressed="true"] { background: var(--sh-ink); border-color: var(--sh-ink); color: #fff; }
.sh-count {
    display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px;
    border-radius: 999px; background: var(--sh-gold); color: var(--sh-ink); font: 400 12px var(--sh-mono);
}
.sh-sort { padding: 0 6px 0 14px; }
.sh-sort-k { color: var(--sh-muted); font-weight: 500; }
.sh-sort select { border: 0; outline: none; background: transparent; font: 700 14px var(--sh-sans); color: var(--sh-ink); cursor: pointer; height: 36px; }
.sh-active { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.sh-active-chip {
    display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 12px; border-radius: 999px;
    background: var(--sh-ink); color: #fff; font-weight: 600; font-size: 13px; text-decoration: none;
    transition: background-color 120ms ease;
}
.sh-active-chip:hover { color: #fff; }
.sh-clear { font-size: 13px; font-weight: 700; color: var(--sh-body); }

/* ---------- product grid + card ---------- */
.sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 20px; }
.sh-grid--strip { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.sh-card {
    display: flex; flex-direction: column; padding: 10px; background: #fff; border: 1px solid var(--sh-line);
    border-radius: 20px; box-shadow: var(--sh-shadow);
    transition: transform 200ms var(--sh-ease), box-shadow 200ms var(--sh-ease);
}
.sh-card[hidden], [data-shop-saved-filter] .sh-card:not(.is-saved) { display: none; }
.sh-card-media { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: var(--sh-tile); }
.sh-card-media img, .sh-deal-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sh-fallback {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font: 900 56px var(--sh-serif); color: #c9cbd4; background: linear-gradient(135deg, #ececf1, #e0e1e8);
}
.sh-badge {
    position: absolute; top: 10px; left: 10px; z-index: 3; display: inline-flex; align-items: center; height: 26px; padding: 0 10px;
    border-radius: 999px; font-family: var(--sh-cond); font-weight: 700; font-size: 13px; letter-spacing: .14em;
}
.sh-badge--right { left: auto; right: 10px; }
.sh-badge--sale { background: var(--sh-red); color: #fff; font-family: var(--sh-mono); font-weight: 400; letter-spacing: 0; }
.sh-badge--new { background: var(--sh-gold); color: var(--sh-ink); }
.sh-badge--official { background: var(--sh-ink); color: #fff; }
.sh-save {
    position: absolute; top: 8px; right: 8px; z-index: 3; display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 999px; border: 0; cursor: pointer;
    background: rgba(255,255,255,.94); color: var(--sh-text); box-shadow: 0 2px 8px rgba(21,23,40,.18);
    transition: transform 160ms var(--sh-ease), background-color 160ms ease;
}
.sh-save[aria-pressed="true"] { color: var(--sh-red); }
.sh-save[aria-pressed="true"] svg { fill: currentColor; }
.sh-card-body { display: flex; flex-direction: column; flex: 1; padding: 14px 4px 4px; }
.sh-card-cat {
    font-family: var(--sh-cond); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
    color: var(--sh-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sh-card-name {
    font: 700 16px/1.3 var(--sh-sans); color: var(--sh-ink); margin: 5px 0 12px; min-height: 42px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sh-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.sh-now { font-family: var(--sh-serif); font-weight: 900; font-size: 24px; letter-spacing: -.01em; color: var(--sh-ink); font-variant-numeric: tabular-nums; }
.sh-now--lg { font-size: 28px; }
.sh-was { font-family: var(--sh-mono); font-size: 13px; color: var(--sh-faint); }
.sh-store {
    display: flex; align-items: center; gap: 5px; margin: 3px 0 12px; min-width: 0;
    font-family: var(--sh-mono); font-size: 12px; color: var(--sh-muted); white-space: nowrap;
}
.sh-store-name { overflow: hidden; text-overflow: ellipsis; }
.sh-dot { color: var(--sh-line-2); }
.lh-gold-tick { flex: none; vertical-align: -2px; }
.sh-buy {
    display: flex; align-items: center; justify-content: center; gap: 7px; height: 44px; padding: 0 18px; border-radius: 999px;
    background: var(--sh-red); color: #fffdf8; font-weight: 700; font-size: 15px; text-decoration: none; border: 0; cursor: pointer;
    box-shadow: 0 6px 18px rgba(202,33,40,.26);
    transition: transform 160ms var(--sh-ease), background-color 160ms ease, box-shadow 160ms ease;
}
.sh-buy:hover, .sh-buy:focus-visible { color: #fffdf8; }
.sh-buy { min-width: 0; white-space: nowrap; }
.sh-buy-label { overflow: hidden; text-overflow: ellipsis; min-width: 0; }   /* long store names end in … instead of wrapping */
.sh-buy svg { flex: none; }
.sh-buy--inline { display: inline-flex; flex: none; }
.sh-buy--lg { height: 48px; padding: 0 24px; font-size: 16px; }
.sh-more-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 34px; }
.sh-more {
    display: inline-flex; align-items: center; height: 46px; padding: 0 26px; border-radius: 999px;
    border: 2px solid var(--sh-ink); background: #fff; color: var(--sh-ink); font: 700 15px var(--sh-sans);
    text-decoration: none; cursor: pointer; box-shadow: 4px 4px 0 var(--sh-ink);
    transition: transform 160ms var(--sh-ease), box-shadow 160ms var(--sh-ease);
}
.sh-more:hover { color: var(--sh-ink); }
.sh-more[aria-busy="true"] { opacity: .6; pointer-events: none; }
.sh-end, .sh-saved-empty { text-align: center; margin-top: 34px; font-family: var(--sh-mono); font-size: 14px; color: var(--sh-muted); }
.sh-empty {
    display: flex; flex-direction: column; align-items: center; text-align: center; padding: 64px 24px;
    background: #fff; border: 1px solid var(--sh-line); border-radius: 20px;
}
.sh-empty p { font-size: 16px; color: var(--sh-body); margin: 0 0 20px; }
.sh-empty-ic { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 16px; }
.sh-empty-title { font-family: var(--sh-serif); font-weight: 800; font-size: 24px; color: var(--sh-ink); margin-bottom: 6px; }

/* ---------- how it works + CTA ---------- */
.sh-panel { background: #fff; border: 1px solid var(--sh-line); border-radius: 20px; box-shadow: var(--sh-shadow); padding: 36px; }
.sh-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.sh-how-item { display: flex; gap: 14px; }
.sh-how-item h3 { font: 800 17px var(--sh-sans); color: var(--sh-ink); margin: 0 0 4px; }
.sh-how-item p { font-size: 15px; line-height: 1.5; color: var(--sh-body); margin: 0; }
.sh-tick-note { display: flex; align-items: center; gap: 8px; margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--sh-line); font-size: 14px; color: var(--sh-body); }
.sh-cta { position: relative; overflow: hidden; background: var(--sh-ink); border-radius: 20px; padding: 56px 40px; text-align: center; }
.sh-cta-glow { position: absolute; top: 50%; left: 50%; width: 620px; height: 620px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(253,201,73,.18), rgba(253,201,73,0) 65%); pointer-events: none; }
.sh-cta-inner { position: relative; }
.sh-cta-h { font-family: var(--sh-serif); font-weight: 900; font-size: 44px; line-height: 1.02; letter-spacing: -.02em; color: #fff; margin: 0 auto 14px; max-width: 640px; text-wrap: balance; }
.sh-cta-h em { color: var(--sh-gold); }
.sh-cta p { font-size: 17px; line-height: 1.5; color: rgba(255,255,255,.82); margin: 0 auto 26px; max-width: 500px; }

/* ---------- "Shop this" strip ---------- */
.sh-strip { margin: 40px 0 8px; }
.sh-strip-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sh-eyebrow { font-family: var(--sh-cond); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--sh-red); margin-bottom: 4px; }
.sh-strip-title { font-family: var(--sh-serif); font-weight: 900; font-size: 26px; line-height: 1.1; letter-spacing: -.02em; color: var(--sh-ink); margin: 0; }
.sh-strip-all { flex: none; font-weight: 700; font-size: 14px; color: var(--sh-red); text-decoration: none; }
.sh-strip .sh-card-name { font-size: 15px; min-height: 39px; }
.sh-strip .sh-now { font-size: 21px; }
.sh-strip .sh-more-wrap { margin-top: 22px; }
.sh-disclose { margin: 14px 0 0; font-size: 12px; color: var(--sh-muted); }

/* ---------- motion: press feedback everywhere, lift only on real hover ---------- */
.sh-buy:active, .sh-search button:active, .sh-tool:active, .sh-save:active, .sh-cat:active { transform: scale(.97); }
.sh-more:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--sh-ink); }
@media (hover: hover) and (pointer: fine) {
    .sh-card:hover { transform: translateY(-3px); box-shadow: var(--sh-shadow-up); }
    .sh-cat:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(21,23,40,.12); }
    .sh-cat.is-on:hover { box-shadow: 4px 4px 0 var(--sh-red); }
    .sh-col:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(21,23,40,.18); }
    .sh-buy:hover { background: var(--sh-red-hover); box-shadow: 0 10px 24px rgba(202,33,40,.38); }
    .sh-search button:hover { background: var(--sh-red-hover); }
    .sh-hot-chip:hover { background: rgba(253,201,73,.16); border-color: var(--sh-gold); }
    .sh-row-opt:hover { background: #f3f3f7; }
    .sh-row-opt:has(input:checked):hover { background: #fde4e5; }
    .sh-active-chip:hover { background: var(--sh-red); }
    .sh-more:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--sh-ink); }
}
@media (pointer: coarse) {
    .sh-save { width: 44px; height: 44px; top: 4px; right: 4px; }
    .sh-chip span { height: 40px; line-height: 37px; }
    .sh-row-opt { min-height: 44px; }
    .sh-active-chip { height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
    .sh-pulse { animation: none; }
    .sh-card, .sh-cat, .sh-col, .sh-buy, .sh-more, .sh-tool, .sh-save, .sh-filters, .sh-toggle i::after { transition: none !important; }
}

/* ---------- tablet / phone ---------- */
@media (max-width: 1024px) {
    .sh-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .sh-deal { transform: none; }
}
@media (max-width: 900px) {
    .sh-wrap { padding-left: 16px; padding-right: 16px; }
    .sh-h1 { font-size: 40px; line-height: 1; }
    .sh-lede { font-size: 16px; margin-bottom: 20px; }
    /* minmax(0,…): a plain 1fr column grows to the hot-chip row's unwrapped width,
       which pushed the search box and the deal card off the right edge. */
    .sh-hero-grid, .sh-hero-grid--solo { grid-template-columns: minmax(0, 1fr); padding-top: 26px; padding-bottom: 32px; gap: 32px; }
    .sh-deal-wrap { display: block; }
    .sh-deal {
        max-width: none; padding: 12px; box-shadow: 5px 5px 0 var(--sh-gold);
        display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 12px; align-items: start;
    }
    .sh-deal-flag { top: -14px; left: 14px; height: 28px; font-size: 13px; }
    .sh-deal-body { padding: 4px 0 0; min-width: 0; }
    .sh-deal-meta { font-size: 12px; flex-wrap: wrap; }
    .sh-deal-name { font-size: 17px; margin: 4px 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .sh-deal-row { flex-direction: column; align-items: stretch; gap: 8px; }
    .sh-deal-row .sh-now--lg { font-size: 22px; }
    .sh-deal-row .sh-buy--inline { display: flex; height: 44px; }
    .sh-deal .sh-badge { top: 7px; height: 22px; padding: 0 8px; font-size: 12px; }
    .sh-deal .sh-badge--right { left: 7px; right: auto; }
    .sh-deal .sh-store { margin: 6px 0 0; }
    .sh-search { padding: 5px 5px 5px 16px; }
    .sh-search input { font-size: 16px; }   /* 16px stops iOS zooming on focus */
    .sh-hot { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 0 16px; }
    .sh-hot::-webkit-scrollbar { display: none; }
    .sh-hot-chip { flex: none; height: 36px; white-space: nowrap; }
    .sh-h2 { font-size: 26px; }
    .sh-kicker { font-size: 13px; }
    .sh-section { padding-top: 32px; }
    .sh-cats {
        grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-template-columns: none; grid-auto-columns: 116px;
        gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
        margin: 0 -16px; padding: 2px 16px 8px;
    }
    .sh-cats::-webkit-scrollbar, .sh-cols::-webkit-scrollbar { display: none; }
    .sh-cat { padding: 12px; border-radius: 16px; gap: 8px; scroll-snap-align: start; }
    .sh-cols { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 8px; gap: 12px; }
    .sh-col { flex: 0 0 82%; height: 180px; scroll-snap-align: start; }
    .sh-col-name { font-size: 24px; }

    .sh-catalog { display: block; padding-top: 32px; }
    .sh-tool.sh-tool--filters { display: inline-flex; background: var(--sh-ink); border-color: var(--sh-ink); color: #fff; }
    .sh-results-head { position: relative; }
    .sh-results-tools { width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .sh-tool { flex: none; height: 40px; }

    /* Filters become a bottom sheet. */
    .sh-filters {
        position: fixed; z-index: 1001; left: 0; right: 0; bottom: 0; top: auto; max-height: 88vh; max-height: 88dvh;
        display: flex; flex-direction: column; padding: 0; border-radius: 20px 20px 0 0; border: 0;
        box-shadow: 0 -10px 40px rgba(21,23,40,.25);
        transform: translateY(100%); visibility: hidden;
        transition: transform 280ms cubic-bezier(.32,.72,0,1), visibility 0s linear 280ms;
    }
    .sh-filters.is-open { transform: none; visibility: visible; transition: transform 280ms cubic-bezier(.32,.72,0,1); }
    .sh-filters-head { flex: none; padding: 16px 16px 8px; margin: 0; }
    .sh-filters-head::before { content: ''; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 999px; background: var(--sh-line-2); }
    .sh-filters-title { font-size: 22px; font-weight: 900; }
    .sh-sheet-x { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--sh-tile); color: var(--sh-ink); cursor: pointer; }
    .sh-reset { padding: 12px 4px; }
    .sh-filters-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px 16px; }
    .sh-filters-foot { display: block; flex: none; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--sh-line); }
    .sh-apply { width: 100%; height: 52px; border: 0; border-radius: 999px; background: var(--sh-red); color: #fffdf8; font: 700 16px var(--sh-sans); cursor: pointer; box-shadow: 0 6px 18px rgba(202,33,40,.35); }
    .sh-apply:active { transform: scale(.98); }
    .sh-sheet-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(21,23,28,.45); }
    .sh-price-row select, .sh-price-row input { height: 44px; font-size: 16px; }
    .sh-field-search { height: 44px; }
    .sh-field-search input { font-size: 16px; }

    .sh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .sh-card { padding: 8px; border-radius: 16px; min-width: 0; }
    .sh-card-media { border-radius: 12px; }
    .sh-card-body { padding: 10px 2px 2px; }
    .sh-card-cat { font-size: 12px; }
    .sh-card-name, .sh-strip .sh-card-name { font-size: 14px; min-height: 36px; margin: 3px 0 8px; }
    .sh-now, .sh-strip .sh-now { font-size: 19px; }
    .sh-store { font-size: 11px; margin-bottom: 10px; }
    .sh-buy { font-size: 14px; padding: 0 10px; }
    .sh-badge { top: 8px; left: 8px; height: 24px; padding: 0 8px; font-size: 12px; }
    .sh-badge--right { left: auto; right: 8px; }
    .sh-buy-on { display: none; }   /* phone: "Buy ↗" — the store is named on the line above */
    .sh-more-wrap { align-items: stretch; margin-top: 22px; }
    .sh-more { justify-content: center; height: 48px; }
    .sh-panel { padding: 22px 18px; }
    .sh-how { grid-template-columns: 1fr; gap: 18px; }
    .sh-cta { padding: 36px 20px; }
    .sh-cta-h { font-size: 30px; }
    .sh-strip-title { font-size: 22px; }
}
@media (max-width: 380px) {
    .sh-buy { font-size: 13px; gap: 4px; }
}
