/* ═══════════════════════════════════════════
   남도실업 쇼핑백끈 전문몰 — 메인 스타일시트
   ═══════════════════════════════════════════ */

:root {
  --navy:   #1a2e4a;
  --blue:   #2c5f8a;
  --sky:    #4a90c4;
  --light:  #e8f3fb;
  --white:  #f8fbff;
  --gray:   #8fa3b5;
  --border: #d0e4f0;
  --text:   #1e2d3d;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }


/* ── TOP BAR ── */
.topbar {
  background: var(--navy);
  color: #8fa8bf;
  font-size: 12px;
  padding: 6px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


/* ── HEADER ── */
header {
  background: #fff;
  border-bottom: 2px solid var(--navy);
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.logo { cursor: pointer; }
.logo-main {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  display: block;
  line-height: 1.1;
}
.logo-sub {
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 1px;
}

.header-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 20px;
  line-height: 1.1;
}
.badge-num {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
}
.badge-label {
  font-size: 11px;
  color: var(--gray);
  margin-top: 2px;
}


/* ── NAV ── */
nav {
  background: var(--navy);
  position: sticky;
  top: 73px;
  z-index: 199;
}
nav ul {
  display: flex;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  align-items: stretch;
}
.nav-spacer { flex: 1; }

.nav-btn {
  color: #c8dde9;
  padding: 15px 26px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: background .2s, color .2s;
  display: block;
  white-space: nowrap;
}
.nav-btn:hover { background: var(--blue); color: #fff; }
.nav-btn.active { background: var(--blue); color: #fff; }
.nav-about { color: #a0c8e8; font-size: 16px; }


/* ── BREADCRUMB ── */
.breadcrumb {
  background: #f0f6fc;
  border-bottom: 1px solid var(--border);
  padding: 10px 40px;
  font-size: 13px;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 6px;
  max-height: 44px;
  overflow: hidden;
  transition: max-height .3s, padding .3s;
}
.breadcrumb.breadcrumb-hidden {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-color: transparent;
}
.breadcrumb span { color: var(--text); }
.breadcrumb .bc-sep { color: #b0c8da; font-size: 15px; }
.breadcrumb .bc-link {
  color: var(--blue);
  font-size: 13px;
  padding: 0;
}
.breadcrumb .bc-link:hover { text-decoration: underline; }


/* ── APP CONTAINER ── */
#app {
  min-height: 60vh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}


/* ════════════════════════════════
   LANDING VIEW — 끈 종류 선택
   ════════════════════════════════ */
.landing-intro {
  text-align: center;
  padding: 52px 0 36px;
}
.landing-intro h2 {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 30px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
}
.landing-intro p {
  color: var(--gray);
  font-size: 15px;
}

.cord-type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 70px;
}

.cord-type-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .25s, transform .25s;
  background: #fff;
}
.cord-type-card:hover {
  box-shadow: 0 10px 36px rgba(28,46,74,.18);
  transform: translateY(-5px);
}

.cord-type-img {
  height: 190px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
/* Cord pattern overlays */
.cord-type-img .cord-pat {
  position: absolute;
  inset: 0;
}
.cord-pat-braid {
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.13) 0px, rgba(255,255,255,.13) 4px, transparent 4px, transparent 8px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.09) 0px, rgba(0,0,0,.09) 4px, transparent 4px, transparent 8px);
}
.cord-pat-cotton {
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.06) 0px, transparent 2px, transparent 5px);
}
.cord-pat-twist {
  background-image: repeating-linear-gradient(60deg,
    rgba(255,255,255,.18) 0px, rgba(255,255,255,.18) 6px,
    rgba(0,0,0,.1) 6px, rgba(0,0,0,.1) 12px);
}
.cord-pat-ribbon {
  background-image: linear-gradient(90deg,
    rgba(0,0,0,.08) 0%, rgba(255,255,255,.4) 35%,
    rgba(255,255,255,.6) 50%, rgba(255,255,255,.4) 65%,
    rgba(0,0,0,.08) 100%);
}

.cord-type-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 35%, rgba(0,0,0,.55));
}
.cord-type-name {
  position: relative;
  z-index: 1;
  font-family: 'Nanum Myeongjo', serif;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  padding: 14px 16px;
  line-height: 1;
}

