/* 시안 공용 배치 (A~E 같은 본문) — 색은 각 시안의 :root 토큰. 2026-10-09 E 시안에서 옮김 */
body { background: var(--bg); }

/* 히어로: 매장 사진 + 사이즈 검색 */
.hero-photo { position: relative; aspect-ratio: 8 / 3; background: url(../img/n_front_m.jpg) center 50% / cover; }   /* B1: 높이 2/3, 전봇대 없는 사진 */
.hero-photo::after { content: ''; position: absolute; inset: 0; background: var(--hero-fade, linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.45) 100%)); }
.hero-photo .tags { position: absolute; left: var(--gutter); bottom: 14px; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 4px; background: var(--brand); color: var(--brand-ink); }
.tag.line { background: rgba(14,16,18,.7); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.hero-body { padding: 12px var(--gutter) 20px; }
.hero h1 { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -0.02em; margin: 4px 0 12px; }
.hero h1 span { color: var(--brand); }
.hero .sub { color: var(--ink-2); font-size: 15px; margin-bottom: 16px; }
.hero .sub b { color: var(--ink); font-variant-numeric: tabular-nums; }

.sizebox { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 6px; background: var(--bg-2); border: 2px solid var(--line); border-radius: 12px; padding: 6px; transition: border-color .15s; }
.sizebox:focus-within { border-color: var(--brand); }
.sizebox input { width: 100%; height: 56px; border: 0; text-align: center; font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; background: transparent; outline: none; border-radius: 8px; color: var(--ink); }
.sizebox input::placeholder { color: var(--ph, #B4BAC2); }
.sizebox input:focus { background: var(--bg-3); }
.sizebox i { font-style: normal; font-size: 22px; color: var(--ink-3); }
.hero .go { width: 100%; height: 56px; margin-top: 8px; border-radius: 12px; font-size: 17px; }
.hero .alt { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 10px; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.hero .alt a { display: inline-flex; align-items: center; gap: 6px; }
.hero .alt .ic { width: 18px; height: 18px; color: var(--brand); }

.shopline { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; }
.shopline img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; flex: none; }
.shopline .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.shopline b { font-size: 15px; }
.shopline .open { font-size: 13px; }
.shopline .meta { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shopline .route { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 56px; font-size: 11px; font-weight: 700; color: var(--ink-2); }
.shopline .route .ic { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); }

@media (min-width: 900px) {
  .hero { display: block; }   /* B1: 사진 칸 2/3, 높이 축소 */
  .hero-photo { order: 2; aspect-ratio: 5 / 3; align-self: center; background-image: url(../img/n_front_pc.jpg); background-position: center; margin: 32px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 32px 0; border-radius: 16px; overflow: hidden; }   /* B1: PC 사진 = 가로 카드, 높이 축소 */
  .hero-photo .tags { left: auto; right: 28px; bottom: 28px; }
  .hero-body { max-width: var(--wrap); margin: 0 auto; padding: 28px var(--gutter) 32px; } /* B12: 사진은 배너로, 본문 전체 폭 */
  .hero-body-old { padding: 32px 40px 36px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); display: flex; flex-direction: column; justify-content: center; }
  .hero h1 { font-size: 30px; margin-bottom: 18px; }
  .hero .sub { font-size: 17px; margin-bottom: 26px; }
  .sizebox input { height: 64px; font-size: 30px; }
}

/* 재고 */
.stock { padding-block: 20px 32px; }
.stock .head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.stock h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.stock h2 small { font-size: 14px; color: var(--ink-3); font-weight: 600; margin-left: 6px; }
.filters { position: sticky; top: 0; z-index: 30; background: var(--bg); padding-block: 10px; margin-bottom: 4px; }
.filters .chips button { background: var(--bg-2); border-color: var(--line); color: var(--ink-2); }
.filters .chips button.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.count { font-size: 13.5px; color: var(--ink-3); margin: 2px 0 14px; display: flex; justify-content: space-between; gap: 10px; }
.count b { color: var(--ink); font-variant-numeric: tabular-nums; }
.tcard:hover { border-color: var(--brand); }
.tcard-img img { filter: saturate(.92) contrast(1.04); }
.badge-new { background: var(--new); color: #1A1A1A; }
.empty { display: none; padding: 32px 16px; text-align: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; color: var(--ink-2); }
.more { display: flex; justify-content: center; margin-top: 20px; }
.more .btn { min-width: 220px; background: var(--bg); border-color: var(--line); color: var(--ink); }
@media (min-width: 900px) { .stock h2 { font-size: 28px; } }

/* 정보 박스 */
.info { padding-block: 20px 36px; }
.info-grid { display: grid; gap: 12px; }
.box { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.box h2 { font-size: 18px; font-weight: 600; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.box h2 .ic { color: var(--brand); }
.box .lead { color: var(--ink-2); font-size: 14.5px; margin: -6px 0 14px; }
.car-row select { background: var(--bg); border-color: var(--line); }
.carsize { background: var(--bg); border-color: var(--line); }
.carsize.has span { color: var(--brand); }
.box.new-tire { background: linear-gradient(135deg, #2350A8 0%, #1A3C82 100%); color: #fff; border: 0; }
.box.new-tire h2 { color: #fff; }
.box.new-tire .lead { color: rgba(255,255,255,.82); }
.brands { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.brands span { font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 6px; background: rgba(255,255,255,.16); }
.new-tire .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.new-tire .btn { background: #fff; color: var(--brand); }
.new-tire .btn.w { background: rgba(255,255,255,.16); color: #fff; }
.promise { display: grid; gap: 0; }
.promise li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.promise li:last-child { border: 0; padding-bottom: 0; }
.promise b { display: block; font-size: 16px; }
.promise span { font-size: 13.5px; color: var(--ink-3); }
.promise .ic { color: var(--brand); width: 26px; height: 26px; margin-top: 2px; }
.box .services { gap: 8px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gallery figure { margin: 0; position: relative; border-radius: 8px; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figure:first-child { grid-column: span 2; }
.gallery figure:first-child img { aspect-ratio: 16 / 9; }
.gallery figcaption { position: absolute; left: 8px; bottom: 8px; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 4px; background: rgba(0,0,0,.65); color: #fff; }
.visit .addr { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.visit .tel-big { display: block; font-size: 28px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; margin: 8px 0 14px; }
.map-ph { background:
  repeating-linear-gradient(0deg, transparent 0 38px, var(--grid-line, rgba(0,0,0,.05)) 38px 40px),
  repeating-linear-gradient(90deg, transparent 0 38px, var(--grid-line, rgba(0,0,0,.05)) 38px 40px), var(--bg); aspect-ratio: 16 / 9; margin-bottom: 12px; gap: 10px; }
.map-ph .btn { min-height: 42px; font-size: 14px; }
.week li.today { color: var(--brand); }
@media (min-width: 900px) {
  .info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .box { padding: 28px; }
  .span2 { grid-column: span 2; }
  .gallery { grid-template-columns: 2fr 1fr 1fr; }
  .gallery figure:first-child { grid-column: auto; grid-row: span 2; }
  .gallery figure:first-child img { aspect-ratio: auto; height: 100%; }
}

footer.foot { border-top: 1px solid var(--line); padding-block: 28px 36px; }
footer .wrap { display: grid; gap: 12px; }
.dock a { background: var(--bg); border-color: var(--line); }
.dock a.call { color: var(--brand-ink); }
