/**
 * style.css  ─  全ページ共通スタイル（DLsite 型 EC レイアウト）
 *
 * テーマ:
 *   背景:   #ffffff
 *   文字:   #333333
 *   accent: #2b7cd3（DLsite 系ブルー）
 *   フォント: ゴシック体（UI）+ 明朝（ランディング用）
 *
 * 読み込み順:
 *   Google Fonts（head内）
 *   <link rel="stylesheet" href="/common.css" />
 *   <link rel="stylesheet" href="/style.css" />
 *   <style>…</style>（ページ固有）
 */

/* ═══════════════════════════════════════════════════════
   0. Google Fonts インポート
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;600;700;800&family=DM+Mono:ital,wght@0,400;0,500;1,400&display=swap');

/* ═══════════════════════════════════════════════════════
   1. CSS 変数
   ═══════════════════════════════════════════════════════ */

:root {
  /* ── 背景・サーフェス ── */
  --bg:        #ffffff;
  --surface:   #ffffff;
  --surface-2: #f5f5f5;
  --surface-3: #ebebeb;

  /* ── テキスト ── */
  --text:    #333333;
  --muted:   #666666;
  --muted-2: #999999;

  /* ── タイポスケール（UI） ── */
  --text-xs:   12px;  /* 補助・バッジ（最小） */
  --text-sm:   13px;
  --text-base: 15px;  /* 本文 */
  --text-lg:   17px;  /* 価格・強調 */
  --text-xl:   20px;  /* 見出し */

  /* ── ボーダー ── */
  --border:   #dddddd;
  --border-2: #e8e8e8;

  /* ── アクセントカラー ── */
  --gold:        #b8860b;
  --gold-dim:    rgba(184,134,11,.10);
  --accent:      #2b7cd3;
  --accent-dim:  rgba(43,124,211,.08);
  --blue:        #2b7cd3;
  --blue-dim:    rgba(43,124,211,.08);

  /* ── セマンティックカラー ── */
  --green:     #2e7d32;
  --green-dim: rgba(46,125,50,.12);
  --red:       #c62828;
  --red-dim:   rgba(198,40,40,.10);

  /* ── フォント ── */
  --font-serif: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --font-mono:  'DM Mono', 'SFMono-Regular', Consolas, monospace;
  --font-sans:  -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Noto Sans JP', sans-serif;

  /* ── 角丸 ── */
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm:  8px;

  /* ── シャドウ ── */
  --shadow:    0 4px 20px rgba(14,14,14,.10);
  --shadow-sm: 0 2px 8px  rgba(14,14,14,.07);
  --shadow-gold: 0 0 16px rgba(184,134,11,.15);

  /* ── レイアウト ── */

  /* 後方互換エイリアス */
  --ink:    var(--text);
  --paper:  var(--bg);
  --warm:   var(--surface-2);
  --serif:  var(--font-serif);
  --mono:   var(--font-mono);
  --sans:   var(--font-sans);
  --line:   var(--border);
  --primary: var(--accent);
}

/* ═══════════════════════════════════════════════════════
   2. リセット & ベース
   ═══════════════════════════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ═══════════════════════════════════════════════════════
   3. グローバルナビゲーション
   ═══════════════════════════════════════════════════════ */

nav:not(.site-bottom-nav):not(.site-top-nav) {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: sticky;
  top: 0;
  z-index: 20;
}

nav:not(.site-bottom-nav):not(.site-top-nav)::-webkit-scrollbar { display: none; }

nav:not(.site-bottom-nav):not(.site-top-nav) a {
  color: var(--muted);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 700;
  font-family: var(--font-sans);
  letter-spacing: .06em;
  flex-shrink: 0;
  padding: 14px 12px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}

nav:not(.site-bottom-nav):not(.site-top-nav) a:hover  { color: var(--text); }

