/* ===========================
   CONVUM KOREA - 공용 스타일시트
   본사(shop.convum.com) 디자인 미러링
   =========================== */

:root {
  --color-primary: #e73828;       /* 콘붐 시그니처 레드 */
  --color-primary-dark: #c52a1d;
  --color-primary-light: #fde8e6;
  --color-text: #1a1a1a;
  --color-text-light: #666;
  --color-text-muted: #999;
  --color-border: #e6e6e6;
  --color-border-soft: #f0f0f0;
  --color-bg: #ffffff;
  --color-bg-soft: #f7f7f7;
  --color-bg-form: #f4f4f4;
  --color-topbar: #f9f0ef;
  --max-width: 1280px;
  --radius: 4px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans KR', 'Malgun Gothic', -apple-system, BlinkMacSystemFont,
    'Helvetica Neue', Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--color-primary); }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   상단 빨간 라인
   =========================== */
.brand-line {
  height: 4px;
  background: var(--color-primary);
}

/* ===========================
   상단 안내바
   =========================== */
.top-bar {
  background: var(--color-topbar);
  font-size: 13px;
  padding: 10px 0;
  color: var(--color-text);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-bar a:hover {
  color: var(--color-primary);
}

.top-bar .divider {
  color: #ccc;
}

/* ===========================
   헤더 (로고·검색·아이콘)
   =========================== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--color-border-soft);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 72px;
  width: auto;
  display: block;
}

.logo-text {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--color-text);
}

.logo-text .accent {
  color: var(--color-primary);
}

.logo-sub {
  font-size: 10px;
  color: var(--color-text-light);
  letter-spacing: 3px;
  margin-left: 8px;
  font-weight: 600;
  align-self: flex-end;
  padding-bottom: 4px;
}

/* 검색바 (헤더 중앙) */
.header-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  padding: 0 6px 0 18px;
  height: 44px;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}

.header-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
}

.header-search button {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 18px;
}

/* 우측 아이콘 */
.header-icons {
  display: flex;
  align-items: center;
  gap: 22px;
}

.icon-link {
  position: relative;
  font-size: 22px;
  color: var(--color-text);
}

.icon-link:hover { color: var(--color-primary); }

.icon-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle {
  display: none;
  font-size: 24px;
}

/* ===========================
   네비게이션 (TOP / Product / Contact)
   =========================== */
.main-nav {
  border-bottom: 1px solid var(--color-border-soft);
  background: #fff;
}

.main-nav ul {
  display: flex;
  justify-content: center;
  gap: 56px;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  padding: 4px 0;
  position: relative;
  color: var(--color-text);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--color-primary);
}

/* ===========================
   히어로 (이미지 슬라이더 + 탭)
   =========================== */
.hero {
  position: relative;
  background: #d8e2ec;
  overflow: hidden;
  min-height: 540px;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-slide.active { opacity: 1; }

/* ---------------------------------------------------------------
   히어로 슬라이드 배경 오버레이
   ---------------------------------------------------------------
   PNG 파일을 직접 편집하지 않고 CSS로 톤만 살짝 조정합니다.
   `mix-blend-mode: multiply` + 그라디언트 → 밝은 배경(파란 패턴)만
   살짝 따뜻한 톤이 입혀지고, 어두운 제품 실루엣에는 영향이 적음.
   톤을 바꾸고 싶다면 아래 CSS 변수만 수정하면 됩니다.
       --hero-tint:     배경에 입힐 색 (브랜드 레드 권장)
       --hero-tint-amt: 색의 강도 (0.00 ~ 0.20 사이 권장)
       --hero-vignette: 모서리 어두움 강도
-------------------------------------------------------------- */
:root {
  --hero-tint: 231, 56, 40;       /* 브랜드 레드 RGB */
  --hero-tint-amt: 0.07;          /* 7% — 살짝만 */
  --hero-vignette: 0.10;          /* 10% — 가장자리 살짝 어둡게 */
}

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 90% 70% at center,
      transparent 30%,
      rgba(0, 0, 0, var(--hero-vignette)) 100%
    ),
    linear-gradient(
      135deg,
      rgba(var(--hero-tint), 0) 0%,
      rgba(var(--hero-tint), var(--hero-tint-amt)) 100%
    );
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero-dots {
  position: absolute;
  bottom: 200px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s;
}

.hero-dots button.active {
  background: var(--color-primary);
  width: 28px;
  border-radius: 5px;
}

.hero-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px 0;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
}

/* 히어로 하단 검색 탭 */
.hero-tabs {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  padding: 28px 32px;
  margin-top: 80px;
}

.hero-tabs-title {
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--color-text);
}

.hero-tabs-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.hero-tab {
  text-align: center;
  padding: 14px 8px;
  border-bottom: 3px solid transparent;
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hero-tab:hover,
.hero-tab.active {
  border-bottom-color: var(--color-primary);
}

/* ===========================
   섹션 공통
   =========================== */
.section {
  padding: 70px 0;
}

.section-soft {
  background: var(--color-bg-soft);
}

.section-header {
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.section-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
}

.section-header .tag-new {
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 500;
}

/* ===========================
   제품 그리드
   =========================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--color-border);
  transition: all 0.2s ease;
  display: block;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--color-primary);
  color: inherit;
}

.product-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d0d4dc;
  font-size: 80px;
  border-bottom: 1px solid var(--color-border-soft);
  position: relative;
  overflow: hidden;
  padding: 16px;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .product-thumb img {
  transform: scale(1.05);
}

.product-info {
  padding: 18px 16px 20px;
}

.product-info h3 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.5;
  height: 42px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--color-text);
}

.product-info .price {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
}

/* ===========================
   제조 / Made in 섹션
   =========================== */
.made-in {
  text-align: center;
  padding: 70px 0 40px;
}

.made-in h2 {
  font-size: 22px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 40px;
}

.made-in-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.made-in-image {
  background: linear-gradient(135deg, #f0f4f8 0%, #d8e2ec 100%);
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7a8c;
  font-size: 16px;
}

.made-in-image .factory-label {
  position: absolute;
  top: 16px;
  left: 24px;
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
  z-index: 2;
}

.made-in-image .factory-label small {
  display: block;
  font-size: 13px;
  font-weight: 400;
}

.made-in-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ===========================
   문의 폼 섹션 (홈 통합형)
   =========================== */
.inquiry-section {
  background: var(--color-bg-form);
  padding: 70px 0;
}

.inquiry-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.inquiry-form {
  background: #fff;
  padding: 40px 48px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.inquiry-form h2 {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 28px;
}

.form-row { margin-bottom: 12px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.inquiry-form input,
.inquiry-form textarea,
.inquiry-form select {
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 30px;
  background: var(--color-bg-soft);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: background 0.15s;
}

.inquiry-form textarea {
  border-radius: 16px;
  resize: vertical;
  min-height: 120px;
}

.inquiry-form input:focus,
.inquiry-form textarea:focus,
.inquiry-form select:focus {
  background: #efefef;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-block {
  display: block;
  margin: 16px auto 0;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* 우측 연락처 정보 */
.inquiry-contact {
  padding: 0 8px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-text small {
  display: block;
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 4px;
}

.contact-text strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}

.contact-text p {
  font-size: 14px;
  color: var(--color-text);
}

/* ===========================
   브레드크럼
   =========================== */
.breadcrumb-bar {
  background: var(--color-bg-soft);
  padding: 28px 0;
}

.breadcrumb-bar .container {
  font-size: 13px;
  color: var(--color-text-light);
}

.breadcrumb-bar a:hover { color: var(--color-primary); }
.breadcrumb-bar .current {
  color: var(--color-primary);
  font-weight: 600;
}

/* ===========================
   카탈로그 페이지
   =========================== */
.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 40px 0 80px;
}

.catalog-sidebar { background: #fff; }

/* "도움말" 안내 박스 */
.support-box {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.support-box .icon-box {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #ffd54a 0%, #6bb5ff 100%);
  border-radius: 4px;
  flex-shrink: 0;
}

.support-box-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.support-box-text small {
  font-size: 11px;
  color: var(--color-text-light);
  line-height: 1.5;
}

/* 전체 해제 버튼 */
.clear-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--color-text);
  margin-bottom: 20px;
  cursor: pointer;
  transition: all 0.15s;
}

.clear-all:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* 필터 그룹 (접이식) */
.filter-group {
  border-top: 1px solid var(--color-border);
  padding: 16px 0;
}

.filter-group summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  padding: 4px 0;
}

.filter-group summary::-webkit-details-marker { display: none; }

.filter-group summary::after {
  content: '⌃';
  font-size: 16px;
  color: var(--color-text-light);
  transition: transform 0.2s;
}

.filter-group:not([open]) summary::after { transform: rotate(180deg); }

.filter-selected {
  font-size: 12px;
  color: var(--color-text-light);
  margin-top: 8px;
  margin-bottom: 6px;
}

/* 가격 필터 */
.price-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
}

.price-filter input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  text-align: left;
}

.price-filter input:focus { border-color: var(--color-primary); }

.price-filter span { color: var(--color-text-light); }

.btn-filter {
  display: block;
  width: 100%;
  padding: 10px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
}

.btn-filter:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

/* 체크박스 필터 항목 */
.filter-options {
  margin-top: 8px;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 4px;
}

.filter-options::-webkit-scrollbar { width: 4px; }
.filter-options::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

.filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--color-text);
  cursor: pointer;
}

