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

:root {
  --color-primary: #171717;
  --color-primary-dark: #333333;
  --color-primary2: #c4a14b;
  --color-primary2-light: #f3ecdb;
  --color-secondary: #64748b;
  --color-success: #22c55e;
  --color-danger: #db3940;
  --color-warning: #f59e0b;
  --color-info: #3b82f6;
  --color-gray: #f8f9fa;
  --color-white: #ffffff;
  --color-text: #1e293b;
  --color-text-light: #64748b;
  --color-border: #e2e8f0;
  --max-width: 1200px;
  --header-height: 64px;
}

html {
  font-size: 16px;
}
body {
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  color: var(--color-primary-dark);
}
img {
  max-width: 100%;
  height: auto;
}

/* Color */
.bg-primary {
  background-color: var(--color-primary) !important;
}

.bg-gray {
  background-color: var(--color-gray) !important;
}

.text-primary {
  color: var(--color-primary) !important;
}

.text-primary2 {
  color: var(--color-primary2) !important;
}
.text-danger {
  color: var(--color-danger) !important;
}

/* Shadow */
.text-sd-primary2 {
  text-shadow: 0 4px 12px rgba(196, 161, 75, 0.3) !important;
}

.sd-primary2 {
  box-shadow: 0 4px 12px rgba(196, 161, 75, 0.3) !important;
}

/* ===== Layout ===== */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
  min-height: calc(100vh - var(--header-height) - 120px);
}

.main-content.full-width {
  max-width: 100%;
  padding: 0;
}

.main-content.full-width > .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* 어떤 컨텐츠든 100% 너비로 빠져나가기 (스크롤바 방지) */
.full-bleed {
  width: 100%;
  margin-left: 0;
  padding: 0;
  overflow: hidden;
}

/* 배너 슬라이더 */
.banner-slider {
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.banner-slider .slides {
  display: flex;
  transition: transform 0.5s ease;
}

.banner-slider .slide {
  min-width: 100%;
  flex-shrink: 0;
}

.banner-slider .slide img {
  width: 100%;
  display: block;
}

.banner-slider .slide a {
  display: block;
  line-height: 0;
}

/* 슬라이더 화살표 */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  color: #111;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: 0.2s;
}

.slider-arrow:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.slider-arrow.prev {
  left: 16px;
}
.slider-arrow.next {
  right: 16px;
}

/* 슬라이더 도트 */
.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: 0.2s;
  padding: 0;
}

.slider-dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* 1장일 때 컨트롤 숨김 */
.banner-slider.single .slider-arrow,
.banner-slider.single .slider-dots {
  display: none;
}

@media (max-width: 768px) {
  .slider-arrow {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .slider-arrow.prev {
    left: 8px;
  }
  .slider-arrow.next {
    right: 8px;
  }
  .slider-dots {
    bottom: 10px;
    gap: 6px;
  }
  .slider-dot {
    width: 8px;
    height: 8px;
  }
}
/* =========================
   HEADER
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.header-container {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 상단바: 로고 + 유저 버튼 */
.header-main {
  height: 72px;
  border-bottom: 1px solid var(--color-border);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.15s;
}

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

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

.header-btn.outline {
  background: #fff;
  color: #475569;
  border: 1px solid #d1d5db;
}

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

/* 메뉴바: 가로 스크롤 */
.header-menu {
  height: 50px;
  background: #fff;
}

/* =========================
   LOGO
========================= */

.header-logo {
  flex-shrink: 0;
}

.logo-img {
  height: 35px;
}

.header-logo a {
  font-size: 28px;
  font-weight: 800;
  color: #111827;
}

/* =========================
   SEARCH
========================= */

.header-search {
  flex: 1;
  padding: 0 40px;
}

.header-search form {
  position: relative;
  max-width: 520px;
}

.header-search input {
  width: 100%;
  height: 46px;

  border-radius: 999px;
  border: 1px solid #dbe2ea;

  padding: 0 120px 0 20px;

  font-size: 14px;
  outline: none;

  transition: all 0.2s;
}

.header-search input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.header-search button {
  position: absolute;
  right: 6px;
  top: 6px;

  height: 34px;
  padding: 0 18px;

  border: none;
  border-radius: 999px;

  background: #2563eb;
  color: #fff;

  font-size: 13px;
  font-weight: 600;

  cursor: pointer;
}

/* =========================
   USER MENU
========================= */

.header-user {
  display: flex;
  align-items: center;
  gap: 18px;

  font-size: 14px;
}

.header-user a {
  color: #475569;
  transition: 0.2s;
}

.header-user a:hover {
  color: #111827;
}

.user-name {
  font-weight: 700;
  color: #111827;
}

/* =========================
   NAV — 가로 스크롤 메뉴
========================= */

.menu-scroll {
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

/* 스크롤바 숨김 */
.menu-scroll::-webkit-scrollbar {
  display: none;
}
.menu-scroll {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.menu-list {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  white-space: nowrap;
}

.menu-item {
  position: relative;
  height: 100%;
  flex-shrink: 0;
}

.menu-item > a {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
  transition: 0.15s;
}

.menu-item > a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 2px;
  background: #2563eb;
  transform: scaleX(0);
  transition: 0.2s;
}

.menu-item:hover > a {
  color: #2563eb;
}
.menu-item:hover > a::after {
  transform: scaleX(1);
}

/* 서브메뉴 (드롭다운) */
.menu-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;

  min-width: 220px;

  background: var(--color-white);
  left: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  list-style: none;
  z-index: 1000;
}

.menu-item:hover .menu-sub {
  display: block;
}

.menu-sub li a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: #334155;
  text-decoration: none;
  white-space: nowrap;
  transition: 0.15s;
}

