/* ===================== GullySport — Store (GS-40) =====================
   store.html, store-plan.html, product.html, cart.html, my-store.html.
   Built on the site tokens (style.css) like engage.css, so css/native.css
   recolours it for the app. Orange (--saffron) is a fill; orange TEXT uses
   --violet (the site's orange ink). */

.st-wrap { max-width: 820px; }
.st-hero { padding-bottom: 22px; }
.st-hero h1 { margin-bottom: 4px; }
.st-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.st-back { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 0.88rem; margin-bottom: 8px; color: var(--ink-soft); text-decoration: none; }
.st-back svg { width: 16px; height: 16px; }

.st-cart-btn {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 999px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--border); font-weight: 700; font-size: 0.86rem; text-decoration: none;
}
.st-cart-btn svg { width: 19px; height: 19px; }
.st-cart-count {
  min-width: 20px; height: 20px; border-radius: 10px; padding: 0 6px; background: var(--saffron-deep);
  color: #fff; font-size: 0.72rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}

.st-seg { display: flex; background: var(--bg-alt); border-radius: 999px; padding: 4px; margin-top: 14px; max-width: 460px; }
.st-seg button {
  flex: 1; border: 0; background: transparent; padding: 9px 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 0.92rem; color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.st-seg button svg { width: 18px; height: 18px; }
.st-seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 4px 12px rgba(8, 20, 34, 0.12); }

.st-search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 0 16px; margin-top: 12px; max-width: 560px; }
.st-search svg { width: 18px; height: 18px; flex: none; color: var(--ink-dim); }
.st-search input { border: 0 !important; background: transparent !important; box-shadow: none !important; margin: 0 !important; padding: 12px 0 !important; flex: 1; min-width: 0; font-size: 0.95rem; }

