/* Loja de materiais: checkout, Minhas compras, entrega e reenvio (public-pages identity) plus the live catalog on
   materiais-pedagogicos.html (editorial identity). Own tone tokens: nothing here depends on the Plus stylesheet.
   Store pages run under a strict CSP (style-src 'self'): every style lives here, never inline. */
body[data-page^="store"], body.materials-page {
  --tone-success-bg: #dcf5e8; --tone-success-ink: #0f6038;
  --tone-warning-bg: #fff0d1; --tone-warning-ink: #7a4a00;
  --tone-danger-bg: #fde4e4; --tone-danger-ink: #9b1c1c;
  /* Info ink darker than --ui-accent in light: 4.5:1 on the soft info background. */
  --tone-info-bg: var(--ui-soft); --tone-info-ink: #005a8c;
  --tone-neutral-bg: var(--ui-raised); --tone-neutral-ink: var(--ui-muted);
  --store-radius: 18px;
}
html[data-theme="dark"] :is(body[data-page^="store"], body.materials-page) {
  --tone-success-bg: rgba(52, 199, 123, .16); --tone-success-ink: #8be3b4;
  --tone-warning-bg: rgba(255, 184, 0, .15); --tone-warning-ink: #ffd27a;
  --tone-danger-bg: rgba(255, 99, 99, .16); --tone-danger-ink: #ffa3a3;
  --tone-info-ink: var(--ui-accent);
}
.store-main [hidden], .store-catalog [hidden] { display: none !important; }
.store-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Shared pieces. */
.store-badge { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 2px 10px; border-radius: 100px; background: var(--tone-info-bg); color: var(--tone-info-ink);
  font-size: .75rem; font-weight: 800; white-space: nowrap; }
.store-badge[data-tone="success"] { background: var(--tone-success-bg); color: var(--tone-success-ink); }
.store-badge[data-tone="warning"] { background: var(--tone-warning-bg); color: var(--tone-warning-ink); }
.store-badge[data-tone="danger"] { background: var(--tone-danger-bg); color: var(--tone-danger-ink); }
.store-badge[data-tone="neutral"] { background: var(--tone-neutral-bg); color: var(--tone-neutral-ink); }
/* Status line: a quiet note while things are in order, a colored alert when the buyer must notice. */
.store-status { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 16px; border-radius: 14px; background: var(--tone-info-bg); color: var(--ui-text);
  font-size: .94rem; font-weight: 650; line-height: 1.55; }
.store-status::before { content: "\f431"; flex-shrink: 0; font-family: "bootstrap-icons"; font-size: 1.1rem; font-weight: 400; line-height: 1.4; color: var(--tone-info-ink); }
.store-status[data-tone="info"] { padding: 0; background: none; color: var(--ui-muted); font-weight: 600; }
.store-status[data-tone="success"] { background: var(--tone-success-bg); }
.store-status[data-tone="success"]::before { content: "\f26a"; color: var(--tone-success-ink); }
.store-status[data-tone="warning"] { background: var(--tone-warning-bg); }
.store-status[data-tone="warning"]::before { content: "\f33a"; color: var(--tone-warning-ink); }
.store-status[data-tone="danger"] { background: var(--tone-danger-bg); }
.store-status[data-tone="danger"]::before { content: "\f622"; color: var(--tone-danger-ink); }
.store-status:empty { display: none; }
.store-notice { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--tone-warning-ink) 28%, transparent); border-radius: 12px;
  background: var(--tone-warning-bg); color: var(--ui-text); font-size: .88rem; line-height: 1.6; }
.store-notice > i { color: var(--tone-warning-ink); font-size: 1.05rem; }
.store-notice--info { border-color: transparent; background: var(--tone-info-bg); }
.store-notice--info > i { color: var(--tone-info-ink); }
.store-notice a { color: inherit; font-weight: 750; }
.store-fineprint { margin: 0; color: var(--ui-muted); font-size: .84rem; line-height: 1.6; }
.store-fineprint a, .store-link { color: var(--ui-accent); font-weight: 750; }
.store-link { display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; }
.store-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.store-button { display: inline-flex; gap: 8px; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px; border: 1px solid var(--ui-line); border-radius: 100px;
  background: var(--ui-surface); color: var(--ui-text); font: inherit; font-weight: 750; line-height: 1.2; text-decoration: none; cursor: pointer; transition: border-color .2s, color .2s, box-shadow .2s; }
