:root {
  --store-bg: #0d0f10;
  --store-panel: #151819;
  --store-panel-strong: #1b1e1f;
  --store-line: rgba(238, 241, 238, 0.14);
  --store-text: #f4f1eb;
  --store-muted: #a2a8a7;
  --store-faint: #6f7776;
  --store-accent: #ff6a2a;
  --store-accent-soft: rgba(255, 106, 42, 0.15);
  --store-radius: 12px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.store-page { position: relative; isolation: isolate; margin: 0; min-width: 320px; background: var(--store-bg); color: var(--store-text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body.store-page::before { content: ''; position: fixed; z-index: -1; inset: 0; pointer-events: none; background-image: linear-gradient(90deg, rgba(15, 14, 12, .94) 0%, rgba(15, 14, 12, .72) 42%, rgba(15, 14, 12, .18) 100%), linear-gradient(180deg, rgba(15, 14, 12, .2), rgba(15, 14, 12, .92)), url("../assets/theatre-hero.jpg"); background-position: center, center, center; background-size: auto, auto, cover; background-repeat: no-repeat; transform: translateZ(0); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.store-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--store-line); background: rgba(13, 15, 16, .9); backdrop-filter: blur(18px); }
.store-header-inner { width: min(1240px, calc(100% - 40px)); min-height: 72px; margin: auto; display: flex; align-items: center; gap: 34px; }
.store-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 760; letter-spacing: -.02em; white-space: nowrap; }
.store-brand strong { color: var(--store-accent); }
.store-brand-mark { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--store-accent); border-radius: 8px; color: var(--store-accent); font-size: 10px; font-weight: 900; }
.store-nav { display: flex; align-items: center; gap: 24px; margin-right: auto; color: var(--store-muted); font-size: 13px; }
.store-nav a { text-decoration: none; }
.store-nav a:hover, .store-nav a:focus-visible { color: var(--store-text); }
.store-header-actions { display: flex; gap: 8px; }
.store-button { min-height: 38px; padding: 0 15px; border: 1px solid var(--store-line); border-radius: 8px; background: transparent; color: var(--store-text); font-weight: 760; cursor: pointer; }
.store-button:hover, .store-button:focus-visible { border-color: rgba(255, 106, 42, .7); }
.store-button-accent { border-color: var(--store-accent); background: var(--store-accent); color: #1d0c04; }
.store-button-quiet { color: var(--store-muted); }
.store-button-wide { width: 100%; }

.store-main { position: relative; z-index: 1; width: min(1240px, calc(100% - 40px)); margin: auto; }
.store-intro { min-height: 470px; display: flex; align-items: end; justify-content: space-between; gap: 36px; padding: 105px 0 70px; border-bottom: 1px solid var(--store-line); background: radial-gradient(circle at 72% 38%, rgba(255, 106, 42, .13), transparent 34%); }
.store-eyebrow { margin: 0 0 12px; color: var(--store-accent); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.store-intro h1 { max-width: 980px; margin: 0; font-size: clamp(3.2rem, 7.5vw, 7.7rem); line-height: .9; letter-spacing: -.075em; }
.store-intro-title-line { white-space: nowrap; }
.store-intro h1 em { color: var(--store-muted); font-style: normal; }
.store-intro-copy { max-width: none; margin: 28px 0 0; color: var(--store-muted); font-size: 18px; line-height: 1.55; white-space: nowrap; }
.store-intro-note { display: flex; align-items: center; gap: 10px; max-width: 230px; margin-bottom: 8px; color: var(--store-muted); font-size: 13px; line-height: 1.4; }
.store-note-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--store-accent); box-shadow: 0 0 20px var(--store-accent); }