.menu-sub li a:hover {
  background: #f8fafc;
  color: #2563eb;
}

/* ===== 상품 상세 옵션 버튼 ===== */
.rounded-button {
  border-radius: 0.5rem !important;
}

/* 옵션 버튼 공통 */
.btn.btn-outline-secondary {
  color: #475569;
  border: 1px solid #d1d5db;
  background: #fff;
}

.btn.btn-outline-secondary:hover {
  color: #111827;
  background: #f8fafc;
  border-color: #9ca3af;
}

.btn.btn-outline-dark {
  color: #111827;
  border: 1px solid #111827;
  background: #fff;
}

.btn.btn-outline-dark:hover,
.btn.btn-outline-dark.active {
  background: #111827;
  color: #fff;
}

/* 선택된 옵션 */
.storage-option.btn-outline-dark,
.carrier-btn.btn-outline-dark,
.installment-btn.btn-outline-dark,
.discount-method-btn.active {
  background: #111827;
  color: #fff;
  border-color: #111827;
  font-weight: 600;
}

/* 통신사 버튼 */
.carrier-btn {
  min-height: 45px;
  transition: 0.15s;
  width: 100%;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  background: #fff;
  border: 1px solid #d1d5db;
}

.carrier-btn:hover {
  border-color: #9ca3af;
  background: #f8fafc;
}

.carrier-btn.btn-outline-dark {
  background: #111827;
  color: #fff;
  border-color: #111827;
  font-weight: 600;
}

.carrier-btn img {
  max-height: 28px;
  display: block;
  margin: 0 auto;
}

/* 가입유형 버튼 */
.jt-btn {
  padding: 10px 8px;
  font-size: 14px;
}

.jt-btn.btn-outline-dark {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

/* 할인방법 버튼 */
.discount-method-btn {
  padding: 12px 8px;
  text-align: center;
}

/* ===== Custom Options (프론트) ===== */
.custom-opt-group {
  margin-bottom: 12px;
}
.custom-opt-label {
  cursor: pointer;
  transition: 0.15s;
}
.custom-opt-label:hover {
  background: #f8fafc;
}
.custom-opt-label input:checked ~ .flex-fill .fw-semibold {
  color: #2563eb;
}
.custom-opt-label:has(input:checked) {
  border-color: #2563eb !important;
  background: #eff6ff;
}

/* ===== Footer ===== */
.site-footer {
  background: #f5f5f5;
  border-top: 1px solid #e5e5e5;
  padding: 0;
  margin-top: auto;
}
.footer-inner {
  max-width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
  font-size: 0.875rem;
  color: #666;
}
.footer-legal a {
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-legal a:hover {
  text-decoration: underline;
}
.footer-legal a.fw-bold {
  color: #000;
}
.consent-icon img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

/* ===== Alerts ===== */
.alert {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}
.alert-info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}
.alert-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.alert-warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}
.alert-danger {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ===== Welcome / Error Pages ===== */
.main-welcome,
.error-page {
  text-align: center;
  padding: 4rem 1rem;
}
.main-welcome h2,
.error-page h1 {
  margin-bottom: 1rem;
}
.error-page h1 {
  font-size: 4rem;
  color: var(--color-secondary);
}
.error-page a {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  background: var(--color-primary);
  color: white;
  border-radius: 0.375rem;
}
.active-modules {
  margin-top: 2rem;
}
.active-modules h3 {
  margin-bottom: 0.5rem;
}
.active-modules ul {
  list-style: none;
}
.active-modules li {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  margin: 0.25rem;
  font-size: 0.875rem;
}

/* ===== Product Grid ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.product-grid.small {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.product-card {
  display: block;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.product-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  color: var(--color-text);
}
.product-image {
  aspect-ratio: 1;
  overflow: hidden;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
}
.product-info {
  padding: 0.75rem 1rem 1rem;
}
.product-name {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.product-brand {
  font-size: 0.75rem;
  color: var(--color-secondary);
}
.product-price {
  margin-top: 0.5rem;
}
.price-original {
  text-decoration: line-through;
  color: var(--color-secondary);
  font-size: 0.8125rem;
  margin-right: 0.25rem;
}
.price-discount,
.price-current {
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--color-text);
}
.discount-rate {
  color: #ef4444;
  font-weight: 700;
  font-size: 0.875rem;
  margin-left: 0.25rem;
}
.product-badges {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-bottom: 0.375rem;
}
.product-badges .badge {
  font-size: 0.6875rem;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  background: var(--color-primary);
  color: white;
}

/* ===== Product List Page ===== */
.product-list-page .page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.sort-options {
  display: flex;
  gap: 0.5rem;
}
.sort-btn {
  padding: 0.375rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.8125rem;
  color: var(--color-secondary);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: all 0.15s;
}
.sort-btn:hover,
.sort-btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}
.pagination {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
  margin-top: 2rem;
}
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 0.375rem;
  border: 1px solid var(--color-border);
  font-size: 0.8125rem;
  color: var(--color-text);
  text-decoration: none;
}
.page-link:hover,
.page-link.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-secondary);
}