.cord-type-body {
  padding: 14px 16px 18px;
}
.cord-type-body p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.55;
  margin-bottom: 12px;
}
.cord-type-link {
  font-size: 13px;
  color: var(--blue);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cord-type-link::after { content: ' →'; }


/* ════════════════════════════════
   COLOR VIEW — 색상 선택
   ════════════════════════════════ */
.color-view {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 36px;
  padding: 36px 0 70px;
}

/* Left: sticky preview panel */
.color-preview-panel {
  position: sticky;
  top: 135px;
  align-self: start;
}

.preview-cord-wrap {
  width: 100%;
  height: 210px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: 0 6px 24px rgba(0,0,0,.16);
}
.preview-cord-bg {
  position: absolute;
  inset: 0;
  transition: background-color .35s ease;
}
.preview-cord-pat {
  position: absolute;
  inset: 0;
}
.preview-cord-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.28) 0%, transparent 55%);
}
.preview-cord-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  background: var(--light);
}
.preview-cord-placeholder p {
  font-size: 12px;
  color: var(--gray);
}
.preview-color-name {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
  min-height: 28px;
  transition: opacity .2s;
}
.preview-color-hex {
  font-size: 12px;
  color: var(--gray);
  font-family: 'Courier New', monospace;
  margin-bottom: 4px;
  min-height: 18px;
}
.preview-cord-type {
  font-size: 13px;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 18px;
}

.btn-select-color {
  display: block;
  width: 100%;
  background: var(--navy);
  color: #fff;
  padding: 13px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: background .2s, opacity .2s;
  letter-spacing: 0.3px;
}
.btn-select-color:hover { background: var(--blue); }
.btn-select-color:disabled {
  background: var(--border);
  color: var(--gray);
  cursor: not-allowed;
}

/* Right: color grid */
.color-grid-panel {
  padding-left: 4px;
}
.color-grid-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--navy);
}
.color-grid-header h3 {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 18px;
  color: var(--navy);
}
.color-grid-header small {
  font-size: 12px;
  color: var(--gray);
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.color-swatch-card {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.color-swatch-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(0,0,0,.14);
  z-index: 1;
  position: relative;
}
.color-swatch-card.selected {
  border-color: var(--navy);
  box-shadow: 0 0 0 2px var(--navy);
}

.swatch-color-wrap {
  height: 72px;
  position: relative;
  overflow: hidden;
}
.swatch-color-bg {
  position: absolute;
  inset: 0;
}
.swatch-cord-pat {
  position: absolute;
  inset: 0;
}
.swatch-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.22) 0%, transparent 50%);
}
/* "사진" placeholder — 이미지 파일이 없을 때 색상으로 대체 */
.swatch-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swatch-name-bar {
  background: #fff;
  padding: 5px 6px;
  font-size: 11.5px;
  color: var(--text);
  text-align: center;
  border-top: 1px solid var(--border);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.color-swatch-card.selected .swatch-name-bar {
  background: var(--navy);
  color: #fff;
  border-top-color: var(--navy);
}


/* ════════════════════════════════
   SPEC VIEW — 규격 / 팁 선택
   ════════════════════════════════ */
.spec-view {
  padding: 40px 0 70px;
}

.spec-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--navy);
}
.spec-color-dot {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  position: relative;
  overflow: hidden;
}
.spec-color-dot-pat {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
.spec-color-dot-shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.45) 0%, transparent 60%);
}