.store-button:hover:not(:disabled) { border-color: var(--ui-accent); color: var(--ui-accent); }
.store-button--primary { border-color: transparent; background: var(--brand-button-fill); color: var(--brand-button-ink); }
.store-button--primary:hover:not(:disabled) { color: var(--brand-button-ink); box-shadow: 0 8px 22px color-mix(in srgb, var(--ui-accent) 24%, transparent); }
.store-button--wide { width: 100%; min-height: 52px; font-size: 1rem; }
.store-button--danger { color: var(--tone-danger-ink); }
.store-button:disabled { opacity: .55; cursor: not-allowed; }
.store-button[aria-busy="true"] { cursor: progress; }
.store-text-button { display: inline-flex; gap: 6px; align-items: center; min-height: 36px; padding: 0 4px; border: 0; background: none; color: var(--ui-accent); font: inherit; font-size: .88rem; font-weight: 750; cursor: pointer; }
.store-text-button:hover:not(:disabled) { text-decoration: underline; text-underline-offset: .2em; }
.store-text-button:disabled { color: var(--ui-muted); opacity: .6; cursor: not-allowed; }
.store-main :is(a, button, input, select, textarea, summary):focus-visible, .store-catalog :is(a, button):focus-visible { outline: 3px solid var(--ui-accent); outline-offset: 3px; }
.store-panel { min-width: 0; padding: clamp(20px, 3vw, 28px); border: 1px solid var(--ui-line); border-radius: var(--store-radius); background: var(--ui-surface);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--ui-text) 6%, transparent); }
.store-panel > h2, .store-panel-title { margin: 0; font-size: 1.2rem; font-weight: 650; letter-spacing: -.03em; }
.store-panel > p { margin: 0; color: var(--ui-muted); line-height: 1.6; }
.store-files { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.store-files li { display: flex; gap: 8px 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 0; padding: 12px 14px; border: 1px solid var(--ui-line); border-radius: 12px; background: var(--ui-bg); }
.store-file-name { display: inline-flex; flex: 1; gap: 8px; align-items: center; min-width: 0; font-size: .92rem; font-weight: 700; overflow-wrap: anywhere; }
.store-file-name i { color: var(--tone-danger-ink); }
.store-file-size { color: var(--ui-muted); font-size: .82rem; font-weight: 600; }
.store-files li .store-button { min-height: 40px; padding: 8px 16px; font-size: .88rem; }
.store-facts { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.store-facts li { display: flex; gap: 10px; align-items: flex-start; margin: 0; color: var(--ui-text); font-size: .88rem; line-height: 1.5; }
.store-facts i { color: var(--ui-accent); font-size: 1rem; line-height: 1.4; }
.store-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 0; color: var(--ui-muted); font-size: .9rem; font-weight: 650; }
.store-price strong { color: var(--ui-text); font-family: var(--font-title); font-size: clamp(1.7rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.1; }
.store-reference { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .82rem; overflow-wrap: anywhere; }
.store-field { display: grid; gap: 6px; color: var(--ui-text); font-size: .88rem; font-weight: 700; }
.store-field small { color: var(--ui-muted); font-weight: 500; line-height: 1.5; }
.store-field input { box-sizing: border-box; width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--ui-line); border-radius: 12px; background: var(--ui-bg); color: var(--ui-text); font: inherit; font-weight: 500;
  transition: border-color .2s, box-shadow .2s; }
.store-field input:focus { border-color: var(--ui-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ui-accent) 16%, transparent); outline: none; }
.store-field input[aria-invalid="true"] { border-color: var(--tone-danger-ink); }
.store-error { margin: 0; color: var(--tone-danger-ink); font-size: .86rem; font-weight: 700; }
.store-error:empty { display: none; }
.store-check { display: flex; gap: 12px; align-items: flex-start; color: var(--ui-text); font-size: .9rem; line-height: 1.6; cursor: pointer; }
.store-check input { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ui-accent); }
.store-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.store-turnstile { min-height: 65px; }
.store-turnstile:empty { min-height: 0; }

