/* RP Fitness shop (Brief SH1). Scoped to .rps so nothing leaks into the rest of the site.
   Brand: red #e4022e, navy #002c41, ivory #F6F5EE, white. Montserrat only, headings 800. Mobile first (375px). No circles
   except colour swatches, which are the industry convention for colour and read as fabric samples. */
.rps {
  --rps-red: var(--wp--preset--color--action, #e4022e);
  --rps-navy: var(--wp--preset--color--navy, #002c41);
  --rps-ivory: #F6F5EE;
  --rps-ink: #14202a;
  --rps-mute: #5b6670;
  --rps-line: #e3e1d8;
  --rps-ok: #1d6b40;
  --rps-pad: clamp(1.1rem, 5vw, 2.4rem);
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--rps-ink);
  font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.rps *, .rps *::before, .rps *::after { box-sizing: border-box; }
.rps img { display: block; max-width: 100%; }
.rps button { font: inherit; color: inherit; cursor: pointer; }
.rps a { color: inherit; }
.rps :focus-visible { outline: 2px solid var(--rps-navy); outline-offset: 3px; }
.rps-wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--rps-pad); }
.rps-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rps-red); margin: 0 0 10px; }
.rps h1, .rps h2, .rps h3 { font-family: 'Montserrat', Arial, sans-serif; font-weight: 800; color: var(--rps-navy); letter-spacing: -.01em; margin: 0; }
.rps-h1 { font-size: clamp(30px, 6vw, 52px); line-height: 1.04; text-transform: uppercase; }
.rps-lead { font-size: 17px; color: var(--rps-mute); max-width: 34em; margin: 14px 0 0; }
.rps-crumbs { font-size: 13px; color: var(--rps-mute); padding: 18px 0 0; }
.rps-crumbs a { text-decoration: none; }
.rps-crumbs a:hover { color: var(--rps-red); }
.rps-test { display: inline-block; background: #fff3c4; color: #6b4e00; font-size: 11px; font-weight: 800; letter-spacing: .1em; padding: 3px 7px; text-transform: uppercase; vertical-align: middle; }

/* ---------- buttons ---------- */
.rps-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border: 0; border-radius: 8px;
  background: var(--rps-red); color: #fff !important; font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 8px 18px rgba(228, 2, 46, .22); transition: transform .15s ease, box-shadow .15s ease, opacity .15s; width: 100%; }
.rps-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(228, 2, 46, .3); }
.rps-btn:active { transform: translateY(0); }
.rps-btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.rps-btn.is-navy { background: var(--rps-navy); box-shadow: none; }
.rps-btn.is-ghost { background: transparent; color: var(--rps-navy) !important; border: 2px solid var(--rps-navy); box-shadow: none; }
.rps-link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; color: var(--rps-navy); }

/* ---------- collection ---------- */
.rps-hero { padding: clamp(28px, 6vw, 64px) 0 clamp(22px, 4vw, 40px); display: grid; gap: 8px; }
.rps-hero-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.rps-perks { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--rps-navy); margin: 0; padding: 0; list-style: none; }
.rps-perks li { display: flex; align-items: center; gap: 8px; }
.rps-perks svg { width: 18px; height: 18px; color: var(--rps-red); flex: none; }
.rps-grid { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 40px); padding-bottom: clamp(48px, 8vw, 96px); }
@media (min-width: 720px) { .rps-grid { grid-template-columns: 1fr 1fr; } }
.rps-card { text-decoration: none; display: block; color: inherit; }
.rps-card-media { position: relative; aspect-ratio: 4 / 5; background: var(--rps-ivory); overflow: hidden; }
.rps-card-media img, .rps-card-media .rps-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.rps-card-media .rps-alt { opacity: 0; }
.rps-card:hover .rps-card-media .rps-alt { opacity: 1; }
.rps-card:hover .rps-card-media img:first-child, .rps-card:hover .rps-card-media .rps-ph { transform: scale(1.025); }
.rps-card-tag { position: absolute; left: 14px; top: 14px; background: #fff; color: var(--rps-navy); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 6px 9px; }
.rps-card-body { padding: 16px 2px 0; display: grid; gap: 6px; }
.rps-card-top { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.rps-card-name { font-size: 18px; font-weight: 800; color: var(--rps-navy); }
.rps-price { font-weight: 700; font-size: 17px; color: var(--rps-ink); white-space: nowrap; }
.rps-card-sub { font-size: 14px; color: var(--rps-mute); }
.rps-dots { display: flex; gap: 8px; margin-top: 4px; }
.rps-dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); box-shadow: inset 0 0 0 2px #fff; }

/* placeholder (clearly marked: real photos to come) */
.rps-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: linear-gradient(160deg, #f8f7f2, #ecebe3); color: var(--rps-mute); }
.rps-ph svg { width: 56%; max-width: 280px; height: auto; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .12)); }
.rps-ph span { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: rgba(255, 255, 255, .85); padding: 5px 9px; }

