/* ===== 지구낚시 홈 (index.html + js/home.js) =====
 * 공통 헤더·푸터(css/header.css, footer.css) 와 겹치지 않도록 모든 클래스는 zh- 로 시작합니다.
 * 색은 css/base.css 의 토큰을 씁니다: --green-900(딥그린) · --yellow(라임) · --lavender(민트)
 */
.zhome {
  --zh-radius: 24px;
  --zh-radius-sm: 14px;
  --zh-pill: 100px;
  --zh-wrap: 1320px;
  --zh-display: "Bricolage Grotesque", "Pretendard Variable", Pretendard, sans-serif;
  --zh-sea: #bfe7ff;
  --zh-lake: #c9f0d8;
  --zh-sun: #ffe08a;
  --zh-coral: #ffb4a2;
  --zh-ink: #d9d4ff;
  --zh-sand: #f3e7cf;
  --zh-shadow: 0 10px 30px rgb(6 50 42 / .10);
  padding-top: calc(var(--header-h) + 8px);
  color: var(--ink);
  font-size: 16px;
  overflow-x: clip;
}
.zhome h1, .zhome h2, .zhome h3, .zhome h4 { color: var(--green-900); line-height: 1.18; letter-spacing: -.03em; margin: 0; }
.zh-wrap { width: min(100% - 32px, var(--zh-wrap)); margin-inline: auto; }

/* ---------- 버튼 ---------- */
.zh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: var(--zh-pill); border: 0; background: var(--green-900); color: var(--lavender); font-weight: 700; font-size: 16px; transition: transform .15s; }
.zh-btn:hover { transform: translateY(-2px); }
.zh-btn--light { background: var(--white); color: var(--green-900); }
.zh-btn--lime { background: var(--yellow); color: var(--green-900); }
.zh-btn--ghost { background: rgb(255 255 255 / .7); color: var(--green-900); }

/* ---------- 히어로 ---------- */
.zh-hero { position: relative; }
.zh-hero__stage { position: relative; height: clamp(460px, 62vh, 620px); border-radius: var(--zh-radius); overflow: hidden; }
.zh-slide { position: absolute; inset: 0; display: flex; align-items: center; padding: clamp(20px, 5vw, 64px); opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.zh-slide.is-active { opacity: 1; visibility: visible; }
.zh-slide__bg { position: absolute; inset: 0; }
.zh-slide__bg svg { width: 100%; height: 100%; }
.zh-slide__art { position: absolute; right: 4%; top: 50%; width: min(42%, 460px); transform: translateY(-50%); }
.zh-slide__card { position: relative; max-width: 520px; padding: clamp(22px, 3vw, 36px); border-radius: var(--zh-radius); background: rgb(255 255 255 / .55); backdrop-filter: blur(14px); border: 1px solid rgb(255 255 255 / .7); }
.zh-chip { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: var(--zh-pill); background: var(--yellow); font-size: 14px; font-weight: 700; color: var(--green-900); margin-bottom: 14px; }
.zh-slide__card h1, .zh-slide__card h2 { font-size: clamp(34px, 5vw, 60px); font-weight: 900; letter-spacing: -.04em; }
.zh-slide__card p { margin: 14px 0 22px; font-size: 18px; color: var(--green-800); }
.zh-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.zh-badge { position: absolute; right: 28px; top: 24px; width: 120px; height: 120px; display: grid; place-items: center; }
.zh-badge::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--yellow); }
.zh-badge svg { position: absolute; inset: 0; animation: zh-spin 18s linear infinite; }
.zh-badge text { font-family: var(--zh-display); font-size: 11.5px; font-weight: 800; letter-spacing: .12em; fill: var(--green-900); }
.zh-badge span { position: relative; font-size: 34px; }
@keyframes zh-spin { to { transform: rotate(360deg); } }
.zh-tabs { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px; border-radius: var(--zh-pill); background: rgb(255 255 255 / .75); backdrop-filter: blur(10px); max-width: calc(100% - 24px); overflow-x: auto; scrollbar-width: none; }
.zh-tabs button { flex: none; padding: 8px 16px; border-radius: var(--zh-pill); font-weight: 600; font-size: 15px; color: var(--green-900); }
.zh-tabs button[aria-selected="true"] { background: var(--green-900); color: var(--yellow); }

/* ---------- 티커 ---------- */
.zh-ticker { margin-top: 28px; background: var(--green-900); color: var(--yellow); overflow: hidden; padding: 16px 0; transform: rotate(-1.2deg); }
.zh-ticker__track { display: flex; gap: 40px; width: max-content; animation: zh-marquee 30s linear infinite; font-family: var(--zh-display); font-weight: 800; font-size: 26px; white-space: nowrap; }
.zh-ticker__track span::after { content: "✦"; margin-left: 40px; color: var(--lavender); }
@keyframes zh-marquee { to { transform: translateX(-50%); } }

