/* store.chunkverse.net design (mock at /store-preview, later ported to the Tebex template).
   Builds on site.css: same tokens, buttons and cards; only the store's own chrome and pages here. */

.sp-ribbon { background: #ff8a1f; color: #fff; text-align: center; font-size: 13px; font-weight: 500; padding: 6px 16px; }
.sp-ribbon a { color: #fff; text-decoration: underline; }

/* header: logo + "Store" chip, store nav, who you're buying as, basket */
.store-header .logo { display: flex; align-items: center; gap: 10px; }
.store-chip { font: 400 15px var(--display); letter-spacing: .03em; color: #1a1205; background: #ffb31a; padding: 2px 8px 3px; border-radius: 0; }
.store-nav a:last-child { color: var(--muted); }
.sp-user { display: flex; align-items: center; gap: 9px; color: var(--heading); font-weight: 600; font-size: 14.5px; line-height: 1.15; padding: 4px 10px 4px 4px; border: 1px solid var(--line); border-radius: 0; }
.sp-user:hover { border-color: var(--line-strong); text-decoration: none; }
.sp-user img { border-radius: 0; flex: none; width: 26px; height: 26px; }
.sp-user { flex: none; }
.sp-user small { display: block; color: var(--muted); font-weight: 500; font-size: 11.5px; }
.sp-basket svg { margin-right: -2px; }
.sp-count { background: rgba(0, 0, 0, .25); border-radius: 0; padding: 0 6px; font-size: 12.5px; }
.sp-total { opacity: .9; }

/* home hero: copy left, the three rank renders fanned out right */
.sp-hero { background: radial-gradient(ellipse at 75% 60%, rgba(18, 169, 201, .18), transparent 60%), var(--chrome); color: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.sp-hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center; min-height: 360px; }
.sp-hero h1 { font: 400 48px/1.05 var(--display); max-width: 560px; }
.sp-hero p { color: #c8d5e3; font-size: 17px; max-width: 520px; margin: 14px 0 0; }
.sp-hero-art { position: relative; height: 300px; }
.sp-hero-art img { position: absolute; top: 50%; width: 210px; height: auto; border-radius: 0; box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  left: calc(4% + var(--i) * 27%); transform: translateY(-50%) rotate(calc((var(--i) - 1) * 6deg)); }
.sp-hero-art img:nth-child(2) { z-index: 2; transform: translateY(-56%) scale(1.06); }

/* category tiles (coloured, with a slice of artwork on the right) */
.sp-tiles { background: var(--surface); border-bottom: 1px solid var(--line); padding: 14px 0; }
.sp-tiles .wrap { display: flex; gap: 14px; flex-wrap: wrap; }
.sp-tile { position: relative; overflow: hidden; display: flex; align-items: center; width: 240px; height: 64px; padding: 0 18px;
  border-radius: 0; background: linear-gradient(90deg, var(--t1) 0%, var(--t2) 100%); color: #fff; font: 400 22px var(--display); letter-spacing: .01em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .25); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18); }
.sp-tile:hover { text-decoration: none; filter: brightness(1.08); }
.sp-tile.on { outline: 3px solid var(--heading); outline-offset: 2px; }
.sp-tile span { position: relative; z-index: 1; }
/* the art sits on the right and fades in from the tile colour, which is sampled from the art itself */
.sp-tile img { position: absolute; right: 0; top: 0; width: 62%; height: 100%; object-fit: cover; object-position: center 32%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%); mask-image: linear-gradient(90deg, transparent 0%, #000 55%); }

/* product cards: big colour panel with the art, then title, tagline, three points, price + button */
.sp-sec .sec-head { margin-bottom: 18px; }
.sp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sp-prod { background: var(--surface); border: 1px solid var(--line); border-radius: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.sp-prod:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 0, 0, .3); }
/* square panel: the package art is square, so it shows whole */
.sp-prod-art { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--chrome); }
.sp-prod-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.sp-prod:hover .sp-prod-art img { transform: scale(1.04); }
.sp-prod-body { padding: 20px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.sp-prod h3 { font: 400 26px var(--display); color: var(--heading); letter-spacing: .01em; }
.sp-prod h3 a { color: inherit; }
.sp-tag { font-weight: 600; color: var(--heading); font-size: 14.5px; margin: 8px 0 8px; }
.sp-prod ul { list-style: none; padding: 0; margin: 0 0 18px; }
.sp-prod li { position: relative; padding: 3px 0 3px 24px; color: var(--text); font-size: 14.5px; }
.sp-prod li::before { content: ""; position: absolute; left: 0; top: 7px; width: 15px; height: 15px; border-radius: 0;
  background: #1fbe55 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
.sp-prod-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.sp-price { display: flex; flex-direction: column; align-items: flex-start; }
.sp-price b { font: 400 32px/1 var(--display); color: var(--heading); }
.sp-price small { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* disclaimer + payment methods strip above the footer */
.sp-disclaimer { background: var(--surface); border-top: 1px solid var(--line); padding: 26px 0; }
.sp-disclaimer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.sp-disclaimer b { color: var(--heading); }
.sp-disclaimer p { margin: 4px 0 0; color: var(--muted); font-size: 14px; max-width: 520px; }
.sp-pay { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-pay em { color: var(--muted); font-size: 13px; align-self: center; }
.sp-pay span { display: inline-flex; align-items: center; justify-content: center; height: 40px; min-width: 70px; padding: 0 12px; background: #fff; border: 1px solid var(--line-strong); }
.sp-pay img { display: block; width: auto; }
.sf-online { display: flex; align-items: center; gap: 16px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.sf-status { color: #c8d5e3; }

/* store home */
.sp-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 18px; }
.sp-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.sp-cat { position: relative; overflow: hidden; display: flex; min-height: 230px; padding: 28px; color: #fff;
  background: linear-gradient(110deg, var(--t1) 0%, var(--t2) 70%); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .2); }
.sp-cat:hover { text-decoration: none; filter: brightness(1.06); }
.sp-cat > div { position: relative; z-index: 1; max-width: 56%; display: flex; flex-direction: column; }
.sp-cat h2 { font: 400 40px var(--display); text-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.sp-cat p { margin: 8px 0 16px; color: rgba(255, 255, 255, .92); font-size: 15px; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.sp-cat-meta { margin-top: auto; align-self: flex-start; background: rgba(0, 0, 0, .3); padding: 5px 10px; font-weight: 700; font-size: 13.5px; }
.sp-cat img { position: absolute; right: 0; top: 0; height: 100%; width: 52%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%); }

.sp-ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); background: var(--surface); }
.sp-step-rank { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 14px 18px; color: var(--text);
  border-left: 1px solid var(--line); border-top: 4px solid var(--c, var(--line-strong)); }
.sp-step-rank:first-child { border-left: 0; }
.sp-step-rank:hover { text-decoration: none; background: var(--surface-2); }
.sp-step-rank img { width: 96px; height: 96px; object-fit: cover; margin-bottom: 10px; }
.sp-step-rank b { font: 400 24px var(--display); color: var(--c, var(--heading)); }
.sp-step-rank span { color: var(--heading); font-weight: 600; margin: 4px 0 2px; }
.sp-step-rank small { color: var(--muted); }
.sp-free { justify-content: center; }

.sp-best { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: center; background: var(--surface); border: 1px solid var(--line); padding: 22px; }
.sp-best img { width: 100%; height: auto; }
.sp-kicker { display: inline-block; background: #ffb31a; color: #1a1205; font: 700 12px var(--body); text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; }
.sp-best h2 { font: 400 40px var(--display); color: var(--heading); margin: 10px 0 6px; }
.sp-best p { color: var(--text); font-size: 16px; max-width: 520px; margin: 0 0 18px; }

.sp-how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: st; }
.sp-how li { counter-increment: st; background: var(--surface); border: 1px solid var(--line); padding: 18px 18px 18px; position: relative; }
.sp-how li::before { content: counter(st); display: block; width: 32px; height: 32px; margin-bottom: 12px; background: var(--brand); color: #fff;
  font: 400 20px/32px var(--display); text-align: center; }
.sp-how b { display: block; color: var(--heading); margin-bottom: 4px; }
.sp-how span { color: var(--muted); font-size: 14.5px; }

/* category heads */
.sp-cathead { background: var(--chrome); color: #fff; padding: 34px 0 30px; border-bottom: 1px solid var(--line); }
.sp-cathead .crumbs, .sp-cathead .crumbs a { color: #8d9bb0; }
.sp-cathead h1 { font: 400 44px var(--display); margin: 6px 0 8px; }
.sp-cathead p { color: #c8d5e3; max-width: 720px; margin: 0; }
.sp-title { font: 400 38px var(--display); color: var(--heading); margin: 6px 0 20px; }

/* package page */
.sp-package { display: grid; grid-template-columns: 380px 1fr; gap: 40px; margin-top: 16px; align-items: start; }
.sp-package-art { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: 0; padding: 24px; display: flex; justify-content: center; }
.sp-package-art img { max-width: 100%; height: auto; border-radius: 0; }
.sp-package h1 { font: 400 44px var(--display); color: var(--heading); }
.sp-package-sub { color: var(--muted); font-size: 17px; margin: 4px 0 20px; }
.sp-package-buy { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.sp-perks { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 0; }
.sp-perks li { padding: 11px 16px 11px 40px; border-top: 1px solid var(--line-soft); position: relative; }
.sp-perks li:first-child { border-top: 0; }
.sp-perks li::before { content: "\2713"; position: absolute; left: 16px; color: var(--c); font-weight: 700; }
.sp-perks li b { color: var(--heading); }
.sp-package .store-uses { grid-template-columns: 1fr 1fr; }

/* basket */
.sp-basket-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.sp-lines { display: flex; flex-direction: column; gap: 12px; }
.sp-line { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 12px 16px; }
.sp-line img { width: 64px; height: 64px; object-fit: cover; border-radius: 0; }
.sp-line b { color: var(--heading); display: block; }
.sp-line small { color: var(--muted); }
.sp-line-price { color: var(--heading); font-weight: 600; }
.sp-remove { color: var(--muted); font-size: 13.5px; }
.sp-coupon { display: flex; gap: 10px; }
.sp-coupon input { flex: 1; background: var(--surface); border: 1px solid var(--line); color: var(--text); font: 500 15px var(--body); padding: 9px 14px; border-radius: 0; }
.sp-summary { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 18px 20px; }
.sp-summary-user { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line-soft); }
.sp-summary-user img { border-radius: 0; }
.sp-summary-user small { display: block; color: var(--muted); font-size: 12.5px; }
.sp-summary-user b { color: var(--heading); }
.sp-checkout { width: 100%; margin-top: 14px; }
.sp-secure { color: var(--muted); font-size: 12.5px; margin: 10px 0 0; text-align: center; }

/* footer */
.store-footer { background: var(--chrome); color: #a9b8ca; padding: 36px 0 22px; font-size: 14px; border-top: 1px solid var(--line); }
.sf-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.sf-top p { max-width: 460px; margin: 12px 0 0; }
.sf-links { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: flex-start; }
.sf-links a { color: #c8d5e3; }
.store-footer .legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 26px; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 12.5px; color: #7f8fa3; }

@media (max-width: 1100px) {
  .store-nav { display: none; }
  .sp-grid { grid-template-columns: 1fr 1fr; }
  .sp-how { grid-template-columns: 1fr 1fr; }
  .store-header .hdr-actions .ip-pill { display: none; }
  .header.open .store-nav { display: flex; }
  .sp-hero .wrap { grid-template-columns: 1fr; padding-top: 34px; padding-bottom: 20px; }
  .sp-hero-art { height: 240px; }
  .sp-hero-art img { width: 160px; }
}
@media (max-width: 720px) {
  .sp-user span { display: none; }
  .sp-user { padding: 4px; }
  .sp-total { display: none; }
  .sp-hero h1 { font-size: 34px; }
  .sp-hero-art { height: 200px; }
  .sp-hero-art img { width: 120px; left: calc(2% + var(--i) * 30%); }
  .sp-package, .sp-basket-grid { grid-template-columns: 1fr; }
  .sp-grid { grid-template-columns: 1fr; }
  .sp-cats, .sp-best { grid-template-columns: 1fr; }
  .sp-cat > div { max-width: 62%; }
  .sp-ladder { grid-template-columns: 1fr 1fr; }
  .sp-step-rank:nth-child(3) { border-left: 0; }
  .sp-step-rank { border-bottom: 1px solid var(--line); }
  .sp-how { grid-template-columns: 1fr; }
  .sp-tile { width: calc(50% - 7px); }
  .sp-package h1, .sp-cathead h1 { font-size: 34px; }
  .sp-line { grid-template-columns: 48px 1fr auto; }
  .sp-line img { width: 48px; height: 48px; }
  .sp-remove { grid-column: 2 / -1; }
}
@media (max-width: 400px) {
  .store-chip { display: none; }
  .sp-user { display: none; }
}
/* orbs panel: painted in the art's own vertical teal so the chest crop blends in; the crop sits right at
   full panel height and only its left edge fades */
.sp-cat-orbs { background: linear-gradient(180deg, var(--c1), var(--c2)); }
.sp-cat-orbs::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .18), transparent 55%); }
.sp-cat img.sp-cat-orb { width: auto; height: 100%; right: 0; object-fit: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 25%); mask-image: linear-gradient(90deg, transparent 0%, #000 25%); }

/* "Includes N% bonus orbs." sits on a stripe in the orbs' own aqua */
.sp-tag-bonus { align-self: flex-start; background: linear-gradient(90deg, #22e0c2, #0aa8dc); color: #fff;
  padding: 3px 10px; letter-spacing: .02em; text-shadow: 0 2px 0 rgba(0, 30, 45, .55), 0 1px 6px rgba(0, 30, 45, .8);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }

/* community goal: an XP-bar style progress bar */
.sp-goal-sec { padding: 28px 0 0; }
.sp-goal { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); padding: 24px 26px 20px; }
.sp-goal-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 14px; }
.sp-goal h2 { font: 400 34px/1 var(--display); color: var(--heading); margin-top: 10px; }
.sp-goal h2 small { font: 600 16px var(--body); color: var(--muted); }
.sp-goal-pct { font: 400 34px/1 var(--display); background: linear-gradient(90deg, #4fdcff, #6bffe6); -webkit-background-clip: text;
  filter: drop-shadow(0 0 10px rgba(80, 240, 230, .35)); background-clip: text; color: transparent; }
/* sleek bar: deep track, smooth orb-aqua fill with a soft glow and a slow light sweep, bright tip */
.sp-bar { position: relative; height: 12px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5); }
.sp-bar i { position: absolute; left: 0; top: 0; bottom: 0; overflow: hidden;
  background: linear-gradient(90deg, #0a8fb8 0%, #0aa8dc 40%, #22e0c2 100%);
  box-shadow: 0 0 18px rgba(34, 224, 194, .35), 0 0 6px rgba(10, 168, 220, .35); }
.sp-bar i::before { content: ""; position: absolute; top: 0; bottom: 0; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); animation: cv-sweep 2.8s ease-in-out infinite; }
.sp-bar i::after { content: ""; position: absolute; right: 0; top: -3px; bottom: -3px; width: 3px; background: #e6fffb;
  box-shadow: 0 0 10px 2px rgba(110, 255, 230, .8); }
@keyframes cv-sweep { 0% { left: -40%; } 60%, 100% { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .sp-bar i::before { animation: none; display: none; } }
.sp-goal p { margin: 12px 0 0; color: var(--muted); font-size: 14.5px; }

/* goal: bar ends in a gift box; one line underneath */
.sp-goal-track { display: flex; align-items: center; gap: 12px; }
.sp-goal-track .sp-bar { flex: 1; }
.sp-goal-gift { flex: none; display: inline-flex; align-items: center; justify-content: center; color: #22e0c2; }
.sp-goal-gift { color: #5ffbe0; }
.sp-goal-gift svg { width: 32px; height: 32px; filter: drop-shadow(0 0 5px rgba(60, 255, 220, .4)); }
.sp-goal-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.sp-goal-reward { display: inline-flex; align-items: center; gap: 9px; color: var(--heading); font-weight: 500; font-size: 15px; }
.sp-goal-reward svg { color: #22e0c2; flex: none; }
.sp-goal-left { color: var(--muted); font-size: 14.5px; }
.sp-goal-left b { color: var(--heading); }

/* hero trust row: icon tile + title + one-line detail */
.sp-trust { list-style: none; padding: 0; margin: 4px 0 0; display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 14px 22px; }
@media (max-width: 720px) { .sp-trust { grid-template-columns: 1fr; } }
.sp-trust li { display: flex; align-items: center; gap: 11px; }
.sp-trust-i { flex: none; display: inline-flex; align-items: center; justify-content: center; color: var(--k); }
.sp-trust-i svg { width: 24px; height: 24px; }
.sp-trust li { gap: 9px; }
.sp-trust b { display: block; color: #fff; font-size: 14.5px; line-height: 1.25; }
.sp-trust small { display: block; color: #9fb0c4; font-size: 12.5px; line-height: 1.3; }
.store-header .logo, .store-header .logo:hover { text-decoration: none; }
