/* ================================================
   brick-signal - サイト共通CSS
   新デザイン仕様準拠
   ================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f0eeea;
  --surface: #ffffff;
  --border: #d6d2cb;
  --border-dk: #a09b92;
  --text: #1a1917;
  --muted: #6b6860;
  --faint: #a8a49d;
  --tag-bg: #e6e2db;
  --green: #1f6b47;
  --green-bg: #edf7f2;
  --red: #b83232;
  --red-bg: #fdf0f0;
  --blue: #1a4f7a;
  --blue-bg: #eef4fb;
  --yellow: #96710a;
  --yellow-bg: #fffbe6;
  --amazon: #ff9900;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.07);
  --shadow: 0 2px 6px rgba(0,0,0,0.09);
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; }

/* ══════════════════════════════════════════════
   SITE HEADER
   ══════════════════════════════════════════════ */
.site-header {
  background: var(--text);
  padding: 0 28px;
  display: flex;
  align-items: center;
  height: 48px;
  gap: 0;
}

.logo {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  font-weight: bold;
  color: white;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 32px;
  white-space: nowrap;
}

.logo-mark {
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-mark span {
  width: 8px;
  height: 8px;
  background: var(--text);
  border-radius: 1px;
  display: block;
}

.site-nav {
  display: flex;
  height: 100%;
}

.site-nav a {
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #9a9690;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s;
  white-space: nowrap;
}

.site-nav a:hover { color: white; }
.site-nav a.active { color: white; border-bottom-color: white; }

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-wrap { display: flex; align-items: center; }

.search-input {
  background: #2a2825;
  border: 1px solid #444;
  border-right: none;
  color: #ccc;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 11px;
  width: 200px;
  border-radius: 2px 0 0 2px;
  outline: none;
}

.search-input::placeholder { color: #666; }

.search-btn {
  background: #3a3632;
  border: 1px solid #555;
  color: #bbb;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  border-radius: 0 2px 2px 0;
  white-space: nowrap;
}

.search-btn:hover { background: #4a4642; }

/* ══════════════════════════════════════════════
   HERO (TOP)
   ══════════════════════════════════════════════ */
.hero {
  background: var(--text);
  padding: 52px 40px 44px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 320px;
  height: 320px;
  border: 1px solid #333;
  border-radius: 50%;
  pointer-events: none;
}

.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: #555;
}

.hero-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: bold;
  color: white;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 10px;
}

.hero-sub {
  font-size: 13px;
  color: #888;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
  max-width: 440px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: white;
  color: var(--text);
  border: none;
  padding: 11px 24px;
  font-family: inherit;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}

.btn-hero-primary:hover { background: #f0f0f0; }

.btn-hero-ghost {
  background: transparent;
  color: #888;
  border: 1px solid #444;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-hero-ghost:hover { border-color: #666; color: #aaa; }

/* Hero Stats Row */
.hero-stat-row {
  display: flex;
  gap: 28px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #2a2825;
  flex-wrap: wrap;
}

.hero-stat { text-align: left; }

.hero-stat-num {
  font-family: 'DM Mono', monospace;
  font-size: 24px;
  font-weight: bold;
  color: white;
  letter-spacing: -0.02em;
}

.hero-stat-num.green { color: #6ee7b7; }
.hero-stat-num.red { color: #fca5a5; }
.hero-stat-num.blue { color: #93c5fd; }

.hero-stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #666;
  margin-top: 3px;
}

.hero-stat-sub {
  font-size: 10px;
  color: #444;
  margin-top: 1px;
}

.hero-stat-link {
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s;
}

.hero-stat-link:hover {
  opacity: 0.8;
}

.hero-divider {
  width: 1px;
  background: #2a2825;
  align-self: stretch;
}

/* ══════════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════════ */
.section {
  padding: 32px 28px;
}

.section + .section { padding-top: 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}

.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--faint);
}

.section-title {
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.01em;
  margin-bottom: 2px;
}

.section-link {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.section-link:hover { color: var(--text); }

.section-divider {
  height: 1px;
  background: var(--border);
  margin: 0 28px;
}

/* ══════════════════════════════════════════════
   CARD GRIDS
   ══════════════════════════════════════════════ */
.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.card-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.main-cols {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

/* ══════════════════════════════════════════════
   PRODUCT CARD (Ranking)
   ══════════════════════════════════════════════ */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s;
}

.product-card:hover { box-shadow: var(--shadow); }

.product-card-img {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 130px;
  position: relative;
  overflow: hidden;
}

.product-card-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-card-img a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 7px;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
}

.cb-drop { background: var(--red-bg); color: var(--red); border: 1px solid #f5b7bb; }
.cb-atl { background: var(--blue-bg); color: var(--blue); border: 1px solid #9ec5fe; }
.cb-back { background: var(--green-bg); color: var(--green); border: 1px solid #a7f3d0; }

.rank-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  background: var(--text);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: bold;
}

.rank-badge.gold { background: #c8972a; }
.rank-badge.silver { background: #8a8a8a; }
.rank-badge.bronze { background: #8c5a2a; }

.product-card-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-theme {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  margin-bottom: 4px;
}

.product-card-name {
  font-size: 12px;
  font-weight: bold;
  line-height: 1.3;
  margin-bottom: 8px;
  flex: 1;
}

.product-card-name a {
  color: inherit;
  text-decoration: none;
}

.product-card-name a:hover { color: var(--blue); }

.product-card-prices {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.pc-price {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: -0.02em;
}

.pc-avg {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  text-decoration: line-through;
}

.pc-diff {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: bold;
  color: var(--red);
}

.pc-diff.down { color: var(--green); }

.product-card-meta {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--faint);
  margin-bottom: 10px;
}

/* ══════════════════════════════════════════════
   AMAZON BUTTON
   ══════════════════════════════════════════════ */
.btn-amazon {
  display: block;
  width: 100%;
  background: var(--amazon);
  color: #111;
  border: none;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.btn-amazon:hover { background: #e68a00; }

.btn-amazon.disabled {
  background: #ccc;
  color: #888;
  cursor: not-allowed;
}

/* ══════════════════════════════════════════════
   CTA STRIP
   ══════════════════════════════════════════════ */
.cta-strip {
  background: var(--text);
  margin: 0 28px;
  border-radius: 3px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-strip-text { color: white; }

.cta-strip-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #666;
  margin-bottom: 6px;
}

.cta-strip-title {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: -0.01em;
}

.cta-strip-sub {
  font-size: 12px;
  color: #777;
  margin-top: 4px;
}

.btn-cta {
  background: white;
  color: var(--text);
  border: none;
  padding: 12px 28px;
  font-family: inherit;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  display: inline-block;
}

.btn-cta:hover { background: #f0f0f0; }

/* ══════════════════════════════════════════════
   THEME TILES
   ══════════════════════════════════════════════ */
.theme-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 16px 14px;
  cursor: pointer;
  transition: border-color 0.1s, box-shadow 0.1s;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}

.theme-tile:hover {
  border-color: var(--border-dk);
  box-shadow: var(--shadow-sm);
}

.theme-tile-name { font-size: 12px; font-weight: bold; }
.theme-tile-count { font-size: 10px; color: var(--muted); }
.theme-tile-buy { font-size: 10px; color: var(--green); }

.theme-tile-more {
  background: var(--tag-bg);
  border: 1px dashed var(--border-dk);
  border-radius: 3px;
  padding: 16px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.theme-tile-more:hover { background: var(--border); }

/* ══════════════════════════════════════════════
   RANKING TABLE (Sidebar)
   ══════════════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.rank-table th {
  text-align: left;
  padding: 8px 12px;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  font-weight: normal;
}

.rank-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.rank-table tr:last-child td { border-bottom: none; }
.rank-table tr:hover td { background: var(--bg); }

.rank-num-cell {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: bold;
  color: var(--faint);
  width: 32px;
  text-align: right;
}

.rank-num-cell.g { color: #c8972a; }
.rank-num-cell.s { color: #8a8a8a; }
.rank-num-cell.b { color: #8c5a2a; }

.pname { font-size: 12px; font-weight: bold; }
.pname a { color: inherit; text-decoration: none; }
.pname a:hover { color: var(--blue); }
.pmeta { font-size: 10px; color: var(--faint); margin-top: 1px; }

/* ══════════════════════════════════════════════
   BADGES
   ══════════════════════════════════════════════ */
.badge {
  display: inline-block;
  padding: 2px 6px;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 2px;
  white-space: nowrap;
}

.b-buy { background: var(--green-bg); color: var(--green); border: 1px solid #a7f3d0; }
.b-wait { background: var(--yellow-bg); color: var(--yellow); border: 1px solid #fde47a; }
.b-skip { background: var(--red-bg); color: var(--red); border: 1px solid #fca5a5; }
.b-drop { background: var(--red-bg); color: var(--red); border: 1px solid #fca5a5; }
.b-atl { background: var(--blue-bg); color: var(--blue); border: 1px solid #bfdbfe; }
.b-back { background: var(--green-bg); color: var(--green); border: 1px solid #a7f3d0; }

/* ══════════════════════════════════════════════
   FAQ
   ══════════════════════════════════════════════ */
.faq-section {
  background: var(--surface);
  border-top: 2px solid var(--border);
  padding: 40px 28px;
}

.faq-title {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 20px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.faq-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.faq-item:nth-child(odd) {
  padding-right: 32px;
  border-right: 1px solid var(--border);
}

.faq-item:nth-child(even) { padding-left: 32px; }

.faq-q {
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 6px;
}

.faq-q::before {
  content: 'Q. ';
  color: var(--faint);
}

.faq-a {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.site-footer {
  background: var(--text);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-logo {
  font-family: 'DM Mono', monospace;
  color: white;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.06em;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  color: #666;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.footer-links a:hover { color: #999; }

.footer-copy {
  font-family: 'DM Mono', monospace;
  color: #444;
  font-size: 10px;
}

/* ══════════════════════════════════════════════
   PAGE HEADER (Moving)
   ══════════════════════════════════════════════ */
.page-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 28px;
}

.breadcrumb {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--faint);
  margin-bottom: 4px;
}

.breadcrumb a {
  color: var(--faint);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--muted); }

.page-title {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: -0.01em;
}

.page-title span {
  font-size: 11px;
  font-weight: normal;
  color: var(--muted);
  margin-left: 10px;
  letter-spacing: 0;
}

.page-desc {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* ══════════════════════════════════════════════
   FILTER BAR (Moving)
   ══════════════════════════════════════════════ */
.filter-bar {
  background: var(--surface);
  border-bottom: 2px solid var(--border);
  padding: 0 28px;
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px 10px 0;
  margin-right: 4px;
  border-right: 1px solid var(--border);
  cursor: pointer;
  flex-shrink: 0;
}

.filter-item:last-of-type { border-right: none; }

.filter-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.filter-val {
  font-size: 11px;
  font-weight: bold;
  color: var(--text);
}

.filter-val.active { color: var(--blue); }

.filter-chevron {
  font-size: 9px;
  color: var(--faint);
}

.filter-tag {
  background: var(--blue);
  color: white;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: bold;
}

.filter-reset {
  margin-left: auto;
  align-self: center;
  font-size: 10px;
  color: var(--faint);
  cursor: pointer;
  padding: 4px 0;
  text-decoration: underline;
  flex-shrink: 0;
}

.filter-reset:hover { color: var(--muted); }
.filter-reset {
  background: none;
  border: none;
  font-family: inherit;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px 10px 0;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}

.filter-group:last-of-type { border-right: none; }

.filter-select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 4px 8px;
  font-family: inherit;
  font-size: 11px;
  color: var(--text);
  cursor: pointer;
  min-width: 80px;
}

.filter-select:hover { border-color: var(--border-dk); }
.filter-select:focus { outline: none; border-color: var(--blue); }

/* ══════════════════════════════════════════════
   SORT BAR (Moving)
   ══════════════════════════════════════════════ */
.sort-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 8px 28px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sort-label,
.sort-bar-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  margin-right: 4px;
}

.sort-btn {
  padding: 4px 12px;
  font-size: 11px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.sort-btn:hover { border-color: var(--border-dk); }

.sort-btn.active {
  background: var(--text);
  color: white;
  border-color: var(--text);
}

.sort-btn.active::after { content: ' ↓'; font-size: 9px; }

.result-count {
  margin-left: auto;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}

.result-count strong { color: var(--text); }

/* ══════════════════════════════════════════════
   DATA TABLE (Moving)
   ══════════════════════════════════════════════ */
.table-wrap {
  padding: 0 28px 28px;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 12px;
}

.data-table thead tr {
  background: var(--bg);
  border-bottom: 2px solid var(--border);
}

.data-table th {
  padding: 9px 12px;
  text-align: left;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  white-space: nowrap;
  font-weight: normal;
  cursor: default;
  user-select: none;
}

.data-table th.sortable { cursor: pointer; color: var(--muted); }
.data-table th.sortable:hover { color: var(--text); }
.data-table th.sort-active { color: var(--text); }
.data-table th.sort-active::after { content: ' ↓'; }
.data-table th.r { text-align: right; }

.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table td.r { text-align: right; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td,
.data-table tbody tr.data-row:hover td { background: #f8f6f2; }
.data-table tbody tr.highlight-row td { background: var(--green-bg); }
.data-table tbody tr.dim-row { opacity: 0.55; }

.cell-img { width: 56px; }

.img-ph {
  width: 48px;
  height: 48px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.img-ph img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cell-name { min-width: 200px; }

.product-name {
  font-size: 12px;
  font-weight: bold;
  color: var(--text);
  text-decoration: none;
  line-height: 1.3;
}

.product-name:hover { text-decoration: underline; color: var(--blue); }

.product-meta {
  font-size: 10px;
  color: var(--faint);
  margin-top: 3px;
}

.cell-price { white-space: nowrap; min-width: 90px; }

.price-now {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: -0.02em;
}

.price-avg {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--faint);
}

.diff-cell { white-space: nowrap; min-width: 64px; text-align: right; }

.diff {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: -0.01em;
}

.diff.down { color: var(--green); }
.diff.flat { color: var(--faint); }
.diff.up { color: var(--red); }

.diff-sub {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  color: var(--faint);
  margin-top: 1px;
}

.cell-parts { white-space: nowrap; min-width: 70px; }
.cell-year { white-space: nowrap; color: var(--faint); min-width: 50px; }

/* ══════════════════════════════════════════════
   SEO SUMMARY TEXT
   ══════════════════════════════════════════════ */
.seo-summary {
  margin-top: 14px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
}

.seo-summary strong { color: var(--text); }

.seo-text {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 20px 24px;
}

.seo-text h2 {
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 10px;
}

.seo-text p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

.seo-text p:last-child { margin-bottom: 0; }

/* ══════════════════════════════════════════════
   TABLE ELEMENTS (Moving Page)
   ══════════════════════════════════════════════ */
.table-img-link {
  display: block;
  width: 48px;
  height: 48px;
}

.table-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
}

.table-product-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.table-product-badges {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.table-set-num {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--faint);
}

.table-product-name {
  font-size: 12px;
  font-weight: bold;
  color: var(--text);
  text-decoration: none;
  line-height: 1.3;
}

.table-product-name:hover { color: var(--blue); }

.table-product-theme {
  font-size: 10px;
  color: var(--faint);
}

.table-price {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: -0.02em;
}

.table-diff {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: bold;
  color: var(--faint);
}

.table-diff.down { color: var(--green); }
.table-diff.up { color: var(--red); }

.table-avg {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--faint);
}

.table-parts {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}

.table-year {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--faint);
}

.btn-amazon-sm {
  display: inline-block;
  background: var(--amazon);
  color: #111;
  border: none;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.04em;
  border-radius: 2px;
  text-decoration: none;
  white-space: nowrap;
}

.btn-amazon-sm:hover { background: #e68a00; }

/* Additional badge styles */
.b-30d { background: var(--yellow-bg); color: var(--yellow); border: 1px solid #fde47a; }
.b-stock { background: var(--green-bg); color: var(--green); border: 1px solid #a7f3d0; }

/* Pagination center layout */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 0;
}

/* ══════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════ */
.pagination-wrap {
  padding: 0 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.page-info {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}

.page-btns { display: flex; gap: 4px; }

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.page-btn:hover { border-color: var(--border-dk); }

.page-btn.active {
  background: var(--text);
  color: white;
  border-color: var(--text);
}

.page-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ══════════════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════════════ */
.empty-state {
  text-align: center;
  padding: 48px 28px;
  color: var(--muted);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .main-cols {
    grid-template-columns: 1fr;
  }

  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .site-header { padding: 0 16px; }
  .site-nav { display: none; }
  .search-input { width: 150px; }

  .hero { padding: 32px 16px; }
  .hero-stat-row { gap: 16px; }
  .hero-divider { display: none; }

  .section { padding: 24px 16px; }
  .section-divider { margin: 0 16px; }

  .card-grid-4,
  .card-grid-5 {
    grid-template-columns: 1fr 1fr;
  }

  .cta-strip {
    margin: 0 16px;
    padding: 20px;
    flex-direction: column;
    text-align: center;
  }

  .faq-grid { grid-template-columns: 1fr; }
  .faq-item:nth-child(odd) {
    padding-right: 0;
    border-right: none;
  }
  .faq-item:nth-child(even) { padding-left: 0; }

  .site-footer {
    padding: 16px;
    flex-direction: column;
    text-align: center;
  }

  .filter-bar { padding: 0 16px; }
  .sort-bar { padding: 8px 16px; }
  .table-wrap { padding: 0 16px 24px; }
  .pagination-wrap { padding: 0 16px 24px; }
  .page-header { padding: 12px 16px; }
}

@media (max-width: 480px) {
  .card-grid-4,
  .card-grid-5 {
    grid-template-columns: 1fr;
  }

  .hero-title { font-size: 24px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn-hero-primary, .btn-hero-ghost { width: 100%; text-align: center; }
}
