@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700&family=Noto+Serif+KR:wght@500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
	--color-primary: #ec4899;
	--color-on-primary: #000000;
	--color-accent: #8b5cf6;
	--color-background: #fdf2f8;
	--color-foreground: #831843;
	--color-card: #ffffff;
	--color-muted: #f1eef5;
	--color-muted-foreground: #475569;
	--color-border: #fbcfe8;
	--color-destructive: #dc2626;
	--shadow: 0 12px 32px rgba(131, 24, 67, 0.08);
	--shadow-hover: 0 20px 44px rgba(131, 24, 67, 0.16);
	--radius: 22px;
	--font: "Noto Sans KR", "Malgun Gothic", sans-serif;
	--display: "Noto Serif KR", Batang, serif;
	--display-id: "Playfair Display", "Noto Serif KR", serif;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	min-height: 100vh;
	color: var(--color-foreground);
	font-family: var(--font);
	line-height: 1.55;
	background:
		radial-gradient(900px 520px at -8% -10%, rgba(236, 72, 153, 0.28), transparent 60%),
		radial-gradient(780px 480px at 108% -8%, rgba(139, 92, 246, 0.2), transparent 55%),
		radial-gradient(720px 520px at 50% 115%, rgba(249, 168, 212, 0.55), transparent 52%),
		var(--color-background);
}

body,
button,
input,
select { font-family: inherit; }

button,
input,
select { color: inherit; }

button,
a,
summary,
label,
select { cursor: pointer; }

img { max-width: 100%; display: block; }

a { color: inherit; }

:focus-visible {
	outline: 2px solid #831843;
	outline-offset: 3px;
}

.display-ui,
.brand-name {
	font-family: var(--display);
	font-weight: 600;
	letter-spacing: -0.03em;
}

html[lang="id"] .display-ui,
html[lang="id"] .brand-name {
	font-family: var(--display-id);
	letter-spacing: 0;
}

.pname { font-family: var(--display); letter-spacing: -0.03em; }

.eyebrow {
	margin: 0 0 8px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

h1, h2, h3, p { overflow-wrap: break-word; }

/* 로그인 */

.login {
	min-height: 100vh;
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
}

.visual {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding: 72px 56px;
	color: #ffffff;
	background:
		radial-gradient(420px 320px at 18% 18%, rgba(255, 255, 255, 0.28), transparent 62%),
		linear-gradient(155deg, #be185d 0%, #831843 46%, #5b21b6 100%);
	overflow: hidden;
}

.visual::after {
	content: "";
	position: absolute;
	width: 280px;
	height: 280px;
	right: -40px;
	top: 48px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;
}

.visual .eyebrow { color: rgba(255, 255, 255, 0.82); }

.visual h1 {
	margin: auto 0 0;
	font-size: clamp(2.6rem, 6vw, 5.2rem);
	line-height: 1.08;
	max-width: 8ch;
}

.visual .lead {
	max-width: 36ch;
	margin: 18px 0 0;
	font-size: 1.05rem;
	color: rgba(255, 255, 255, 0.92);
}

.login-panel {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px 24px;
}

.login-card {
	width: min(440px, 100%);
	background: var(--color-card);
	border: 1px solid var(--color-border);
	border-radius: 28px;
	box-shadow: var(--shadow);
	padding: 28px 26px 30px;
}

.login-card h2 {
	margin: 18px 0 6px;
	font-size: 1.7rem;
}

.login-card .hint {
	margin: 0 0 18px;
	color: var(--color-muted-foreground);
}

.form { display: grid; gap: 14px; }

.field { display: grid; gap: 6px; font-size: 0.92rem; font-weight: 600; }

input,
select {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	background: #ffffff;
	border: 1px solid var(--color-border);
	border-radius: 14px;
}

.btn-primary,
.btn-ghost,
.seg button {
	min-height: 48px;
	border-radius: 999px;
	font-weight: 700;
}

.btn-primary {
	border: 0;
	padding: 12px 22px;
	background: var(--color-primary);
	color: var(--color-on-primary);
	transition: filter 180ms ease;
}

.btn-primary:hover { filter: brightness(0.95); }

.btn-ghost {
	padding: 8px 16px;
	background: #ffffff;
	border: 1px solid var(--color-border);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 180ms ease;
}

.btn-ghost:hover { background: #fff1f6; }

.seg {
	display: inline-flex;
	gap: 4px;
	padding: 4px;
	background: #ffffff;
	border: 1px solid var(--color-border);
	border-radius: 999px;
}

.seg button {
	border: 0;
	padding: 8px 14px;
	background: transparent;
	color: var(--color-foreground);
}

.seg button[aria-pressed="true"] {
	background: var(--color-primary);
	color: var(--color-on-primary);
}

.error {
	margin: 0 0 8px;
	padding: 12px 14px;
	border: 1px solid var(--color-destructive);
	border-radius: 14px;
	color: #7f1d1d;
	background: #ffffff;
}

.error p { margin: 0 0 6px; font-weight: 700; }

.error a { color: #7f1d1d; font-weight: 700; margin-right: 14px; }

input::placeholder { color: #475569; opacity: 1; }

/* 목록 · 상세 */

.page {
	width: min(1180px, calc(100% - 32px));
	margin: 0 auto;
	padding: 8px 0 80px;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	background: rgba(253, 242, 248, 0.9);
	backdrop-filter: blur(16px);
}

.brand { display: flex; flex-direction: row; align-items: center; gap: 12px; text-decoration: none; }

.brand-name { font-size: 1.35rem; line-height: 1.2; }

.logo {
	display: block;
	width: 168px;
	height: auto;
	max-width: 70%;
	flex: 0 0 auto;
	align-self: flex-start;
}

.brand .logo {
	box-sizing: content-box;
	width: 108px;
	max-width: none;
	padding: 6px 10px;
	background: #831843;
	border-radius: 10px;
}

.header-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: flex-end;
}

.intro h1 {
	margin: 0;
	font-size: clamp(2.2rem, 5vw, 4.2rem);
	line-height: 1.12;
}

.intro .lead {
	margin: 12px 0 0;
	max-width: 46ch;
	font-size: 1.05rem;
}

.meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 14px 0 0;
	color: var(--color-muted-foreground);
	font-weight: 600;
}

.note {
	margin: 14px 0 0;
	padding: 12px 14px;
	border-radius: 14px;
	background: #ffffff;
	border: 1px solid var(--color-border);
}

.filters {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 0.8fr;
	gap: 12px;
	margin: 28px 0 12px;
}

.count { margin: 8px 0 16px; color: var(--color-muted-foreground); font-weight: 600; }

.grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

.card {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	background: var(--color-card);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	overflow: hidden;
	text-decoration: none;
	box-shadow: var(--shadow);
	transition: transform 200ms ease, box-shadow 200ms ease;
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-hover);
}

.thumb {
	position: relative;
	aspect-ratio: 1;
	background: var(--color-muted);
	overflow: hidden;
}

.thumb .ph { width: 100%; height: 100%; }

.thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 250ms ease;
}

.card:hover .thumb img { transform: scale(1.04); }

.chip,
.pill {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
}

.chip {
	position: absolute;
	top: 12px;
	left: 12px;
	color: #ffffff;
	background: #831843;
}

.discount {
	position: absolute;
	top: 12px;
	right: 12px;
	left: auto;
	color: #000000;
	background: var(--color-primary);
}

.card-body { display: grid; gap: 6px; padding: 16px 16px 18px; }

.brand-line {
	margin: 0;
	color: var(--color-muted-foreground);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.card h2,
.detail-copy h1.pname {
	margin: 0;
	font-size: 1.2rem;
	line-height: 1.35;
	font-weight: 600;
}

.price-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin: 4px 0 0; }

.now { font-size: 1.2rem; font-weight: 700; }

.was {
	color: var(--color-muted-foreground);
	text-decoration: line-through;
	font-weight: 500;
}

.flags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }

