/* ssada.com 가이드 페이지 공유 스타일시트 - 메인 페이지 기준 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Noto Sans KR', sans-serif; background: #f8f8f8; color: #111; }

/* 헤더 - 메인과 동일 */
.header { background: white; border-bottom: 2.5px solid #FF4B2B; padding: 12px 16px; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 6px rgba(0,0,0,0.06); display: flex; align-items: center; justify-content: center; }
.logo-link { text-decoration: none; }
.logo-img { height: 64px; display: block; }
.logo-text { display: none; }
.header-inner { max-width: 960px; width: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: center; }

/* 컨테이너 - 메인 .main과 동일 */
.container { max-width: 960px; margin: 0 auto; padding: 16px; }

/* 브레드크럼 */
.breadcrumb { font-size: 12px; color: #aaa; margin-bottom: 12px; }
.breadcrumb a { color: #FF4B2B; text-decoration: none; }

/* 히어로 영역 - 메인 .hero와 동일 느낌 */
h1 { font-size: 22px; font-weight: 900; color: #111; letter-spacing: -1px; margin-bottom: 4px; line-height: 1.3; }
.subtitle { font-size: 12px; color: #aaa; margin-bottom: 16px; line-height: 1.7; }

/* 검색박스 - 메인과 동일 */
.search-section { background: white; border-radius: 16px; padding: 18px 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-bottom: 16px; text-align: center; }
.search-section h2 { font-size: 15px; font-weight: 900; margin-bottom: 12px; color: #111; }
.search-box { display: flex; border: 2.5px solid #FF4B2B; border-radius: 40px; overflow: hidden; background: white; box-shadow: 0 4px 16px rgba(255,75,43,0.15); max-width: 500px; margin: 0 auto; }
.search-box input { flex: 1; border: none; padding: 13px 18px; font-size: 15px; font-family: inherit; outline: none; background: transparent; }
.search-box button { background: #FF4B2B; color: white; border: none; padding: 0 22px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; white-space: nowrap; }
.search-box button:hover { background: #CC2200; }

/* 섹션 카드 */
.info-section { background: white; border-radius: 14px; padding: 16px; box-shadow: 0 2px 6px rgba(0,0,0,0.05); margin-bottom: 14px; }
.info-section h2 { font-size: 15px; font-weight: 900; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid #FF4B2B; color: #111; }
.info-section p { font-size: 13px; line-height: 1.8; color: #444; }

/* 팁 섹션 */
.tips { background: #fff8f7; border-radius: 14px; padding: 16px; margin-bottom: 14px; border: 1px solid #ffe0da; }
.tips h2 { font-size: 15px; font-weight: 900; margin-bottom: 10px; color: #FF4B2B; }
.tips ul { list-style: none; padding: 0; }
.tips ul li { padding: 5px 0; font-size: 13px; color: #444; line-height: 1.7; display: flex; align-items: flex-start; gap: 8px; }
.tips ul li::before { content: "✅"; flex-shrink: 0; }

/* 링크 버튼 */
.back-link { display: inline-block; margin-top: 6px; padding: 10px 20px; background: #FF4B2B; color: white; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 13px; }
.back-link:hover { background: #CC2200; }

/* 면책조항 */
.disclaimer { font-size: 11px; color: #bbb; text-align: center; margin-top: 24px; line-height: 1.8; }

/* FAQ 섹션 */
.faq-section { background: white; border-radius: 14px; padding: 16px; box-shadow: 0 2px 6px rgba(0,0,0,0.05); margin-bottom: 14px; }
.faq-section h2 { font-size: 15px; font-weight: 900; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid #FF4B2B; color: #111; }
.faq-item { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #f0f0f0; }
.faq-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.faq-q { font-size: 13px; font-weight: 700; color: #111; margin-bottom: 5px; }
.faq-a { font-size: 13px; color: #444; line-height: 1.8; }

/* 관련 링크 */
.related-section { background: white; border-radius: 14px; padding: 16px; box-shadow: 0 2px 6px rgba(0,0,0,0.05); margin-bottom: 14px; }
.related-section h2 { font-size: 15px; font-weight: 900; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid #FF4B2B; color: #111; }
.related-links { display: flex; flex-wrap: wrap; gap: 8px; }
.related-links a { display: inline-block; padding: 5px 12px; background: #fff8f7; border: 1px solid #ffe0da; border-radius: 50px; font-size: 12px; color: #FF4B2B; text-decoration: none; font-weight: 600; }
.related-links a:hover { background: #FF4B2B; color: white; }

@media (max-width: 600px) {
  .logo-img { height: 52px; }
  h1 { font-size: 18px; }
  .container { padding: 14px; }
}


/* === 관련 가이드 칩 스타일 (위쪽 파란 칩과 통일) === */
.internal-links-box { margin: 20px 0; }
.internal-links-box h3 { font-size: 16px; font-weight: 700; margin: 0 0 12px; color: #222; }
.il-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.il-link {
  display: inline-block;
  padding: 7px 13px;
  background: #f0f7ff;
  border-radius: 16px;
  font-size: 13px;
  color: #0070f3;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}
.il-link:hover { background: #dceafe; }


/* === 하단 콘텐츠 중앙정렬 (모든 템플릿 공통, 1회 적용) === */
.ssada-injected,
.faq-section,
.internal-links-box,
div[style*="background:#fff;border-radius:12px"] {
  max-width: 960px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}


/* === 템플릿 통일 매핑 (3종 템플릿 → 캠핑의자 스타일, 1회 적용) === */

/* 큰 틀: .wrap 도 container 처럼 960 가운데 */
.wrap { max-width: 960px; margin: 0 auto; padding: 16px; }

/* 자체 헤더/뒤로가기: 캠핑의자엔 없으니 정리 */
.wrap > .back, .container > .back {
  display: inline-block; font-size: 13px; color: #0070f3;
  text-decoration: none; margin-bottom: 8px;
}

/* 인트로 문단 */
.desc { font-size: 14px; line-height: 1.8; color: #444; margin-bottom: 16px; }

/* 본문 박스: .cs / .content-section → .info-section 과 동일 */
.cs, .content-section {
  background: #fff; border-radius: 14px; padding: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05); margin-bottom: 14px;
}
.cs h2, .content-section h2 {
  font-size: 15px; font-weight: 900; margin-bottom: 10px;
  padding-bottom: 8px; border-bottom: 2px solid #FF4B2B; color: #111;
}
.cs p, .content-section p { font-size: 13px; line-height: 1.8; color: #444; }

/* 대표 브랜드 박스 */
.brand-entity {
  background: #fff; border-radius: 14px; padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05); margin-bottom: 14px;
}
.brand-entity a, .brand-entity span {
  display: inline-block; padding: 5px 12px; margin: 3px 4px 3px 0;
  background: #f5f5f5; border-radius: 16px; font-size: 12px;
  color: #555; text-decoration: none;
}

/* 검색 영역: .cta → .search-section, .sr/.search-row → .search-box */
.cta {
  background: #fff; border-radius: 16px; padding: 18px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-bottom: 16px; text-align: center;
}
.cta h3 { font-size: 15px; font-weight: 900; margin-bottom: 12px; color: #111; }
.sr, .search-row {
  display: flex; border: 2.5px solid #FF4B2B; border-radius: 40px;
  overflow: hidden; background: #fff;
  box-shadow: 0 4px 16px rgba(255,75,43,0.15); max-width: 500px; margin: 0 auto;
}
.sr input, .search-row input {
  flex: 1; border: none; padding: 13px 18px; font-size: 15px;
  font-family: inherit; outline: none; background: transparent;
}
.sr button, .search-row button {
  background: #FF4B2B; color: #fff; border: none; padding: 0 22px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: inherit; white-space: nowrap;
}
.sr button:hover, .search-row button:hover { background: #CC2200; }

/* FAQ 아코디언(.fi/.fq/.fa) 정리 */
.fi { border-bottom: 1px solid #f0f0f0; }
.fq {
  width: 100%; background: none; border: none; padding: 12px 0;
  font-size: 14px; font-weight: 500; text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; font-family: inherit;
}
.fa { padding: 0 0 12px; font-size: 13px; color: #555; line-height: 1.8; }
.fa p { margin: 0; }

/* 관련가이드 박스: .rb / .related-box → internal-links-box 와 동일 톤 */
.rb, .related-box {
  background: #fff; border-radius: 14px; padding: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05); margin-bottom: 14px;
}
.rb h3, .related-box h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; color: #222; }
.rls, .related-links { display: flex; flex-wrap: wrap; gap: 8px; }
.rl, .related-link {
  display: inline-block; padding: 7px 13px; background: #f0f7ff;
  border-radius: 16px; font-size: 13px; color: #0070f3;
  text-decoration: none; white-space: nowrap;
}
.rl:hover, .related-link:hover { background: #dceafe; }

/* 카테고리 전체보기 링크 */
.cat-back-link { margin: 14px 0; }
.cat-back-link a { font-size: 13px; color: #0070f3; text-decoration: none; }

/* 자체 header(.logo) 는 메인 헤더와 중복 → 숨김 */
.wrap ~ nav, body > header .logo { }


/* === 검색창 순서 보정 (.cta 가 있는 guide형만, 1회 적용) === */
/* .cta(검색창)를 가진 컨테이너만 flex 재배치 → cheapest형(.search-section)엔 영향 없음 */
.container:has(> .cta),
.wrap:has(> .cta) {
  display: flex;
  flex-direction: column;
}
.container:has(> .cta) > .breadcrumb,
.wrap:has(> .cta) > .back { order: 1; }
.container:has(> .cta) > h1,
.wrap:has(> .cta) > h1 { order: 2; }
.container:has(> .cta) > .desc,
.wrap:has(> .cta) > .desc { order: 3; }
.container:has(> .cta) > .cta,
.wrap:has(> .cta) > .cta { order: 4; }            /* 검색창을 본문 위로 */
.container:has(> .cta) > .content-section,
.container:has(> .cta) > .cs,
.wrap:has(> .cta) > .cs,
.container:has(> .cta) > .brand-entity,
.wrap:has(> .cta) > .brand-entity { order: 5; }
.container:has(> .cta) > .fb,
.wrap:has(> .cta) > .fb { order: 6; }             /* 상품 */
.container:has(> .cta) > *,
.wrap:has(> .cta) > * { order: 7; }               /* 나머지(FAQ/관련가이드 등) 맨 뒤 */
/* 위 일반규칙(order:7)이 앞 항목을 덮지 않도록, 구체 규칙을 뒤에 한 번 더 명시 */
.container:has(> .cta) > .cta,
.wrap:has(> .cta) > .cta { order: 4 !important; }
.container:has(> .cta) > .content-section,
.container:has(> .cta) > .cs,
.wrap:has(> .cta) > .cs,
.container:has(> .cta) > .brand-entity,
.wrap:has(> .cta) > .brand-entity { order: 5 !important; }
.container:has(> .cta) > .fb,
.wrap:has(> .cta) > .fb { order: 6 !important; }
.container:has(> .cta) > .breadcrumb,
.wrap:has(> .cta) > .back { order: 1 !important; }
.container:has(> .cta) > h1,
.wrap:has(> .cta) > h1 { order: 2 !important; }
.container:has(> .cta) > .desc,
.wrap:has(> .cta) > .desc { order: 3 !important; }

/* 카테고리 전체보기 링크: 박스로 감싸 정렬 통일 */
.cat-back-link {
  background: #fff; border-radius: 14px; padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05); margin: 14px 0;
}
.cat-back-link a { font-size: 13px; color: #0070f3; text-decoration: none; }


/* === 컨테이너 밖 박스 중앙정렬 (1회 적용) === */
.cat-back-link,
.internal-links-box {
  max-width: 960px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}


/* === 하단 네비게이션 바 (모든 가이드 페이지 통일, 1회 적용) === */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #fff;
  border-top: 1px solid #eee;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
  padding: 8px 0;
  z-index: 100;
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  color: #555;
  text-decoration: none;
  flex: 1;
  text-align: center;
}
.bottom-nav a span { font-size: 18px; }
.bottom-nav a:hover { color: #FF4B2B; }
/* 고정 nav 가 본문 끝을 가리지 않도록 여백 확보 */
body { padding-bottom: 64px; }


/* === header 태그 가운데 정렬 (guide형 로고 중앙, 1회 적용) === */
body > header {
  background: #fff;
  border-bottom: 2.5px solid #FF4B2B;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
body > header .logo-img { height: 64px; display: block; }


/* === 흰 박스 폭 통일 (상품/FAQ 박스를 본문 폭과 일치, 1회 적용) === */
div[style*="background:#fff;border-radius:12px"],
.content-section, .cs, .info-section, .faq-section,
.internal-links-box, .cat-back-link, .brand-entity, .cta, .tips {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 960px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}


/* === A형(옛 템플릿) 가이드 표준화 — airpods-4, galaxy-s25 등 (1회 적용) === */

/* 헤더: 텍스트 로고 중앙정렬 (B형 .header 와 동일 톤) */
.header { background:#fff; border-bottom:2.5px solid #FF4B2B; padding:12px 16px; position:sticky; top:0; z-index:100; box-shadow:0 2px 6px rgba(0,0,0,0.06); display:flex; align-items:center; justify-content:center; text-align:center; }
.header > a { text-decoration:none; display:inline-block; text-align:center; }
.logo-text { font-size:24px; font-weight:900; color:#FF4B2B; line-height:1.1; }
.logo-sub  { font-size:11px; color:#888; margin-top:2px; }

/* 본문 컨테이너: .hero 를 B형 .container 처럼 */
.hero { max-width:960px; margin:0 auto; padding:16px; }
.hero .breadcrumb { font-size:12px; color:#888; margin-bottom:10px; }
.hero .breadcrumb a { color:#FF4B2B; text-decoration:none; }
.hero h1 { font-size:20px; font-weight:900; color:#111; margin-bottom:8px; }
.hero > p { font-size:13px; line-height:1.8; color:#444; margin-bottom:16px; }

/* 검색창: 둥근 주황 박스 (B형 .search-section 톤) */
.search-wrap { max-width:960px; margin:0 auto 16px; background:#fff; border-radius:16px; padding:18px 16px; box-shadow:0 2px 8px rgba(0,0,0,0.06); text-align:center; }
.search-wrap input { border:2px solid #FF4B2B; border-radius:10px; padding:12px 14px; font-size:14px; width:70%; max-width:520px; box-sizing:border-box; outline:none; }
.search-wrap button, .search-wrap a.btn { background:#FF4B2B; color:#fff; border:none; border-radius:10px; padding:12px 18px; font-size:14px; font-weight:700; cursor:pointer; text-decoration:none; display:inline-block; }

/* 본문 흰 박스 + 주황 밑줄 제목 (B형 .info-section 톤) */
.section { max-width:960px; box-sizing:border-box; margin:0 auto 14px; background:#fff; border-radius:14px; padding:16px; box-shadow:0 2px 6px rgba(0,0,0,0.05); }
.section h2, .section h3 { font-size:15px; font-weight:900; margin-bottom:10px; padding-bottom:8px; border-bottom:2px solid #FF4B2B; color:#111; }
.section p, .section li { font-size:13px; line-height:1.8; color:#444; }

/* CTA / 관련링크 / FAQ 박스도 동일 폭·톤 */
.cta-box, .related, .related-links, .faq-section { max-width:960px; box-sizing:border-box; margin:14px auto; background:#fff; border-radius:14px; padding:16px; box-shadow:0 2px 6px rgba(0,0,0,0.05); }
.cta-btn { background:#FF4B2B; color:#fff; border-radius:10px; padding:12px 18px; font-weight:700; text-decoration:none; display:inline-block; }
.related-links a { display:inline-block; border:1px solid #ffd9cc; color:#FF4B2B; border-radius:16px; padding:6px 12px; margin:4px 4px 0 0; font-size:12px; text-decoration:none; }
.faq-q { font-weight:700; color:#111; font-size:14px; }
.faq-a { font-size:13px; line-height:1.8; color:#444; }
.footer { max-width:960px; margin:16px auto; text-align:center; font-size:12px; color:#999; }