.filter-check input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.filter-check .label-text { flex: 1; }
.filter-check .count {
  color: var(--color-text-light);
  font-size: 12px;
}

.catalog-main { min-width: 0; }

/* 툴바 (보기 모드 + 결과 + 정렬) */
.catalog-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 18px;
  margin-bottom: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
}

.view-toggle {
  display: flex;
  gap: 8px;
}

.view-toggle button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 14px;
  color: var(--color-text-light);
}

.view-toggle button.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.catalog-toolbar .count {
  text-align: center;
  color: var(--color-text);
  font-size: 14px;
}

.sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-light);
}

.sort-wrap select {
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 13px;
  background: #fff;
  font-family: inherit;
  min-width: 180px;
}

/* 페이지네이션 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
}

.pagination button {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 50%;
  font-size: 14px;
  color: var(--color-text);
  background: transparent;
}

.pagination button:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.pagination button.active {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
}

.pagination .ellipsis {
  color: var(--color-text-muted);
  padding: 0 4px;
}

/* 리스트 뷰 (보기 모드 = list) */
.product-grid.list-view {
  grid-template-columns: 1fr;
  gap: 12px;
}

.product-grid.list-view .product-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding-right: 20px;
}

.product-grid.list-view .product-thumb {
  aspect-ratio: 1 / 1;
  border-bottom: none;
  border-right: 1px solid var(--color-border-soft);
  font-size: 60px;
}

.product-grid.list-view .product-info {
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-grid.list-view .product-info h3 {
  height: auto;
  display: block;
  -webkit-line-clamp: unset;
  margin-bottom: 8px;
}

/* ===========================
   제품 상세 페이지
   =========================== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding: 50px 0;
}

.product-gallery .main-image {
  background: #fff;
  border: 1px solid var(--color-border);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
  padding: 24px;
}

/* 메인 이미지: 틀에 가득 차게 (이미지 자체가 여백 8%로 정리되어 확대 핵 불필요) */
.product-gallery .main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transition: transform 0.2s ease;
}

.product-gallery .main-image:hover img {
  transform: scale(1.05);
}

.thumbnail-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.thumbnail-row .thumb {
  background-color: #fff;
  background-size: 110% auto;       /* 살짝 확대해서 흰 여백 줄임 */
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--color-border);
  aspect-ratio: 1 / 1;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}

.thumbnail-row .thumb:hover { border-color: #bbb; }
.thumbnail-row .thumb.active { border-color: var(--color-primary); }

.product-meta .breadcrumb {
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.product-meta h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.product-meta .product-code {
  color: var(--color-text-light);
  font-size: 14px;
  margin-bottom: 24px;
}

.product-meta .price-large {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.product-meta .description {
  color: var(--color-text-light);
  margin-bottom: 24px;
  line-height: 1.8;
}

/* 제품 제목 행 — 제목(좌) + "제품 상세 설명" 버튼(우, 거리를 둠) */
.product-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.product-title-row h1 { margin-bottom: 0; }

/* 본사 홈 series-detail 로 이동하는 "제품 상세 설명" 버튼 (제목 우측) */
.btn-series-detail {
  flex-shrink: 0;
  padding: 10px 22px;
  font-size: 14px;
  white-space: nowrap;
  background: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
}
.btn-series-detail:hover {
  background: var(--color-primary);
  color: #fff;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 14px;
}

.spec-table th,
.spec-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.spec-table th {
  background: var(--color-bg-soft);
  width: 35%;
  font-weight: 600;
  color: var(--color-text);
}

.product-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.product-actions .btn {
  flex: 1;
  padding: 14px 20px;
}

/* ===========================
   회사소개 페이지
   =========================== */
.about-hero {
  padding: 60px 0;
  text-align: center;
  background: var(--color-bg-soft);
}

.about-hero h1 {
  font-size: 36px;
  margin-bottom: 12px;
}

.about-hero p {
  color: var(--color-text-light);
  font-size: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.info-card {
  padding: 32px 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-align: center;
}

.info-card .icon {
  font-size: 32px;
  margin-bottom: 14px;
  color: var(--color-primary);
}

.info-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.info-card p {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ===========================
   푸터
   =========================== */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--color-border);
  padding: 50px 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border-soft);
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--color-text);
  letter-spacing: -0.2px;
}

.footer-col p {
  font-size: 12.5px;
  color: var(--color-text-light);
  line-height: 1.85;
}

.footer-col p a {
  color: var(--color-text-light);
  text-decoration: none;
}
.footer-col p a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a {
  font-size: 13px;
  color: var(--color-text-light);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--color-primary);
}

.footer-note {
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.placeholder {
  display: inline-block;
  padding: 1px 6px;
  background: #fff5e6;
  color: #b36a00;
  border: 1px dashed #f0c068;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
}

.payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.payment-icon {
  width: 44px;
  height: 28px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  background: #fff;
  color: var(--color-text-light);
}
.payment-icon.payment-icon-wide {
  width: auto;
  min-height: 28px;
  height: auto;
  padding: 6px 9px;
  line-height: 1.3;
  text-align: center;
}
.payment-icon.is-coming-soon {
  background: var(--color-bg-soft);
  font-weight: 600;
}

.footer-bottom {
  text-align: center;
  font-size: 12px;
  color: var(--color-text-muted);
  padding-top: 20px;
}

/* ===========================
   반응형
   =========================== */
@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail { grid-template-columns: 1fr; }
  .catalog-layout { grid-template-columns: 200px 1fr; }
  .inquiry-grid { grid-template-columns: 1fr; gap: 32px; }
  .made-in-content { grid-template-columns: 1fr; }
  .hero-headline { font-size: 32px; }
  .hero-badge { right: 20px; top: 60px; }
  .hero-headline { right: 20px; }
}

@media (max-width: 720px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    padding: 12px 16px;
  }
  .logo-img { height: 56px; }
  .header-search { display: none; }
  .main-nav ul { gap: 32px; padding: 12px 16px; }
  .top-bar { font-size: 12px; }
  .top-bar-left .divider, .top-bar a:not(:last-child) { display: none; }
  .menu-toggle { display: block; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .catalog-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .hero-headline { font-size: 24px; top: 32%; }
  .hero { min-height: 380px; }
  .hero-inner { min-height: 320px; padding-top: 40px; }
  .inquiry-form { padding: 28px 20px; }
}