nav:not(.site-bottom-nav):not(.site-top-nav) a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* admin-bar — DLsite 型管理画面ナビ */
.admin-bar {
  background: #fff;
  border-bottom: 1px solid var(--border-2);
  padding: 0 16px;
  display: flex;
  gap: 0;
  align-items: center;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: sticky;
  top: 0;
  z-index: 200;
  font-family: var(--font-sans);
}

.admin-bar::-webkit-scrollbar { display: none; }

.admin-bar .admin-label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  padding: 12px 12px 12px 0;
  margin-right: 4px;
  flex-shrink: 0;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}

.admin-bar .admin-label:hover {
  color: var(--text);
}

.admin-bar .admin-label.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.admin-bar a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  padding: 12px 14px;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}

.admin-bar a:hover {
  color: var(--text);
}

.admin-bar a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.admin-bar-back {
  margin-left: auto !important;
  color: var(--muted-2) !important;
  font-size: 12px !important;
}

/* 管理画面レイアウト */
.admin-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.admin-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 16px;
}

.admin-panel-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--text);
  font-family: var(--font-sans);
}

/* 出品フォーム（DLsite 型） */
.form-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 16px 80px;
}

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 16px;
}

.form-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--text);
  font-family: var(--font-sans);
}

.form-section-head {
  font-size: 15px;
  font-weight: 700;
  margin: 20px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
}

.form-section-head .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 4px;
  flex-shrink: 0;
}

.mode-icon {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.04em;
  padding: 6px 0;
}

.viewer-shell {
  --viewer-accent: #2b7cd3;
  --viewer-bg: #ffffff;
  --viewer-line: #e8e8e8;
}

/* ═══════════════════════════════════════════════════════
   4. サイトヘッダー
   ═══════════════════════════════════════════════════════ */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header h1,
.header-title {
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-serif);
  letter-spacing: -0.3px;
}

.back-link {
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  transition: color .2s;
  flex-shrink: 0;
}
.back-link:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════════
   5. コンテナ
   ═══════════════════════════════════════════════════════ */

.container {
  margin: 0 auto;
  padding: 20px 16px;
}

.container-narrow {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 16px;
}

/* ═══════════════════════════════════════════════════════
   6. ボタン
   ═══════════════════════════════════════════════════════ */

.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-danger,
.button.primary,
.button.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-sans);
  letter-spacing: .01em;
  cursor: pointer;
  border: none;
  transition: opacity .15s, background .15s, box-shadow .15s;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary:disabled,
.btn-secondary:disabled,
.btn-ghost:disabled,
.btn-danger:disabled,
.button:disabled { opacity: .4; cursor: not-allowed; }

/* プライマリ（テラコッタ） */
.btn-primary,
.button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px var(--accent-dim);
}
.btn-primary:hover:not(:disabled),
.button.primary:hover:not(:disabled) {
  opacity: .88;
  box-shadow: 0 4px 14px var(--accent-dim);
}

/* セカンダリ */
.btn-secondary,
.button.secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover:not(:disabled),
.button.secondary:hover:not(:disabled) {
  background: var(--surface-3);
  border-color: var(--accent);
}

/* ゴースト */
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px dashed var(--border);
}
.btn-ghost:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--muted);
}

/* デンジャー */
.btn-danger {
  background: var(--red-dim);
  color: var(--red);
  border: 1px solid rgba(198,40,40,.25);
}
.btn-danger:hover:not(:disabled) { background: rgba(198,40,40,.18); }

/* サイズ修飾子 */
.btn-block, .button.full { display: flex; width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 20px; font-size: 15px; border-radius: var(--radius-lg); }

/* ═══════════════════════════════════════════════════════
   7. パネル・カード
   ═══════════════════════════════════════════════════════ */

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.panel-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}

.panel-gold {
  background: var(--surface);
  border: 1px solid rgba(184,134,11,.3);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-gold);
}

/* ═══════════════════════════════════════════════════════
   8. ステート表示
   ═══════════════════════════════════════════════════════ */

