/* ===== 샤크컴퍼니 지깅클럽 공통 스타일 ===== */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

:root {
  --navy: #071a2e;
  --navy-2: #0b2b4a;
  --blue: #0e5aa7;
  --blue-light: #e6f0fa;
  --orange: #ff7a1a;
  --orange-dark: #e5640a;
  --green: #03c75a;      /* 네이버 */
  --red: #ff0000;        /* 유튜브 */
  --text: #1a2633;
  --muted: #5b6b7b;
  --line: #e2e8ef;
  --bg: #f5f7fa;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(7, 26, 46, 0.08);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

/* ---------- 헤더 ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 26, 46, 0.96);
  backdrop-filter: blur(8px);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.3px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--orange), #ffb347);
  display: grid; place-items: center; color: #fff; font-size: 18px;
}
.brand small { display: block; font-size: 11px; font-weight: 500; opacity: 0.7; letter-spacing: 1.5px; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { padding: 8px 12px; border-radius: 8px; font-size: 15px; opacity: 0.85; }
.nav a:hover { background: rgba(255,255,255,0.1); opacity: 1; }
.nav .nav-cta { background: var(--orange); opacity: 1; font-weight: 700; margin-left: 6px; }
.nav .nav-cta:hover { background: var(--orange-dark); }
.menu-btn { display: none; background: none; border: 0; color: #fff; font-size: 26px; }

/* ---------- 히어로(첫 화면) ---------- */
.hero {
  position: relative; min-height: 560px; color: #fff;
  background: var(--navy) center/cover no-repeat;
  display: flex; align-items: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(4,18,36,0.85) 0%, rgba(4,18,36,0.55) 55%, rgba(4,18,36,0.25) 100%);
}
.hero .container { position: relative; padding-top: 70px; padding-bottom: 70px; }
.hero-badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,122,26,0.18); color: #ffb347; border: 1px solid rgba(255,179,71,0.5);
  font-size: 13px; font-weight: 700; letter-spacing: 2px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(30px, 5vw, 54px); line-height: 1.2; margin: 0 0 18px; font-weight: 800; white-space: pre-line; letter-spacing: -1px; }
.hero p { font-size: clamp(15px, 1.6vw, 19px); max-width: 620px; opacity: 0.9; margin: 0 0 30px; white-space: pre-line; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; font-weight: 700; font-size: 15px;
  border: 0; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(255,122,26,0.35); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.2); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #0c4b8c; }
.btn-ghost { background: var(--blue-light); color: var(--blue); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }

