/*
 * ================================================================
 * 기본 디자인 변수
 * ================================================================
 * 실제 운영 색상은 site-config.js의 theme 값이 브라우저에서 덮어씁니다.
 * site-config.js가 로드되지 않을 때를 대비한 기본값입니다.
 */
:root {
  --bg: #fff8f2;
  --surface: #fffdf9;
  --surface-strong: #ffffff;
  --soft: #ffece1;
  --text: #30221d;
  --muted: #786860;
  --line: rgba(96, 65, 51, 0.14);
  --primary: #ed765f;
  --primary-dark: #ca5643;
  --green: #637f5a;
  --dark: #392821;
  --radius-xl: 36px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --shadow: 0 22px 70px rgba(85, 50, 35, 0.12);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  /* site-config.js > layout에서 덮어쓸 수 있는 빠른 크기 변수 */
  --feature-width-desktop: clamp(250px, 28vw, 340px);
  --side-width-desktop: clamp(128px, 14vw, 176px);
  --season-gap-desktop: 18px;
  --feature-width-tablet: min(48vw, 330px);
  --side-width-tablet: min(23vw, 160px);
  --feature-width-mobile: min(82vw, 318px);
  --side-width-mobile: 31vw;
  --season-gap-mobile: 10px;
  --desktop-hero-title-size: clamp(2.6rem, 4.2vw, 4rem);
  --tablet-hero-title-size: clamp(2.55rem, 7vw, 4rem);
  --mobile-hero-title-size: clamp(1.75rem, 8.3vw, 2.35rem);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 10px;
  color: white;
  background: var(--dark);
  transform: translateY(-160%);
  transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); }
img { display: block; max-width: 100%; }
.page-shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 248, 242, 0.98);
}
.header-inner {
  width: min(1160px, calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.12rem; font-weight: 900; letter-spacing: -.03em; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 14px; background: var(--soft); }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 25px; color: var(--muted); font-size: .92rem; font-weight: 750; }
.main-nav a { transition: color .2s ease; }
.main-nav a:hover { color: var(--primary-dark); }
.nav-store-link { padding: 10px 16px; border-radius: 999px; color: white !important; background: var(--dark); }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; padding: 11px; border: 0; border-radius: 14px; background: var(--dark); }
.menu-toggle span { display: block; height: 2px; margin: 4px 0; border-radius: 10px; background: white; transition: transform .2s ease, opacity .2s ease; }

