/* 키다리아재 아울렛 — 흰 바탕, 검정 글자, 따뜻한 베이지 배너. 강조색은 카톡 노랑과 벽돌색만. */

@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/bebas/bebas-neue-latin-400-normal.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --soft: #f4f2ee;
  --ink: #171615;
  --ink-2: #55524d;
  --ink-3: #8a867f;
  --line: #e7e4df;
  --line-2: #d5d0c8;
  --accent: #a24a33;
  --accent-soft: #f7ece8;
  --red: #c8262b; /* 품절 표시 (로고의 빨강) */
  --ok: #2f5a4e;
  --ok-soft: #e9f0ec;
  --kakao: #fee500;
  --kakao-ink: #1a1700;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --display: "Bebas Neue", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --pad: 16px;
  --header-h: 74px; /* 맨 위 검정 배너 높이 */
}
@media (min-width: 768px) { :root { --pad: 28px; --header-h: 106px; } }
@media (min-width: 1024px) { :root { --pad: 40px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.icon { width: 18px; height: 18px; flex: none; }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ── 맨 위 검정 배너 (스크롤해도 늘 보임) ─────────── */
.brand-bar { position: sticky; top: 0; z-index: 30; background: #0e0e0e; color: #f1ede6; }
.brand-in {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px;
  height: var(--header-h);
}
.brand-logo { grid-column: 2; display: block; font-size: 46px; line-height: 0; }
@media (min-width: 768px) { .brand-logo { font-size: 70px; } }

/* 로고 + OUTLET (글자 크기 = 로고 높이). OUTLET 은 로고와 같은 기울기로 오른쪽 아래 빈자리에 */
.brandmark { position: relative; display: inline-block; line-height: 0; }
.brandmark img { height: 1em; width: auto; }
.brandmark-sub {
  position: absolute; right: -0.03em; bottom: 0.17em;
  font-family: var(--display); font-size: 0.36em; line-height: 1; letter-spacing: 0.14em;
  color: #c8262b; white-space: nowrap; /* 유튜브 배너의 Return 과 같은 빨강 */
  transform: rotate(-10deg) skewX(-10deg); transform-origin: 100% 100%;
}
.brand-ask {
  grid-column: 3; justify-self: end;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 40px; height: 40px;
  border: 1px solid #4a4743; border-radius: 999px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.brand-ask span { display: none; }
.brand-ask .icon { width: 17px; height: 17px; }
.brand-ask:hover { background: #f1ede6; border-color: #f1ede6; color: #0e0e0e; }
@media (min-width: 768px) {
  .brand-ask { width: auto; padding: 0 16px; }
  .brand-ask span { display: inline; }
}

/* 관리자 머리말 */
.site-header { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.header-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; min-height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 0.3em; font-size: 18px; letter-spacing: -0.045em; white-space: nowrap; }
.logo b { font-weight: 800; }
.logo span { font-weight: 400; }

/* ── 구역 제목 ──────────────────────────────────── */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding-bottom: 14px; margin-bottom: 22px;
  border-bottom: 1px solid var(--ink);
}
.section-head h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.035em; }
.section-count { font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.section-en { font-family: var(--display); font-size: 15px; letter-spacing: 0.16em; color: var(--ink-3); line-height: 1; }

/* ── 상품 목록 ──────────────────────────────────── */
.shop { padding: 36px 0 64px; }
@media (min-width: 768px) { .shop { padding: 56px 0 88px; } }
.empty { text-align: center; color: var(--ink-3); padding: 72px 0; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 10px; }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 18px; } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 52px 22px; } }
.card { display: flex; flex-direction: column; }
.card-img { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--soft); margin-bottom: 12px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1); }
@media (hover: hover) { .card:hover .card-img img { transform: scale(1.035); } }
.card-name {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  font-size: 14px; line-height: 1.45; color: var(--ink);
}
.card-price { margin-top: 6px; font-size: 16px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.card-price small, .info-price small, .buy-price small { font-size: 0.8em; font-weight: 600; margin-left: 1px; }
.card-was, .info-was { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.card-was { margin-top: 6px; font-size: 13px; }
/* 정상 수입가: 빨간 줄을 굵게 긋는다 */
.card-was s, .info-was s { font-weight: 600; text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
/* 할인율 표시 */
.off {
  display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 3px;
  background: var(--red); color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: 0; line-height: 1.3; vertical-align: 2px;
}
.card.is-soldout .off { background: var(--ink-3); }
.card.is-soldout .card-was s { text-decoration-color: var(--ink-3); }
.card-was + .card-price { margin-top: 0; }
.price-label { margin-right: 5px; font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: -0.02em; color: var(--accent); }
.card-stock { margin-top: 2px; font-size: 12px; color: var(--ink-3); }
.soldout { margin-left: 4px; color: var(--red); font-size: 17px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; vertical-align: -1px; white-space: nowrap; }
.card-stock.is-low { color: var(--accent); font-weight: 600; }
.card.is-soldout .card-img img { opacity: 0.6; filter: grayscale(0.4); }
.card.is-soldout .card-name, .card.is-soldout .card-price, .card.is-soldout .price-label { color: var(--ink-3); }

/* 상품 검색 */
.search { display: flex; gap: 8px; max-width: 520px; margin-bottom: 26px; }
.is-admin .search { margin-bottom: 18px; }
.is-admin .search-note { margin: -4px 0 16px; }
.search input { flex: 1; min-width: 0; font-size: 16px; -webkit-appearance: none; appearance: none; }
.search .btn { flex: none; min-height: 46px; }
.search-note { margin: -10px 0 24px; font-size: 14px; color: var(--ink-2); }
/* 넓은 화면에서는 검색을 오른쪽에 둔다 */
@media (min-width: 768px) {
  .search { max-width: 400px; margin-left: auto; }
  .search-note { text-align: right; }
}

/* 손님 목록의 고르기 줄: 조건 단추 · 정렬 · 검색 */
.toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 8px; align-items: center; margin-bottom: 26px; }
.toolbar .search { grid-column: 1 / -1; max-width: none; margin: 0; }
.chips { display: flex; align-items: center; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; margin-right: -2px; padding: 1px; }
.chips::-webkit-scrollbar { display: none; }
.chips .tab { flex: none; }
.chip-sep { flex: none; width: 1px; height: 18px; margin: 0 4px; background: var(--line-2); }
.sort { display: flex; gap: 6px; }
.sort select {
  height: 38px; padding: 0 30px 0 14px; max-width: 132px;
  background: #fff url("/static/chevron.svg") no-repeat right 12px center;
  color: var(--ink); border: 1px solid var(--line-2); border-radius: 999px;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.sort select:hover { border-color: var(--ink); }
.toolbar + .search-note { margin-top: -12px; }
.empty-link { display: inline-block; margin-top: 10px; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1024px) {
  .toolbar { grid-template-columns: minmax(0, 1fr) auto 300px; }
  .toolbar .search { grid-column: 3; grid-row: 1; }
  .chips { grid-column: 1; grid-row: 1; flex-wrap: wrap; overflow: visible; }
  .sort { grid-column: 2; grid-row: 1; }
  .toolbar .search input, .toolbar .search .btn { min-height: 38px; height: 38px; padding-top: 0; padding-bottom: 0; }
  .toolbar .search input { font-size: 14px; }
}
.search-note a { margin-left: 6px; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.tag {
  position: absolute; left: 0; top: 0;
  padding: 5px 9px;
  background: var(--ink); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em; line-height: 1.3;
}
.tag-low { background: #fff; color: var(--accent); }
/* 품절 도장: 사진 한가운데에 크게, 사진은 가리지 않게 테두리만 */
.tag-soldout {
  left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-8deg);
  padding: 3px 14px;
  background: rgba(255, 255, 255, 0.88); color: var(--red);
  border: 3px solid var(--red); border-radius: 4px;
  font-size: 24px; font-weight: 900; letter-spacing: 0.12em; text-indent: 0.12em; line-height: 1.3; white-space: nowrap;
}
@media (min-width: 768px) { .tag-soldout { font-size: 30px; padding: 4px 18px; } }
.product-thumb .tag-soldout { font-size: 44px; padding: 6px 26px; border-width: 4px; }
@media (min-width: 768px) { .product-thumb .tag-soldout { font-size: 60px; padding: 8px 34px; border-width: 5px; } }

/* ── 구매 방법 ──────────────────────────────────── */
.guide { background: var(--soft); padding: 44px 0 52px; }
@media (min-width: 768px) { .guide { padding: 64px 0 72px; } }
.steps li {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px;
  padding: 16px 0; border-bottom: 1px solid var(--line-2);
}
.steps li:first-child { padding-top: 4px; }
.step-no { grid-row: span 2; font-family: var(--display); font-size: 30px; line-height: 1; padding-top: 2px; }
.steps strong { font-size: 16px; font-weight: 700; letter-spacing: -0.03em; }
.steps p { color: var(--ink-2); font-size: 14px; }
@media (min-width: 768px) {
  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .steps li, .steps li:first-child { display: block; padding: 0; border: 0; }
  .step-no { display: block; font-size: 44px; margin-bottom: 14px; }
  .steps strong { display: block; font-size: 17px; margin-bottom: 4px; }
}

/* ── 꼬리말 ─────────────────────────────────────── */
.site-footer { background: var(--ink); color: #b7b2aa; padding: 48px 0 40px; font-size: 14px; }
.footer-mark { font-size: 60px; line-height: 0; }
@media (min-width: 768px) { .footer-mark { font-size: 84px; } }
.footer-grid { display: grid; gap: 28px; margin-top: 28px; padding-top: 24px; border-top: 1px solid #3a3835; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.footer-name { color: #f1ede6; font-size: 16px; font-weight: 700; margin-bottom: 10px; }
/* 사업자 정보: 줄 맨 앞에 오는 칸의 구분선은 왼쪽 밖으로 밀어 가린다 */
.footer-biz { overflow: hidden; font-size: 13px; line-height: 1.6; color: #9d988f; }
.footer-biz ul { display: flex; flex-wrap: wrap; gap: 4px 0; margin-left: -21px; }
.footer-biz li { white-space: nowrap; }
.footer-biz li::before { content: ""; display: inline-block; width: 1px; height: 10px; margin: 0 10px; background: #4a4743; vertical-align: -1px; }
.footer-biz li:last-child { white-space: normal; }
.footer-biz span { margin-right: 6px; color: #77726b; }
.footer-label { font-family: var(--display); font-size: 15px; letter-spacing: 0.16em; color: #8d8880; line-height: 1; margin-bottom: 10px; }
.footer-kakao { color: #f1ede6; font-weight: 600; border-bottom: 1px solid #6d6862; padding-bottom: 2px; }
.footer-kakao:hover { border-color: #f1ede6; }
.footer-id { color: #f1ede6; margin-left: 4px; user-select: all; }
.footer-row + .footer-row { margin-top: 8px; }
.footer-copy-btn { margin-left: 10px; height: 30px; padding: 0 12px; background: transparent; color: #f1ede6; border: 1px solid #55514c; border-radius: 999px; font-size: 13px; cursor: pointer; }
.footer-copy-btn:hover { border-color: #f1ede6; }
.footer-copy { margin-top: 40px; font-size: 12px; color: #7f7a73; }

/* ── 상품 상세 ──────────────────────────────────── */
.crumb { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0; font-size: 12px; color: var(--ink-3); }
.crumb a:hover { color: var(--ink); }
.product { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "thumb" "info" "detail"; }
.product-thumb { grid-area: thumb; position: relative; margin: 0 calc(-1 * var(--pad)); background: var(--soft); }
.product-thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-info { grid-area: info; padding: 22px 0 4px; }
.info-no { font-size: 12px; color: var(--ink-3); letter-spacing: 0.02em; }
.info-name { margin-top: 6px; font-size: 21px; font-weight: 700; line-height: 1.4; letter-spacing: -0.035em; }
.info-price { margin-top: 10px; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.info-rows { margin: 22px 0 20px; border-top: 1px solid var(--ink); }
.info-rows div { display: grid; grid-template-columns: 64px minmax(0, 1fr); padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.info-rows dt { color: var(--ink-3); }
.info-rows .is-low { color: var(--accent); font-weight: 700; }
.info-rows dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; }
.info-rows .soldout { font-size: 22px; }
.info-was { margin-top: 10px; font-size: 16px; }
.info-price .off { font-size: 15px; padding: 3px 8px; margin-left: 8px; vertical-align: 4px; }
.info-price.has-was { margin-top: 0; }
.info-price .price-label { font-size: 14px; margin-right: 7px; vertical-align: 3px; }
.info-ask { display: none; margin-bottom: 10px; }
.info-note { margin-top: 10px; font-size: 12px; color: var(--ink-3); text-align: center; }
.product-detail { grid-area: detail; margin: 32px calc(-1 * var(--pad)) 0; }
.detail-head {
  display: flex; align-items: center; gap: 14px;
  padding: 0 var(--pad) 16px;
  font-size: 15px; font-weight: 800; letter-spacing: -0.03em;
}
.detail-head::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.detail-text { max-width: 860px; margin: 0 auto; padding: 4px var(--pad) 26px; font-size: 15px; line-height: 1.75; color: var(--ink-2); white-space: pre-line; }
.detail-images { max-width: 860px; margin: 0 auto; }
.detail-images img { width: 100%; }
@media (min-width: 900px) {
  .crumb { padding: 20px 0 22px; }
  .product {
    grid-template-columns: minmax(0, 1fr) 360px;
    grid-template-areas: "thumb info" "detail info";
    grid-template-rows: auto 1fr;
    column-gap: 48px;
    padding-bottom: 96px;
  }
  .product-thumb, .product-detail { margin-left: 0; margin-right: 0; }
  .product-info { padding: 0; }
  .info-sticky { position: sticky; top: calc(var(--header-h) + 24px); }
  .info-name { font-size: 24px; }
  .info-price { font-size: 28px; }
  .info-ask { display: block; }
  .product-detail { margin-top: 56px; }
  .detail-head { padding: 0 0 18px; }
  .detail-text { padding-left: 0; padding-right: 0; }
}
@media (min-width: 1200px) { .product { grid-template-columns: minmax(0, 1fr) 400px; column-gap: 72px; } }

/* 카톡 문의 버튼 */
.btn-kakao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 54px; padding: 0 20px;
  background: var(--kakao); color: var(--kakao-ink);
  border: 0; border-radius: 4px;
  font-size: 16px; font-weight: 700; letter-spacing: -0.02em;
  cursor: pointer; transition: filter 0.15s;
}
.btn-kakao:hover { filter: brightness(0.96); }
.btn-kakao .icon { width: 20px; height: 20px; }
.ask-list { display: grid; gap: 8px; width: 100%; }
.ask-ids-label { font-size: 12px; color: var(--ink-3); text-align: center; }
.ask-ids { display: flex; gap: 8px; }
.btn-id { flex: 1 1 0; min-width: 0; min-height: 50px; padding: 0 10px; gap: 6px; font-size: 15px; }
.btn-id .copy-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-id small { flex: none; font-size: 12px; font-weight: 600; opacity: 0.65; }
.ask-wait { width: 100%; text-align: center; color: var(--ink-3); font-size: 14px; padding: 6px 0; }
.btn-line {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 46px;
  background: #fff; border: 1px solid var(--line-2); border-radius: 4px;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color 0.15s;
}
.btn-line:hover { border-color: var(--ink); }

/* 휴대폰: 아래에 붙는 문의 줄 */
.buy-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
}
.buy-in { display: flex; align-items: center; gap: 14px; }
.buy-in > .ask-list { flex: 1; min-width: 0; }
.buy-price { flex: none; font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.has-bar .site-footer { padding-bottom: calc(40px + 80px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .buy-bar { display: none; }
  .has-bar .site-footer { padding-bottom: 40px; }
}

/* 안내 화면 (없는 페이지 등) */
.notice-page { text-align: center; padding: 72px var(--pad) 96px; }
.notice-mark { font-family: var(--display); font-size: 15px; letter-spacing: 0.16em; color: var(--ink-3); margin-bottom: 14px; }
.notice-page h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.04em; }
.notice-page p { color: var(--ink-2); margin: 10px 0 28px; }

/* ── 버튼 (공통·관리자) ─────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 4px;
  font-size: 14px; font-weight: 600; text-align: center;
  cursor: pointer; transition: border-color 0.15s, background-color 0.15s;
}
.btn:hover { border-color: var(--ink); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn-main { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-main:hover { background: #000; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn.wide { width: 100%; }

/* ── 관리자 ─────────────────────────────────────── */
.is-admin { background: var(--soft); }
.admin-badge { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: 0; margin-left: 4px; padding: 3px 8px; border-radius: 999px; background: var(--ink); color: #fff; }
.admin-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 18px; font-size: 14px; }
.admin-nav a, .link { padding: 6px 0; }
.admin-nav a:hover, .link:hover { color: var(--accent); }
.link { background: none; border: 0; color: var(--ink-3); cursor: pointer; }
.admin-main { padding-top: 28px; padding-bottom: 72px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.page-head h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.04em; }
.visits { margin-right: auto; font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.visits span { margin-left: 10px; color: var(--ink-2); }
.visits span + span { padding-left: 10px; border-left: 1px solid var(--line-2); }
.visits strong { color: var(--ink); font-weight: 700; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 24px 18px; max-width: 680px; }
@media (min-width: 768px) { .panel { padding: 28px 28px; } }
.panel.narrow { max-width: 400px; margin: 48px auto 0; }
.login-mark { font-family: var(--display); font-size: 15px; letter-spacing: 0.16em; color: var(--ink-3); line-height: 1; margin-bottom: 10px; }
.panel h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 20px; }
.msg { border-radius: 4px; padding: 11px 14px; margin-bottom: 16px; max-width: 680px; font-size: 14px; }
.msg.ok { background: var(--ok-soft); color: var(--ok); }
.msg.error { background: var(--accent-soft); color: var(--accent); }

.field { display: block; margin-bottom: 22px; }
.field > span:first-child, .field > label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 7px; }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
input[type=text], input[type=password], input[type=number], input[type=search] {
  width: 100%; min-height: 46px; padding: 8px 12px;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 4px;
  font: inherit;
}
input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
input[type=file] { width: 100%; font: inherit; font-size: 13px; color: var(--ink-2); }
input[type=file]::file-selector-button {
  margin-right: 10px; height: 38px; padding: 0 14px;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 4px;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
input[type=file]::file-selector-button:hover { border-color: var(--ink); }
.unit { display: flex; align-items: center; gap: 8px; }
.unit input { min-width: 0; text-align: right; }
.unit em { flex: none; font-style: normal; color: var(--ink-3); }
.hint { color: var(--ink-3); font-size: 13px; margin-bottom: 10px; }
.pair-hint { margin: -12px 0 22px; }
.row-meta .soldout { font-size: 14px; }
.card-stock .soldout, .info-rows .soldout { margin-left: 0; }
.hint.below { display: block; margin: 8px 0 0; font-weight: 400; }
textarea {
  display: block; width: 100%; min-height: 104px; padding: 10px 12px; resize: vertical;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 4px;
  font: inherit; line-height: 1.6;
}
textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }

/* 사진 넣는 칸: 끌어다 놓기·붙여 넣기·파일 선택 */
.drop { border: 1.5px dashed var(--line-2); border-radius: 6px; padding: 14px; background: #fff; transition: border-color 0.15s, background-color 0.15s; }
.drop:focus { outline: none; border-color: var(--ink); }
.drop.is-over { border-color: var(--ink); background: var(--soft); }
.drop-thumb { display: flex; align-items: center; gap: 14px; }
.drop-body { flex: 1; min-width: 0; }
.drop-text { color: var(--ink-2); font-size: 13px; margin-bottom: 10px; }
.drop-msg { color: var(--accent); font-size: 13px; margin-top: 8px; }
.drop-msg:empty { display: none; }
.current-thumb { flex: none; width: 96px; height: 96px; object-fit: cover; background: var(--soft); }
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.has-tiles .board, .board:not(:empty) { margin-bottom: 14px; }
.tile { position: relative; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--soft); cursor: grab; }
.tile img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; pointer-events: none; }
.tile.is-new { border-color: var(--ok); }
.tile.is-dragging { opacity: 0.35; }
.tile-no {
  position: absolute; left: 0; top: 0; min-width: 24px; padding: 2px 6px;
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; text-align: center; line-height: 1.5;
}
.tile.is-new .tile-no { background: var(--ok); }
.tile-actions { display: flex; border-top: 1px solid var(--line); background: #fff; }
.tile-actions button { flex: 1; min-width: 0; height: 34px; padding: 0; background: none; border: 0; font-size: 15px; cursor: pointer; }
.tile-actions button + button { border-left: 1px solid var(--line); }
.tile-actions button:hover { background: var(--soft); }
.tile-actions button[data-act=del] { color: var(--accent); font-size: 18px; }
.tile:first-child [data-act=prev], .tile:last-child [data-act=next] { color: var(--line-2); }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tab {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px;
  background: #fff; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 14px; font-weight: 600; white-space: nowrap; transition: border-color 0.15s;
}
.tab span { color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.tab:hover { border-color: var(--ink); }
.tab.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.tab.is-on span { color: #cfcac2; }
.rows { background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row-img { flex: none; width: 64px; height: 64px; object-fit: cover; background: var(--soft); }
.row.is-hidden .row-img { opacity: 0.4; }
.row-main { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; }
.row-name { font-weight: 700; letter-spacing: -0.02em; }
a.row-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.row-meta { color: var(--ink-3); font-size: 13px; }
.state { flex: none; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.state.on { background: var(--ok-soft); color: var(--ok); }
.state.off { background: var(--soft); color: var(--ink-3); }
.state.draft { background: #fbf3d6; color: #7a5b00; }
.state.soldout { background: #fbeaea; color: var(--red); }
.bulk { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px 10px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input, .row-check { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.bulk-actions { display: flex; gap: 6px; }
.bulk button:disabled { opacity: 0.4; cursor: default; }
.row-noimg { display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--ink-3); }
.row-name.is-blank { color: var(--ink-3); font-weight: 500; }
.btn-danger { color: var(--accent); }
.btn-danger:hover { border-color: var(--accent); }
.row-actions { display: flex; gap: 6px; margin-left: auto; }
/* 휴대폰: 상태 표시와 단추는 늘 아랫줄로 */
@media (max-width: 767px) { .row-main { flex-basis: calc(100% - 120px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