/* ---------- 바로가기 카드 ---------- */
.quick { margin-top: -44px; position: relative; z-index: 2; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quick-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border-radius: var(--radius); padding: 20px 22px;
  box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
  border: 1px solid var(--line);
}
.quick-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(7,26,46,0.14); }
.quick-icon {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px;
}
.quick-icon.shop { background: linear-gradient(135deg, var(--blue), #3a8ddc); }
.quick-icon.cafe { background: linear-gradient(135deg, #02a94a, #3ad97f); }
.quick-icon.youtube { background: linear-gradient(135deg, #d60000, #ff4d4d); }
.quick-card strong { display: block; font-size: 17px; }
.quick-card span { font-size: 13px; color: var(--muted); }
.quick-card .arrow { margin-left: auto; color: var(--muted); font-size: 20px; }

/* ---------- 섹션 공통 ---------- */
.section { padding: 64px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head h2 { font-size: 28px; margin: 0; letter-spacing: -0.5px; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.section-head .more { color: var(--blue); font-weight: 700; font-size: 14px; white-space: nowrap; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- 배너 슬라이더 ---------- */
.banner-wrap { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.banner-track { display: flex; transition: transform .6s ease; }
.banner-slide { min-width: 100%; position: relative; aspect-ratio: 3 / 1; background: var(--navy-2); }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 32px; color: #fff;
  background: linear-gradient(0deg, rgba(4,18,36,0.8), transparent);
}
.banner-caption strong { display: block; font-size: 24px; }
.banner-caption span { font-size: 14px; opacity: 0.9; }
.banner-dots { position: absolute; right: 18px; bottom: 18px; display: flex; gap: 6px; }
.banner-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.5); padding: 0; }
.banner-dots button.active { background: #fff; width: 24px; border-radius: 6px; }
.banner-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,0.85); color: var(--navy); font-size: 20px; font-weight: 700;
}
.banner-arrow.prev { left: 14px; } .banner-arrow.next { right: 14px; }

/* ---------- 카테고리 탭 & 상품 카탈로그 ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tab {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-weight: 600; font-size: 14px; color: var(--muted);
}
.tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.cat-desc { color: var(--muted); margin: -8px 0 20px; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(7,26,46,0.04);
  transition: transform .15s, box-shadow .15s; cursor: pointer; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-thumb { aspect-ratio: 1 / 1; background: #eef2f6; position: relative; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover .product-thumb img { transform: scale(1.04); }
.product-badge {
  position: absolute; top: 10px; left: 10px; background: var(--orange); color: #fff;
  font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 6px; letter-spacing: 1px;
}
.product-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-cat { font-size: 12px; color: var(--blue); font-weight: 700; }
.product-name { font-size: 16px; font-weight: 700; line-height: 1.35; }
.product-desc {
  font-size: 13px; color: var(--muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-price { margin-top: auto; padding-top: 8px; font-weight: 800; font-size: 15px; color: var(--navy); }
.empty { text-align: center; color: var(--muted); padding: 40px 0; border: 1px dashed var(--line); border-radius: var(--radius); }

/* 카탈로그 페이지 레이아웃 */
.catalog-layout { display: grid; grid-template-columns: 230px 1fr; gap: 28px; align-items: start; }
.side-nav { position: sticky; top: 86px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.side-nav a { display: block; padding: 13px 18px; border-bottom: 1px solid var(--line); font-weight: 600; }
.side-nav a:last-child { border-bottom: 0; }
.side-nav a.active { background: var(--navy); color: #fff; }
.side-nav a span { float: right; color: var(--muted); font-size: 12px; font-weight: 500; }
.side-nav a.active span { color: rgba(255,255,255,0.7); }

/* ---------- 공지사항 ---------- */
.notice-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.notice-item {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px;
  border-bottom: 1px solid var(--line); cursor: pointer;
}
.notice-item:last-child { border-bottom: 0; }
.notice-item:hover { background: var(--blue-light); }
.notice-pin { font-size: 11px; font-weight: 800; color: #fff; background: var(--orange); padding: 3px 8px; border-radius: 6px; flex-shrink: 0; }
.notice-title { font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-date { color: var(--muted); font-size: 13px; flex-shrink: 0; }
.notice-detail { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.notice-detail h2 { margin: 0 0 6px; }
.notice-detail .meta { color: var(--muted); font-size: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.notice-detail .body { white-space: pre-wrap; line-height: 1.8; font-size: 16px; }
.notice-detail .body img { border-radius: 10px; margin: 12px 0; }

/* ---------- 유튜브 섹션 ---------- */
.yt-box {
  background: linear-gradient(135deg, #1b0d0d, #4a0f14); color: #fff; border-radius: var(--radius);
  padding: 40px; display: flex; align-items: center; gap: 30px; flex-wrap: wrap;
}
.yt-box h3 { margin: 0 0 8px; font-size: 26px; }
.yt-box p { margin: 0; opacity: 0.85; max-width: 560px; }
.yt-box .btn { margin-left: auto; background: var(--red); color: #fff; }

/* ---------- 모달 ---------- */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(4,18,36,0.7); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-box { background: #fff; border-radius: 18px; max-width: 860px; width: 100%; max-height: 92vh; overflow: auto; position: relative; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0,0,0,0.06); font-size: 20px; z-index: 2; }
.product-modal { display: grid; grid-template-columns: 1fr 1fr; }
.product-modal .pm-img { background: #eef2f6; aspect-ratio: 1/1; }
.product-modal .pm-img img { width: 100%; height: 100%; object-fit: cover; }
.product-modal .pm-body { padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.product-modal h3 { margin: 0; font-size: 24px; }
.product-modal .pm-desc { white-space: pre-wrap; color: var(--text); line-height: 1.7; }
.product-modal .pm-price { font-size: 20px; font-weight: 800; color: var(--navy); }
.product-modal .pm-actions { margin-top: auto; padding-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 푸터 ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 44px 0 30px; font-size: 14px; margin-top: 40px; }
.footer .container { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer strong { color: #fff; font-size: 16px; display: block; margin-bottom: 8px; }
.footer .links a { margin-right: 16px; }
.footer .links a:hover { color: #fff; }
.footer .admin-link { opacity: 0.5; font-size: 12px; }

/* ---------- 반응형 ---------- */
@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .catalog-layout { grid-template-columns: 1fr; }
  .side-nav { position: static; display: flex; flex-wrap: wrap; }
  .side-nav a { border: 0; }
  .side-nav a span { display: none; }
}
@media (max-width: 720px) {
  .header .container { height: 60px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 60px; flex-direction: column; background: var(--navy); padding: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 12px; }
  .menu-btn { display: block; }
  .hero { min-height: 480px; }
  .quick { margin-top: 24px; }
  .quick-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .section { padding: 44px 0; }
  .section-head h2 { font-size: 23px; }
  .banner-caption { padding: 16px; }
  .banner-caption strong { font-size: 17px; }
  .banner-arrow { display: none; }
  .product-modal { grid-template-columns: 1fr; }
  .product-modal .pm-body { padding: 22px; }
  .yt-box { padding: 26px; }
  .yt-box .btn { margin-left: 0; width: 100%; }
  .notice-detail { padding: 20px; }
}
