:root {
  --ink: #141414;
  --muted: #6d727a;
  --line: #ececec;
  --bg: #f4f7f7;
  --card: #fff;
  --brand: #22676c;
  --brand-dark: #17494d;
  --brand-on-dark: #8fd4cf;
  --red: #b42318;
  --header: 118px;
}

* { box-sizing: border-box; }

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

body {
  min-height: 100vh;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

.wrap {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.mall-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #000;
  color: #fff;
  border-bottom: 1px solid #163033;
}

.topbar {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #000;
  border-bottom: 1px solid #1c2c2c;
  color: #9ec4c4;
  font-size: 12px;
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
}

.topbar nav { display: flex; gap: 14px; }
.topbar a:hover { color: #fff; }

.head {
  height: 72px;
  display: grid;
  grid-template-columns: auto minmax(280px, 640px) auto;
  align-items: center;
  gap: 28px;
}

.wordmark {
  display: flex;
  align-items: center;
  height: 58px;
  line-height: 0;
}

.wordmark img {
  height: 58px;
  width: auto;
}

.search {
  display: flex;
  height: 44px;
  border: 1.5px solid var(--brand);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0 16px;
  outline: none;
  color: var(--ink);
  background: #fff;
}

.search input::placeholder { color: #a0a4ab; }

.search button {
  width: 72px;
  border: 0;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.head-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.text-btn,
.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}

.account-name {
  max-width: 7em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-short { display: none; }

.topbar button {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.topbar button:hover { color: #fff; }

.cart-btn em {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: #e8883a;
  color: #fff;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 5px auto;
  background: #fff;
}

.gnb {
  display: flex;
  align-items: stretch;
  gap: 4px;
  height: 46px;
}

.gnb > a,
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.gnb > a:hover,
.nav-link:hover,
.nav-item:hover > .nav-link,
.nav-item:focus-within > .nav-link,
.is-current {
  color: var(--brand-on-dark);
}

.nav-item { display: flex; align-items: stretch; position: static; }

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  color: var(--ink);
  border-top: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.sheet-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  align-items: start;
  padding: 22px 0 28px;
  max-height: min(70vh, 640px);
  overflow: auto;
}

.sheet-all {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: 148px;
  padding: 18px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  align-self: start;
}

.sheet-all strong { font-size: 20px; letter-spacing: -0.04em; }
.sheet-all span { color: #c8c8c8; font-size: 13px; }

.sheet-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px 18px;
}

.sheet-label {
  margin: 0 0 8px;
  font-size: 12px;
  color: #9aa0a8;
}

.sheet-col + .sheet-col { margin-top: 12px; }

.sheet-cat {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--ink);
  font-weight: 800;
}

.sheet-col ul { margin: 0; padding: 0; list-style: none; }
.sheet-col li + li { margin-top: 3px; }
.sheet-col li a { font-size: 13px; color: #4b5160; }
.sheet-col a:hover { color: var(--brand); }

@media (min-width: 901px) {
  .nav-item:hover .sheet,
  .nav-item:focus-within .sheet {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

.hero {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  min-height: 380px;
  padding: 36px 0;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
}

.hero .eyebrow { color: var(--brand); }

.hero h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.hero p {
  margin: 14px 0 0;
  max-width: 460px;
  color: #3f4550;
  font-size: 16px;
  line-height: 1.6;
}

.hero-actions { display: flex; gap: 8px; margin-top: 22px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-dark { background: var(--brand); color: #fff; }
.btn-dark:hover { background: var(--brand-dark); }
.btn-line { background: #fff; border-color: #ddd; }

.hero-photo {
  justify-self: end;
  width: min(460px, 100%);
  padding: 24px;
  background: #f7f7f7;
  border-radius: 16px;
}

.hero-photo img { width: 100%; height: 300px; object-fit: contain; }
.hero-photo figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; text-align: center; }

.promo { padding: 22px 0 0; }
.promo-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 16px 22px;
  background: #fff;
  color: #3f4550;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.promo-banner > span {
  flex: none;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}
.promo-banner strong {
  display: grid;
  flex: 1;
  min-width: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.5;
}
.promo-banner strong > span {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.22, 1, .36, 1);
}
.promo-banner strong > span.is-on {
  opacity: 1;
  transform: none;
}
.promo-banner strong > span.is-leave {
  opacity: 0;
  transform: translateY(-8px);
}
@media (prefers-reduced-motion: reduce) {
  .promo-banner strong > span { transition: none; transform: none; }
}

.block { padding: 28px 0 8px; }
.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}
.block-head h2 { margin: 0; font-size: 22px; letter-spacing: -0.04em; }
.block-head a { color: var(--muted); font-size: 13px; font-weight: 700; }
.block-head a:hover { color: var(--ink); }

.rail {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 10px;
}

.rail a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 6px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
}

.rail a:hover { border-color: var(--brand); }

.rail-img {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}

.rail-img img { width: 72px; height: 72px; object-fit: contain; }
.rail-fallback {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: #f3f3f3;
}
.rail span { font-size: 12px; font-weight: 700; line-height: 1.3; }

.grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.card:hover { border-color: #ddd; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05); }

.card-photo {
  height: 180px;
  padding: 16px;
  background: #fff;
}

.card-photo img { width: 100%; height: 100%; object-fit: contain; }

.card-body { display: flex; flex-direction: column; gap: 4px; padding: 0 14px 14px; }
.card-brand { margin: 0; color: var(--muted); font-size: 12px; }
.card h3 { margin: 0; font-size: 14px; line-height: 1.4; font-weight: 700; }
.card-spec {
  margin: 0;
  color: #8b9098;
  font-size: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-price { margin: 6px 0 0; font-size: 16px; font-weight: 800; }
.card-price small { display: block; margin-bottom: 2px; color: var(--muted); font-size: 11px; font-weight: 600; }
.ask { color: #111; font-size: 14px; }
.badge {
  display: inline-block;
  margin-right: 6px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
}

.card-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 10px 0 0;
  height: 34px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

.card-add:hover { border-color: var(--brand); }

.page { padding: 22px 0 56px; }

.crumb { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.crumb a:hover { color: var(--ink); }

.page h1, .detail h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.lead { margin: 8px 0 0; color: #4c525c; line-height: 1.6; }

.layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 22px;
  margin-top: 18px;
}

.side {
  align-self: start;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.side a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.side a:hover, .side a.is-on { background: var(--brand); color: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.chips a {
  padding: 7px 12px;
  border-radius: 99px;
  background: #fff;
  border: 1px solid #e5e5e5;
  font-size: 13px;
  font-weight: 700;
}
.chips a.is-on, .chips a:hover { border-color: var(--brand); background: var(--brand); color: #fff; }

.empty {
  padding: 48px 16px;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  color: var(--muted);
}

.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.detail-photo {
  display: grid;
  place-items: center;
  min-height: 420px;
  background: #fafafa;
  border-radius: 12px;
}

.detail-photo img { width: min(420px, 100%); height: 380px; object-fit: contain; }
.detail .brand { margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.detail h1 { margin-top: 6px; font-size: 32px; }
.model { margin: 6px 0 0; color: #333; font-weight: 700; }
.spec { margin: 10px 0 0; color: #555; line-height: 1.5; }
.detail-price { margin: 22px 0 0; font-size: 28px; font-weight: 800; }
.detail-price small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; font-weight: 600; }
.detail .btn { margin-top: 18px; min-width: 160px; }

.sensor-grid, .info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.sensor, .info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.sensor img { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; background: #f6f6f6; }
.sensor strong, .info strong { font-size: 16px; }
.sensor span, .info span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.sensor em, .info em { margin-top: auto; font-style: normal; font-size: 13px; font-weight: 800; }

.footer {
  margin-top: 28px;
  background: #000;
  color: #d5e4e4;
  border-top: 3px solid var(--brand);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0;
  font-size: 13px;
}

.footer strong { color: #fff; font-size: 16px; }
.footer a:hover { color: #fff; }
.footer p { margin: 6px 0 0; }

.dim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 60;
  display: none;
}

.dim.is-on { display: block; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  width: min(400px, 100%);
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.drawer.is-on { transform: none; }

.drawer-head, .drawer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.drawer-foot {
  border-bottom: 0;
  border-top: 1px solid var(--line);
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.drawer-sum { display: flex; align-items: center; justify-content: space-between; }
.drawer-foot .btn { width: 100%; }
.drawer-head h2 { margin: 0; font-size: 18px; }
.drawer-head button, .qty button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.drawer-body { flex: 1; overflow: auto; padding: 8px 18px 18px; }
.cart-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f2f2f2;
}
.cart-row img { width: 64px; height: 64px; object-fit: contain; }
.cart-row strong { display: block; font-size: 14px; }
.cart-row p { margin: 4px 0; color: var(--muted); font-size: 12px; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 24px; height: 24px; border: 1px solid #e5e5e5; border-radius: 6px; }
.qty input {
  width: 52px;
  height: 28px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 0 4px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.qty input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.cart-empty { padding: 40px 0; text-align: center; color: var(--muted); }

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rail { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .sheet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .topbar span { display: none; }
  .head {
    height: auto;
    grid-template-columns: 1fr auto auto;
    padding: 12px 0;
    gap: 10px 12px;
  }
  .search { grid-column: 1 / -1; order: 3; }
  .nav-toggle { display: block; }
  .cart-btn span { display: none; }
  .gnb {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: auto;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 12px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.06);
    max-height: calc(100dvh - 140px);
    overflow: auto;
  }
  .gnb > a,
  .nav-link { color: var(--ink); }
  .gnb > a:hover,
  .nav-link:hover,
  .nav-item:hover > .nav-link,
  .nav-item:focus-within > .nav-link,
  .is-current { color: var(--brand); }
  .mall-header.is-open .gnb { display: flex; }
  .nav-item { flex-direction: column; align-items: stretch; }
  .nav-link, .gnb > a { min-height: 46px; }
  .sheet {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: 0;
    background: #fafafa;
  }
  .nav-item.is-open .sheet { display: block; }
  .sheet-inner, .sheet {
    width: 100%;
    max-width: none;
  }
  .sheet-inner { grid-template-columns: 1fr; max-height: none; padding: 8px 16px 16px; }
  .sheet-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner, .layout, .detail, .sensor-grid, .info-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .hero-photo img, .detail-photo { height: auto; min-height: 0; }
  .hero-photo img { height: 220px; }
  .promo-banner { align-items: flex-start; flex-direction: column; gap: 10px; padding: 18px; }
  .promo-banner strong { font-size: 17px; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 640px) {
  .wrap { width: min(1200px, calc(100% - 28px)); }
  .grid, .rail, .sheet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wordmark, .wordmark img { height: 46px; }
  .account-name { display: none; }
  .account-short { display: inline; }
  .text-btn { padding: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .drawer { transition: none; }
}

.auth, .stack-form, .summary, .order-card, .notice {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.auth {
  max-width: 440px;
  margin: 28px auto;
  padding: 28px;
}

.auth h1, .my-main h1, .checkout h1 { margin: 0 0 16px; font-size: 24px; }
.stack-form h2, .checkout h2, .summary h2 { margin: 18px 0 12px; font-size: 16px; }

.auth-tabs { display: flex; gap: 8px; margin-bottom: 18px; }

.auth-tabs button {
  flex: 1;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

.auth-tabs button.is-on { background: var(--brand); color: #fff; border-color: var(--brand); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field span { font-size: 13px; font-weight: 700; }

.field input, .field select {
  height: 44px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
}

.field input:disabled { background: #f6f6f6; color: var(--muted); }

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-size: 14px;
}

.form-error { min-height: 18px; margin: 0 0 8px; color: var(--red); font-size: 13px; }
.form-error.is-ok { color: var(--ink); }
.form-note, .muted, .status-note { color: var(--muted); font-size: 13px; line-height: 1.5; }
.empty-copy { color: var(--muted); }

button.btn { cursor: pointer; }
.auth .btn, .stack-form .btn, .summary .btn, .my-main > .btn { width: 100%; }

.my-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.my-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.my-side a, .my-side button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
}

.my-side a.is-on { background: var(--brand); color: #fff; }
.my-side button { color: var(--muted); }

.notice { margin: 0 0 14px; padding: 14px 16px; }

.order-card, .stack-form { padding: 16px; margin-bottom: 12px; }

.order-card header, .order-card footer, .pay-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-card header p, .order-card p { margin: 4px 0; color: var(--muted); font-size: 13px; }
.order-card footer { margin-top: 8px; }

.badge {
  padding: 4px 8px;
  border-radius: 99px;
  background: var(--brand);
  color: #fff;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.order-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #f2f2f2;
}

.order-item img { width: 64px; height: 64px; object-fit: contain; }
.order-item strong { display: block; }
.order-actions { display: flex; gap: 8px; margin-top: 8px; }
.order-actions .btn { width: auto; }

.steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.steps span {
  padding: 4px 8px;
  border-radius: 99px;
  background: #f3f3f3;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.steps span.is-on { background: var(--brand); color: #fff; }

.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.checkout > section, .summary { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.pay-bar { margin: 8px 0 14px; font-size: 16px; }

@media (max-width: 800px) {
  .my-layout, .checkout, .admin-layout { grid-template-columns: 1fr; }
  .my-side { flex-direction: row; flex-wrap: wrap; }
  .my-side a, .my-side button { width: auto; white-space: nowrap; }
}

.admin-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-cats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.admin-cats button {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.admin-cats button.is-on { background: var(--brand); color: #fff; }

.admin-product {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid #f2f2f2;
}

.admin-product img, .admin-product .rail-fallback {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.admin-actions, .admin-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.admin-actions .btn, .price-field {
  width: auto;
}

.price-field {
  height: 36px;
  width: 140px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 0 10px;
}

#payment-method,
#agreement { margin-top: 8px; }

.summary .btn:disabled { opacity: 0.45; cursor: default; }

.toss-result { max-width: 520px; }
.toss-result dl { margin: 8px 0 20px; }
.toss-result dt { margin-top: 12px; color: var(--muted); font-size: 13px; }
.toss-result dd { margin: 2px 0 0; font-weight: 700; word-break: break-all; }

.field input[readonly] { background: #f6f6f6; }

.zip-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.zip-row .btn {
  width: auto;
  height: 44px;
  margin-bottom: 12px;
  padding: 0 14px;
}

.addr-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }

.addr-card {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.addr-card:has(input:checked) { border-color: var(--brand); }
.addr-card strong { display: flex; align-items: center; gap: 8px; }
.addr-card p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.addr-card input { margin-top: 3px; }

#postcode-layer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.45);
}

#postcode-layer.is-open { display: flex; }

.postcode-sheet {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(500px, 100%);
  height: min(540px, 82vh);
  padding: 12px;
  background: #fff;
  border-radius: 16px;
}

.postcode-sheet .btn { width: auto; align-self: flex-end; }
#postcode-box { flex: 1; min-height: 0; }

.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.detail-actions .btn { margin-top: 18px; }

.quote-panel {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  margin-top: 18px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.quote-panel h2 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.04em; }
.quote-target { margin-top: 16px; }
.quote-target strong { display: block; font-size: 18px; }
.quote-target p { margin: 4px 0 0; color: var(--muted); }

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}

.quote-form textarea,
.field textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 12px;
  resize: vertical;
  background: #fff;
}

.quote-form .btn { margin-top: 8px; }

.quote-lines { margin: 12px 0 0; padding: 0; list-style: none; }
.quote-lines li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #f2f2f2;
}
.quote-lines img { width: 64px; height: 64px; object-fit: contain; }
.quote-lines p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.quote-done { padding: 8px 0 12px; }
.quote-done strong { display: block; margin-bottom: 8px; font-size: 18px; }
.quote-done p { margin: 4px 0; color: var(--muted); }

.admin-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.admin-tabs button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}
.admin-tabs button.is-on { background: var(--brand); color: #fff; border-color: var(--brand); }

.quote-day { margin-top: 22px; }
.quote-day h2 { margin: 0 0 10px; font-size: 18px; letter-spacing: -0.03em; }
.quote-day h2 span { margin-left: 8px; color: var(--muted); font-size: 13px; font-weight: 650; }
.inquiry-card { margin-bottom: 12px; }
.inquiry-fields { margin: 12px 0 0; }
.inquiry-fields > div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid #f2f2f2;
}
.inquiry-fields dt { color: var(--muted); font-size: 13px; }
.inquiry-fields dd { margin: 0; }
.inquiry-fields ul { margin: 0; padding-left: 16px; }
.inquiry-fields li + li { margin-top: 4px; }

.quote-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 14px;
}
.quote-bar .lead { margin: 0; flex: 1; }
.quote-spans { display: flex; flex-wrap: wrap; gap: 6px; }
.quote-spans button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 700;
  cursor: pointer;
}
.quote-spans button.is-on { background: var(--brand); color: #fff; border-color: var(--brand); }
.quote-sheet {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.quote-table { width: 100%; border-collapse: collapse; min-width: 860px; font-size: 13px; }
.quote-table th, .quote-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #f2f2f2;
  vertical-align: top;
  white-space: nowrap;
}
.quote-table th { background: #fafafa; color: var(--muted); font-size: 12px; font-weight: 700; }
.quote-row { cursor: pointer; }
.quote-row:hover td { background: #fafafa; }
.quote-row.is-open td { background: #f7f7f7; }
.quote-detail td { white-space: normal; background: #fff; }
.quote-detail .inquiry-fields { margin: 0; }

.letter-bar { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 18px; }
.letter-bar a {
  min-width: 34px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
  font-weight: 750;
}
.letter-bar a.is-on { background: var(--brand); color: #fff; border-color: var(--brand); }

.notice-row {
  display: flex;
  gap: 8px;
  margin: 0 0 8px;
}

.notice-row input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
}

.notice-actions { display: flex; gap: 8px; margin-top: 12px; }
.letter-bar a.is-empty { color: #b5b5b5; }

.brand-grid, .brand-home {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.brand-card, .brand-chip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.brand-home { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.brand-chip { align-items: center; padding: 12px; }
.brand-card img, .brand-chip img { width: 100%; height: 64px; object-fit: contain; }
.brand-card strong { font-size: 16px; letter-spacing: -0.03em; }
.brand-card span, .brand-chip span { color: var(--muted); font-size: 13px; }
.brand-search { display: flex; gap: 8px; margin: 0 0 18px; }
.brand-search input {
  flex: 1;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 12px;
}
.brand-search .btn { margin: 0; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 8px; }
.pager a, .pager strong { font-weight: 750; }
.card-photo img.is-logo, .detail-photo img.is-logo { padding: 18px; }

@media (max-width: 800px) {
  .quote-panel, .quote-grid { grid-template-columns: 1fr; }
  .brand-grid, .brand-home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.sensor-brands { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 860px; }

@media (max-width: 800px) {
  .sensor-brands { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-cats { flex-direction: row; overflow: auto; }
  .admin-cats button { width: auto; white-space: nowrap; }
}