.pill { background: #fce7f3; color: #831843; }

.empty {
	padding: 56px 20px;
	text-align: center;
	background: #ffffff;
	border: 1px dashed var(--color-border);
	border-radius: var(--radius);
}

.back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	margin: 8px 0 18px;
	font-weight: 700;
	text-decoration: none;
}

.detail-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 36px;
	align-items: start;
}

.detail-photos {
	display: grid;
	gap: 0;
	line-height: 0;
}

.detail-photos img,
.detail-photos .ph {
	width: 100%;
	height: auto;
	border-radius: 0;
	border: 0;
}

.filebtn { position: relative; }

.filebtn input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	border: 0;
}

.ph {
	display: grid;
	place-items: center;
	color: #831843;
	background: linear-gradient(160deg, #f9a8d4, #f1eef5);
	text-align: center;
	padding: 16px;
	font-weight: 700;
}

.subhead {
	margin: 22px 0 0;
	font-size: 0.95rem;
	font-family: var(--font);
	letter-spacing: 0;
}

.detail-copy .brand-line { letter-spacing: 0.08em; }

.detail-copy h1.pname { font-size: clamp(1.8rem, 3vw, 2.6rem); }

.code, .path { margin: 8px 0 0; color: var(--color-muted-foreground); }

.detail-copy .now { font-size: 1.8rem; }

.ranks { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }

.ranks li {
	padding: 8px 12px;
	background: #ffffff;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	font-weight: 600;
}

.article { margin-top: 28px; }

.article h2 { margin: 0 0 8px; font-size: 1.35rem; }

.spec { padding: 12px 0; border-top: 1px solid var(--color-border); }

.spec h3,
.spec summary {
	margin: 0;
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--color-muted-foreground);
}

.spec summary { min-height: 44px; display: flex; align-items: center; }

.spec p { margin: 8px 0 0; white-space: pre-wrap; }

@media (min-width: 768px) {
	.grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
	.grid { grid-template-columns: 1fr 1fr 1fr; }
	.page { width: min(1180px, calc(100% - 64px)); }
}

@media (max-width: 1023px) {
	.filters { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
	.detail-layout { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
	.site-header {
		flex-direction: column;
		align-items: flex-start;
	}
	.header-actions { width: 100%; justify-content: flex-start; }
	.brand-name { white-space: nowrap; }
	.login { grid-template-columns: 1fr; }
	.visual { min-height: 280px; padding: 88px 24px 32px; }
	.visual h1 { max-width: none; }
	.filters { grid-template-columns: 1fr; }
	.page { width: min(1180px, calc(100% - 28px)); }
}

@media (min-width: 1440px) {
	.page { width: min(1320px, calc(100% - 80px)); }
	.grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
	.card:hover,
	.card:hover .thumb img { transform: none; }
}
