/* 스토어 페이지 — 생성기 scripts/build-store.py · 정본 data/store.json. 교육 카탈로그(edu-catalog.css)와 같은 리듬, 클래스는 전부 st- 접두. */
.store-page { margin: 0; background: var(--sd-paper); color: var(--sd-ink); font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif; font-size: 15px; line-height: 1.7; word-break: keep-all; -webkit-font-smoothing: antialiased; }
.store-page .st-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.store-page .st-skip { position: absolute; left: 16px; top: -90px; z-index: 1200; padding: 10px 14px; border-radius: 6px; background: var(--sd-navy); color: var(--sd-night-text); }
.store-page .st-skip:focus { top: 10px; }
.store-page .st-eyebrow { display: block; margin-bottom: 12px; color: var(--sd-accent); font-size: 12px; font-weight: 750; letter-spacing: .06em; }

/* 머리 */
.store-page .st-hero { padding: 64px 0 56px; background: var(--sd-navy); color: var(--sd-night-text); }
.store-page .st-hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); align-items: center; gap: 52px; }
.store-page .st-hero .st-eyebrow { color: var(--sd-gold); }
.store-page .st-hero h1 { margin: 0; color: var(--sd-night-text); font-size: clamp(34px, 4vw, 52px); font-weight: 750; line-height: 1.25; letter-spacing: -.045em; text-wrap: balance; }
.store-page .st-hero p { margin: 22px 0 0; max-width: 56ch; color: var(--sd-night-muted); font-size: 17px; line-height: 1.75; }
.store-page .st-hero-aside { padding: 24px 26px; border: 1px solid #344358; border-radius: 12px; background: #172234; }
.store-page .st-hero-aside > span { display: block; color: var(--sd-gold); font-size: 12px; font-weight: 750; letter-spacing: .04em; }
.store-page .st-hero-aside strong { display: block; margin: 12px 0 10px; color: #F4F6FA; font-size: 20px; font-weight: 750; line-height: 1.4; letter-spacing: -.03em; }
.store-page .st-hero-aside p { margin: 0; color: var(--sd-night-muted); font-size: 14px; line-height: 1.75; }

/* 절 */
.store-page .st-section { padding: 64px 0; }
.store-page .st-section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 28px; }
.store-page .st-section-head h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); font-weight: 760; line-height: 1.3; letter-spacing: -.04em; }
.store-page .st-section-head p { margin: 0; max-width: 40ch; color: var(--sd-muted); font-size: 14px; line-height: 1.7; }