.state-box,
.empty-box,
.loading-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.empty-box { border-style: dashed; }

.loading-box,
.loading-text { animation: pulse 1.6s ease-in-out infinite; }

.loading-text {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 40px 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .5; }
}

.error-box {
  text-align: center;
  padding: 32px 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.error-box a { color: var(--accent); }

/* ═══════════════════════════════════════════════════════
   9. メッセージボックス
   ═══════════════════════════════════════════════════════ */

.msg-box {
  display: none;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 14px;
}
.msg-box.show   { display: block; }
.msg-box.error  { background: var(--red-dim);   color: var(--red);   border: 1px solid rgba(198,40,40,.25); }
.msg-box.success{ background: var(--green-dim); color: var(--green); border: 1px solid rgba(46,125,50,.25); }
.msg-box.info   { background: var(--blue-dim);  color: var(--blue);  border: 1px solid rgba(37,99,235,.2); }

/* ═══════════════════════════════════════════════════════
   10. フォーム
   ═══════════════════════════════════════════════════════ */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
textarea,
select {
  width: 100%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 14px;
  font-family: var(--font-serif);
  outline: none;
  transition: border-color .15s;
}

input:focus,
textarea:focus,
select:focus { border-color: var(--accent); }

input::placeholder,
textarea::placeholder { color: var(--muted-2); }

label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 6px;
}

.field { margin-bottom: 16px; }
.field-hint { font-size: var(--text-xs); color: var(--muted-2); margin-top: 4px; }

.required-badge {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: .05em;
  vertical-align: middle;
}

/* ═══════════════════════════════════════════════════════
   11. バッジ・タグ
   ═══════════════════════════════════════════════════════ */

.badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-sans);
  letter-spacing: .06em;
  padding: 2px 7px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface-2);
}

.badge-gold   { background: var(--gold-dim);   color: var(--gold);   border-color: rgba(184,134,11,.3); }
.badge-accent { background: var(--accent-dim); color: var(--accent); border-color: rgba(43,124,211,.25); }
.badge-green  { background: var(--green-dim);  color: var(--green);  border-color: rgba(46,125,50,.25); }
.badge-red    { background: var(--red-dim);    color: var(--red);    border-color: rgba(198,40,40,.2); }
.badge-blue   { background: var(--blue-dim);   color: var(--blue);   border-color: rgba(37,99,235,.2); }

/* ═══════════════════════════════════════════════════════
   12. Toast
   ═══════════════════════════════════════════════════════ */

#toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: var(--bg);
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 13px;
  font-family: var(--font-mono);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 9999;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
#toast.success { background: var(--green); color: #fff; }
#toast.error   { background: var(--red);   color: #fff; }
#toast.info    { background: var(--accent); color: #fff; }

/* ═══════════════════════════════════════════════════════
   13. モーダル・オーバーレイ
   ═══════════════════════════════════════════════════════ */

/* 確認・購入系: 中央表示（DLsite 型） */
.detail-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14, 14, 14, 0.45);
  backdrop-filter: blur(4px);
  z-index: 400;
  padding: 20px;
  align-items: center;
  justify-content: center;
}

.detail-modal-overlay.open {
  display: flex;
}

.detail-modal-box {
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow);
}

.detail-modal-title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 800;
  margin-bottom: 14px;
}

.detail-modal-subtitle {
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.7;
  margin: -8px 0 14px;
}

.detail-modal-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  margin-bottom: 8px;
  font-size: var(--text-sm);
}

.detail-modal-row strong {
  color: var(--accent);
}

.detail-modal-note {
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.85;
  margin: 12px 0 16px;
}

.detail-modal-cert-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
  font-size: var(--text-sm);
  cursor: pointer;
}

.detail-modal-cert-option input {
  margin-top: 3px;
  flex-shrink: 0;
}

.detail-modal-cert-option span {
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.7;
}

.detail-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.detail-modal-actions .btn {
  flex: 1;
}

