@charset "utf-8";
/**
 * ==============================================================================
 * KHI FMD 디자인 덮어쓰기  [2026-10-16 신설]
 * ==============================================================================
 * 원본 CSS(custom.css 9천줄 / shop.css 1만4천줄)는 손대지 않고,
 * 이 파일 하나를 shop.css **바로 뒤**에 실어서 KHI FMD 톤을 입힙니다.
 * (layout/header.php 에서 로드, ?v=filemtime 캐시 버스터 포함)
 * 문제가 생기면 header.php 의 이 파일 <link> 한 줄만 빼면 원래대로 돌아갑니다.
 *
 * 디자인 방향
 *   - "건강 + 행운" 프리미엄 톤 : 아이보리 바탕 · 네이비 글자 · 골드 포인트
 *   - 네이비/골드는 기존 스킨 변수(--primary-color #04183F / --accent-color #B9822C)를
 *     그대로 이어받습니다. 색을 바꾸려면 아래 :root 의 --kf-* 만 고치면 됩니다.
 *   - 버튼은 3종류로만 씁니다
 *       .kf-btn-cta   골드  : 구매하기 · 응모하기 · 구매확정 (가장 중요한 행동)
 *       .kf-btn-ghost 테두리 : 회원가입 · 로그인 · 목록 등 보조 행동
 *       (네이비 기본 버튼은 기존 스킨 .btn-default 를 그대로 씁니다)
 *   - 한글 글꼴 : Noto Sans KR (본문) / Noto Serif KR (큰 제목)
 *
 * 목차
 *   01. 변수(토큰)
 *   02. 공통 (버튼 · 섹션 머리말)
 *   03. 메인 - 히어로
 *   04. 메인 - 제품 라인업
 *   05. 메인 - 응모권 안내 밴드
 *   06. 메인 - 혜택 3칸
 *   07. 메인 - 이용 방법
 *   08. 메인 - 가입 안내
 *   09. 반응형
 */