/* ---------- product ---------- */
.rps-pdp { display: grid; grid-template-columns: 1fr; gap: 26px; padding: 14px 0 clamp(48px, 8vw, 96px); }
@media (min-width: 960px) { .rps-pdp { grid-template-columns: minmax(0, 1.35fr) minmax(360px, .9fr); gap: 56px; } }
.rps-gallery { position: relative; margin: 0 calc(var(--rps-pad) * -1); }
.rps-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rps-track::-webkit-scrollbar { display: none; }
.rps-slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 4 / 5; background: var(--rps-ivory); position: relative; overflow: hidden; }
.rps-slide img, .rps-slide .rps-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rps-pager { display: flex; justify-content: center; gap: 6px; padding: 12px 0 0; }
.rps-pager i { width: 22px; height: 3px; background: var(--rps-line); transition: background .2s; }
.rps-pager i.on { background: var(--rps-navy); }
@media (min-width: 960px) { .rps-pager { display: none; } }
.rps-buy { align-self: start; }
@media (min-width: 960px) { .rps-buy { position: sticky; top: 24px; } }
.rps-buy h1 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.1; text-transform: uppercase; }
.rps-buy .rps-price { font-size: 22px; display: block; margin: 10px 0 4px; }
.rps-buy .rps-lead { font-size: 15px; margin-top: 8px; }
.rps-opt { margin-top: 26px; }
.rps-opt-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; margin-bottom: 12px; }
.rps-opt-head b { font-weight: 700; color: var(--rps-navy); }
.rps-swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.rps-swatch { width: 40px; height: 40px; border-radius: 50%; padding: 0; border: 1px solid rgba(0, 0, 0, .2); box-shadow: inset 0 0 0 3px #fff; position: relative; transition: transform .12s; }
.rps-swatch:hover { transform: scale(1.06); }
.rps-swatch[aria-pressed="true"] { outline: 2px solid var(--rps-navy); outline-offset: 3px; }
.rps-swatch.is-out::after { content: ''; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 1.5px; background: rgba(20, 32, 42, .55); transform: rotate(45deg); }
.rps-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; }
.rps-size { min-height: 50px; border: 1px solid #cfcdc4; background: #fff; border-radius: 6px; font-weight: 700; font-size: 14px; transition: border-color .12s, background .12s, color .12s; position: relative; }
.rps-size:hover:not([disabled]) { border-color: var(--rps-navy); }
.rps-size[aria-pressed="true"] { background: var(--rps-navy); border-color: var(--rps-navy); color: #fff; }
.rps-size[disabled] { color: #a5a9ab; background: #f7f7f4; cursor: not-allowed; text-decoration: line-through; }
.rps-stock { min-height: 22px; font-size: 13px; font-weight: 600; margin-top: 12px; display: flex; align-items: center; gap: 8px; }
.rps-stock::before { content: ''; width: 8px; height: 8px; background: currentColor; display: inline-block; }
.rps-stock.in { color: var(--rps-ok); } .rps-stock.low { color: #a15c00; } .rps-stock.out { color: var(--rps-mute); } .rps-stock.none::before { display: none; }
.rps-cta { margin-top: 20px; display: grid; gap: 12px; }
.rps-note { font-size: 13px; color: var(--rps-mute); display: flex; gap: 10px; align-items: flex-start; }
.rps-note svg { width: 18px; height: 18px; flex: none; color: var(--rps-navy); margin-top: 1px; }
.rps-acc { border-top: 1px solid var(--rps-line); margin-top: 28px; }
.rps-acc details { border-bottom: 1px solid var(--rps-line); }
.rps-acc summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--rps-navy); display: flex; justify-content: space-between; }
.rps-acc summary::-webkit-details-marker { display: none; }
.rps-acc summary::after { content: '+'; font-size: 20px; line-height: 1; font-weight: 500; transition: transform .2s; }
.rps-acc details[open] summary::after { transform: rotate(45deg); }
.rps-acc .rps-acc-body { padding: 0 0 18px; font-size: 15px; color: #33404a; }
.rps-acc .rps-acc-body p { margin: 0 0 10px; }
.rps-other { border-top: 1px solid var(--rps-line); padding: clamp(36px, 6vw, 64px) 0; }
.rps-other .rps-grid { padding-bottom: 0; }
@media (min-width: 720px) { .rps-other .rps-grid { grid-template-columns: minmax(0, 420px); } }

/* sticky add bar on phones once the main button scrolls away */
.rps-bar { position: fixed; left: 0; right: 0; bottom: var(--rps-cc, 0px); z-index: 9999; background: #fff; border-top: 1px solid var(--rps-line); padding: 10px var(--rps-pad) calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 12px; align-items: center; transform: translateY(110%); transition: transform .25s ease; }
.rps-bar.on { transform: none; }
.rps-bar .rps-btn { min-height: 48px; }
.rps-bar-txt { font-size: 13px; line-height: 1.3; min-width: 0; }
.rps-bar-txt b { display: block; font-size: 14px; color: var(--rps-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 960px) { .rps-bar { display: none; } }

/* ---------- basket drawer and page ---------- */
.rps-fab { position: fixed; right: 18px; bottom: calc(18px + var(--rps-cc, 0px)); z-index: 9999; display: inline-flex; align-items: center; gap: 10px; background: var(--rps-navy); color: #fff; border: 0; border-radius: 8px; min-height: 52px; padding: 0 18px; font-weight: 700; font-size: 14px; box-shadow: 0 10px 28px rgba(0, 44, 65, .3); transition: transform .2s; }
.rps-fab[hidden] { display: none; }
.rps-fab svg { width: 20px; height: 20px; }
.rps-fab .n { background: var(--rps-red); color: #fff; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.rps-fab.bump { animation: rps-bump .4s ease; }
@keyframes rps-bump { 40% { transform: scale(1.08); } }
.rps-scrim { position: fixed; inset: 0; background: rgba(10, 20, 28, .45); z-index: 10000; opacity: 0; pointer-events: none; transition: opacity .25s; }
.rps-scrim.on { opacity: 1; pointer-events: auto; }
.rps-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; z-index: 10001; transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .7, .2, 1); display: flex; flex-direction: column; }
.rps-drawer.on { transform: none; }
.rps-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--rps-line); }
.rps-drawer-head h2 { font-size: 18px; text-transform: uppercase; }
.rps-x { background: none; border: 0; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; margin-right: -10px; }
.rps-x svg { width: 22px; height: 22px; }
.rps-drawer-body { flex: 1; overflow-y: auto; padding: 6px 22px; }
.rps-drawer-foot { border-top: 1px solid var(--rps-line); padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
.rps-added { background: #eef6f0; color: var(--rps-ok); font-weight: 700; font-size: 13px; padding: 10px 12px; margin: 14px 0 4px; display: flex; gap: 8px; align-items: center; }
.rps-line { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--rps-line); }
.rps-line:last-child { border-bottom: 0; }
.rps-line-img { aspect-ratio: 4 / 5; background: var(--rps-ivory); position: relative; overflow: hidden; }
.rps-line-img img, .rps-line-img .rps-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rps-line-img .rps-ph span { display: none; }
.rps-line-name { font-weight: 700; font-size: 15px; color: var(--rps-navy); line-height: 1.3; }
.rps-line-meta { font-size: 13px; color: var(--rps-mute); margin-top: 2px; }
.rps-line-warn { font-size: 13px; color: #a15c00; font-weight: 600; margin-top: 6px; }
.rps-qty { display: inline-flex; align-items: center; border: 1px solid #cfcdc4; border-radius: 6px; margin-top: 10px; }
.rps-qty button { width: 40px; height: 38px; background: none; border: 0; font-size: 18px; }
.rps-qty button[disabled] { color: #c3c5c6; cursor: not-allowed; }
.rps-qty span { min-width: 26px; text-align: center; font-weight: 700; font-size: 14px; }
.rps-line-right { text-align: right; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.rps-remove { background: none; border: 0; font-size: 13px; color: var(--rps-mute); text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }
.rps-sum { display: flex; justify-content: space-between; font-size: 15px; }
.rps-sum.big { font-size: 18px; font-weight: 800; color: var(--rps-navy); }
.rps-empty { text-align: center; padding: 48px 8px; color: var(--rps-mute); display: grid; gap: 18px; justify-items: center; }
.rps-empty b { color: var(--rps-navy); font-size: 18px; font-weight: 800; }
.rps-empty .rps-btn { width: auto; }

.rps-checkout { display: grid; grid-template-columns: 1fr; gap: 32px; padding: 18px 0 clamp(48px, 8vw, 96px); }
@media (min-width: 960px) { .rps-checkout { grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); gap: 56px; } }
.rps-panel { background: #fff; }
.rps-summary { background: var(--rps-ivory); padding: 22px; align-self: start; }
@media (min-width: 960px) { .rps-summary { position: sticky; top: 24px; } }
.rps-summary h2 { font-size: 16px; text-transform: uppercase; margin-bottom: 6px; }
.rps-steps { display: flex; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rps-mute); margin: 8px 0 22px; flex-wrap: wrap; }
.rps-steps b { color: var(--rps-navy); }
.rps-field { display: grid; gap: 6px; margin-bottom: 16px; }
.rps-field label { font-size: 14px; font-weight: 700; color: var(--rps-navy); }
.rps-field label small { font-weight: 500; color: var(--rps-mute); }
.rps-field input { min-height: 52px; border: 1px solid #c9c7be; border-radius: 6px; padding: 0 14px; font: inherit; font-size: 16px; background: #fff; }
.rps-field input:focus { border-color: var(--rps-navy); outline: 2px solid rgba(0, 44, 65, .15); outline-offset: 0; }
.rps-field input[aria-invalid="true"] { border-color: var(--rps-red); }
.rps-err { color: var(--rps-red); font-size: 13px; font-weight: 600; }
.rps-box { border: 1px solid var(--rps-line); padding: 16px 18px; display: flex; gap: 14px; margin: 6px 0 20px; }
.rps-box svg { width: 22px; height: 22px; color: var(--rps-red); flex: none; margin-top: 2px; }
.rps-box b { display: block; color: var(--rps-navy); }
.rps-box p { margin: 2px 0 0; font-size: 14px; color: var(--rps-mute); }
.rps-alert { background: #fff4f4; border-left: 3px solid var(--rps-red); padding: 12px 14px; font-size: 14px; margin: 0 0 18px; }
.rps-alert.info { background: #f1f5f8; border-color: var(--rps-navy); }
.rps-secure { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: var(--rps-mute); }
.rps-secure svg { width: 14px; height: 14px; }
.rps-legal { font-size: 12px; color: var(--rps-mute); text-align: center; margin: 0; }

/* ---------- order page ---------- */
.rps-order { max-width: 720px; padding: clamp(28px, 6vw, 56px) 0 clamp(48px, 8vw, 96px); }
.rps-tick { width: 52px; height: 52px; background: var(--rps-ok); color: #fff; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.rps-tick svg { width: 28px; height: 28px; }
.rps-track-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 28px 0; }
.rps-track-steps div { border-top: 3px solid var(--rps-line); padding-top: 10px; font-size: 13px; font-weight: 700; color: var(--rps-mute); }
.rps-track-steps div.on { border-color: var(--rps-navy); color: var(--rps-navy); }
.rps-card-box { border: 1px solid var(--rps-line); padding: 20px 22px; margin-top: 18px; }
.rps-card-box h2 { font-size: 15px; text-transform: uppercase; margin-bottom: 10px; }
.rps-kv { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; padding: 6px 0; }
.rps-kv span:first-child { color: var(--rps-mute); }
.rps-loading { padding: 80px 0; text-align: center; color: var(--rps-mute); }
.rps-skel { background: linear-gradient(90deg, #f1f0ea 25%, #f8f7f2 50%, #f1f0ea 75%); background-size: 200% 100%; animation: rps-sk 1.2s infinite linear; }
@keyframes rps-sk { to { background-position: -200% 0; } }
.rps-toast { position: fixed; left: 50%; top: 18px; transform: translate(-50%, -140%); background: var(--rps-navy); color: #fff; padding: 12px 18px; font-size: 14px; font-weight: 600; z-index: 10002; transition: transform .25s; max-width: calc(100% - 32px); }
.rps-toast.on { transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .rps *, .rps *::before, .rps *::after { transition: none !important; animation: none !important; } }

/* Design review 1 (16 November 2026) */
.rps-btn { font-weight: 800; letter-spacing: .06em; }
.rps-dot { width: 22px; height: 22px; }
.rps-dots { gap: 8px; }
.rps-crumbs { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 719px) {
  .rps-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; font-size: 12px; text-align: center; }
  .rps-perks li { flex-direction: column; gap: 6px; }
  .rps-sizes { grid-template-columns: repeat(5, 1fr); }
}
.rps-ph svg { filter: drop-shadow(0 22px 22px rgba(0, 0, 0, .16)); }
.rps-other .rps-grid { max-width: 920px; }
/* Phones: show what they're paying for before the form */
@media (max-width: 959px) { .rps-checkout .rps-summary { order: -1; } .rps-checkout { gap: 22px; } }
/* QA round 1: tap targets 44px */
.rps-swatch { width: 44px; height: 44px; }
.rps-qty button { width: 44px; height: 44px; }
.rps-remove { min-height: 44px; }
.rps-link[data-guide], .rps-drawer-foot .rps-link { min-height: 44px; }
.rps-crumbs a { display: inline-block; padding: 12px 0; }
.rps-legal a { display: inline-block; padding: 6px 0; }
/* Design review 2 */
.rps .rps-btn { font-family: 'Montserrat', Arial, sans-serif; font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.rps-steps { margin: 14px 0 26px; padding-bottom: 14px; border-bottom: 1px solid var(--rps-line); }
.rps-steps b { color: var(--rps-red); }
.rps-legal { line-height: 1.55; }
.rps-card-name { text-transform: uppercase; font-size: 16px; letter-spacing: .01em; }
.rps .rps-size { font-weight: 700; font-size: 15px; } .rps .rps-swatch, .rps .rps-size { font-family: 'Montserrat', Arial, sans-serif; }
.rps-card-media:has(img), .rps-slide:has(img) { background: #fff; }

/* Desktop product page (James, 16 November): one big photo with a thumbnail strip, square frame so the hoodie fills it */
.rps-thumbs { display: none; }
@media (min-width: 960px) {
  .rps-pdp { grid-template-columns: minmax(0, 1.6fr) minmax(340px, .85fr); gap: 48px; padding-top: 10px; }
  .rps-gallery { margin: 0; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: start; }
  .rps-gallery:has(.rps-thumbs[hidden]) { grid-template-columns: minmax(0, 1fr); }
  .rps-thumbs { display: grid; gap: 10px; position: sticky; top: 24px; }
  .rps-thumbs[hidden] { display: none; }
  .rps-thumb { padding: 0; border: 1px solid var(--rps-line); background: #fff; aspect-ratio: 1 / 1; overflow: hidden; transition: border-color .15s; }
  .rps-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .rps-thumb:hover { border-color: #9aa3a9; }
  .rps-thumb[aria-pressed="true"] { border: 2px solid var(--rps-navy); }
  .rps-track { display: block; overflow: visible; }
  .rps-slide { display: none; aspect-ratio: 1 / 1; max-height: calc(100vh - 120px); margin: 0 auto; }
  .rps-slide.on { display: block; animation: rps-fade .25s ease; }
  .rps-slide img { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
  .rps-slide:hover img { transform: scale(1.03); }
  .rps-buy { padding-top: 8px; }
}
@keyframes rps-fade { from { opacity: .4; } to { opacity: 1; } }

/* ---------- Brief SH1-E ---------- */
/* Layers: the cookie banner is 9998 and its panel 9999 (theme rp-consent.css). The add bar and basket button sit at 9999 and
   rise above the banner while it shows (--rps-cc, set by shop.js); the drawer, its scrim and the toast sit above them all. */
.rps-offer { background: var(--rps-navy); color: #fff; text-align: center; font-size: 14px; line-height: 1.4; font-weight: 600; padding: 10px var(--rps-pad); }
.rps-offer b { font-weight: 800; letter-spacing: .04em; }
.rps-was { color: var(--rps-mute); font-weight: 500; text-decoration-thickness: 1.5px; }
.rps-now { color: var(--rps-red); }
.rps-with { display: block; font-size: 13px; font-weight: 600; color: var(--rps-mute); margin: 2px 0 0; }
.rps-card-body .rps-with { font-size: 12px; margin: 0 0 4px; }
.rps-cnote { font-size: 13px; color: var(--rps-mute); margin: 10px 0 0; max-width: 34em; }
.rps-cnote[hidden] { display: none; }
.rps-dline { display: grid; grid-template-columns: 70px 1fr; gap: 10px; }
.rps-dline b { color: var(--rps-navy); }
.rps-code { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rps-line); display: grid; gap: 8px; }
.rps-code label { font-size: 14px; font-weight: 700; color: var(--rps-navy); }
.rps-code-row { display: flex; gap: 8px; }
.rps-code-row input { flex: 1; min-width: 0; min-height: 48px; border: 1px solid #c9c7be; border-radius: 6px; padding: 0 12px; font: inherit; font-size: 16px; text-transform: uppercase; background: #fff; }
.rps-code-row input:focus { border-color: var(--rps-navy); outline: 2px solid rgba(0, 44, 65, .15); outline-offset: 0; }
.rps-code-row input[aria-invalid="true"] { border-color: var(--rps-red); }
.rps-code-row .rps-btn { width: auto; flex: none; min-height: 48px; padding: 0 18px; }
.rps-code-on { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.rps-code-on .rps-link { min-height: 44px; }
.rps-save { color: var(--rps-ok); font-weight: 700; }

/* ---------- SH1-G ---------- */
/* /shop/ top section: the worn photo first on phones, beside the words from 720px (photo left). */
.rps-intro { display: grid; gap: 22px; padding: clamp(20px, 4vw, 48px) 0 clamp(32px, 5vw, 56px); align-items: center; }
.rps-intro-media { aspect-ratio: 4 / 5; background: #fff; overflow: hidden; }
.rps-intro-media img { width: 100%; height: 100%; object-fit: cover; }
.rps-intro-text { display: grid; gap: 0; }
.rps-intro-btns { display: flex; gap: 12px; margin: 26px 0 26px; }
.rps-intro-btns .rps-btn { flex: 1; width: auto; padding: 0 18px; }
@media (min-width: 720px) {
  .rps-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
  .rps-intro-btns .rps-btn { flex: none; min-width: 170px; }
}
@media (min-width: 1100px) { .rps-intro { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); } }
/* The worn photo on hover: only where there is a real hover (a mouse); never on phones or tablets. */
.rps-card-media .rps-alt { display: none; }
@media (hover: hover) and (pointer: fine) { .rps-card-media .rps-alt { display: block; } }
/* Size guide */
.rps-sizes-t { width: 100%; border-collapse: collapse; margin: 0 0 12px; font-size: 14px; }
.rps-sizes-t caption { text-align: left; font-size: 13px; color: var(--rps-mute); padding: 0 0 6px; }
.rps-sizes-t th, .rps-sizes-t td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--rps-line); }
.rps-sizes-t thead th { font-weight: 700; color: var(--rps-navy); font-size: 13px; }
.rps-sizes-t tbody th { font-weight: 700; color: var(--rps-navy); }
/* One code line */
.rps-code-on span { color: var(--rps-ok); font-weight: 700; }
.rps-code-on span b { color: inherit; }
/* The checkout's one column on phones may not grow wider than the page (a long code message or the code row made it 36px too
   wide at 375). */
.rps-checkout { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .rps-checkout { grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); } }
.rps-code { grid-template-columns: minmax(0, 1fr); }
.rps-code-row input { width: 0; }