/* 絞り込み系: ボトムシート */
.filter-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 350;
  background: rgba(14, 14, 14, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.filter-sheet-overlay.open {
  opacity: 1;
  visibility: visible;
}

.filter-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 85vh;
  background: var(--surface);
  border-top: 1px solid var(--border-2);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.25s ease;
  box-shadow: 0 -4px 24px rgba(14, 14, 14, 0.12);
}

.filter-sheet-overlay.open .filter-sheet {
  transform: translateY(0);
}

.filter-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-2);
  flex-shrink: 0;
}

.filter-sheet-header h2 {
  font-size: 15px;
  font-weight: 800;
  margin: 0;
}

.filter-sheet-close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
}

.filter-sheet-body {
  overflow-y: auto;
  padding: 12px 16px 8px;
  flex: 1;
}

.filter-sheet-section { margin-bottom: 18px; }
.filter-sheet-section:last-child { margin-bottom: 0; }

.filter-sheet-label {
  font-size: 12px;
  font-weight: bold;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.filter-sheet-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-sheet-btn {
  padding: 8px 12px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-sheet-btn.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--text);
  font-weight: bold;
}

.filter-sheet-footer {
  display: flex;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border-2);
  flex-shrink: 0;
}

.filter-sheet-footer .btn { flex: 1; text-align: center; }

/* オーバーレイ表示中はボトムナビを隠す */
body.overlay-open {
  overflow: hidden;
}

body.overlay-open .site-bottom-nav {
  display: none !important;
}

/* 後方互換: 旧ボトムシート用 */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14,14,14,.55);
  z-index: 350;
  align-items: flex-end;
  justify-content: center;
}
.overlay.open { display: flex; }

.modal {
  background: var(--surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 24px 20px 40px;
  width: 100%;
  max-width: 560px;
  box-shadow: 0 -4px 24px rgba(14,14,14,.12);
  border-top: 1px solid var(--border);
}

.modal-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 16px;
  font-family: var(--font-serif);
}

/* ═══════════════════════════════════════════════════════
   14. ページタイトル・見出し
   ═══════════════════════════════════════════════════════ */

.page-title {
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-serif);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.section-title {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

h2.section-head {
  font-size: 15px;
  font-weight: 800;
  font-family: var(--font-serif);
  margin: 24px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   15. テーブル
   ═══════════════════════════════════════════════════════ */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-2);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--surface-2); }

/* ═══════════════════════════════════════════════════════
   16. ユーティリティ
   ═══════════════════════════════════════════════════════ */

.mt-2 { margin-top:  8px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom:  8px; }
.mb-4 { margin-bottom: 16px; }
.is-hidden { display: none !important; }
.text-muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.text-gold   { color: var(--gold); }
.font-mono   { font-family: var(--font-mono); }
.font-serif  { font-family: var(--font-serif); }

/* ═══════════════════════════════════════════════════════
   17. マーケット固有（batta.html 系）
   ═══════════════════════════════════════════════════════ */

/* filter-btn */
.filter-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.filter-btn.active,
.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.filter-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  margin-bottom: 12px;
}
.filter-row::-webkit-scrollbar { display: none; }

/* note / info */
.info-note {
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 14px;
  border: 1px solid var(--border-2);
}

/* draw-card / status-card */
.draw-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.status-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
}

.status-label {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--muted);
  letter-spacing: .06em;
  margin-bottom: 4px;
}

.status-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

/* works-card */
.works-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

/* note-card */
.note-card {
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* actions */
.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* page-text */
.page-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 6px;
}

/* count-badge */
.count-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-family: var(--font-mono);
  border-radius: 10px;
  padding: 1px 6px;
  margin-left: 4px;
}

/* ═══════════════════════════════════════════════════════
   「買う」サブナビ（マーケット / 福袋）
   ═══════════════════════════════════════════════════════ */

.buy-sub-nav {
  display: flex;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-2);
}