/************************************/
/*** 	   01. 변수(토큰)		  ***/
/************************************/
:root{
	--kf-navy			: var(--primary-color, #04183F);	/* 제목 · 기본 버튼 · 다크 밴드 */
	--kf-navy-2			: #16234A;							/* 밴드 그라데이션 끝색 */
	--kf-gold			: var(--accent-color, #B9822C);		/* CTA 버튼 · 강조 */
	--kf-gold-dark		: #9A6B1F;							/* CTA hover */
	--kf-gold-soft		: #F4ECDB;							/* 골드 연한 바탕 (배지 · 칩) */
	--kf-gold-text		: #A8741E;							/* 흰 바탕 위 골드 글자 (대비 확보) */

	/**
	 * CTA 버튼(구매하기 · 제품 보러가기 · 회원가입 등) 전용 황금색  [2026-10-16 운영자 요청]
	 * 참고 화면의 숫자 색(#F8B030)에 맞춰 더 밝은 황금색으로 바꿨습니다.
	 * 이 색 위에 흰 글씨는 잘 안 읽혀(대비 약 1.9:1) 글씨는 네이비로 씁니다.
	 * 예전 버튼색으로 되돌리려면 아래 세 줄을 var(--kf-gold) / var(--kf-gold-dark) / #FFFFFF 로 바꾸면 됩니다.
	 */
	--kf-cta			: #F6B030;							/* 버튼 바탕 */
	--kf-cta-hover		: #E39E1C;							/* 버튼 hover (조금 더 진하게) */
	--kf-cta-ink		: #04183F;							/* 버튼 글씨 (네이비) */
	--kf-red			: #B4232A;							/* 당첨금 · 금액 강조 */
	--kf-bg				: #FBFAF7;							/* 아이보리 페이지 바탕 */
	--kf-soft			: #F3F1EB;							/* 섹션 구분 바탕 */
	--kf-surface		: #FFFFFF;							/* 카드 */
	--kf-line			: #E3DFD4;							/* 테두리 */
	--kf-text			: #1B2233;							/* 본문 */
	--kf-muted			: #5E6577;							/* 보조 글자 */
	--kf-radius			: 14px;
	--kf-radius-btn		: 10px;
	--kf-shadow			: 0 10px 30px rgba(4, 24, 63, .08);
	--kf-serif			: "Noto Serif KR", "Nanum Myeongjo", serif;
	--kf-sans			: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

	/**
	 * 사이트 전체 글꼴
	 * 원래 값은 "Stack Sans Headline" 하나라 한글 글리프가 없어 OS 기본 글꼴로 떨어졌습니다.
	 * 영문은 기존 글꼴 그대로, 한글만 Noto Sans KR 로 나오도록 뒤에 붙입니다.
	 */
	--default-font		: "Stack Sans Headline", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

/************************************/
/*** 	   02. 공통				  ***/
/************************************/
.kf-main{
	background: var(--kf-bg);
	color: var(--kf-text);
	font-family: var(--kf-sans);
	word-break: keep-all;
}
.kf-main h1,
.kf-main h2,
.kf-main h3{
	color: var(--kf-navy);
	margin: 0;
	line-height: 1.3;
}
.kf-main p{ margin: 0; }

/* 버튼 */
.kf-btn{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	padding: 0 26px;
	border-radius: var(--kf-radius-btn);
	border: 1px solid transparent;
	font-family: var(--kf-sans);
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	transition: background-color .2s, color .2s, border-color .2s;
	cursor: pointer;
}
/*
 * 골드 버튼 = 황금빛 그라데이션					[2026-10-17 운영자 요청]
 * 단색(#F6B030) 대신 밝은 금 → 진한 금으로 비스듬히 흐르게 해 입체감을 줍니다.
 * 위쪽 안쪽에 흰 빛(inset), 바깥에 은은한 금빛 그림자.
 * 글자는 검정(#111) + 아주 옅은 밝은 음영 (흰 글자를 시험했다가 검정으로 확정 - 운영자 요청).
 * 모양(모서리 둥글기·높이)은 기존 .kf-btn 그대로입니다.
 * 그라데이션을 못 그리는 경우를 대비해 단색(var(--kf-cta))을 먼저 깔아 둡니다.
 */
.kf-btn-cta{
	background: var(--kf-cta);
	background: linear-gradient(135deg, #ffe066 0%, #f5b041 40%, #d4ac0d 70%, #b7950b 100%);
	color: #111111;
	font-weight: 700;
	border: none;
	text-shadow: 0 1px 0 rgba(255,255,255,.35);	/* 검정 글자에 아주 옅은 밝은 음영 */
	box-shadow: 0 4px 15px rgba(212,172,13,.3), inset 0 1px 1px rgba(255,255,255,.5);
	transition: background .3s ease, box-shadow .3s ease, transform .3s ease;
}
.kf-btn-cta:hover,
.kf-btn-cta:focus-visible{
	background: linear-gradient(135deg, #fff099 0%, #f7dc6f 40%, #f1c40f 70%, #d4ac0d 100%);
	color: #111111;
	box-shadow: 0 6px 20px rgba(212,172,13,.5);
	transform: translateY(-1px);
}
@media (prefers-reduced-motion: reduce){
	.kf-btn-cta, .kf-btn-cta:hover, .kf-btn-cta:focus-visible{ transition: none; transform: none; }
}
.kf-btn-ghost{
	background: var(--kf-surface);
	border-color: var(--kf-line);
	color: var(--kf-navy);
}
/*
 * 마우스를 올리면 곤색이 가운데에서 양옆으로 펼쳐지며 채워집니다	[2026-10-17 운영자 요청]
 * 헤더 로그아웃 버튼(.btn-default, custom.css)과 같은 방식 : ::after 막이 left/right 50% → 0 으로 0.4초.
 * 글자는 곤색 → 흰색. (메인 히어로의 회원가입/마이오피스 버튼)
 * z-index:1 로 버튼 자체를 쌓임 맥락으로 만들어야 막(z-index:-1)이 글자 뒤·버튼 바탕 위에 깔립니다.
 */
.kf-btn-ghost{
	position: relative;
	overflow: hidden;
	z-index: 1;
	transition: color .4s ease-in-out, border-color .4s ease-in-out;	/* 0.8초도 시험했으나 0.4초로 확정 [2026-10-17 운영자 요청] */
}
.kf-btn-ghost::after{
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	right: 50%;
	opacity: 0;
	background: var(--kf-navy);
	transition: all .4s ease-in-out;
	z-index: -1;
}
.kf-btn-ghost:hover,
.kf-btn-ghost:focus-visible{
	border-color: var(--kf-navy);
	color: #FFFFFF;
}
.kf-btn-ghost:hover::after,
.kf-btn-ghost:focus-visible::after{
	left: 0;
	right: 0;
	opacity: 1;
}
@media (prefers-reduced-motion: reduce){
	.kf-btn-ghost, .kf-btn-ghost::after{ transition: none; }
}
/* 어두운 바탕 위 테두리 버튼 */
.kf-btn-ghost-light{
	background: transparent;
	border-color: rgba(255,255,255,.45);
	color: #FFFFFF;
}
.kf-btn-ghost-light:hover,
.kf-btn-ghost-light:focus-visible{
	border-color: #FFFFFF;
	color: #FFFFFF;
}
.kf-btn-block{
	display: flex;
	width: 100%;
}
.kf-btn:focus-visible{
	outline: 2px solid var(--kf-gold);
	outline-offset: 3px;
}

/* 섹션 머리말 */
.kf-section{
	padding: 88px 0;
}
.kf-section-soft{
	background: var(--kf-soft);
}
.kf-section-head{
	text-align: center;
	margin-bottom: 44px;
}
.kf-eyebrow{
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--kf-gold-text);
	margin-bottom: 10px !important;
}
.kf-section-title{
	font-family: var(--kf-serif);
	font-size: clamp(28px, 3.4vw, 40px);
	font-weight: 700;
}
.kf-section-desc{
	margin-top: 12px !important;
	color: var(--kf-muted);
	font-size: 17px;
}
.kf-empty{
	text-align: center;
	color: var(--kf-muted);
	padding: 40px 0;
}

/************************************/
/*** 	   03. 메인 - 히어로		  ***/
/************************************/
.kf-hero{
	background:
		radial-gradient(circle at 85% 20%, var(--kf-gold-soft) 0, transparent 55%),
		var(--kf-bg);
	border-bottom: 1px solid var(--kf-line);
}
.kf-hero-grid{
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: 56px;
	align-items: center;
	padding: 80px 0 72px;
}
.kf-hero-title{
	font-family: var(--kf-serif);
	font-size: clamp(34px, 4.6vw, 56px);
	font-weight: 700;
	letter-spacing: -.01em;
}
.kf-hero-title em{
	font-style: normal;
	color: var(--kf-gold-text);
}
.kf-hero-lead{
	margin-top: 22px !important;
	color: var(--kf-muted);
	font-size: 18px;
	line-height: 1.7;
}
.kf-hero-lead strong{
	color: var(--kf-navy);
}
.kf-hero-actions{
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}
.kf-hero-chips{
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	padding: 0;
	margin: 28px 0 0;
}
.kf-hero-chips li{
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--kf-surface);
	border: 1px solid var(--kf-line);
	color: var(--kf-navy);
	font-size: 14px;
	font-weight: 500;
}

/* 오른쪽 상품 사진 (1~3장 겹치기) */
.kf-hero-visual{
	position: relative;
	aspect-ratio: 1 / 1;
	width: 100%;
	max-width: 540px;
	margin-left: auto;
}
.kf-hero-disc{
	position: absolute;
	inset: 6%;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #FFFFFF, var(--kf-gold-soft) 70%);
	border: 1px solid var(--kf-line);
}
.kf-hero-img{
	position: absolute;
	border-radius: var(--kf-radius);
	background: var(--kf-surface);
	box-shadow: var(--kf-shadow);
	object-fit: contain;
	aspect-ratio: 1 / 1;
}
/* 3장 */
.kf-hero-visual-3 .kf-hero-img-1{ width: 50%; left: 2%;  top: 12%; z-index: 2; }
.kf-hero-visual-3 .kf-hero-img-2{ width: 44%; right: 2%; top: 4%;  z-index: 1; }
.kf-hero-visual-3 .kf-hero-img-3{ width: 48%; left: 28%; bottom: 2%; z-index: 3; }
/* 2장 */
.kf-hero-visual-2 .kf-hero-img-1{ width: 56%; left: 4%;  top: 10%; z-index: 2; }
.kf-hero-visual-2 .kf-hero-img-2{ width: 52%; right: 4%; bottom: 8%; z-index: 1; }
/* 1장 */
.kf-hero-visual-1 .kf-hero-img-1{ width: 70%; left: 15%; top: 15%; }

/************************************/
/*** 	04. 메인 - 제품 라인업	  ***/
/************************************/
.kf-product-grid{
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}
/* 상품이 3개 이하일 때는 가운데 정렬로 3열 (미니샵 오픈 초기 3~4종 기준) */
.kf-product-grid:has(> .kf-product:nth-child(3):last-child),
.kf-product-grid:has(> .kf-product:nth-child(2):last-child),
.kf-product-grid:has(> .kf-product:only-child){
	grid-template-columns: repeat(3, minmax(0, 1fr));
	max-width: 960px;
	margin: 0 auto;
}
.kf-product{
	display: flex;
	flex-direction: column;
	background: var(--kf-surface);
	border: 1px solid var(--kf-line);
	border-radius: var(--kf-radius);
	overflow: hidden;
	transition: box-shadow .2s, transform .2s;
}
.kf-product:hover{
	box-shadow: var(--kf-shadow);
	transform: translateY(-2px);
}
.kf-product-thumb{
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	background: #FFFFFF;
	border-bottom: 1px solid var(--kf-line);
}
.kf-product-thumb img{
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.kf-product-badge{
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;	/* [2026-11-21 키노] 목록 카드(/shop/skin·분류)에서도 첫 화면과 같은 글꼴로 */
	padding: 5px 10px;
	border-radius: 999px;
	background: var(--kf-navy);
	color: #FFFFFF;
	font-size: 12px;
	font-weight: 700;
}
/* [2026-11-13] 솔드아웃 임박 — 상품 이미지 우측 상단 대각선 띠 */
.kf-soldout-ribbon{
	position: absolute;
	top: 0;
	right: 0;
	width: 120px;
	height: 120px;
	overflow: hidden;
	pointer-events: none;
	z-index: 2;
}
.kf-soldout-ribbon > span{
	position: absolute;
	top: 26px;
	right: -42px;
	width: 170px;
	padding: 6px 0;
	background: #E53935;
	color: #FFFFFF;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	letter-spacing: -0.02em;
	white-space: nowrap;
	transform: rotate(45deg);
	box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
@media (max-width: 575.98px){
	.kf-soldout-ribbon{ width: 96px; height: 96px; }
	.kf-soldout-ribbon > span{ top: 20px; right: -40px; width: 150px; padding: 4px 0; font-size: 11px; }
}
.kf-product-body{
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 20px;
}
.kf-product-name{
	font-family: var(--kf-sans);
	font-size: 18px;
	font-weight: 700;
}
.kf-product-name a{
	color: var(--kf-navy);
	text-decoration: none;
}
.kf-product-desc{
	margin-top: 8px !important;
	color: var(--kf-muted);
	font-size: 14px;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.kf-product-price{
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: auto 0 16px;
	padding-top: 16px;
	font-variant-numeric: tabular-nums;
}
.kf-product-price strong{
	font-size: 24px;
	font-weight: 800;
	color: var(--kf-navy);
}
.kf-product-price strong small{
	font-size: 15px;
	font-weight: 700;
	margin-left: 1px;
}
.kf-product-price del{
	color: var(--kf-muted);
	font-size: 14px;
}
.kf-product-price .kf-price-hide{
	font-size: 16px;
	color: var(--kf-muted);
}

/************************************/
/*** 	05. 메인 - 응모권 안내 밴드  ***/
/************************************/
.kf-band{
	background: linear-gradient(120deg, var(--kf-navy) 0%, var(--kf-navy-2) 100%);
	color: #FFFFFF;
	padding: 56px 0;
}
.kf-band-inner{
	display: flex;
	align-items: center;
	gap: 32px;
	max-width: 960px;
	margin: 0 auto;
}
.kf-band-icon{
	flex: 0 0 auto;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.18);
	color: #E5C27A;
	font-size: 40px;
}
/* 선물상자 이미지 아이콘 [2026-10-17] - 원 안에 꽉 차게, 살짝 띄워 보이도록 그림자 */
.kf-band-icon{
	width: 120px;
	height: 120px;
}
.kf-band-icon img{
	width: 76%;
	height: auto;
	display: block;
	filter: drop-shadow(0 6px 12px rgba(0,0,0,.35));
}
.kf-band-sub{
	color: rgba(255,255,255,.75);
	font-size: 16px;
	font-weight: 500;
}
.kf-main .kf-band-title{
	color: #FFFFFF;
	font-family: var(--kf-serif);
	font-size: clamp(30px, 4vw, 46px);
	font-weight: 700;
	margin-top: 4px;
}
.kf-band-title em{
	font-style: normal;
	color: #E5C27A;
}
.kf-band-desc{
	margin-top: 12px !important;
	color: rgba(255,255,255,.8);
	font-size: 16px;
	line-height: 1.7;
}

/************************************/
/*** 	   06. 메인 - 혜택 3칸	  ***/
/************************************/
.kf-benefit-grid{
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}
.kf-benefit{
	background: var(--kf-surface);
	border: 1px solid var(--kf-line);
	border-radius: var(--kf-radius);
	padding: 28px;
}
.kf-benefit-head{
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 16px;
	margin-bottom: 18px;
	border-bottom: 1px solid var(--kf-line);
	color: var(--kf-navy);
	font-size: 18px;
	font-weight: 700;
}
.kf-benefit-head i{
	color: var(--kf-gold);
}
.kf-prize-list{
	list-style: none;
	margin: 0;
	padding: 0;
}
.kf-prize-list li{
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	font-variant-numeric: tabular-nums;
}
.kf-prize-rank{
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: 14px;
	font-weight: 800;
	color: #FFFFFF;
	background: #1f2a44;	/* 4등 이하 기본색 [2026-10-19] - 1~3등은 아래 색 */
}
.kf-prize-rank-1{ background: #C9A55E; }
.kf-prize-rank-2{ background: #9AA3B2; }
.kf-prize-rank-3{ background: #B07A4E; }
.kf-prize-label{
	color: var(--kf-navy);
	font-weight: 700;
}
.kf-prize-amount{
	margin-left: auto;
	color: var(--kf-red);
	font-size: 20px;
	font-weight: 800;
}
.kf-prize-people{
	color: var(--kf-muted);
	font-size: 14px;
}
/* ── 회차별 당첨 정보 카드 [2026-10-17] : 네이비 머리띠 + 메달 이미지 ── */
.kf-benefit--prize{
	overflow: hidden;
	padding-top: 0;
	background: #FFFFFF;
}
.kf-benefit--prize .kf-prize-head{
	margin: 0 -28px 8px;
	padding: 14px 28px;
	border-bottom: 0;
	background: linear-gradient(120deg, var(--kf-navy) 0%, var(--kf-navy-2) 100%);
	box-shadow: inset 0 -2px 0 rgba(229,194,122,.55);	/* 아래 금색 선 */
	color: #FFFFFF;
	font-size: 20px;
	font-weight: 800;
	justify-content: center;
}
.kf-benefit--prize .kf-prize-head img{
	width: 40px;
	height: auto;
	filter: drop-shadow(0 3px 6px rgba(0,0,0,.35));
}
.kf-benefit--prize .kf-prize-list li{
	padding: 12px 0;
	border-bottom: 1px solid var(--kf-line);
}
.kf-benefit--prize .kf-prize-list li:last-child{
	border-bottom: 0;
}
.kf-prize-medal{
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	object-fit: contain;
	filter: drop-shadow(0 2px 3px rgba(0,0,0,.2));
}
.kf-benefit--prize .kf-prize-label{
	font-size: 17px;
}
.kf-benefit--prize .kf-prize-amount{
	font-size: 22px;
}
/* 네이비 머리띠 카드에서 본문 첫 줄이 띠에 붙지 않게 (추천 보너스 금액) [2026-10-17] */
.kf-benefit--prize .kf-benefit-big{
	margin-top: 22px !important;
}
/* 추천 보너스 : 월계수·동전 이미지 + 가운데 금액 [2026-10-17] */
.kf-bonus-visual{
	position: relative;
	width: 86%;
	max-width: 340px;
	margin: 18px auto 4px;
}
.kf-bonus-visual img{
	display: block;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 6px 10px rgba(0,0,0,.15));
}
/* 월계수 두 가지 사이, 동전 더미 위쪽 빈 자리 */
.kf-benefit--prize .kf-bonus-visual-amount{
	position: absolute;
	left: 0;
	right: 0;
	top: 6%;
	margin: 0 !important;
	text-align: center;
	font-size: clamp(22px, 2.4vw, 30px);
	line-height: 1.1;
	text-shadow: 0 2px 0 #FFFFFF, 0 0 8px rgba(255,255,255,.9);	/* 금색 위에서도 읽히게 */
}
/* 추천 소개비 카드 [2026-10-17] */
.kf-prize-head-text{
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}
.kf-prize-head-text small{
	margin-top: 3px;
	font-size: 13px;
	font-weight: 500;
	color: #E5C27A;
}
.kf-benefit--fee .kf-benefit-head-img{
	width: 44px;
}
.kf-fee-main{
	margin-top: 20px;
	text-align: center;
}
.kf-main .kf-fee-lead{
	margin: 0;
	color: var(--kf-navy);
	font-size: 19px;
	font-weight: 700;
}
.kf-main .kf-fee-amount{
	margin: 4px 0 0;
	color: var(--kf-navy);
	font-size: 20px;
	font-weight: 700;
}
.kf-fee-amount strong{
	color: var(--kf-red);
	font-size: 38px;
	font-weight: 800;
	vertical-align: -3px;
	margin-right: 4px;
}
.kf-fee-foot{
	display: flex;
	align-items: flex-end;
	gap: 14px;
	margin-top: 16px;
}
.kf-fee-foot img{
	flex: 0 0 38%;
	max-width: 140px;
	height: auto;
	filter: drop-shadow(0 6px 10px rgba(0,0,0,.15));
}
.kf-fee-foot .kf-benefit-desc{
	margin: 0 !important;
	font-size: 14px;
}
/* 카드 제목 앞 이미지 아이콘 [2026-10-17] (추천 보너스 트로피 등) */
.kf-benefit-head-img{
	flex: 0 0 auto;
	width: 36px;
	height: auto;
	filter: drop-shadow(0 2px 3px rgba(0,0,0,.2));
}
.kf-benefit-big{
	color: var(--kf-red);
	font-size: 30px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}
.kf-benefit-desc{
	margin-top: 12px !important;
	color: var(--kf-muted);
	font-size: 15px;
	line-height: 1.7;
}

/************************************/
/*** 	   07. 메인 - 이용 방법	  ***/
/************************************/
.kf-steps{
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: none;
}
.kf-steps li{
	position: relative;
	background: var(--kf-surface);
	border: 1px solid var(--kf-line);
	border-radius: var(--kf-radius);
	padding: 28px 22px;
}
.kf-step-no{
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--kf-gold-soft);
	color: var(--kf-gold-text);
	font-weight: 800;
	font-size: 18px;
	margin-bottom: 16px;
}
.kf-steps h3{
	font-family: var(--kf-sans);
	font-size: 18px;
	font-weight: 700;
}
.kf-steps p{
	margin-top: 8px !important;
	color: var(--kf-muted);
	font-size: 15px;
	line-height: 1.65;
}

/************************************/
/*** 	   08. 메인 - 가입 안내	  ***/
/************************************/
.kf-join{
	background: var(--kf-navy);
	padding: 48px 0;
}
.kf-join-inner{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.kf-main .kf-join-title{
	color: #FFFFFF;
	font-family: var(--kf-serif);
	font-size: clamp(22px, 2.6vw, 30px);
	font-weight: 700;
}
.kf-join-desc{
	margin-top: 8px !important;
	color: rgba(255,255,255,.75);
	font-size: 16px;
}
.kf-join-actions{
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	flex: 0 0 auto;
}

/************************************/
/*** 	   10. 푸터				  ***/
/************************************/
/**
 * 푸터 로고 : 관리자에 올린 KHI FMD 로고(네이비 글자)를 네이비 배경에서 보이도록 흰색으로 바꿉니다.
 * 흰색 전용 로고 파일을 따로 받으면 이 규칙 대신 그 파일을 쓰면 됩니다.
 */
.main-footer .footer-logo img.kf-footer-logo{
	filter: brightness(0) invert(1);
	max-width: 190px;
	height: auto;
}

/************************************/
/*** 	   09. 반응형				  ***/
/************************************/
@media (max-width: 1199px){
	.kf-product-grid{
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 991px){
	.kf-hero-grid{
		grid-template-columns: 1fr;
		gap: 36px;
		padding: 56px 0 48px;
	}
	.kf-hero-visual{
		max-width: 420px;
		margin: 0 auto;
	}
	.kf-br-pc{ display: none; }
	.kf-benefit-grid{
		grid-template-columns: 1fr;
	}
	.kf-steps{
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.kf-join-inner{
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 767px){
	.kf-section{
		padding: 60px 0;
	}
	.kf-section-head{
		margin-bottom: 28px;
	}
	/* 모바일 상품 그리드 2열 (상품 수와 관계없이) */
	.kf-product-grid,
	.kf-product-grid:has(> .kf-product:nth-child(3):last-child),
	.kf-product-grid:has(> .kf-product:nth-child(2):last-child){
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
	.kf-product-body{
		padding: 14px;
	}
	.kf-product-name{
		font-size: 15px;
	}
	.kf-product-desc{
		font-size: 13px;
	}
	.kf-product-price strong{
		font-size: 19px;
	}
	.kf-product-body .kf-btn{
		min-height: 46px;
		font-size: 15px;
		padding: 0 12px;
	}
	.kf-band-inner{
		flex-direction: column;
		text-align: center;
		gap: 18px;
	}
	.kf-band-icon{
		width: 96px;
		height: 96px;
		font-size: 30px;
	}
	.kf-hero-actions .kf-btn{
		flex: 1 1 140px;
	}
	.kf-join-actions{
		width: 100%;
	}
	.kf-join-actions .kf-btn{
		flex: 1 1 0;
	}
}

@media (max-width: 480px){
	.kf-steps{
		grid-template-columns: 1fr;
	}
}

/* ── 혜택 카드 3개 네이비 머리띠 높이 통일 [2026-10-17] ──────────────
 * 아이콘 이미지 비율이 달라(선물·트로피는 세로형, 악수는 가로형) 띠 높이가 달랐습니다.
 * 아이콘을 같은 높이(44px) 상자에 맞추고, 띠 높이를 72px 로 고정합니다.
 */
.kf-benefit--prize .kf-prize-head{
	box-sizing: border-box;
	height: 72px;
	padding-top: 0;
	padding-bottom: 0;
}
.kf-benefit--prize .kf-prize-head img,
.kf-benefit--prize .kf-prize-head .kf-benefit-head-img,
.kf-benefit--fee .kf-benefit-head-img{
	width: auto;
	height: 44px;
	max-width: 64px;
	object-fit: contain;
}

/* ── 히어로 상품 사진 3장 : 날아와 모이기 + 둥둥 [2026-10-17] ─────────────
 * 페이지가 열리면 ① 배경 원이 튀어나오고 ② 사진 3장이 서로 다른 방향에서
 * 회전하며 날아와 제자리에 모인 뒤(살짝 튕김) ③ 각자 다른 박자로 위아래로 떠 있습니다.
 * 위치(left/top)는 위쪽 .kf-hero-visual-3 규칙 그대로이고, 움직임은 transform 만 씁니다.
 * 움직임 줄이기(접근성 설정)를 켠 사용자에게는 움직이지 않습니다.
 */
.kf-hero-disc{
	animation: kfDiscIn .9s cubic-bezier(.2, 1.3, .4, 1) both;
}
.kf-hero-img{
	will-change: transform, opacity;
	transition: box-shadow .3s ease;
}
.kf-hero-img:hover{
	box-shadow: 0 18px 40px rgba(4, 24, 63, .22);
}
.kf-hero-img-1{
	--kf-from: translate(-70%, -45%) rotate(-24deg) scale(.6);
	--kf-rest: rotate(-4deg);
	--kf-float: 6s;
	animation: kfGather 1.1s cubic-bezier(.22, 1.35, .36, 1) .25s both,
	           kfFloat var(--kf-float) ease-in-out 1.4s infinite;
}
.kf-hero-img-2{
	--kf-from: translate(70%, -60%) rotate(22deg) scale(.6);
	--kf-rest: rotate(5deg);
	--kf-float: 7s;
	animation: kfGather 1.1s cubic-bezier(.22, 1.35, .36, 1) .45s both,
	           kfFloat var(--kf-float) ease-in-out 1.6s infinite;
}
.kf-hero-img-3{
	--kf-from: translate(0, 80%) rotate(-12deg) scale(.6);
	--kf-rest: rotate(-1deg);
	--kf-float: 5.5s;
	animation: kfGather 1.1s cubic-bezier(.22, 1.35, .36, 1) .65s both,
	           kfFloat var(--kf-float) ease-in-out 1.8s infinite;
}
@keyframes kfDiscIn{
	from{ transform: scale(.4); opacity: 0; }
	to  { transform: scale(1);  opacity: 1; }
}
@keyframes kfGather{
	from{ transform: var(--kf-from); opacity: 0; }
	to  { transform: var(--kf-rest); opacity: 1; }
}
@keyframes kfFloat{
	0%, 100%{ transform: var(--kf-rest) translateY(0); }
	50%     { transform: var(--kf-rest) translateY(-12px); }
}
@media (prefers-reduced-motion: reduce){
	.kf-hero-disc,
	.kf-hero-img{ animation: none !important; }
}

/* ── 히어로 조정 [2026-10-17 운영자 요청] ───────────────────────────
 * ① 오른쪽 위 사진(징코큐)을 왼쪽·아래로 옮겨 다른 두 장과 겹치게 (빈 공간 없애기)
 *    예전 : right 2% / top 4%
 * ② 모이는 속도를 느리게 : 1.1초 → 2초, 사진 사이 간격 0.2초 → 0.4초
 */
.kf-hero-visual-3 .kf-hero-img-2{ right: 9%; top: 9%; }	/* [2026-10-17] 13% → 9% 조금 위로 */

.kf-hero-disc{ animation-duration: 1.4s; }
.kf-hero-img-1{
	animation: kfGather 2s cubic-bezier(.22, 1.25, .36, 1) .3s both,
	           kfFloat var(--kf-float) ease-in-out 2.4s infinite;
}
.kf-hero-img-2{
	animation: kfGather 2s cubic-bezier(.22, 1.25, .36, 1) .7s both,
	           kfFloat var(--kf-float) ease-in-out 2.8s infinite;
}
.kf-hero-img-3{
	animation: kfGather 2s cubic-bezier(.22, 1.25, .36, 1) 1.1s both,
	           kfFloat var(--kf-float) ease-in-out 3.2s infinite;
}
@media (prefers-reduced-motion: reduce){
	.kf-hero-disc,
	.kf-hero-img{ animation: none !important; }
}

/* --- 응모권 쿠폰 (마이오피스 > 내 응모권 · 응모권내역의 '응모권' 칸) ----------- [2026-10-17]
 * 배경 = assets/img/icon/coupon.jpg (1544x688, 약 2.24:1)
 * 오른쪽 파란 영역(가로 약 59%~96%, 위아래 점선 사이) 가운데에 발급번호(#lt_idx)를 얹습니다.
 * 위치는 그림 비율 기준(%)이라 쿠폰 크기를 바꿔도 번호가 파란 칸 안에 그대로 있습니다.
 * ------------------------------------------------------------------------------ */
.kh-coupon{
	position: relative;
	display: inline-block;
	width: 168px;
	aspect-ratio: 1544 / 688;
	background: url('../img/icon/coupon.jpg') center / 100% 100% no-repeat;
	border-radius: 6px;
	vertical-align: middle;
	container-type: inline-size;	/* 안쪽 글자를 쿠폰 폭(cqi) 기준으로 키우고 줄입니다 */
}
/*
 * 번호 자리 = 파란 영역 가로 59%~96% (쿠폰 폭의 37%).
 * 'No.' 는 위에 작게, 번호는 아래에 크게 두 줄로 놓습니다.
 * 글자 크기는 쿠폰 폭(cqi = 1%)에 비례하므로 PC(168px)·휴대폰 카드(최대 280px)
 * 어디서든 같은 비율로 맞습니다. 번호가 길어지면 kh-len-N(쉼표 포함 글자수)으로 줄입니다.
 *   len 1~3  : 1 ~ 999          12cqi
 *   len 5    : 1,000 ~ 9,999    9.5cqi
 *   len 6    : 10,000 ~ 99,999  8cqi
 *   len 7    : 100,000 ~        7cqi
 *   len 9    : 1,000,000 ~      5.5cqi
 * 글자 한 개 폭을 약 0.6em 으로 잡으면 모든 경우가 파란 칸(37cqi) 안에 들어갑니다.
 * cqi 를 모르는 오래된 브라우저는 앞 줄의 px 값을 씁니다.
 */
.kh-coupon-no{
	position: absolute;
	left: 59%;
	right: 4%;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	color: #fff;
	line-height: 1.05;
	white-space: nowrap;
	text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.kh-coupon-no small{
	font-size: 9px;
	font-size: 5.5cqi;
	font-weight: 700;
	opacity: .85;
	letter-spacing: .04em;
}
.kh-coupon-no b{
	font-weight: 800;
	font-size: 18px;
	font-size: 12cqi;
	letter-spacing: -.01em;
}
.kh-coupon-no.kh-len-5 b{ font-size: 15px; font-size: 9.5cqi; }
.kh-coupon-no.kh-len-6 b{ font-size: 13px; font-size: 8cqi; }
.kh-coupon-no.kh-len-7 b{ font-size: 11px; font-size: 7cqi; }
.kh-coupon-no.kh-len-8 b,
.kh-coupon-no.kh-len-9 b{ font-size: 9px; font-size: 5.5cqi; }
@media (max-width: 575px){
	.kh-coupon{ width: 128px; }
}

/* --- 응모권 목록 : 휴대폰에서는 세로 카드로 ---------------------------------- [2026-10-17]
 * 내 응모권 · 응모권내역 표(.lt-stack-mobile)를 767px 이하에서 한 장씩 세로로 쌓습니다.
 *   맨 위 = 쿠폰 그림(크게, 가운데)  →  아래로 '제목 : 값' 줄(td 의 data-label)  →  버튼
 * 가로 스크롤 없이 위아래로만 넘기면 됩니다. PC 는 예전 표 그대로입니다.
 * ------------------------------------------------------------------------------ */
@media (max-width: 767px){
	.lt-stack-mobile thead{ display: none; }
	.lt-stack-mobile,
	.lt-stack-mobile tbody,
	.lt-stack-mobile tr,
	.lt-stack-mobile td{ display: block; width: 100%; }
	.lt-stack-mobile tbody tr{
		border: 1px solid #e5e9f0;
		border-radius: 12px;
		padding: 12px 14px;
		margin-bottom: 12px;
		background: #fff;
	}
	.lt-stack-mobile tbody tr:last-child{ margin-bottom: 0; }
	.lt-stack-mobile.lt-my-table tbody td{
		height: auto;
		border: 0;
		padding: 6px 0;
	}
	/* 쿠폰 : 카드 맨 위 가운데, 크게 */
	.lt-stack-mobile td.lt-cell-coupon{ text-align: center; padding: 0 0 10px; }
	.lt-stack-mobile td.lt-cell-coupon .kh-coupon{ width: 100%; max-width: 280px; }
	/* 제목 : 값 한 줄 */
	.lt-stack-mobile td[data-label]{
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 12px;
		text-align: right !important;
		border-top: 1px solid #f1f3f7;
	}
	.lt-stack-mobile td[data-label]::before{
		content: attr(data-label);
		flex: 0 0 auto;
		color: #8a8f9a;
		font-weight: 600;
	}
	/* 상태 칸 안의 당첨금·번호고르기 링크는 오른쪽 정렬 유지 */
	.lt-stack-mobile td[data-label] > *{ text-align: right; }
	/* 번호 고르기 버튼 : 폭 전체 */
	.lt-stack-mobile td.lt-cell-btn{ padding-top: 10px; }
	.lt-stack-mobile td.lt-cell-btn .btn{ display: block; width: 100%; padding-top: 10px; padding-bottom: 10px; }
	.lt-stack-mobile td.lt-cell-btn:empty{ display: none; }
	/* 빈 목록 안내(colspan 줄)는 카드 테두리 없이 */
	.lt-stack-mobile tbody tr:only-child td[colspan]{ text-align: center; }
}

/* =====================================================================
 * 상품 상세 [제품상세] 탭 - 상세 이미지 가운데 정렬		[2026-10-21 운영자 요청]
 * ---------------------------------------------------------------------
 * 관리자 상품등록 에디터로 올린 상세는 <p><img><br><img>... 형태라
 * 왼쪽에 붙어 보였습니다. 상품마다 내용을 고치지 않고 여기서 모든 상품을 맞춥니다.
 * (뷰 : product/index.php #tab-1 .ps-document)
 * 화면보다 큰 이미지는 폭에 맞춰 줄입니다.
 * ===================================================================== */
.ps-product__content #tab-1 .ps-document{ text-align: center; }
.ps-product__content #tab-1 .ps-document img{
	display: block;
	max-width: 100%;
	height: auto;
	margin-left: auto;
	margin-right: auto;
}

/* =====================================================================
 * 회원가입 홍보 이미지		[2026-10-30 송실장님 요청]
 * ---------------------------------------------------------------------
 * 회원가입 1·2단계(user/register.php · register1.php) 남색 머리 박스 바로 아래.
 * PC : 가운데 최대 720px / 모바일 : 화면 폭에 맞춤 (세로형 1145x1374 원본)
 * 이미지 바로 뒤의 가입 양식(.page-login) 위 여백(원래 120px / 모바일 60px)은
 * 이미지와 붙어 보이도록 줄입니다.
 * ===================================================================== */
.register-promo{ padding: 60px 0 0; }
.register-promo picture,
.register-promo img{
	display: block;
	width: 100%;
	max-width: 720px;
	height: auto;
	margin-left: auto;
	margin-right: auto;
}
.register-promo img{
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(4, 24, 63, 0.08);
}
.register-promo + .page-login{ padding-top: 60px; }

@media (max-width: 767px){
	.register-promo{ padding-top: 24px; }
	.register-promo img{ border-radius: 10px; }
	.register-promo + .page-login{ padding-top: 32px; }
}
