/* =============================================
   디자인 토큰 (CSS 변수)
   ============================================= */
:root {
  /* 브랜드 컬러 */
  --color-primary:        #3561ff;
  --color-primary-hover:  #1e46e0;
  --color-accent:         #6135ff;
  --color-accent-hover:   #4d1fe0;
  --color-purple:         #7324ff;
  --color-dark:           #111823;

  /* 텍스트 컬러 */
  --color-text:           #212121;
  --color-text-sub:       #757575;
  --color-text-muted:     #999999;
  --color-text-white:     #ffffff;

  /* 배경 컬러 */
  --color-bg:             #ffffff;
  --color-bg-alt:         #f7f7f7;
  --color-bg-dark:        #111823;

  /* 테두리 */
  --color-border:         #e5e5e5;
  --color-border-dark:    #d3d3d3;

  /* 폰트 */
  --font-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
    'Apple SD Gothic Neo', Roboto, 'Noto Sans KR', 'Segoe UI', 'Malgun Gothic',
    sans-serif;

  /* 텍스트 크기 */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
}

/* =============================================
   베이스 리셋 & 전역 스타일
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* overflow-x: hidden 제거 — position: sticky 가 작동하지 않게 만듦.
     body 에만 overflow-x: hidden 두어 모바일 우측 잉여 여백 차단 */
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  word-break: keep-all;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 데스크탑에서만 표시되는 br (모바일에선 한 줄로 흐름) */
.br-desktop-only { display: inline; }
@media (max-width: 767px) {
  .br-desktop-only { display: none; }
  /* 모바일에서 about 섹션 위/아래 패딩만 150 으로 (데스크탑은 인라인 80 유지) */
  #about { padding-top: 150px !important; padding-bottom: 150px !important; }
}

@media (max-width: 767px) {
  body {
    font-size: var(--text-xs);
  }
}

/* =============================================
   타이포그래피
   ============================================= */
h1, .h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h2, .h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

h3, .h3 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

h4, .h4 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--color-text);
}

h5, .h5 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
}

h6, .h6 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

@media (max-width: 767px) {
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.625rem; }
  h3, .h3 { font-size: 1.25rem; }
  h4, .h4 { font-size: 1.125rem; }
  h5, .h5 { font-size: 1rem; }
  h6, .h6 { font-size: 0.875rem; }
}

p { line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* =============================================
   버튼 공통 스타일
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text-white);
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-text-white);
  border-color: var(--color-accent);
}
.btn-accent:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-text-white);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--color-text-white);
  border-color: var(--color-text-white);
}
.btn-outline-white:hover {
  background-color: var(--color-text-white);
  color: var(--color-dark);
}

.btn-dark {
  background-color: var(--color-dark);
  color: var(--color-text-white);
  border-color: var(--color-dark);
}
.btn-dark:hover {
  background-color: #1d2535;
  border-color: #1d2535;
}

.btn-sm {
  font-size: var(--text-xs);
  padding: 0.5rem 1rem;
}

.btn-lg {
  font-size: var(--text-base);
  padding: 1rem 2rem;
}