.buy-sub-nav a {
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  font-size: var(--text-sm);
  font-weight: 700;
  font-family: var(--font-sans);
  color: var(--muted);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  text-decoration: none;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}

.buy-sub-nav a:hover {
  color: var(--text);
}

.buy-sub-nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.page-zone-badge {
  display: none;
}

.page-zone-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 12px;
  border-bottom: 1px solid var(--border-2);
}

.page-zone-hero h1 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 4px;
  font-family: var(--font-sans);
  color: var(--text);
}

.page-zone-hero p {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  font-family: var(--font-sans);
}

@media (max-width: 600px) {
  .page-zone-hero h1 {
    font-size: 20px;
  }
}

.pillar-quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.pillar-quick-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}

.pillar-quick-link:hover,
.pillar-quick-link.active {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.pillar-quick-link strong {
  font-size: var(--text-sm);
}

.pillar-quick-link span {
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.5;
  font-family: var(--font-sans);
}

@media (max-width: 540px) {
  .pillar-quick-links {
    grid-template-columns: 1fr;
  }
}

.my-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ═══════════════════════════════════════════════════════
   サイト共通ナビ（nav.js）— DLsite 型ヘッダー
   ═══════════════════════════════════════════════════════ */

.site-header-shell {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 1px solid var(--border-2);
}

.site-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
}

.site-header-sub {
  border-top: 1px solid var(--border-2);
  background: #fafafa;
}

.site-header-sub .site-nav-links {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-top-nav {
  position: static;
  display: contents;
}

.site-nav-logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.site-nav-search {
  flex: 1;
  min-width: 0;
  max-width: 480px;
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.site-nav-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 8px 12px;
  font-size: 14px;
  font-family: var(--font-sans);
  background: transparent;
}

.site-nav-search button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 36px;
  border: none;
  border-left: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
}

.site-nav-search button:hover {
  color: var(--accent);
  background: var(--accent-dim);
}

.site-nav-links {
  display: flex;
  gap: 0;
  flex: 1;
  overflow-x: auto;
  min-width: 0;
  scrollbar-width: none;
}

.site-nav-links::-webkit-scrollbar { display: none; }

.site-nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-sans);
  padding: 10px 14px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -1px;
}

.site-nav-links a:hover,
.site-nav-links a.active {
  color: var(--accent);
  background: transparent;
  border-bottom-color: var(--accent);
}

.site-nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}

.site-nav-util {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav-util a {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  padding: 6px 8px;
  white-space: nowrap;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.site-nav-util a:hover {
  color: var(--accent);
  background: var(--accent-dim);
}

.site-nav-util a.site-nav-register {
  color: #fff;
  background: var(--accent);
  padding: 6px 12px;
}

.site-nav-util a.site-nav-register:hover {
  background: #1f6ab8;
  color: #fff;
}

.site-nav-util a.site-nav-admin {
  color: var(--accent);
  background: var(--accent-dim);
  padding: 6px 10px;
  border-radius: 6px;
}

.site-nav-util a.site-nav-admin:hover {
  color: #fff;
  background: var(--accent);
}

.site-nav-wallet {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-sans);
  color: var(--accent);
  background: transparent;
  padding: 6px 8px;
  border-radius: 4px;
  white-space: nowrap;
  text-decoration: none;
  border: none;
}

.site-nav-wallet:hover {
  background: var(--accent-dim);
}

.site-nav-btn {
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-sans);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ログアウトボタン: 赤系のゴースト表示 */
.site-nav-btn--logout {
  cursor: pointer;
  background: transparent;
  color: var(--danger, #c0392b);
  border-color: var(--danger, #c0392b);
}
.site-nav-btn--logout:hover {
  background: var(--danger, #c0392b);
  color: #fff;
  border-color: var(--danger, #c0392b);
}

.site-bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  height: calc(56px + env(safe-area-inset-bottom, 0));
  padding-bottom: env(safe-area-inset-bottom, 0);
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--border-2, #e0e0e0);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
}

.site-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: var(--muted, #5a5248);
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-sans);
  padding: 4px 2px;
  min-height: 44px;
}

.site-bottom-nav a .site-bottom-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  line-height: 1;
}

.site-bottom-nav a .site-bottom-icon svg {
  display: block;
}

.site-bottom-nav a.active {
  color: var(--accent);
}

body.has-bottom-nav {
  padding-bottom: calc(56px + env(safe-area-inset-bottom, 0));
}

@media (max-width: 720px) {
  .site-header-sub {
    display: none;
  }

  .site-nav-search {
    display: none;
  }

  .site-nav-util a:not(.site-nav-register):not(.site-nav-admin):not(#navLoginBtn):not(#navUserBtn) {
    display: none;
  }

  .site-bottom-nav {
    display: flex;
  }

  body.has-bottom-nav {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0));
  }
}

