/* 추석 수산물 선물세트 — 공통 스타일
   모바일에서 사는 사람이 대부분이라 모바일 기준으로 짜고 넓은 화면에서 펼친다. */

:root {
  --navy: #12324f;
  --navy-2: #1d4a70;
  --sea: #2c7a9c;
  --gold: #a9812f;
  --gold-soft: #d8b25e;
  --ink: #1a1a1a;
  --gray: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f7f8f9;
  --red: #d64545;
  --radius: 12px;
  --max: 1120px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

/* Pretendard — 한국어 커머스에서 가장 널리 쓰는 본문 서체.
   동적 서브셋이라 한글 전체를 받지 않고 쓰는 글자만 내려받는다. */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

body {
  margin: 0;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
    'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-feature-settings: 'tnum' 1;   /* 숫자 폭을 고정해 가격이 흔들리지 않게 */
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ── 긴급공지 ───────────────────────────────
   명절 장사는 마감일이 전부다. 배송 마감이 임박했다는 사실을
   손님이 어느 페이지에 있든 보게 만든다. */
.notice-bar {
  background: var(--navy);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.notice-bar.urgent { background: #b3352f; }
.notice-bar-in {
  max-width: var(--max); margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  text-align: center; line-height: 1.5;
}
.notice-bar .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold-soft);
  flex: none; animation: blink 1.6s ease-in-out infinite;
}
.notice-bar.urgent .dot { background: #ffd9a0; }
.notice-bar a { text-decoration: underline; text-underline-offset: 3px; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ── 공지 팝업 ─────────────────────────────
   배송 마감처럼 놓치면 손님이 손해를 보는 내용에만 쓴다.
   광고를 팝업으로 띄우면 다음부터 아무도 안 읽는다. */
.pop-dim {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 23, 32, .55);
  display: grid; place-items: center; padding: 20px;
  animation: fadein .18s ease;
}
.pop {
  width: 100%; max-width: 380px; background: #fff;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
  animation: popup .22s cubic-bezier(.2, .9, .3, 1.1);
}
.pop-head { background: var(--navy); color: #fff; padding: 20px 22px 18px; }
.pop-head.urgent { background: #b3352f; }
.pop-head .eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em;
  color: var(--gold-soft); margin-bottom: 7px;
}
.pop-head h3 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.4; }
.pop-body { padding: 20px 22px; font-size: 14.5px; line-height: 1.75; color: #333; white-space: pre-wrap; }
.pop-actions { display: flex; border-top: 1px solid var(--line); }
.pop-actions button, .pop-actions a {
  flex: 1; padding: 15px 10px; border: 0; background: #fff;
  font-size: 14.5px; font-weight: 700; text-align: center; color: var(--gray);
}
.pop-actions .primary { background: var(--navy); color: #fff; }
.pop-actions .primary:hover { filter: brightness(1.15); }
.pop-today {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px; background: var(--bg-soft); font-size: 13px; color: var(--gray); cursor: pointer;
}
.pop-today input { width: 15px; height: 15px; accent-color: var(--navy); }
@keyframes fadein { from { opacity: 0; } }
@keyframes popup { from { opacity: 0; transform: translateY(14px) scale(.97); } }

/* ── 헤더 ───────────────────────────────── */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.hdr-in {
  max-width: var(--max); margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.logo { font-size: 18px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.logo small { display: block; font-size: 11px; font-weight: 500; color: var(--gold); letter-spacing: 0.08em; }
.hdr-nav { display: flex; align-items: center; gap: 4px; }
.hdr-nav a {
  padding: 8px 10px; font-size: 14px; color: var(--gray); border-radius: 8px;
}
.hdr-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.cart-btn { position: relative; font-weight: 600; color: var(--navy) !important; }
.cart-count {
  position: absolute; top: 0; right: 0;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 9px; display: grid; place-items: center;
}
.cart-count:empty, .cart-count[data-n='0'] { display: none; }

/* ── 히어로 ───────────────────────────────
   선물세트는 사진이 주인공이다. 그라디언트 위 텍스트만으로는
   무엇을 파는 곳인지 3초 안에 전달되지 않는다. */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, var(--sea) 100%);
  color: #fff; padding: 48px 16px 56px; text-align: center;
}
.hero-in { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; }
.hero-photo {
  margin: 26px auto 0; max-width: 400px;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .32);
  background: rgba(255, 255, 255, .06);
}
.hero-photo img { width: 100%; display: block; }
.hero h1 { margin: 0 0 12px; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; }
.hero p { margin: 0 auto; max-width: 34em; font-size: 15px; color: rgba(255, 255, 255, 0.82); }
.hero-facts {
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 20px;
}
.hero-facts span {
  font-size: 12.5px; font-weight: 600; padding: 6px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .16);
}

@media (min-width: 860px) {
  .hero-in { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: center; text-align: left; }
  .hero-photo { margin: 0; max-width: none; }
  .hero p { margin: 0; }
  .hero-facts { justify-content: flex-start; }
  .hero .dday { margin-top: 22px; }
}
.hero .eyebrow {
  display: inline-block; margin-bottom: 14px; padding: 5px 14px;
  border: 1px solid var(--gold-soft); border-radius: 999px;
  font-size: 12px; letter-spacing: 0.1em; color: var(--gold-soft); font-weight: 600;
}
.dday {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); font-size: 14px; font-weight: 600;
}

/* ── 신뢰 배지 ───────────────────────────────
   HACCP·산지직송 같은 근거가 이미지 안에만 있으면 스크롤하기 전엔 안 보인다.
   선물은 신뢰가 곧 구매 이유라서 위로 끌어올린다. */
.trust {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.trust div {
  background: #fff; padding: 15px 12px; text-align: center;
}
.trust b {
  display: block; font-size: 14px; font-weight: 800; color: var(--navy);
  letter-spacing: -0.02em; margin-bottom: 3px;
}
.trust span { font-size: 11.5px; color: var(--gray); line-height: 1.45; }

/* ── 옵션 비교표 ─────────────────────────────
   이 상품은 '마리당 중량'이 곧 등급이다. 드롭다운에 묻어두면
   손님이 비교를 못 하고, 비교 없이 고른 선택은 반품으로 돌아온다. */
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.cmp th, .cmp td { padding: 13px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.cmp th { background: var(--bg-soft); font-size: 12.5px; font-weight: 700; color: var(--gray); white-space: nowrap; }
.cmp td:first-child, .cmp th:first-child { text-align: left; }
.cmp .grade { font-weight: 800; color: var(--navy); font-size: 15px; letter-spacing: -0.02em; }
.cmp .per { font-weight: 800; color: var(--sea); }
.cmp .won { font-weight: 800; }
.cmp tr.on td { background: #f4f7fa; }
.cmp tr.on td:first-child { box-shadow: inset 3px 0 0 var(--navy); }
.cmp tbody tr { cursor: pointer; transition: background .12s; }
.cmp tbody tr:hover td { background: var(--bg-soft); }
.cmp .pick {
  font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 5px;
  background: var(--navy); color: #fff; white-space: nowrap;
}
.cmp tr:not(.on) .pick { background: #eef0f2; color: var(--gray); }

/* ── 스토리 섹션 ─────────────────────────────
   상세페이지에서 '왜 이 값인가'를 설명하는 자리.
   효능이 아니라 공급 구조와 공정으로 설명한다. */
.story { max-width: 760px; margin: 0 auto 34px; }
.st-block { padding: 34px 0; border-bottom: 1px solid var(--line); }
.st-block:first-child { padding-top: 6px; }
.st-eyebrow {
  display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .13em;
  color: var(--sea); margin-bottom: 10px;
}
.st-eyebrow.gold { color: var(--gold-soft); }
.story h2 {
  margin: 0 0 16px; font-size: 24px; font-weight: 800;
  letter-spacing: -0.035em; line-height: 1.38; color: var(--ink);
}
.story p { font-size: 16px; line-height: 1.9; color: #383838; margin: 0 0 15px; }
.story b { color: var(--ink); font-weight: 700; }

.st-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 10px; margin-top: 22px;
}
.st-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 17px 16px; background: #fff;
}
.st-card-k { font-size: 11.5px; font-weight: 700; color: var(--gray); letter-spacing: .06em; }
.st-card-v {
  font-size: 21px; font-weight: 800; color: var(--navy);
  letter-spacing: -0.03em; margin: 3px 0 8px;
}
.st-card p { font-size: 13px; line-height: 1.65; color: var(--gray); margin: 0; }

.st-note {
  margin-top: 20px; padding: 15px 17px; border-radius: 10px;
  background: var(--bg-soft); border-left: 3px solid var(--navy);
  font-size: 13.5px; line-height: 1.75; color: #4b5563;
}

.st-compare { display: grid; gap: 12px; margin: 22px 0 16px; }
.st-col { border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: #fff; }
.st-col.dim { background: var(--bg-soft); }
.st-col-h {
  font-size: 15px; font-weight: 800; color: var(--navy);
  letter-spacing: -0.02em; margin-bottom: 11px;
}
.st-col.dim .st-col-h { color: var(--gray); }
.st-col ul { margin: 0; padding-left: 17px; }
.st-col li { font-size: 14.5px; line-height: 1.75; margin-bottom: 9px; color: #444; }
.st-col li:last-child { margin-bottom: 0; }
.st-fine { font-size: 14.5px !important; color: var(--gray) !important; }

.st-letter {
  margin-top: 34px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
}
.st-letter-in { padding: 34px 28px 30px; }
.st-letter h2 { color: #fff; }
.st-letter p { color: rgba(255, 255, 255, .86); font-size: 15.5px; }
.st-letter b { color: #fff; }
.st-sign {
  margin-top: 26px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .16); text-align: right;
}
.st-sign span { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .6); margin-bottom: 4px; }
.st-sign b { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }

@media (min-width: 700px) {
  .story h2 { font-size: 27px; }
  .st-compare { grid-template-columns: 1fr 1fr; }
  .st-letter-in { padding: 42px 40px 36px; }
}

/* ── 섹션 ───────────────────────────────── */
.sec { padding: 44px 0; }
.sec-head { margin-bottom: 22px; }
.sec-head h2 { margin: 0 0 6px; font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.sec-head p { margin: 0; font-size: 14px; color: var(--gray); }

/* ── 상품 카드 ──────────────────────────── */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #fff; transition: box-shadow .18s, transform .18s;
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-img { aspect-ratio: 4 / 3; background: var(--bg-soft); position: relative; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .noimg {
  width: 100%; height: 100%; display: grid; place-items: center;
  color: #b6bcc4; font-size: 13px; background: repeating-linear-gradient(45deg, #f3f4f6, #f3f4f6 10px, #eef0f2 10px, #eef0f2 20px);
}
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.card .sub { font-size: 13px; color: var(--gray); }
.card .meta { margin-top: auto; font-size: 12px; color: var(--gray); }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.price { font-size: 18px; font-weight: 800; color: var(--navy); }
.price-old { font-size: 13px; color: #9ca3af; text-decoration: line-through; }

.badges { display: flex; flex-wrap: wrap; gap: 5px; }
.badge {
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 5px;
  background: #eef4f8; color: var(--sea);
}
.badge.gold { background: #fbf4e4; color: var(--gold); }
.badge.soldout { background: #f3f4f6; color: #9ca3af; }

/* ── 버튼 ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 13px 20px; border: 1px solid transparent; border-radius: 10px;
  font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
  transition: filter .15s, background .15s;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover:not(:disabled) { filter: brightness(1.15); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover:not(:disabled) { filter: brightness(1.08); }
.btn-line { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-line:hover:not(:disabled) { background: var(--bg-soft); }
.btn-ghost { background: var(--bg-soft); color: var(--ink); border-color: var(--line); }
.btn-sm { padding: 8px 13px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }

/* ── 폼 ─────────────────────────────────── */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field label .req { color: var(--red); margin-left: 2px; }
input[type='text'], input[type='tel'], input[type='email'], input[type='password'],
input[type='date'], input[type='number'], select, textarea {
  width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 9px;
  font: inherit; font-size: 15px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(44, 122, 156, 0.12);
}
textarea { resize: vertical; min-height: 72px; }
.hint { font-size: 12px; color: var(--gray); margin-top: 5px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row-addr { display: grid; grid-template-columns: 1fr auto; gap: 8px; }

/* ── 표 / 목록 ──────────────────────────── */
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; }
th { background: var(--bg-soft); font-weight: 700; font-size: 13px; white-space: nowrap; }
td.num, th.num { text-align: right; }

/* ── 박스 ───────────────────────────────── */
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; }
.box + .box { margin-top: 14px; }
.box h3 { margin: 0 0 12px; font-size: 16px; font-weight: 800; }
.box-soft { background: var(--bg-soft); border-color: transparent; }

.notice {
  padding: 13px 15px; border-radius: 10px; font-size: 13.5px; line-height: 1.65;
  background: #fff8ea; border: 1px solid #f0e0bd; color: #7a5c14;
}
.notice.warn { background: #fdeeee; border-color: #f3cdcd; color: #8c2f2f; }
.notice.info { background: #eef4f8; border-color: #cfe0ea; color: #1d4a70; }

/* ── 법정 표시사항 (수산물) ─────────────── */
.legal-tbl th { width: 34%; background: var(--bg-soft); font-weight: 600; color: var(--gray); }
.legal-tbl td { font-weight: 500; }

/* ── 하단 고정 결제바 ───────────────────── */
.sticky-bar {
  position: sticky; bottom: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--line);
  padding: 12px 16px; backdrop-filter: blur(8px);
}
.sticky-in {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
}
.sticky-in .total { flex: 1; font-size: 14px; }
.sticky-in .total b { display: block; font-size: 20px; color: var(--navy); }

/* ── 푸터 ───────────────────────────────── */
.ftr {
  margin-top: 56px; padding: 32px 0 44px;
  border-top: 1px solid var(--line); background: var(--bg-soft);
  font-size: 12.5px; color: var(--gray); line-height: 1.8;
}
.ftr-links { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; font-weight: 600; color: var(--ink); }
.ftr dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; margin: 0; }
.ftr dt { color: #9ca3af; }
.ftr dd { margin: 0; }
.ftr .copy { margin-top: 16px; color: #9ca3af; }

/* ── 상태 뱃지 ──────────────────────────── */
.st { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 6px; white-space: nowrap; }
.st-pending { background: #f3f4f6; color: #6b7280; }
.st-paid { background: #e6f2ea; color: #1f7a45; }
.st-preparing { background: #eef4f8; color: #1d4a70; }
.st-shipped { background: #e8f0fb; color: #2657a8; }
.st-delivered { background: #eaf3ea; color: #3d7a3d; }
.st-cancelled, .st-refunded { background: #fdeeee; color: #a33; }

/* ── 로딩 / 빈 상태 ─────────────────────── */
.empty { padding: 56px 16px; text-align: center; color: var(--gray); font-size: 14.5px; }
.spin {
  width: 22px; height: 22px; margin: 40px auto;
  border: 2.5px solid var(--line); border-top-color: var(--navy);
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 로그인 버튼 ────────────────────────── */
.sns { display: grid; gap: 8px; }
.sns button {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px; border-radius: 9px; border: none; font-weight: 700; font-size: 14.5px;
}
.sns .kakao { background: #fee500; color: #191600; }
.sns .naver { background: #03c75a; color: #fff; }

@media (min-width: 720px) {
  .hero { padding: 72px 16px 80px; }
  .hero h1 { font-size: 40px; }
  .sec { padding: 60px 0; }
  .sec-head h2 { font-size: 25px; }
}

@media print {
  .hdr, .sticky-bar, .ftr, .no-print { display: none !important; }
}