/* =============================================
   공통 컨테이너
   ============================================= */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (max-width: 767px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* =============================================
   섹션 공통
   ============================================= */
.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (max-width: 767px) {
  .section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* =============================================
   TopBar 모바일 대응
   ============================================= */
@media (max-width: 767px) {
  .topbar-naver-text {
    font-size: 12px;
  }
}

/* =============================================
   공통 Spacer
   ============================================= */
.spacer-12 { height: 12px; }
.spacer-30 { height: 30px; }
.spacer-32 { height: 32px; }
.spacer-40 { height: 40px; }
.spacer-48 { height: 48px; }
.spacer-52 { height: 52px; }

/* =============================================
   히어로 높이
   ============================================= */
.hero-spacer { height: 703px; }

@media (max-width: 767px) {
  .hero-spacer { height: 400px; }
}

/* =============================================
   YouTube 섹션
   ============================================= */
.youtube-spacer-top { height: 162px; }
.youtube-spacer-bottom { height: 150px; }
.youtube-title { font-size: 24px; }
.youtube-desc { font-size: 18px; }

/* =============================================
   폼 필드 공통
   ============================================= */
.contact-field { margin-bottom: 20px; }

.form-input {
  padding: 5px 7px !important;
  font-size: var(--text-sm);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  outline: none;
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(53, 97, 255, 0.15) !important;
}

.form-input::placeholder { color: var(--color-text-muted); }

/* =============================================
   Leaflet 지도 팝업
   ============================================= */
.leaflet-popup-content { font-size: 14px !important; }

/* =============================================
   데스크탑 기본값
   ============================================= */
.service-spacer-top { height: 153px; }
.service-spacer-bottom { height: 150px; }
.gallery-spacer-top { height: 163px; }
.gallery-spacer-mid { height: 286px; }
.gallery-spacer-bottom { height: 178px; }
.gallery-dark-spacer-top { height: 122px; }
.gallery-dark-spacer-bottom { height: 106px; }
.contact-spacer-top { height: 118px; }
.contact-spacer-bottom { height: 155px; }

/* 센터소개 섹션 — 인라인 스타일 → 컴포넌트 클래스 */
.center-section { background-color: var(--color-bg); padding: 0 20px; }
.center-container {
  max-width: 1200px;
  padding-top: 150px;
  padding-bottom: 150px;
}
.center-title {
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: -1px;
  font-size: 36px;
  font-weight: bold;
  color: #212121;
}
.center-desc {
  text-align: center;
  font-size: 18px;
  color: #555;
  line-height: 1.7;
  max-width: 820px;
  margin: 0 auto 60px;
}
.center-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.center-gallery-img {
  width: 100%;
  height: 408px;
  object-fit: cover;
  display: block;
}
.center-more-wrap { text-align: center; margin-top: 40px; }
.center-more-btn { min-width: 160px; }

.branches-container {
  padding-top: 150px;
  padding-bottom: 5rem;
}

.branches-map-list { height: 600px; }
.branches-list { max-height: 600px; }

/* =============================================
   모바일 대응 (max-width: 767px)
   ============================================= */
@media (max-width: 767px) {
  .header-logo {
    display: none !important;
    height: auto !important;
  }
  .topbar-naver-text { display: none; }
  .connect-title { font-size: 26px !important; line-height: 1.5 !important; }
  .connect-desc { font-size: 14px !important; }
  .service-spacer-top { height: 60px; }
  .service-spacer-bottom { height: 60px; }
  .service-main-img { height: auto !important; max-width: 100% !important; }
  .service-title { font-size: 22px !important; line-height: 1.4 !important; }
  .service-body-text { font-size: 14px !important; }
  .gallery-spacer-top { height: 60px; }
  .gallery-spacer-mid { height: 80px; }
  .gallery-spacer-bottom { height: 80px; }
  .gallery-dark-spacer-top { height: 40px; }
  .gallery-dark-spacer-bottom { height: 40px; }
  .topbar-wrap { position: relative !important; }
  .branch-cards-grid { grid-template-columns: 1fr !important; }
  .shop-grid { grid-template-columns: repeat(2, 1fr) !important; margin: 0 !important; }
  .youtube-spacer-top { height: 40px; }
  .youtube-spacer-bottom { height: 60px; }
  .youtube-title { font-size: 18px !important; }
  .youtube-desc { font-size: 14px !important; }
  .gallery-infographic { width: 100% !important; height: auto !important; }
  .gallery-title { font-size: 20px !important; line-height: 1.4 !important; }
  .gallery-service-img { height: auto !important; max-width: 100% !important; }
  .center-container { padding-top: 60px; padding-bottom: 60px; }
  .center-desc { font-size: 14px !important; margin-bottom: 40px !important; }
  .center-gallery { grid-template-columns: repeat(2, 1fr) !important; gap: 6px; }
  .center-gallery-img { height: 180px !important; }
  .contact-spacer-top { height: 48px; }
  .contact-spacer-bottom { height: 60px; }
  .contact-label { font-size: 15px !important; }
  .phone-input-group { gap: 4px !important; }
  .phone-input { width: 0 !important; flex: 1 1 0 !important; min-width: 0 !important; }
  .branches-container { padding-top: 60px; padding-bottom: 3rem; }
  .branches-map-list { height: auto; flex-direction: column !important; }
  .branches-map { flex: none !important; width: 100% !important; min-height: 250px !important; height: 250px; }
  .branches-list { flex: none !important; width: 100% !important; max-height: 500px !important; border-left: none !important; border-top: none !important; }
  .floating-buttons { top: auto !important; bottom: 70px !important; right: 20px !important; }
  .floating-btn-img { width: 61px !important; height: 61px !important; }
}

/* =============================================
   스크롤 애니메이션 — Reveal
   ============================================= */
.reveal, .reveal-left, .reveal-right, .reveal-fade {
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal { opacity: 0; transform: translateY(36px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-left { opacity: 0; transform: translateX(-40px); }
.reveal-left.is-visible { opacity: 1; transform: translateX(0); }

.reveal-right { opacity: 0; transform: translateX(40px); }
.reveal-right.is-visible { opacity: 1; transform: translateX(0); }

.reveal-fade { opacity: 0; }
.reveal-fade.is-visible { opacity: 1; }

@keyframes heroFadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-btn-animate { animation: heroFadeInUp 0.9s ease 0.5s both; }

.gallery-img-wrap { overflow: hidden; border-radius: 8px; }
.gallery-img-wrap img { transition: transform 0.45s ease; }
.gallery-img-wrap:hover img { transform: scale(1.06); }

/* =============================================
   주문/결제 페이지 공통
   ============================================= */
.order-page { padding: 60px 0; background: #f7f8fb; min-height: 60vh; }
.order-page-narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.order-page-center { max-width: 560px; margin: 0 auto; padding: 0 20px; text-align: center; }
.order-page h1 { font-size: 24px; margin: 0 0 24px; }
.order-card { background: #fff; border-radius: 12px; padding: 22px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.order-card h3 { margin: 0 0 14px; font-size: 16px; }
.order-form { display: flex; flex-direction: column; gap: 18px; }
.order-form-fields { display: flex; flex-direction: column; gap: 12px; }
.order-form label.field-label { display: block; font-size: 13px; color: #444; margin-bottom: 6px; }
.order-form input.field-input { width: 100%; padding: 11px; border: 1px solid #d0d4dc; border-radius: 8px; }
.order-form .agree-label { display: block; margin: 8px 0; }
.order-hr { border: none; border-top: 1px solid #eef0f4; margin: 16px 0; }
.order-submit { background: #111; color: #fff; border: none; padding: 16px; border-radius: 10px; font-size: 16px; font-weight: 600; cursor: pointer; }
.order-error { background: #fee; color: #c00; padding: 12px 14px; border-radius: 8px; margin-bottom: 18px; }
.order-complete-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--color-primary); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.order-info-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; font-size: 13px; color: #64748b; line-height: 1.8; }
.order-info-box strong { color: #334155; }
.order-legal-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 14px; margin-top: 12px; font-size: 12px; color: #64748b; line-height: 1.8; }
.order-legal-box strong { color: #334155; }
.order-product-thumb { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; }
.order-qty-input { width: 80px; padding: 6px; border: 1px solid #d0d4dc; border-radius: 6px; }
.order-status-badge { display: inline-block; padding: 3px 12px; border-radius: 9999px; font-size: 12px; font-weight: 600; }
.order-detail-icon { width: 42px; height: 42px; margin-bottom: 16px; }
.order-consult-msg { color: var(--color-primary); font-size: 16px; font-weight: 600; margin-top: 20px; text-align: center; }

/* =============================================
   계약상담 폼
   ============================================= */
.contact-section { position: relative; background-size: cover; background-position: 50% 50%; }
.contact-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(248,248,248,0.95); }
.contact-inner { position: relative; z-index: 1; }
.contact-title { text-align: center; margin-bottom: 30px; }
.contact-form { max-width: 640px; margin: 0 auto; }
.contact-label { display: block; font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.contact-label .req { color: var(--color-primary); }
.contact-radio { display: block; margin-bottom: 6px; cursor: pointer; color: var(--color-text); font-size: 14px; }
.contact-radio input { margin-right: 8px; }
.contact-phone-group { display: flex; align-items: center; gap: 8px; }
.contact-phone-input { width: 100px; text-align: center; }
.contact-memo { margin-bottom: 30px; }
.contact-submit { text-align: center; }

/* 상담 완료 팝업 */
.contact-modal-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0); z-index: 10000;
  justify-content: center; align-items: center;
  transition: background 0.3s ease;
}
.contact-modal-box {
  background: #fff; border-radius: 16px; padding: 40px 36px; text-align: center;
  max-width: 380px; width: 90%; box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  transform: scale(0.8) translateY(20px); opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s ease;
}
.contact-modal-icon { font-size: 48px; margin-bottom: 16px; }
.contact-modal-box h3 { margin-bottom: 12px; }
.contact-modal-box p { color: var(--color-text-sub); margin-bottom: 24px; line-height: 1.6; }

/* =============================================
   세무/법무 (tax-n-law) 공통
   ============================================= */

/* --- 히어로 --- */
.tnl-hero {
  background-size: cover;
  background-position: center;
  padding: 60px 0;
  text-align: center;
  position: relative;
}
.tnl-hero--tall { padding: 80px 0; }
.tnl-hero__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.55);
}
.tnl-hero__inner {
  position: relative;
  z-index: 1;
}
.tnl-hero__title { color: #fff; }

/* --- 폼 컨테이너 --- */
.tnl-form-wrap { max-width: 720px; }

/* --- 안내 섹션 (padding-bottom:0) --- */
.tnl-info-section { padding-bottom: 0; }

/* --- 필드 간격 --- */
.tnl-field { margin-bottom: 24px; }

/* --- 필드 라벨 --- */
.tnl-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #212121;
}
.tnl-required {
  color: #ff3b3b;
  margin-left: 4px;
}

/* --- 개인정보 동의 스크롤 박스 --- */
.tnl-policy-box {
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 12px;
  font-size: 13px;
  line-height: 1.6;
  background-color: #fafafa;
  margin-bottom: 10px;
  color: #555;
}

/* --- 체크박스/라디오 라벨 (인라인) --- */
.tnl-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
}
.tnl-check-label--body { color: #212121; }

/* --- 라디오/체크박스 그룹 (세로) --- */
.tnl-option-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* --- 전화번호 행 --- */
.tnl-phone-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tnl-phone-sep { color: #999; }
.tnl-phone-input { width: 100px; text-align: center; }

/* --- 전체 너비 인풋/텍스트에어리어 --- */
.tnl-input-full { width: 100%; }

/* --- 텍스트에어리어 --- */
.tnl-textarea {
  width: 100%;
  min-height: 100px;
  resize: vertical;
}

/* --- 제출 버튼 행 --- */
.tnl-submit-row {
  text-align: center;
  margin-top: 40px;
}
.tnl-submit-btn {
  min-width: 200px;
  padding: 14px 40px;
  font-size: 16px;
}

/* --- 안내 테이블 --- */
.tnl-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}
.tnl-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}
.tnl-table .tnl-table-total {
  background-color: #fff2cc;
  font-weight: 700;
}

/* --- 안내 텍스트 유틸 --- */
.tnl-mt8  { margin-top: 8px; }
.tnl-mt16 { margin-top: 16px; }
.tnl-mt24 { margin-top: 24px; }
.tnl-mt32 { margin-top: 32px; }
.tnl-lh18 { line-height: 1.8; }
.tnl-text-red { color: #f70707; }
.tnl-text-16 { font-size: 16px; }

.tnl-guide-list {
  padding-left: 24px;
  margin-top: 8px;
  line-height: 1.8;
}

/* --- 구분선 --- */
.tnl-divider {
  margin: 32px 0;
  border-color: rgba(0,0,0,0.05);
  border-top-width: 3px;
}

/* --- index 페이지 전용 --- */
.tnl-icon-img {
  display: block;
  margin: 0 auto 20px;
}
.tnl-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}
.tnl-service-btn {
  padding: 14px 20px;
  font-size: 15px;
}
.tnl-cta-btn {
  padding: 14px 40px;
  font-size: 16px;
  border-radius: 6px;
}
.tnl-dashed-hr {
  border: none;
  border-top: 1px dashed #ddd;
}

/* =============================================
   상품 상세
   ============================================= */
.shop-detail { background-color: #fff; min-height: 100vh; }
.shop-detail .container { padding-top: 40px; padding-bottom: 80px; }
.shop-breadcrumb { font-size: 14px; color: #999; margin-bottom: 30px; }
.shop-breadcrumb a { color: #999; }
.shop-main { display: flex; gap: 40px; align-items: flex-start; margin-bottom: 60px; flex-wrap: wrap; }
.shop-main-col { flex: 1 1 300px; min-width: 0; }
.shop-main-col img { width: 100%; display: block; }
.shop-title { font-size: 20px; font-weight: 700; color: #212121; margin-bottom: 8px; line-height: 1.4; }
.shop-sale-badge { display: inline-block; background-color: #fe5356; color: #fff; font-size: 14px; padding: 2px 8px; margin-left: 8px; vertical-align: middle; }
.shop-price { font-size: 24px; font-weight: 700; color: #212121; }
.shop-price-old { font-size: 14px; color: #999; text-decoration: line-through; margin-left: 8px; }
.shop-summary { font-size: 14px; color: #555; line-height: 1.7; margin-bottom: 20px; }
.shop-meta { border-top: 1px solid #e5e5e5; padding-top: 16px; margin-bottom: 20px; }
.shop-meta-row { display: flex; font-size: 14px; margin-bottom: 8px; }
.shop-meta-label { color: #999; width: 80px; flex-shrink: 0; }
.shop-meta-value { color: #212121; }
.shop-qty-wrap { border-top: 1px solid #e5e5e5; padding: 16px 0; margin-bottom: 16px; }
.shop-qty-box { display: flex; align-items: center; border: 1px solid #e5e5e5; }
.shop-qty-btn { width: 36px; height: 36px; border: none; background: none; cursor: pointer; font-size: 16px; }
.shop-qty-input { width: 40px; height: 36px; border: none; text-align: center; font-size: 14px; }
.shop-total-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.shop-total-label { font-size: 14px; color: #999; }
.shop-total-price { font-size: 20px; font-weight: 700; color: var(--color-primary); }
.shop-action-btn { background: none; border: 1px solid #e5e5e5; padding: 8px 16px; cursor: pointer; font-size: 14px; color: #757575; border-radius: 4px; }
.shop-tab-bar { display: flex; width: 100%; border-bottom: 2px solid #e5e5e5; }
.shop-tab-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 14px 0; border: none; background: none; cursor: pointer; font-size: 15px; font-weight: 600; color: #999; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.shop-tab-btn.active { color: #212121; border-bottom-color: var(--color-primary); }
.shop-tab-content, .shop-detail-content { padding: 40px 0; text-align: center; }
.shop-tab-content img, .shop-detail-content img { margin: 0 auto; display: block; }
.shop-line-total { font-size: 14px; color: #212121; }
.shop-buy-btns { display: flex; gap: 10px; margin-bottom: 16px; }
.shop-buy-btns .btn { flex: 1; justify-content: center; text-align: center; }
.shop-price-wrap { margin-bottom: 16px; }
.shop-detail-section { background: var(--color-bg-alt); border-top: 1px solid var(--color-border-dark); border-bottom: 1px solid var(--color-border); padding: 14px 0; text-align: center; margin-bottom: 0; }
.shop-detail-section h3 { font-size: 15px; font-weight: 600; color: var(--color-text); margin: 0; }
.shop-tab-notice { max-width: 860px; margin: 40px auto 0; text-align: left; font-size: 14px; color: #555; line-height: 1.8; }

/* =============================================
   헤더
   ============================================= */
.site-header {
  background-color: #fff;
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  position: sticky;
  top: 0;
}
.site-header > .container { height: 70px; max-width: none; }
.topbar-wrap > .container { max-width: none; }
.header-logo-link { flex-grow: 1; }
.header-logo-desktop { height: 44px; width: auto; }
.header-logo-mobile { height: 28px; width: auto; }

/* 데스크탑 네비게이션 */
.header-nav { display: flex; align-items: center; }
.header-nav a {
  color: var(--color-text);
  font-size: 16px;
  font-weight: 600;
  padding: 0 17px;
  height: 70px;
  display: flex;
  align-items: center;
}

/* 헤더 버튼 그룹 */
.header-btn-group { display: flex; align-items: center; gap: 8px; }
.header-btn-group-m { display: flex; align-items: center; gap: 12px; }

/* 헤더 버튼 (공통) */
.header-btn {
  border-radius: 9999px;
  padding: 4px 0;
  font-size: 14px;
  color: var(--color-text-white);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100px;
  border: 1px solid transparent;
}
.header-btn-primary { background-color: var(--color-primary); border-color: var(--color-primary); }
.header-btn-accent { background-color: var(--color-accent); border-color: var(--color-accent); }
.header-btn-dark { background-color: var(--color-dark); border-color: var(--color-dark); }

/* 모바일 헤더 버튼 */
.header-btn-m {
  border-radius: 9999px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--color-text-white);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

/* 햄버거 버튼 */
.header-hamburger {
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  margin-right: 15px;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.header-hamburger:focus,
.header-hamburger:focus-visible { outline: none; }

/* 모바일 메뉴 패널 */
.mobile-menu-panel {
  display: none;
  border-top: 1px solid var(--color-border);
  background-color: #fff;
}
@media (min-width: 768px) {
  .mobile-menu-panel { display: none !important; }
}
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  padding: 16px 1.25rem;
  gap: 4px;
}
.mobile-menu-nav a {
  padding: 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 1px solid #f2f2f2;
}
.mobile-menu-btns {
  display: flex;
  gap: 8px;
  padding: 24px 0;
}
.mobile-menu-btns a { flex: 1; text-align: center; font-size: 14px; color: var(--color-text-white); border-bottom: none; }

/* =============================================
   반응형 표시/숨김
   ============================================= */
.desktop-only { display: none !important; }
.mobile-only { display: flex !important; }

@media (min-width: 768px) {
  .desktop-only { display: flex !important; }
  .desktop-only img, .desktop-only.header-logo { display: block !important; }
  .mobile-only { display: none !important; }
}

/* =============================================
   Flexbox/Grid 유틸리티 (Tailwind 대체)
   ============================================= */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-4 { gap: 1rem; }
.w-full { width: 100%; }
.w-6 { width: 1.5rem; }
.h-0\.5 { height: 0.125rem; }
.bg-\[\#212121\] { background-color: #212121; }
.p-2 { padding: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.text-center { text-align: center; }
.hidden { display: none; }

/* Tailwind transition helpers */
.transition-all { transition: all 0.15s ease; }
.rotate-45 { transform: rotate(45deg); }
.translate-y-2 { transform: translateY(0.5rem); }
.-rotate-45 { transform: rotate(-45deg); }
.-translate-y-2 { transform: translateY(-0.5rem); }
.opacity-0 { opacity: 0; }

/* Header hamburger */
.hamburger-line {
  display: block;
  width: 1.5rem;
  height: 0.125rem;
  background-color: #212121;
  transition: all 0.15s ease;
}
