/* ============================================================
   러닝화 계급표 / 상세 / 대회 추천 위젯
   ============================================================ */

/* ---------- 계급표 상단 ---------- */
.shoes-intro{font-size:14.5px;color:var(--sub);line-height:1.75;max-width:760px;margin-bottom:18px;}
.shoes-toolbar{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:22px;
}
.shoes-toolbar .filter-row{margin:0;flex:1;}
.view-toggle{
  display:inline-flex;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;
  margin-left:auto;
}
.view-toggle button{
  border:none;background:#fff;padding:8px 12px;font-size:13px;font-weight:600;color:var(--sub);
  display:inline-flex;align-items:center;gap:5px;cursor:pointer;
}
.view-toggle button .icon{width:15px;height:15px;}
.view-toggle button.active{background:var(--text);color:#fff;}
.shoes-updated{
  font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:11px;letter-spacing:.08em;
  color:var(--sub);
}
.affiliate-note{
  font-size:12px;color:var(--sub);background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius-sm);padding:8px 12px;margin:0 0 22px;line-height:1.6;
}

/* ---------- 카테고리 색 톤 ---------- */
.tone-hot     {--cat-bg:#FFF1EE;--cat-fg:#C2410C;--cat-line:#F97316;}
.tone-warm    {--cat-bg:#FFF8E1;--cat-fg:#9A6B00;--cat-line:#F2C200;}
.tone-neutral {--cat-bg:#F7F6F3;--cat-fg:#3A3A38;--cat-line:#B8B7B4;}
.tone-cool    {--cat-bg:#EDF7F1;--cat-fg:#1F6B45;--cat-line:#2F9E67;}

/* ---------- 카드 뷰 ---------- */
.shoe-cat-section{margin:30px 0 8px;}
.shoe-cat-head{
  display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin-bottom:6px;
  padding-left:12px;border-left:4px solid var(--cat-line);
}
.shoe-cat-head h3{font-size:17px;}
.shoe-cat-head .sub{font-size:13px;color:var(--sub);}
.shoe-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px;margin-top:14px;
}
.shoe-card{
  display:flex;flex-direction:column;
  border:1px solid var(--border);border-radius:var(--radius-lg);background:#fff;
  overflow:hidden;transition:.15s;position:relative;
}
.shoe-card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px);}
.shoe-thumb{
  position:relative;height:104px;
  background:linear-gradient(135deg,var(--cat-bg),#fff 80%);
  display:flex;align-items:center;justify-content:center;
  border-bottom:1px solid var(--border);
}
.shoe-thumb svg{width:120px;height:56px;color:var(--cat-fg);opacity:.9;}
.shoe-thumb .brand-mark{
  position:absolute;left:12px;top:10px;
  font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:10.5px;font-weight:600;letter-spacing:.14em;
  color:var(--sub);
}
.shoe-badge{
  position:absolute;right:10px;top:10px;
  font-size:10.5px;font-weight:800;letter-spacing:.04em;
  padding:3px 8px;border-radius:var(--radius-pill);
  background:var(--text);color:#fff;
}
.shoe-badge.up{background:#2563EB;}
.shoe-badge.new{background:var(--accent);color:var(--accent-ink);}
.shoe-badge.note{background:var(--surface);color:var(--sub);border:1px solid var(--border);}
.shoe-body{padding:13px 15px 14px;display:flex;flex-direction:column;gap:7px;flex:1;}
.shoe-body h4{font-size:15.5px;line-height:1.3;}
.shoe-body .en{font-size:11.5px;color:var(--sub);font-family:'IBM Plex Mono',ui-monospace,monospace;letter-spacing:.02em;}
.shoe-body .tagline{font-size:13px;color:var(--gray-700);line-height:1.5;flex:1;}
.spec-pills{display:flex;gap:5px;flex-wrap:wrap;}
.spec-pill{
  font-size:11px;font-weight:600;color:var(--sub);
  background:var(--surface);border:1px solid var(--border);
  padding:3px 8px;border-radius:var(--radius-pill);
}
.spec-pill b{color:var(--text);font-weight:700;}
.shoe-foot{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  margin-top:4px;padding-top:10px;border-top:1px solid var(--border);
}
.shoe-foot .price{font-weight:800;font-size:15px;}
.shoe-foot .price small{font-size:11px;color:var(--sub);font-weight:500;margin-left:3px;}
.shoe-foot .more{font-size:12.5px;font-weight:700;color:var(--gold-text);}

/* ---------- 표(매트릭스) 뷰 ---------- */
.shoe-matrix-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--border);border-radius:var(--radius-lg);}
.shoe-matrix{border-collapse:separate;border-spacing:0;width:100%;min-width:860px;font-size:13px;}
.shoe-matrix th,.shoe-matrix td{border-bottom:1px solid var(--border);border-right:1px solid var(--border);padding:10px;vertical-align:top;}
.shoe-matrix tr>*:last-child{border-right:none;}
.shoe-matrix tbody tr:last-child>*{border-bottom:none;}
.shoe-matrix thead th{
  background:var(--text);color:#fff;text-align:center;
  font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:11.5px;letter-spacing:.12em;font-weight:600;
  padding:12px 8px;position:sticky;top:0;z-index:2;
}
.shoe-matrix thead th:first-child{background:var(--text);text-align:left;}
.shoe-matrix th.row-head{
  background:var(--cat-bg);color:var(--cat-fg);font-weight:800;font-size:13px;
  width:132px;min-width:132px;text-align:left;line-height:1.4;
  position:sticky;left:0;z-index:1;
}
.shoe-matrix th.row-head small{display:block;font-weight:500;font-size:11px;color:var(--sub);margin-top:2px;}
.shoe-matrix td{background:#fff;}
.shoe-matrix td.empty{background:var(--surface);}
.mx-item{
  display:flex;flex-direction:column;gap:2px;
  padding:7px 9px;border-radius:var(--radius-sm);
  border:1px solid var(--border);margin-bottom:6px;background:#fff;
  transition:.12s;
}
.mx-item:last-child{margin-bottom:0;}
.mx-item:hover{border-color:var(--text);box-shadow:var(--shadow-sm);}
.mx-item .n{font-weight:700;font-size:13px;display:flex;align-items:center;gap:6px;flex-wrap:wrap;}
.mx-item .p{font-size:11.5px;color:var(--sub);}
.mx-item .tag{
  font-size:9.5px;font-weight:800;padding:1px 5px;border-radius:3px;background:#2563EB;color:#fff;
}
.mx-item .tag.new{background:var(--accent);color:var(--accent-ink);}
.mx-item .tag.note{background:var(--surface);color:var(--sub);border:1px solid var(--border);}

/* ---------- 상세 페이지 ---------- */
.shoe-detail{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:32px;align-items:start;}
.shoe-hero{
  border:1px solid var(--border);border-radius:var(--radius-lg);
  background:linear-gradient(135deg,var(--cat-bg),#fff 75%);
  padding:26px 26px 22px;margin-bottom:22px;position:relative;overflow:hidden;
}
.shoe-hero svg.silhouette{position:absolute;right:-10px;bottom:-14px;width:260px;height:120px;color:var(--cat-fg);opacity:.16;}
.shoe-hero .cat-badge{
  display:inline-flex;align-items:center;gap:6px;
  font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:11px;font-weight:600;letter-spacing:.1em;
  color:var(--cat-fg);background:#fff;border:1px solid var(--cat-line);
  padding:4px 10px;border-radius:var(--radius-pill);margin-bottom:12px;
}
.shoe-hero .brand{font-size:13px;color:var(--sub);font-weight:600;margin-bottom:4px;}
.shoe-hero h1{font-size:28px;line-height:1.25;margin-bottom:4px;position:relative;}
.shoe-hero .en{font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:12.5px;color:var(--sub);margin-bottom:12px;}
.shoe-hero .tagline{font-size:15px;color:var(--gray-700);line-height:1.6;max-width:520px;position:relative;}
.who-row{display:flex;gap:6px;flex-wrap:wrap;margin:14px 0 0;position:relative;}
.who-chip{
  font-size:12px;font-weight:700;color:var(--text);
  background:#fff;border:1px solid var(--border);padding:5px 11px;border-radius:var(--radius-pill);
}
.spec-grid{
  display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-bottom:26px;
}
.spec-item{
  border:1px solid var(--border);border-radius:var(--radius);padding:12px 12px 10px;background:#fff;
}
.spec-item .label{font-size:11px;color:var(--sub);font-family:'IBM Plex Mono',ui-monospace,monospace;letter-spacing:.08em;margin-bottom:4px;}
.spec-item .value{font-size:16px;font-weight:800;}
.spec-item .value small{font-size:11px;font-weight:500;color:var(--sub);margin-left:2px;}
.shoe-section{margin-bottom:30px;}
.shoe-section h2{font-size:18px;margin-bottom:12px;display:flex;align-items:center;gap:8px;}
.shoe-section h2 .cat-dot{width:8px;height:8px;border-radius:50%;background:var(--accent);display:inline-block;}
.shoe-section p{font-size:15px;line-height:1.8;color:var(--text);}
.tip-list{display:flex;flex-direction:column;gap:8px;}
.tip-item{
  display:flex;gap:10px;align-items:flex-start;
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:12px 14px;
  font-size:14px;line-height:1.65;
}
.tip-item .num{
  flex-shrink:0;width:22px;height:22px;border-radius:50%;
  background:var(--accent);color:var(--accent-ink);font-weight:800;font-size:12px;
  display:inline-flex;align-items:center;justify-content:center;margin-top:1px;
}
.tip-item.brand{background:#fff;}
.tip-item.brand .num{background:var(--text);color:#fff;}

/* 구매 카드 (사이드) */
.buy-card{
  border:1px solid var(--border);border-radius:var(--radius-lg);padding:18px;background:#fff;
  box-shadow:var(--shadow-sm);position:sticky;top:calc(var(--header-h) + 16px);
}
.buy-card .price-row{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:4px;}
.buy-card .price-row .label{font-size:12px;color:var(--sub);}
.buy-card .price{font-size:24px;font-weight:800;}
.buy-card .price small{font-size:12px;color:var(--sub);font-weight:500;margin-left:4px;}
.buy-card .est{font-size:11.5px;color:var(--sub);margin-bottom:12px;line-height:1.5;}
.buy-links{display:flex;flex-direction:column;gap:8px;margin:12px 0 10px;}
.buy-btn{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  border:1.5px solid var(--border);border-radius:var(--radius);padding:12px 14px;
  font-weight:700;font-size:14px;color:var(--text);background:#fff;transition:.15s;
}
.buy-btn:hover{border-color:var(--text);background:var(--surface);}
.buy-btn.primary{background:var(--text);color:#fff;border-color:var(--text);}
.buy-btn.primary:hover{background:var(--accent);color:var(--accent-ink);border-color:var(--accent);}
.buy-btn .icon{width:16px;height:16px;stroke-width:2;}
.buy-btn small{font-size:11.5px;font-weight:500;opacity:.75;}
.buy-card .disclosure{font-size:11px;color:var(--sub);line-height:1.55;margin-top:8px;}
.buy-card .cta-guide{
  display:block;margin-top:12px;padding-top:12px;border-top:1px solid var(--border);
  font-size:13px;font-weight:700;color:var(--gold-text);
}

/* 같은 카테고리 다른 브랜드 */
.shoe-alt-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;}
.shoe-alt{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  border:1px solid var(--border);border-radius:var(--radius);padding:12px 14px;background:#fff;transition:.15s;
}
.shoe-alt:hover{border-color:var(--text);box-shadow:var(--shadow-sm);}
.shoe-alt .b{font-size:11px;color:var(--sub);font-family:'IBM Plex Mono',ui-monospace,monospace;letter-spacing:.08em;}
.shoe-alt .n{font-weight:700;font-size:14px;margin-top:2px;}
.shoe-alt .p{font-size:13px;font-weight:700;white-space:nowrap;}

/* 추천 대회 (상세 페이지 하단) */
.shoe-races{margin-top:8px;}
.shoe-races .race-grid{grid-template-columns:repeat(3,1fr);}

/* ---------- 대회 상세: 추천 러닝화 위젯 ---------- */
.rec-shoes{
  margin-top:26px;border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;background:#fff;
}
.rec-shoes-head{
  display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;
  padding:14px 16px;background:var(--surface);border-bottom:1px solid var(--border);
}
.rec-shoes-head h3{font-size:15px;display:flex;align-items:center;gap:8px;}
.rec-shoes-head h3 .icon{width:18px;height:18px;}
.rec-shoes-head a{font-size:12.5px;font-weight:700;color:var(--gold-text);white-space:nowrap;}
.rec-shoes-list{display:grid;grid-template-columns:repeat(3,1fr);}
.rec-shoe{
  display:flex;flex-direction:column;gap:4px;padding:14px 16px;border-right:1px solid var(--border);transition:.12s;
}
.rec-shoe:last-child{border-right:none;}
.rec-shoe:hover{background:var(--surface);}
.rec-shoe .c{font-size:10.5px;font-weight:700;color:var(--cat-fg);letter-spacing:.04em;}
.rec-shoe .n{font-weight:800;font-size:14.5px;line-height:1.3;}
.rec-shoe .b{font-size:11.5px;color:var(--sub);}
.rec-shoe .t{font-size:12.5px;color:var(--gray-700);line-height:1.5;flex:1;}
.rec-shoe .p{font-size:13px;font-weight:800;margin-top:4px;}
.rec-shoes-note{font-size:12px;color:var(--sub);padding:10px 16px;border-top:1px solid var(--border);line-height:1.55;}

/* ---------- 반응형 ---------- */
@media (max-width:900px){
  .shoe-detail{grid-template-columns:1fr;}
  .buy-card{position:static;}
  .spec-grid{grid-template-columns:repeat(3,1fr);}
  .shoe-races .race-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:600px){
  .shoe-grid{grid-template-columns:1fr 1fr;gap:10px;}
  .shoe-thumb{height:78px;}
  .shoe-thumb svg{width:92px;height:44px;}
  .shoe-body{padding:11px 12px 12px;gap:5px;}
  .shoe-body h4{font-size:14px;}
  .shoe-body .tagline{font-size:12px;}
  .shoe-foot .price{font-size:13.5px;}
  .spec-grid{grid-template-columns:repeat(2,1fr);}
  .shoe-hero{padding:20px 18px 18px;}
  .shoe-hero h1{font-size:23px;}
  .shoe-alt-grid{grid-template-columns:1fr;}
  .rec-shoes-list{grid-template-columns:1fr;}
  .rec-shoe{border-right:none;border-bottom:1px solid var(--border);}
  .rec-shoe:last-child{border-bottom:none;}
  .shoe-races .race-grid{grid-template-columns:1fr;}
  .view-toggle{margin-left:0;}
}
@media (max-width:400px){
  .shoe-grid{grid-template-columns:1fr;}
}