/* Page shell: a short title and the work, no banner. */
body[data-page^="store"] { background: var(--ui-bg); }
.store-main { padding-block: clamp(24px, 4vw, 40px) clamp(48px, 6vw, 80px);
  background: radial-gradient(ellipse 70% 320px at 50% 0, color-mix(in srgb, var(--brand-wash) 75%, transparent), transparent); }
.public-page main .container.store-shell { display: grid; gap: 20px; width: min(1080px, calc(100% - 48px)); }
.public-page main .container.store-shell--narrow { width: min(620px, calc(100% - 48px)); }
.public-page main .container.store-shell--medium { width: min(860px, calc(100% - 48px)); }
.store-actions--center { justify-content: center; }
.store-actions--center:not(:has(> :not([hidden]))) { display: none; }
.store-button--quiet { min-height: 40px; padding: 8px 14px; font-size: .88rem; }
/* The empty and signed-out cards say it already; the status line stays for assistive technology. */
#purchases-status:has(~ :is(#purchases-empty, #purchases-guest):not([hidden])) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.store-head { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; justify-content: space-between; }
.store-crumb { display: inline-flex; gap: 7px; align-items: center; margin-bottom: 6px; color: var(--ui-accent); font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.store-crumb:hover { text-decoration: underline; text-underline-offset: .25em; }
.store-head h1 { margin: 0; color: var(--ui-text); font-size: clamp(1.7rem, 3vw, 2.15rem); font-weight: 650; letter-spacing: -.045em; line-height: 1.15; }
.store-head p:not(.store-crumb) { margin: 6px 0 0; color: var(--ui-muted); font-size: .96rem; line-height: 1.55; }

/* Checkout. */
.store-stepper { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.store-stepper li { display: inline-flex; gap: 8px; align-items: center; margin: 0; padding: 6px 12px 6px 6px; border-radius: 100px; color: var(--ui-muted); font-size: .84rem; font-weight: 750; }
.store-stepper li > span { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--ui-line); border-radius: 50%; background: var(--ui-surface); font-size: .76rem; font-weight: 800; }
.store-stepper li[aria-current="step"] { background: var(--ui-surface); color: var(--ui-text); box-shadow: 0 0 0 1px var(--ui-line); }
.store-stepper li[aria-current="step"] > span { border-color: transparent; background: var(--brand-button-fill); color: var(--brand-button-ink); }
.store-stepper li.is-done > span { border-color: transparent; background: var(--tone-success-bg); color: transparent; position: relative; }
.store-stepper li.is-done > span::after { content: "\f26e"; position: absolute; inset: 0; display: grid; place-items: center; font-family: "bootstrap-icons"; color: var(--tone-success-ink); font-size: .9rem; }
.store-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 24px; align-items: start; }
.store-column { display: grid; gap: 20px; min-width: 0; }
.store-step { position: relative; display: grid; gap: 18px; }
.store-step > h2 { margin: 0; font-size: 1.2rem; font-weight: 650; letter-spacing: -.03em; }
.store-step-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.store-step-head h2 { margin: 0; font-size: 1.2rem; font-weight: 650; letter-spacing: -.03em; }
.store-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; border: 0; }
.store-choice { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-content: start; padding: 16px; border: 1.5px solid var(--ui-line); border-radius: 14px;
  background: var(--ui-surface); cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s; }