/* ═══════════════════════════════════════════════════════
   共通フッター
   ═══════════════════════════════════════════════════════ */

.site-footer {
  border-top: 1px solid var(--border-2, #e0e0e0);
  margin-top: 48px;
  padding: 24px 16px;
  text-align: center;
  font-size: 12px;
  color: var(--muted, #6b6258);
}

.site-footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.site-footer-links a {
  color: inherit;
  text-decoration: none;
}

.site-footer-links a:hover {
  color: var(--text);
}

.site-footer-copy {
  font-size: 12px;
  color: var(--muted-2, #9e9488);
}

/* ═══════════════════════════════════════════════════════
   共通プロダクトカード（market / batta 共通）
   ═══════════════════════════════════════════════════════ */

.product-card,
.card,
.store-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.product-card:hover,
.card:hover,
.store-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.product-card--listing {
  cursor: default;
}

.product-card-thumb,
.card-thumb,
.store-card-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
}

.product-card-thumb img,
.card-thumb img,
.store-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .product-card-thumb img,
.card:hover .card-thumb img,
.store-card:hover .store-card-thumb img {
  transform: scale(1.04);
}

.product-card-thumb-ph,
.card-thumb-placeholder,
.store-card-thumb-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted-2);
  background: var(--surface-2);
  letter-spacing: 0.04em;
}

.product-card-type-badge,
.card-type-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  backdrop-filter: blur(4px);
  max-width: calc(100% - 12px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exchange-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(37, 99, 235, 0.9);
  color: #fff;
}

.product-card-body,
.card-body,
.store-card-body {
  padding: 8px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.product-card-title,
.card-title,
.store-card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  font-family: var(--font-sans);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-seller,
.card-seller {
  font-size: var(--text-xs);
  color: var(--muted);
  font-family: var(--font-sans);
}

.product-card-meta {
  font-size: var(--text-xs);
  color: var(--muted-2);
  font-family: var(--font-sans);
}

.product-card-footer,
.card-footer {
  padding: 6px 10px;
  border-top: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.product-card-exchange-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--blue);
}

.card-price,
.product-card-price,
.store-card-price {
  font-size: var(--text-lg);
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.02em;
  font-family: var(--font-sans);
}

.card-price-unit {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-left: 1px;
  font-weight: 400;
}

.stock-badge {
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--accent-dim);
  color: var(--accent);
  white-space: nowrap;
  font-family: var(--font-sans);
}

.stock-badge.stock-ok {
  background: rgba(45, 122, 58, 0.1);
  color: var(--green);
}

.listing-grid--cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 600px) {
  .listing-grid--cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (min-width: 900px) {
  .listing-grid--cards {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
}

.listing-card-extended {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.listing-card-extended.mine .product-card {
  border-left: 3px solid var(--gold);
}

.listing-card-details {
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.6;
  padding: 0 2px;
  font-family: var(--font-sans);
}

.listing-grid--cards .empty,
.listing-grid--cards .loading {
  grid-column: 1 / -1;
}

/* ═══════════════════════════════════════════════════════
   バッタ交換ゾーン（batta.html）
   ═══════════════════════════════════════════════════════ */

.batta-hero {
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border-2);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), var(--surface));
}