/* ---------- 섹션 공통 ---------- */
.zh-section { padding-top: clamp(64px, 9vw, 120px); }
.zh-section--tint { background: var(--lavender); margin-top: clamp(64px, 9vw, 120px); padding-bottom: 80px; }
.zh-head { margin-bottom: 36px; max-width: 760px; }
.zh-head--center { text-align: center; margin-inline: auto; }
.zh-eyebrow { font-weight: 700; font-size: 15px; color: var(--sage); margin-bottom: 10px; }
.zh-head h2, .zh-setup h2, .zh-dark h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 900; letter-spacing: -.04em; }
.zh-lead { margin-top: 14px; color: var(--sage); font-size: 18px; }
.zh-lead a { font-weight: 700; text-decoration: underline; }
.zh-note { margin-top: 18px; font-size: 14px; color: var(--sage); }
.zh-empty { padding: 32px; color: var(--sage); }

[data-tone="sea"] { --tone: var(--zh-sea); }
[data-tone="lake"] { --tone: var(--zh-lake); }
[data-tone="sun"] { --tone: var(--zh-sun); }
[data-tone="coral"] { --tone: var(--zh-coral); }
[data-tone="ink"] { --tone: var(--zh-ink); }
[data-tone="sand"] { --tone: var(--zh-sand); }

/* ---------- 구분 토글 ---------- */
.zh-toggle { display: inline-flex; padding: 5px; gap: 4px; border-radius: var(--zh-pill); background: var(--lavender); margin: 0 auto 26px; }
.zh-toggle-wrap { text-align: center; }
.zh-toggle button { padding: 10px 22px; border-radius: var(--zh-pill); font-weight: 700; color: var(--green-900); }
.zh-toggle button[aria-pressed="true"] { background: var(--green-900); color: var(--yellow); }

/* ---------- 분류 카드 ---------- */
.zh-cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.zh-cat { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 1 / 1.05; padding: 20px; border-radius: var(--zh-radius); background: var(--tone); overflow: hidden; transition: transform .2s; color: var(--green-900); }
.zh-cat:hover { transform: translateY(-4px); }
.zh-cat__art { position: absolute; right: -6%; top: -6%; width: 70%; transition: transform .3s; }
.zh-cat:hover .zh-cat__art { transform: rotate(-6deg) scale(1.05); }
.zh-cat h3 { font-size: 22px; font-weight: 900; }
.zh-cat p { color: var(--green-800); margin-top: 4px; font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.zh-cat__meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 14px; font-weight: 700; }
.zh-go { width: 42px; height: 42px; border-radius: 50%; background: var(--white); display: grid; place-items: center; font-size: 20px; }

/* ---------- 어종·낚시 방식 기획 ---------- */
.zh-col-group { margin-bottom: 22px; }
.zh-col-title { font-size: 16px; font-weight: 800; margin-bottom: 10px; color: var(--sage) !important; }
.zh-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.zh-col { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: var(--zh-radius-sm); background: var(--lavender); color: var(--green-900); transition: background .15s, transform .15s; }
.zh-col:hover { background: var(--yellow); transform: translateY(-2px); }
.zh-col strong { font-size: 17px; }
.zh-col span { font-size: 13px; color: var(--sage); }

/* ---------- 가로 스크롤 줄 ---------- */
.zh-row { display: grid; grid-template-columns: 300px 1fr; gap: 18px; margin-bottom: 26px; }
.zh-intro { padding: 28px; border-radius: var(--zh-radius); background: var(--tone, var(--green-900)); display: flex; flex-direction: column; gap: 12px; justify-content: flex-end; min-height: 380px; position: relative; overflow: hidden; }
.zh-intro--dark { background: var(--green-900); color: var(--lavender); }
.zh-intro--dark h3 { color: var(--yellow); }
.zh-intro h3 { font-size: 32px; font-weight: 900; }
.zh-intro__art { position: absolute; top: 14px; right: 10px; width: 150px; }
.zh-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.zh-chips li { padding: 5px 11px; border-radius: var(--zh-pill); background: rgb(255 255 255 / .6); font-size: 13px; font-weight: 600; color: var(--green-900); }
.zh-intro--dark .zh-chips li { background: rgb(255 255 255 / .15); color: var(--lavender); }
.zh-intro .zh-btn { align-self: flex-start; margin-top: 6px; }
.zh-scroller { position: relative; min-width: 0; }
.zh-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 12px; cursor: grab; }
.zh-track::-webkit-scrollbar { display: none; }
.zh-track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.zh-track.is-drag a { pointer-events: none; }
.zh-sbtn { position: absolute; top: 38%; z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: var(--white); box-shadow: var(--zh-shadow); font-size: 26px; line-height: 1; color: var(--green-900); }
.zh-sbtn--prev { left: -10px; }
.zh-sbtn--next { right: -10px; }
.zh-sbtn:disabled { opacity: 0; pointer-events: none; }