.spec-header-info h2 {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.spec-header-info p { font-size: 13px; color: var(--gray); }

.spec-section { margin-bottom: 34px; }
.spec-section-title {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  padding-left: 10px;
  border-left: 3px solid var(--blue);
  margin-bottom: 16px;
}

.spec-options { display: flex; flex-wrap: wrap; gap: 12px; }

.spec-card {
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 16px 24px;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
  text-align: center;
  min-width: 130px;
  background: #fff;
}
.spec-card:hover {
  border-color: var(--sky);
  background: var(--light);
  transform: translateY(-2px);
}
.spec-card.selected {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.spec-card-icon { font-size: 26px; margin-bottom: 8px; }
.spec-card-label { font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.spec-card-sub { font-size: 12px; opacity: .7; }

.spec-length-wrap { display: flex; flex-wrap: wrap; gap: 10px; }

.spec-length-btn {
  border: 2px solid var(--border);
  border-radius: 6px;
  padding: 11px 24px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  transition: all .15s;
  background: #fff;
  font-family: inherit;
}
.spec-length-btn:hover { border-color: var(--sky); background: var(--light); }
.spec-length-btn.selected { border-color: var(--navy); background: var(--navy); color: #fff; }

/* ── Spec view 2열 레이아웃 ── */
.spec-view-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  margin-bottom: 10px;
}

.spec-preview-panel {
  position: sticky;
  top: 135px;
  align-self: start;
}
.spec-preview-wrap {
  width: 100%;
  height: 220px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,.15);
  margin-bottom: 12px;
  background: var(--light);
}
.spec-preview-bg {
  position: absolute;
  inset: 0;
  transition: background-color .3s;
}
.spec-preview-label {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  min-height: 24px;
  margin-bottom: 4px;
}
.spec-preview-sub {
  font-size: 12px;
  color: var(--gray);
  text-align: center;
  line-height: 1.6;
  min-height: 32px;
}

/* 직경·팁 카드에 썸네일 사진 */
.spec-card {
  padding: 0;
  overflow: hidden;
}
.spec-card-thumb {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
}
.spec-card-label,
.spec-card-sub,
.spec-card-icon {
  padding: 0 16px;
}
.spec-card-label { padding-top: 12px; }
.spec-card-sub   { padding-bottom: 12px; }
.spec-card-icon  { padding-top: 10px; }
/* 사진 없는 카드는 기존 padding 유지 */
.spec-card:not(:has(.spec-card-thumb)) {
  padding: 16px 24px;
}

/* 주문서 버튼 */
.btn-order-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #16a34a;
  color: #fff;
  border: none;
  padding: 13px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  margin-top: 16px;
  transition: background .2s;
  letter-spacing: 0.3px;
}
.btn-order-form:hover  { background: #14803a; }
.btn-order-form.active { background: #14803a; }

/* ── 주문 문의 인라인 박스 ── */
.order-inline-box {
  margin-top: 18px;
  background: #f7fbff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy);
  border-radius: 8px;
  padding: 22px 22px 18px;
  animation: fadeIn .25s ease;
}
.oib-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.oib-chip {
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}
.oib-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin-bottom: 16px;
}
.oib-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--gray);
}
.oib-field span { font-weight: 600; color: var(--navy); }
.oib-field input,
.oib-field textarea {
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
  background: #fff;
  resize: vertical;
}
.oib-field input:focus,
.oib-field textarea:focus { border-color: var(--navy); }
.oib-field-full { grid-column: 1 / -1; }
.oib-field-full textarea { min-height: 58px; }
.oib-order-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: 0.2px;
}
.oib-order-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 14px;
}
.oib-order-table th,
.oib-order-table td {
  padding: 8px 12px;
  border: 1px solid var(--border);
  text-align: left;
}
.oib-order-table th {
  background: var(--navy);
  color: #fff;
  width: 80px;
  font-weight: 500;
}
.oib-order-table td {
  font-weight: 600;
  color: var(--text);
}
.oib-contact-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
}
.oib-contact-row {
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 6px;
}
.oib-contact-hint {
  font-size: 12px;
  color: var(--gray);
  margin-top: 8px;
  line-height: 1.7;
}

@media (max-width: 520px) {
  .oib-fields { grid-template-columns: 1fr; }
}

/* Spec summary box */
.spec-summary {
  margin-top: 36px;
  background: var(--light);
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy);
  border-radius: 6px;
  padding: 22px 26px;
  animation: fadeIn .3s ease;
}
.spec-summary h4 {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 10px;
}
.spec-summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 6px;
  margin-bottom: 14px;
}
.spec-summary-chip {
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 20px;
}
.spec-summary-contact {
  font-size: 13px;
  color: var(--gray);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 4px;
}
.spec-summary-contact strong { color: var(--navy); }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ════════════════════════════════
   ABOUT VIEW — 회사소개
   ════════════════════════════════ */
.about-view {
  padding: 60px 0 70px;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.about-view h2 {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 30px;
  color: var(--navy);
  margin-bottom: 20px;
}
.about-view p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 14px;
}
.about-view .about-contact {
  display: inline-block;
  margin-top: 20px;
  background: var(--navy);
  color: #fff;
  padding: 12px 30px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
}


/* ── FOOTER ── */
footer {
  background: var(--navy);
  color: #8fa8bf;
  font-size: 12px;
  line-height: 1.8;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
}
.footer-col h5 {
  font-family: 'Nanum Myeongjo', serif;
  color: #c8dde9;
  font-size: 13px;
  margin-bottom: 10px;
}
.footer-bottom {
  border-top: 1px solid #2c4560;
  text-align: center;
  padding: 14px 40px;
  font-size: 11.5px;
  color: #5a7a96;
}