.batta-hero-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--blue-dim);
  color: var(--blue);
  border: 1px solid rgba(37, 99, 235, 0.2);
  margin-bottom: 8px;
}

.batta-hero-title {
  font-size: var(--text-xl);
  font-weight: 800;
  margin: 0 0 6px;
  line-height: 1.3;
  font-family: var(--font-sans);
}

.batta-hero-sub {
  font-size: var(--text-sm);
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
  font-family: var(--font-sans);
}

.batta-hero-sub a {
  color: var(--accent);
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════
   DLsite 型 EC レイアウト（マーケット・トップ）
   ═══════════════════════════════════════════════════════ */

.ec-toolbar {
  max-width: 1100px;
  margin: 0 auto 16px;
  padding: 16px 16px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.ec-search-wrap {
  flex: 1;
  min-width: 200px;
  max-width: 360px;
  position: relative;
}

.ec-search-wrap input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  outline: none;
  font-family: var(--font-sans);
  background: #fff;
}

.ec-search-wrap input:focus {
  border-color: var(--accent);
}

.ec-search-wrap::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border: 2px solid var(--muted-2);
  border-radius: 50%;
  pointer-events: none;
}

.ec-search-wrap::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 58%;
  width: 6px;
  height: 2px;
  background: var(--muted-2);
  transform: rotate(45deg);
  pointer-events: none;
}

.ec-toolbar-select {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  background: #fff;
  color: var(--text);
  font-family: var(--font-sans);
}

.ec-genre-tabs {
  display: flex;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border-2);
  scrollbar-width: none;
}

.ec-genre-tabs::-webkit-scrollbar { display: none; }

.ec-genre-tabs a {
  flex-shrink: 0;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}

.ec-genre-tabs a:hover,
.ec-genre-tabs a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.ec-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
}

.ec-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--text);
}

.ec-section-head h2 {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-sans);
}

.ec-section-head a {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.ec-section-head a:hover {
  text-decoration: underline;
}

.ec-rank-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 600px)  { .ec-rank-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .ec-rank-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .ec-rank-grid { grid-template-columns: repeat(5, 1fr); } }

.ec-card-rank {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  min-width: 28px;
  padding: 4px 8px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  line-height: 1;
}

.ec-card-rank.rank-1 { background: #d4a017; }
.ec-card-rank.rank-2 { background: #8a8a8a; }
.ec-card-rank.rank-3 { background: #a0714f; }

.ec-sales-badge {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}

.ec-badge-sale {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 2px;
  background: #e53935;
  color: #fff;
  margin-left: 4px;
}

.ec-badge-exclusive {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 2px;
  background: #5c6bc0;
  color: #fff;
  margin-left: 4px;
}

/* 店舗トップ（index） */
.store-hero {
  padding: 88px 16px 24px;
  max-width: 1100px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border-2);
}

.store-hero h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: var(--font-sans);
}

.store-hero p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
  max-width: 40em;
  font-family: var(--font-sans);
}

.store-zone-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 768px) {
  .store-zone-row { grid-template-columns: 1fr; }
}

.store-zone-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.store-zone-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.store-zone-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.store-zone-title {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-sans);
}

.store-zone-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.store-zone-cta {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.store-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 16px;
  border-bottom: 1px solid var(--border-2);
}

.store-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--text);
}

.store-section-head h2 {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-sans);
}

.store-section-head a {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 600px)  { .store-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .store-grid { grid-template-columns: repeat(4, 1fr); } }

.store-card-sales {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.genre-chips {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-2);
}

.genre-chip {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}

.genre-chip:hover,
.genre-chip.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.store-loading,
.store-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 16px;
  color: var(--muted);
  font-size: 14px;
}