.st-ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Active pass banner ---------- */
.st-pass {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius);
  background: var(--grad-dark); color: #fff; text-decoration: none; position: relative; overflow: hidden; margin-bottom: 14px;
}
.st-pass::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(237, 96, 27, 0.45), transparent 70%); }
.st-pass > * { position: relative; z-index: 1; }
.st-pass-qr { width: 52px; height: 52px; background: #fff; border-radius: 10px; padding: 4px; flex: none; }
.st-pass-qr svg { width: 100%; height: 100%; display: block; }
.st-pass small { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 800; color: var(--marigold); }
.st-pass b { display: block; font-size: 1rem; margin-top: 2px; }
.st-pass span.st-pass-meta { font-size: 0.8rem; color: rgba(255, 255, 255, 0.84); }
.st-pass .st-chev { margin-left: auto; width: 22px; height: 22px; }

/* ---------- Facility cards ---------- */
.st-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 12px; }
.st-fac { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); color: var(--ink); text-decoration: none; }
.st-fac-img { height: 110px; position: relative; display: flex; align-items: flex-end; padding: 12px; background: var(--grad-cool); color: #fff; }
.st-fac-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-fac-img .st-fac-art { position: absolute; right: 16px; top: 14px; width: 60px; height: 60px; stroke-width: 1.4; opacity: 0.95; }
.st-fac-img.cat-play { background: var(--grad-sun); }
.st-fac-img.cat-nets { background: linear-gradient(135deg, #0B875D, #0A5E43); }
.st-fac-img.cat-pool { background: linear-gradient(135deg, #0B4A8F, #2563EB); }
.st-fac-img.cat-turf { background: var(--grad-alt); }
.st-fac-img.cat-fitness { background: linear-gradient(135deg, #063163, #B8460E); }
.st-tag { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 0.7rem; font-weight: 800; background: rgba(255, 255, 255, 0.94); color: var(--ink); }
.st-tag.o { background: #FDEBDD; color: var(--violet); }
.st-tag.g { background: #DDF3EA; color: var(--win); }
.st-tag.n { background: var(--bg-alt); color: var(--ink); }
.st-fac-info { padding: 12px 14px 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.st-fac-info h3 { font-size: 1.02rem; margin: 0 0 2px; }
.st-fac-info .eg-muted { font-size: 0.8rem; }
.st-from { text-align: right; flex: none; }
.st-from small { display: block; font-size: 0.66rem; color: var(--ink-dim); font-weight: 600; }
.st-from b { font-size: 1.05rem; }
.st-from b span { font-size: 0.72rem; color: var(--ink-dim); font-weight: 600; }

/* ---------- Plan picker ---------- */
.st-fac-head { display: flex; gap: 14px; align-items: center; }
.st-fac-badge { width: 64px; height: 64px; border-radius: 18px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--grad-cool); color: #fff; }
.st-fac-badge svg { width: 36px; height: 36px; }
.st-label { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted); margin: 18px 0 8px; display: flex; justify-content: space-between; gap: 8px; }
.st-incl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.st-incl div { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; font-weight: 600; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; }
.st-incl svg { color: var(--win); stroke-width: 2.4; width: 18px; height: 18px; }
.st-plan { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1.5px solid var(--border); margin-bottom: 10px; position: relative; cursor: pointer; }
.st-plan input, .st-who input, .st-sizes input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.st-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #A9B6C8; flex: none; }
.st-plan:has(input:checked) { border: 2px solid var(--saffron); background: #FFF8F3; }
.st-plan:has(input:checked) .st-radio { border: 7px solid var(--saffron); }
.st-plan:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.st-plan-name { flex: 1; min-width: 0; }
.st-plan-name b { font-size: 0.98rem; }
.st-plan-name small { display: block; font-size: 0.8rem; color: var(--ink-dim); margin-top: 2px; }
.st-plan-price { text-align: right; }
.st-plan-price b { display: block; font-size: 1.05rem; }
.st-plan-price s { font-size: 0.76rem; color: var(--ink-dim); }
.st-ribbon { position: absolute; top: -10px; right: 14px; background: var(--saffron-deep); color: #fff; font-size: 0.66rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; letter-spacing: 0.03em; }
.st-who { display: flex; gap: 8px; }
.st-who label { position: relative; flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--border); font-size: 0.88rem; font-weight: 700; cursor: pointer; margin: 0; }
.st-who label:has(input:checked) { border: 2px solid var(--ink); background: var(--bg-alt); }
.st-mini { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-alt); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 800; flex: none; }
.st-who label:has(input:checked) .st-mini { background: var(--ink); color: #fff; }
.st-field { margin-top: 10px; }
.st-field label { font-size: 0.8rem; font-weight: 700; color: var(--ink-muted); }
.st-field input { margin-top: 4px; }

/* ---------- Sticky action bar ---------- */
.st-actionbar {
  position: sticky; bottom: 0; z-index: 50; margin-top: 20px;
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -6px 24px rgba(6, 49, 99, 0.10);
  border-radius: 22px 22px 0 0;
}
.st-actionbar .st-tot { flex: none; }
.st-actionbar .st-tot small { display: block; font-size: 0.72rem; color: var(--ink-dim); font-weight: 600; }
.st-actionbar .st-tot b { font-size: 1.3rem; }
.st-actionbar .btn { flex: 1; justify-content: center; padding: 13px 16px; }
html.app .st-actionbar { bottom: calc(76px + env(safe-area-inset-bottom)); }

/* ---------- Shop ---------- */
.st-banner { border-radius: var(--radius); overflow: hidden; background: var(--grad-dark); color: #fff; display: flex; align-items: center; min-height: 150px; position: relative; margin-bottom: 14px; }
.st-banner-txt { padding: 18px; flex: 1; position: relative; z-index: 1; }
.st-banner small { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; color: var(--marigold); text-transform: uppercase; }
.st-banner h2 { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 1.35rem; line-height: 1.1; margin: 6px 0 10px; color: #fff; }
.st-banner img { width: 150px; height: 150px; object-fit: contain; margin-right: 8px; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 12px; }
.st-prod { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-soft); overflow: hidden; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; }
.st-prod-img { aspect-ratio: 1 / 0.85; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; position: relative; }
.st-prod-img img { width: 100%; height: 100%; object-fit: cover; }
.st-prod-img .st-tag { position: absolute; top: 8px; left: 8px; }
.st-noimg { width: 56px; height: 56px; color: var(--ink-dim); stroke-width: 1.4; }
.st-prod-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.st-prod-body b { font-size: 0.88rem; line-height: 1.25; }
.st-price { font-weight: 800; font-size: 0.98rem; }
.st-price s { font-size: 0.74rem; color: var(--ink-dim); font-weight: 500; margin-left: 4px; }
.st-soldout { font-size: 0.74rem; font-weight: 700; color: var(--live); }
.st-promo { display: flex; gap: 12px; align-items: center; padding: 14px; margin-top: 14px; }
.st-promo-ic { width: 46px; height: 46px; border-radius: 14px; background: var(--bg-alt); color: var(--ink); display: flex; align-items: center; justify-content: center; flex: none; }

/* ---------- Product page ---------- */
.st-pd { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) { .st-pd { grid-template-columns: 1fr 1fr; align-items: start; } }
.st-pd-gallery { background: radial-gradient(circle at 50% 40%, #fff 0%, var(--bg-alt) 70%); border-radius: var(--radius); aspect-ratio: 1 / 0.9; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.st-pd-gallery > img { width: 100%; height: 100%; object-fit: contain; }
.st-pd-thumbs { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; }
.st-pd-thumbs img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; border: 2px solid transparent; cursor: pointer; }
.st-pd-thumbs img.on { border-color: var(--saffron); }
.st-preview { position: absolute; right: 12px; bottom: 12px; width: 96px; height: 96px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.st-preview svg { width: 70px; height: 70px; }
.st-preview small { font-size: 0.62rem; font-weight: 700; color: var(--ink-dim); }
.st-pd-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.st-pd-title h1 { font-size: 1.4rem; margin: 6px 0 2px; }
.st-pd-price { text-align: right; flex: none; }
.st-pd-price b { font-size: 1.5rem; display: block; }
.st-off { color: var(--win); font-weight: 800; font-size: 0.8rem; }
.st-sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.st-sizes label { margin: 0; position: relative; }
.st-sizes span { min-width: 48px; height: 42px; padding: 0 10px; border-radius: 12px; border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; cursor: pointer; background: var(--surface); }
.st-sizes input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.st-sizes input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.st-custom { display: flex; gap: 8px; }
.st-custom > div { flex: 2; }
.st-custom > div + div { flex: 1; }
.st-custom label { font-size: 0.74rem; font-weight: 700; color: var(--ink-dim); }
.st-custom input { margin-top: 2px; text-transform: uppercase; }
.st-note { font-size: 0.8rem; color: var(--ink-dim); display: flex; gap: 6px; align-items: flex-start; margin-top: 10px; }
.st-note svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.st-qty { display: inline-flex; align-items: center; gap: 12px; border: 1.5px solid var(--border); border-radius: 999px; padding: 3px 6px; font-weight: 800; }
.st-qty button { border: 0; background: transparent; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; color: var(--ink); display: flex; align-items: center; justify-content: center; }
.st-qty button:active { background: var(--bg-alt); }
.st-qty svg { width: 16px; height: 16px; stroke-width: 2.4; }

/* ---------- Cart ---------- */
.st-line { display: flex; gap: 12px; padding: 12px 0; align-items: center; }
.st-line + .st-line { border-top: 1px solid var(--border); }
.st-thumb { width: 64px; height: 64px; border-radius: 14px; background: var(--bg-alt); overflow: hidden; flex: none; display: flex; align-items: center; justify-content: center; }
.st-thumb img { width: 100%; height: 100%; object-fit: cover; }
.st-thumb svg { width: 32px; height: 32px; color: var(--ink-dim); }
.st-line-body { flex: 1; min-width: 0; }
.st-line-body b { display: block; font-size: 0.92rem; }
.st-line-body small { color: var(--ink-dim); font-size: 0.8rem; }
.st-line-body .st-price { margin-top: 2px; font-size: 0.92rem; }
.st-sum { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--ink-muted); padding: 4px 0; }
.st-sum b { color: var(--ink); }
.st-sum.tot { border-top: 1px dashed var(--border); margin-top: 6px; padding-top: 10px; font-size: 1.02rem; color: var(--ink); font-weight: 800; }
.st-addr .form-row { margin-bottom: 10px; }
.st-addr-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st-free { font-size: 0.8rem; color: var(--win); font-weight: 700; }

/* ---------- My memberships & orders ---------- */
.st-bigpass { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-soft); margin-bottom: 14px; background: var(--surface); border: 1px solid var(--border); }
.st-bigpass-top { background: var(--grad-dark); color: #fff; padding: 16px 18px; position: relative; overflow: hidden; }
.st-bigpass-top::after { content: ""; position: absolute; right: -50px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(237, 96, 27, 0.5), transparent 70%); }
.st-bigpass-top > * { position: relative; z-index: 1; }
.st-bigpass-top small { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; color: var(--marigold); text-transform: uppercase; }
.st-bigpass-top h3 { color: #fff; font-size: 1.2rem; margin: 3px 0 2px; }
.st-bigpass-top p { color: rgba(255, 255, 255, 0.84); font-size: 0.82rem; margin: 0; }
.st-bigpass-top .st-tag { position: absolute; top: 16px; right: 18px; }
.st-bigpass-bot { padding: 16px 18px; display: flex; gap: 16px; align-items: center; }
.st-qr { width: 124px; height: 124px; flex: none; }
.st-qr svg { width: 100%; height: 100%; display: block; }
.st-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; font-size: 1.05rem; letter-spacing: 0.08em; text-align: center; margin-top: 4px; }
.st-stat { display: flex; justify-content: space-between; font-size: 0.84rem; color: var(--ink-muted); padding: 4px 0; }
.st-stat b { color: var(--ink); }
.st-bar { height: 7px; border-radius: 4px; background: var(--bg-alt); overflow: hidden; margin-top: 4px; }
.st-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--saffron), var(--marigold)); border-radius: 4px; }
.st-bigpass-actions { display: flex; gap: 8px; padding: 0 18px 16px; }
.st-bigpass.is-past { opacity: 0.8; }
.st-bigpass.is-past .st-bigpass-top { background: linear-gradient(135deg, #44597A, #2A4468); }

.st-order { padding: 0; overflow: hidden; }
.st-order summary { list-style: none; display: flex; gap: 12px; align-items: center; padding: 14px 16px; cursor: pointer; }
.st-order summary::-webkit-details-marker { display: none; }
.st-order-body { padding: 0 16px 16px; }
.st-steps { position: relative; padding-left: 34px; margin: 6px 0 12px; }
.st-step { position: relative; padding-bottom: 16px; }
.st-step::before { content: ""; position: absolute; left: -24px; top: 22px; bottom: -2px; width: 2.5px; background: var(--border); }
.st-step.done::before { background: var(--win); }
.st-step:last-child { padding-bottom: 0; }
.st-step:last-child::before { display: none; }
.st-dot { position: absolute; left: -34px; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 2.5px solid #C4CFDD; display: flex; align-items: center; justify-content: center; }
.st-step.done .st-dot { background: var(--win); border-color: var(--win); color: #fff; }
.st-step.now .st-dot { border-color: var(--saffron); box-shadow: 0 0 0 5px rgba(237, 96, 27, 0.18); }
.st-step.now .st-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--saffron); }
.st-step.cancelled .st-dot { background: var(--live); border-color: var(--live); color: #fff; }
.st-dot svg { width: 13px; height: 13px; stroke-width: 3.2; }
.st-step b { display: block; font-size: 0.92rem; }
.st-step small { font-size: 0.8rem; color: var(--ink-dim); }
.st-step.todo b { color: var(--ink-dim); }
.st-ship { display: flex; gap: 12px; align-items: center; background: #FFF8F3; border-radius: 14px; padding: 12px; margin-bottom: 12px; }
.st-ship svg { color: var(--violet); }

@media (max-width: 420px) {
  .st-incl { grid-template-columns: 1fr; }
  .st-bigpass-bot { flex-direction: column; align-items: stretch; }
  .st-qr { margin: 0 auto; }
}

/* ---------- In the app, the hero is navy (css/native.css) ---------- */
html.app .st-hero .st-seg { background: rgba(255, 255, 255, 0.12); }
html.app .st-hero .st-seg button { color: rgba(255, 255, 255, 0.86); }
html.app .st-hero .st-seg button[aria-selected="true"] { background: #fff; color: var(--app-navy); }
html.app .st-hero .st-cart-btn { background: rgba(255, 255, 255, 0.14); border: 0; color: #fff; text-decoration: none; }
html.app .st-hero .st-back { color: rgba(255, 255, 255, 0.9); text-decoration: none; }
html.app .st-hero .st-search { border: 0; }
html.app .st-hero .eg-muted, html.app .st-hero .st-sub { color: rgba(255, 255, 255, 0.86); }
html.app .st-hero .st-fac-badge { border: 2px solid rgba(255, 255, 255, 0.25); }