/* ===========================
   구매 박스 (제품 상세)
=========================== */
.purchase-box {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
}
.qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.qty-label {
  font-size: 14px;
  color: var(--color-text-light);
}
.qty-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.qty-stepper .qty-btn {
  width: 36px;
  height: 40px;
  background: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--color-text);
  transition: background .15s;
}
.qty-stepper .qty-btn:hover { background: var(--color-bg-soft); }
.qty-stepper input {
  width: 48px;
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  text-align: center;
  font-size: 15px;
  -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.btn-cart,
.btn-buy-now {
  display: block;
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  margin-bottom: 10px;
  transition: opacity .15s, transform .05s;
}
.btn-cart {
  background: #1a1a1a;
  color: #fff;
}
.btn-cart:hover { opacity: .9; }
.btn-buy-now {
  background: var(--color-primary);
  color: #fff;
}
.btn-buy-now:hover { background: var(--color-primary-dark); }
.btn-cart:active,
.btn-buy-now:active { transform: translateY(1px); }

.link-quote {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--color-text-light);
  text-decoration: none;
}
.link-quote:hover { color: var(--color-primary); }

.purchase-meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border-soft);
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-light);
}

/* ===========================
   토스트
=========================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  background: #1a1a1a;
  color: #fff;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 9999;
  max-width: 90vw;
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===========================
   체크아웃 페이지
=========================== */
.checkout-body {
  background: #fff;
}
.checkout-header {
  border-bottom: 1px solid var(--color-border-soft);
  background: #fff;
}
.checkout-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: center;
}

.checkout-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 460px;
}
.checkout-form-wrap {
  padding: 40px 56px 80px 24px;
  border-right: 1px solid var(--color-border-soft);
}
.checkout-summary-wrap {
  padding: 40px 24px 80px 56px;
  background: #fafafa;
  min-height: calc(100vh - 80px);
}

.checkout-form .form-block {
  margin-bottom: 32px;
}
.checkout-form .form-block h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--color-text);
}
.checkout-form .block-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}
.checkout-form .block-head h2 { margin-bottom: 0; }
.checkout-form .signin {
  font-size: 14px;
  color: #2962ff;
  text-decoration: none;
}
.checkout-form .signin:hover { text-decoration: underline; }

.checkout-form .field {
  position: relative;
  margin-bottom: 12px;
}
.checkout-form .field input,
.checkout-form .field select {
  width: 100%;
  padding: 14px 14px;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  font-size: 15px;
  background: #fff;
  font-family: inherit;
  color: var(--color-text);
  transition: border-color .15s, box-shadow .15s;
}
.checkout-form .field input:focus,
.checkout-form .field select:focus {
  outline: none;
  border-color: #2962ff;
  box-shadow: 0 0 0 3px rgba(41,98,255,.15);
}
.checkout-form .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.checkout-form .field-row.three {
  grid-template-columns: 1fr 1fr 1fr;
}
.checkout-form .field-row .field { margin-bottom: 0; }

.checkout-form .check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-light);
  margin-top: 8px;
  cursor: pointer;
}
.checkout-form .check-line input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #2962ff;
}
.checkout-form .muted { color: var(--color-text-light); }
.checkout-form .small { font-size: 13px; margin-bottom: 12px; }

.ship-method {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 16px;
  background: #fff;
}
.ship-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--color-text);
}

.pay-methods {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.pay-method-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.pay-method-choice:hover:not(.is-disabled) { border-color: #9ca3af; }
.pay-method-choice.is-selected {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
  background: #fffafa;
}
.pay-method-choice.is-disabled {
  color: #8b8b8b;
  background: #fafafa;
  cursor: not-allowed;
}
.pay-method-choice input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--color-primary);
}
.pay-method-choice > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.pay-method-choice strong { font-size: 15px; }
.pay-method-choice small { color: var(--color-text-light); font-size: 12px; }
.pay-method-choice em {
  margin-left: auto;
  color: var(--color-primary);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  text-align: right;
}
.payment-panel {
  display: block;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fafafa;
}
.payment-panel[hidden] { display: none; }
.toss-payment-panel {
  padding: 0;
  overflow: hidden;
  background: #fff;
}
.payment-panel-intro,
.payment-policy-note,
.payment-unavailable-note {
  color: var(--color-text-light);
  font-size: 13px;
  line-height: 1.6;
}
.payment-panel-intro { padding: 16px 18px 0; }
.payment-policy-note {
  margin: 0 18px 18px;
  padding: 12px 14px;
  border-radius: 6px;
  background: var(--color-bg-soft);
}
.payment-unavailable-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #fff7ed;
  color: #9a3412;
}
.payment-unavailable-note[hidden] { display: none; }

.card-block {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
  font-weight: 500;
}
.card-icons {
  font-size: 12px;
  color: var(--color-text-light);
  letter-spacing: 1px;
}
.card-block .field,
.card-block .field-row { margin: 12px; }
.card-block .field-row { margin-top: 0; }
.card-block .check-line { margin: 0 12px 14px; }

.btn-pay-now {
  display: block;
  width: 100%;
  padding: 16px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
  transition: opacity .15s;
}
.btn-pay-now:hover { opacity: .9; }
.btn-pay-now:disabled {
  cursor: wait;
  opacity: .6;
}

.legal-line {
  margin-top: 28px;
  font-size: 13px;
  color: var(--color-text-light);
  text-align: center;
}
.legal-line a {
  color: #2962ff;
  text-decoration: none;
  margin: 0 4px;
}
.legal-line a:hover { text-decoration: underline; }

/* 우측 주문 요약 */
.checkout-summary {
  position: sticky;
  top: 24px;
}
.summary-items {
  margin-bottom: 20px;
}
.summary-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}
.thumb-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.thumb-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; }
.thumb-wrap span { color: #cfd6e0; font-size: 28px; }
.qty-bubble {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  background: #6e7787;
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}
.line-info { min-width: 0; }
.line-name {
  font-size: 14px;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.line-code {
  font-size: 12px;
  color: var(--color-text-light);
  margin-top: 2px;
}
.line-price {
  font-size: 14px;
  font-weight: 600;
}

/* 장바구니 줄: 수량 조절 + 삭제 */
.line-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.ci-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
}
.ci-qty-btn {
  width: 26px;
  height: 26px;
  border: none;
  background: var(--color-bg-soft);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}
.ci-qty-btn:hover { background: #ececec; }
.ci-qty-val {
  min-width: 32px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}
.ci-remove {
  border: none;
  background: none;
  color: var(--color-text-light);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 2px;
  text-decoration: underline;
  transition: color 0.15s;
}
.ci-remove:hover { color: var(--color-primary); }

.discount-row {
  display: flex;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
}
.discount-row input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
.discount-row input:focus {
  outline: none;
  border-color: #2962ff;
}
.discount-row button {
  padding: 11px 18px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  color: var(--color-text-light);
}

.summary-totals {
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}
.summary-totals .row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: var(--color-text);
}
.summary-totals .row.total {
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  margin-top: 8px;
  font-size: 16px;
}
.summary-totals .total .cur {
  font-size: 12px;
  color: var(--color-text-light);
  margin-right: 4px;
}
.summary-totals .total strong {
  font-size: 22px;
  font-weight: 700;
}

/* 빈 / 완료 상태 */
.checkout-empty,
.checkout-done {
  grid-column: 1 / -1;
  padding: 100px 24px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.checkout-empty h2,
.checkout-done h2 {
  font-size: 24px;
  margin-bottom: 12px;
}
.checkout-empty p,
.checkout-done p {
  color: var(--color-text-light);
  margin-bottom: 8px;
}
.checkout-empty .btn { margin-top: 20px; }
.checkout-done .btn { margin: 0 4px; }
.check-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 36px;
  line-height: 64px;
  margin: 0 auto 20px;
}

@media (max-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .checkout-form-wrap {
    padding: 24px 16px;
    border-right: none;
    order: 2;
  }
  .checkout-summary-wrap {
    padding: 24px 16px;
    border-bottom: 1px solid var(--color-border);
    min-height: auto;
    order: 1;
  }
  .checkout-summary { position: static; }
  .checkout-form .field-row,
  .checkout-form .field-row.three {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   정책 페이지 (이용약관 / 개인정보처리방침 / 환불)
=========================== */
.legal-page {
  padding: 50px 24px 80px;
  max-width: 920px;
}

.legal-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--color-text);
}

.legal-meta {
  font-size: 13px;
  color: var(--color-text-light);
  margin: 12px 0 36px;
}

.legal-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text);
}