.store-catalog-section { padding: 72px 0 90px; }
.store-toolbar { display: block; padding-bottom: 28px; border-bottom: 1px solid var(--store-line); }
.store-toolbar h2, .store-how-it-works h2 { max-width: none; margin: 0; font-size: clamp(1.7rem, 3vw, 2.8rem); letter-spacing: -.05em; }
.store-toolbar h2 { white-space: nowrap; }
.store-catalog-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 16px; margin-top: 24px; }
.store-catalog-controls { min-width: 0; }
.store-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; width: 100%; padding: 7px; border: 1px solid var(--store-line); border-radius: 10px; background: var(--store-panel); }
.store-search:focus-within { border-color: var(--store-accent); box-shadow: 0 0 0 3px rgba(255, 106, 42, .12); }
.store-search-field { position: relative; display: block; min-width: 0; }
.store-search input { width: 100%; height: 42px; padding: 0 15px 0 42px; border: 0; border-radius: 6px; outline: none; background: transparent; color: var(--store-text); }
.store-search-icon { position: absolute; top: 50%; left: 16px; width: 14px; height: 14px; transform: translateY(-50%); border: 2px solid var(--store-muted); border-radius: 50%; }
.store-search-icon::after { content: ''; position: absolute; right: -6px; bottom: -4px; width: 6px; height: 2px; transform: rotate(45deg); background: var(--store-muted); }
.store-search-button { min-width: 104px; }
.store-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; padding: 16px; border: 1px solid var(--store-line); border-radius: 10px; background: rgba(255, 255, 255, .025); }
.store-filters label { display: grid; gap: 7px; min-width: 0; color: var(--store-faint); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.store-filters select { width: 100%; height: 40px; padding: 0 30px 0 11px; border: 1px solid var(--store-line); border-radius: 7px; background: var(--store-panel); color: var(--store-text); text-transform: none; letter-spacing: 0; }
.store-catalog-aside { align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 16px; border: 1px solid var(--store-line); border-radius: 10px; background: rgba(255, 255, 255, .035); }
.store-catalog-aside p { margin: 0; color: var(--store-muted); font-size: 14px; line-height: 1.35; }
.store-catalog-aside p + p { margin-top: 0; }
.store-catalog-aside strong { color: var(--store-accent); font-size: 12px; letter-spacing: .08em; }
.store-status { min-height: 20px; margin: 18px 0 24px; color: var(--store-faint); font-size: 13px; }
.store-shelf { margin-top: 42px; }
.store-shelf-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.store-shelf-heading h3 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.store-shelf-heading span { color: var(--store-faint); font-size: 12px; }
.store-shelf-heading > div:first-child { display: grid; gap: 4px; }
.store-carousel-controls { display: flex; gap: 4px; }
.store-carousel-button { position: relative; display: block; width: 34px; height: 34px; padding: 0; border: 1px solid var(--store-line); border-radius: 7px; background: var(--store-panel); color: var(--store-muted); cursor: pointer; }
.store-carousel-button > span { position: absolute; inset: 0; display: grid; place-items: center; transform: translateY(-1px); font-family: Arial, sans-serif; font-size: 22px; font-weight: 400; line-height: 1; }
.store-carousel-button:hover, .store-carousel-button:focus-visible { border-color: var(--store-accent); color: var(--store-text); }
.store-book-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.store-carousel-viewport { overflow: hidden; }
.store-carousel-track { display: flex; gap: 18px; overflow-x: auto; padding: 1px 1px 10px; scrollbar-width: none; overscroll-behavior-x: contain; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.store-carousel-track::-webkit-scrollbar { display: none; }
.store-carousel-track .store-book-card { flex: 0 0 calc((100% - 54px) / 4); scroll-snap-align: start; scroll-snap-stop: always; }
.store-book-cover-button { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.store-book-cover-button:focus, .store-book-cover-button:focus-visible { outline: none; }
.store-book-card { min-width: 0; }
.store-book-cover { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; border: 1px solid var(--store-line); border-radius: 9px; background: #111415; cursor: pointer; }
.store-book-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.58)); pointer-events: none; }
.store-book-cover img { width: 100%; max-width: 100%; height: 100%; display: block; object-fit: contain; object-position: center top; background: #111415; }
.store-book-cover:not(.store-detail-cover) img { object-fit: cover; object-position: center top; }
.store-book-cover:not(.store-detail-cover) img.store-book-cover-image--wide { object-fit: contain; }
.store-book-cover-fallback { position: absolute; inset: 0; background: radial-gradient(circle at 75% 20%, rgba(255,106,42,.45), transparent 40%), linear-gradient(145deg, #29302e, #111415 70%); }
.store-book-cover-overlay { position: absolute; z-index: 2; inset: auto 0 0; display: grid; gap: 5px; padding: 42px 15px 14px; background: linear-gradient(180deg, transparent, rgba(7,9,9,.94) 32%); color: var(--store-text); text-align: left; pointer-events: none; }
.store-book-cover-overlay strong { overflow: hidden; font-size: 17px; line-height: 1.08; text-overflow: ellipsis; white-space: nowrap; }
.store-book-cover-subtitle { overflow: hidden; color: rgba(244,241,235,.8); font-size: 11px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.store-book-cover-overlay small { overflow: hidden; color: rgba(244,241,235,.68); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.store-book-cover-facts { color: rgba(244,241,235,.62); font-size: 10px; }
.store-book-rating { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--store-accent); font-size: 11px; font-weight: 800; letter-spacing: .01em; }
.store-rating-stars { display: inline-flex; gap: 1px; line-height: 1; }
.store-rating-star { color: rgba(244,241,235,.34); font-size: 15px; }
.store-rating-star.is-filled { color: var(--store-accent); }
.store-rating-label { color: inherit; }
.store-book-rating-on-cover { margin-top: 2px; }

.store-how-it-works { display: grid; grid-template-columns: minmax(230px, .7fr) minmax(0, 1.3fr); gap: 55px; padding: 70px 0 100px; border-top: 1px solid var(--store-line); }
.store-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.store-steps article { padding-top: 5px; border-top: 1px solid var(--store-line); }
.store-steps span { display: block; margin: 15px 0 35px; color: var(--store-accent); font-size: 11px; font-weight: 900; }
.store-steps h3 { margin: 0 0 8px; font-size: 18px; }
.store-steps p { margin: 0; color: var(--store-muted); font-size: 13px; line-height: 1.5; }

.store-dialog { width: min(640px, calc(100% - 28px)); padding: 0; border: 0; background: transparent; color: var(--store-text); }
.store-dialog::backdrop { background: rgba(4, 5, 5, .78); backdrop-filter: blur(8px); }
.store-dialog-card { position: relative; margin: auto; padding: 30px; border: 1px solid var(--store-line); border-radius: 12px; background: var(--store-panel-strong); box-shadow: 0 24px 80px rgba(0,0,0,.4); }
.store-dialog-card h2 { margin: 0 0 8px; font-size: 30px; letter-spacing: -.05em; }
.store-dialog-copy { margin: 0 0 22px; color: var(--store-muted); line-height: 1.5; }
.store-dialog-close { position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; border: 0; background: transparent; color: var(--store-muted); font-size: 24px; line-height: 1; cursor: pointer; }
.store-dialog-close:hover, .store-dialog-close:focus, .store-dialog-close:focus-visible { outline: none; box-shadow: none; color: var(--store-text); }
.store-auth-providers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.store-auth-providers button { height: 40px; border: 1px solid var(--store-line); border-radius: 7px; background: var(--store-panel); color: var(--store-text); cursor: pointer; }
.store-divider { display: flex; align-items: center; gap: 10px; margin: 20px 0; color: var(--store-faint); font-size: 11px; }
.store-divider::before, .store-divider::after { content: ''; height: 1px; flex: 1; background: var(--store-line); }
.store-field { display: grid; gap: 6px; margin-bottom: 13px; color: var(--store-muted); font-size: 11px; font-weight: 700; }
.store-field input, .store-field textarea { width: 100%; padding: 10px 11px; border: 1px solid var(--store-line); border-radius: 7px; outline: none; background: var(--store-bg); color: var(--store-text); }
.store-field input:focus, .store-field textarea:focus { border-color: var(--store-accent); }
.store-form-status { min-height: 18px; margin: 12px 0 0; color: var(--store-muted); font-size: 12px; }
.store-field-wide { grid-column: 1 / -1; }
.store-detail-card { max-width: 760px; padding: 18px; }
.store-detail-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 22px; }
.store-detail-cover-column { display: grid; align-content: start; gap: 10px; }
.store-detail-cover-figure { position: relative; }
.store-detail-cover { width: 100%; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 8px; background: #232827; }
.store-detail-cover img { width: 100%; height: 100%; object-fit: contain; background: #232827; }
.store-detail-import-stack { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; display: grid; align-content: end; gap: 6px; min-height: 96px; padding: 36px 0 8px; background: linear-gradient(180deg, transparent 0%, rgba(7,9,9,.72) 42%, rgba(7,9,9,.96) 100%); pointer-events: none; }
.store-detail-import { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: calc(100% - 12px); min-height: 34px; margin-inline: 6px; padding: 0 14px; font-size: 12px; pointer-events: auto; }
.store-detail-import:focus, .store-detail-import:focus-visible { outline: none; border-color: var(--store-accent); box-shadow: none; }
.store-import-icon { display: inline-grid; place-items: center; width: 19px; height: 19px; border: 1px solid currentColor; border-radius: 50%; font-size: 15px; font-weight: 900; line-height: 1; }
.store-detail-rating { text-align: center; }
.store-detail-copy h2 { margin-top: 0; }
.store-detail-subtitle { margin: -2px 0 14px; color: var(--store-muted); font-size: 16px; }
.store-detail-description { color: var(--store-muted); line-height: 1.6; }
.store-detail-facts { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0; }
.store-detail-facts span { padding: 6px 8px; border: 1px solid var(--store-line); border-radius: 6px; color: var(--store-muted); font-size: 11px; }
.store-detail-metadata { display: grid; gap: 7px; margin: 0 0 14px; padding-top: 12px; border-top: 1px solid var(--store-line); color: var(--store-muted); font-size: 12px; line-height: 1.45; }
.store-detail-metadata span { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px; }
.store-detail-metadata strong { color: var(--store-text); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.store-detail-publication { margin: -4px 0 0; color: var(--store-muted); font-size: 12px; font-weight: 700; letter-spacing: .01em; }
.store-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.store-empty { padding: 35px 0; color: var(--store-muted); }
.store-consent-card { max-width: 680px; }
.store-consent-card h2 { max-width: 520px; }
.store-consent-notice { display: grid; gap: 12px; margin: 18px 0; padding: 15px 16px; border: 1px solid rgba(255, 106, 42, .34); border-left: 3px solid var(--store-accent); border-radius: 8px; background: rgba(255, 106, 42, .08); color: var(--store-muted); font-size: 13px; line-height: 1.55; }
.store-consent-notice p { margin: 0; }
.store-consent-notice strong { color: var(--store-text); }
.store-consent-legal { margin: 0 0 18px; color: var(--store-muted); font-size: 12px; line-height: 1.5; }
.store-consent-legal a { color: var(--store-accent); font-weight: 750; }
.store-consent-check { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: var(--store-text); font-size: 13px; line-height: 1.45; cursor: pointer; }
.store-consent-check input { flex: 0 0 auto; width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--store-accent); }
.store-consent-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.store-consent-actions .store-button { min-width: 142px; min-height: 42px; border-radius: 8px; }
.store-consent-actions .store-button-quiet { background: rgba(255,255,255,.035); }
.store-consent-actions .store-button-accent { box-shadow: 0 8px 22px rgba(255, 106, 42, .18); }

@media (max-width: 840px) {
  .store-header-inner { width: min(100% - 28px, 680px); min-height: 62px; gap: 14px; }
  .store-nav { display: none; }
  .store-header-actions { margin-left: auto; }
  .store-main { width: min(100% - 28px, 680px); }
  .store-intro { min-height: 520px; display: block; padding: 80px 0 55px; }
  .store-intro h1 { font-size: clamp(3.2rem, 15vw, 5.7rem); }
  .store-intro-title-line, .store-intro-copy { white-space: normal; }
  .store-intro-note { margin-top: 42px; }
  .store-toolbar, .store-how-it-works { display: block; }
  .store-catalog-grid { grid-template-columns: 1fr; }
  .store-toolbar h2 { white-space: normal; }
  .store-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .store-book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 13px; }
  .store-carousel-track .store-book-card { flex-basis: calc((100% - 13px) / 2); }
  .store-how-it-works { padding-top: 55px; }
  .store-steps { margin-top: 34px; }
  .store-detail-layout { grid-template-columns: 120px minmax(0, 1fr); gap: 18px; }
  .store-consent-actions { justify-content: stretch; }
  .store-consent-actions .store-button { flex: 1; min-width: 0; }
}

@media (max-width: 480px) {
  .store-brand { font-size: 13px; }
  .store-button { padding: 0 10px; font-size: 12px; }
  .store-intro-copy { font-size: 16px; }
  .store-filters { grid-template-columns: 1fr; }
  .store-carousel-track .store-book-card { flex-basis: 82%; }
  .store-steps { grid-template-columns: 1fr; gap: 28px; }
  .store-auth-providers { grid-template-columns: 1fr; }
  .store-field-wide { grid-column: auto; }
  .store-dialog-card { padding: 24px 18px; }
  .store-detail-layout { grid-template-columns: 1fr; }
  .store-detail-card { padding: 18px; }
  .store-detail-cover { width: 130px; }
}