.season-hero {
  overflow: hidden;
  padding: 42px 0 54px;
  background:
    radial-gradient(circle at 78% 8%, rgba(255, 195, 167, .5), transparent 28%),
    linear-gradient(180deg, #fff8f2 0%, #fff1e7 100%);
}
.season-status {
  display: grid;
  grid-template-columns: minmax(170px, .72fr) minmax(280px, 1.4fr) minmax(240px, .9fr);
  align-items: center;
  gap: 24px;
  margin-bottom: 52px;
  padding: 22px 26px;
  border: 1px solid rgba(231, 120, 95, .2);
  border-radius: 24px;
  background: rgba(255, 253, 249, .66);
  box-shadow: 0 14px 38px rgba(94, 57, 42, .07);
}
.status-date { display: flex; align-items: center; gap: 10px; color: var(--primary-dark); font-size: .82rem; font-weight: 900; letter-spacing: .04em; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 6px rgba(237, 118, 95, .14); animation: pulse 1.8s ease-in-out infinite; }
.season-status h1 { margin: 0; font-size: clamp(1.45rem, 3vw, 2.2rem); line-height: 1.1; letter-spacing: -.045em; }
.season-status p { margin: 0; color: var(--muted); font-size: .9rem; }

.hero-copy { display: grid; grid-template-columns: minmax(0, 1.34fr) minmax(270px, .66fr); gap: 48px; align-items: end; margin-bottom: 46px; }
.hero-copy .eyebrow { grid-column: 1 / -1; margin: 0 0 -48px; color: var(--primary-dark); font-size: .75rem; font-weight: 900; letter-spacing: .18em; }
.hero-copy h2 { max-width: 760px; margin: 0; font-size: var(--desktop-hero-title-size); line-height: 1.01; letter-spacing: -.055em; text-wrap: balance; }
.hero-copy > p:last-child { margin: 0 0 8px; color: var(--muted); font-size: 1.02rem; }

/*
 * ================================================================
 * 상단 제철 품종 레일
 * ================================================================
 * --feature-width : 중앙 메인 품종 묶음 너비
 * --side-width    : 좌우 이전/다음 품종 너비
 * --season-rail-gap: 품종 카드 사이 간격
 */
.season-stage { position: relative;
  --feature-width: var(--feature-width-desktop);
  --side-width: var(--side-width-desktop);
  --season-rail-gap: var(--season-gap-desktop);
  padding: 24px 28px 20px;
  border: 1px solid rgba(98, 66, 52, .12);
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 249, .56);
}
.stage-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.stage-head > div:first-child { display: grid; gap: 2px; }
.mini-label { color: var(--primary-dark); font-size: .72rem; font-weight: 900; letter-spacing: .16em; }
.mini-label.light { color: #ffd7ca; }
.stage-head strong { font-size: 1.35rem; letter-spacing: -.035em; }
.season-controls { display: flex; gap: 8px; }
.season-controls button { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; color: var(--text); background: rgba(255,255,255,.75); cursor: pointer; transition: transform .2s ease, background .2s ease; }
.season-controls button:hover { transform: translateY(-2px); background: white; }
.season-controls button:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.swipe-guide { display: none; }
.season-viewport { overflow-x: auto; overflow-y: hidden; touch-action: manipulation; margin: 0 -16px; padding: 32px 16px 38px; scroll-snap-type: x mandatory; scroll-behavior: auto; scrollbar-width: none; overscroll-behavior-x: contain; overscroll-behavior-y: auto; -webkit-overflow-scrolling: touch; }
.season-viewport::-webkit-scrollbar { display: none; }
.season-rail { display: flex; align-items: center; justify-content: center; gap: calc(var(--season-rail-gap) + 8px); min-width: max-content; margin: 0 auto; }
.season-item { width: var(--side-width); flex: 0 0 auto; scroll-snap-align: center; scroll-snap-stop: always; opacity: .42; transform: scale(.88); transition: opacity .3s ease, transform .3s ease; }
.season-item.is-selected { opacity: .72; transform: scale(.94); }
.season-feature-group { position: relative; width: var(--feature-width); flex: 0 0 auto; scroll-snap-align: center; scroll-snap-stop: always; padding: 14px; border: 1px solid rgba(237,118,95,.16); border-radius: 38px; background: rgba(255,255,255,.34); transition: box-shadow .25s ease, transform .25s ease; }
.season-feature-group.contains-selection { box-shadow: 0 22px 58px rgba(87,48,32,.13); }
.season-card { display: block; width: 100%; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.season-main-card.is-selected .season-photo,
.season-item.is-selected .season-photo,
.secondary-season-card.is-selected .secondary-photo { box-shadow: 0 25px 64px rgba(87, 48, 32, .22), 0 0 0 3px rgba(237,118,95,.35); }
.season-card:focus-visible, .secondary-season-card:focus-visible { outline: none; }
.season-card:focus-visible .season-photo,
.secondary-season-card:focus-visible .secondary-photo { box-shadow: 0 0 0 4px var(--surface-strong), 0 0 0 7px var(--primary); }
.season-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 28px;
  background: var(--peach-gradient, linear-gradient(145deg,#ffd7c9,#efa389));
  box-shadow: 0 16px 42px rgba(87, 48, 32, .13);
  transition: transform .25s ease, box-shadow .25s ease;
}
.season-main-photo { border-radius: 30px; }
.season-card:hover .season-photo { transform: translateY(-5px); }
.season-photo img, .secondary-photo img { width: 100%; height: 100%; object-fit: cover; }
.peach-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: clamp(5.2rem, 10vw, 8.5rem); filter: drop-shadow(0 18px 14px rgba(91, 46, 28, .18)); }
.season-side-item .peach-placeholder { font-size: clamp(3.3rem, 6vw, 5.4rem); }
.season-caption { min-height: 55px; display: grid; align-content: start; justify-items: center; gap: 4px; padding: 15px 6px 0; text-align: center; }
.season-caption strong { display: block; font-size: 1.05rem; letter-spacing: -.035em; }
.season-caption small { display: block; margin-top: 0; color: var(--muted); font-size: .72rem; }
.season-main-caption { min-height: 64px; padding-top: 17px; }
.season-main-caption strong { font-size: 1.35rem; }
.season-main-caption small { font-size: .8rem; }
.season-secondary { display: grid; grid-template-columns: repeat(var(--secondary-columns, 1), minmax(0, 1fr)); align-items: start; gap: 16px; margin-top: 10px; }
.season-secondary.secondary-count-1 { width: 34%; margin-left: auto; margin-right: auto; }
.season-secondary.secondary-count-2 { --secondary-columns: 2; }
.season-secondary.secondary-count-3 { --secondary-columns: 3; }
.secondary-season-card { position: relative; min-width: 0; min-height: 44px; display: grid; align-content: start; justify-items: stretch; padding: 0; border: 0; color: inherit; background: transparent; cursor: pointer; }
.secondary-photo { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 17px; background: var(--peach-gradient, linear-gradient(145deg,#ffd7c9,#efa389)); box-shadow: 0 10px 24px rgba(87,48,32,.1); transition: transform .22s ease, box-shadow .22s ease; }
.secondary-season-card:hover .secondary-photo { transform: translateY(-3px); }
.secondary-photo .peach-placeholder { font-size: clamp(2rem, 4.4vw, 3.6rem); }
.secondary-name { display: block; min-height: 18px; margin-top: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; font-size: .76rem; font-weight: 900; letter-spacing: -.025em; }
.season-role-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  color: var(--primary-dark);
  text-align: center;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .04em;
}
.season-role-main { margin: 0 0 9px; }
.season-role-secondary { margin: 18px 0 2px; padding-top: 15px; border-top: 1px solid rgba(98,66,52,.12); color: var(--muted); font-size: .64rem; }
.secondary-action-hint { display: block; min-height: 15px; margin-top: 4px; color: var(--muted); text-align: center; font-size: .58rem; font-weight: 800; }

/* 선택 직후에도 어떤 품종을 눌렀는지 카드 자체에서 확인할 수 있게 한 상태 라벨입니다. */
.season-selected-label {
  display: block;
  min-height: 18px;
  margin-top: 5px;
  color: var(--primary-dark);
  text-align: center;
  font-size: .7rem;
  font-weight: 950;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity .2s ease, transform .2s ease;
}
.season-card.is-selected .season-selected-label,
.season-item.is-selected .season-selected-label,
.secondary-season-card.is-selected .season-selected-label { opacity: 1; transform: translateY(0); }
.secondary-selected-label { min-height: 15px; margin-top: 2px; font-size: .62rem; }

/*
 * PC 품종 특성 오버레이
 * 사진 위에 직접 뜨며 모든 항목이 칸 구분 없는 연속형 막대 게이지를 사용합니다.
 * 당도·경도·향·과즙·산미는 채워지는 색상으로만 구분합니다.
 */
.quality-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 19px 17px 17px;
  color: white;
  background: linear-gradient(180deg, rgba(38,25,20,.04) 4%, rgba(38,25,20,.34) 38%, rgba(38,25,20,.92) 100%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(7px);
  transition: opacity .2s ease, transform .24s ease;
}
.quality-overlay-title { display: grid; gap: 1px; }
.quality-overlay-title strong { font-size: 1rem; letter-spacing: -.035em; }
.quality-overlay-title small { color: rgba(255,255,255,.7); font-size: .62rem; }
.quality-overlay-list { display: grid; gap: 9px; }
.quality-overlay-row {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) 25px;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.quality-metric-label { font-size: .66rem; font-weight: 900; }
.quality-overlay-row > b { color: rgba(255,255,255,.88); text-align: right; font-size: .62rem; font-variant-numeric: tabular-nums; }
.quality-unit-list { min-width: 0; }
.quality-meter {
  position: relative;
  display: block;
  width: 100%;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.12);
}
.quality-meter > i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--score-percent, 0%);
  border-radius: inherit;
  background: var(--metric-color, #ffffff);
  box-shadow: 0 0 10px color-mix(in srgb, var(--metric-color, #ffffff) 50%, transparent);
  transition: width .22s ease;
}


.season-card:hover .quality-overlay,
.season-card:focus-visible .quality-overlay,
.secondary-season-card:hover .quality-overlay,
.secondary-season-card:focus-visible .quality-overlay {
  opacity: 1;
  transform: translateY(0);
}
.season-card:hover .season-photo img,
.season-card:focus-visible .season-photo img,
.secondary-season-card:hover .secondary-photo img,
.secondary-season-card:focus-visible .secondary-photo img { transform: scale(1.035); }
.season-photo img,
.secondary-photo img { transition: transform .28s ease; }

/* 보조 품종 게이지는 다른 위치를 덮지 않고 자기 카드 사진 안에서만 표시합니다. */
.quality-overlay.is-compact {
  gap: 5px;
  padding: 9px 8px 8px;
  background: linear-gradient(180deg, rgba(38,25,20,.08) 0%, rgba(38,25,20,.9) 100%);
}
.quality-overlay.is-compact .quality-overlay-title { gap: 0; }
.quality-overlay.is-compact .quality-overlay-title strong { font-size: .72rem; }
.quality-overlay.is-compact .quality-overlay-title small { font-size: .5rem; }
.quality-overlay.is-compact .quality-overlay-list { gap: 3px; }
.quality-overlay.is-compact .quality-overlay-row { grid-template-columns: 22px minmax(0,1fr) 19px; gap: 4px; }
.quality-overlay.is-compact .quality-metric-label { font-size: .5rem; }
.quality-overlay.is-compact .quality-overlay-row > b { font-size: .48rem; }
.quality-overlay.is-compact .quality-meter { height: 5px; }

/* 클릭 결과를 놓치지 않도록 카드와 상세 패널을 짧게 반응시킵니다. */
.selection-feedback {
  position: absolute;
  z-index: 8;
  top: 73px;
  left: 50%;
  max-width: calc(100% - 40px);
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 999px;
  color: white;
  background: rgba(57,40,33,.9);
  box-shadow: 0 12px 30px rgba(48,28,20,.24);
  font-size: .76rem;
  font-weight: 900;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px) scale(.96);
}
.selection-feedback.is-visible { opacity: 1; transform: translate(-50%, 0) scale(1); }

.mobile-quality-panel, .selected-mobile-quality { display: none; }

.season-progress { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; color: var(--muted); font-size: .76rem; font-weight: 800; }
.progress-track { position: relative; height: 3px; border-radius: 99px; background: rgba(83, 53, 40, .14); }
.progress-track i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--primary); transition: width .35s ease; }
.progress-track b { position: absolute; top: 50%; left: 0; width: 13px; height: 13px; border: 3px solid var(--bg); border-radius: 50%; background: var(--primary); box-shadow: 0 3px 12px rgba(202,86,67,.35); transform: translate(-50%,-50%); transition: left .35s ease; }

.quick-trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-strong); }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-row span { padding: 18px 16px; border-right: 1px solid var(--line); color: var(--muted); text-align: center; font-size: .88rem; font-weight: 800; }
.trust-row span:last-child { border-right: 0; }