.store-choice:hover { border-color: color-mix(in srgb, var(--ui-accent) 50%, var(--ui-line)); }
.store-choice:has(input:checked) { border-color: var(--ui-accent); background: var(--brand-wash); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ui-accent) 12%, transparent); }
.store-choice:has(input:checked) .store-choice-icon { background: var(--ui-surface); }
.store-choice:has(input:focus-visible) { outline: 3px solid var(--ui-accent); outline-offset: 3px; }
.store-choice input { position: absolute; top: 16px; right: 16px; width: 18px; height: 18px; margin: 0; accent-color: var(--ui-accent); }
.store-choice-icon { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ui-soft); color: var(--tone-info-ink); font-size: 1.15rem; }
.store-choice strong { padding-right: 28px; font-size: .98rem; }
.store-choice > span:last-child { color: var(--ui-muted); font-size: .86rem; line-height: 1.5; }
.store-account { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--ui-bg); border: 1px solid var(--ui-line); }
.store-account-icon { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--ui-soft); color: var(--ui-accent); }
.store-account > span:last-child { display: grid; min-width: 0; }
.store-account strong, .store-account small { overflow-wrap: anywhere; }
.store-account strong { font-size: .94rem; }
.store-account small { color: var(--ui-muted); font-size: .82rem; }
.store-login { display: flex; gap: 12px 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 16px; border-radius: 12px; background: var(--ui-bg); border: 1px solid var(--ui-line); }
.store-login p { margin: 0; color: var(--ui-muted); font-size: .9rem; line-height: 1.5; }
.store-guest-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#guest-email-help i { margin-right: 2px; color: var(--ui-accent); }
.store-consent { padding-top: 18px; border-top: 1px solid var(--ui-line); gap: 14px; }
.store-consent > .store-fineprint { padding-left: 32px; font-size: .8rem; }
.store-review { display: grid; gap: 0; margin: 0; padding: 4px 16px; border: 1px solid var(--ui-line); border-radius: 14px; background: var(--ui-bg); }
.store-review > div { display: grid; grid-template-columns: minmax(110px, auto) minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ui-line); }
.store-review > div:last-child { border-bottom: 0; }
.store-review dt { color: var(--ui-muted); font-size: .84rem; font-weight: 700; }
.store-review dd { margin: 0; font-size: .92rem; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.store-review .store-review-ref :is(dt, dd) { color: var(--ui-muted); font-size: .8rem; font-weight: 600; }
#checkout-test { width: fit-content; padding: 6px 12px; border-radius: 100px; font-size: .8rem; font-weight: 700; }
.store-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.store-methods button { display: flex; gap: 12px; align-items: center; min-height: 64px; padding: 12px 16px; border: 1.5px solid var(--ui-line); border-radius: 14px; background: var(--ui-surface);
  color: var(--ui-text); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s; }
.store-methods button > i { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--ui-soft); color: var(--tone-info-ink); font-size: 1.2rem; }
.store-methods button > span { display: grid; }
.store-methods strong { font-size: .96rem; }
.store-methods small { color: var(--ui-muted); font-size: .8rem; font-weight: 600; }
.store-methods button:hover:not(:disabled) { border-color: color-mix(in srgb, var(--ui-accent) 50%, var(--ui-line)); }
.store-methods button[aria-pressed="true"] { border-color: var(--ui-accent); background: var(--brand-wash); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ui-accent) 12%, transparent); }
.store-methods button[aria-pressed="true"] > i { background: var(--brand-button-fill); color: var(--brand-button-ink); }
.store-methods button:disabled { opacity: .5; cursor: not-allowed; }
.store-method-panel { display: grid; gap: 14px; }
.store-brick:empty { display: none; }
#challenge-step, #status-brick-container { min-width: 0; max-width: 100%; }
#status-brick-container iframe { max-width: 100%; }
.store-challenge-frame { display: block; width: 100%; min-width: 0; height: 760px; border: 0; }
.store-secure { display: flex; gap: 6px; align-items: center; justify-content: center; }
.store-secure > i { color: var(--tone-success-ink); }
.store-pix { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; padding: 20px; border: 1px solid var(--ui-line); border-radius: 14px; background: var(--ui-bg); }
.store-pix-qr:empty { display: none; }
.store-pix img { display: block; width: 200px; height: 200px; padding: 10px; border: 1px solid var(--ui-line); border-radius: 14px; background: #fff; image-rendering: pixelated; }
.store-pix-copy { display: grid; gap: 10px; min-width: 0; }
.store-pix-copy label { font-size: .88rem; font-weight: 750; }
.store-pix-copy textarea { box-sizing: border-box; width: 100%; min-height: 76px; padding: 10px 12px; border: 1px solid var(--ui-line); border-radius: 12px; background: var(--ui-surface);
  color: var(--ui-text); font: .8rem/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; resize: vertical; overflow-wrap: anywhere; }
.store-countdown { font-variant-numeric: tabular-nums; font-weight: 800; }
.store-result { display: grid; gap: 14px; }
.store-result h2 { margin: 0; font-size: 1.3rem; font-weight: 650; letter-spacing: -.03em; }
.store-result p { margin: 0; color: var(--ui-muted); line-height: 1.6; }
.store-result p strong { color: var(--ui-text); }
.store-result-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--tone-info-bg); color: var(--tone-info-ink); font-size: 1.5rem; }
.store-result-icon::before { content: "\f41f"; font-family: "bootstrap-icons"; }
#result-step[data-tone="success"] .store-result-icon { background: var(--tone-success-bg); color: var(--tone-success-ink); }
#result-step[data-tone="success"] .store-result-icon::before { content: "\f26e"; }
#result-step[data-tone="warning"] .store-result-icon { background: var(--tone-warning-bg); color: var(--tone-warning-ink); }
#result-step[data-tone="warning"] .store-result-icon::before { content: "\f33a"; }
.store-summary { position: sticky; top: 96px; display: grid; gap: 16px; }
.store-summary-product { display: flex; gap: 14px; align-items: center; }
.store-summary-product > div:last-child { min-width: 0; }
.store-summary-cover { display: grid; place-items: center; flex-shrink: 0; width: 64px; height: 84px; overflow: hidden; border-radius: 8px; background: linear-gradient(135deg, var(--ui-soft), var(--brand-wash-end));
  color: var(--ui-accent); font-size: 1.6rem; box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--ui-text) 40%, transparent); }