.legal-content > p {
  margin-bottom: 12px;
  color: #333;
}

.legal-content h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 36px 0 14px;
  padding-top: 8px;
  color: var(--color-text);
}

.legal-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 22px 0 10px;
  color: var(--color-text);
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 16px 24px;
  padding: 0;
}

.legal-content li {
  margin-bottom: 6px;
  color: #333;
}

.legal-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

.legal-content .info-box {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 18px 22px;
  margin: 16px 0;
}
.legal-content .info-box p {
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.legal-table th,
.legal-table td {
  border: 1px solid var(--color-border);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
.legal-table thead th {
  background: var(--color-bg-soft);
  font-weight: 600;
}

.legal-update {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border-soft);
  font-size: 13px;
  color: var(--color-text-light);
  font-style: italic;
}

@media (max-width: 720px) {
  .legal-page { padding: 32px 16px 56px; }
  .legal-title { font-size: 24px; }
  .legal-content { font-size: 14px; }
  .legal-content h2 { font-size: 17px; }
  .legal-table { font-size: 13px; }
  .legal-table th, .legal-table td { padding: 8px 10px; }
}

/* ===========================
   인증 영역 (top-bar)
=========================== */
.auth-area {
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-area a {
  color: var(--color-text);
}
.auth-area a:hover {
  color: var(--color-primary);
}
.auth-sep {
  color: #ccc;
  font-size: 12px;
}
.auth-greeting {
  color: var(--color-text);
  font-weight: 500;
}

/* ===========================
   로그인 / 회원가입 페이지
=========================== */
.auth-page {
  background: var(--color-bg-soft);
  padding: 60px 24px 100px;
  min-height: 60vh;
}

.auth-card {
  max-width: 540px;
  margin: 0 auto;
  background: #fff;
  padding: 50px 56px 40px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.auth-card-wide {
  max-width: 640px;
}

.auth-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 14px;
  color: var(--color-text);
}

.auth-sub {
  text-align: center;
  color: var(--color-text-light);
  font-size: 14px;
  margin-bottom: 28px;
}

.auth-alt-top {
  text-align: center;
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 32px;
}
.auth-alt-top a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.auth-alt-top a:hover {
  color: var(--color-primary);
}

.auth-form {
  display: block;
}

.auth-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.auth-row label {
  font-size: 14px;
  color: var(--color-text);
  font-weight: 500;
}
.auth-row input {
  width: 100%;
  padding: 13px 16px;
  background: var(--color-bg-form);
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  color: var(--color-text);
  transition: border-color .15s, background .15s;
}
.auth-row input::placeholder {
  color: #999;
}
.auth-row input:focus {
  outline: none;
  background: #fff;
  border-color: var(--color-primary);
}

.auth-help {
  text-align: center;
  margin: 18px 0 24px;
  font-size: 13px;
}
.auth-help a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-help a:hover {
  color: var(--color-primary);
}

.auth-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 18px 0 24px;
  font-size: 13px;
  color: var(--color-text-light);
  cursor: pointer;
  line-height: 1.5;
}
.auth-agree input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--color-primary);
}
.auth-agree a {
  color: var(--color-text);
  text-decoration: underline;
}
.auth-agree a:hover {
  color: var(--color-primary);
}

.btn-auth {
  display: block;
  margin: 12px auto 0;
  padding: 16px 60px;
  min-width: 200px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s, transform .05s;
}
.btn-auth:hover {
  background: var(--color-primary-dark);
}
.btn-auth:active {
  transform: translateY(1px);
}

.auth-status {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
}
.auth-status.error {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.auth-status.success {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.auth-divider {
  height: 1px;
  background: var(--color-border);
  margin: 32px 0 24px;
}

.auth-alt {
  text-align: center;
  font-size: 14px;
}
.auth-alt a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
}
.auth-alt a:hover {
  color: var(--color-primary);
}

@media (max-width: 600px) {
  .auth-page { padding: 32px 16px 60px; }
  .auth-card { padding: 32px 24px 28px; }
  .auth-title { font-size: 24px; }
  .auth-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .auth-row label {
    font-size: 13px;
    color: var(--color-text-light);
  }
}

/* ===========================
   위시리스트 buton (제품 상세)
=========================== */
.btn-wishlist {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 600;
  background: #fff;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: background .15s, color .15s;
}
.btn-wishlist:hover {
  background: var(--color-primary-light);
}
.btn-wishlist.is-active {
  background: var(--color-primary);
  color: #fff;
}
.btn-wishlist .wish-icon {
  font-size: 16px;
  line-height: 1;
}

/* 위시리스트 / 계정 / 빈상태 공통 페이지 */
.account-page {
  padding: 50px 24px 80px;
  min-height: 50vh;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--color-text);
}
.page-title .count {
  font-size: 18px;
  color: var(--color-text-light);
  font-weight: 500;
  margin-left: 8px;
}

.empty-state {
  padding: 80px 20px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}
.empty-state .empty-icon {
  font-size: 56px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}
.empty-state h2 {
  font-size: 20px;
  margin-bottom: 8px;
}
.empty-state p {
  color: var(--color-text-light);
  margin-bottom: 24px;
}

/* ===========================
   위시리스트 그리드
=========================== */
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.wish-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow .15s, transform .15s;
}
.wish-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.wish-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  background: var(--color-bg-soft);
  overflow: hidden;
}
.wish-thumb img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}
.wish-thumb span {
  font-size: 56px;
  color: #cfd6e0;
}

.wish-info {
  padding: 16px;
}
.wish-name {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: 6px;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wish-name:hover { color: var(--color-primary); }
.wish-code {
  font-size: 12px;
  color: var(--color-text-light);
  margin-bottom: 8px;
}
.wish-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.wish-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.wish-actions .wish-add-cart {
  margin: 0;
  padding: 10px 12px;
  font-size: 13px;
}
.wish-actions .wish-remove {
  margin: 0;
  padding: 10px 14px;
  font-size: 18px;
  line-height: 1;
  color: var(--color-text-light);
  border-color: var(--color-border);
}
.wish-actions .wish-remove:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ===========================
   계정 페이지
=========================== */
.account-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
}
.account-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 28px;
}
.account-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border-soft);
}

.account-table {
  width: 100%;
  margin-bottom: 20px;
  font-size: 14px;
}
.account-table th {
  text-align: left;
  font-weight: 500;
  color: var(--color-text-light);
  padding: 8px 0;
  width: 80px;
}
.account-table td {
  padding: 8px 0;
  color: var(--color-text);
}

.account-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.account-links li {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border-soft);
  font-size: 14px;
}
.account-links li:last-child { border-bottom: none; }
.account-links a {
  color: var(--color-text);
  text-decoration: none;
  display: block;
}
.account-links a:hover { color: var(--color-primary); }
.account-links .muted {
  color: var(--color-text-muted);
}

.account-note {
  margin-top: 28px;
  padding: 14px 18px;
  background: #fff5e6;
  border: 1px solid #f0c068;
  border-radius: 6px;
  font-size: 13px;
  color: #8a5a00;
  max-width: 900px;
}

@media (max-width: 720px) {
  .account-grid { grid-template-columns: 1fr; }
}