.section { padding: 100px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 38px; }
.section-heading h2 { margin: 6px 0 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.05; letter-spacing: -.055em; }
.section-heading > p { max-width: 440px; margin: 0; color: var(--muted); }
.section-heading.compact { margin-bottom: 28px; }
.product-detail-section { background: var(--surface); }
.selected-product { display: grid; grid-template-columns: minmax(280px, .86fr) minmax(340px, 1.14fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-xl); background: white; box-shadow: var(--shadow); }
.selected-media { min-height: 480px; background: var(--peach-gradient, linear-gradient(145deg,#ffd7c9,#efa389)); }
.selected-media img { width: 100%; height: 100%; object-fit: cover; }
.selected-media .peach-placeholder { min-height: 480px; }
.selected-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 6vw, 72px); }
.product-state { width: fit-content; margin-bottom: 18px; padding: 7px 11px; border-radius: 999px; color: var(--primary-dark); background: var(--soft); font-size: .75rem; font-weight: 900; }
.product-state.upcoming { color: #5d7555; background: #eaf1e7; }
.selected-copy h3 { margin: 0; font-size: clamp(2.3rem, 5vw, 4.5rem); line-height: .98; letter-spacing: -.06em; }
.selected-description { margin: 20px 0 24px; color: var(--muted); font-size: 1.03rem; }
.product-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product-facts div { padding: 17px 14px; border-right: 1px solid var(--line); }
.product-facts div:first-child { padding-left: 0; }
.product-facts div:last-child { border-right: 0; }
.product-facts dt { color: var(--muted); font-size: .75rem; }
.product-facts dd { margin: 3px 0 0; font-weight: 850; }
.selected-price-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.selected-price { font-size: 1.55rem; font-weight: 950; }
.button, .store-button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; font-weight: 900; transition: transform .2s ease, background .2s ease; }
.button:hover, .store-button:hover { transform: translateY(-2px); }
.store-button { color: white; background: var(--primary); }
.store-button:hover { background: var(--primary-dark); }
.store-button.disabled { pointer-events: none; color: #9c8e87; background: #eee8e4; }
.payment-note { margin: 12px 0 0; color: var(--muted); font-size: .78rem; text-align: right; }

.product-list-section { background: #fff5ed; }
.product-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: 0 10px 34px rgba(83, 49, 34, .06); }
.product-card-media { aspect-ratio: 1 / 1; overflow: hidden; background: var(--peach-gradient, linear-gradient(145deg,#ffd7c9,#efa389)); }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; }
.product-card-media .peach-placeholder { font-size: 5.4rem; }
.product-card-body { padding: 22px; }
.product-card-top { display: flex; justify-content: space-between; gap: 12px; }
.product-card h3 { margin: 0; font-size: 1.18rem; letter-spacing: -.03em; }
.product-card-state { flex: 0 0 auto; color: var(--primary-dark); font-size: .74rem; font-weight: 900; }
.product-card p { min-height: 50px; margin: 10px 0 18px; color: var(--muted); font-size: .88rem; }
.product-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-card-price { font-weight: 950; }
.card-action { padding: 9px 13px; border: 0; border-radius: 999px; color: white; background: var(--dark); font-size: .8rem; font-weight: 850; cursor: pointer; }

.story-section { background: var(--surface); }
.story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; }
.story-grid h2, .contact-grid h2 { margin: 10px 0 0; font-size: clamp(2.3rem, 5vw, 4.5rem); line-height: 1; letter-spacing: -.06em; }
.story-copy { color: var(--muted); font-size: 1.03rem; }
.story-copy p { margin: 0 0 18px; }
.shipping-section { background: #fff5ed; }
.guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.guide-grid article { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; }
.guide-grid article > span { color: var(--primary); font-size: .78rem; font-weight: 950; }
.guide-grid h3 { margin: 14px 0 8px; }
.guide-grid p { margin: 0; color: var(--muted); font-size: .88rem; }
.notice-box { display: grid; grid-template-columns: 180px 1fr; gap: 28px; margin-top: 18px; padding: 24px 28px; border-radius: var(--radius-md); color: #f8e7df; background: var(--dark); }
.notice-box p { margin: 0; font-size: .88rem; }

.contact-section { padding: 96px 0; color: white; background: #4c352c; }
.contact-grid { display: grid; grid-template-columns: 1fr .8fr; align-items: center; gap: 70px; }
.contact-grid p { color: #d9c6bc; }
.contact-card { padding: 30px; border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius-lg); background: rgba(255,255,255,.07); }
.contact-card > div:not(.contact-actions) { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.13); }
.contact-card span { color: #d9c6bc; font-size: .85rem; }
.contact-actions { display: flex; gap: 10px; margin-top: 22px; }
.button.secondary { flex: 1; color: white; border-color: rgba(255,255,255,.25); background: transparent; }
.light-button { flex: 1; color: var(--dark); background: white; }

.site-footer { padding: 50px 0 28px; color: var(--muted); background: #2f211c; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 50px; }
.footer-brand { color: white; margin-bottom: 18px; }
.footer-grid p { margin: 5px 0; font-size: .8rem; }
.footer-links { display: flex; gap: 18px; color: #c9b8ae; font-size: .84rem; }
.copyright { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .78rem; }
.mobile-buy-bar { display: none; }
.noscript-notice { position: fixed; inset: auto 16px 16px; z-index: 100; padding: 14px 18px; border-radius: 14px; color: white; background: var(--dark); box-shadow: var(--shadow); text-align: center; }

.tone-mihwang { --peach-gradient: linear-gradient(145deg, #ffe8a8 0%, #f2ae62 100%); }
.tone-sunfre { --peach-gradient: linear-gradient(145deg, #ffd5d0 0%, #ec8a80 100%); }
.tone-cheonhong { --peach-gradient: linear-gradient(145deg, #ffc9bc 0%, #e66e62 100%); }
.tone-baekdo { --peach-gradient: linear-gradient(145deg, #fff0db 0%, #f5bda8 100%); }
.tone-hwangdo { --peach-gradient: linear-gradient(145deg, #ffdf8e 0%, #ee9a4b 100%); }
.tone-jangho { --peach-gradient: linear-gradient(145deg, #ffc779 0%, #dc7848 100%); }

@keyframes selection-feedback-in {
  0% { opacity: 0; transform: translate(-50%, -8px) scale(.96); }
  12%, 72% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -5px) scale(.98); }
}
@keyframes season-card-confirm {
  0% { transform: translateY(0) scale(1); }
  42% { transform: translateY(-7px) scale(1.025); filter: saturate(1.12); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes selected-product-confirm {
  0% { box-shadow: var(--shadow); }
  38% { box-shadow: 0 0 0 4px rgba(237,118,95,.22), 0 24px 68px rgba(87,48,32,.16); }
  100% { box-shadow: var(--shadow); }
}

/* 초기 렌더링 최적화: 화면 밖 섹션은 접근할 때 렌더링합니다. */
.product-list-section,
.story-section,
.shipping-section,
.contact-section,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 760px;
}
.product-card,
.guide-grid article,
.selected-product { contain: layout paint style; }
.season-photo,
.secondary-photo { contain: layout paint; }

@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.75); opacity: .62; } }

/*
 * ================================================================
 * 태블릿 및 모바일 공통 레이아웃
 * ================================================================
 */
@media (max-width: 920px) {
  body { padding-bottom: calc(82px + var(--safe-bottom)); }
  .site-header, .mobile-buy-bar { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .peach-placeholder { filter: none; }
  .selection-feedback { display: none; }
  .mobile-quality-panel,
  .selected-mobile-quality {
    display: block;
    margin: 0 0 16px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,.72);
  }
  .mobile-quality-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
  .mobile-quality-head > div { display: grid; gap: 1px; }
  .mobile-quality-head small { color: var(--primary-dark); font-size: .62rem; font-weight: 900; letter-spacing: .12em; }
  .mobile-quality-head strong { font-size: 1rem; letter-spacing: -.035em; }
  .mobile-quality-head > span { color: var(--muted); font-size: .68rem; font-weight: 800; }
  .mobile-quality-grid { display: grid; gap: 8px; }
  .mobile-quality-row { display: grid; grid-template-columns: 36px 1fr 25px; align-items: center; gap: 8px; }
  .mobile-quality-row > span:first-child { font-size: .72rem; font-weight: 900; }
  .mobile-quality-row > b { color: var(--muted); text-align: right; font-size: .68rem; font-variant-numeric: tabular-nums; }
  .mobile-quality-row .quality-meter {
    height: 9px;
    background: rgba(68,45,35,.12);
    box-shadow: inset 0 1px 2px rgba(68,45,35,.08);
  }
  .selected-mobile-quality { margin: 20px 0 6px; background: var(--surface); }
  .page-shell, .header-inner { width: min(100% - 32px, 760px); }
  .header-inner { min-height: 66px; }
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 66px 0 auto 0;
    z-index: 49;
    margin: 0;
    padding: 16px 18px 22px;
    display: grid;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    background: rgba(255,248,242,.98);
    box-shadow: 0 20px 40px rgba(55,36,28,.12);
    transform: translateY(-125%);
    opacity: 0;
    visibility: hidden;
    transition: transform .25s ease, opacity .25s ease, visibility .25s;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .main-nav a { min-height: 48px; display: flex; align-items: center; padding: 0 10px; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { justify-content: center; margin-top: 8px; border: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .season-status { grid-template-columns: 1fr 1.3fr; }
  .season-status p { grid-column: 1 / -1; }
  .hero-copy { grid-template-columns: 1fr; gap: 20px; }
  .hero-copy .eyebrow { margin: 0 0 -8px; }
  .hero-copy h2 { max-width: 700px; font-size: var(--tablet-hero-title-size); line-height: 1.02; }
  .season-rail { justify-content: flex-start; margin: 0; }
  .season-stage { --feature-width: var(--feature-width-tablet); --side-width: var(--side-width-tablet); }
  .season-item { min-width: 144px; }
  .selected-product { grid-template-columns: 1fr; }
  .selected-media, .selected-media .peach-placeholder { min-height: 390px; }
  .product-list { grid-template-columns: repeat(2, 1fr); }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid, .contact-grid { grid-template-columns: 1fr; gap: 38px; }
  .mobile-buy-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + var(--safe-bottom));
    z-index: 60;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 9px 9px 17px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 20px;
    color: white;
    background: rgba(51,35,29,.94);
    box-shadow: 0 14px 40px rgba(48,28,20,.28);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(calc(100% + 24px));
    transition: opacity .24s ease, transform .24s ease, visibility .24s ease;
  }
  .mobile-buy-bar.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .mobile-buy-info { min-width: 0; display: grid; }
  .mobile-buy-info small { color: #ddcbc2; font-size: .68rem; }
  .mobile-buy-info strong { max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
  .mobile-buy-bar a { min-height: 46px; display: inline-flex; align-items: center; padding: 0 17px; border-radius: 14px; color: white; background: var(--primary); font-size: .82rem; font-weight: 900; }
  .mobile-buy-bar a.disabled { pointer-events: none; color: #afa19b; background: #65554e; }
}

/*
 * ================================================================
 * 휴대폰 전용 레이아웃
 * ================================================================
 * 모바일 카드/텍스트 크기를 소폭 바꾸고 싶다면 주로 이 구간을 수정합니다.
 */
@media (max-width: 640px) {
  .page-shell, .header-inner { width: calc(100% - 28px); }
  .brand { font-size: 1rem; }
  .brand-mark { width: 35px; height: 35px; }
  .season-hero { padding: 12px 0 30px; }
  .season-hero .page-shell { display: flex; flex-direction: column; }
  .season-status { order: 1; grid-template-columns: auto 1fr; gap: 5px 12px; margin-bottom: 12px; padding: 12px 14px; border-radius: 17px; box-shadow: 0 8px 24px rgba(94,57,42,.05); }
  .status-date { font-size: .72rem; }
  .live-dot { width: 7px; height: 7px; box-shadow: 0 0 0 4px rgba(237,118,95,.13); }
  .season-status h1 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.08rem; text-align: right; }
  .season-status p { grid-column: 1 / -1; display: none; }
  .season-stage { order: 2; --feature-width: var(--feature-width-mobile); --side-width: var(--side-width-mobile); --season-rail-gap: var(--season-gap-mobile); margin: 0 -4px; padding: 15px 14px 14px; border-radius: 27px; }
  .hero-copy { order: 3; display: grid; gap: 9px; margin: 20px 2px 0; padding: 0 4px; }
  .hero-copy .eyebrow { display: none; }
  .hero-copy h2 { font-size: var(--mobile-hero-title-size); line-height: 1.04; }
  .hero-copy h2 br { display: none; }
  .hero-copy > p:last-child { margin: 0; font-size: .82rem; line-height: 1.55; }
  .stage-head strong { font-size: 1.2rem; }
  .season-controls button { width: 42px; height: 42px; }
  .swipe-guide { display: flex; justify-content: center; gap: 6px; margin: 10px 0 -8px; color: var(--muted); font-size: .68rem; font-weight: 750; }
  .season-viewport { margin: 0 -14px; padding: 20px 14px 22px; scroll-padding-inline: 50%; touch-action: manipulation; }
  .season-rail { gap: var(--season-rail-gap); padding-inline: 8vw; }
  .season-item { min-width: 112px; opacity: .28; transform: scale(.82); }
  .season-feature-group { padding: 11px; border-radius: 30px; }
  .season-main-photo { border-radius: 24px; }
  .season-main-caption { min-height: 58px; padding-top: 13px; }
  .season-main-caption strong { font-size: 1.18rem; }
  .season-secondary { gap: 11px; margin-top: 9px; }
  .secondary-photo { border-radius: 14px; }
  .secondary-name { min-height: 17px; margin-top: 7px; font-size: .68rem; }
  .season-role-main { margin-bottom: 7px; font-size: .62rem; }
  .season-role-secondary { margin-top: 14px; padding-top: 12px; font-size: .56rem; }
  .secondary-action-hint { display: none; }
  .secondary-photo .peach-placeholder { font-size: clamp(1.8rem, 11vw, 3rem); }
  .season-caption { min-height: 50px; padding-top: 11px; }
  .season-caption strong { font-size: .92rem; }
  .season-caption small { font-size: .66rem; }
  .section { padding: 72px 0; }
  .section-heading { display: block; margin-bottom: 26px; }
  .section-heading h2 { font-size: 2.35rem; }
  .section-heading > p { margin-top: 12px; font-size: .88rem; }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .trust-row span { padding: 14px 8px; border-bottom: 1px solid var(--line); font-size: .76rem; }
  .trust-row span:nth-child(2) { border-right: 0; }
  .trust-row span:nth-child(n+3) { border-bottom: 0; }
  .selected-product { border-radius: 26px; }
  .selected-media, .selected-media .peach-placeholder { min-height: 330px; }
  .selected-copy { padding: 29px 23px 26px; }
  .selected-copy h3 { font-size: 2.7rem; }
  .selected-description { font-size: .93rem; }
  .product-facts { grid-template-columns: 1fr; }
  .product-facts div, .product-facts div:first-child { display: flex; justify-content: space-between; padding: 11px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .product-facts div:last-child { border-bottom: 0; }
  .selected-price-row { align-items: stretch; flex-direction: column; }
  .store-button { width: 100%; }
  .payment-note { text-align: left; }
  .product-list { grid-template-columns: 1fr; gap: 15px; }
  .product-card { display: grid; grid-template-columns: 116px 1fr; border-radius: 20px; }
  .product-card-media { aspect-ratio: auto; min-height: 100%; }
  .product-card-media .peach-placeholder { font-size: 3.7rem; }
  .product-card-body { padding: 17px; }
  .product-card p { min-height: 0; margin: 7px 0 14px; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .story-grid h2, .contact-grid h2 { font-size: 3rem; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-grid article { padding: 23px; }
  .notice-box { grid-template-columns: 1fr; gap: 8px; padding: 22px; }
  .contact-section { padding: 72px 0; }
  .contact-card { padding: 22px; }
  .contact-card > div:not(.contact-actions) { grid-template-columns: 82px 1fr; }
  .contact-actions { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-links { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* 터치 기기에서 hover 상태가 붙어 카드가 어색하게 남는 현상을 방지합니다. */
@media (hover: none) {
  .quality-overlay { display: none; }
  .season-card:hover .season-photo,
  .secondary-season-card:hover .secondary-photo,
  .season-controls button:hover { transform: none; }
}

@media (prefers-reduced-data: reduce) {
  .live-dot { animation: none; }
  .season-photo, .secondary-photo, .product-card-media { box-shadow: none; }
}

/* ================================================================
   자체 주문/스마트스토어 구매 버튼 전환
   site-config.js의 order.mode에 따라 script.js가 버튼을 생성합니다.
   ================================================================ */
.purchase-actions { display: flex; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.self-order-button { background: var(--dark); }
.self-order-button:hover { background: #241914; }
.secondary-store-button { color: var(--primary-dark); border-color: rgba(202,86,67,.28); background: #fff4ee; }
.secondary-store-button:hover { color: white; background: var(--primary-dark); }
@media (max-width: 640px) {
  .purchase-actions { width: 100%; display: grid; }
  .purchase-actions .store-button { width: 100%; }
}