.store-summary-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.store-summary-kicker { display: flex; gap: 8px; align-items: center; margin: 0 0 4px; color: var(--ui-muted); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.store-summary-kicker .store-badge { letter-spacing: 0; text-transform: none; }
.store-summary h2 { margin: 0; font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; overflow-wrap: anywhere; }
.store-files--compact li { padding: 8px 12px; border: 0; background: var(--ui-bg); }
.store-files--compact .store-file-name { font-size: .84rem; font-weight: 650; }
.store-summary-total { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; padding-top: 14px; border-top: 1px dashed var(--ui-line); }
.store-summary-total > span { color: var(--ui-text); font-weight: 750; }
.store-summary-help { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding-top: 14px; border-top: 1px solid var(--ui-line); color: var(--ui-muted); font-size: .82rem; line-height: 1.5; }
.store-summary-help a { color: var(--ui-accent); font-weight: 700; }

/* Minhas compras, entrega e reenvio. */
.store-order { display: grid; gap: 14px; }
.store-order-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.store-order-head h2 { margin: 0; font-size: 1.1rem; font-weight: 650; letter-spacing: -.02em; overflow-wrap: anywhere; }
.store-order-meta { margin: 2px 0 0; color: var(--ui-muted); font-size: .84rem; }
.store-order-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.store-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.store-list > li { margin: 0; }
.store-empty { display: grid; justify-items: center; gap: 10px; padding: clamp(28px, 5vw, 44px); border: 1px dashed var(--ui-line); border-radius: var(--store-radius); text-align: center; }
.store-empty > i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--brand-button-fill); color: var(--brand-button-ink); font-size: 1.4rem; }
.store-empty h2 { margin: 4px 0 0; font-size: 1.2rem; font-weight: 650; }
.store-empty p { max-width: 42ch; margin: 0; color: var(--ui-muted); line-height: 1.6; }
.store-delivery-card { display: grid; gap: 14px; }
.store-download-form { margin: 0; }
.store-page-foot { display: flex; gap: 8px 16px; flex-wrap: wrap; justify-content: center; margin: 4px 0 0; color: var(--ui-muted); font-size: .84rem; }
.store-page-foot a { color: var(--ui-accent); font-weight: 700; }