/* 거르기 */
.store-page .st-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.store-page .st-chip { min-height: 40px; padding: 0 16px; border: 1px solid var(--sd-line); border-radius: 999px; background: var(--sd-paper); color: var(--sd-muted); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.store-page .st-chip { transition: border-color var(--motion-fast, .15s), color var(--motion-fast, .15s); }
.store-page .st-chip:hover { border-color: var(--sd-accent); color: var(--sd-ink); }
.store-page .st-chip.is-on { border-color: var(--sd-accent); background: var(--sd-tint); color: var(--sd-accent); }
.store-page .st-chip:focus-visible { outline: 3px solid var(--sd-focus); outline-offset: 3px; }
.store-page .st-empty { margin: 24px 0 0; color: var(--sd-muted); font-size: 14px; }

/* 카드 */
.store-page .st-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.store-page .st-card { display: flex; flex-direction: column; min-width: 0; min-height: 300px; padding: 24px 26px 20px; border: 1px solid var(--sd-line); border-top: 2px solid var(--sd-line); border-radius: 10px; background: var(--sd-paper); transition: transform var(--motion-base, .2s) ease, border-color var(--motion-base, .2s) ease; }
.store-page .st-card:hover { border-top-color: var(--sd-accent); transform: translateY(-2px); }
.store-page .st-media { margin: -24px -26px 18px; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--sd-line); background: var(--sd-wash); }
.store-page .st-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.store-page .st-card-coming .st-media img { filter: saturate(.2); opacity: .85; }
.store-page .st-card-coming { background: var(--sd-wash); }
.store-page .st-card-top { display: flex; justify-content: space-between; gap: 15px; align-items: center; color: var(--sd-accent); font-size: 11px; font-weight: 750; }
.store-page .st-format { color: var(--sd-muted); font-size: 12px; font-weight: 650; white-space: nowrap; }
.store-page .st-card h3 { margin: 15px 0 6px; color: var(--sd-ink); font-size: 21px; line-height: 1.35; letter-spacing: -.035em; font-weight: 760; }
.store-page .st-card > p { margin: 0 0 16px; color: var(--sd-muted); font-size: 13px; line-height: 1.65; }
.store-page .st-take { margin-bottom: 16px; padding: 10px 12px; border-left: 3px solid var(--sd-accent); background: var(--sd-tint); }
.store-page .st-take span { display: block; color: var(--sd-muted); font-size: 11px; }
.store-page .st-take strong { display: block; margin-top: 2px; color: var(--sd-ink); font-size: 13px; font-weight: 650; line-height: 1.5; }
.store-page .st-card-bottom { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 15px; border-top: 1px solid var(--sd-line); }
.store-page .st-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; }
.store-page .st-price strong { color: var(--sd-ink); font-size: 20px; font-weight: 780; letter-spacing: -.02em; }
.store-page .st-price strong em { margin-right: 4px; color: var(--sd-muted); font-size: 12px; font-style: normal; font-weight: 650; }
.store-page .st-price s { color: var(--sd-muted); font-size: 13px; }
.store-page .st-price span { color: var(--sd-muted); font-size: 12px; font-weight: 650; }
.store-page .st-price .st-off { color: var(--sd-accent); }
.store-page .st-price-tba span { color: var(--sd-muted); font-size: 13px; }
.store-page .st-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 6px; }
.store-page .st-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--sd-line); border-radius: 6px; color: var(--sd-ink); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; }
.store-page .st-btn-primary { border-color: var(--sd-forest); background: var(--sd-forest); color: #fff; }
.store-page .st-btn-primary { transition: background var(--motion-fast, .15s); }
.store-page .st-btn-primary:hover { background: #254d3c; }
.store-page .st-btn-ghost { transition: border-color var(--motion-fast, .15s), color var(--motion-fast, .15s); }
.store-page .st-btn-ghost:hover { border-color: var(--sd-accent); color: var(--sd-accent); }
.store-page .st-btn:focus-visible { outline: 3px solid var(--sd-focus); outline-offset: 3px; }
.store-page .st-note { display: block; margin-top: 12px; color: var(--sd-muted); font-size: 11px; line-height: 1.6; }

/* 안내 */
.store-page .st-guide { background: var(--sd-wash); }
.store-page .st-guide-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.store-page .st-guide-grid > div { padding: 22px 24px; border-left: 3px solid var(--sd-accent); background: var(--sd-paper); }
.store-page .st-guide-grid h3 { margin: 0 0 10px; font-size: 16px; font-weight: 760; }
.store-page .st-guide-grid p { margin: 0; color: var(--sd-muted); font-size: 13px; line-height: 1.75; }

/* 마무리 */
.store-page .st-final { padding: 56px 0; background: var(--sd-navy); color: var(--sd-night-text); }
.store-page .st-final-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.store-page .st-final .st-eyebrow { color: var(--sd-gold); }
.store-page .st-final h2 { margin: 0; max-width: 24ch; font-size: clamp(22px, 2.6vw, 30px); font-weight: 750; line-height: 1.35; letter-spacing: -.035em; color: var(--sd-night-text); }
.store-page .st-final a { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 6px; background: var(--sd-gold); color: var(--sd-navy); font-weight: 750; text-decoration: none; }
.store-page .st-final a:hover { background: var(--sd-gold-hover); }

/* 바닥 · 사업자 정보 (전자상거래 표기) */
.store-page .st-footer { padding: 32px 0 40px; border-top: 1px solid var(--sd-line); color: var(--sd-muted); font-size: 12px; line-height: 1.8; }
.store-page .st-legal { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.store-page .st-legal a { color: var(--sd-muted); }
.store-page .st-copy { margin-top: 16px; }

/* 결제창 */
.store-page .st-pay { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(11, 18, 32, .55); }
.store-page .st-pay.open { display: flex; }
.store-page .st-pay-box { width: 100%; max-width: 480px; max-height: 92vh; overflow: auto; padding: 24px; border-radius: 12px; background: #fff; color: #0B1220; }
.store-page .st-pay-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 8px; }
.store-page .st-pay-name { font-size: 14px; font-weight: 650; color: #4B5563; }
.store-page .st-pay-amount { margin-top: 4px; font-size: 26px; font-weight: 800; letter-spacing: -.025em; }
.store-page .st-pay-close { width: 36px; height: 36px; border: 1px solid #E2E8F0; border-radius: 6px; background: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.store-page .st-pay-label { display: block; margin: 6px 0 4px; font-size: 13px; font-weight: 700; color: #0B1220; }
.store-page .st-pay-label small { margin-left: 6px; font-size: 11px; font-weight: 500; color: #6B7280; }
.store-page .st-pay-input { width: 100%; min-height: 42px; margin-bottom: 8px; padding: 0 12px; border: 1px solid #E2E8F0; border-radius: 8px; font: inherit; font-size: 15px; color: #0B1220; }
.store-page .st-pay-input[aria-invalid="true"] { border-color: #B91C1C; }
.store-page .st-pay-submit { width: 100%; min-height: 48px; margin-top: 8px; font-size: 15px; }
.store-page .st-pay-submit:disabled { opacity: .55; cursor: default; }

@media (max-width: 1024px) {
  .store-page .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-page .st-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .store-page .st-shell { width: calc(100% - 32px); }
  .store-page .st-hero { padding: 48px 0 40px; }
  .store-page .st-hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .store-page .st-section { padding: 48px 0; }
  .store-page .st-section-head { flex-direction: column; align-items: start; gap: 12px; }
  .store-page .st-grid, .store-page .st-guide-grid { grid-template-columns: 1fr; }
  .store-page .st-card { min-height: 0; padding: 20px; }
  .store-page .st-media { margin: -20px -20px 16px; }
  .store-page .st-card-top { align-items: start; }
  .store-page .st-format { white-space: normal; text-align: right; }
  .store-page .st-card-bottom { flex-direction: column; align-items: stretch; }
  .store-page .st-actions { justify-content: start; }
  .store-page .st-final-inner { flex-direction: column; align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  .store-page .st-card { transition: none; }
  .store-page .st-card:hover { transform: none; }
}
