/* ==========================================================================
   CGI 상품 카탈로그 — 공통 스타일
   - 회사 홈페이지(website/assets/style.css)와 같은 브랜드 토큰을 사용한다.
     · 공식 그린 #07913A · 블랙 #0d0d0d · 뉴트럴 배경 #f6f6f4
     · Pretendard/Noto Sans KR 폰트 스택 · 4px 기반 라운드
   - 390 / 820 / 1440 / 1920 에서 가로 오버플로가 없도록 구성한다.
   ========================================================================== */

:root {
  --cgi-primary: #07913A;
  --cgi-primary-dark: #05702e;
  --cgi-primary-soft: #eaf6ee;
  --cgi-primary-line: #cfe6d6;
  --cgi-black: #0d0d0d;
  --cgi-ink: #1c1c1c;
  --cgi-muted: #5d5d5d;
  --cgi-line: #e2e2e2;
  --cgi-line-soft: #efefed;
  --cgi-bg: #f6f6f4;
  --cgi-card: #ffffff;
  --cgi-danger: #b42318;
  --cgi-danger-soft: #fef3f2;
  --cgi-warn: #a15c00;
  --cgi-warn-soft: #fff6e8;
  --cgi-ok: #067647;
  --cgi-ok-soft: #ecfdf3;
  --radius: 8px;
  --radius-sm: 5px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, .09);
  --maxw: 1240px;
  --header-h: 68px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cgi-bg);
  color: var(--cgi-ink);
  font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  word-break: keep-all;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; letter-spacing: -.4px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--cgi-primary); color: #fff; padding: 10px 18px;
}
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid #e3a008; outline-offset: 2px; }

/* -------------------------------- header -------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--cgi-black);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; min-height: var(--header-h);
  display: flex; align-items: center; gap: 22px; padding: 0 24px;
}
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand img { width: 128px; height: auto; }
.brand-divider { width: 1px; height: 26px; background: #343434; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { color: #fff; font-size: 15px; letter-spacing: -.2px; }
.brand-text small { color: #9a9a9a; font-size: 10px; letter-spacing: .14em; font-weight: 600; }

.nav-toggle {
  display: none; margin-left: auto; width: 42px; height: 42px; padding: 0;
  place-items: center; background: none; border: 1px solid #3a3a3a; border-radius: 6px;
}
.nav-toggle .bars { display: grid; gap: 5px; }
.nav-toggle .bars i { display: block; width: 19px; height: 2px; background: #fff; transition: transform .18s ease, opacity .18s ease; }
.site-header.nav-open .nav-toggle .bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle .bars i:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle .bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.search-form { flex: 1 1 auto; display: flex; max-width: 520px; min-width: 0; }
.search-form input {
  flex: 1 1 auto; min-width: 0; height: 40px; padding: 0 14px;
  border: 1px solid #fff; border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: #fff; color: var(--cgi-ink);
}
.search-form input::placeholder { color: #8a8a8a; }
.search-form input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--cgi-primary); }
.btn-search {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 18px; border: 1px solid var(--cgi-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--cgi-primary); color: #fff; font-weight: 700; font-size: 14px;
  transition: background .15s ease;
}
.btn-search:hover { background: var(--cgi-primary-dark); border-color: var(--cgi-primary-dark); }

.header-nav { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; margin-left: auto; }
.header-nav a {
  color: #cfcfcf; font-size: 13.5px; font-weight: 600; letter-spacing: .02em;
  padding: 24px 11px; border-bottom: 3px solid transparent; white-space: nowrap;
  transition: color .15s ease, border-color .15s ease;
}
.header-nav a:hover { color: #fff; }
.header-nav a.is-active { color: #fff; border-bottom-color: var(--cgi-primary); }

/* ------------------------------ notice bar ------------------------------ */
.notice-bar {
  background: #f0f7f2; border-bottom: 1px solid var(--cgi-primary-line);
  color: #225c39; font-size: 12.5px; padding: 8px 24px; text-align: center;
}
.notice-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cgi-primary); margin-right: 8px; vertical-align: middle;
}

/* -------------------------------- layout -------------------------------- */
.app {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 30px 24px 72px; flex: 1 0 auto;
}
.loading { padding: 90px 0; text-align: center; color: var(--cgi-muted); }