/* ===========================
   언어 선택 드롭다운 (i18n)
=========================== */
.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  line-height: 1;
}
.lang-btn:hover { color: var(--color-primary); }
.lang-globe { font-size: 14px; }
.lang-caret { font-size: 10px; }
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  border: 1px solid var(--color-border, #e2e4e8);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
  list-style: none;
  margin: 0;
  padding: 6px;
  min-width: 140px;
  z-index: 1000;
}
.lang-menu li button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--color-text);
}
.lang-menu li button:hover { background: #f4f5f7; color: var(--color-primary); }
.lang-menu li button.active { font-weight: 700; color: var(--color-primary); }

/* 체크아웃·결제 페이지(상단바 없음): 헤더 우측에 고정 */
.checkout-header { position: relative; }
.checkout-header .lang-switch {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}
/* 모바일: lang-switch 추가로 회원가입 a가 :last-child 가 아니게 되는 문제 보정 */
@media (max-width: 720px) {
  .top-bar-right a:last-of-type { display: inline; }
}

/* ============================================================
   쇼핑몰 기능 확장 (2026-06) — 뱃지/재고/할인/장바구니/주문내역/SEO 폴백
   ============================================================ */

/* 이미지 로드 실패 플레이스홀더 */
.img-ph {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; min-height: 60px;
  color: #cfd6e0; font-size: 1.8em; background: var(--color-bg-soft);
}

/* 가격 보조 표기 */
.vat-note { font-size: 11px; color: var(--color-text-muted); font-weight: 500; margin-left: 4px; }

/* 제품 카드 뱃지 (NEW / 품절) */
.product-thumb { position: relative; }
.card-badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 4px; color: #fff;
}
.card-badge.new { background: var(--color-primary); }
.card-badge.soldout { background: #555; left: auto; right: 8px; }
.product-card.is-soldout .product-thumb img { opacity: .5; }

/* 제목 옆 NEW 뱃지 (상세) */
.title-badge.new {
  font-size: 12px; font-weight: 700; vertical-align: middle;
  background: var(--color-primary); color: #fff; padding: 2px 8px; border-radius: 4px; margin-left: 6px;
}

/* 재고 상태 뱃지 (상세) */
.stock-badge { font-size: 13px; font-weight: 600; margin: 6px 0 10px; }
.stock-badge.in { color: #15803d; }
.stock-badge.low { color: #b45309; }
.stock-badge.soldout { color: #b91c1c; }

/* 품절 버튼 */
.btn-soldout { background: #9aa0a6 !important; color: #fff !important; cursor: not-allowed; }

/* 할인 코드 안내 메시지 */
.discount-msg { font-size: 13px; color: #15803d; margin: 6px 0 0; }
.discount-msg.err { color: #b91c1c; }
.summary-totals .row.discount span { color: var(--color-primary); }

/* 폼 상태 메시지 (문의 등) */
.form-status.err { color: #b91c1c; }

/* ── 장바구니 페이지 ── */
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; margin: 24px 0 80px; }
.cart-lines { display: flex; flex-direction: column; gap: 14px; }
.cart-line {
  display: grid; grid-template-columns: 84px 1fr auto auto 28px;
  gap: 16px; align-items: center;
  border: 1px solid var(--color-border); border-radius: 10px; padding: 14px;
}
.cart-thumb { width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; background: var(--color-bg-soft); border-radius: 8px; overflow: hidden; }
.cart-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cart-name { font-weight: 600; color: var(--color-text); }
.cart-code { font-size: 13px; color: var(--color-text-light); margin: 2px 0; }
.cart-unit { font-size: 13px; color: var(--color-text-light); }
.cart-qty { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: 8px; overflow: hidden; }
.cart-qty .ci-qty-btn { width: 32px; height: 36px; border: none; background: var(--color-bg-soft); cursor: pointer; font-size: 16px; }
.cart-qty-input { width: 48px; height: 36px; border: none; text-align: center; font-size: 14px; -moz-appearance: textfield; }
.cart-qty-input::-webkit-outer-spin-button, .cart-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-line-price { font-weight: 700; white-space: nowrap; }
.cart-line .ci-remove { border: none; background: none; font-size: 22px; color: var(--color-text-muted); cursor: pointer; line-height: 1; }
.cart-line .ci-remove:hover { color: var(--color-primary); }
.cart-summary { border: 1px solid var(--color-border); border-radius: 12px; padding: 22px; position: sticky; top: 24px; }
.cart-summary h3 { font-size: 16px; margin: 0 0 16px; }
.cart-summary .row { display: flex; justify-content: space-between; font-size: 14px; padding: 7px 0; color: var(--color-text-light); }
.cart-summary .row.total { border-top: 1px solid var(--color-border); margin-top: 8px; padding-top: 14px; font-size: 16px; color: var(--color-text); }
.cart-summary .btn { width: 100%; margin-top: 14px; }
.cart-ship-note { font-size: 12px; color: var(--color-text-muted); margin: 12px 0 0; text-align: center; }

/* ── 주문 내역 / 조회 ── */
.order-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 80px; }
.order-card { border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; }
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; background: var(--color-bg-soft); border-bottom: 1px solid var(--color-border); }
.order-head .order-date { color: var(--color-text-muted); font-size: 12px; margin-left: 10px; }
.order-status { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #e6f4ea; color: #15803d; }
.order-status.awaiting_deposit,
.order-status.waiting_for_deposit { background: #fff7db; color: #9a6700; }
.order-status.refunded,
.order-status.canceled,
.order-status.failed { background: #fdecec; color: #b91c1c; }
.order-status.partial_refunded { background: #fff1e6; color: #c2410c; }
.order-body { padding: 6px 18px; }
.order-item { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; padding: 8px 0; font-size: 14px; border-bottom: 1px dashed var(--color-border-soft); }
.order-item:last-child { border-bottom: none; }
.order-item small { color: var(--color-text-muted); }
.order-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: var(--color-bg-soft); font-size: 14px; }

/* 우편번호 검색 버튼 */
.btn-zip { white-space: nowrap; padding: 0 14px; border: 1px solid var(--color-border); background: var(--color-bg-soft); border-radius: 8px; cursor: pointer; font-size: 14px; }
.btn-zip:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* 체크아웃: 사업자/증빙 조건부 영역 */
.cond-block { display: none; }
.cond-block.show { display: block; }

@media (max-width: 860px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .cart-line { grid-template-columns: 64px 1fr auto; grid-row-gap: 10px; }
  .cart-line .cart-qty { grid-column: 2 / 3; }
  .cart-line-price { grid-column: 3 / 4; }
  .cart-line .ci-remove { grid-column: 3 / 4; justify-self: end; }
}

/* ============================================================
   형번(옵션) 구성기 — 제품 상세
   ============================================================ */
.variant-config { margin: 14px 0 20px; }
.vc-axes {
  display: flex; flex-wrap: wrap; gap: 14px 20px;
  padding: 16px; background: var(--color-bg-soft); border-radius: 10px; margin-bottom: 16px;
}
.vc-axis { display: flex; flex-direction: column; gap: 6px; }
.vc-axis label { font-size: 13px; font-weight: 600; color: var(--color-text); }
.vc-axis select {
  min-width: 96px; padding: 8px 10px; font-size: 14px;
  border: 1px solid var(--color-border); border-radius: 8px; background: #fff; cursor: pointer;
}
.vc-title { font-size: 16px; font-weight: 700; margin: 0 0 10px; }
.vc-table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: 10px; }
.vc-table { width: 100%; border-collapse: collapse; min-width: 680px; font-size: 14px; }
.vc-table th, .vc-table td { padding: 12px 10px; text-align: center; border-bottom: 1px solid var(--color-border-soft); }
.vc-table thead th {
  background: var(--color-bg-soft); font-size: 12px; font-weight: 700;
  color: var(--color-text-light); white-space: nowrap;
}
.vc-table tbody tr:last-child td { border-bottom: none; }
.vc-table .vc-img { width: 70px; }
.vc-table .vc-img img { width: 56px; height: 56px; object-fit: contain; }
.vc-table .vc-code { font-weight: 600; white-space: nowrap; }
.vc-table .vc-price { color: var(--color-primary); white-space: nowrap; }
.vc-table .vc-price .muted { color: var(--color-text-muted); font-weight: 500; }
.vc-table .vc-price small { color: var(--color-text-muted); font-weight: 400; margin-left: 3px; }
.vc-table .vc-stock { font-weight: 600; color: #15803d; white-space: nowrap; }
.vc-table .vc-stock.so { color: #b91c1c; }
/* 작은 수량 스테퍼 / 버튼 (구성기 표 안) */
.qty-stepper.sm { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: 8px; overflow: hidden; }
.qty-stepper.sm .qty-btn { width: 28px; height: 32px; border: none; background: var(--color-bg-soft); cursor: pointer; font-size: 15px; }
.qty-stepper.sm input { width: 42px; height: 32px; border: none; text-align: center; font-size: 14px; -moz-appearance: textfield; }
.qty-stepper.sm input::-webkit-outer-spin-button, .qty-stepper.sm input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.btn.sm { padding: 7px 16px; font-size: 13px; }

/* ============================================================
   제품 상세 — 스토어형 우측 패널 (네이버 스마트스토어 참고)
   ============================================================ */
.pd-store h1 { font-size: 24px; line-height: 1.35; margin: 0 0 6px; }
.pd-store .product-code { color: var(--color-text-light); font-size: 14px; margin-bottom: 16px; }

.pd-price-box { border-top: 1px solid var(--color-border); padding-top: 16px; margin-bottom: 14px; }
.pd-price { font-size: 30px; font-weight: 800; color: var(--color-text); }
.pd-price .muted { color: var(--color-text-muted); font-weight: 700; font-size: 22px; }
.pd-price strong { color: var(--color-primary); }
.pd-price .vat-note { font-size: 13px; color: var(--color-text-muted); font-weight: 500; margin-left: 6px; }
.pd-ship-fee { font-size: 14px; color: var(--color-text-light); margin-top: 8px; }
.pd-ship-fee strong { color: var(--color-text); }

.pd-info-row { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--color-border-soft); font-size: 14px; }
.pd-info-label { color: var(--color-text-muted); min-width: 48px; }
.pd-info-val { color: var(--color-text); line-height: 1.6; }

.pd-sec-title { font-size: 15px; font-weight: 700; margin: 22px 0 12px; }
.pd-options .vc-axes { margin-bottom: 0; }

/* 선택 상품 요약 박스 */
.pd-selected { margin: 18px 0 6px; border: 1px solid var(--color-border); border-radius: 10px; overflow: hidden; }
.pd-sel-item { padding: 14px 16px; background: var(--color-bg-soft); }
.pd-sel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.pd-sel-name { font-weight: 600; font-size: 14px; }
.pd-sel-stock { font-size: 12px; font-weight: 700; color: #15803d; white-space: nowrap; }
.pd-sel-stock.so { color: #b91c1c; }
.pd-sel-line { display: flex; justify-content: space-between; align-items: center; }
.pd-sel-amt { font-weight: 700; }
.pd-sel-amt .muted { color: var(--color-text-muted); font-weight: 600; }
.pd-sel-total { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; font-size: 14px; }
.pd-sel-total b { font-weight: 700; }
.pd-total-amt { color: var(--color-primary); font-size: 20px; }

/* 배송방법 */
.pd-shipmethod { margin: 20px 0 6px; }
.pd-shipmethod .pd-sec-title { display: block; margin: 0 0 8px; }
.pd-ship-tabs { display: flex; gap: 8px; }
.pd-ship-tab { padding: 11px 22px; border: 1px solid var(--color-text); border-radius: 8px; background: #fff; font-size: 14px; font-weight: 600; cursor: default; }
.pd-ship-tab.active::before { content: '✓ '; }

/* 액션 버튼 (구매하기 / 찜하기 / 장바구니) */
.pd-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.pd-actions .btn-buy-now { grid-column: 1 / -1; padding: 16px; font-size: 16px; }
.pd-actions .btn.is-disabled { opacity: .5; pointer-events: none; }
.pd-purchase-help {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff4f4;
  color: #b42318;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}
.pd-quote-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pd-note { font-size: 12px; color: var(--color-text-muted); margin-top: 12px; line-height: 1.6; }
.pd-image-note { font-size: 13px; color: #d32f2f; font-weight: 700; margin-top: 4px; line-height: 1.6; }

/* 배송비 구간 안내 */
.pd-ship-tier { display: block; font-size: 12px; color: var(--color-text-muted); margin-top: 3px; }

/* 견적 문의 버튼 */
.btn-quote {
  flex: 1 1 auto; min-width: 160px; text-align: center;
  padding: 12px 16px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--color-border); border-radius: 8px;
  background: var(--color-bg-soft); color: var(--color-text);
}
.btn-quote:hover { border-color: var(--color-primary); color: var(--color-primary); background: #fff; }

/* 옵션 아코디언 */
.pd-options .vc-axes { display: block; padding: 0; background: none; }
.opt-acc { border: 1px solid var(--color-border); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.opt-acc.open { border-color: var(--color-primary); }
.opt-acc-head {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 15px 18px; background: #fff; border: none; cursor: pointer;
  font-size: 15px; font-weight: 600; color: var(--color-text); text-align: left;
}
.opt-acc-head:disabled { color: var(--color-text-muted); background: #f7f8fa; cursor: not-allowed; }
.opt-acc-label { flex: 1; }
.opt-acc-sel { color: var(--color-primary); font-weight: 700; }
.opt-acc-chev { color: var(--color-text-muted); font-size: 18px; line-height: 1; transition: transform .15s; }
.opt-acc.open .opt-acc-chev { transform: rotate(180deg); }
.opt-acc-body { display: none; border-top: 1px solid var(--color-border-soft); }
.opt-acc.open .opt-acc-body { display: block; }
.opt-acc-item {
  width: 100%; display: block; text-align: left;
  padding: 13px 18px 13px 44px; position: relative;
  background: var(--color-bg-soft); border: none; border-bottom: 1px solid var(--color-border-soft);
  font-size: 14px; color: var(--color-text); cursor: pointer;
}
.opt-acc-item:last-child { border-bottom: none; }
.opt-acc-item:hover { background: #eef2f7; }
.opt-acc-item:disabled,
.opt-acc-item:disabled:hover {
  color: #9ca3af; background: #f7f8fa; cursor: not-allowed;
}
.opt-acc-item:disabled::after {
  content: '등록 형번 없음'; float: right; margin-left: 12px;
  color: #9ca3af; font-size: 11px; font-weight: 500;
}
.opt-acc-item::before {
  content: ''; position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; border: 1.5px solid var(--color-border); border-radius: 50%;
}
.opt-acc-item.is-sel { color: var(--color-primary); font-weight: 700; }
.opt-acc-item.is-sel::before { border-color: var(--color-primary); background: var(--color-primary); box-shadow: inset 0 0 0 3px #fff; }
.pd-option-note { margin: 8px 2px 0; color: var(--color-text-muted); font-size: 12px; line-height: 1.5; }
.pd-option-note.is-empty { color: #b91c1c; font-weight: 600; }

@media (max-width: 480px) {
  .pd-actions { grid-template-columns: 1fr; }
  .btn-quote { min-width: 100%; }
}

/* ============================================================
   카카오톡 문의 플로팅 버튼 (전 페이지 공통 / js/main.js 에서 주입)
   ============================================================ */
.kakao-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9990;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 12px 14px;
  background: #FEE500;
  color: #3C1E1E;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.kakao-fab:hover {
  color: #3C1E1E;
  background: #ffe812;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}
.kakao-fab:active { transform: translateY(0); }
.kakao-fab svg { width: 26px; height: 26px; display: block; flex: 0 0 auto; }
.kakao-fab__label { white-space: nowrap; }

/* 모바일: 아이콘만 (원형) */
@media (max-width: 640px) {
  .kakao-fab { right: 16px; bottom: 16px; padding: 13px; }
  .kakao-fab__label { display: none; }
  .kakao-fab svg { width: 28px; height: 28px; }
}

/* ============================================================
   모바일 최적화 (공통 / 전 페이지)
   - 320~720px에서 본문 가로 스크롤 방지
   - 한국어 어절 단위 줄바꿈과 긴 형번·이메일 예외 처리
   - 44px 안팎의 터치 영역 확보
   ============================================================ */
.mobile-filter-toggle {
  display: none;
}

.bank-account-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 12px;
}

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

.checkout-form .field-row.zip-row .field {
  min-width: 0;
}

@media (min-width: 721px) and (max-width: 980px) {
  .logo-img {
    height: 48px;
  }

  .checkout-header .logo-img {
    height: 40px;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 72px;
  }

  html,
  body {
    overflow-x: clip;
  }

  .container {
    padding-right: 16px;
    padding-left: 16px;
  }

  .section {
    padding: 48px 0;
  }

  .section-header {
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
  }

  .section-header h2,
  .made-in h2,
  .inquiry-form h2,
  .about-hero h1,
  .product-meta h1,
  .pd-store h1,
  .legal-title,
  .legal-content h2,
  .page-title,
  .checkout-form .form-block h2,
  .checkout-empty h2,
  .checkout-done h2 {
    word-break: keep-all;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .made-in-text,
  .contact-text,
  .footer-col,
  .legal-content,
  .account-card,
  .order-card,
  .pd-info-val {
    overflow-wrap: anywhere;
    text-wrap: pretty;
  }

  /* 상단 안내바 */
  .top-bar {
    padding: 7px 0;
    font-size: 11.5px;
  }

  .top-bar .container {
    gap: 10px;
  }

  .top-bar-left,
  .top-bar-right {
    min-width: 0;
    gap: 8px;
  }

  .top-bar-left {
    flex: 1 1 auto;
  }

  .top-bar-right {
    flex: 0 1 auto;
    justify-content: flex-end;
  }

  .top-bar-left .divider,
  .top-bar-right .auth-sep {
    display: none;
  }

  .top-bar span,
  .top-bar a,
  .lang-btn {
    white-space: nowrap;
  }

  .auth-greeting {
    display: block;
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* 공통 헤더 / 모바일 메뉴 */
  .site-header {
    top: 0;
  }

  .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 60px;
    padding: 8px 12px;
  }

  .logo-img {
    height: 32px;
    max-width: 120px;
  }

  .header-icons {
    gap: 0;
    justify-content: flex-end;
  }

  .icon-link {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 20px;
    line-height: 1;
  }

  .icon-badge {
    top: 0;
    right: 0;
  }

  .menu-toggle {
    display: none;
  }

  .menu-toggle.is-ready {
    display: inline-flex;
  }

  .main-nav.is-collapsible {
    display: none;
  }

  .main-nav.is-collapsible.open {
    display: block;
    border-bottom-color: var(--color-border);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 16px;
  }

  .main-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 12px;
    text-align: center;
  }

  .main-nav a.active::after {
    right: 35%;
    bottom: 3px;
    left: 35%;
  }

  .breadcrumb-bar {
    padding: 18px 0;
  }

  /* 홈 히어로: 원본 이미지 안의 문구까지 전체 노출 */
  .hero {
    min-height: clamp(360px, calc(52.5vw + 136px), 514px);
    background: #d8e2ec;
  }

  .hero-slide {
    background-color: #d8e2ec;
    background-position: center top;
    background-size: 100% auto;
  }

  .hero-inner {
    min-height: clamp(360px, calc(52.5vw + 136px), 514px);
    padding: 0 12px 12px;
  }

  .hero-tabs {
    margin-top: auto;
    padding: 16px 8px 10px;
  }

  .hero-tabs-title {
    margin-bottom: 10px;
    font-size: 14px;
  }

  .hero-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 8px 5px;
    font-size: 14px;
    line-height: 1.35;
    word-break: keep-all;
  }

  .hero-dots {
    bottom: 124px;
    gap: 0;
  }

  .hero-dots button {
    position: relative;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
  }

  .hero-dots button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    transform: translate(-50%, -50%);
  }

  .hero-dots button.active {
    width: 44px;
    background: transparent;
  }

  .hero-dots button.active::before {
    width: 28px;
    border-radius: 5px;
    background: var(--color-primary);
  }

  /* 홈 콘텐츠 */
  .product-grid {
    gap: 12px;
  }

  .product-info {
    padding: 13px 12px 15px;
  }

  .product-info h3 {
    min-height: 39px;
    height: auto;
    margin-bottom: 8px;
    font-size: 13px;
  }

  .product-info .price {
    font-size: 16px;
    line-height: 1.45;
  }

  .product-info .vat-note {
    display: block;
    margin-left: 0;
  }

  .made-in {
    padding: 48px 0 32px;
  }

  .made-in h2 {
    margin-bottom: 24px;
    font-size: 20px;
    line-height: 1.55;
  }

  .made-in-content {
    gap: 22px;
  }

  .made-in-text {
    line-height: 1.75;
    text-align: left;
  }

  .inquiry-section {
    padding: 48px 0;
  }

  .inquiry-grid {
    gap: 28px;
  }

  .inquiry-form {
    padding: 26px 18px;
  }

  .inquiry-form h2 {
    margin-bottom: 22px;
    font-size: 20px;
  }

  .inquiry-form input,
  .inquiry-form textarea,
  .inquiry-form select,
  .price-filter input,
  .sort-wrap select,
  .auth-row input,
  .checkout-form .field input,
  .checkout-form .field select,
  .vc-axis select {
    font-size: 16px;
  }

  .contact-item {
    gap: 14px;
    margin-bottom: 22px;
  }

  .contact-text {
    min-width: 0;
    text-align: left;
  }

  .contact-text strong,
  .contact-text a,
  .footer-col a {
    overflow-wrap: anywhere;
  }

  /* 제품 목록 */
  .catalog-layout {
    gap: 16px;
    padding: 24px 0 56px;
  }

  .mobile-filter-toggle {
    display: none;
  }

  .mobile-filter-toggle.is-ready {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: #fff;
    color: var(--color-text);
    font-size: 15px;
    font-weight: 700;
    text-align: left;
  }

  .mobile-filter-toggle .toggle-icon {
    transition: transform 0.2s ease;
  }

  .mobile-filter-toggle[aria-expanded='true'] .toggle-icon {
    transform: rotate(180deg);
  }

  .catalog-sidebar.is-mobile-collapsible {
    display: none;
  }

  .catalog-sidebar.is-mobile-collapsible.is-open {
    display: block;
    padding: 4px 14px 14px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
  }

  .support-box {
    margin-top: 10px;
  }

  .price-filter > * {
    min-width: 0;
  }

  .filter-check {
    min-height: 44px;
    padding: 8px 0;
  }

  .filter-check input[type='checkbox'] {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
  }

  .filter-group summary,
  .btn-filter,
  .price-filter input {
    min-height: 44px;
  }

  .catalog-toolbar {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 12px;
    padding: 12px;
    margin-bottom: 18px;
  }

  .view-toggle {
    gap: 6px;
  }

  .view-toggle button {
    width: 44px;
    height: 44px;
  }

  .catalog-toolbar .count {
    justify-self: end;
    text-align: right;
  }

  .sort-wrap {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
  }

  .sort-wrap select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
  }

  .product-grid.list-view .product-card {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
    padding-right: 12px;
  }

  .product-grid.list-view .product-info {
    min-width: 0;
    padding: 12px 0;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 30px;
  }

  .pagination button {
    min-width: 44px;
    height: 44px;
  }

  /* 제품 상세 */
  .product-detail {
    gap: 28px;
    padding: 28px 0 42px;
  }

  .product-gallery .main-image {
    padding: 16px;
  }

  .product-title-row {
    align-items: stretch;
    gap: 12px;
  }

  .product-meta h1,
  .pd-store h1 {
    font-size: 22px;
    line-height: 1.45;
  }

  .btn-series-detail {
    width: 100%;
    min-height: 46px;
  }

  .product-actions {
    flex-direction: column;
  }

  .spec-table {
    table-layout: fixed;
    font-size: 13px;
  }

  .spec-table th,
  .spec-table td {
    padding: 10px;
    overflow-wrap: anywhere;
    vertical-align: top;
  }

  .spec-table th {
    width: 34%;
  }

  .pd-price {
    font-size: 26px;
  }

  .pd-price .muted {
    font-size: 19px;
  }

  .pd-info-row {
    align-items: flex-start;
    gap: 10px;
  }

  .pd-info-label {
    flex: 0 0 56px;
    min-width: 56px;
  }

  .qty-stepper .qty-btn {
    width: 44px;
    height: 44px;
  }

  .qty-stepper input {
    width: 48px;
    min-height: 44px;
    font-size: 16px;
  }

  .vc-axes {
    gap: 12px;
    padding: 14px;
  }

  .vc-axis {
    flex: 1 1 130px;
    min-width: 0;
  }

  .vc-axis select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
  }

  .vc-table-wrap {
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  .qty-stepper.sm .qty-btn {
    width: 44px;
    height: 44px;
  }

  .qty-stepper.sm input {
    width: 48px;
    height: 44px;
    font-size: 16px;
  }

  .pd-sel-head,
  .pd-sel-line,
  .pd-sel-total {
    flex-wrap: wrap;
    gap: 10px;
  }

  .pd-ship-tabs,
  .pd-quote-links {
    flex-direction: column;
  }

  .pd-ship-tab,
  .btn-quote {
    width: 100%;
    min-width: 0;
    min-height: 46px;
  }

  .opt-acc-head,
  .opt-acc-item {
    min-height: 48px;
  }

  .opt-acc-head {
    padding: 13px 14px;
    font-size: 14px;
  }

  .opt-acc-item {
    padding-right: 14px;
  }

  /* 회사소개 / 푸터 */
  .about-hero {
    padding: 42px 0;
  }

  .about-hero h1 {
    font-size: 28px;
  }

  .about-hero p {
    font-size: 14px;
  }

  .about-hero p br {
    display: none;
  }

  .info-card {
    padding: 24px 18px;
  }

  .site-footer {
    padding: 40px 0 22px;
  }

  .footer-top {
    gap: 28px;
    padding-bottom: 26px;
  }

  .footer-col {
    min-width: 0;
    text-align: left;
  }

  .footer-bottom {
    padding-top: 16px;
    line-height: 1.7;
  }

  /* 체크아웃 / 결제 결과 */
  .checkout-header-inner {
    justify-content: flex-start;
    min-height: 58px;
    padding: 12px 16px;
  }

  .checkout-header .logo-img {
    height: 28px;
    max-width: 106px;
  }

  .checkout-header .lang-switch {
    right: 14px;
  }

  .checkout-header .lang-btn {
    font-size: 12px;
  }

  .checkout-form-wrap,
  .checkout-summary-wrap {
    min-width: 0;
    padding: 24px 16px;
  }

  .checkout-form .block-head {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .checkout-form .field input,
  .checkout-form .field select {
    min-height: 48px;
  }

  .checkout-form .field {
    min-width: 0;
  }

  .checkout-form .check-line {
    align-items: flex-start;
    min-height: 40px;
  }

  .checkout-form .check-line input[type='checkbox'] {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 2px;
  }

  .ship-row {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .pay-method-choice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 76px;
  }

  .pay-method-choice em {
    margin-left: 0;
  }

  .summary-line {
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .thumb-wrap {
    width: 54px;
    height: 54px;
  }

  .line-name {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .line-code {
    overflow-wrap: anywhere;
  }

  .line-controls {
    flex-wrap: wrap;
    gap: 8px;
  }

  .ci-qty-btn {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
  }

  .ci-qty-val {
    min-width: 44px;
  }

  .line-controls .ci-remove {
    min-height: 44px;
    padding: 8px 4px;
  }

  .discount-row > * {
    min-width: 0;
  }

  .checkout-empty,
  .checkout-done {
    padding: 64px 16px;
  }

  .checkout-empty h2,
  .checkout-done h2 {
    font-size: 22px;
  }

  .checkout-done .btn,
  #resultActions .btn {
    display: block;
    width: 100%;
    max-width: 360px;
    margin: 8px auto !important;
  }

  .bank-account-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: 6px 0;
    overflow-wrap: anywhere;
  }

  /* 정책 표: 표 의미는 유지하고 좁은 화면에서는 셀 안에서 자연스럽게 줄바꿈 */
  .legal-content h2 {
    font-size: 18px;
    line-height: 1.5;
  }

  .legal-table {
    table-layout: fixed;
    font-size: 12.5px;
  }

  .legal-table th,
  .legal-table td {
    padding: 8px 6px;
    overflow-wrap: anywhere;
    word-break: keep-all;
    vertical-align: top;
    text-align: left;
  }

  .legal-table th:nth-child(1) { width: 29%; }
  .legal-table th:nth-child(2) { width: 46%; }
  .legal-table th:nth-child(3) { width: 25%; }

  /* 로그인 / 계정 */
  .auth-page {
    padding: 32px 16px 60px;
  }

  .auth-card {
    padding: 32px 20px 28px;
  }

  .auth-row input {
    min-height: 48px;
  }

  .btn-auth {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding-right: 24px;
    padding-left: 24px;
  }

  .account-page {
    padding: 32px 16px 56px;
  }

  .page-title {
    margin-bottom: 22px;
    padding-bottom: 14px;
    font-size: 23px;
  }

  .account-card {
    padding: 20px;
  }

  .account-table {
    table-layout: fixed;
  }

  .account-table td {
    overflow-wrap: anywhere;
  }

  .wishlist-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .empty-state {
    padding: 56px 8px;
  }

  /* 장바구니 */
  .cart-layout {
    gap: 22px;
    margin: 18px 0 56px;
  }

  .cart-line {
    position: relative;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px 12px;
    align-items: start;
    padding: 12px;
  }

  .cart-thumb {
    grid-row: 1 / span 2;
    width: 64px;
    height: 64px;
  }

  .cart-info {
    grid-column: 2;
    min-width: 0;
    padding-right: 28px;
  }

  .cart-name,
  .cart-code {
    display: block;
    overflow-wrap: anywhere;
  }

  .cart-qty {
    grid-column: 2;
    justify-self: start;
  }

  .cart-qty .ci-qty-btn {
    width: 44px;
    height: 44px;
  }

  .cart-qty-input {
    width: 46px;
    height: 44px;
    font-size: 16px;
  }

  .cart-line-price {
    grid-column: 1 / -1;
    justify-self: end;
    white-space: normal;
  }

  .cart-line .ci-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
  }

  .cart-summary {
    padding: 18px;
  }

  /* 주문 내역 / 비회원 주문 조회 */
  .order-head,
  .order-foot {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 12px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .order-head > div {
    min-width: 0;
    flex: 1 1 190px;
  }

  .order-head strong {
    display: block;
    overflow-wrap: anywhere;
  }

  .order-head .order-date {
    display: block;
    margin: 4px 0 0;
  }

  .order-body {
    padding-right: 14px;
    padding-left: 14px;
  }

  .order-item {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
  }

  .order-item > span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .order-item > span:nth-child(3) {
    grid-column: 2;
    justify-self: end;
  }

  .order-item small {
    display: block;
    overflow-wrap: anywhere;
  }

  .order-foot > span {
    flex: 1 1 180px;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 480px) {
  .top-bar-left a,
  .auth-greeting {
    display: none;
  }

  .section-header h2 {
    font-size: 20px;
  }

  .pay-method-choice em {
    grid-column: 2 / -1;
    justify-self: start;
    text-align: left;
  }

  .summary-line {
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: start;
  }

  .summary-line .line-price {
    grid-column: 2;
    justify-self: end;
  }

  .checkout-form .field-row.zip-row {
    grid-template-columns: 1fr;
  }

  .checkout-form .field-row.zip-row .btn-zip {
    min-height: 48px;
  }

  .pd-actions {
    grid-template-columns: 1fr;
  }

  .pd-actions .btn-buy-now {
    grid-column: auto;
  }

}

@media (max-width: 340px) {
  .logo-img {
    height: 29px;
    max-width: 108px;
  }

  .icon-link {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
  }

  .header-inner {
    padding-right: 8px;
    padding-left: 8px;
  }

  .product-grid:not(.list-view) {
    grid-template-columns: 1fr;
  }
}
