/* =================================================================
 * base.css — 디자인 토큰과 기본 스타일
 * 색상·폰트·간격은 전부 여기 변수로 모아둔다. 값을 바꾸면 사이트 전체에 반영된다.
 * ================================================================= */

/* ---- 웹폰트 ---- */

@font-face { font-family: "Abhaya Libre"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/abhaya-libre-800.woff2") format("woff2"); }
@font-face { font-family: Lato; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/lato-400.woff2") format("woff2"); } /* 기획안 메인 배너 설명 글 */
@font-face { font-family: Inter; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }

/* ---- 디자인 토큰 ---- */

:root {
	/* 색 */
	--brand: #ff8c1f;          /* efilow 오렌지 (기획안 버튼·가격·강조) */
	--brand-hover: #f07a0a;
	--accent: #ff8c1f;         /* 별점 */
	--danger: #d93025;         /* 오류·경고·찜 하트 (브랜드 색과 구분) */
	--efilow-orange: #ff8c1f;  /* efilow 헤더·푸터 포인트 */
	--efilow-cream: #fffcf1;   /* efilow 푸터·카드 배경 */
	--efilow-ink: #121212;
	--fg: #0a0a0a;             /* 본문 글자 */
	--fg-muted: #616161;       /* 보조 글자 */
	--fg-subtle: #8b8b8b;      /* 더 옅은 글자 (기획안 할인 전 가격) */
	--bg: #ffffff;
	--surface: #f7f7f7;        /* 카드·섹션 배경 (기획안 상품 카드) */
	--border: #e5e5e5;

	/* 글꼴 — 본문은 Inter, 포인트(제목·가격)는 Abhaya Libre ExtraBold (기획안 기준) */
	--font-body: Inter, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
	--font-point: "Abhaya Libre", Georgia, serif;
	--font-efilow-point: "Abhaya Libre", Georgia, serif;
	--font-efilow-body: Inter, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;

	/* 글자 크기 */
	--fs-xs: 0.8125rem;
	--fs-sm: 0.875rem;
	--fs-base: 1rem;
	--fs-lg: 1.125rem;
	--fs-xl: 1.5rem;
	--fs-2xl: 2rem;
	--fs-3xl: clamp(2rem, 4vw, 2.75rem);
	--fs-hero: clamp(2.25rem, 5vw, 3.75rem);

	/* 간격 */
	--sp-xs: 8px;
	--sp-sm: 16px;
	--sp-md: 24px;
	--sp-lg: 40px;
	--sp-xl: 64px;
	--sp-section: clamp(64px, 9vw, 120px);

	/* 레이아웃 */
	--page-width: 1383px;      /* 기획안 콘텐츠 폭 1303 + 양옆 여백 40 (헤더 · 배너 · 상품 목록이 모두 1303 폭) */
	--page-margin: clamp(20px, 4vw, 40px);
	--radius: 14px;
	--radius-sm: 8px;

	--ease: cubic-bezier(0.2, 0.7, 0.3, 1);
	--shadow: 0 10px 30px rgb(0 0 0 / 0.06);
}

/* ---- 리셋 ---- */

*, *::before, *::after { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font-body);
	font-size: var(--fs-base);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.2; }

/* 제목은 포인트 서체 */
h1, h2, h3 { font-family: var(--font-point); letter-spacing: -0.01em; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* 스크린리더 전용 */
/* hidden 속성은 어떤 display 값보다 우선한다.
   (.empty { display:grid } 같은 규칙이 브라우저 기본 [hidden]을 덮어쓰는 문제 방지) */
[hidden] { display: none !important; }

.sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
	white-space: nowrap; border: 0;
}

/* 페이지 공통 컨테이너 */
.container {
	width: 100%;
	max-width: var(--page-width);
	margin-inline: auto;
	padding-inline: var(--page-margin);
}

.section { margin-block: var(--sp-section); }

/* 섹션 제목 */
.section-title {
	font-family: var(--font-point);
	font-size: var(--fs-3xl);
	text-align: center;
	margin-block-end: var(--sp-lg);
}

body.no-scroll { overflow: hidden; }


/* ── 비밀번호 보기 단추 ────────────────────────────────────────────────
   assets/default/custom.js 의 listener_password_toggle 이 만들어 넣는다.
   고객 화면(.input)과 관리자 화면(.in) 양쪽에서 함께 쓴다.
   -------------------------------------------------------------------- */
.pw-wrap {
	position: relative;
	display: block;
}
.pw-wrap > input {
	/* 단추와 글자가 겹치지 않도록 오른쪽을 비워준다 */
	padding-inline-end: 42px;
}

.pw-eye {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-end: 6px;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: none;
	color: var(--fg-subtle, #8a8a8a);
	cursor: pointer;
	transition: color 0.15s ease, background-color 0.15s ease;
}
.pw-eye:hover { color: var(--fg, #222); background: rgb(0 0 0 / 0.05); }
.pw-eye:focus-visible {
	outline: 2px solid var(--brand);
	outline-offset: 1px;
}
.pw-eye svg { width: 19px; height: 19px; }
.pw-eye[aria-pressed="true"] { color: var(--brand); }