/* ---------- 상품 카드 ---------- */
.zh-card { flex: 0 0 240px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; color: var(--green-900); }
.zh-card__img { position: relative; aspect-ratio: 1; border-radius: var(--zh-radius-sm); background: var(--gray-50); display: grid; place-items: center; overflow: hidden; }
.zh-card__img svg { width: 86%; transition: transform .3s; }
.zh-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.zh-card:hover .zh-card__img svg, .zh-card:hover .zh-card__img img { transform: scale(1.06); }
.zh-card__tag { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: var(--zh-pill); background: var(--green-900); color: var(--yellow); font-size: 12px; font-weight: 800; }
.zh-card__tag.is-soldout { background: #6d6d6d; color: #fff; }
.zh-card h4 { font-size: 16px; font-weight: 700; }
.zh-card__price { font-size: 17px; font-weight: 900; }
.zh-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.zh-tags li { padding: 3px 9px; border-radius: var(--zh-pill); background: var(--lavender); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; }
.zh-tags li.is-hot { background: var(--yellow); border-color: var(--yellow); }

/* ---------- 이용 안내(어두운 띠) ---------- */
.zh-dark { margin-top: clamp(64px, 9vw, 120px); background: var(--green-900); color: var(--lavender); padding: clamp(56px, 8vw, 96px) 0; }
.zh-dark h2 { color: var(--lavender); }
.zh-dark .zh-eyebrow, .zh-dark .zh-lead { color: #a9cfc5; }
.zh-dark__inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.zh-dark .zh-btn { margin-top: 24px; }
.zh-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; counter-reset: zh-step; }
.zh-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--zh-radius); background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); }
.zh-steps li::before { counter-increment: zh-step; content: counter(zh-step); flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: var(--green-900); display: grid; place-items: center; font-family: var(--zh-display); font-weight: 800; font-size: 18px; }
.zh-steps strong { display: block; font-size: 17px; color: var(--lavender); }
.zh-steps span { color: #a9cfc5; font-size: 14.5px; }

/* ---------- 왜 지구낚시 ---------- */
.zh-why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.zh-why li { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--zh-radius); background: var(--lavender); transition: background .2s, transform .2s; }
.zh-why li:hover { background: var(--yellow); transform: translateY(-4px); }
.zh-why__ic { font-size: 34px; }
.zh-why strong { font-size: 18px; color: var(--green-900); }
.zh-why p { font-size: 15px; color: var(--sage); }

/* ---------- 이 채비 그대로 ---------- */
.zh-setup { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.zh-setup__visual { position: relative; aspect-ratio: 4 / 3; border-radius: var(--zh-radius); overflow: hidden; }
.zh-setup__visual > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.zh-hotspot { position: absolute; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--white); background: var(--yellow); color: var(--green-900); font-family: var(--zh-display); font-weight: 800; font-size: 16px; animation: zh-pulse 2.4s infinite; }
.zh-hotspot[aria-pressed="true"] { background: var(--white); animation: none; }
.zh-hotspot__tip { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); white-space: nowrap; background: var(--white); padding: 4px 10px; border-radius: 8px; font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .15s; }
.zh-hotspot:hover .zh-hotspot__tip, .zh-hotspot:focus-visible .zh-hotspot__tip, .zh-hotspot[aria-pressed="true"] .zh-hotspot__tip { opacity: 1; }
@keyframes zh-pulse { 0% { box-shadow: 0 0 0 0 rgb(222 255 176 / .7); } 70% { box-shadow: 0 0 0 14px rgb(222 255 176 / 0); } 100% { box-shadow: 0 0 0 0 rgb(222 255 176 / 0); } }
.zh-setup ul { margin: 24px 0; display: grid; gap: 8px; }
.zh-line { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: var(--zh-radius-sm); border: 1px solid var(--line); transition: background .15s, border-color .15s; }
.zh-line.is-on { background: var(--lavender); border-color: var(--green-900); }
.zh-n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-weight: 800; font-size: 14px; color: var(--green-900); }
.zh-thumb { flex: none; width: 50px; height: 50px; border-radius: 10px; background: var(--gray-50); display: grid; place-items: center; overflow: hidden; }
.zh-thumb svg { width: 100%; }
.zh-thumb img { width: 100%; height: 100%; object-fit: cover; }
.zh-line__meta { flex: 1; min-width: 0; }
.zh-line__meta a { display: block; font-size: 15px; font-weight: 700; color: var(--green-900); }
.zh-line__meta span { font-size: 14px; color: var(--sage); }