.breadcrumb {
  font-size: 12.5px; color: var(--cgi-muted); margin-bottom: 14px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
}
.breadcrumb > * { flex: 0 0 auto; }
.breadcrumb > :last-child {
  flex: 0 1 auto; min-width: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.breadcrumb a { display: inline-block; padding: 3px 0; }
.breadcrumb a:hover { color: var(--cgi-primary); text-decoration: underline; }
.breadcrumb .home-link { margin-left: 8px; padding-left: 10px; border-left: 1px solid var(--cgi-line); }

.page-head { margin-bottom: 22px; }
.page-eyebrow {
  margin: 0 0 6px; color: var(--cgi-primary); font-size: 11px; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase;
}
.page-head h1 { font-size: 29px; font-weight: 800; letter-spacing: -1px; }
.page-sub { margin: 6px 0 0; color: var(--cgi-muted); font-size: 13.5px; }

/* --------------------------------- home --------------------------------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(900px 320px at 88% -30%, rgba(255, 255, 255, .2), transparent 62%),
    radial-gradient(700px 300px at 0% 130%, rgba(0, 0, 0, .22), transparent 70%),
    linear-gradient(120deg, #04662a 0%, var(--cgi-primary) 55%, #0aa044 100%);
  color: #fff; border-radius: var(--radius); padding: 42px 40px 38px; margin-bottom: 26px;
}
.hero-eyebrow {
  margin: 0 0 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .22em;
  color: #b9e6c9; text-transform: uppercase;
}
.hero h1 { font-size: 31px; font-weight: 800; letter-spacing: -1.1px; margin-bottom: 8px; }
.hero-copy { max-width: 660px; margin: 0 0 22px; color: #dcefe2; font-size: 14.5px; }
.hero-search { display: flex; gap: 8px; max-width: 620px; }
.hero-search input {
  flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 16px;
  border: 0; border-radius: var(--radius-sm); background: #fff; color: var(--cgi-ink);
}
.hero-search input::placeholder { color: #8a8a8a; }
.hero-search button {
  flex: 0 0 auto; height: 48px; padding: 0 24px; border: 0; border-radius: var(--radius-sm);
  background: var(--cgi-black); color: #fff; font-weight: 800;
}
.hero-search button:hover { background: #262626; }

.stat-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px; margin: 0 0 34px;
}
.stat-card {
  background: var(--cgi-card); border: 1px solid var(--cgi-line); border-top: 3px solid var(--cgi-primary);
  border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-sm);
  min-width: 0;
}
.stat-card dt { font-size: 11.5px; color: var(--cgi-muted); margin: 0 0 4px; font-weight: 600; }
.stat-card dd {
  margin: 0; font-size: 21px; font-weight: 800; color: var(--cgi-ink); letter-spacing: -.5px;
  overflow-wrap: anywhere;
}
.stat-card dd small {
  display: block; margin-top: 3px; color: var(--cgi-muted);
  font-size: 10.5px; font-weight: 500; letter-spacing: 0;
}

.section { margin-bottom: 36px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.section-head h2 { font-size: 19px; font-weight: 800; }
.section-head .more { color: var(--cgi-primary); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.section-head .more:hover { text-decoration: underline; }

.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--cgi-line); background: #fff; color: var(--cgi-ink);
  border-radius: 999px; padding: 7px 13px; font-size: 12.5px; font-weight: 600;
  transition: border-color .14s ease, background .14s ease, color .14s ease;
}
.chip:hover { border-color: var(--cgi-primary); color: var(--cgi-primary-dark); background: var(--cgi-primary-soft); }
.chip .cnt { color: var(--cgi-muted); font-weight: 500; font-size: 11px; }
.chip.is-on { background: var(--cgi-primary); border-color: var(--cgi-primary); color: #fff; }
.chip.is-on .cnt { color: #d9f0e1; }
.chip-more { margin-top: 12px; }
.chip-more summary {
  display: inline-flex; align-items: center; gap: 6px; list-style: none;
  color: var(--cgi-primary-dark); font-size: 12.5px; font-weight: 700; cursor: pointer;
  padding: 7px 13px; border: 1px dashed var(--cgi-primary-line); border-radius: 999px;
  background: var(--cgi-primary-soft);
}
.chip-more summary::-webkit-details-marker { display: none; }
.chip-more summary::after { content: "+"; font-weight: 800; }
.chip-more[open] summary::after { content: "−"; }
.chip-more .chip-row { margin-top: 10px; }

.home-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: var(--cgi-black); color: #fff; border-radius: var(--radius);
  padding: 24px 28px;
}
.home-cta h2 { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.home-cta p { margin: 0; color: #bfbfbf; font-size: 13px; }
.home-cta .btn { flex: 0 0 auto; }

/* ------------------------------ product grid ---------------------------- */
.product-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.product-card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--cgi-card); border: 1px solid var(--cgi-line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.product-card:hover { transform: translateY(-2px); border-color: #c9d8ce; box-shadow: var(--shadow-md); }
.thumb {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; background: #fff; border-bottom: 1px solid var(--cgi-line-soft);
}
.card-img { width: 100%; height: 100%; object-fit: contain; padding: 0; }
.thumb:hover .card-img { transform: scale(1.025); }
.thumb .card-img { transition: transform .22s ease; }
.card-img.no-image { transform: none; }
.badge {
  position: absolute; left: 10px; top: 10px; z-index: 1;
  font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  background: var(--cgi-primary-soft); color: var(--cgi-primary-dark);
}
.badge.inquiry { background: var(--cgi-warn-soft); color: var(--cgi-warn); }
.card-body { display: flex; flex-direction: column; gap: 5px; flex: 1 1 auto; padding: 12px 14px 15px; min-width: 0; }
.card-brand { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; color: var(--cgi-primary-dark); }
.card-name {
  margin: 0; font-size: 13.5px; font-weight: 700; line-height: 1.42; letter-spacing: -.2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.84em;
}
.card-model { font-size: 11.5px; color: var(--cgi-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.price { font-size: 15px; font-weight: 800; color: var(--cgi-ink); }
.price.inquiry { color: var(--cgi-warn); font-size: 13px; }
.card-site { font-size: 10.5px; color: var(--cgi-muted); white-space: nowrap; }

/* 이미지 대체 표시 */
.no-image {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  width: 100%; height: 100%; min-height: 96px; color: var(--cgi-muted); text-align: center;
  background:
    repeating-linear-gradient(135deg, #fafbf9 0 10px, #f4f6f2 10px 20px);
  font-size: 11.5px;
}
.no-image-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--cgi-primary-soft); color: var(--cgi-primary-dark);
  font-size: 10.5px; font-weight: 800; letter-spacing: .04em;
}
.gallery-no-image { border: 1px solid var(--cgi-line); border-radius: var(--radius); background-color: #fff; }

/* --------------------------------- list --------------------------------- */
.page-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.list-layout {
  display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 24px; align-items: start;
}
.filter-panel {
  position: sticky; top: calc(var(--header-h) + 16px);
  background: var(--cgi-card); border: 1px solid var(--cgi-line); border-radius: var(--radius);
  padding: 6px 16px 16px; box-shadow: var(--shadow-sm);
}
.filter-group { border-top: 1px solid var(--cgi-line-soft); padding: 0; }
.filter-group:first-of-type { border-top: 0; }
.filter-group > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 13px 2px; cursor: pointer; list-style: none;
  font-size: 12.5px; font-weight: 800; color: var(--cgi-ink);
}
.filter-group > summary::-webkit-details-marker { display: none; }
.filter-group > summary::after { content: "−"; color: var(--cgi-muted); font-weight: 600; }
.filter-group:not([open]) > summary::after { content: "+"; }
.facet-total {
  margin-left: auto; margin-right: 8px; color: var(--cgi-muted);
  font-size: 10.5px; font-weight: 600;
}
.filter-body { padding: 0 0 12px; }
.facet-search {
  width: 100%; height: 36px; margin-bottom: 8px; padding: 0 11px;
  border: 1px solid var(--cgi-line); border-radius: var(--radius-sm); background: #fbfbfa;
  font-size: 12.5px;
}
.facet-search:focus { background: #fff; border-color: var(--cgi-primary); outline: none; box-shadow: 0 0 0 2px var(--cgi-primary-soft); }
.filter-list { display: flex; flex-direction: column; gap: 1px; max-height: 218px; overflow: auto; padding-right: 3px; }
.filter-list label {
  display: flex; align-items: center; gap: 8px; padding: 5px 6px;
  border-radius: 5px; font-size: 12.5px; cursor: pointer; min-width: 0;
}
.filter-list label:hover { background: var(--cgi-primary-soft); }
.filter-list label[hidden] { display: none; }
.filter-list input { width: 15px; height: 15px; flex: none; accent-color: var(--cgi-primary); margin: 0; }
.filter-list label > span:first-of-type { min-width: 0; overflow-wrap: anywhere; }
.filter-list .cnt { margin-left: auto; color: var(--cgi-muted); font-size: 10.5px; flex: none; }
.filter-reset {
  width: 100%; height: 38px; margin-top: 13px;
  border: 1px solid var(--cgi-line); border-radius: var(--radius-sm);
  background: #fff; color: var(--cgi-ink); font-size: 12.5px; font-weight: 700;
}
.filter-reset:hover { border-color: var(--cgi-primary); color: var(--cgi-primary-dark); background: var(--cgi-primary-soft); }

.filter-toggle {
  display: none; width: 100%; height: 44px; margin-bottom: 12px;
  align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--cgi-primary-line); border-radius: var(--radius-sm);
  background: var(--cgi-primary-soft); color: var(--cgi-primary-dark);
  font-size: 13.5px; font-weight: 800;
}

.list-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 8px 14px; margin-bottom: 12px;
  background: #fff; border: 1px solid var(--cgi-line); border-radius: var(--radius);
  flex-wrap: wrap;
}
.result-count { font-size: 13px; color: var(--cgi-muted); }
.result-count b { color: var(--cgi-ink); font-size: 15px; }
.sort-select {
  height: 36px; padding: 0 10px; border: 1px solid var(--cgi-line);
  border-radius: var(--radius-sm); background: #fff; font-size: 12.5px;
}
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.active-filter {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px;
  border-radius: 999px; background: var(--cgi-primary-soft); color: var(--cgi-primary-dark);
  font-size: 11.5px; font-weight: 700; max-width: 100%; overflow-wrap: anywhere;
}
.active-filter button {
  border: 0; background: none; color: inherit; padding: 0 2px;
  font-size: 15px; line-height: 1;
}

.pagination { display: flex; justify-content: center; align-items: center; gap: 5px; margin-top: 30px; flex-wrap: wrap; }
.pagination button {
  min-width: 36px; height: 36px; padding: 0 10px;
  border: 1px solid var(--cgi-line); border-radius: var(--radius-sm);
  background: #fff; font-size: 12.5px; font-weight: 600;
}
.pagination button:hover:not(:disabled) { border-color: var(--cgi-primary); color: var(--cgi-primary-dark); }
.pagination button.is-current { background: var(--cgi-primary); border-color: var(--cgi-primary); color: #fff; }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }

.empty-state {
  background: var(--cgi-card); border: 1px dashed #cfd8d1; border-radius: var(--radius);
  padding: 58px 24px; text-align: center;
}
.empty-icon {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--cgi-primary-soft); color: var(--cgi-primary-dark);
  font-size: 20px; font-weight: 800;
}
.empty-state h3 { margin: 0 0 6px; font-size: 17px; font-weight: 800; }
.empty-state p { margin: 0 0 18px; color: var(--cgi-muted); font-size: 13px; }
.empty-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

/* -------------------------------- detail -------------------------------- */
.detail-grid {
  display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  gap: 42px; align-items: start;
}
.gallery-main {
  position: relative; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 24px; background: #fff;
  border: 1px solid var(--cgi-line); border-radius: var(--radius);
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumbs button {
  width: 68px; height: 68px; padding: 4px; overflow: hidden;
  border: 1px solid var(--cgi-line); border-radius: var(--radius-sm); background: #fff;
}
.gallery-thumbs button[hidden] { display: none; }
.gallery-thumbs button:hover { border-color: #b9cbbb; }
.gallery-thumbs button.is-active { border-color: var(--cgi-primary); box-shadow: 0 0 0 2px var(--cgi-primary-soft); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }

.detail-title { font-size: 26px; font-weight: 800; letter-spacing: -.7px; margin-bottom: 7px; overflow-wrap: anywhere; }
.detail-sub { color: var(--cgi-muted); font-size: 13px; margin: 0 0 16px; }
.detail-price-row {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 15px 18px; margin-bottom: 8px;
  background: #fff; border: 1px solid var(--cgi-line); border-left: 4px solid var(--cgi-primary);
  border-radius: var(--radius-sm);
}
.detail-price { font-size: 27px; font-weight: 800; letter-spacing: -.8px; }
.detail-price.inquiry { color: var(--cgi-warn); font-size: 21px; }
.detail-price-note { font-size: 12px; color: var(--cgi-muted); line-height: 1.55; }

.detail-cta { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px; }
.detail-cta .btn { flex: 1 1 auto; }
.detail-cta-note { font-size: 12px; color: var(--cgi-muted); margin: 0 0 20px; }

.spec-table {
  width: 100%; border-collapse: collapse;
  background: #fff; border: 1px solid var(--cgi-line); border-radius: var(--radius);
  overflow: hidden;
}
.spec-table th, .spec-table td {
  text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--cgi-line-soft);
  font-size: 12.5px; vertical-align: top; overflow-wrap: anywhere;
}
.spec-table th { width: 142px; background: #fafbf8; color: var(--cgi-muted); font-weight: 700; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.detail-block { margin-top: 24px; }
.detail-block h3 { font-size: 15px; font-weight: 800; margin-bottom: 10px; }
.source-box {
  background: var(--cgi-primary-soft); border: 1px solid var(--cgi-primary-line);
  border-radius: var(--radius); padding: 13px 16px; font-size: 12.5px;
}
.source-box dl { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 6px 12px; margin: 0; }
.source-box dt { color: var(--cgi-muted); }
.source-box dd { margin: 0; overflow-wrap: anywhere; }
.source-box a { color: var(--cgi-primary-dark); text-decoration: underline; font-weight: 600; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 26px;
  color: var(--cgi-primary-dark); font-size: 13px; font-weight: 700;
}
.back-link:hover { text-decoration: underline; }

.service-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 12px 0 4px; }
.service-check {
  display: flex; align-items: flex-start; gap: 9px; min-width: 0;
  padding: 11px 13px; border: 1px solid var(--cgi-line); border-radius: var(--radius-sm);
  background: #fff; cursor: pointer; transition: border-color .14s ease, background .14s ease;
}
.service-check:hover { border-color: #b9cbbb; }
.service-check input { width: 17px; height: 17px; flex: none; margin: 2px 0 0; accent-color: var(--cgi-primary); }
.service-check strong { display: block; font-size: 13px; color: var(--cgi-ink); }
.service-check span { display: block; margin-top: 2px; color: var(--cgi-muted); font-size: 11.5px; line-height: 1.5; }
.service-check:has(input:checked) { border-color: var(--cgi-primary); background: var(--cgi-primary-soft); box-shadow: inset 0 0 0 1px var(--cgi-primary); }

.mobile-cta { display: none; }

/* ------------------------------- quote form ----------------------------- */
.quote-form { display: grid; gap: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quote-form label { display: grid; gap: 5px; font-size: 12.5px; font-weight: 700; color: #333; min-width: 0; }
.quote-form input, .quote-form textarea {
  width: 100%; padding: 0 12px; border: 1px solid #cfcfcf; border-radius: var(--radius-sm);
  background: #fff; font-size: 14px; font-weight: 400;
}
.quote-form input { height: 44px; }
.quote-form textarea { padding: 11px 12px; resize: vertical; min-height: 96px; }
.quote-form input:focus, .quote-form textarea:focus {
  border-color: var(--cgi-primary); outline: none; box-shadow: 0 0 0 3px var(--cgi-primary-soft);
}
.form-span { grid-column: 1 / -1; }
.form-note { font-size: 11.5px; color: var(--cgi-muted); margin: 0; }
.quote-result { margin-top: 10px; }
.quote-result .result-ok {
  background: var(--cgi-ok-soft); border: 1px solid #abefc6; color: #05603a;
  border-radius: var(--radius-sm); padding: 11px 13px; font-size: 13px;
}
.quote-result .result-warn {
  background: var(--cgi-warn-soft); border: 1px solid #fedf89; color: #93370d;
  border-radius: var(--radius-sm); padding: 11px 13px; font-size: 12.5px;
}
.quote-text {
  white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 12px; padding: 14px 16px;
  background: #fafbf8; border: 1px solid var(--cgi-line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 12px; line-height: 1.65; color: #444;
}

/* --------------------------------- cart --------------------------------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
.cart-panel {
  background: #fff; border: 1px solid var(--cgi-line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-sm);
}
.cart-panel + .cart-panel { margin-top: 16px; }
.cart-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.cart-panel-head h2 { font-size: 15px; font-weight: 800; }
.cart-panel-head span { font-size: 11.5px; color: var(--cgi-muted); }

.cart-table { table-layout: fixed; }
.cart-table th, .cart-table td { padding: 11px 10px; vertical-align: middle; }
.cart-table th { width: auto; font-size: 11.5px; }
.cart-table th:nth-child(2) { width: 118px; }
.cart-table th:nth-child(3) { width: 132px; }
.cart-table th:nth-child(4) { width: 62px; }
.cart-table td { border-bottom: 1px solid var(--cgi-line-soft); }
.cart-table tr:last-child td { border-bottom: 0; }
.cart-product { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cart-thumb {
  width: 62px; height: 62px; flex: none; display: flex; align-items: center; justify-content: center;
  padding: 4px; border: 1px solid var(--cgi-line); border-radius: var(--radius-sm); background: #fff;
}
.cart-img { width: 100%; height: 100%; object-fit: contain; }
.cart-info { min-width: 0; }
.cart-name {
  display: block; font-size: 13.5px; font-weight: 700; line-height: 1.4;
  overflow-wrap: anywhere;
}
.cart-name:hover { color: var(--cgi-primary-dark); text-decoration: underline; }
.cart-cat { display: block; margin-top: 2px; font-size: 11px; color: var(--cgi-muted); }
.cell-label { display: none; font-size: 10.5px; color: var(--cgi-muted); font-weight: 600; margin-right: 4px; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--cgi-line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.qty-stepper button {
  width: 32px; height: 34px; border: 0; background: #fff; color: var(--cgi-ink);
  font-size: 16px; line-height: 1;
}
.qty-stepper button:hover { background: var(--cgi-primary-soft); color: var(--cgi-primary-dark); }
.qty-stepper input {
  width: 44px; height: 34px; border: 0; border-left: 1px solid var(--cgi-line); border-right: 1px solid var(--cgi-line);
  text-align: center; font-size: 13px; font-weight: 700; -moz-appearance: textfield; appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper input:focus { outline: 2px solid var(--cgi-primary); outline-offset: -2px; }
.cart-remove {
  min-height: 32px; padding: 0 9px; border: 1px solid var(--cgi-line); border-radius: var(--radius-sm);
  background: #fff; color: var(--cgi-muted); font-size: 11.5px; font-weight: 700;
}
.cart-remove:hover { border-color: #f0b4ae; background: var(--cgi-danger-soft); color: var(--cgi-danger); }

.cart-request { position: sticky; top: calc(var(--header-h) + 16px); }
.cart-request .cart-panel { padding: 20px; }
.cart-request h2 { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.cart-request .panel-sub { font-size: 12px; color: var(--cgi-muted); margin: 0 0 14px; }
.cart-summary { margin-top: 16px; border-top: 1px solid var(--cgi-line-soft); padding-top: 14px; }
.cart-summary summary {
  cursor: pointer; list-style: none; font-size: 12.5px; font-weight: 700; color: var(--cgi-ink);
  display: flex; align-items: center; gap: 6px;
}
.cart-summary summary::-webkit-details-marker { display: none; }
.cart-summary summary::after { content: "+"; margin-left: auto; color: var(--cgi-muted); }
.cart-summary[open] summary::after { content: "−"; }
.cart-summary-body { padding-top: 12px; }
.cart-summary-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.cart-summary-actions .btn { min-height: 38px; padding: 0 13px; font-size: 12px; }
.cart-total-line {
  display: flex; justify-content: space-between; gap: 10px; padding: 12px 0 0;
  border-top: 1px solid var(--cgi-line-soft); margin-top: 12px;
  font-size: 12.5px; color: var(--cgi-muted);
}
.cart-total-line strong { color: var(--cgi-ink); }
.cart-service-block { margin-top: 16px; }
.cart-service-block h3 { font-size: 13px; font-weight: 800; margin-bottom: 4px; }
.cart-service-block .detail-price-note { margin-bottom: 8px; }

/* --------------------------------- about -------------------------------- */
.about-card {
  background: #fff; border: 1px solid var(--cgi-line); border-radius: var(--radius);
  padding: 30px 32px; max-width: 900px;
}
.about-card h2 { margin: 26px 0 8px; font-size: 17px; font-weight: 800; }
.about-card h2:first-child { margin-top: 0; }
.about-card p, .about-card li { font-size: 13.5px; color: #3f3f3f; }
.about-card ul { margin: 0 0 4px; padding-left: 18px; list-style: disc; }
.about-card li { margin-bottom: 5px; }
.about-contact {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  margin: 14px 0 4px; padding: 16px; background: var(--cgi-primary-soft);
  border: 1px solid var(--cgi-primary-line); border-radius: var(--radius-sm);
  font-size: 13px;
}
.about-contact dt { font-size: 11px; color: var(--cgi-muted); font-weight: 700; margin-bottom: 2px; }
.about-contact dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.about-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* --------------------------------- footer -------------------------------- */
.site-footer { flex-shrink: 0; background: var(--cgi-black); color: #b9b9b9; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 36px 24px 30px;
  display: grid; grid-template-columns: 1.1fr 1.2fr .9fr; gap: 32px;
}
.footer-brand img { width: 138px; height: auto; margin-bottom: 12px; }
.footer-brand p { margin: 0; color: #cfcfcf; font-size: 12.5px; line-height: 1.7; }
.footer-contact h2, .footer-links h2 { color: #fff; font-size: 12.5px; font-weight: 800; margin: 0 0 10px; letter-spacing: .04em; }
.footer-contact p { margin: 0 0 5px; font-size: 12px; color: #b0b0b0; line-height: 1.65; }
.footer-contact a { color: #fff; }
.footer-contact a:hover { color: #7fd79d; }
.footer-links ul { display: grid; gap: 4px; }
.footer-links a { display: inline-block; padding: 3px 0; color: #cfcfcf; font-size: 12px; }
.footer-links a:hover { color: #7fd79d; }
.footer-bottom {
  max-width: var(--maxw); margin: 0 auto; padding: 18px 24px 26px;
  border-top: 1px solid #2a2a2a; display: flex; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer-bottom p { margin: 0; font-size: 11.5px; color: #8d8d8d; line-height: 1.6; }
.footer-bottom p:last-child { max-width: 700px; }
.staff-footer { padding-top: 26px; }

/* --------------------------------- staff --------------------------------- */
.staff-app { max-width: 1080px; }
.staff-toolbar {
  background: #fff; border: 1px solid var(--cgi-line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.import-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.file-pick {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 14px; border: 1px dashed var(--cgi-primary);
  border-radius: var(--radius-sm); background: var(--cgi-primary-soft);
  color: var(--cgi-primary-dark); font-size: 12.5px; font-weight: 800; cursor: pointer;
}
.file-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-name { font-size: 12px; color: var(--cgi-muted); min-width: 0; overflow-wrap: anywhere; }
.toolbar-note { margin: 10px 0 0; font-size: 11.5px; color: var(--cgi-muted); }

.request-list { display: grid; gap: 10px; }
.request-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #fff; border: 1px solid var(--cgi-line); border-radius: var(--radius);
  padding: 15px 18px; box-shadow: var(--shadow-sm);
}
.request-main { min-width: 0; }
.request-id { display: block; color: var(--cgi-primary-dark); font-size: 11px; font-weight: 800; letter-spacing: .03em; }
.request-company { display: block; font-size: 15px; font-weight: 800; margin: 1px 0 3px; overflow-wrap: anywhere; }
.request-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11.5px; color: var(--cgi-muted); }
.request-meta span { display: inline-flex; align-items: center; gap: 4px; }
.request-actions { flex: 0 0 auto; display: flex; gap: 6px; align-items: center; }
.status-badge {
  display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; background: #f2f4f7; color: #475467;
}
.status-badge.quoted { background: var(--cgi-primary-soft); color: var(--cgi-primary-dark); }
.status-badge.completed { background: var(--cgi-ok-soft); color: var(--cgi-ok); }
.status-badge.cancelled { background: var(--cgi-danger-soft); color: var(--cgi-danger); }

.staff-app .detail-block {
  background: #fff; border: 1px solid var(--cgi-line); border-radius: var(--radius);
  padding: 20px; margin-top: 18px; box-shadow: var(--shadow-sm);
}
.staff-app .detail-block h3 { font-size: 16px; }
.staff-app .detail-block > p { font-size: 12.5px; color: var(--cgi-muted); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 12px 0; }
.table-scroll .spec-table { min-width: 660px; }
.table-scroll .spec-table th, .table-scroll .spec-table td { font-size: 12px; }
.table-scroll input[type="number"] {
  width: 96px; max-width: 100%; height: 34px; padding: 0 8px;
  border: 1px solid #cfcfcf; border-radius: var(--radius-sm);
}
.staff-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.staff-actions select {
  height: 38px; padding: 0 9px; border: 1px solid var(--cgi-line);
  border-radius: var(--radius-sm); background: #fff; font-size: 12px;
}
.staff-empty { padding: 48px 20px; text-align: center; color: var(--cgi-muted); font-size: 13px; background: #fff; border: 1px dashed #cfd8d1; border-radius: var(--radius); }

/* --------------------------------- toast --------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120;
  transform: translate(-50%, 10px); opacity: 0; pointer-events: none;
  max-width: calc(100vw - 32px); padding: 12px 18px;
  background: #161616; color: #fff; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; box-shadow: 0 8px 28px rgba(0, 0, 0, .28);
  transition: opacity .18s ease, transform .18s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* --------------------------------- buttons ------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 0 19px; border: 1px solid transparent;
  border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 800;
  letter-spacing: -.2px; text-align: center; transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn[hidden] { display: none !important; }
.btn-primary { background: var(--cgi-primary); color: #fff; border-color: var(--cgi-primary); }
.btn-primary:hover { background: var(--cgi-primary-dark); border-color: var(--cgi-primary-dark); }
.btn-secondary { background: #fff; color: var(--cgi-ink); border-color: #cfcfcf; }
.btn-secondary:hover { border-color: var(--cgi-primary); color: var(--cgi-primary-dark); background: var(--cgi-primary-soft); }
.btn-danger { background: #fff; color: var(--cgi-danger); border-color: #f0b4ae; }
.btn-danger:hover { background: var(--cgi-danger-soft); }
.btn-google {
  background: #fff; color: #3c4043; border-color: #dadce0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-google:hover { background: #f7f8fa; border-color: #c7c8cc; }
.btn-google svg { width: 16px; height: 16px; }
.auth-divider {
  display: flex; align-items: center; margin: 16px 0;
  color: var(--cgi-muted); font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: #e8e8e8;
}
.auth-divider span { padding: 0 12px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 14.5px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: wait; }

/* ------------------------------ responsive ------------------------------- */
@media (max-width: 1099px) {
  .header-inner { gap: 14px; }
  .brand img { width: 112px; }
  .brand-text small { display: none; }
  .header-nav a { padding: 24px 8px; font-size: 13px; }
  .search-form { max-width: 420px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 28px; }
  .cart-layout { grid-template-columns: minmax(0, 1fr); }
  .cart-request { position: static; }
  .footer-inner { grid-template-columns: 1.1fr 1.2fr; }
  .footer-links { grid-column: 1 / -1; }
}

@media (max-width: 899px) {
  :root { --header-h: 60px; }
  .header-inner { flex-wrap: wrap; padding: 10px 16px; gap: 10px; }
  .brand img { width: 118px; }
  .brand-divider { display: none; }
  .brand-text strong { font-size: 14px; }
  .nav-toggle { display: grid; }
  .search-form { order: 3; flex: 1 1 100%; max-width: none; }
  .header-nav {
    order: 4; display: none; flex-direction: column; align-items: stretch;
    width: 100%; margin: 0; gap: 0; border-top: 1px solid #2a2a2a;
  }
  .site-header.nav-open .header-nav { display: flex; }
  .header-nav a {
    padding: 12px 4px; border-bottom: 1px solid #232323; border-left: 3px solid transparent;
    font-size: 14px;
  }
  .header-nav a.is-active { border-bottom-color: #232323; border-left-color: var(--cgi-primary); padding-left: 10px; }
  .notice-bar { font-size: 11.5px; padding: 7px 16px; }

  .app { padding: 22px 16px 60px; }
  .hero { padding: 30px 22px 26px; border-radius: var(--radius); }
  .hero h1 { font-size: 25px; }
  .hero-copy { font-size: 13.5px; }
  .stat-row { gap: 10px; margin-bottom: 28px; }
  .thumb { padding: 12px; }
  .page-head h1 { font-size: 25px; }

  .filter-panel { position: static; }
  .filter-toggle { display: flex; }
  .filter-panel[hidden] { display: none; }
  .list-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }

  .detail-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .gallery-main { padding: 18px; }
  .detail-title { font-size: 22px; }

  .mobile-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--cgi-line);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, .08);
  }
  .mobile-cta-price { flex: 1 1 auto; min-width: 0; line-height: 1.3; }
  .mobile-cta-price small { display: block; font-size: 10.5px; color: var(--cgi-muted); }
  .mobile-cta-price strong {
    display: block; font-size: 14.5px; color: var(--cgi-ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .mobile-cta .btn { flex: 0 0 auto; min-width: 148px; }
  body[data-view="detail"] .app { padding-bottom: 96px; }
  body[data-view="detail"] .site-footer { padding-bottom: 74px; }
  .toast { bottom: 86px; }

  .cart-request { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; padding: 30px 16px 24px; }
  .footer-links { grid-column: auto; }
  .footer-bottom { padding: 16px 16px 22px; }
}

@media (max-width: 719px) {
  .cart-table { table-layout: auto; border: 0; background: transparent; }
  .cart-table thead { display: none; }
  .cart-table tbody { display: grid; gap: 10px; }
  .cart-table tr {
    position: relative;
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "prod prod" "price qty";
    gap: 10px 12px; padding: 13px;
    border: 1px solid var(--cgi-line); border-radius: var(--radius); background: #fff;
  }
  .cart-table td { display: block; padding: 0; border: 0; }
  .cart-table .c-product { grid-area: prod; padding-right: 52px; }
  .cart-table .c-price { grid-area: price; display: flex; align-items: center; }
  .cart-table .c-qty { grid-area: qty; justify-self: end; }
  .cart-table .c-remove { grid-area: remove; position: absolute; top: 10px; right: 10px; }
  .cell-label { display: inline; }
  .cart-product { gap: 10px; align-items: flex-start; }
  .cart-thumb { width: 52px; height: 52px; }
  .cart-name { font-size: 13px; }
  .cart-panel { padding: 14px; }
}

@media (max-width: 639px) {
  body { font-size: 14.5px; }
  .app { padding: 18px 14px 54px; }
  .hero { padding: 26px 18px 24px; }
  .hero h1 { font-size: 23px; }
  .hero-search { flex-direction: column; }
  .hero-search input, .hero-search button { width: 100%; }
  .stat-card { padding: 12px 13px; }
  .stat-card dd { font-size: 18px; }
  .section { margin-bottom: 30px; }
  .page-head h1 { font-size: 23px; }
  .page-head { margin-bottom: 16px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .thumb { padding: 10px; }
  .card-body { padding: 10px 11px 13px; }
  .card-name { font-size: 12.5px; min-height: 2.84em; }
  .price { font-size: 14px; }
  .card-site { display: none; }
  .detail-cta { flex-direction: column; }
  .detail-cta .btn { width: 100%; }
  .service-checks { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-span { grid-column: auto; }
  .detail-price { font-size: 23px; }
  .spec-table th { width: 104px; }
  .source-box dl { grid-template-columns: 1fr; gap: 2px; }
  .source-box dt { margin-top: 6px; }
  .home-cta { flex-direction: column; align-items: flex-start; padding: 20px; }
  .home-cta .btn { width: 100%; }
  .about-card { padding: 22px 18px; }
  .about-contact { grid-template-columns: minmax(0, 1fr); }
  .request-card { flex-direction: column; align-items: stretch; }
  .request-actions { justify-content: space-between; }
  .request-actions .btn { flex: 1 1 auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .staff-app .detail-block { padding: 15px; }
  .toast { bottom: 18px; }
}

@media (max-width: 399px) {
  .brand-text { display: none; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-cta .btn { min-width: 132px; }
}

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

/* ============================================================
   주문·결제 화면 (issue #67)
   ============================================================ */
.order-page { max-width: 1080px; margin: 0 auto; padding: 28px 20px 56px; }

.order-flash {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 18px;
}
.order-flash.flash-warn { background: var(--cgi-warn-soft); color: var(--cgi-warn); border: 1px solid #ffd9a8; }
.order-flash.flash-error { background: var(--cgi-danger-soft); color: var(--cgi-danger); border: 1px solid #f3c1bd; }
.order-flash.flash-ok { background: var(--cgi-ok-soft); color: var(--cgi-ok); border: 1px solid #b7e3c8; }

.order-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.order-fieldset {
  border: 1px solid var(--cgi-line);
  border-radius: 12px;
  background: var(--cgi-card);
  padding: 18px 20px 20px;
  margin: 0;
}
.order-fieldset legend { font-weight: 700; font-size: 15px; padding: 0 6px; }
.order-fieldset label {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--cgi-muted);
}
.order-fieldset label:first-of-type { margin-top: 6px; }
.order-fieldset input,
.order-fieldset textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid var(--cgi-line);
  border-radius: 8px;
  font-size: 15px;
  color: var(--cgi-ink);
  background: #fff;
  box-sizing: border-box;
  font-family: inherit;
}
.order-fieldset input:focus,
.order-fieldset textarea:focus {
  outline: none;
  border-color: var(--cgi-primary);
  box-shadow: 0 0 0 3px rgba(7, 145, 58, .12);
}
.order-summary {
  border: 1px solid var(--cgi-line);
  border-radius: 12px;
  background: var(--cgi-card);
  padding: 18px 20px 20px;
}
.order-summary h2 { margin: 0 0 12px; font-size: 16px; }
.order-summary-note { font-size: 12px; color: var(--cgi-muted); margin: 10px 0 0; }
.order-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--cgi-line);
  font-size: 15px;
  color: var(--cgi-muted);
}
.order-total strong { font-size: 20px; color: var(--cgi-ink); }
.order-total .muted { font-size: 12px; }

.order-items { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.order-items th,
.order-items td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--cgi-line-soft); vertical-align: top; }
.order-items thead th { color: var(--cgi-muted); font-weight: 600; border-bottom: 1px solid var(--cgi-line); }
.order-items small { display: block; color: var(--cgi-muted); font-size: 11.5px; }
.order-items td:last-child,
.order-items th:last-child { text-align: right; white-space: nowrap; }

.order-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.order-actions .btn-block { width: 100%; }

.quote-branch {
  border: 1px solid var(--cgi-primary-line);
  background: var(--cgi-primary-soft);
  border-radius: 12px;
  padding: 18px 20px 20px;
}
.quote-branch h2 { margin: 0 0 8px; font-size: 17px; color: var(--cgi-primary-dark); }
.quote-branch p { margin: 0 0 12px; font-size: 14px; color: var(--cgi-ink); }

.payment-card {
  max-width: 560px;
  margin: 0 auto;
  border: 1px solid var(--cgi-line);
  border-radius: 14px;
  background: var(--cgi-card);
  padding: 22px 24px 24px;
}
.payment-order { text-align: center; margin: 0 0 18px; }
.payment-order p { margin: 4px 0; font-size: 14px; color: var(--cgi-muted); }
.payment-order .order-total { justify-content: center; border-top: none; padding-top: 0; margin-top: 8px; }
.payment-methods { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.payment-methods label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1px solid var(--cgi-line);
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  background: #fff;
}
.payment-methods input { accent-color: var(--cgi-primary); }
#tossPayment { min-height: 4px; margin-bottom: 10px; }

.test-payment {
  border: 1px dashed #f0b429;
  background: var(--cgi-warn-soft);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--cgi-warn);
}
.test-payment p { margin: 0 0 6px; }
.test-payment-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #f0b429;
  font-size: 12px;
  font-weight: 700;
  color: var(--cgi-warn);
}

.complete-card {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--cgi-line);
  border-radius: 14px;
  background: var(--cgi-card);
  padding: 24px 26px 26px;
}
.complete-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
}
.complete-status { margin: 0 0 10px; font-size: 15px; }
.complete-card .order-total { justify-content: flex-start; }
.complete-card .muted { font-size: 13px; color: var(--cgi-muted); }
.muted { color: var(--cgi-muted); }

@media (max-width: 819px) {
  .order-columns { grid-template-columns: minmax(0, 1fr); }
  .order-items small { display: inline; }
}
@media (max-width: 399px) {
  .order-page { padding: 20px 14px 40px; }
  .order-summary, .order-fieldset, .payment-card, .complete-card { padding: 14px 14px 16px; }
  .order-items th, .order-items td { padding: 8px 5px; font-size: 12.5px; }
}

/* --------------------------- customer account (#69) --------------------------- */
.header-auth {
  display: flex; align-items: center; gap: 8px; flex: 0 0 auto; margin-left: 4px;
  padding-left: 14px; border-left: 1px solid #2f2f2f;
}
.auth-links-guest { display: flex; align-items: center; gap: 10px; }
.auth-links-member { display: flex; align-items: center; gap: 8px; }
.auth-links-guest a:not(.btn) { color: #cfcfcf; font-size: 13px; font-weight: 600; }
.auth-links-guest a:not(.btn):hover { color: #fff; }
.auth-links-member a { color: #fff; font-size: 13px; font-weight: 700; }
.auth-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.btn-small { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn-ghost { background: transparent; color: #cfcfcf; border-color: #3a3a3a; }
.btn-ghost:hover { background: #1f1f1f; color: #fff; border-color: #4a4a4a; }
.btn-small.btn-ghost { min-height: 30px; padding: 0 10px; font-size: 12.5px; }

.auth-page { padding: 6px 0 30px; }
.auth-card {
  background: var(--cgi-card); border: 1px solid var(--cgi-line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 30px 28px 32px; max-width: 480px; margin: 0 auto;
}
.auth-wide .auth-card { max-width: 640px; }
.auth-card h2 { font-size: 22px; margin-bottom: 6px; }
.auth-card > h2 + .auth-muted { margin-bottom: 18px; }

.auth-form { display: flex; flex-direction: column; gap: 13px; margin-top: 4px; }
.auth-field { display: flex; flex-direction: column; gap: 5px; }
.auth-field-row { flex-direction: row; align-items: center; gap: 8px; }
.auth-label { font-size: 13px; font-weight: 700; color: var(--cgi-ink); }
.auth-input {
  width: 100%; height: 44px; padding: 0 13px;
  border: 1px solid #cfcfcf; border-radius: var(--radius-sm); background: #fff;
  color: var(--cgi-ink); font-size: 14.5px;
}
.auth-input:focus { outline: none; border-color: var(--cgi-primary); box-shadow: inset 0 0 0 2px rgba(7,145,58,.18); }
.auth-input::placeholder { color: #9a9a9a; }
.auth-hint { font-size: 12px; color: var(--cgi-muted); line-height: 1.5; }
.auth-muted { font-size: 13.5px; color: var(--cgi-muted); margin: 0 0 14px; }
.auth-warn { color: var(--cgi-warn); font-weight: 700; }
.auth-alt { margin-top: 16px; font-size: 13.5px; color: var(--cgi-muted); text-align: center; }
.auth-alt a { color: var(--cgi-primary-dark); font-weight: 700; }
.auth-alt a:hover { text-decoration: underline; }

.auth-alert {
  border-radius: var(--radius-sm); padding: 11px 13px; font-size: 13.5px; font-weight: 600;
  margin: 12px 0 0; border: 1px solid var(--cgi-line);
}
.auth-alert-error { background: var(--cgi-danger-soft); border-color: #f0b4ae; color: var(--cgi-danger); }
.auth-alert-ok { background: var(--cgi-ok-soft); border-color: #a8e6c1; color: var(--cgi-ok); }
.auth-alert-info { background: var(--cgi-primary-soft); border-color: var(--cgi-primary-line); color: #225c39; }

@keyframes spin { to { transform: rotate(360deg); } }

/* email verification badge in header */
.auth-badge-verified {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  background: var(--cgi-ok-soft); color: var(--cgi-ok);
  border: 1px solid #a8e6c1; border-radius: 10px; padding: 2px 8px;
}
.auth-badge-unverified {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  background: #fff3e0; color: #e65100;
  border: 1px solid #ffcc80; border-radius: 10px; padding: 2px 8px;
}

/* -------------------------------- my page -------------------------------- */
.mypage { padding: 4px 0 30px; }
.mypage-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px;
  background: var(--cgi-card); border: 1px solid var(--cgi-line);
  border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.mypage-head h2 { font-size: 20px; }
.mypage-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.mypage-tab {
  padding: 8px 14px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 700;
  color: var(--cgi-muted); border: 1px solid transparent;
}
.mypage-tab:hover { color: var(--cgi-primary-dark); background: var(--cgi-primary-soft); }
.mypage-tab.is-active { color: var(--cgi-primary-dark); background: var(--cgi-primary-soft); border-color: var(--cgi-primary-line); }

.mypage-form {
  background: var(--cgi-card); border: 1px solid var(--cgi-line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 20px 20px 22px; margin-bottom: 16px;
}
.mypage-form h3 { font-size: 15.5px; margin-bottom: 14px; }
.mypage-danger { border-color: #f0b4ae; }
.mypage-danger h3 { color: var(--cgi-danger); }

.address-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 4px; }
.address-card {
  background: var(--cgi-card); border: 1px solid var(--cgi-line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 15px 16px;
}
.address-head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.address-head strong { font-size: 14.5px; }
.address-badge {
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
  background: var(--cgi-primary); color: #fff; border-radius: 4px; padding: 2px 7px;
}
.address-card p { font-size: 13.5px; margin-bottom: 5px; }
.address-card .btn { margin-top: 9px; }

.order-list { display: flex; flex-direction: column; gap: 12px; }
.order-card {
  background: var(--cgi-card); border: 1px solid var(--cgi-line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 16px 18px;
}
.order-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.order-id { font-weight: 700; font-size: 14.5px; color: var(--cgi-primary-dark); }
.order-status { font-size: 12px; font-weight: 700; background: var(--cgi-primary-soft); color: var(--cgi-primary-dark); border-radius: 4px; padding: 3px 9px; }
.order-total { font-size: 15.5px; font-weight: 800; margin-top: 7px; }

@media (max-width: 899px) {
  .header-auth { order: 5; width: 100%; border-left: 0; border-top: 1px solid #2a2a2a; padding: 10px 4px 12px; }
  .site-header:not(.nav-open) .header-auth { border-top: 0; padding: 0 0 4px; }
  .auth-links-guest a:not(.btn) { font-size: 13.5px; }
  .auth-card { padding: 22px 18px 24px; }
  .mypage-head { padding: 15px 16px; }
  .mypage-tabs { margin-left: 0; width: 100%; }
  .mypage-form { padding: 16px 15px 18px; }
}
@media (max-width: 399px) {
  .auth-card { padding: 18px 14px 20px; }
  .auth-input { height: 42px; }
}

/* The hidden attribute loses to the class-level display: rules above, so it
   has to be re-asserted explicitly for the auth switcher. */
.auth-links-guest[hidden], .auth-links-guest a[hidden], .auth-links-member[hidden], .header-nav a[hidden] { display: none !important; }