/* Catalog inside the editorial materials page: a store front with a discipline filter above the shelf. */
.store-catalog { padding: 56px 0 72px; }
.store-catalog-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 28px; }
.store-catalog-head h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; line-height: 1.08; }
.store-catalog-purchases { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border: 1px solid var(--home-line); border-radius: 100px;
  background: color-mix(in srgb, var(--home-surface) 82%, transparent); color: var(--home-text); font-size: .9rem; font-weight: 800; text-decoration: none; transition: border-color .2s, color .2s; }
.store-catalog-purchases i { color: var(--home-accent); }
.store-catalog-purchases:hover { border-color: var(--home-accent); color: var(--home-blue); }
.store-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0 0 24px; border-bottom: 1px solid var(--home-line); }
.store-filter-chip { min-height: 42px; padding: 8px 18px; border: 1px solid var(--home-line); border-radius: 100px; background: var(--home-surface); color: var(--home-text);
  font: inherit; font-size: .9rem; font-weight: 750; cursor: pointer; transition: border-color .2s, color .2s, background-color .2s, box-shadow .2s; }
.store-filter-chip:hover { border-color: var(--home-accent); color: var(--home-blue); }
.store-filter-chip[aria-pressed="true"] { border-color: transparent; background: var(--home-button-fill); color: var(--home-button-ink);
  box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--home-accent) 70%, transparent); }
.store-catalog .store-status { color: var(--home-text); }
.store-catalog .store-status:not(:empty) { margin-bottom: 20px; }
.store-catalog .store-actions--center { margin-top: 32px; }
.store-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; transition: opacity .2s; }
.store-grid[aria-busy="true"] { opacity: .55; }
/* The title link stretches over the whole card; the visual button is a decorative copy of it. */
.store-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: var(--home-surface); border: 1px solid var(--home-line);
  box-shadow: var(--home-card-shadow); transition: transform .25s, border-color .25s; }
.store-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--home-accent) 45%, var(--home-line)); }
.store-card:has(.store-card-link:focus-visible) { outline: 3px solid var(--home-accent); outline-offset: 3px; }
.store-card-cover { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; min-height: 0; padding: 22px; background:
  radial-gradient(circle, var(--home-dot) 1.2px, transparent 1.4px) 0 0 / 18px 18px, linear-gradient(135deg, var(--home-cyan-wash), var(--home-indigo-wash)); }
.store-card-cover img { display: block; width: auto; height: 100%; min-height: 0; max-width: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 16px 26px -14px rgba(16, 35, 61, .55); transition: transform .3s; }
.store-card:hover .store-card-cover img { transform: scale(1.03) rotate(-.6deg); }
.store-card-cover i { color: var(--home-blue); font-size: 3rem; }
.store-card-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 20px 22px 22px; }
.store-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.store-card-tags li { padding: 3px 10px; border-radius: 100px; font-size: var(--type-tag); font-weight: 800; }
.store-card-tags [data-kind="subject"] { background: var(--home-cyan-wash); color: var(--home-blue); }
.store-card-tags [data-kind="stage"] { border: 1px solid var(--home-line); color: var(--home-muted); }
.store-card h3 { margin: 0; font-size: 1.16rem; font-weight: 700; line-height: 1.3; color: var(--home-text); }
.store-card-link { color: inherit; text-decoration: none; }
.store-card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.store-catalog .store-card-link:focus-visible { outline: none; }
.store-card-summary { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
.store-card p { margin: 0; color: var(--home-muted); font-size: .95rem; line-height: 1.6; }
.store-card .store-badge { align-self: flex-start; }
.store-card-meta { color: var(--home-muted); font-size: .86rem; font-weight: 700; }
.store-card-foot { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--home-line); }
.store-card-price { font: 700 1.35rem/1.1 var(--font-title); color: var(--home-text); }
.store-card-price small { display: block; color: var(--home-muted); font: 700 .74rem/1.4 var(--font-body, inherit); letter-spacing: .04em; }
.store-card-foot .store-button { min-height: 42px; padding: 8px 18px; }
.store-card:hover .store-card-foot .store-button--primary { box-shadow: 0 8px 22px color-mix(in srgb, var(--home-accent) 26%, transparent); }
.store-catalog .store-button { --ui-surface: var(--home-surface); --ui-text: var(--home-text); --ui-line: var(--home-line); --ui-accent: var(--home-accent); }
.store-catalog .store-button--primary { background: var(--home-button-fill); color: var(--home-button-ink); }
.store-detail { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 32px; align-items: start; padding: clamp(24px, 4vw, 40px); border-radius: 24px;
  background: var(--home-surface); border: 1px solid var(--home-line); box-shadow: var(--home-card-shadow); }
