/* ===== Paperlogy 폰트 전체 적용 (default.css Malgun Gothic 오버라이드) ===== */
body, h1, h2, h3, h4, h5, h6,
input, button, textarea, select, label, p, a, span, li, td, th {
    font-family: 'Paperlogy', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* ===== 그누보드 default.css 레이아웃 중화 (셀러클럽 우선 적용) ===== */
#hd, #wrapper, #ft { min-width: 0; }
#hd { background: transparent; }
#container_wr { width: auto; margin: 0; }
#container {
  position: static;
  float: none;
  width: auto;
  min-height: 0;
  margin: 0;
  font-size: 15px;
}
#container_wr:after, #container:after { content: none; display: none; }

/* index(메인): hero·섹션이 전체폭 풀블리드 */
body.page-index #container { padding: 0; }

/* 일반 페이지(게시판 등): 가운데 정렬 + 좌우 여백 */
body.page-sub #container {
  max-width: 1920px;
  width: 94%;
  margin: 0 auto;
  padding: 30px 20px 60px;
}
body.page-sub #container_title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 20px;
}

/* ===== XEICON ===== */
.qc-icon i { font-size: 36px; color: var(--blue); }
.wc-logo i { font-size: 40px; color: var(--blue); }
.prod-thumb i { font-size: 56px; color: var(--text-muted); }
.wc-rating i { color: var(--gold); font-size: 13px; }
.hc-header i { margin-right: 4px; }
.pc-likes i { color: #EF4444; }
.seller-sales i { font-size: 11px; }
.footer-social a i { font-size: 20px; }
.post-meta i { font-size: 11px; margin-right: 2px; }

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── 유통 테마 컬러 ── */
  /* Primary : 웜 오렌지 — 활기·구매유도·유통 에너지 */
  --blue: #FF7A2F;
  --blue-dark: #E8621A;
  --blue-light: #FFF1E8;
  /* Button Gradient : 블루 그라디언트 — 버튼 전용 */
  --btn-grad: linear-gradient(rgb(63,124,252) 0%, rgb(63,93,252) 100%);
  --btn-grad-hover: linear-gradient(rgb(45,108,240) 0%, rgb(45,75,240) 100%);
  /* Secondary : 에메랄드 그린 — 성장·판매·유통 흐름 */
  --green: #00b894;
  --green-dark: #00a382;
  --green-light: #C8F5EC;
  /* Point : 비비드 골드 — 마진·인기·추천·강조 */
  --gold: #ffd43b;
  --gold-dark: #e6b800;
  --gold-light: #FFF8D6;

  --text: #111827;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --bg-gray: #F8FAFC;
  --white: #ffffff;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.1);
  --radius: 10px;
  --radius-sm: 6px;

  --search-input-bg: #ffffff;
  --hero-bg: linear-gradient(135deg, #F8F9FA 0%, #F1F3F5 50%, #F8F9FA 100%);
  --hero-card-bg: #ffffff;

  /* 게시판 스킨(--m-*) 별칭 */
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #FF7A2F;
  --brand-dark: #E8621A;
  --brand-light: #FFF1E8;
  --accent: #FF7A2F;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --text: #f3f4f6;
  --text-muted: #9ca3af;
  --border: #374151;
  --bg-gray: #111827;
  --white: #1f2937;
  --blue-light: #3b2416;
  --gold-dark: #ffd43b;
  --shadow: 0 1px 3px rgba(0,0,0,.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,.35);
  --shadow-lg: 0 12px 28px rgba(0,0,0,.45);
  --search-input-bg: #111827;
  --hero-bg: linear-gradient(135deg, #1c1917 0%, #1a1520 45%, #0f172a 100%);
  --hero-card-bg: #1f2937;
  --ink: #f3f4f6;
  --ink-2: #e5e7eb;
  --muted: #9ca3af;
  --line: #374151;
  --brand: #FF8A4A;
  --brand-dark: #FF7A2F;
  --brand-light: #3b2416;
  --accent: #FF8A4A;
}
html[data-theme="dark"] body { background: #0f172a; color: var(--text); }
/* reCAPTCHA: 300x74에서 1px 축소 + 위·왼쪽 테두리 클립 */
.g5-recaptcha,
.g-recaptcha,
.g-recaptcha > div {
  width: 299px !important;
  height: 73px !important;
  overflow: hidden !important;
  background: transparent !important;
}
.g-recaptcha iframe,
iframe[title="reCAPTCHA"] {
  margin: -1px 0 0 -1px;
}
/* 댓글 이름/비밀번호: 스킨 .frm_input { background:#fff } · iOS 네이티브 흰 배경 덮기 */
html[data-theme="dark"] input.frm_input,
html[data-theme="dark"] input.frm_input.required,
html[data-theme="dark"] input[type="text"].frm_input,
html[data-theme="dark"] input[type="password"].frm_input,
html[data-theme="dark"] textarea.frm_input,
html[data-theme="dark"] .bo_vc_w textarea,
html[data-theme="dark"] .bo_vc_w_info .frm_input,
html[data-theme="dark"] .bo_vc_w_info #wr_name,
html[data-theme="dark"] .bo_vc_w_info #wr_password {
  background-color: #111827 !important;
  color: #f3f4f6 !important;
  border-color: #374151 !important;
  -webkit-appearance: none;
  appearance: none;
  color-scheme: dark;
  box-shadow: none;
}
html[data-theme="dark"] .bo_vc_w_info .frm_input::placeholder,
html[data-theme="dark"] input.frm_input::placeholder {
  color: #9ca3af !important;
  opacity: 1;
}
html[data-theme="dark"] .header { background: var(--white); }
html[data-theme="dark"] .sv_member { color: #e5e7eb !important; }
html[data-theme="dark"] .sv_guest { color: #d1d5db !important; }
html[data-theme="dark"] .chk_box input[type="checkbox"] + label span {
  background: #0b1220;
  border: 2px solid #9ca3af;
  box-sizing: border-box;
}
html[data-theme="dark"] .chk_box input[type="checkbox"]:checked + label span,
html[data-theme="dark"] #bo_list .chk_box input[type="checkbox"]:checked + label span,
html[data-theme="dark"] #bo_list .sc-row-chk.chk_box input[type="checkbox"]:checked + label span,
html[data-theme="dark"] #bo_list .ql-selall input[type="checkbox"]:checked + label span {
  background: var(--blue, #FF7A2F) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M2.2 6.2l2.6 2.6 5-5.4'/%3E%3C/svg%3E") no-repeat center;
  background-size: 10px 10px;
  border-color: var(--blue, #FF7A2F);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Paperlogy', -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 15px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

.container {
  max-width: 1920px;
  width: 94%;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding { padding: 70px 0; }
.bg-gray { background: var(--bg-gray); }

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--btn-grad);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: opacity .2s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--btn-grad-hover); }

.btn-ghost {
  color: var(--text-muted);
  padding: 8px 14px;
  font-size: 14px;
  transition: color .2s;
}
.btn-ghost:hover { color: var(--blue); }

.btn-outline {
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: border-color .2s, color .2s;
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

.btn-more {
  font-size: 14px;
  color: var(--blue);
  font-weight: 500;
  white-space: nowrap;
}
.btn-more:hover { text-decoration: underline; }

.btn-card {
  display: block;
  text-align: center;
  background: var(--blue-light);
  color: var(--blue);
  padding: 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  margin-top: 12px;
  transition: background .2s, color .2s;
}
.btn-card:hover { background: var(--blue); color: #fff; }

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.section-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
}
.section-desc {
  color: var(--text-muted);
  font-size: 14px;
  flex: 1;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.header-top-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}

.search-wrap { justify-self: center; width: 100%; max-width: 560px; }

.logo a {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-icon { display: block; width: auto; height: 28px; flex: 0 0 auto; }
.logo-text {
  font-size: 22px;
  font-weight: 900;
  color: var(--blue);
  white-space: nowrap;
}
.logo-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}
.logo-tagline {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
}

.search-wrap { flex: 1; max-width: 520px; }
.search-box {
  display: flex;
  border: 2px solid rgb(63, 93, 252);
  border-radius: 8px;
  overflow: hidden;
  background: var(--search-input-bg);
}
/* 그누보드 검색 폼(<form>)이 select·input·button을 감싸므로 form도 flex 처리 */
.search-box form {
  display: flex;
  width: 100%;
}
.search-category {
  border: none;
  border-right: 1px solid var(--border);
  border-radius: 0;
  height: auto;
  align-self: stretch;
  padding: 0 10px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-gray);
  cursor: pointer;
  outline: none;
  font-family: inherit;
}
.search-input {
  flex: 1;
  min-width: 0;
  border: none !important;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  background: var(--search-input-bg);
  color: var(--text);
  box-shadow: none !important;
}
.search-input::placeholder {
  color: var(--text-muted);
  opacity: 1;
}
.search-input:focus,
.search-category:focus {
  box-shadow: none !important;
  border: none !important;
}
.search-category:focus {
  border-right: 1px solid var(--border) !important;
}
.search-btn {
  background: var(--btn-grad);
  color: #fff;
  border: none;
  padding: 0 16px;
  font-size: 18px;
  cursor: pointer;
  transition: opacity .2s;
}
.search-btn:hover { background: var(--btn-grad-hover); }

.header-user { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.hd-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--blue) !important;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.hd-cart-link i { font-size: 16px; }
.hd-cart-link b,
.m-cart-cnt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 19px;
  background: var(--blue);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
}
.hd-cart-link b.hd-req-cnt,
.m-cart-cnt.hd-req-cnt { background: #ef4444; }
.hd-cart-link b.hd-fav-cnt,
.m-cart-cnt.hd-fav-cnt { background: #f59e0b; }
.mobile-menu .m-cart-link { display: inline-flex; align-items: center; gap: 6px; }
.mobile-menu .m-cart-link i { color: var(--blue); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--bg-gray);
  color: var(--text-muted);
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  flex: 0 0 auto;
  transition: .18s;
}
.theme-toggle:hover { color: var(--blue); }
.theme-toggle .icon-light { display: none; }
.theme-toggle .icon-dark { display: inline; }
html[data-theme="dark"] .theme-toggle .icon-light { display: inline; }
html[data-theme="dark"] .theme-toggle .icon-dark { display: none; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  color: var(--text);
}

/* NAV */
.main-nav { border-top: 1px solid var(--border); background: var(--white); }
.nav-list {
  display: flex;
  gap: 0;
}
.nav-item { position: relative; }
.nav-item > a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s;
  white-space: nowrap;
}
.nav-item:hover > a, .nav-item.active > a { color: var(--blue); }
.nav-item.active > a { font-weight: 700; border-bottom: 2px solid var(--blue); }
.nav-item.highlight > a {
  color: var(--green);
  font-weight: 700;
}
.nav-item.highlight > a:hover { color: var(--green-dark); }

/* ===== 2차 드롭다운 메뉴 (마우스오버 시 표시) ===== */
.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 2px solid var(--blue);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 120;
  padding: 6px 0 0px 0;
}
.nav-item:hover .sub-menu { display: block; }
.sub-menu li a {
  display: block;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.sub-menu li a:hover { background: var(--blue-light); color: var(--blue); }
.sub-menu li.active a { background: var(--blue); color: #fff; font-weight: 700; }
.sub-menu li.active a:hover { background: var(--blue); color: #fff; }
html[data-theme="dark"] .sub-menu {
  background: #1f2937;
  border-color: #374151;
  border-top-color: var(--blue);
  box-shadow: 0 12px 28px rgba(0,0,0,.45);
}
html[data-theme="dark"] .sub-menu li a { color: #e5e7eb; }
html[data-theme="dark"] .sub-menu li a:hover {
  background: #3b2416;
  color: #FF8A4A;
}
html[data-theme="dark"] .sub-menu li.active a,
html[data-theme="dark"] .sub-menu li.active a:hover {
  background: var(--blue);
  color: #fff;
}
html[data-theme="dark"] .mobile-menu {
  background: #1f2937;
}
html[data-theme="dark"] .mobile-menu ul li a,
html[data-theme="dark"] .mobile-menu .m-row {
  border-bottom-color: #374151;
  color: #e5e7eb;
}
html[data-theme="dark"] .mobile-menu .m-sub { background: #111827; }
html[data-theme="dark"] .mobile-menu .m-sub li a {
  color: #d1d5db;
  border-bottom-color: #374151;
}
html[data-theme="dark"] .mobile-menu .m-sub li a:hover { color: #FF8A4A; }
html[data-theme="dark"] .mobile-menu .m-sub li.active a {
  background: var(--blue);
  color: #fff;
}
html[data-theme="dark"] .mobile-menu-close,
html[data-theme="dark"] .mobile-menu-close i {
  color: #e5e7eb;
  background: #1f2937;
}
html[data-theme="dark"] .mobile-menu .m-sub-toggle {
  color: #9ca3af;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0; left: -280px;
  width: 280px;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  background: #fff;
  z-index: 200;
  box-shadow: var(--shadow-lg);
  transition: left .3s ease;
  padding: 20px 20px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}
.mobile-menu.open { left: 0; }
.mobile-menu-inner {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-top: 8px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
}
.mobile-menu-close {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  margin: 0 0 8px auto;
  background: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text);
  padding: 4px;
}
.mobile-menu ul li a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

/* 모바일 2차 메뉴 아코디언 */
.mobile-menu .m-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.mobile-menu .m-row a {
  flex: 1;
  border-bottom: none;
}
.mobile-menu .m-sub-toggle {
  background: none;
  border: none;
  padding: 10px;
  font-size: 16px;
  color: var(--text-muted);
  cursor: pointer;
  transition: transform .25s ease;
}
.mobile-menu .has-sub.open .m-sub-toggle { transform: rotate(180deg); color: var(--blue); }
.mobile-menu .m-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  background: var(--bg-gray);
}
.mobile-menu .has-sub.open .m-sub { max-height: 600px; }
.mobile-menu .m-sub li a {
  padding: 12px 0 12px 16px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  border-bottom: 1px solid #eef0f3;
}
.mobile-menu .m-sub li:last-child a { border-bottom: none; }
.mobile-menu .m-sub li a:hover { color: var(--blue); }
.mobile-menu li.active > .m-row a { color: var(--blue); font-weight: 700; }
.mobile-menu .m-sub li.active a { background: var(--blue); color: #fff; font-weight: 700; }
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 150;
}
.mobile-overlay.open { display: block; }

/* ===== HERO ===== */
.hero {
  background: var(--hero-bg);
  padding: 70px 0;
}
.hero .container {
  display: flex;
  align-items: center;
  gap: 50px;
}
.hero-content { flex: 1; }
.hero-title {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--text);
}
.hero-title span { color: var(--blue); }
.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 30px;
}
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.btn-hero-primary {
  background: var(--btn-grad);
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  transition: opacity .2s, transform .2s;
}
.btn-hero-primary:hover { background: var(--btn-grad-hover); transform: translateY(-1px); }
.btn-hero-secondary {
  background: var(--hero-card-bg);
  color: var(--green);
  border: 2px solid var(--green);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  transition: background .2s, color .2s;
}
.btn-hero-secondary:hover { background: var(--green); color: #fff; }
.btn-hero-outline {
  color: var(--text-muted);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  border: 1px solid var(--border);
  background: var(--hero-card-bg);
  transition: border-color .2s, color .2s, background .2s;
}
.btn-hero-outline:hover { border-color: var(--gold); color: var(--gold-dark); }

.hero-stats {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat strong {
  font-size: 22px;
  font-weight: 900;
  color: var(--blue);
}
.stat span { font-size: 12px; color: var(--text-muted); }

/* Hero visual */
.hero-visual {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-card {
  background: var(--hero-card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid transparent;
}
.hero-card.small { padding: 16px; }
.hc-header {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.hc-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: inherit;
  text-decoration: none;
}
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
}
.hc-item:last-child { border-bottom: none; }
.hc-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
}
.hc-badge.hot { background: #FEF2F2; color: #EF4444; }
.hc-badge.new { background: #F0FDF4; color: #22C55E; }
.hc-badge.trend { background: #FFF7ED; color: #F97316; }
.hc-margin { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--gold-dark); }
.hc-prompt {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 12px;
  line-height: 1.5;
}
.hc-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--btn-grad);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: opacity .2s;
}
.hc-copy:hover { background: var(--btn-grad-hover); }

html[data-theme="dark"] .search-box {
  border-color: #60a5fa;
  background: var(--search-input-bg);
}
html[data-theme="dark"] .search-category {
  background: #0b1220;
  color: #e5e7eb;
  border-right-color: #374151;
}
html[data-theme="dark"] .search-input {
  background: #111827;
  color: #f3f4f6;
  color-scheme: dark;
}
html[data-theme="dark"] .search-input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #111827 inset;
  -webkit-text-fill-color: #f3f4f6;
  caret-color: #f3f4f6;
}
html[data-theme="dark"] .hero-title { color: #f3f4f6; }
html[data-theme="dark"] .hero-title span { color: #FF8A4A; }
html[data-theme="dark"] .hero-card {
  border-color: #374151;
  box-shadow: 0 12px 28px rgba(0,0,0,.45);
}
html[data-theme="dark"] .btn-hero-secondary {
  background: rgba(17,24,39,.55);
  color: #34d399;
  border-color: #34d399;
}
html[data-theme="dark"] .btn-hero-secondary:hover {
  background: var(--green);
  color: #fff;
}
html[data-theme="dark"] .btn-hero-outline {
  background: rgba(17,24,39,.55);
  color: #e5e7eb;
  border-color: #4b5563;
}
html[data-theme="dark"] .btn-hero-outline:hover {
  background: #1f2937;
  border-color: var(--gold);
  color: var(--gold);
}
html[data-theme="dark"] .hc-badge.hot { background: rgba(239,68,68,.18); color: #fca5a5; }
html[data-theme="dark"] .hc-badge.new { background: rgba(34,197,94,.18); color: #86efac; }
html[data-theme="dark"] .hc-badge.trend { background: rgba(249,115,22,.22); color: #fdba74; }

/* ===== QUICK MENU ===== */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.quick-card {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  transition: box-shadow .2s, transform .2s, border-color .2s, background .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.quick-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--green);
}
.qc-icon { font-size: 36px; }
.quick-card h3 { font-size: 15px; font-weight: 700; color: var(--text); }
.quick-card p { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.qc-count {
  font-size: 11px;
  background: var(--blue-light);
  color: var(--blue);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
  margin-top: 4px;
}
html[data-theme="dark"] .quick-card {
  background: #1f2937;
  border-color: #374151;
}
html[data-theme="dark"] .quick-card h3 { color: #f3f4f6; }
html[data-theme="dark"] .quick-card p { color: #9ca3af; }
html[data-theme="dark"] .qc-count {
  background: #3b2416;
  color: #FF8A4A;
}

/* ===== WHOLESALE CARDS ===== */
.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.wholesale-card {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: box-shadow .2s, border-color .2s, background .2s;
}
.wholesale-card:hover { box-shadow: var(--shadow-md); border-color: var(--green); }
.wc-logo {
  font-size: 40px;
  margin-bottom: 12px;
  text-align: center;
  background: var(--bg-gray);
  padding: 16px;
  border-radius: 8px;
}
.wc-name { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.wc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tag {
  font-size: 11px;
  background: var(--blue-light);
  color: var(--blue);
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 500;
}
.wc-info { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.wc-info .label { font-weight: 600; color: var(--text); margin-right: 4px; }
.wc-rating { font-size: 13px; margin-bottom: 4px; }
.wc-rating span { font-weight: 700; color: var(--text); }
html[data-theme="dark"] .wholesale-card {
  background: #1f2937;
  border-color: #374151;
}
html[data-theme="dark"] .wc-logo { background: #111827; }
html[data-theme="dark"] .wc-name,
html[data-theme="dark"] .wc-info .label,
html[data-theme="dark"] .wc-rating span { color: #f3f4f6; }
html[data-theme="dark"] .wc-info { color: #9ca3af; }
html[data-theme="dark"] .tag,
html[data-theme="dark"] .btn-card {
  background: #3b2416;
  color: #FF8A4A;
}
html[data-theme="dark"] .btn-card:hover { background: var(--blue); color: #fff; }

/* ===== COMPARE TABLE ===== */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  color: var(--text);
  font-size: 14px;
}
.compare-table th {
  background: var(--blue);
  color: #fff;
  padding: 14px 16px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}
.compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
  color: var(--text);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--bg-gray); }
.mall-name { font-weight: 700; font-size: 15px; color: var(--text); }
.fee { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.fee.low { background: #F0FDF4; color: #16A34A; }
.fee.medium { background: #FFF7ED; color: #EA580C; }
.fee.high { background: #FEF2F2; color: #DC2626; }
.settle { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.settle.fast { background: #F0FDF4; color: #16A34A; }
.settle.normal { background: #FFF7ED; color: #EA580C; }
.settle.slow { background: #FEF2F2; color: #DC2626; }
.diff { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.diff.easy { background: #F0FDF4; color: #16A34A; }
.diff.medium { background: #FFF7ED; color: #EA580C; }
.diff.hard { background: #FEF2F2; color: #DC2626; }
.btn-table {
  background: var(--btn-grad);
  color: #fff;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: opacity .2s;
}
.btn-table:hover { background: var(--btn-grad-hover); }
html[data-theme="dark"] .table-wrap { background: #1f2937; }
html[data-theme="dark"] .compare-table {
  background: #1f2937;
  color: #f3f4f6;
}
html[data-theme="dark"] .compare-table td {
  color: #e5e7eb;
  border-bottom-color: #374151;
}
html[data-theme="dark"] .compare-table tr:hover td { background: #111827; }
html[data-theme="dark"] .mall-name { color: #f3f4f6; }
html[data-theme="dark"] .fee.low,
html[data-theme="dark"] .settle.fast,
html[data-theme="dark"] .diff.easy { background: rgba(34,197,94,.18); color: #86efac; }
html[data-theme="dark"] .fee.medium,
html[data-theme="dark"] .settle.normal,
html[data-theme="dark"] .diff.medium { background: rgba(234,88,12,.2); color: #fdba74; }
html[data-theme="dark"] .fee.high,
html[data-theme="dark"] .settle.slow,
html[data-theme="dark"] .diff.hard { background: rgba(220,38,38,.2); color: #fca5a5; }

/* ===== AI PROMPTS ===== */
.prompt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.prompt-card {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: box-shadow .2s, background .2s, border-color .2s;
}
.prompt-card:hover { box-shadow: var(--shadow-md); }
.pc-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.pc-platform {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}
.pc-platform.coupang { background: #FEF2F2; color: #DC2626; }
.pc-platform.smart { background: #F0FDF4; color: #16A34A; }
.pc-platform.insta { background: #FDF4FF; color: #9333EA; }
.pc-platform.blog { background: var(--blue-light); color: var(--blue); }
.pc-tag { font-size: 11px; color: var(--text-muted); background: var(--bg-gray); padding: 3px 8px; border-radius: 20px; }
.pc-likes { font-size: 12px; color: #EF4444; margin-left: auto; }
.prompt-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; color: var(--text); }
.pc-content {
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-gray);
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 14px;
  line-height: 1.6;
  font-family: monospace;
}
.pc-btns { display: flex; gap: 8px; }
.btn-copy {
  background: var(--btn-grad);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .2s;
}
.btn-copy:hover { background: var(--btn-grad-hover); }
.btn-copy.copied { background: var(--green); }
.btn-save {
  background: var(--bg-gray);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .2s, color .2s;
}
.btn-save:hover { border-color: var(--blue); color: var(--blue); }
.btn-detail {
  font-size: 13px;
  color: var(--blue);
  padding: 8px 10px;
  font-weight: 500;
}
.btn-detail:hover { text-decoration: underline; }
html[data-theme="dark"] .prompt-card {
  background: #1f2937;
  border-color: #374151;
}
html[data-theme="dark"] .prompt-card h3 { color: #f3f4f6; }
html[data-theme="dark"] .pc-content {
  background: #111827;
  color: #d1d5db;
}
html[data-theme="dark"] .pc-tag {
  background: #111827;
  color: #9ca3af;
}
html[data-theme="dark"] .pc-likes { color: #f87171; }
html[data-theme="dark"] .pc-platform.coupang { background: rgba(220,38,38,.2); color: #fca5a5; }
html[data-theme="dark"] .pc-platform.smart { background: rgba(22,163,74,.2); color: #86efac; }
html[data-theme="dark"] .pc-platform.insta { background: rgba(147,51,234,.22); color: #d8b4fe; }
html[data-theme="dark"] .pc-platform.blog { background: #3b2416; color: #FF8A4A; }
html[data-theme="dark"] .btn-save {
  background: #111827;
  color: #d1d5db;
  border-color: #4b5563;
}
html[data-theme="dark"] .btn-save:hover { border-color: var(--blue); color: #FF8A4A; }
html[data-theme="dark"] .btn-detail { color: #FF8A4A; }

/* ===== PRODUCTS ===== */
.product-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.filter-btn.active {
  background: var(--green);
  border-color: var(--green);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.product-card {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s, background .2s, border-color .2s;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.prod-img {
  position: relative;
  background: var(--bg-gray);
  padding: 24px;
  text-align: center;
}
.prod-thumb { font-size: 56px; }
.prod-badge {
  position: absolute;
  top: 10px; left: 10px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
}
.prod-badge.hot { background: var(--gold); color: #fff; }
.prod-badge.trend { background: var(--blue); color: #fff; }
.prod-badge.new { background: var(--green); color: #fff; }
.prod-badge.season { background: #8B5CF6; color: #fff; }
.prod-info { padding: 16px; }
.prod-info h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; line-height: 1.4; color: var(--text); }
.prod-prices { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; font-size: 13px; color: var(--text-muted); }
.prod-prices strong { color: var(--text); font-size: 15px; }
.sell-price strong { color: var(--green-dark); }
.margin-badge {
  display: inline-block;
  background: var(--gold-light);
  color: var(--gold-dark);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}
.margin-badge strong { font-size: 15px; }
.prod-channels { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.channel {
  font-size: 11px;
  background: var(--blue-light);
  color: var(--blue);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 500;
}
.prod-trend { font-size: 12px; color: var(--text-muted); }
.trend-score {
  font-weight: 900;
  font-size: 14px;
  color: var(--gold-dark);
}
html[data-theme="dark"] .filter-btn {
  background: #1f2937;
  color: #e5e7eb;
  border-color: #374151;
}
html[data-theme="dark"] .filter-btn:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
html[data-theme="dark"] .filter-btn.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
html[data-theme="dark"] .product-card {
  background: #1f2937;
  border-color: #374151;
}
html[data-theme="dark"] .prod-img { background: #111827; }
html[data-theme="dark"] .prod-info h3 { color: #f3f4f6; }
html[data-theme="dark"] .prod-prices { color: #9ca3af; }
html[data-theme="dark"] .prod-prices strong { color: #f3f4f6; }
html[data-theme="dark"] .sell-price strong { color: #34d399; }
html[data-theme="dark"] .margin-badge {
  background: rgba(255,212,59,.18);
  color: #ffd43b;
}
html[data-theme="dark"] .channel {
  background: #3b2416;
  color: #FF8A4A;
}
html[data-theme="dark"] .prod-trend { color: #9ca3af; }
html[data-theme="dark"] .trend-score { color: #ffd43b; }

/* ===== COMMUNITY ===== */
.community-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}
.community-list {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.post-item {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background .2s;
}
.post-item:last-child { border-bottom: none; }
.post-item:hover { background: var(--bg-gray); }
.post-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.post-tag.question { background: var(--blue-light); color: var(--blue); }
.post-tag.info { background: var(--green-light); color: var(--green-dark); }
.post-tag.success { background: var(--gold-light); color: var(--gold-dark); }
.post-tag.tip { background: #FDF4FF; color: #9333EA; }
.post-tag.fail { background: #FEF2F2; color: #DC2626; }
.post-title {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: color .2s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.post-title:hover { color: var(--blue); }
.post-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.community-sidebar { display: flex; flex-direction: column; gap: 18px; }
.sidebar-box {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.sidebar-box h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.seller-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}
.seller-item:last-child { border-bottom: none; }
.seller-rank {
  width: 24px; height: 24px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.seller-info { flex: 1; }
.seller-info strong { display: block; font-size: 14px; font-weight: 700; }
.seller-info span { font-size: 12px; color: var(--text-muted); }
.seller-sales { font-size: 12px; color: var(--green-dark); font-weight: 600; white-space: nowrap; }

.notice-list { display: flex; flex-direction: column; gap: 10px; }
.notice-list a {
  font-size: 13px;
  color: var(--text);
  transition: color .2s;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notice-list a:hover { color: var(--blue); }
.notice-list a::before { content: "• "; color: var(--blue); }
html[data-theme="dark"] .community-list,
html[data-theme="dark"] .sidebar-box {
  background: #1f2937;
  border-color: #374151;
}
html[data-theme="dark"] .post-item { border-bottom-color: #374151; }
html[data-theme="dark"] .post-item:hover { background: #111827; }
html[data-theme="dark"] .post-title { color: #f3f4f6; }
html[data-theme="dark"] .post-title:hover { color: #FF8A4A; }
html[data-theme="dark"] .post-meta { color: #9ca3af; }
html[data-theme="dark"] .post-tag.question { background: #3b2416; color: #FF8A4A; }
html[data-theme="dark"] .post-tag.info { background: rgba(0,184,148,.18); color: #34d399; }
html[data-theme="dark"] .post-tag.success { background: rgba(255,212,59,.18); color: #ffd43b; }
html[data-theme="dark"] .post-tag.tip { background: rgba(147,51,234,.22); color: #d8b4fe; }
html[data-theme="dark"] .post-tag.fail { background: rgba(220,38,38,.2); color: #fca5a5; }
html[data-theme="dark"] .sidebar-box h3 {
  color: #f3f4f6;
  border-bottom-color: #374151;
}
html[data-theme="dark"] .seller-item { border-bottom-color: #374151; }
html[data-theme="dark"] .seller-info strong { color: #f3f4f6; }
html[data-theme="dark"] .seller-info span { color: #9ca3af; }
html[data-theme="dark"] .seller-sales { color: #34d399; }
html[data-theme="dark"] .notice-list a { color: #e5e7eb; }
html[data-theme="dark"] .notice-list a:hover { color: #FF8A4A; }

/* ===== CTA ===== */
.cta { background: var(--bg-gray); padding: 60px 0; }
.cta-box { text-align: center; }
.cta-box h2 { font-size: 28px; font-weight: 900; color: var(--text); margin-bottom: 12px; }
.cta-box p { font-size: 16px; color: var(--text-muted); margin-bottom: 28px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-btn {
  background: var(--btn-grad);
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 4px 12px rgba(63,93,252,.3);
}
.cta-btn:hover { background: var(--btn-grad-hover); transform: translateY(-2px); }

/* ===== FOOTER ===== */
.footer { background: #111827; color: #9CA3AF; padding: 50px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #1F2937;
}
.footer-logo {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}
.footer-brand p { font-size: 13px; line-height: 1.8; margin-bottom: 16px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  font-size: 20px;
  opacity: .7;
  transition: opacity .2s;
}
.footer-social a:hover { opacity: 1; }
.footer-links h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-links ul { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: 13px;
  color: #9CA3AF;
  transition: color .2s;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  padding: 20px 0;
  text-align: center;
}
.footer-info p { font-size: 13px; color: #6B7280; margin-bottom: 4px; }
.copyright { font-size: 12px; color: #4B5563; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
}

@media (max-width: 900px) {
  .hero .container { flex-direction: column; }
  .hero-visual { width: 100%; flex-direction: row; }
  .hero-card { flex: 1; }
  .prompt-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .community-sidebar { flex-direction: row; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* 헤더: 1줄 로고 + 메뉴·테마 / 2줄 검색 풀폭 */
  .header-top-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    padding: 12px 10px;
  }
  .logo { flex: 1; min-width: 0; order: 1; }
  .logo-tagline { display: none; }
  .theme-toggle { display: inline-flex; order: 2; }
  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    order: 3;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--bg-gray);
    color: var(--text);
    font-size: 22px;
    flex: 0 0 auto;
  }
  .header-user { display: none; }
  .search-wrap { order: 4; flex: 0 0 100%; width: 100%; max-width: 100%; }
  .main-nav { display: none; }

  .container { padding: 0; }

  .section-padding { padding: 40px 0; }

  .hero { padding: 40px 0; }
  .hero-title { font-size: 28px; }
  .hero-sub { font-size: 15px; }
  .hero-visual { flex-direction: column; }
  .hero-stats { gap: 20px; }

  .quick-grid { grid-template-columns: repeat(2, 1fr); }

  .card-grid-4 { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }

  .section-title { font-size: 20px; }
  .section-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 6px;
  }
  .section-header .section-title { grid-column: 1; grid-row: 1; }
  .section-header .btn-more { grid-column: 2; grid-row: 1; }
  .section-header .section-desc {
    grid-column: 1 / -1;
    grid-row: 2;
    flex: none;
    white-space: nowrap;
  }
  .hero-btns { flex-direction: column; }
  .btn-hero-primary, .btn-hero-secondary, .btn-hero-outline { text-align: center; }

  .cta-btns { flex-direction: column; align-items: center; }
  .cta-btn { width: 100%; max-width: 260px; text-align: center; }
  .community-sidebar { flex-direction: column; }

  /* 푸터: 2열 + 좌우 여백 복원(.container padding:0 보정) */
  .footer .container { padding: 0 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .footer-brand { grid-column: 1 / -1; }

  .post-meta { display: none; }

  /* ===== 게시판 등 일반 페이지 모바일 ===== */
  body.page-sub #container { width: 100%; padding: 16px 12px 40px; }
  body.page-sub #container_title { font-size: 20px; margin-bottom: 14px; }

  /* 게시판 목록 테이블: 가로 스크롤 + 셀 여백 축소 */
  .tbl_head01 { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tbl_head01 thead th { padding: 12px 6px; font-size: 13px; }
  .tbl_head01 td { padding: 10px 6px; height: auto; font-size: 13px; }
  #bo_list .td_name { width: auto; }

  /* 게시판 읽기/댓글 폭 보정 */
  #bo_v_title .bo_v_tit { font-size: 1.5em; }
  #bo_vc article .cm_wrap { max-width: 100%; width: calc(100% - 60px); }

  /* 댓글 이름/비밀번호: float + 기본 size 폭이 뷰포트를 넘김 */
  .bo_vc_w,
  .bo_vc_w_wr,
  .bo_vc_w_info {
    float: none !important;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .bo_vc_w_info {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .bo_vc_w_info .frm_input,
  .bo_vc_w_info #wr_name,
  .bo_vc_w_info #wr_password {
    float: none !important;
    flex: none !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
  }
  .bo_vc_w_info #captcha,
  .bo_vc_w_info #captcha.recaptcha {
    min-width: 0 !important;
    max-width: 100%;
    border: 0;
    background: transparent;
    overflow: hidden;
  }

  /* 게시판 검색 팝업 모바일 폭 */
  .bo_sch { width: 90%; max-width: 330px; left: 50%; transform: translate(-50%, -50%); top: 50%; margin: 0; }
  .bo_sch .sch_input { width: calc(100% - 45px); }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { justify-content: center; }

  .logo-text { font-size: 18px; }
  .logo-sub { display: none; }
  .hero-title { font-size: 24px; }
  .cta-box h2 { font-size: 22px; }
}
