/* 레저특가몰 — 고객 화면
   색: 잉크(글자) · 구명조끼 주황(가격 · 버튼) · 호수 청록(날짜 · 안내) · 부표 노랑(배지)
   모양: 상품 카드 = 입장권(사진과 가격 사이 절취선) */
:root {
  --ink: #15233b;
  --ink-2: #4a5568;
  --ink-3: #8a94a6;
  --line: #e4e7ec;
  --line-2: #f0f2f5;
  --paper: #ffffff;
  --sand: #f4f6f3;
  --vest: #ff5a1f;
  --vest-d: #e04508;
  --vest-bg: #fff1ea;
  --lake: #0e7c86;
  --lake-bg: #e6f4f4;
  --buoy: #ffd84d;
  --red: #e5323b;
  --green: #11865b;
  --r: 14px;
  --r-s: 8px;
  --wrap: 1120px;
  --font: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-y: scroll; scrollbar-gutter: stable; } /* 짧은 페이지(기획전 · 이벤트)에서도 스크롤 막대 자리를 늘 비워 둬 메뉴 이동 때 좌우로 흔들리지 않게 */
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.55 var(--font); letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lake); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.num { font-variant-numeric: tabular-nums; }
.dim { color: var(--ink-3); }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ───────── 머리 */
.hd { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-2); }
.hd .wrap { display: flex; align-items: center; gap: 14px; height: 60px; }
.logo { font-weight: 900; font-size: 20px; letter-spacing: -0.04em; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.logo i { display: inline-block; width: 22px; height: 22px; border-radius: 6px; background: var(--vest); position: relative; }
.logo i::after { content: ""; position: absolute; inset: 7px 4px; border-top: 2px dashed rgba(255,255,255,.9); }
.hd-search { flex: 1; max-width: 460px; position: relative; }
.hd-search input { width: 100%; height: 40px; border-radius: 999px; border: 0; background: var(--sand); padding: 0 16px 0 40px; }
.hd-search svg { position: absolute; left: 14px; top: 11px; width: 18px; height: 18px; color: var(--ink-3); }
.hd-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.hd-links a, .hd-links button { position: relative; display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: var(--r-s); background: none; border: 0; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.hd-links a:hover { background: var(--sand); }
.hd-links svg { width: 22px; height: 22px; }
.cnt { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; border-radius: 9px; background: var(--vest); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.nav { border-bottom: 1px solid var(--line-2); }
.nav .wrap { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; height: 46px; align-items: center; }
.nav .wrap::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; font-weight: 600; color: var(--ink-2); padding: 12px 0; border-bottom: 2px solid transparent; }
.nav a.on, .nav a:hover { color: var(--ink); border-color: var(--ink); }

/* ───────── 아래 탭 (휴대폰) */
.tabbar { display: none; }
@media (max-width: 760px) {
  .hd .wrap { height: 54px; gap: 10px; }
  .hd-links .lbl { display: none; }
  .hd-links .pc { display: none; }
  .logo span { display: none; }
  body { padding-bottom: 64px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); height: 60px; padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: var(--ink-3); position: relative; }
  .tabbar a.on { color: var(--ink); font-weight: 700; }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar .cnt { top: 6px; right: calc(50% - 22px); }
}

/* ───────── 알림 */
.flash { margin: 14px 0 0; padding: 12px 16px; border-radius: var(--r-s); font-size: 14px; }
.flash-ok { background: var(--lake-bg); color: #075a61; }
.flash-err { background: #fdecec; color: #a31d24; }
.flash-info { background: var(--sand); color: var(--ink-2); }

/* ───────── 버튼 · 입력 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 700; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--ink-3); }
.btn-buy { background: var(--vest); border-color: var(--vest); color: #fff; }
.btn-buy:hover { background: var(--vest-d); border-color: var(--vest-d); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 54px; font-size: 17px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link { color: var(--lake); font-weight: 600; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.in, .field input, .field select, .field textarea { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; background: #fff; }
.field textarea { height: auto; min-height: 140px; padding: 12px 14px; resize: vertical; }
.in:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.row { display: flex; gap: 8px; align-items: center; }
.row > .grow { flex: 1; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.hint { font-size: 13px; color: var(--ink-3); }

/* ───────── 칩 */
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 6px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.chip-gray { background: var(--line-2); color: var(--ink-2); }
.chip-blue { background: #e8efff; color: #2350c8; }
.chip-green { background: #e3f5ec; color: var(--green); }
.chip-amber { background: #fff4d9; color: #8a5a00; }
.chip-red { background: #fdecec; color: var(--red); }
.chip-lake { background: var(--lake-bg); color: var(--lake); }

/* ───────── 상품 카드: 썸네일 상자 + 이름 · 가격 상자 (둘 다 둥근 모서리) */
.tk { min-width: 0; display: flex; flex-direction: column; gap: 8px; position: relative; }
.tk-img { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r); overflow: hidden; background: var(--sand); box-shadow: 0 1px 2px rgba(21,35,59,.06); }
.tk-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tk:hover .tk-img img { transform: scale(1.03); }
.tk-body { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: box-shadow .2s; }
.tk:hover .tk-body { box-shadow: 0 4px 14px rgba(21,35,59,.07); }
.tk-name { font-weight: 700; font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tk-sum { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; margin-top: 2px; }
.tk-rate { color: var(--vest); font-size: 17px; font-weight: 800; }
.tk-won { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tk-won small { font-weight: 600; margin-left: 1px; }
.tk-price s { font-size: 12px; color: var(--ink-3); }
.tk-badge { position: absolute; left: 10px; top: 10px; background: var(--buoy); color: var(--ink); font-style: normal; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 6px; }
.tk-out { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(21,35,59,.45); color: #fff; font-style: normal; font-weight: 800; font-size: 18px; }
.tk.is-out .tk-name, .tk.is-out .tk-price { opacity: .55; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 18px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 54px) / 4); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rail { grid-auto-columns: calc((100% - 36px) / 3); } }
@media (max-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; } .rail { grid-auto-columns: 46%; gap: 12px; } .tk-body { padding: 12px 10px; } .tk-name { font-size: 14px; } .tk-won, .tk-rate { font-size: 16px; } }

/* ───────── 메인 */
.sec { margin: 40px 0; }
.sec-hd { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.sec-hd h2 { margin: 0; font-size: 22px; letter-spacing: -0.03em; }
.sec-hd p { margin: 0; color: var(--ink-3); font-size: 14px; }
.sec-hd a { margin-left: auto; font-size: 14px; color: var(--ink-2); font-weight: 600; }
.hero { margin-top: 18px; position: relative; }
.hero-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 18px; scrollbar-width: none; }
.hero-track::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: start; position: relative; min-height: 300px; border-radius: 18px; overflow: hidden; display: flex; align-items: flex-end; padding: 32px; color: #fff; background: var(--ink); }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(10,20,40,.65)); }
.slide-txt { position: relative; z-index: 1; max-width: 560px; }
.slide-txt b { display: block; font-size: 32px; line-height: 1.2; letter-spacing: -0.04em; font-weight: 800; }
.slide-txt span { display: block; margin-top: 8px; font-size: 16px; opacity: .9; }
/* 배너 아래 오른쪽: 번호 · 일시정지 · 전체보기 */
.hero-ctl { position: absolute; right: 16px; bottom: 16px; z-index: 2; display: flex; align-items: center; gap: 2px; background: rgba(0,0,0,.45); color: #fff; font-size: 12px; border-radius: 999px; padding: 2px 4px 2px 12px; }
.hero-ctl b { font-weight: 700; }
.hero-ctl button, .hero-ctl a { color: #fff; background: none; border: 0; cursor: pointer; font-size: 12px; height: 26px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 999px; }
.hero-ctl a { border-left: 1px solid rgba(255,255,255,.35); border-radius: 0 999px 999px 0; }
.hero-ctl button:hover, .hero-ctl a:hover { background: rgba(255,255,255,.15); }
.ic-pause { width: 8px; height: 10px; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.ic-play { width: 0; height: 0; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }
/* PC 좌우 화살표: 마우스를 올리면 보임 (터치 화면은 숨김) */
.hero-nav { display: none; }
@media (hover: hover) and (pointer: fine) {
  .hero-nav { display: flex; align-items: center; justify-content: center; position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink); font-size: 30px; line-height: 1; padding: 0 0 4px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.18); opacity: 0; transition: opacity .2s; }
  .hero-nav.prev { left: 16px; } .hero-nav.next { right: 16px; }
  .hero:hover .hero-nav, .hero-nav:focus-visible { opacity: 1; }
}
/* 전체 배너 */
.banner-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.banner-grid .slide { min-height: 200px; padding: 22px; }
.banner-grid .slide-txt b { font-size: 22px; }
.banner-grid .slide-txt span { font-size: 14px; }
@media (max-width: 640px) { .banner-grid { grid-template-columns: 1fr; gap: 12px; } .banner-grid .slide { min-height: 170px; padding: 18px; } }
@media (max-width: 640px) { .slide { min-height: 220px; padding: 20px; } .slide-txt b { font-size: 23px; } .slide-txt span { font-size: 14px; } .hero-track, .slide { border-radius: 14px; } }
.cats { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin-top: 22px; }
.cats a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 12px; font-size: 13px; font-weight: 600; text-align: center; }
.cats a:hover { background: var(--sand); }
.cats i { font-style: normal; width: 52px; height: 52px; border-radius: 16px; background: var(--sand); display: grid; place-items: center; font-size: 24px; }
@media (max-width: 640px) { .cats { grid-template-columns: repeat(4, 1fr); } }
.promo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.promo { position: relative; border-radius: var(--r); overflow: hidden; min-height: 170px; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; color: #fff; background: var(--lake); }
.promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(10,20,40,.7)); }
.promo b, .promo span { position: relative; z-index: 1; }
.promo b { font-size: 19px; letter-spacing: -0.03em; }
.promo span { font-size: 13px; opacity: .9; }
@media (max-width: 760px) { .promo-row { grid-template-columns: 1fr; } }
.regions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.pill { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; background: #fff; cursor: pointer; }
.pill.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.rank { counter-reset: rk; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.rank a { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); counter-increment: rk; }
.rank a::before { content: counter(rk); font-weight: 900; font-size: 18px; width: 22px; text-align: center; color: var(--vest); }
.rank img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--sand); flex: none; }
.rank b { display: block; font-size: 14px; }
.rank small { color: var(--ink-3); }
@media (max-width: 640px) { .rank { grid-template-columns: 1fr; } }

/* ───────── 목록 화면 */
.page-title { font-size: 26px; letter-spacing: -0.04em; margin: 26px 0 14px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar select { height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; background: #fff; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 10px; }
.chips::-webkit-scrollbar { display: none; }
.empty { text-align: center; padding: 60px 16px; color: var(--ink-3); }
.empty b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; }

/* ───────── 상품 상세 */
.pd { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; margin-top: 24px; align-items: start; }
.pd-media { position: static; } /* 스크롤 따라 붙어 다니지 않게 (자연스럽게 함께 스크롤) */
.pd-media .main { border-radius: 18px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--sand); }
.pd-media .main img { width: 100%; height: 100%; object-fit: cover; }
.pd-crumb { font-size: 13px; color: var(--ink-3); display: flex; gap: 6px; flex-wrap: wrap; }
.pd h1 { font-size: 27px; line-height: 1.3; letter-spacing: -0.04em; margin: 8px 0 6px; }
.pd-sum { color: var(--ink-2); margin: 0 0 14px; }
.pd-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 6px 0 18px; border-bottom: 1px solid var(--line-2); }
.pd-price .rate { color: var(--vest); font-weight: 900; font-size: 32px; letter-spacing: -0.03em; }
.pd-price .won { font-weight: 900; font-size: 32px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pd-price s { color: var(--ink-3); font-size: 15px; }
.facts { display: grid; grid-template-columns: 88px 1fr; gap: 8px 12px; padding: 16px 0; font-size: 14px; border-bottom: 1px solid var(--line-2); }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; }
.opt { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; margin-top: 10px; }
.opt.is-off { opacity: .5; }
.opt-name { flex: 1; min-width: 0; }
.opt-name b { display: block; font-weight: 700; }
.opt-name small { color: var(--ink-3); }
.opt-price { text-align: right; white-space: nowrap; }
.opt-price b { font-weight: 800; font-variant-numeric: tabular-nums; }
.opt-price s { display: block; font-size: 12px; color: var(--ink-3); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; height: 38px; }
.qty button { width: 36px; height: 100%; border: 0; background: #fff; cursor: pointer; font-size: 18px; color: var(--ink-2); }
.qty button:disabled { color: var(--line); cursor: default; }
.qty input { width: 40px; height: 100%; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.sum-bar { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 2px 14px; }
.sum-bar b { font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; }
.buy-btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
@media (max-width: 900px) {
  .pd { grid-template-columns: 1fr; gap: 18px; margin-top: 0; }
  .pd-media { position: static; margin: 0 -16px; }
  .pd-media .main { border-radius: 0; }
  .pd h1 { font-size: 23px; }
  .pd-price .rate, .pd-price .won { font-size: 27px; }
  .buy-dock { position: sticky; bottom: 60px; background: #fff; padding: 10px 0; margin: 0 -16px; padding-left: 16px; padding-right: 16px; border-top: 1px solid var(--line); z-index: 20; }
}
/* 달력 */
.cal { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-top: 10px; }
.cal-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-weight: 800; }
.cal-hd button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-grid .dw { font-size: 12px; color: var(--ink-3); padding: 4px 0; }
.cal-grid .dw:first-child { color: var(--red); }
.cal-day { border: 0; background: none; border-radius: 10px; padding: 6px 0; min-height: 48px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.cal-day b { font-weight: 700; }
.cal-day small { font-size: 10px; color: var(--lake); height: 13px; }
.cal-day:disabled { cursor: default; color: var(--line); }
.cal-day:disabled small { color: var(--ink-3); }
.cal-day:not(:disabled):hover { background: var(--lake-bg); }
.cal-day.on { background: var(--lake); color: #fff; }
.cal-day.on small { color: #fff; }
.picked-date { margin-top: 10px; padding: 10px 14px; border-radius: 10px; background: var(--lake-bg); color: var(--lake); font-weight: 700; font-size: 14px; }
/* 상세 탭 */
.pd-tabs { position: sticky; top: 60px; z-index: 10; background: #fff; display: flex; border-bottom: 1px solid var(--line); margin-top: 48px; }
.pd-tabs a { flex: 1; text-align: center; padding: 14px 0; font-weight: 700; color: var(--ink-3); border-bottom: 2px solid transparent; }
.pd-tabs a:hover { color: var(--ink); }
.pd-sec { padding: 34px 0 10px; scroll-margin-top: 120px; }
.pd-sec h3 { font-size: 19px; margin: 0 0 14px; letter-spacing: -0.03em; }
.pd-detail img { width: 100%; max-width: 860px; margin: 0 auto; }
.note { background: var(--sand); border-radius: 12px; padding: 16px 18px; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.fee-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.fee-tbl th, .fee-tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); text-align: left; }
.fee-tbl th { background: var(--sand); font-weight: 600; color: var(--ink-2); width: 55%; }

/* ───────── 장바구니 · 주문서 */
.two { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; margin-top: 10px; }
.side { position: sticky; top: 84px; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.side h3 { margin: 0 0 12px; font-size: 17px; }
.kv { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.kv.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-weight: 800; font-size: 18px; }
.kv.total b { color: var(--vest); font-size: 22px; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } .side { position: static; } }
.line { display: grid; grid-template-columns: auto 72px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.line img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--sand); }
.line-name b { display: block; }
.line-name small { display: block; color: var(--ink-3); font-size: 13px; }
.line-act { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.line-act b { font-variant-numeric: tabular-nums; }
.line.is-off .line-name, .line.is-off img { opacity: .5; }
.x { border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: 13px; text-decoration: underline; }
@media (max-width: 640px) { .line { grid-template-columns: auto 60px 1fr; } .line img { width: 60px; height: 60px; } .line-act { grid-column: 2 / -1; flex-direction: row; justify-content: space-between; align-items: center; } }
.box { border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-bottom: 16px; }
.box h3 { margin: 0 0 14px; font-size: 17px; }
.paym { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.paym label { border: 1px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; display: flex; gap: 10px; align-items: flex-start; }
.paym label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.paym input { accent-color: var(--ink); margin-top: 3px; }
.paym b { display: block; }
.paym small { color: var(--ink-3); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 640px) { .fgrid, .paym { grid-template-columns: 1fr; } }

/* ───────── 주문 완료 · 쿠폰 입장권 */
.done-hd { text-align: center; padding: 40px 0 24px; }
.done-hd .mark { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--lake-bg); color: var(--lake); display: grid; place-items: center; font-size: 30px; font-weight: 900; }
.done-hd h1 { margin: 0 0 6px; font-size: 26px; letter-spacing: -0.04em; }
.done-hd p { margin: 0; color: var(--ink-2); }
.ticket { display: grid; grid-template-columns: 1fr auto; border: 1px solid var(--line); border-radius: 16px; position: relative; margin-bottom: 12px; overflow: hidden; }
.ticket-main { padding: 16px 18px; }
.ticket-main b { display: block; }
.ticket-main small { color: var(--ink-3); }
.ticket-side { padding: 16px 18px; border-left: 2px dashed var(--line); display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 6px; min-width: 150px; position: relative; }
.ticket-side::before, .ticket-side::after { content: ""; position: absolute; left: -9px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 1px solid var(--line); }
.ticket-side::before { top: -9px; }
.ticket-side::after { bottom: -9px; }
.cno { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .02em; font-size: 15px; }
.vbank { border-radius: 16px; background: var(--ink); color: #fff; padding: 22px; margin: 6px 0 18px; }
.vbank small { opacity: .7; }
.vbank b { display: block; font-size: 22px; margin: 4px 0; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .ticket { grid-template-columns: 1fr; } .ticket-side { border-left: 0; border-top: 2px dashed var(--line); align-items: flex-start; } .ticket-side::before, .ticket-side::after { display: none; } }

/* ───────── 표 · 목록 (주문 · 게시판) */
.list-row { display: flex; gap: 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.list-row .grow { flex: 1; min-width: 0; }
.list-row b { display: block; }
.list-row small { color: var(--ink-3); }
.pager { display: flex; gap: 14px; justify-content: center; align-items: center; padding: 22px 0; font-size: 14px; color: var(--ink-2); }
.pager a { font-weight: 700; }
.pager .dim { color: var(--line); }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 8px; overflow-x: auto; }
.tabs a { padding: 12px 14px; font-weight: 700; color: var(--ink-3); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--ink); border-color: var(--ink); }
.post-body { font-size: 15px; line-height: 1.85; padding: 20px 0; }
.post-body img { margin: 14px 0; border-radius: 12px; }
details.faq { border-bottom: 1px solid var(--line-2); }
details.faq summary { padding: 16px 0; cursor: pointer; font-weight: 600; list-style: none; display: flex; gap: 10px; }
details.faq summary::before { content: "Q"; color: var(--vest); font-weight: 900; }
details.faq div { padding: 0 0 18px 22px; color: var(--ink-2); line-height: 1.8; }
.my-hd { display: flex; gap: 16px; align-items: center; padding: 22px; border-radius: 16px; background: var(--sand); margin-top: 20px; }
.my-hd b { font-size: 20px; }
.my-hd .stat { margin-left: auto; display: flex; gap: 22px; text-align: center; }
.my-hd .stat b { display: block; font-size: 22px; }
.my-hd .stat small { color: var(--ink-3); }
.narrow { max-width: 460px; margin: 0 auto; padding: 30px 0 60px; }
.narrow h1 { font-size: 26px; letter-spacing: -0.04em; margin: 10px 0 22px; }

/* ───────── 아래쪽 */
.ft { margin-top: 70px; background: var(--sand); padding: 34px 0 40px; font-size: 13px; color: var(--ink-2); }
.ft-links { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; font-weight: 600; color: var(--ink); }
.ft-cs b { font-size: 20px; display: block; color: var(--ink); }
.ft-biz { margin-top: 14px; line-height: 1.8; color: var(--ink-3); }
.ft-grid { display: grid; grid-template-columns: 1fr auto; gap: 20px; }
@media (max-width: 640px) { .ft-grid { grid-template-columns: 1fr; } }

/* 팝업 공지 */
.pop { position: fixed; inset: 0; z-index: 60; background: rgba(10,20,40,.5); display: grid; place-items: center; padding: 16px; }
.pop-box { background: #fff; border-radius: 16px; max-width: 380px; width: 100%; overflow: hidden; }
.pop-box img { width: 100%; }
.pop-box .t { padding: 16px 18px; }
.pop-act { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.pop-act button { height: 48px; border: 0; background: #fff; cursor: pointer; font-weight: 600; }
.pop-act button + button { border-left: 1px solid var(--line); }
.pop-act.one { grid-template-columns: 1fr; }
/* 채널 접속 비밀번호 화면 (N-14) */
.gate-body { background: #f3f5f8; min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.gate { width: 100%; max-width: 380px; background: #fff; border-radius: 18px; padding: 32px 24px; box-shadow: 0 4px 24px rgba(20,30,50,.08); text-align: center; }
.gate-logo { margin-bottom: 18px; } .gate-logo img { max-height: 44px; max-width: 200px; } .gate-logo b { font-size: 22px; color: var(--ink); }
.gate h1 { font-size: 20px; margin: 0 0 6px; } .gate .hint { margin: 0 0 18px; }
.gate .in { width: 100%; margin-bottom: 10px; text-align: center; }
.gate-err { color: var(--red); font-size: 14px; margin: 0 0 10px; }
.pop-terms { max-width: 560px; display: flex; flex-direction: column; max-height: calc(100vh - 32px); }
.pop-terms .t { border-bottom: 1px solid var(--line); }
.pop-scroll { padding: 14px 18px; overflow-y: auto; white-space: pre-wrap; font-size: 14px; line-height: 1.6; color: var(--ink2, #3b4352); flex: 1; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

[hidden] { display: none !important; } /* hidden 속성이 .fgrid 등 display 지정보다 우선 */
.hd-logout { margin: 0; }
.hd-links .mo { display: none; font-size: 18px; }
@media (max-width: 760px) { .hd-links .mo { display: inline; } }
/* 입력칸 + 버튼 한 줄 (이메일 [중복 확인] · 인증 코드 [확인]) */
.field > span.row { display: flex; gap: 8px; margin: 0; font-size: inherit; font-weight: 400; color: inherit; }
.field > span.row input { flex: 1 1 auto; min-width: 0; width: auto; }
.field > span.row input.short { letter-spacing: .15em; }
.field > span.row .btn { flex: 0 0 auto; height: 46px; padding: 0 16px; }
.field > span.row .btn.ok { background: var(--lake, #0e7c86); color: #fff; border-color: transparent; }
/* 테스트 버전 표시 (관리자 › 설정 › 사이트에서 끔) */
.testbar { background: #ffe9a8; color: #5a4300; font-size: 12px; font-weight: 600; text-align: center; padding: 5px 8px; }
/* ───────── 이벤트 목록: 이미지 상자 + 정보 상자 (상품 카드와 같은 모양) */
.ev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; margin-top: 18px; }
.evc { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.evc-img { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--lake-bg), #fff4d9); }
.evc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.evc-img i { font-style: normal; font-size: 46px; opacity: .85; }
.evc:hover .evc-img img { transform: scale(1.03); }
.evc-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: box-shadow .2s; }
.evc:hover .evc-body { box-shadow: 0 4px 14px rgba(21,35,59,.07); }
.evc-state { display: flex; gap: 6px; flex-wrap: wrap; }
.evc-title { font-size: 16px; line-height: 1.35; letter-spacing: -0.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.evc-date { color: var(--ink-3); font-size: 13px; }
.evc.is-ended .evc-img { filter: grayscale(.6); opacity: .8; }
.list-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 0 16px; margin-top: 16px; }
.list-box .list-row:last-child { border-bottom: 0; }
/* ───────── 이벤트 · 공지 상세 */
.post-wrap { max-width: 860px; }
.post-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; margin-bottom: 16px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.post-hero { display: block; width: 100%; max-height: 520px; object-fit: cover; }
.post-card .post-body { padding: 22px 24px 26px; }
@media (max-width: 760px) {
  .ev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .evc-title { font-size: 14px; }
  .post-card .post-body { padding: 16px; }
}
@media (max-width: 420px) { .ev-grid { grid-template-columns: 1fr; } }