.store-detail h2 { margin: 0 0 12px; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; line-height: 1.15; }
.store-detail .store-panel-title { margin: 28px 0 12px; }
.store-detail-description { margin: 18px 0 0; color: var(--home-text); line-height: 1.7; white-space: pre-line; }
.store-product-gallery { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin: 24px 0; align-items: start; }
.store-product-gallery figure { margin: 0; min-width: 0; }
.store-product-gallery img { display: block; width: 100%; height: auto; border: 1px solid var(--home-line); border-radius: 10px; }
.store-product-gallery figcaption { margin-top: 8px; color: var(--home-muted); font-size: .85rem; }
.store-detail-aside { display: grid; gap: 16px; padding: 22px; border-radius: 18px; background: color-mix(in srgb, var(--home-canvas) 70%, var(--home-surface)); border: 1px solid var(--home-line); }
.store-detail-aside .store-facts li, .store-detail .store-files li { color: var(--home-text); }
.store-catalog .store-files li { background: var(--home-surface); border-color: var(--home-line); }
.store-catalog .store-file-size, .store-catalog .store-fineprint { color: var(--home-muted); }
.store-catalog .store-fineprint a, .store-catalog .store-link { color: var(--home-blue); }


@media (max-width: 1080px) {
  .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .store-layout, .store-detail { grid-template-columns: minmax(0, 1fr); }
  .store-summary { position: static; grid-row: 1; }
  .store-summary :is(#summary-files, #summary-facts, #terms-version, .store-summary-help) { display: none; }
  .store-summary { gap: 12px; padding: 16px; }
  .store-summary-total { padding-top: 10px; }
}
@media (max-width: 680px) {
  .public-page main .container.store-shell, .public-page main .container.store-shell--narrow { width: calc(100% - 32px); }
  .store-head { align-items: flex-start; }
  .store-button--quiet span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .store-button--quiet { width: 40px; padding: 0; }
  .store-head:has(.store-button--quiet) { flex-wrap: nowrap; align-items: center; }
  .store-stepper { width: 100%; flex-wrap: wrap; justify-content: space-between; }
  .store-stepper li { padding-right: 8px; font-size: .78rem; }
  .store-grid, .store-choices, .store-guest-grid, .store-methods { grid-template-columns: minmax(0, 1fr); }
  .store-pix { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .store-pix-copy { width: 100%; }
  .store-actions > .store-button, .store-card-foot .store-button { flex: 1 1 100%; }
  /* One swipeable row of disciplines, bleeding into the page gutter, instead of several wrapped rows. */
  .store-catalog { padding: 36px 0 56px; }
  .store-catalog-head { margin-bottom: 20px; }
  .store-filter { flex-wrap: nowrap; margin-inline: calc(50% - 50vw); padding: 2px calc(50vw - 50%) 18px; overflow-x: auto; scroll-padding-inline: calc(50vw - 50%); scrollbar-width: none; overscroll-behavior-x: contain; }
  .store-filter::-webkit-scrollbar { display: none; }
  .store-filter-chip { flex: none; min-height: 40px; padding: 8px 16px; white-space: nowrap; }
  .store-card-cover { aspect-ratio: 16 / 10; padding: 16px; }
  .store-review > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .store-review dd { text-align: left; }
  .store-consent > .store-fineprint { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .store-main *, .store-main *::before, .store-catalog *, .store-catalog *::before { transition: none !important; }
  .store-card:hover, .store-card:hover .store-card-cover img { transform: none; }
}
.store-detail:empty { display: none; }
.store-files + .store-fineprint, .store-files + .store-link { margin-top: 2px; }
.store-actions > .store-status { flex: 1 1 320px; }
