/* portal-design · macrostructure: hero-led conversion flow (ecommerce,
   stan.store/Shopify-shaped — featured offer above the fold, flat category
   rails, trust block, short checkout; research: Review/2026-09-18-
   spiritword-yoco-store/01-RESEARCH/storefront-conversion-findings.md)
   · nav: N5 (bottom tab bar, mobile-first) · footer: Ft2 (thin trust bar)
   · anchor: Spirit Word House */

@import url("tokens.css");

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
	margin: 0;
	font-family: var(--font-body);
	background: var(--color-paper);
	color: var(--color-ink);
	line-height: 1.55;
	overflow-x: clip;
	padding-bottom: 64px; /* room for the fixed bottom tab bar on mobile */
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
h1, h2, h3 { font-weight: 700; overflow-wrap: anywhere; }

.sws-container { max-width: 1120px; margin: 0 auto; padding: 0 var(--space-md); }

/* -------------------------------------------------------------------------
   Focus / motion baseline — eight-state discipline applied globally
   ------------------------------------------------------------------------- */
:focus-visible {
	outline: 3px solid var(--color-focus);
	outline-offset: 2px;
}
.sws-btn-primary, .sws-btn-secondary, .sws-shoptab, .sws-pill, .sws-qty button {
	transition: transform 150ms var(--ease-out), box-shadow 150ms var(--ease-out), background-color 150ms var(--ease-out), border-color 150ms var(--ease-out);
}

/* -------------------------------------------------------------------------
   Top utility bar — desktop nav lives here; on mobile this collapses to
   just the brand + cart (the bottom tab bar carries navigation instead).
   ------------------------------------------------------------------------- */