/* ---------- 분류별 필터 ---------- */
.zh-kinds { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.zh-kinds button { padding: 8px 18px; border-radius: var(--zh-pill); border: 1px solid var(--line); background: var(--white); font-weight: 600; font-size: 15px; color: var(--green-900); }
.zh-kinds button[aria-pressed="true"] { background: var(--green-900); color: var(--yellow); border-color: var(--green-900); }
.zh-section--tint .zh-note { text-align: center; }
.zh-more { text-align: center; margin-top: 18px; }

/* ---------- 채비 찾기 ---------- */
.zh-picker { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; padding: clamp(20px, 3vw, 36px); border-radius: var(--zh-radius); background: var(--lavender); }
.zh-picker fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.zh-picker legend { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; margin-bottom: 12px; color: var(--green-900); }
.zh-picker legend b { width: 30px; height: 30px; border-radius: 50%; background: var(--green-900); color: var(--yellow); display: grid; place-items: center; font-size: 14px; }
.zh-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.zh-opts button { padding: 10px 16px; border-radius: var(--zh-pill); border: 1px solid var(--line); background: var(--white); font-weight: 600; color: var(--green-900); }
.zh-opts button[aria-pressed="true"] { background: var(--green-900); color: var(--yellow); border-color: var(--green-900); }
.zh-picker__res { background: var(--white); border-radius: var(--zh-radius); padding: 22px; }
.zh-picker__count { font-weight: 800; margin-bottom: 14px; color: var(--green-900); }
.zh-mini { display: grid; gap: 10px; }
.zh-mini li { animation: zh-fade .3s; }
@keyframes zh-fade { from { opacity: 0; transform: translateY(6px); } }

/* ---------- FAQ ---------- */
.zh-faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.zh-faq__item { border-bottom: 1px solid var(--line); }
.zh-faq__item button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; text-align: left; font-size: 18px; font-weight: 700; color: var(--green-900); }
.zh-faq__item button::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--lavender); display: grid; place-items: center; font-size: 22px; transition: transform .2s; }
.zh-faq__item button[aria-expanded="true"]::after { transform: rotate(45deg); background: var(--yellow); }
.zh-faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s; }
.zh-faq__a > p { overflow: hidden; color: var(--sage); }
.zh-faq__item button[aria-expanded="true"] + .zh-faq__a { grid-template-rows: 1fr; }
.zh-faq__item button[aria-expanded="true"] + .zh-faq__a > p { padding-bottom: 22px; }
.zhome > .zh-section:last-child { padding-bottom: clamp(64px, 9vw, 120px); }

/* ---------- 반응형 ---------- */
@media (max-width: 1100px) {
  .zh-why { grid-template-columns: repeat(2, 1fr); }
  .zh-cat-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .zh-cat-grid { grid-template-columns: repeat(3, 1fr); }
  .zh-row { grid-template-columns: 1fr; }
  .zh-intro { min-height: 0; }
  .zh-intro__art { width: 110px; }
  .zh-dark__inner, .zh-setup, .zh-picker, .zh-faq { grid-template-columns: 1fr; }
  .zh-badge { width: 90px; height: 90px; right: 14px; top: 14px; }
  .zh-slide__art { opacity: .25; width: 60%; right: -6%; }
}
@media (max-width: 560px) {
  .zhome { font-size: 15px; }
  .zh-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .zh-cat { padding: 14px; aspect-ratio: 1 / 1; }
  .zh-cat h3 { font-size: 18px; }
  .zh-cols { grid-template-columns: repeat(2, 1fr); }
  .zh-cat p { font-size: 13px; }
  .zh-steps { grid-template-columns: 1fr; }
  .zh-why { grid-template-columns: 1fr; }
  .zh-card { flex-basis: 70%; }
  .zh-sbtn { display: none; }
  .zh-tabs { left: 12px; right: 12px; transform: none; }
  .zh-hero__stage { height: 540px; }
  .zh-slide { align-items: flex-start; padding: 84px 14px 80px; }
  .zh-slide__card { padding: 20px; }
  .zh-slide__card h1, .zh-slide__card h2 { font-size: 30px; }
  .zh-slide__card p { font-size: 16px; margin: 10px 0 16px; }
  .zh-actions .zh-btn { padding: 12px 18px; font-size: 15px; }
  .zh-badge { width: 76px; height: 76px; top: 10px; right: 10px; }
  .zh-badge text { font-size: 13px; }
  .zh-badge span { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .zhome *, .zhome *::before, .zhome *::after { animation: none !important; transition: none !important; }
}