/* ===== Product Detail ===== */
.product-detail-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.product-gallery {
  background: var(--color-white);
  border-radius: 0.75rem;
  border: 1px solid var(--color-border);
  padding: 1rem;
}
.product-gallery .main-image {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 0.5rem;
}
.product-gallery .sub-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  margin: 0.5rem 0.25rem 0;
  cursor: pointer;
}
.product-info-detail {
}
.product-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.product-brand {
  display: inline-block;
  font-size: 0.8125rem;
  color: var(--color-secondary);
  margin-bottom: 0.75rem;
}
.product-base-price {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1rem;
}
.product-base-price .label {
  font-size: 0.8125rem;
  color: var(--color-secondary);
  margin-right: 0.5rem;
}
.product-base-price .price {
  font-size: 1.25rem;
  font-weight: 700;
}

/* ===== Price Calculator ===== */
.price-calculator {
}
.calc-step {
  margin-bottom: 1rem;
}
.calc-step > label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}
.count-badge {
  font-size: 0.75rem;
  background: var(--color-primary);
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 1rem;
  margin-left: 0.25rem;
}
.option-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.opt-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-white);
  cursor: pointer;
  font-size: 0.8125rem;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
}
.opt-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.opt-btn.active {
  border-color: var(--color-primary);
  background: #eff6ff;
  color: var(--color-primary);
  font-weight: 600;
}
.opt-btn small {
  font-size: 0.6875rem;
  color: var(--color-secondary);
}
.opt-btn.active small {
  color: var(--color-primary);
}
.carrier-logo {
  height: 20px;
  margin-bottom: 0.125rem;
}
.opt-btn.sold-out {
  opacity: 0.4;
  cursor: not-allowed;
  background: #f1f5f9;
  text-decoration: line-through;
}
.text-soldout {
  color: #ef4444 !important;
  font-size: 0.625rem;
}
.join-type-badge {
  padding: 0.25rem 0;
}
.gallery-thumbs {
  display: flex;
  gap: 0.375rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.gallery-thumbs .sub-image {
  border: 2px solid transparent;
}
.gallery-thumbs .sub-image:hover {
  border-color: var(--color-primary);
}

/* Plan Table */
.plan-list {
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
}
.plan-list .loading,
.plan-list .empty {
  text-align: center;
  padding: 1.5rem;
  color: var(--color-secondary);
  font-size: 0.875rem;
}
.plan-table {
  width: 100%;
}
.plan-table table {
  width: 100%;
  border-collapse: collapse;
}
.plan-table th {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-secondary);
  background: #f8fafc;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  position: sticky;
  top: 0;
}
.plan-table td {
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  border-bottom: 1px solid #f1f5f9;
}
.plan-row {
  cursor: pointer;
  transition: background 0.1s;
}
.plan-row:hover {
  background: #f8fafc;
}
.plan-row.selected {
  background: #eff6ff;
}
.plan-row.recommended td:first-child::before {
  content: "★";
  color: #f59e0b;
  margin-right: 0.25rem;
}
.text-primary {
  color: var(--color-primary) !important;
  font-weight: 600;
}
.text-success {
  color: #22c55e !important;
  font-weight: 600;
}

/* Price Result */
.price-result {
  margin-top: 1.25rem;
}
.result-box {
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  border-radius: 0.75rem;
  padding: 1.25rem;
}
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.375rem 0;
  font-size: 0.875rem;
}
.result-row.discount span:last-child {
  color: #ef4444;
}
.result-row.bold {
  font-weight: 700;
  font-size: 0.9375rem;
}
.result-row.total {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-primary);
  padding: 0.5rem 0;
}
.result-divider {
  height: 1px;
  background: var(--color-border);
  margin: 0.375rem 0;
}

