/* The Pocket Run shop. Navy, cream, white, red accents. */
.shop-page {
  --s-navy: #002147;
  --s-navy-btn: #0B2A57;
  --s-red: #CC0000;
  --s-red-text: #A8141C;
  --s-pink: #F4A9A9;
  --s-cream: #F6F4EE;
  --s-panel: #ECEEF1;
  --s-ink: #0F1E3A;
  --s-body: #3D4757;
  --s-serif: Georgia, 'Times New Roman', serif;
  --s-sans: Arial, Helvetica, sans-serif;
  background: var(--s-cream);
  color: var(--s-ink);
  font-family: var(--s-sans);
}
.shop-page * { box-sizing: border-box; }

/* 1. Shop-only header: logo, Back to The Pocket Run, cart */
.shop-head { position: sticky; top: 0; z-index: 150; background: #fff; box-shadow: 0 1px 0 rgba(0,33,71,.12); }
.shop-head-inner { max-width: 1120px; margin: 0 auto; padding: 10px 20px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.shop-head-logo img { display: block; height: 58px; width: auto; }
.shop-head-back { justify-self: start; display: inline-flex; align-items: center; gap: 6px; color: var(--s-navy); font-family: var(--s-sans); font-weight: 700; font-size: .95rem; text-decoration: none; padding: 10px 0; }
.shop-head-back:hover span { text-decoration: underline; text-underline-offset: 4px; }
.shop-head-back-short { display: none; }
.shop-head-end { justify-self: end; display: flex; }
.shop-head-cart { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; background: transparent; color: var(--s-navy); border: 0; border-radius: 50%; cursor: pointer; transition: background-color .15s ease; }
@media (hover: hover) { .shop-head-cart:hover { background: rgba(0,33,71,.06); } }
.shop-head-cart[hidden] { display: none; }
.shop-head-badge { position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--s-red); color: #fff; font-family: var(--s-sans); font-size: .72rem; font-weight: 700; line-height: 19px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.shop-head-badge[hidden] { display: none; }
.shop-head a:focus-visible, .shop-head button:focus-visible { outline: 3px solid var(--s-navy); outline-offset: 3px; }
@media (max-width: 640px) {
  .shop-head-inner { padding: 8px 12px; gap: 8px; }
  .shop-head-logo img { height: 46px; }
  .shop-head-back-long { display: none; }
  .shop-head-back-short { display: inline; }
}

/* Shared */
.shop-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.shop-eyebrow {
  margin: 0 0 12px; font-family: var(--s-sans); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--s-red-text);
}
.shop-eyebrow--light { color: var(--s-pink); }
.shop-btn {
  display: inline-block; border: 0; cursor: pointer; font-family: var(--s-sans); font-weight: 700;
  font-size: 1rem; line-height: 1.2; padding: 16px 30px; text-decoration: none; text-align: center;
  transition: background .15s ease;
}
.shop-btn--red { background: var(--s-red); color: #fff; }
.shop-btn--red:hover { background: #A80000; color: #fff; }
.shop-btn--navy { background: var(--s-navy-btn); color: #fff; }
.shop-btn--navy:hover:not([disabled]) { background: var(--s-navy); }
.shop-btn[disabled] { cursor: default; }
.shop-btn--white { background: #fff; color: var(--s-navy); }
.shop-btn--white:hover:not([disabled]) { background: var(--s-cream); }

/* 2. Intro (compact) */
.shop-intro { background: var(--s-navy); color: #fff; }
.shop-intro-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: center;
}
.shop-intro-copy { padding: 52px 0; }
.shop-intro h1 {
  font-family: var(--s-serif); font-weight: 400; font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: 1.08; margin: 0 0 16px; color: #fff;
}
.shop-intro-text { margin: 0 0 26px; font-size: 1.12rem; line-height: 1.5; color: rgba(255,255,255,.92); max-width: 31rem; }
.shop-intro-photo { align-self: stretch; height: 100%; max-height: 380px; overflow: hidden; }
.shop-intro-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
@media (max-width: 760px) {
  .shop-intro-inner { grid-template-columns: 1fr 190px; gap: 24px; }
  .shop-intro-copy { padding: 36px 0; }
}
@media (max-width: 600px) {
  .shop-intro-inner { grid-template-columns: 1fr; text-align: center; }
  .shop-intro-photo { display: none; }
  .shop-intro-copy { padding: 30px 0 34px; }
  .shop-intro h1 { font-size: 2.6rem; }
  .shop-intro-text { margin-left: auto; margin-right: auto; font-size: 1.08rem; }
  .shop-intro .shop-btn { padding: 16px 34px; }
}

/* 3. Heading */
.shop-collection { padding: 44px 0 56px; }
.shop-collection-head { text-align: center; margin: 0 auto 34px; max-width: 40rem; }
.shop-collection-head h2 {
  font-family: var(--s-serif); font-weight: 400; color: var(--s-ink);
  font-size: clamp(2.1rem, 4vw, 3rem); line-height: 1.12; margin: 0 0 8px;
}
.shop-collection-head p:last-child { margin: 0; color: var(--s-body); font-size: 1.08rem; line-height: 1.5; }

/* Product typography */
.shop-body h3 {
  font-family: var(--s-serif); font-weight: 400; color: var(--s-ink);
  font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.15; margin: 0 0 14px;
}
.shop-desc { margin: 0 0 20px; color: var(--s-body); font-size: 1.06rem; line-height: 1.6; }
.shop-price { margin: 0 0 18px; font-family: var(--s-sans); font-weight: 700; font-size: 1.85rem; color: var(--s-ink); }
.shop-note { margin: 16px 0 0; color: var(--s-body); font-size: 0.95rem; line-height: 1.7; }
.shop-media { background: var(--s-panel); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.shop-media img { display: block; max-width: 100%; height: auto; }

/* 4. Featured shirt */
.shop-feature { display: grid; grid-template-columns: 1.15fr 1fr; background: #fff; margin-bottom: 28px; }
.shop-media--feature { padding: 36px; }
.shop-media--feature img { width: 100%; }
.shop-feature .shop-body { padding: 44px 44px 40px; align-self: center; }
@media (max-width: 860px) {
  .shop-feature { grid-template-columns: 1fr; }
  .shop-media--feature { padding: 34px 32px; }
  .shop-feature .shop-body { padding: 30px 46px 36px; }
}
@media (max-width: 480px) {
  .shop-media--feature { padding: 34px 28px; }
  .shop-feature .shop-body { padding: 30px 40px 34px 40px; }
}

/* 5. Product cards */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 28px; }
.shop-card { background: #fff; display: flex; flex-direction: column; }
.shop-media--card { aspect-ratio: 1 / 0.86; }
.shop-media--card img { width: 100%; height: 100%; object-fit: cover; }
.shop-media--pad { padding: 30px 22px; }
.shop-media--pad img { object-fit: contain; }
.shop-card .shop-body { padding: 30px 30px 34px; display: flex; flex-direction: column; flex: 1; }
.shop-card .shop-buy { margin-top: auto; }
@media (max-width: 900px) {
  .shop-grid { grid-template-columns: 1fr; gap: 28px; }
  .shop-media--card { aspect-ratio: 1 / 0.82; }
  .shop-card .shop-body { padding: 30px 38px 36px; }
}

/* 6. Program sides */
.shop-sides { display: flex; gap: 14px; margin: 0 0 22px; }
.shop-side {
  font-family: var(--s-sans); font-weight: 700; font-size: 1rem; padding: 14px 24px; cursor: pointer;
  background: #fff; color: var(--s-ink); border: 1.5px solid var(--s-ink);
}
.shop-side.is-active { background: var(--s-navy-btn); color: #fff; border-color: var(--s-navy-btn); }

/* 7. Bundle */
.shop-bundle { background: var(--s-navy); color: #fff; padding: 56px 60px; margin: 0 0 30px; }
.shop-bundle h2 {
  font-family: var(--s-serif); font-weight: 400; color: #fff;
  font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1.12; margin: 0 0 16px;
}
.shop-bundle-text { margin: 0 0 30px; font-size: 1.15rem; line-height: 1.55; color: rgba(255,255,255,.92); max-width: 28rem; }
.shop-bundle-price { margin: 0 0 8px; font-family: var(--s-sans); font-weight: 700; font-size: 2.4rem; color: #fff; }
.shop-bundle-note { margin: 0; font-size: 1rem; color: rgba(255,255,255,.88); }
.shop-buy--light:empty { display: none; }
.shop-buy--light { margin-top: 22px; }
@media (max-width: 600px) { .shop-bundle { padding: 44px 30px 48px; } .shop-bundle-price { font-size: 2.3rem; } }

.shop-footnote { text-align: center; color: var(--s-body); font-size: 1rem; line-height: 1.6; max-width: 40rem; margin: 0 auto; }

/* 8. Footer */
.shop-footer { background: #fff; border-top: 1px solid rgba(0,33,71,.12); text-align: center; padding: 40px 20px 34px; }
.shop-footer-logo img { width: 170px; height: auto; display: inline-block; }
.shop-footer-line { margin: 18px 0 6px; color: var(--s-body); font-size: 1rem; }
.shop-footer-charity { margin: 0 0 18px; color: var(--s-ink); font-size: 0.95rem; font-weight: 700; }
.shop-footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 0.88rem; }
.shop-footer-nav a { color: var(--s-navy); text-decoration: none; }
.shop-footer-nav a:hover { text-decoration: underline; }

/* Buying controls (when the shop is open) */
.buy-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.buy-select, .buy-qty {
  font-family: var(--s-sans); font-size: 1rem; border: 1.5px solid #9AA3B2; background: #fff; color: var(--s-ink);
  padding: 0 12px; height: 54px;
}
.buy-select { min-width: 150px; }
.buy-qty { width: 78px; }
.buy-row .shop-btn { height: 54px; padding: 0 26px; }
.shop-buy--light .buy-select, .shop-buy--light .buy-qty { border-color: #fff; }
.buy-msg { flex-basis: 100%; margin: 4px 0 0; font-size: 0.9rem; color: var(--s-body); min-height: 1.2em; }
.shop-buy--light .buy-msg { color: rgba(255,255,255,.85); }
.buy-soldout { font-weight: 700; color: var(--s-red-text); }

/* Cart */
.cart-backdrop { position: fixed; inset: 0; background: rgba(0,21,48,.45); z-index: 210; }
.cart-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; z-index: 220;
  display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,21,48,.2);
}
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid #E3E0D8; }
.cart-head h2 { margin: 0; font-family: var(--s-serif); font-weight: 400; font-size: 1.7rem; color: var(--s-ink); }
.cart-close { background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--s-ink); }
.cart-lines { flex: 1; overflow-y: auto; padding: 8px 22px; }
.cart-empty { color: var(--s-body); padding: 20px 0; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 16px 0; border-bottom: 1px solid #EEEAE2; }
.cart-line-name { font-weight: 700; color: var(--s-ink); }
.cart-line-meta { font-size: .9rem; color: var(--s-body); }
.cart-line-total { font-weight: 700; color: var(--s-ink); text-align: right; }
.cart-line-ctrl { display: flex; align-items: center; gap: 8px; }
.cart-line-ctrl button {
  width: 34px; height: 34px; border: 1.5px solid #9AA3B2; background: #fff; font-size: 1.1rem; cursor: pointer; color: var(--s-ink);
}
.cart-line-ctrl .cart-remove { width: auto; border: 0; padding: 0 4px; font-size: .88rem; text-decoration: underline; color: var(--s-body); }
.cart-foot { padding: 18px 22px 22px; border-top: 1px solid #E3E0D8; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.15rem; margin: 0 0 8px; color: var(--s-ink); }
.cart-pickup { margin: 0 0 12px; font-size: .9rem; color: var(--s-body); }
.cart-error { margin: 0 0 10px; color: var(--s-red-text); font-size: .92rem; min-height: 0; }
.cart-checkout { width: 100%; }
.cart-checkout[disabled] { opacity: 1; background: #fff; color: var(--s-navy, #002147); box-shadow: inset 0 0 0 2px var(--s-navy, #002147); cursor: not-allowed; }
.shop-test-flag {
  position: fixed; left: 12px; bottom: 12px; z-index: 199; background: #FFF3CD; color: #5C4400;
  border: 1px solid #E0C36C; font-size: .82rem; font-weight: 700; padding: 8px 12px;
}

[hidden] { display: none !important; }

/* Cart: delivery choice, address and summary */
.cart-scroll { flex: 1; overflow-y: auto; padding: 0 22px 18px; }
.cart-lines { padding: 8px 0; overflow: visible; flex: none; }
.cart-fulfil { border: 0; margin: 18px 0 0; padding: 0; }
.cart-fulfil legend, .cart-sub { font-family: var(--s-sans); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--s-red-text); margin: 0 0 10px; padding: 0; }
.cart-opt { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: start; padding: 13px 14px; border: 1.5px solid #D9D4C8; margin-bottom: 8px; cursor: pointer; background: #fff; }
.cart-opt:has(input:checked) { border-color: var(--s-navy-btn); box-shadow: inset 0 0 0 1px var(--s-navy-btn); }
.cart-opt input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--s-navy-btn); }
.cart-opt strong { display: block; color: var(--s-ink); font-size: .98rem; }
.cart-opt small { display: block; color: var(--s-body); font-size: .85rem; line-height: 1.45; margin-top: 2px; }
.cart-opt em { font-style: normal; font-weight: 700; color: var(--s-ink); font-size: .95rem; }
.cart-address { margin-top: 16px; display: grid; gap: 10px; }
.cart-address label { display: grid; gap: 5px; font-size: .86rem; font-weight: 700; color: var(--s-ink); }
.cart-address .opt { font-weight: 400; color: var(--s-body); }
.cart-address input, .cart-address select { font: inherit; font-weight: 400; font-size: 1rem; height: 46px; padding: 0 12px; border: 1.5px solid #9AA3B2; background: #fff; color: var(--s-ink); width: 100%; }
.cart-address input:focus, .cart-address select:focus { outline: 2px solid var(--s-navy-btn); outline-offset: 1px; }
.cart-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cart-calc { margin-top: 4px; width: 100%; }
.cart-quote { margin-top: 14px; padding: 14px; background: var(--s-cream); font-size: .9rem; line-height: 1.55; color: var(--s-body); }
.cart-quote strong { color: var(--s-ink); }
.cart-sum { margin: 0 0 10px; }
.cart-sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; color: var(--s-body); padding: 3px 0; }
.cart-sum-row--total { font-size: 1.15rem; color: var(--s-ink); font-weight: 700; border-top: 1px solid #E3E0D8; margin-top: 6px; padding-top: 9px; }
.cart-secure { margin: 8px 0 0; text-align: center; font-size: .8rem; color: var(--s-body); }
.cart-test-note { color: #7A5A00; font-weight: 700; }

/* Keep centred text blocks centred even where the site stylesheet caps paragraph width */
.shop-page .shop-footer p, .shop-page .shop-thanks-hero p, .shop-page .shop-hero--center p { margin-left: auto; margin-right: auto; }

/* Mobile: centre the Founding Collection card */
@media (max-width: 768px) {
  .shop-bundle { text-align: center; }
  .shop-bundle-text { margin-left: auto; margin-right: auto; }
  .shop-bundle-status { display: block; margin-top: 4px; }
  .shop-bundle-dot { display: none; }
  .shop-bundle .buy-row { justify-content: center; }
  .shop-bundle .buy-msg { text-align: center; width: 100%; }
}

.shop-ship-note { margin: -4px 0 14px; font-size: 0.88rem; color: var(--s-body); }
.shop-ship-note--light { margin: -18px 0 26px; color: rgba(255,255,255,.85); }

/* Centred text across the shop page, all screen sizes */
.shop-intro-copy, .shop-body, .shop-bundle, .shop-footnote { text-align: center; }
.shop-intro-text, .shop-bundle-text, .shop-desc { margin-left: auto; margin-right: auto; }
.shop-sides, .buy-row { justify-content: center; }
.buy-msg { text-align: center; }
.shop-bundle-note { justify-content: center; text-align: center; }
.shop-eyebrow, .shop-bundle-note, .shop-footnote { margin-left: auto; margin-right: auto; }
