/* 실용적인 촘촘한 목록형 쇼핑몰 화면. 글씨는 크게, 여백은 작게. */
:root { color-scheme: light; --bg: #fff; --surface: #fff; --text: #1c1c1a; --muted: #6a6964; --accent: #d62d20; --accent-hover: #b52217; --line: #e3e2de; --soft: #f4f4f1; font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; font-synthesis: none; }
* { box-sizing: border-box; }
html { scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.5; word-break: keep-all; }
body:has(dialog[open]) { overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button { border: 0; background: none; }
a { color: inherit; text-decoration: none; }
button, a { touch-action: manipulation; }
button:disabled { cursor: default; opacity: .4; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
svg { display: block; }
[hidden] { display: none !important; }
.container { width: min(1360px, calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -70px; left: 20px; padding: 12px 20px; background: var(--surface); z-index: 10; }
.skip-link:focus { top: 8px; }

.site-header { position: sticky; top: 0; z-index: 3; background: var(--surface); border-bottom: 1px solid var(--line); }
/* 머리글: 로고 | 가운데 검색창 | 로그인·장바구니. 검색창이 화면 가운데에 오도록 양옆 칸을 같은 너비로 둔다. */
.header-main { display: grid; grid-template-columns: 1fr minmax(0, 680px) 1fr; align-items: center; gap: 20px; height: 72px; }
.header-main .brand { justify-self: start; }
.header-main .header-actions { justify-self: end; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.account-link { display: flex; gap: 6px; align-items: center; padding: 8px 0; white-space: nowrap; font-size: 16px; color: var(--text); }
.account-link:hover { color: var(--accent); }
/* 찜: 머리글 링크는 개수가 있을 때만 회색 배지를 붙인다(빨강 배지는 장바구니). 누른 하트는 빨갛게 채운다. */
.wish-link { display: flex; gap: 6px; align-items: center; padding: 8px 0; white-space: nowrap; font-size: 16px; color: var(--text); }
.wish-link:hover { color: var(--accent); }
.wish-count { min-width: 22px; padding: 0 6px; border-radius: 11px; background: var(--soft); color: var(--text); font-size: 13px; font-weight: 700; line-height: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.wish-button, .wish-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 4px; color: var(--muted); }
.wish-button svg, .wish-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.wish-button { width: 36px; height: 36px; border-radius: 6px; }
.wish-button:hover, .wish-toggle:hover { color: var(--accent); }
.wish-button[aria-pressed="true"], .wish-toggle[aria-pressed="true"] { color: var(--accent); }
.wish-button[aria-pressed="true"] svg, .wish-toggle[aria-pressed="true"] svg { fill: currentColor; }
.wish-toggle { min-height: 36px; padding: 0 12px 0 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; }
.wish-toggle[aria-pressed="true"] { border-color: currentColor; }
.product-actions { display: flex; align-items: center; gap: 4px; }
.detail-price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 360px; margin-top: 10px; }
.detail-price-row .detail-price { margin-top: 0; }
.wish-mode .filter-toggle, .wish-mode .filter-panel { display: none; }
.wish-note { margin: -4px 0 12px; color: var(--muted); font-size: 14px; }
.wish-note a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.brand { display: inline-flex; align-items: center; color: var(--text); --wm-accent: var(--accent); line-height: 0; }
.brand .wordmark { height: 30px; width: auto; }
.search { display: flex; flex: 1; max-width: 640px; border: 1px solid #cfceca; border-radius: 6px; background: var(--surface); }
.search:focus-within { border-color: var(--text); }
.search input { width: 100%; min-width: 0; background: none; border: 0; padding: 9px 14px; font-size: 16px; outline: none; }
.search input::placeholder { color: var(--muted); }
.search button { padding: 8px 12px; }
.search svg, .cart-trigger svg, .account-link svg, .wish-link svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.prelaunch-notice { margin: 0; padding: 10px 16px; background: #fff7e6; border-bottom: 1px solid #f5d48a; color: #5c3d00; font-size: 15px; line-height: 1.5; text-align: center; }
/* 출고 휴무 카드: 검색창을 덮어 띄우고 ×로 닫는다(머리글이 sticky라 스크롤해도 따라온다). */
.holiday-card { position: absolute; top: 10px; left: 50%; z-index: 1; display: flex; gap: 10px; align-items: flex-start; width: min(680px, calc(100% - 24px)); padding: 12px 6px 12px 14px; transform: translateX(-50%); border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 8px 28px rgba(0, 0, 0, .16); font-size: 15px; line-height: 1.45; }
.holiday-card > svg { flex: none; width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; }
.holiday-card p { flex: 1; min-width: 0; }
.holiday-card strong { display: block; }
.holiday-card span { color: var(--muted); }
.holiday-card button { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: -12px 0 -12px 0; color: var(--muted); }
.holiday-card button:hover { color: var(--text); }
.holiday-card button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.back-button { display: inline-flex; align-items: center; gap: 2px; margin-left: -6px; padding: 8px 10px 8px 4px; border: 0; background: none; color: var(--text); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.back-button[hidden] { display: none; }
.back-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.back-button:hover { color: var(--accent); }
.cart-trigger { margin-left: auto; display: flex; gap: 6px; align-items: center; padding: 8px 0; white-space: nowrap; font-size: 16px; }
.cart-count { min-width: 22px; padding: 0 6px; border-radius: 11px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; line-height: 22px; text-align: center; }

.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 20px; border-radius: 6px; font-size: 16px; font-weight: 650; }
.primary { background: var(--accent); color: white; }
.primary:hover { background: var(--accent-hover); }
.secondary { border: 1px solid var(--line); background: var(--surface); }
.secondary:hover { background: var(--soft); }
.text-button { font-size: 15px; color: var(--muted); padding: 6px 2px; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

.catalog-section { padding-block: 16px 40px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; margin-bottom: 10px; }
#result-count { font-size: 16px; font-weight: 650; min-width: 0; }
.toolbar-left { display: flex; align-items: center; gap: 4px; min-width: 0; }
.listing-title { font-size: 20px; font-weight: 750; }
.listing-count { margin-left: 4px; color: var(--muted, #666); font-size: 15px; font-weight: 500; white-space: nowrap; }
.filter-toggle { display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; font-size: 15px; white-space: nowrap; }
.filter-toggle:hover, .filter-toggle[aria-expanded="true"] { border-color: var(--text); }
.filter-toggle.active { border-color: var(--accent); color: var(--accent); font-weight: 650; }
.filter-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 12px; padding: 10px 12px; background: var(--soft); border-radius: 6px; }
.filter-panel select { height: 40px; max-width: 240px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 15px; }
.stock-filter { display: flex; align-items: center; gap: 6px; font-size: 15px; padding: 0 4px; white-space: nowrap; }
.stock-filter input { width: 18px; height: 18px; accent-color: var(--accent); }
#catalog-error { padding: 24px 0; }

.set-panel { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 6px; }
.set-panel img { width: 120px; height: 90px; object-fit: contain; flex-shrink: 0; }
.set-copy { flex: 1; min-width: 0; }
.set-label { color: var(--accent); font-size: 14px; font-weight: 700; }
.set-panel h2 { font-size: 20px; font-weight: 750; letter-spacing: -.02em; line-height: 1.3; }
.set-meta { margin-top: 2px; color: var(--muted); font-size: 15px; }
.set-meta strong { color: var(--text); }
.set-variants { margin-top: 4px; color: var(--muted); font-size: 14px; }
.set-variants button { margin-left: 6px; text-decoration: underline; text-underline-offset: 2px; font-size: 14px; }
.set-panel > .button { flex-shrink: 0; }
.set-mode .filter-panel select, .set-mode #reset-filters { display: none; }
.product-meta .needed { color: var(--accent); font-weight: 600; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 12px; }
.product-card { display: flex; flex-direction: column; min-width: 0; padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.product-card:hover { border-color: #b9b8b3; }
.product-image { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; }
.product-image > img { position: absolute; inset: 0; margin: auto; width: calc(100% * var(--part-scale, 1)); height: calc(100% * var(--part-scale, 1)); object-fit: contain; }
.image-placeholder { color: var(--muted); font-size: 14px; }
.product-card h3 { margin-top: 8px; font-size: 16px; font-weight: 650; line-height: 1.35; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.product-meta { display: flex; flex-wrap: wrap; gap: 0 10px; margin-top: 4px; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.product-color { min-width: 0; margin: 4px 0 0; padding: 0; border: 0; }
.product-swatches { display: flex; flex-wrap: wrap; gap: 4px; }
.product-swatch { position: relative; display: grid; place-items: center; width: 28px; height: 28px; cursor: pointer; }
.product-swatch-ring { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid transparent; border-radius: 50%; }
.product-swatch .color-dot { width: 16px; height: 16px; grid-area: 1 / 1; }
.product-swatch input:checked + .product-swatch-ring { border-color: var(--muted); }
.product-swatch input:focus-visible + .product-swatch-ring { outline: 2px solid var(--accent); outline-offset: 1px; }
.product-swatch.is-sold-out .product-swatch-ring::after { content: ""; grid-area: 1 / 1; width: 16px; height: 1px; background: var(--text); transform: rotate(-45deg); }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.product-price { font-size: 18px; font-weight: 750; font-variant-numeric: tabular-nums; }
.add-button { min-height: 36px; padding: 4px 14px; border-radius: 6px; background: var(--text); color: #fff; font-size: 15px; font-weight: 600; }
.add-button:hover { background: #000; }
.add-button:disabled { background: var(--soft); color: var(--muted); opacity: 1; cursor: not-allowed; }
.sold-out .product-image > img { opacity: .45; }
.sold-out-badge { position: absolute; top: 0; right: 0; z-index: 1; padding: 2px 8px; border-radius: 4px; background: var(--text); color: var(--surface); font-size: 13px; font-weight: 700; }
.catalog-pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 24px; font-size: 16px; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 48px 20px; color: var(--muted); }

.home { padding-block: 8px 48px; }
.header-search { display: block; min-width: 0; }
.home-intro { padding-top: 14px; }
.home-intro > * { max-width: 760px; margin-inline: auto; }
.home-examples, .home-intro .condition-note { text-align: center; }
body:not(.is-home) .home-examples { display: none; }
/* 테두리를 border 대신 짙은 바탕+안쪽 여백으로 그린다. 높이가 소수 픽셀이 되어 버튼과 테두리 사이가 벌어져도 흰 줄 대신 테두리 색이 보인다. */
.home-search-box { display: flex; padding: 2px; background: var(--text); border-radius: 8px; }
.home-search-box input { flex: 1; min-width: 0; border: 0; border-radius: 6px 0 0 6px; background: var(--surface); padding: 9px 16px; font-size: 20px; font-weight: 600; outline: none; font-variant-numeric: tabular-nums; }
.home-search-box input::placeholder { color: #a8a7a2; font-weight: 500; }
.home-search-box button { padding: 0 18px; border-radius: 0 6px 6px 0; background: var(--accent); color: #fff; }
.home-search-box button svg { width: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
.home-search-box button:hover { background: var(--accent-hover); }
.home-examples { margin-top: 0; color: var(--muted); font-size: 15px; }
.condition-note { margin-top: 6px; color: var(--muted); font-size: 15px; }
.cart-footer .condition-note { font-size: 13px; margin: 0 0 12px; }
.home-examples button { margin: 2px 3px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 14px; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--text); }
.home-examples button:hover { border-color: var(--text); }
.home-heading { margin: 28px 0 12px; font-size: 20px; font-weight: 750; letter-spacing: -.02em; }
.category-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: 1fr; gap: 10px; }
.category-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 15px; font-weight: 600; line-height: 1.3; text-align: center; text-wrap: balance; }
.category-tile:hover { border-color: var(--text); }
.category-tile:disabled { opacity: 1; }
.category-tile:disabled:hover { border-color: var(--line); }
.category-tile:disabled .category-count { visibility: hidden; }
#category-error { margin: 12px 0 0; }
.category-tile img { flex: none; display: block; width: 72px; height: 54px; object-fit: contain; object-position: center; }
.category-tile-blank { flex: none; width: 72px; height: 54px; }
.category-en { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 400; }
#show-all { margin-top: 16px; font-size: 15px; }

.site-footer { border-top: 1px solid var(--line); padding: 16px 0; color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; }
.footer-inner a { text-decoration: underline; text-underline-offset: 2px; }

.cart-dialog { padding: 0; width: min(460px, 100%); height: 100dvh; max-height: 100dvh; max-width: 100%; margin: 0 0 0 auto; border: 0; background: var(--surface); color: var(--text); }
.cart-dialog[open] { display: flex; flex-direction: column; }
.cart-dialog::backdrop { background: #0005; }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.cart-header h2 { font-size: 22px; }
.cart-header h2 span { font-size: 16px; color: var(--accent); margin-left: 4px; }
.icon-button { font-size: 28px; width: 40px; height: 40px; line-height: 1; }
.cart-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 24px; }
.cart-empty { padding: 48px 0; text-align: center; color: var(--muted); }
.cart-item { display: grid; grid-template-columns: 80px 1fr auto; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-item-art { display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; width: 80px; height: 80px; }
.cart-item-art img { width: 72px; height: 72px; object-fit: contain; }
.cart-item h3 { font-size: 16px; }
.cart-item p { color: var(--muted); font-size: 14px; }
.cart-item strong { font-size: 15px; display: block; margin-top: 5px; }
.quantity { display: inline-flex; align-items: center; margin-top: 12px; border: 1px solid var(--line); border-radius: 3px; }
.quantity button { width: 34px; height: 32px; }
.quantity input { width: 44px; text-align: center; padding: 0; border: 0; background: none; appearance: textfield; font-size: 13px; }
.quantity input::-webkit-inner-spin-button, .quantity input::-webkit-outer-spin-button { appearance: none; }
.remove-item { font-size: 14px; padding: 2px 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.cart-footer { padding: 22px 24px; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.cart-total strong { font-size: 23px; }
.cart-footer p { font-size: 13px; color: var(--muted); margin: 12px 0 18px; }
.cart-footer #cart-shipping { margin: 8px 0 0; }
.cart-footer #cart-status { color: var(--accent); }
.cart-footer #cart-status:empty { display: none; }
.cart-footer .button { width: 100%; }
.cart-footer .button + .button { margin-top: 8px; }
.cart-footer a.button[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 12px); background: var(--text); color: white; padding: 12px 22px; border-radius: 4px; opacity: 0; pointer-events: none; font-size: 15px; z-index: 5; transition: opacity .2s, transform .2s; width: max-content; max-width: calc(100% - 32px); text-align: center; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
/* 상품 상세 페이지. 열리면 첫 화면·목록을 숨기고 검색창과 이 칸만 보인다. */
.product-card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.product-page { display: none; }
body.is-detail .product-page { display: block; max-width: 880px; padding: 16px 0 48px; }
body.is-detail #home, body.is-detail #listing, body.is-detail .home-examples, body.is-detail .home-intro { display: none !important; }
.detail-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.detail-crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted); font-size: 14px; white-space: nowrap; }
.detail-crumbs a { color: var(--muted); text-decoration: none; }
.detail-crumbs a:hover { color: var(--text); text-decoration: underline; }
.detail-crumbs [aria-current] { overflow: hidden; text-overflow: ellipsis; color: var(--text); }
body.is-detail .product-page { max-width: 1060px; }
/* 왼쪽 칸 자리는 처음부터 비워 둔다. 다른 색상·최근 본 제품이 늦게 채워져도 본문이 옆으로 밀리지 않는다. */
.detail-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 36px; }
.detail-side { display: grid; gap: 24px; align-content: start; grid-column: 1; grid-row: 1; }
.detail-body { grid-column: 2; }
.detail-side h3 { margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.detail-side ul { list-style: none; margin: 0; padding: 0; }
.detail-side li a { display: flex; align-items: center; gap: 10px; padding: 5px 0; color: var(--text); text-decoration: none; }
.detail-side li a:hover .side-name { text-decoration: underline; }
.side-art { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 4px; }
.side-art img { width: 80%; height: 80%; object-fit: contain; }
.side-art .image-placeholder { font-size: 0; }
.side-text { display: grid; min-width: 0; font-size: 13px; line-height: 1.35; }
.side-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-price { color: var(--muted); font-variant-numeric: tabular-nums; }
.side-loading { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.side-loading .side-art { overflow: hidden; }
.side-loading .side-text { flex: 1; gap: 7px; }
.side-bar { height: 9px; border-radius: 2px; background: var(--soft); }
.side-bar + .side-bar { width: 44%; }
.side-brick { position: relative; width: 24px; height: 13px; margin-top: 5px; border-radius: 2px; background: var(--accent); animation: side-brick-drop 1.8s infinite cubic-bezier(.3, 1.4, .5, 1); }
.side-brick::before, .side-brick::after { content: ""; position: absolute; top: -4px; width: 7px; height: 4px; border-radius: 1px 1px 0 0; background: inherit; }
.side-brick::before { left: 3px; }
.side-brick::after { right: 3px; }
.side-loading:nth-child(2) .side-brick { animation-delay: .18s; }
.side-loading:nth-child(3) .side-brick { animation-delay: .36s; }
.side-loading:nth-child(4) .side-brick { animation-delay: .54s; }
.side-loading:nth-child(5) .side-brick { animation-delay: .72s; }
.side-loading:nth-child(6) .side-brick { animation-delay: .9s; }
@keyframes side-brick-drop { 0% { transform: translateY(-34px); opacity: 0; } 25%, 70% { transform: none; opacity: 1; } 100% { transform: none; opacity: 0; } }
.side-more a { color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 2px; }
.detail-top { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; }
.detail-figure { margin: 0; min-width: 0; }
.detail-figure figcaption { margin-top: 6px; color: var(--muted); text-align: center; font-size: 13px; line-height: 1.4; }
.detail-figure:has(img[hidden]) figcaption { display: none; }
.detail-figure a, .detail-description a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.detail-art { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 6px; }
.detail-art img { width: 84%; height: 84%; object-fit: contain; }
.detail-title { font-size: 20px; line-height: 1.35; letter-spacing: -.01em; overflow-wrap: anywhere; }
.detail-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; line-height: 1.3; }
.color-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--line); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.chip-stock, .chip-out { padding-left: 12px; font-weight: 600; }
.chip-stock { border-color: #b9dfc4; background: #eef8f1; color: #1f6b38; }
.chip-out { color: var(--muted); }
.detail-numbers { margin-top: 6px; }
.detail-numbers .chip { padding: 3px 10px; font-size: 13px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.detail-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; margin-top: 10px; font-variant-numeric: tabular-nums; }
.detail-price strong { font-size: 24px; }
.detail-price span { color: var(--muted); font-size: 14px; white-space: nowrap; }
.detail-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; max-width: 360px; }
.qty-stepper { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.qty-stepper button { width: 40px; min-height: 44px; border: 0; background: none; color: var(--text); font-size: 20px; cursor: pointer; }
.qty-stepper button:hover:not(:disabled) { background: var(--line); }
.qty-stepper button:disabled { color: var(--muted); cursor: default; }
.qty-stepper input { width: 52px; min-height: 44px; padding: 0 4px; border: 0; border-inline: 1px solid var(--line); text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.detail-total { flex-basis: 100%; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.detail-total strong { color: var(--text); font-size: 16px; }
.detail-buy .button { flex: 1; }
.detail-buy #detail-status { flex-basis: 100%; color: var(--accent); font-size: 14px; }
.detail-buy #detail-status:empty { display: none; }
/* 해외 시세 참고(app.js loadMarket). 1px 테두리만, 가격보다 작고 흐리게. */
.market-ref { max-width: 420px; margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.market-ref h3 { margin: 0; color: var(--text); font-size: 14px; font-weight: 600; }
.market-ref .market-ref-basis { margin-bottom: 4px; font-size: 13px; }
.market-ref table { width: 100%; margin-bottom: 6px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.market-ref th, .market-ref td { padding: 3px 0; font-weight: 400; text-align: left; }
.market-ref td { padding-left: 12px; text-align: right; white-space: nowrap; }
.market-ref td:nth-child(2) { width: 100%; color: var(--text); font-weight: 600; }
.market-ref p { margin: 0; font-size: 12px; }
.detail-description { margin-top: 24px; }
.detail-description h3 { font-size: 17px; font-weight: 700; }
.detail-description p { margin-top: 6px; font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-description .detail-spec { color: var(--muted); font-size: 14px; }
.detail-notes { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.55; }
.detail-notes dt { font-weight: 650; }
.detail-notes dd { margin: 0; color: var(--muted); }
.detail-notes a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.detail-notes .detail-warning { color: var(--text); }
.detail-sets { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.detail-sets-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-bottom: 12px; }
.detail-sets h3 { font-size: 17px; font-weight: 700; }
.detail-sets-count { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.set-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.set-grid a { display: flex; flex-direction: column; height: 100%; padding: 8px 10px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); text-decoration: none; }
.set-grid a:hover { border-color: #b9b8b3; }
.set-card-art { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; }
.set-card-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.set-card-text { display: grid; gap: 1px; min-width: 0; margin-top: 6px; font-size: 13px; line-height: 1.35; }
.set-card-text strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.set-card-name { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.set-card-meta { color: var(--muted); font-variant-numeric: tabular-nums; }
.detail-sets-more { width: 100%; margin-top: 12px; font-size: 15px; }
.kc-mark { display: inline-block; margin-right: 4px; padding: 0 5px; border: 1.5px solid currentColor; border-radius: 4px; font-size: 12px; font-weight: 800; line-height: 18px; letter-spacing: .02em; }

@media (max-width: 700px) {
  .container { width: calc(100% - 24px); }
  .header-main { height: auto; grid-template-columns: 1fr auto; grid-template-areas: "brand cart" "search search"; gap: 8px 12px; padding: 10px 0; }
  .header-main .brand { grid-area: brand; }
  .header-main .header-actions { grid-area: cart; gap: 14px; }
  .header-search { grid-area: search; }
  .holiday-card { top: 50px; }
  .brand .wordmark { height: 24px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .cart-label, .account-label, .wish-label { display: none; }
  .catalog-section { padding-top: 10px; }
  .filter-panel { gap: 6px; padding: 8px; }
  .filter-panel select { flex: 1 1 calc(50% - 3px); min-width: 0; max-width: none; padding: 0 6px; }
  .home { padding-block: 4px 32px; }
  .home-intro { padding-top: 10px; }
  .home-search-box input { font-size: 19px; padding: 9px 12px; }
  .home-search-box button { padding: 0 14px; }
  .home-heading { margin-top: 28px; font-size: 18px; }
  .category-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .category-tile { padding: 8px 4px; font-size: 13px; }
  .category-tile img, .category-tile-blank { width: 56px; height: 42px; }
  .set-panel { flex-wrap: wrap; gap: 10px; padding: 10px 12px; }
  .set-panel img { width: 88px; height: 66px; }
  .set-panel h2 { font-size: 17px; }
  .set-panel > .button { width: 100%; }
  .stock-filter { padding-left: 2px; }
  /* 모바일은 사진 왼쪽, 정보 오른쪽의 한 줄 목록 */
  .product-grid { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
  .product-card { display: grid; grid-template-columns: 76px 1fr; grid-template-areas: "img name" "img meta" "img bottom"; column-gap: 12px; padding: 10px 2px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .product-card.has-color-options { grid-template-areas: "img name" "img meta" "img color" "img bottom"; }
  .product-color { grid-area: color; }
  .product-card:hover { border-color: var(--line); }
  .product-image { grid-area: img; aspect-ratio: 1; align-self: start; }
  .product-card h3 { grid-area: name; margin-top: 0; font-size: 16px; -webkit-line-clamp: 2; }
  .product-meta { grid-area: meta; font-size: 14px; gap: 0 8px; margin-top: 2px; }
  .product-bottom { grid-area: bottom; padding-top: 6px; }
  .product-price { font-size: 17px; }
  .add-button { padding: 4px 14px; font-size: 15px; }
  .sold-out-badge { font-size: 11px; padding: 1px 5px; }
  .detail-top { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; }
  /* 모바일 세트 목록은 상품 목록처럼 사진 왼쪽 한 줄 */
  .set-grid { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
  .set-grid a { flex-direction: row; align-items: center; gap: 12px; padding: 8px 2px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .set-card-art { flex: none; width: 76px; }
  .set-card-text { margin-top: 0; font-size: 14px; }
  .detail-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .detail-side, .detail-body { grid-column: auto; grid-row: auto; }
  .detail-side { padding-top: 16px; border-top: 1px solid var(--line); }
  .detail-side ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
  .detail-title { font-size: 17px; }
  .detail-price strong { font-size: 20px; }
  .detail-buy { max-width: none; }
  .market-ref { max-width: none; }
  .detail-price-row { max-width: none; }
  .detail-buy .detail-total { flex-basis: auto; order: 1; margin-left: 4px; }
  .detail-buy button[type="submit"] { flex-basis: 100%; order: 2; }
  .detail-buy #detail-status { order: 3; }
  .detail-notes { gap: 6px 12px; font-size: 13.5px; margin-top: 16px; padding-top: 12px; }
}
/* 넓은 화면: 로고 | 줄인 검색창 | 예시·상태 안내(한 줄) | 내 정보·장바구니. 안내는 app.js가 머리글로 옮긴다.
   검색창은 안내 문구(placeholder)가 잘리지 않는 360px까지 줄어든다. 1430px은 이 칸들이 넘치지 않는 가장 작은 폭이고, app.js introWide와 같아야 한다.
   찜 링크 전에는 1330px(맥 기본 글꼴 1293px, Noto Sans KR 1324px)이었고, 찜(두 자리 개수)이 맥 기본 글꼴에서 약 90px을 더 쓴다. */
@media (min-width: 1430px) {
  .header-main { grid-template-columns: max-content minmax(360px, 440px) max-content minmax(max-content, 1fr); gap: 28px; }
  .header-main .header-actions { grid-column: 4; }
  .home-search-box input { font-size: 18px; padding: 8px 14px; }
  .header-main .home-intro { width: auto; margin: 0; padding: 0; min-width: 0; }
  .header-main .home-intro > * { max-width: none; margin: 0; text-align: left; }
  .header-main .home-examples { font-size: 14px; }
  .header-main .home-examples button { margin: 0 2px; padding: 0 8px; font-size: 14px; }
  .header-main .condition-note { margin-top: 2px; font-size: 12px; line-height: 1.4; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } .side-brick { animation: none; } }
.category-count { color: var(--muted); font-weight: 400; }