/* Order Button */
.product-actions {
  margin-top: 1.5rem;
}
.btn-order {
  width: 100%;
  padding: 0.875rem;
  font-size: 1.0625rem;
  font-weight: 700;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-order:hover {
  background: var(--color-primary-dark);
}

/* Tabs */
.product-detail-tabs {
  margin-top: 2rem;
}
.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-border);
}
.tab-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  background: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.tab-btn:hover {
  color: var(--color-text);
}
.tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 600;
}
.tab-content {
  padding: 1.5rem 0;
}
.tab-content.active {
  display: block;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
}
.spec-table th {
  padding: 0.5rem 0.75rem;
  background: #f8fafc;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-secondary);
  text-align: left;
  width: 140px;
  border: 1px solid var(--color-border);
}
.spec-table td {
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  border: 1px solid var(--color-border);
}

/* Search */
.search-form {
  display: flex;
  gap: 0.5rem;
}
.search-form input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
}
.search-form button {
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
}

/* Related */
.related-products {
  margin-top: 3rem;
}
.related-products h3 {
  margin-bottom: 1rem;
}

/* Main Sections */
.main-section {
  margin-bottom: 3rem;
}
.main-section h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

/* FAQ */
.faq-page h2 {
  margin-bottom: 1.5rem;
}
.faq-categories {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.faq-categories a {
  padding: 0.375rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 2rem;
  font-size: 0.8125rem;
  color: var(--color-text);
  text-decoration: none;
}
.faq-categories a:hover,
.faq-categories a.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}
.faq-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  color: var(--color-primary);
}
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}
.faq-item summary {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.875rem;
}
.faq-answer {
  padding: 0.75rem 1rem;
  background: #f8fafc;
  font-size: 0.875rem;
  line-height: 1.6;
  border-top: 1px solid var(--color-border);
}

/* Auth Pages */
.auth-page {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
}

.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  font-size: 0.875rem;
}
.form-group small {
  font-size: 0.75rem;
  color: var(--color-secondary);
}
.form-group.checkbox label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--color-primary);
  color: white;
}
.btn-outline {
  background: var(--color-white);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.btn-full {
  width: 100%;
  text-align: center;
}
.required {
  color: #ef4444;
}
.auth-links {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.8125rem;
}
.auth-links a {
  margin: 0 0.5rem;
}

/* ===== Mobile ===== */

@media (max-width: 768px) {
  /* 상단바 축소 */
  .header-main {
    height: 56px;
  }
  .logo-img {
    height: 36px !important;
  }
  .logo-text {
    font-size: 18px !important;
  }

  /* 버튼 축소 */
  .header-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  .header-search {
    display: none;
  }

  /* 메뉴바: 가로 스크롤 (기존 사이트 동일) */
  .header-menu {
    height: 44px;
  }
  .menu-item > a {
    padding: 0 12px;
    font-size: 13px;
  }

  /* 서브메뉴: 모바일에서 숨김 */
  .menu-sub {
    display: none !important;
  }

  .product-detail-top {
    grid-template-columns: 1fr;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .product-grid.small {
    grid-template-columns: repeat(2, 1fr);
  }
  .plan-list {
    max-height: 250px;
  }
  .plan-table th,
  .plan-table td {
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
  }
  .opt-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
  }
}
/* Banner VS Grid */
.banner-vs-grid {
  display: flex;
  gap: 10rem;
  align-items: center;
  justify-content: space-between;
  margin: 5rem 0;
}

@media (max-width: 767px) {
  .banner-vs-grid {
    flex-direction: column;
    gap: 3rem;
    align-items: start;
    margin: 3rem 20px;
  }

  .banner-vs-grid .vs-text {
    width: 80%;
  }
}
/* ===== Banner Feature Grid ===== */
/* PC: 좌1(큰) + 우4(2x2) — 이미지 원본 비율 유지, 잘림 없음 */
.banner-feature-grid {
  display: flex;
  gap: 1rem;
}
.banner-feature-grid .bfg-main {
  flex: 1.23;
  border-radius: 12px;
  overflow: hidden;
}
.banner-feature-grid .bfg-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.banner-feature-grid .bfg-subs {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.banner-feature-grid .bfg-sub {
  border-radius: 12px;
  overflow: hidden;
}
.banner-feature-grid .bfg-sub img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 모바일: 상단1 + 하단 2x2 */
@media (max-width: 767px) {
  .banner-feature-grid {
    flex-direction: column;
  }
  .banner-feature-grid .bfg-main img {
    height: auto;
  }
  .banner-feature-grid .bfg-sub img {
    height: auto;
  }
}

.th-pb-8 {
  padding-bottom: 4rem !important;
}
