:root {
  --bg: #ececec;
  --surface: #ffffff;
  --surface-2: #f7f7f7;
  --border: #d7d7d7;
  --text: #222;
  --muted: #666;
  --accent: #2a4f8f;
  --accent-strong: #1e3a6e;
  --radius: 2px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Noto Sans KR", "Malgun Gothic", AppleGothic, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Korean copy wrapping baseline for common UI text blocks. */
:where(
  p,
  li,
  h1,
  h2,
  h3,
  h4,
  th,
  td,
  .help,
  .note,
  .spec,
  .badge,
  .page-title,
  .section-subtitle,
  .contact-copy,
  .contact-detail-value,
  .footer-info p,
  .notice
) {
  word-break: keep-all;
  overflow-wrap: break-word;
}

:where(p, li, th, td, .help, .note, .spec, .contact-copy, .footer-info p, .notice) {
  line-height: 1.62;
}

:where(h1, h2, h3, h4, .page-title, .section-subtitle) {
  line-height: 1.36;
}

.keep,
.nowrap,
.keep-korean {
  white-space: nowrap;
  word-break: keep-all;
}

.text-measure {
  max-width: 66ch;
}

.container {
  width: min(1080px, calc(100% - 24px));
  margin: 0 auto;
}

.shop-utility {
  background: #f4f4f4;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.utility-inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.utility-phone {
  color: #444;
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}
.utility-phone a { white-space: nowrap; }
.utility-links {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.utility-links a + a { border-left: 1px solid #cfcfcf; padding-left: 12px; }
.mobile-utility-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  color: #333;
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid #cfcfcf;
}
.header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.brand-sub {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.brand-badge {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #1f1f1f;
  background: #fff;
  font-size: 15px;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
}
.nav a {
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 600;
  border-right: 1px solid var(--border);
  background: #fff;
}
.nav a:last-child { border-right: 0; }
.nav a:hover { background: var(--surface-2); text-decoration: none; }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: #fff;
}
.mobile-nav .container {
  display: grid;
  gap: 2px;
  padding: 8px 0;
}
.mobile-nav a {
  border: 1px solid var(--border);
  background: var(--surface-2);
  padding: 9px 10px;
  word-break: keep-all;
}
.mobile-nav.is-open { display: block; }

.quick-sidebar {
  position: fixed;
  right: calc(50% - 688px);
  top: 160px;
  width: 132px;
  display: grid;
  gap: 8px;
  z-index: 7;
}
.quick-box {
  background: #fff;
  border: 1px solid #c9c9c9;
  padding: 8px;
}
.quick-box h3 {
  margin: 0 0 6px;
  font-size: 12px;
  border-bottom: 1px solid #e3e3e3;
  padding-bottom: 5px;
}
.quick-box p,
.quick-box a {
  display: block;
  margin: 0 0 4px;
  font-size: 11px;
  color: #555;
  line-height: 1.35;
}
.quick-sidebar,
.quick-sidebar .quick-box,
.quick-sidebar .quick-box p,
.quick-sidebar .quick-box a {
  word-break: normal;
  overflow-wrap: normal;
  word-wrap: normal;
}
.quick-sidebar .nowrap {
  white-space: nowrap;
}
.quick-strong { font-size: 14px !important; font-weight: 700; color: #222 !important; }

.hero,
.section { padding: 20px 0; }
.hero-grid,
.split,
.grid-3 {
  display: grid;
  gap: 12px;
}
.hero-grid { grid-template-columns: 1.2fr 0.8fr; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero h1,
.page-title { margin: 0; letter-spacing: -0.3px; }
.hero h1 { font-size: clamp(24px, 4vw, 34px); line-height: 1.3; }
.hero p,
.help,
.note,
.breadcrumb,
.spec,
.small { color: var(--muted); }

.contact-page-shell {
  margin-top: 12px;
  display: grid;
  gap: 14px;
}
.contact-local-nav {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.contact-local-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #444;
}
.contact-local-nav a:hover {
  text-decoration: none;
  background: #f4f4f4;
}
.contact-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: start;
}
.contact-photo {
  margin: 0;
  border: 1px solid var(--border);
  background: #fafafa;
  overflow: hidden;
}
.contact-photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 300px;
  object-fit: cover;
}
.contact-section {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px;
  scroll-margin-top: 118px;
}
.contact-section-head {
  margin: 0 0 12px;
  font-size: 22px;
  letter-spacing: -0.2px;
}
.contact-copy {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: #4e4e4e;
}
address.contact-copy { font-style: normal; }
.contact-copy + .contact-copy { margin-top: 10px; }
.contact-detail-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.contact-detail-item {
  border: 1px solid var(--border);
  background: #fafafa;
  padding: 12px;
}
.contact-detail-label {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--muted);
}
.contact-detail-value {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  word-break: keep-all;
}
.contact-detail-grid + .contact-copy { margin-top: 12px; }
.contact-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-card,
.card,
.panel,
.product,
.table-card,
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
}
.hero-card,
.card,
.panel,
.form-card { padding: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 35px;
  padding: 0 12px;
  border: 1px solid #bdbdbd;
  background: #fff;
  color: #333;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}
.btn:hover { background: #f2f2f2; text-decoration: none; }
.btn.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.btn.primary:hover { background: var(--accent-strong); }
.btn.small { min-width: 0; height: 28px; font-size: 12px; }
.btn.ghost { background: #f5f5f5; }

.product-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.product .thumb {
  height: 150px;
  display: grid;
  place-items: center;
  background: #f3f3f3;
  color: #555;
  border-bottom: 1px solid var(--border);
}
.product .thumb svg { width: 70px; height: 70px; }
.product .meta { padding: 12px 12px 8px; }
.product .title { font-weight: 700; margin-top: 4px; }
.product .price { color: var(--accent); font-size: 20px; font-weight: 700; margin-top: 8px; }
.product .actions { display: flex; gap: 8px; padding: 0 12px 12px; }

.home-image-section .product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.home-image-section .product {
  overflow: hidden;
}
.home-image-section .product .thumb {
  height: auto;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.home-image-section .product .thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-actions-section .product-guide-grid .card {
  display: flex;
  flex-direction: column;
}
.product-actions-section .product-guide-grid .card p {
  margin-bottom: 0;
}
.product-actions-section .card-actions {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}
.product-actions-section .notice-actions {
  margin-top: 14px;
  padding-top: 0;
  flex-wrap: wrap;
}
.product-actions-section .section-btn {
  height: 44px;
  min-width: 120px;
  padding: 0 16px;
  border-radius: 4px;
  font-weight: 700;
  line-height: 1;
}
.product-actions-section .section-btn:hover {
  text-decoration: none;
}
.product-actions-section .section-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.kpi { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.kpi .item { border: 1px solid var(--border); background: #fafafa; padding: 10px; }
.kpi .label { font-size: 12px; color: var(--muted); }
.kpi .value { font-size: 15px; font-weight: 700; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  display: inline-block;
  border: 1px solid #cecece;
  padding: 3px 7px;
  font-size: 12px;
  background: #f9f9f9;
  color: #555;
}
.badge.strong {
  background: #edf3ff;
  color: #2e4f8b;
  border-color: #c8d8f4;
}

.notice {
  color: #4e4e4e;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
th, td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
  font-size: 14px;
}
th { background: #f4f4f4; width: 24%; }

input, textarea, select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #cfcfcf;
  padding: 10px;
  font: inherit;
  background: #fff;
}
textarea { min-height: 120px; }
label { display: block; font-weight: 700; margin-bottom: 6px; }
.field { margin-bottom: 12px; }

.footer {
  margin-top: 40px;
  background: #fff;
  border-top: 2px solid #bfbfbf;
  border-bottom: 1px solid #d9d9d9;
  color: #555;
}
.footer .container { padding: 18px 0 24px; }
.footer-links {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}
.footer-links a {
  padding: 8px 14px;
  border-right: 1px solid var(--border);
  font-size: 13px;
}
.footer-links a:last-child { border-right: 0; }
.footer-info p {
  margin: 6px 0;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 1320px) {
  .quick-sidebar { display: none; }
}

@media (max-width: 960px) {
  .utility-inner { min-height: 44px; }
  .utility-phone { font-size: 11px; }
  .nav { display: none; }
  .utility-links { display: none; }
  .mobile-utility-toggle { display: inline-flex; align-items: center; }
  .hero-grid,
  .split,
  .grid-3,
  .product-grid { grid-template-columns: 1fr; }
  .contact-hero,
  .contact-detail-grid { grid-template-columns: 1fr; }
  .contact-hero,
  .contact-section { padding: 14px; }
  .contact-photo img { max-height: 240px; }
  .footer .container { padding: 16px 0 20px; }
  .footer-info p { margin: 8px 0; font-size: 12px; }
}

.category-bar .badges { gap: 8px; }
.category-bar .badge {
  background: #fff;
  border-color: #bfc7d6;
  padding: 6px 10px;
}
.category-bar .badge.strong { background: #f4f7ff; }

.section-subtitle {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -0.2px;
}

.product-basic-info th { width: 16%; }
.product-basic-info td { width: 34%; }

.product-order-panel {
  position: static;
  top: auto;
}
.product-sticky-cta { position: static; top: auto; }
.product-sticky-cta {
  margin-top: 12px;
}

.product-tabs {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border);
  background: #fff;
}
.product-tabs a {
  padding: 12px;
  text-align: center;
  font-weight: 700;
  border-right: 1px solid var(--border);
}
.product-tabs a:last-child { border-right: 0; }
.product-tabs a.is-active {
  background: var(--accent);
  color: #fff;
}
.tab-anchor-section { margin-top: 12px; scroll-margin-top: 120px; }

.mobile-sticky-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 8px 12px;
  gap: 8px;
}
.mobile-sticky-cta .btn { flex: 1; }

@media (max-width: 960px) {
  .product-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-order-panel,
  .product-sticky-cta { position: static; }
  .mobile-sticky-cta { display: flex; }
  body { padding-bottom: 64px; }
}

.product-grid { align-items: stretch; }

.product{
  display:flex;
  flex-direction:column;
  height:100%;
}

.product .meta{
  display:flex;
  flex-direction:column;
  flex:1;
}

.product .price{
  margin-top:auto;
  padding-top:10px;
}

.product .actions{
  margin-top:12px;
}