.sws-topbar { background: var(--color-brand-navy); color: #fff; position: sticky; top: 0; z-index: var(--z-nav); }
.sws-topbar__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: 14px var(--space-md); }
.sws-shopbrand { font-weight: 700; font-size: 19px; color: #fff; display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.sws-shopbrand span { color: var(--color-brand-peach); font-family: var(--font-accent); font-size: 21px; }

.sws-nav-desktop { display: none; gap: var(--space-lg); }
.sws-nav-desktop a { color: #cfe0ee; font-size: 14px; font-weight: 500; padding: 6px 2px; border-bottom: 2px solid transparent; }
.sws-nav-desktop a:hover, .sws-nav-desktop a.is-active { color: #fff; border-bottom-color: var(--color-brand-orange); }

.sws-cart-link { color: #fff; display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; padding: 8px 10px; border-radius: var(--radius-pill); }
.sws-cart-link:hover { background: rgba(255,255,255,0.08); }
.sws-cart-count { background: var(--color-accent); color: var(--color-accent-ink); border-radius: var(--radius-pill); padding: 1px 8px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------------------------
   Bottom tab bar — N5, the storefront's primary nav on the viewport that
   actually matters (mobile ≈ 70% of ecommerce traffic — see research
   finding 3). Hidden on desktop once the top nav takes over.
   ------------------------------------------------------------------------- */
.sws-shoptabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-nav); background: #fff; border-top: 1px solid var(--color-rule); display: flex; box-shadow: 0 -2px 12px rgba(19,46,73,0.08); }
.sws-shoptab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 10px; font-size: 11px; font-weight: 600; color: var(--color-neutral); }
.sws-shoptab__icon { font-size: 20px; line-height: 1; }
.sws-shoptab.is-active { color: var(--color-brand-navy); }
.sws-shoptab.is-active .sws-shoptab__icon { color: var(--color-accent); }
.sws-shoptab:active { transform: scale(0.94); }

/* -------------------------------------------------------------------------
   Hero — one featured offer, above the fold, on a 390px phone. This is
   the whole conversion thesis: the visitor sees what they came for and
   can act immediately, not browse for it (research findings 1 & 2).
   ------------------------------------------------------------------------- */
.sws-hero { background: linear-gradient(160deg, var(--color-brand-navy) 0%, var(--color-brand-royal) 100%); color: #fff; padding: var(--space-xl) var(--space-md) var(--space-2xl); }
.sws-hero__inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: var(--space-lg); align-items: center; }
.sws-hero__text { min-width: 0; } /* gate: a grid item's default min-width:auto can push a long product name past the viewport otherwise */
@media (min-width: 760px) { .sws-hero__inner { grid-template-columns: 1.1fr 1fr; } }
.sws-hero__eyebrow { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-brand-peach); font-weight: 700; margin: 0 0 6px; }
.sws-hero__title { font-size: 30px; line-height: 1.15; margin: 0 0 10px; }
.sws-hero__desc { color: #d9e4ee; font-size: 15px; margin: 0 0 var(--space-lg); max-width: 46ch; }
.sws-hero__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; background: rgba(255,255,255,0.06); }
.sws-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.sws-hero__price { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; margin: 0 0 var(--space-md); }
.sws-hero__actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

/* Hero carousel — up to 4 featured products, auto-sliding (see
   SW_Shop_Storefront::HERO_SLIDE_INTERVAL_MS). A single-slide home page
   renders the plain .sws-hero markup above with none of this. */
.sws-hero--carousel { padding: 0; overflow: hidden; position: relative; }
.sws-hero__track { display: flex; transition: transform 0.5s ease; }
.sws-hero__slide { flex: 0 0 100%; min-width: 0; }
.sws-hero--carousel .sws-hero__inner { padding: var(--space-xl) var(--space-md) var(--space-2xl); }
.sws-hero__dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.sws-hero__dot { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,0.4); cursor: pointer; }
.sws-hero__dot.is-active { background: var(--color-brand-orange); width: 22px; border-radius: var(--radius-pill); }
.sws-hero__dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* -------------------------------------------------------------------------
   Category rail — flat pills, at most a handful. Deliberately not a
   nested category tree mirroring the Yoco till (research finding 2:
   fewer choices convert better for a church audience).
   ------------------------------------------------------------------------- */
.sws-rail { display: flex; gap: var(--space-xs); overflow-x: auto; padding: var(--space-md) var(--space-md) var(--space-sm); scrollbar-width: none; }
.sws-rail::-webkit-scrollbar { display: none; }
.sws-pill { flex: 0 0 auto; padding: 9px 16px; border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--color-rule); font-size: 13px; font-weight: 600; color: var(--color-muted); white-space: nowrap; }
.sws-pill:hover { border-color: var(--color-accent); color: var(--color-ink); }
.sws-pill.is-active { background: var(--color-brand-navy); border-color: var(--color-brand-navy); color: #fff; }

/* -------------------------------------------------------------------------
   Product grid + card
   ------------------------------------------------------------------------- */
.sws-section-title { font-size: 20px; margin: var(--space-lg) 0 var(--space-md); }
.sws-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); padding-bottom: var(--space-xl); }
@media (min-width: 640px)  { .sws-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px)  { .sws-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.sws-card { display: block; background: #fff; border: 1px solid var(--color-rule); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.sws-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.sws-card:active { transform: translateY(0); }
.sws-card__media { aspect-ratio: 1/1; background: var(--color-paper-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sws-card__media img { width: 100%; height: 100%; object-fit: cover; }
.sws-card__body { padding: var(--space-sm) var(--space-sm) var(--space-md); }
.sws-card__cat { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-neutral); }
.sws-card h3 { font-size: 14px; margin: 4px 0 6px; line-height: 1.3; }
.sws-card__price { font-weight: 700; font-size: 15px; color: var(--color-brand-navy); font-variant-numeric: tabular-nums; }
.sws-card-oos { opacity: 0.55; }
.sws-tag-oos, .sws-tag-digital { display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-pill); }
.sws-tag-oos { background: var(--color-error-soft); color: var(--color-error); }
.sws-tag-digital { background: var(--color-accent-soft); color: #7a4300; }

/* -------------------------------------------------------------------------
   Trust block — the free trust signal research finding 5 calls out:
   real church, real address, real WhatsApp line, on every product page.
   ------------------------------------------------------------------------- */
.sws-trust { display: flex; gap: var(--space-sm); align-items: flex-start; background: var(--color-paper-2); border: 1px solid var(--color-rule); border-radius: var(--radius-md); padding: var(--space-md); margin-top: var(--space-lg); }
.sws-trust__icon { font-size: 22px; line-height: 1; }
.sws-trust__title { font-weight: 700; font-size: 13px; margin: 0 0 2px; }
.sws-trust__body { font-size: 13px; color: var(--color-muted); margin: 0; }
.sws-trust__body a { color: var(--color-brand-royal); font-weight: 600; }
.sws-trust__body a:hover { text-decoration: underline; }

/* -------------------------------------------------------------------------
   Product detail
   ------------------------------------------------------------------------- */
.sws-product { display: grid; gap: var(--space-xl); padding: var(--space-lg) 0 var(--space-2xl); }
@media (min-width: 860px) { .sws-product { grid-template-columns: 1fr 1fr; align-items: start; } }
.sws-product__gallery { min-width: 0; }
.sws-product__media { aspect-ratio: 1/1; background: #fff; border: 1px solid var(--color-rule); border-radius: var(--radius-lg); overflow: hidden; min-width: 0; }
.sws-product__media img { width: 100%; height: 100%; object-fit: cover; }
.sws-gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.sws-gallery-thumb { width: 60px; height: 60px; padding: 0; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid var(--color-rule); background: #fff; cursor: pointer; flex: 0 0 auto; }
.sws-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sws-gallery-thumb:hover { border-color: var(--color-accent); }
.sws-gallery-thumb.is-active { border-color: var(--color-brand-navy); }
.sws-product__body { min-width: 0; } /* long product/church names must wrap, not push the media column off-screen */
.sws-product__body h1 { font-size: 24px; margin: 6px 0 10px; line-height: 1.2; }
.sws-price { font-size: 24px; font-weight: 700; color: var(--color-brand-navy); font-variant-numeric: tabular-nums; margin: 0 0 var(--space-sm); }
.sws-product__desc { color: var(--color-muted); font-size: 15px; }

.sws-option-group { margin: var(--space-md) 0; }
.sws-option-group legend { font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.sws-variant-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.sws-variant-pill { position: relative; }
.sws-variant-pill input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.sws-variant-pill span { display: inline-flex; align-items: center; padding: 8px 16px; border-radius: var(--radius-pill); border: 1.5px solid var(--color-rule); font-size: 13px; font-weight: 600; background: #fff; }
.sws-variant-pill input:hover + span { border-color: var(--color-accent); }
.sws-variant-pill input:focus-visible + span { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.sws-variant-pill input:checked + span { border-color: var(--color-brand-navy); background: var(--color-brand-navy); color: #fff; }
.sws-variant-pill input:disabled + span { opacity: 0.4; text-decoration: line-through; cursor: not-allowed; }

.sws-qty { display: inline-flex; align-items: center; border: 1px solid var(--color-rule); border-radius: var(--radius-pill); overflow: hidden; }
.sws-qty button { width: 36px; height: 36px; border: 0; background: #fff; font-size: 16px; cursor: pointer; }
.sws-qty button:hover { background: var(--color-paper-2); }
.sws-qty input { width: 44px; border: 0; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.sws-qty input::-webkit-outer-spin-button, .sws-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.sws-buybar { display: flex; gap: var(--space-sm); align-items: center; margin-top: var(--space-lg); flex-wrap: wrap; }

/* Sticky mobile buy bar so "Add to cart" is always reachable without
   scrolling back up — a direct answer to research finding 1 (the link
   IS the transaction, not a hop toward one). */
.sws-buybar-sticky { display: none; }
@media (max-width: 859px) {
	.sws-buybar-sticky {
		display: flex; position: fixed; left: 0; right: 0; bottom: 64px; z-index: var(--z-sticky);
		background: #fff; border-top: 1px solid var(--color-rule); padding: 10px var(--space-md);
		align-items: center; gap: var(--space-sm); box-shadow: 0 -4px 16px rgba(19,46,73,0.10);
	}
	.sws-buybar-sticky .sws-price { font-size: 17px; margin: 0; flex: 0 0 auto; }
	.sws-buybar-sticky .sws-btn-primary { flex: 1; text-align: center; }
	.sws-product { padding-bottom: 90px; } /* clear the sticky bar */
}

/* -------------------------------------------------------------------------
   Buttons / forms — full state set (default, hover, focus-visible,
   active, disabled, loading, error, success).
   ------------------------------------------------------------------------- */
.sws-btn-primary, .sws-btn-secondary {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-size: 14px; font-weight: 700; padding: 12px 22px; border-radius: var(--radius-pill);
	border: 1.5px solid transparent; cursor: pointer;
}
.sws-btn-primary { background: var(--color-accent); color: var(--color-accent-ink); }
.sws-btn-primary:hover { background: #db7620; box-shadow: var(--shadow-md); }
.sws-btn-primary:active { transform: translateY(1px); box-shadow: none; }
.sws-btn-primary:disabled, .sws-btn-primary[aria-disabled="true"] { background: var(--color-rule); color: var(--color-neutral); cursor: not-allowed; box-shadow: none; }
.sws-btn-primary.is-loading { position: relative; color: transparent; }
.sws-btn-primary.is-loading::after {
	content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
	border: 2px solid var(--color-accent-ink); border-top-color: transparent;
	animation: sws-spin 700ms linear infinite;
}
@keyframes sws-spin { to { transform: rotate(360deg); } }

.sws-btn-secondary { background: #fff; color: var(--color-brand-navy); border-color: var(--color-rule); }
.sws-btn-secondary:hover { border-color: var(--color-brand-navy); }
.sws-btn-secondary:active { transform: translateY(1px); }

.sws-field { display: block; margin-bottom: var(--space-md); }
.sws-field > span, .sws-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--color-muted); }
.sws-field input[type="text"], .sws-field input[type="email"], .sws-field input[type="tel"], .sws-field textarea, .sws-field select {
	width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--color-rule);
	font-size: 15px; font-family: inherit; background: #fff; color: var(--color-ink);
}
.sws-field input:hover, .sws-field textarea:hover, .sws-field select:hover { border-color: var(--color-neutral); }
.sws-field input:focus-visible, .sws-field textarea:focus-visible, .sws-field select:focus-visible { border-color: var(--color-focus); }
.sws-field input.sws-input-error { border-color: var(--color-error); }
.sws-field-error { color: var(--color-error); font-size: 12px; margin-top: 4px; }

.sws-radio-card { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--color-rule); border-radius: var(--radius-md); margin-bottom: 8px; cursor: pointer; }
.sws-radio-card:hover { border-color: var(--color-accent); }
.sws-radio-card:has(input:checked) { border-color: var(--color-brand-navy); background: var(--color-paper-2); }
.sws-radio-card input { margin-top: 3px; }
.sws-radio-card strong { display: block; font-size: 14px; }

.sws-error, .sws-notice-error { background: var(--color-error-soft); color: var(--color-error); border: 1px solid #f3caca; border-radius: var(--radius-md); padding: 12px 14px; font-size: 14px; margin-bottom: var(--space-md); }
.sws-notice-success { background: var(--color-success-soft); color: var(--color-success); border: 1px solid #bfe6cf; border-radius: var(--radius-md); padding: 12px 14px; font-size: 14px; margin-bottom: var(--space-md); }

/* -------------------------------------------------------------------------
   Cart / checkout
   ------------------------------------------------------------------------- */
.sws-cart-list { display: flex; flex-direction: column; gap: var(--space-sm); margin: var(--space-md) 0; }
.sws-cart-row { display: grid; grid-template-columns: 56px 1fr auto; gap: var(--space-sm); align-items: center; background: #fff; border: 1px solid var(--color-rule); border-radius: var(--radius-md); padding: var(--space-sm); }
.sws-cart-row__media { width: 56px; height: 56px; border-radius: var(--radius-sm); overflow: hidden; background: var(--color-paper-2); }
.sws-cart-row__media img { width: 100%; height: 100%; object-fit: cover; }
.sws-cart-row__name { font-size: 14px; font-weight: 600; }
.sws-cart-row__variant { font-size: 12px; color: var(--color-neutral); }
.sws-cart-row__price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

.sws-summary { background: #fff; border: 1px solid var(--color-rule); border-radius: var(--radius-lg); padding: var(--space-lg); position: sticky; top: 80px; }
.sws-summary__row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; color: var(--color-muted); }
.sws-summary__total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; padding-top: var(--space-sm); margin-top: var(--space-sm); border-top: 1px solid var(--color-rule); font-variant-numeric: tabular-nums; }

.sws-checkout-grid { display: grid; gap: var(--space-lg); }
@media (min-width: 860px) { .sws-checkout-grid { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.sws-checkout-grid .sws-summary { position: static; }
@media (min-width: 860px) { .sws-checkout-grid .sws-summary { position: sticky; top: 80px; } }

/* -------------------------------------------------------------------------
   Banners
   ------------------------------------------------------------------------- */
.sws-banner { background-size: cover; background-position: center; border-radius: var(--radius-lg); overflow: hidden; margin: var(--space-md); position: relative; }
.sws-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(19,46,73,0.85), rgba(19,46,73,0.35)); }
.sws-banner__content { position: relative; padding: var(--space-lg); color: #fff; max-width: 60ch; }
.sws-banner__content h2 { margin: 0 0 6px; font-size: 20px; }
.sws-banner__content p { margin: 0 0 var(--space-md); color: #dbe6f0; font-size: 14px; }

/* -------------------------------------------------------------------------
   Footer — Ft2, thin trust bar. No marketing multi-column footer.
   ------------------------------------------------------------------------- */
.sws-footer { padding: var(--space-lg) 0 96px; text-align: center; color: var(--color-neutral); font-size: 13px; }
.sws-footer a { color: var(--color-brand-royal); font-weight: 600; }
.sws-footer a:hover { text-decoration: underline; }

@media (min-width: 860px) {
	body { padding-bottom: 0; }
	.sws-shoptabbar { display: none; }
	.sws-nav-desktop { display: flex; }
	.sws-footer { padding-bottom: var(--space-lg); }
}

/* -------------------------------------------------------------------------
   One website (1.10.0) — when the church site is on, the shop wears the
   site's own header, tabs, footer and phone tab bar (sw-sitefront shell),
   so moving from spiritword.org.za into the shop never feels like a
   different site. Same width, gutters and type as the rest of the site.
   ------------------------------------------------------------------------- */
body.has-shell { font-family: var(--sws-font); padding-bottom: 0; background: #f6f7f9; }
body.has-shell .sws-container { max-width: 1320px; padding: 0 24px; }
body.has-shell .sws-hero--carousel .sws-hero__inner { padding: 40px 24px 52px; }
body.has-shell .sws-hero { background: linear-gradient(135deg, var(--sws-navy-dd) 0%, var(--sws-navy) 55%, var(--sws-royal) 100%); }
body.has-shell .sws-hero__title { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.02em; }
body.has-shell .sws-hero__media { aspect-ratio: 1/1; max-width: 460px; justify-self: end; width: 100%; }
body.has-shell .sws-rail { max-width: 1320px; margin: 0 auto; padding: 20px 24px 4px; }
body.has-shell .sws-banner { max-width: 1272px; margin: 16px auto; }
body.has-shell .sws-section-title { font-size: 24px; letter-spacing: -.01em; color: var(--sws-navy); }
body.has-shell .sws-card { border-radius: 16px; transition: transform .2s var(--sws-ease), box-shadow .2s; }
body.has-shell .sws-btn-primary { background: var(--sws-orange); box-shadow: 0 10px 24px -12px rgba(244, 137, 53, .95); }
body.has-shell .sws-btn-primary:hover { background: var(--sws-orange-d); }

/* Shop bar — under the site header: back to Live TV, categories, cart. */
.sws-shopbar { background: #fff; border-bottom: 1px solid var(--color-rule); position: sticky; top: var(--sws-head-h); z-index: 80; }
.sws-shopbar__row { display: flex; align-items: center; gap: 16px; min-height: 56px; }
.sws-shopbar__back { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(19, 46, 73, .07); color: var(--sws-navy); font-weight: 700; font-size: 14px; white-space: nowrap; }
.sws-shopbar__back:hover { background: rgba(19, 46, 73, .13); }
.sws-shopbar__cats { flex: 1; min-width: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.sws-shopbar__cats::-webkit-scrollbar { display: none; }
.sws-shopbar__cats a { flex: none; padding: 8px 12px; border-radius: 999px; color: var(--color-muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.sws-shopbar__cats a:hover { color: var(--sws-navy); background: rgba(19, 46, 73, .06); }
.sws-shopbar__cats a.is-active { color: #fff; background: var(--sws-navy); }
.sws-shopbar__cart { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--color-rule); color: var(--sws-navy); font-weight: 700; font-size: 14px; }
.sws-shopbar__cart:hover, .sws-shopbar__cart.is-active { border-color: var(--sws-navy); }
.sws-shopbar__cart .sws-cart-count { background: var(--sws-orange); color: #fff; }
/* With the shop bar carrying categories, the home page's second pill rail is redundant. */
body.has-shell .sws-rail { display: none; }

.sws-shopnote { background: #fff; border-top: 1px solid var(--color-rule); padding: 18px 0; font-size: 14px; color: var(--color-muted); }
.sws-shopnote p { margin: 0; }
.sws-shopnote a { color: var(--sws-orange-ink); font-weight: 700; }

/* The site's phone tab bar replaces the shop's; keep the buy bar above it. */
@media (max-width: 1080px) {
	body.has-shell .sws-buybar-sticky { bottom: calc(var(--sws-tab-h) + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
	body.has-shell .sws-container { padding: 0 16px; }
	body.has-shell .sws-hero--carousel .sws-hero__inner { padding: 24px 16px 44px; }
	body.has-shell .sws-hero__media { justify-self: stretch; max-width: none; }
	body.has-shell .sws-banner { margin: 12px 16px; }
	.sws-shopbar__row { gap: 8px; min-height: 52px; }
	.sws-shopbar__back { padding: 7px 11px; font-size: 13px; }
	.sws-shopbar__cart > span:first-of-type { display: none; }
	.sws-shopbar__cart { padding: 7px 10px; }
}
/* Product photos are served square (1200×1200, fitted whole), so a
   square frame shows them edge to edge with nothing cut off. */
.sws-card__media img, .sws-product__media img, .sws-hero__media img, .sws-cart-row__media img { object-fit: cover; }
