/* 바큇살 자전거 — N7 카테고리 선반·카탈로그 */
:root {
  --bg: #F1EFEA; --paper: #FFFFFF; --ink: #1D1E1B; --sub: #5E5F59; --line: #D6D3CB;
  --plank: #2A2B27; --tag: #E2551B; --ok: #2F7A4B;
  --sans: 'Nanum Gothic', -apple-system, 'Malgun Gothic', sans-serif;
  --head: 'Sunflower', 'Nanum Gothic', sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--sans); word-break: keep-all; overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; margin: 0; letter-spacing: -0.3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.m { display: none; }
button { font: inherit; }

/* 헤더 — 영업시간 한 줄 */
.top { position: sticky; top: 0; z-index: 50; background: var(--plank); color: #F1EFEA; }
.top__in { max-width: 1120px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 9px; font: 700 20px/1 var(--head); text-decoration: none; white-space: nowrap; }
.logo__mark { width: 22px; height: 22px; border-radius: 50%; border: 2px solid currentColor;
  background: repeating-conic-gradient(currentColor 0 4deg, transparent 4deg 45deg); }
.top__hours { margin: 0; font-size: 14px; display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.top__week { opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.open { flex: none; padding: 3px 9px; border-radius: 3px; font-weight: 700; font-size: 13px; background: #44453F; }
.open.is-open { background: var(--ok); }
.open.is-closed { background: #6B3A2A; }
.top__tel { font: 700 16px/1 var(--mono); text-decoration: none; padding: 9px 14px; background: var(--tag); color: #fff; border-radius: 3px; white-space: nowrap; }

/* 첫 화면 — 짧은 한 줄 + 칩 */
.intro { padding: 34px 0 6px; }
.intro h1 { font-size: 34px; line-height: 1.3; }
.intro__sub { margin: 10px 0 0; color: var(--sub); max-width: 640px; }
.chips { margin-top: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 56px; z-index: 40; }
.chips__in { max-width: 1120px; margin: 0 auto; padding: 10px 24px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips__in::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 0 14px; border: 1px solid #B9B5AB; border-radius: 999px; background: transparent; color: var(--ink); font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; }
.chip b { font: 400 12px/1 var(--mono); color: var(--sub); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-on b { color: #C9C6BE; }
.chip--fix { border-color: var(--tag); color: var(--tag); font-weight: 700; }
.stamp { margin-top: 12px; margin-bottom: 0; font: 400 12.5px/1.4 var(--mono); color: var(--sub); }

/* 선반 */
.shelves { padding-top: 8px; padding-bottom: 24px; }
.shelf { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; padding: 30px 0 26px; border-bottom: 8px solid var(--plank); position: relative; }
.shelf[hidden] { display: none; }
.shelf__head { align-self: start; position: sticky; top: 130px; }
.shelf__code { display: inline-grid; place-items: center; width: 40px; height: 40px; font: 700 20px/1 var(--mono); border: 2px solid var(--ink); margin-bottom: 12px; }
.shelf__code--inv { background: var(--tag); border-color: var(--tag); color: #fff; }
.shelf__head h2 { font-size: 24px; }
.shelf__head p { margin: 8px 0 0; font-size: 14px; color: var(--sub); line-height: 1.6; }
.row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 14px; align-items: stretch; }

/* 상품 카드 = 가격표(행택) */
.card { background: var(--paper); border: 1px solid var(--line); position: relative; display: flex; flex-direction: column; }
.card--photo { grid-column: span 2; grid-row: span 2; }
.card--more { background: transparent; border: 1.5px dashed #A9A59B; }
.card--more::before { display: none; }
.card--more .card__b { padding-top: 16px !important; }
.card--more h3 { margin-top: 8px; }
.card--more .spec { margin-bottom: 6px; }
.ask--fill { margin-top: auto; background: var(--ink); color: #fff; }
.card--photo img { flex: 1 1 260px; height: 0; min-height: 240px; object-fit: cover; width: 100%; }
.card--photo .card__b { flex: none; }
.card__b { padding: 16px 16px 14px; display: flex; flex-direction: column; flex: 1; }
.card:not(.card--photo) .card__b { padding-top: 28px; }
.card:not(.card--photo) .price { padding-top: 10px; }
.card:not(.card--photo)::before { content: ''; position: absolute; top: 12px; left: 16px; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #9C988E; background: var(--bg); }
.code { font: 400 12px/1 var(--mono); color: var(--sub); letter-spacing: .5px; }
.card h3 { font-size: 18px; line-height: 1.35; margin-top: 6px; }
.spec { margin: 6px 0 0; font-size: 13.5px; color: var(--sub); line-height: 1.55; }
.price { margin: auto 0 0; padding-top: 14px; font: 700 22px/1.1 var(--mono); letter-spacing: -0.5px; }
.price small { font: 700 13px/1 var(--sans); margin-left: 2px; }
.stock { margin: 6px 0 0; font-size: 13px; color: var(--ok); font-weight: 700; }
.card--order .stock { color: var(--sub); }
.card--used .code::after { content: ' 중고'; color: var(--tag); font-weight: 700; }
.ask { margin-top: 12px; min-height: 44px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--ink); font-weight: 700; font-size: 14.5px; text-decoration: none; }
.ask:hover { background: var(--ink); color: #fff; }
.card--photo .card__b { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto 1fr; column-gap: 16px; }
.card--photo .card__b > * { grid-column: 1; }
.card--photo .price { grid-column: 2; grid-row: 1 / span 3; margin: 0; padding: 0; align-self: start; text-align: right; }
.card--photo .ask { grid-column: 1 / -1; align-self: end; }
.row--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plist { list-style: none; margin: 10px 0 0; padding: 0; font-size: 15px; }
.plist li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px dashed var(--line); }
.plist span { font: 400 14px/1.6 var(--mono); white-space: nowrap; }

/* 수리 공임표 */
.repair { background: var(--plank); color: #EDEBE5; padding: 64px 0; margin-top: 40px; }
.repair__in { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 48px; }
.repair__head h2 { font-size: 30px; }
.repair__head p { color: #BEBBB2; font-size: 15px; margin: 10px 0 0; }
.repair__fig { margin: 24px 0 0; }
.repair__fig img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.rlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid #4A4B45; }
.rlist li { display: grid; grid-template-columns: 54px minmax(0, 1fr) 76px 150px; gap: 14px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid #4A4B45; }
.rlist .code { color: #8F8C84; }
.rlist b { font-size: 16.5px; }
.rlist i { font-style: normal; font-size: 13.5px; color: #A9A69D; }
.rlist em { font: 700 16px/1.3 var(--mono); font-style: normal; text-align: right; color: #fff; }
.book { margin-top: 28px; padding: 22px 24px; border: 2px solid var(--tag); }
.book p { margin: 0; font-size: 15px; color: #D6D3CB; }
.book .book__t { font: 700 20px/1.3 var(--head); color: #fff; margin-bottom: 6px; }
.book__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.book .book__s { margin-top: 14px; font-size: 12.5px; color: #8F8C84; }
.btn { min-height: 46px; padding: 0 18px; display: inline-flex; align-items: center; border: 1.5px solid currentColor; text-decoration: none; font-weight: 700; font-size: 15px; }
.btn--main { background: var(--tag); border-color: var(--tag); color: #fff; }

/* 소식 */
.news { padding-top: 56px; padding-bottom: 8px; }
.news h2, .visit h2 { font-size: 26px; }
.news__list { list-style: none; margin: 16px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.news__list li { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.news__list time { font: 400 14px/1 var(--mono); color: var(--sub); flex: none; }
.tag { flex: none; font-size: 12.5px; font-weight: 700; padding: 2px 8px; border: 1px solid var(--ink); }

/* 오시는 길 */
.visit { padding: 56px 0 72px; }
.visit__in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.visit p { margin: 12px 0 0; color: #3D3E39; }
.visit .addr { font: 700 19px/1.5 var(--head); color: var(--ink); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.copy { min-height: 34px; padding: 0 12px; font: 400 13px/1 var(--sans); border: 1px solid #9C988E; background: var(--paper); cursor: pointer; }
.visit__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.visit .btn { color: var(--ink); }
.visit .btn--main { color: #fff; }
.hours { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); }
.hours caption { text-align: left; font: 700 18px/1 var(--head); padding: 0 0 12px; }
.hours th, .hours td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.hours th { width: 34%; font-weight: 700; }
.hours td { font-variant-numeric: tabular-nums; }
.hours tr.is-today { background: #FCEBE3; }
.hours tr.is-today th::after { content: ' 오늘'; color: var(--tag); font-size: 12px; }

.foot { background: #E3E0D8; padding: 36px 0 40px; font-size: 13.5px; color: var(--sub); }
.foot p { margin: 0 0 8px; line-height: 1.7; }
.foot__name { font: 700 17px/1 var(--head); color: var(--ink); }
.foot a { text-decoration: none; }

/* 퀵메뉴 — PC 오른쪽 세로 */
.quick { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 60; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(0,0,0,.08); width: 92px; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 11px 4px; text-decoration: none; border-bottom: 1px solid var(--line); text-align: center; }
.quick a:last-child { border-bottom: 0; }
.quick a:first-child { background: var(--tag); color: #fff; }
.quick__k { font-weight: 800; font-size: 13.5px; }
.quick__v { font: 400 10px/1.3 var(--mono); opacity: .8; word-break: break-all; }
.quick a:first-child .quick__v { font-size: 9.5px; }
@media (max-width: 1340px) { .quick { width: 76px; right: 8px; } .quick__v { display: none; } }
@media (max-width: 1279px) { .wrap, .top__in, .chips__in { padding-right: 100px; } }

/* 태블릿 */
@media (max-width: 1023px) {
  .wrap, .top__in, .chips__in { padding-right: 24px; }
  .shelf { grid-template-columns: 1fr; gap: 16px; }
  .shelf__head { position: static; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; }
  .shelf__head .shelf__code { margin: 0; grid-row: span 2; }
  .shelf__head p { margin-top: 2px; }
  .row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .row--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .repair__in, .visit__in { grid-template-columns: 1fr; gap: 28px; }
  .repair__fig { max-width: 520px; }
  .quick { top: auto; bottom: 0; left: 0; right: 0; transform: none; width: auto; flex-direction: row; border: 0; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .quick a { flex: 1; min-height: 56px; justify-content: center; border-bottom: 0; border-right: 1px solid var(--line); }
  .quick__v { display: block; }
  .quick__top { display: none !important; }
  body { padding-bottom: 64px; }
}

/* 모바일 — 선반은 가로 스냅 줄 */
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 16px; }
  .m { display: inline; }
  .top__in { padding: 10px 16px; gap: 10px; flex-wrap: wrap; }
  .logo { font-size: 18px; }
  .top__hours { order: 3; flex-basis: 100%; font-size: 13px; }
  .top__week { font-size: 12.5px; }
  .top__tel { margin-left: auto; font-size: 14px; padding: 8px 10px; }
  html { scroll-padding-top: 96px; }
  .intro { padding-top: 22px; }
  .intro h1 { font-size: 25px; }
  .intro__sub { font-size: 14.5px; }
  .chips { top: 84px; margin-top: 16px; }
  .chips__in { padding: 9px 16px; }
  .shelf { padding: 24px 0 20px; border-bottom-width: 6px; }
  .shelf__head h2 { font-size: 21px; }
  .shelf__head p { font-size: 13.5px; }
  .shelf__code { width: 34px; height: 34px; font-size: 17px; }
  .row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -16px; padding: 0 16px 6px; scroll-padding: 0 16px; scrollbar-width: thin; }
  .row > .card { flex: 0 0 62%; scroll-snap-align: start; }
  .row > .card--photo { flex-basis: 80%; }
  .card--photo img { flex: none; height: auto; min-height: 0; aspect-ratio: 16 / 10; }
  .row--list { display: grid; grid-template-columns: 1fr; margin: 0; padding: 0; overflow: visible; }
  .row--list > .card { flex: none; }
  .card h3 { font-size: 17px; }
  .price { font-size: 20px; }
  .repair { padding: 48px 0; }
  .repair__head h2 { font-size: 26px; }
  .rlist li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; column-gap: 12px; }
  .rlist .code { grid-column: 1 / -1; }
  .rlist i { grid-column: 1; grid-row: 3; }
  .rlist em { grid-column: 2; grid-row: 2 / span 2; align-self: center; font-size: 14.5px; }
  .book { padding: 18px 16px; }
  .book__btns .btn, .visit__btns .btn { flex: 1 1 100%; justify-content: center; }
  .news__list li { flex-wrap: wrap; gap: 6px 10px; }
  .news__list li { display: grid; grid-template-columns: auto auto minmax(0, 1fr); }
  .visit { padding: 44px 0 48px; }
  .news { padding-top: 44px; }
  .hours th, .hours td { padding: 12px; }
  .quick__kakao { display: none !important; }
  .quick a { font-size: 13px; }
  .foot { padding-bottom: 32px; }
}
