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

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

/* WHA' YUNSUL 피그마 글꼴 : 제목 · 본문 모두 Noto Sans (400 · 500 · 700, 한 화면 3단계). 영문 사이트라 라틴 문자 부분만 넣었다 (구글 폰트, OFL)
   클라이언트 가이드는 Arial 이라 영문 폰트 확정 시 --font-body 만 바꾸면 된다 (WBS 5.1.6) */
@font-face { font-family: "Noto Sans KR"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("../fonts/noto-sans-kr-latin-var.woff2") format("woff2"); } /* 굵기 조절 글꼴 한 파일 (400 · 500 · 700) */
/* Inter : 관리자 화면 숫자용 (admin.css --font-num) */
@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 {
	/* 색 */
	/* WHA' YUNSUL 피그마 (00 기획 개요 「컬러 · 폰트」, Visual Guidelines 기준) */
	--soft-black: #191919;     /* Soft Black : 버튼 · 본문 · 푸터 */
	--soft-white: #f7f7f5;     /* Soft White : 상품 배경 */
	--warm-ivory: #f4f1ea;     /* Warm Ivory : UGC · 스토리 */
	--dark-gray: #545454;      /* Dark Gray : 보조 텍스트 */
	--light-gray: #dddddd;     /* Light Gray : 구분선 */
	--mid-gray: #bdbdbd;       /* 슬라이드 점 등 비활성 */

	--brand: var(--soft-black);   /* 버튼 · 가격 · 강조 */
	--brand-hover: #333333;
	--accent: var(--soft-black);  /* 별점 */
	--danger: #d93025;            /* 오류 · 경고 · 찜 하트 (브랜드 색과 구분) */
	--point: var(--warm-ivory);   /* 옅은 강조 바탕 (위에 검은 글자) */
	--soft: var(--soft-white);    /* 옅은 바탕 */
	--ink: var(--soft-black);

	/* amocosplus 제품별 색 자리. 피그마에는 제품별 색이 없어 모두 무채색으로 둔다 */
	--tone-pink: var(--warm-ivory);   --tone-pink-soft: var(--soft-white);
	--tone-mint: var(--warm-ivory);   --tone-mint-soft: var(--soft-white);
	--tone-yellow: var(--warm-ivory); --tone-yellow-soft: var(--soft-white);
	--tone-silver: var(--light-gray);

	--fg: var(--soft-black);      /* 본문 글자 */
	--fg-muted: var(--dark-gray); /* 보조 글자 */
	--fg-subtle: #8b8b8b;         /* 더 옅은 글자 (할인 전 가격) */
	--bg: #ffffff;
	--surface: var(--soft-white); /* 카드 · 상품 배경 */
	--border: var(--light-gray);

	/* 글꼴 — 제목 · 본문 모두 Noto Sans (피그마). --font-point 는 제목 자리 이름으로만 남겨 둔다 */
	--font-body: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
	--font-point: var(--font-body);

	/* 글자 크기 (피그마 타이포 스케일 : H1 54/44 · H2 36 · H3 17 · Body 16/15 · Caption 13) */
	--fs-xs: 0.8125rem;                   /* 13 Caption */
	--fs-sm: 0.875rem;                    /* 14 버튼 */
	--fs-base: 0.9375rem;                 /* 15 Body (모바일) → PC 16 은 아래 미디어 쿼리 */
	--fs-lg: 1.0625rem;                   /* 17 H3 */
	--fs-xl: 1.5rem;
	--fs-2xl: 2rem;
	--fs-3xl: clamp(1.75rem, 3.2vw, 2.25rem);   /* H2 36 */
	--fs-hero: clamp(2.75rem, 4vw, 3.375rem);   /* H1 44 → 54 */

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

	/* 레이아웃 (피그마 사이즈 스펙) : PC 콘텐츠 1200 (1440 화면에서 좌우 120) · 태블릿 704 (좌우 32) · 모바일 350 (좌우 20) */
	--content-width: 1200px;
	--page-margin: 20px;
	--page-width: calc(var(--content-width) + var(--page-margin) * 2);
	--gutter: 12px;            /* 모바일 4 col · 12 / 태블릿 8 col · 16 / PC 12 col · 24 */
	--radius: 0;               /* 피그마 버튼 · 상자는 모서리가 각지다 */
	--radius-sm: 0;

	--ease: cubic-bezier(0.2, 0.7, 0.3, 1);
	--shadow: 0 10px 30px rgb(0 0 0 / 0.06);
}
@media (min-width: 768px) { :root { --page-margin: 32px; --gutter: 16px; } }
@media (min-width: 1200px) { :root { --page-margin: 40px; --gutter: 24px; --fs-base: 1rem; } }

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

*, *::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; }

/* 제목 : 피그마는 Noto Sans Bold, 자간을 조금 좁힌다 */
h1, h2, h3 { font-family: var(--font-point); font-weight: 700; letter-spacing: -0.02em; }

: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); }
