:root {
  --brand: #1f4fd8;
  --brand-dark: #163aa3;
  --accent: #ff4d4f;
  --text: #1d2129;
  --muted: #6b7280;
  --line: #e5e7eb;
  --page-bg: #ffffff;
  --bg-soft: #f5f7fb;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; color: var(--text); background: var(--page-bg); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
.inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* 헤더 */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 20; }
.header-top { display: flex; align-items: center; gap: 20px; height: 76px; }
.logo { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.5px; white-space: nowrap; }
.logo-num { color: var(--brand); margin-right: 1px; }
.menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 8px; border: 0; background: none; cursor: pointer; }
.menu-toggle i { display: block; height: 2px; background: var(--text); border-radius: 2px; }
.search { flex: 1; max-width: 420px; display: flex; border: 2px solid var(--brand); border-radius: 999px; overflow: hidden; }
.search input { flex: 1; min-width: 0; border: 0; padding: 10px 16px; font-size: 14px; outline: none; }
.search button { border: 0; background: none; color: var(--brand); padding: 0 14px; cursor: pointer; }
.header-actions { margin-left: auto; display: flex; gap: 8px; }
.btn-inquiry { border: 1px solid var(--brand); color: var(--brand); padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.btn-inquiry:hover { background: #eef3ff; }
.btn-confirm { background: var(--brand); color: #fff; padding: 9px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.btn-confirm:hover { background: var(--brand-dark); }

.cate-nav { border-top: 1px solid var(--line); }
.cate-nav ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cate-nav ul::-webkit-scrollbar { display: none; }
.cate-nav a { display: block; padding: 13px 12px; font-size: 15px; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; }
.cate-nav a:hover, .cate-nav a.is-active { color: var(--brand); border-bottom-color: var(--brand); }

/* 전체 메뉴 */
.side-menu { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 50; }
.side-panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(320px, 86vw); background: #fff; padding: 24px; overflow-y: auto; }
.side-panel h3 { font-size: 13px; color: var(--muted); margin: 24px 0 8px; }
.side-panel li a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); }
.side-close { position: absolute; right: 12px; top: 10px; border: 0; background: none; font-size: 30px; cursor: pointer; }

/* 배너 */
.banner { display: block; position: relative; background: var(--bg, var(--brand)); color: #fff; overflow: hidden; }
.banner picture, .banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.banner-text { display: flex; flex-direction: column; justify-content: center; gap: 10px; height: 100%; }
.banner-text strong { font-size: clamp(26px, 4vw, 48px); font-weight: 800; letter-spacing: -1px; }
.banner-text span { font-size: clamp(15px, 1.6vw, 20px); opacity: .9; }

.slider { position: relative; height: clamp(220px, 30vw, 440px); overflow: hidden; }
.slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide .banner { height: 100%; background: linear-gradient(120deg, var(--bg), color-mix(in srgb, var(--bg) 60%, #000)); }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.25); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; z-index: 2; }
.slider-btn:hover { background: rgba(255,255,255,.45); }
.slider-btn.prev { left: 16px; } .slider-btn.next { right: 16px; }
@media (min-width: 769px) and (max-width: 1340px) { .slider .banner-text { padding: 0 76px; } }
.slider-dots { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.slider-dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; transition: width .3s; }
.slider-dots button.is-active { width: 28px; background: #fff; }

.strip-wrap { margin-top: 28px; }
.banner.strip { border-radius: 12px; min-height: 96px; }
.banner.strip .banner-text { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 22px 28px; gap: 6px 20px; }
.banner.strip .banner-text strong { font-size: clamp(18px, 2.4vw, 26px); }
.banner.strip .banner-text span { font-size: 15px; }

/* 상품 */
.section { padding: 56px 16px; }
.section-title { font-size: 28px; font-weight: 800; letter-spacing: -.5px; margin: 0 0 24px; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.product:hover { box-shadow: 0 10px 24px rgba(15,23,42,.08); transform: translateY(-2px); }
.flags { display: flex; gap: 4px; }
.flags span { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 4px; color: #fff; }
.flag-new { background: var(--brand); } .flag-hot { background: var(--accent); }
.thumb { aspect-ratio: 1; margin: 12px 0; border-radius: 10px; background: var(--bg-soft); display: grid; place-items: center; }
.thumb span { font-size: 56px; font-weight: 800; color: #c7cfe0; }
.name { font-size: 17px; margin: 0; }
.tags { margin: 4px 0 10px; font-size: 13px; color: var(--brand); display: flex; gap: 6px; }
.prices { display: grid; grid-template-columns: auto 1fr; gap: 4px 8px; margin: 0 0 14px; font-size: 14px; }
.prices dt { color: var(--muted); } .prices dd { margin: 0; text-align: right; }
.prices .discount { color: var(--accent); }
.prices .total { font-size: 18px; font-weight: 800; }
.pct { position: absolute; top: 16px; right: 16px; font-weight: 800; color: var(--accent); font-size: 18px; }
.btn-order { margin-top: auto; text-align: center; background: var(--text); color: #fff; border-radius: 8px; padding: 11px; font-weight: 600; }
.btn-order:hover { background: var(--brand); }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }
.empty a { color: var(--brand); text-decoration: underline; }

.site-footer { background: #222831; color: #aab1bd; padding: 40px 0; font-size: 14px; margin-top: 40px; }
.site-footer .logo { color: #fff; font-size: 20px; margin-bottom: 8px; }
.site-footer p { margin: 4px 0; } .site-footer .copy { margin-top: 16px; font-size: 12px; }

/* 1:1 문의 */
.narrow { max-width: 760px; }
.page-intro p { color: var(--muted); margin: -12px 0 28px; }
.page-intro a, .sub-link a { color: var(--brand); text-decoration: underline; }
.inquiry-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.field label { font-weight: 700; font-size: 14px; }
.field em, .agree-box em { color: var(--accent); font-style: normal; }
.field small { color: var(--muted); font-weight: 400; }
.field-row { display: flex; gap: 16px; }
.inquiry-form input:not([type=checkbox]), .inquiry-form select, .inquiry-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #d1d5db; border-radius: 8px; font: inherit; font-size: 15px; background: #fff; color: var(--text); }
.inquiry-form textarea { resize: vertical; min-height: 160px; }
.inquiry-form :is(input, select, textarea):focus { outline: 2px solid color-mix(in srgb, var(--brand) 30%, transparent); border-color: var(--brand); }
.err { color: var(--accent); font-size: 13px; margin: 0; }
.hint { color: var(--muted); font-size: 13px; margin: 0; }
.form-error { background: #fff1f0; color: #c62828; border-radius: 8px; padding: 12px 14px; margin: 0; }
.field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.agree-box { background: var(--bg-soft); border-radius: 10px; padding: 16px 18px; font-size: 14px; }
.agree-box p { margin: 0 0 6px; } .agree-box ul { list-style: disc; padding-left: 18px; color: var(--muted); margin-bottom: 12px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.btn-fill, .btn-line { display: inline-block; text-align: center; border-radius: 8px; padding: 13px 22px; font-weight: 700; font-size: 15px; cursor: pointer; border: 1px solid var(--brand); }
.btn-fill { background: var(--brand); color: #fff; } .btn-fill:hover { background: var(--brand-dark); }
.btn-line { background: #fff; color: var(--brand); }
.btn-block { width: 100%; padding: 15px; font-size: 16px; }
.notice-box { border-radius: 12px; padding: 32px; text-align: center; }
.notice-box.success { background: #eef7f1; } .notice-box strong { font-size: 20px; }
.notice-box p { color: var(--muted); }
.btn-row { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.check-form { margin-bottom: 28px; }
.my-inquiries { display: flex; flex-direction: column; gap: 10px; }
.my-inquiries details { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.my-inquiries summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 14px 16px; cursor: pointer; }
.my-inquiries summary time { margin-left: auto; color: var(--muted); font-size: 13px; }
.q-type { color: var(--muted); font-size: 14px; }
.status { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.st-new { background: #fff4e5; color: #b45309; } .st-progress { background: #eef3ff; color: var(--brand); } .st-done { background: #e8f7ee; color: #15803d; }
.q-body, .a-body > div { white-space: pre-wrap; word-break: break-word; }
.q-body { padding: 0 16px 16px; }
.a-body { background: var(--bg-soft); padding: 16px; border-top: 1px solid var(--line); }
.a-head { margin: 0 0 6px; font-weight: 700; color: var(--brand); } .a-head time { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 6px; }
.a-wait { margin: 0; padding: 14px 16px; background: var(--bg-soft); color: var(--muted); border-top: 1px solid var(--line); font-size: 14px; }
.sub-link { margin-top: 24px; text-align: center; }
.field.half { max-width: calc(50% - 8px); }
.inline { display: flex; gap: 8px; align-items: stretch; }
.inline > input, .code-wrap { flex: 1; min-width: 0; }
.code-wrap { position: relative; display: block; }
.code-wrap input { padding-right: 64px !important; }
.timer { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 14px; font-variant-numeric: tabular-nums; }
.btn-sm { padding: 0 16px; font-size: 14px; white-space: nowrap; }
.btn-fill:disabled, .btn-line:disabled { opacity: .5; cursor: default; }
.inquiry-form input[readonly] { background: var(--bg-soft); color: var(--muted); }
.verify-msg { margin: 0; font-size: 13px; color: var(--muted); min-height: 0; }
.verify-msg:empty { display: none; }
.verify-msg.ok { color: #15803d; font-weight: 600; } .verify-msg.bad { color: var(--accent); }

@media (max-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
  .header-top { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 8px 12px; }
  .logo { font-size: 22px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .header-actions { gap: 6px; }
  .btn-confirm, .btn-inquiry { padding: 6px 10px; font-size: 13px; }
  .cate-nav a { padding: 11px 10px; font-size: 14px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product { padding: 12px; }
  .section { padding: 36px 16px; }
  .section-title { font-size: 22px; }
  .slider-btn { display: none; }
  .field-row { flex-direction: column; gap: 18px; }
  .field.half { max-width: none; }
  .notice-box { padding: 24px 16px; }
}
