/* =================================================================
 * shop.css — Shop · SPF 컬렉션 (피그마 v2 02 SHOP · SPF COLLECTION (PC) 1440 · (Mobile) 390)
 * PC : 배너 360 · 칩/정렬 띠 93 · 왼쪽 필터 240 + 간격 48 + 상품 288 세 칸 (간격 24) · SPF 가이드
 * 모바일 : 배너 사진 200 위 · 칩 + Filter/Sort 두 칸 · 상품 두 칸 · 필터는 아래에서 올라오는 창
 * 상품 카드(h-spf__) · 배지 · 제목 · 버튼은 home.css 를 같이 쓴다.
 * ================================================================= */

.shop { color: var(--ink); }
.shop ~ .popcat { margin-block-start: 0; }

/* ---- 경로 ---- */
.shop-crumb { padding-block: 10px 10px; font-size: 12px; line-height: 17px; color: #6a6a6a; }
.shop-crumb a:hover { color: var(--ink); }
@media (min-width: 900px) { .shop-crumb { padding-block: 22px 18px; font-size: 13px; line-height: 20.1px; } }

/* ---- ① 배너 (Sky · PC 높이 360 · 오른쪽 사진 720 · 제목 52 / 모바일 사진 390×200 위 · 제목 34) ---- */
.shop-hero { position: relative; background: var(--sky); overflow: hidden; }
.shop-hero__media { display: block; width: 100%; height: 200px; object-fit: cover; object-position: 50% 45%; }
.shop-hero__inner { padding-block: 24px 28px; }
.shop-hero__title { margin: 0; font-family: var(--font-point); font-weight: var(--fw-point); font-size: 34px; line-height: 38.1px; letter-spacing: -0.5px; }
.shop-hero__text { margin: 10px 0 0; font-size: 15px; line-height: 24px; color: #6a6a6a; }
.shop-hero__count { margin: 16px 0 0; font-size: 14px; line-height: 21.7px; color: #6a6a6a; }
@media (min-width: 900px) {
	.shop-hero { display: flex; align-items: center; min-height: 360px; }
	.shop-hero__media { position: absolute; top: 0; right: 0; width: 50%; height: 100%; }
	.shop-hero__inner { padding-block: 0; }
	.shop-hero__body { width: 526px; max-width: 45%; }
	.shop-hero__title { font-size: 52px; line-height: 58.2px; }
	.shop-hero__text { margin-block-start: 16px; font-size: 18px; line-height: 28.8px; }
}

/* ---- ② 칩 · 정렬 띠 (PC 높이 93 · 아래 선 / 모바일 칩 + 두 칸 + 상품 수) ---- */
.shop-bar { border-bottom: 1px solid #e4e7ea; }
.shop-bar__inner { padding-block: 16px 14px; }
.shop-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.shop-chips::-webkit-scrollbar { display: none; }
.shop-chips button { flex: none; height: 34px; padding-inline: 14px; border: 1px solid #e4e7ea; border-radius: 17px; background: #fff; font-family: var(--font-body); font-size: 13px; color: var(--ink); cursor: pointer; white-space: nowrap; }
.shop-chips button.is-on { border-color: var(--ink); background: var(--ink); color: #fff; }
.shop-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-block-start: 14px; }
.shop-tool { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; border: 1px solid #e4e7ea; border-radius: 22px; background: #fff; font-family: var(--font-body); font-size: 14px; color: var(--ink); cursor: pointer; }
.shop-sort { display: flex; align-items: center; gap: 6px; }
.shop-sort__label { font-size: 14px; line-height: 21.7px; color: #6a6a6a; white-space: nowrap; }
.shop-sort__select {
	width: 100%; height: 44px; padding: 0 40px 0 22px;
	border: 1px solid #e4e7ea; border-radius: 22px; background: #fff url("../img/haruharuwonder/icon-down.svg") no-repeat right 16px center / 22px 22px;
	font-family: var(--font-body); font-size: 14px; color: var(--ink); text-align: center; text-align-last: center;
	-webkit-appearance: none; appearance: none; cursor: pointer;
}
.shop-bar__count { margin: 14px 0 0; font-size: 13px; line-height: 20.1px; color: #6a6a6a; }
@media (min-width: 900px) {
	.shop-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 92px; padding-block: 0; }
	.shop-chips button { height: 38px; padding-inline: 18px; border-radius: 19px; }
	.shop-tools { display: block; margin: 0; }
	.shop-sort { gap: 4px; }
	.shop-sort__select { width: auto; height: 40px; padding: 0 40px 0 17px; border-radius: 20px; background-position: right 14px center; text-align: left; text-align-last: left; }
}

/* ---- ③ 필터 + 상품 (PC 왼쪽 240 · 간격 48 · 상품 세 칸 / 모바일 필터 창) ---- */
.shop-body { padding-block: 20px 56px; }
@media (min-width: 900px) {
	.shop-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); column-gap: 48px; align-items: start; padding-block: 40px 100px; }
}

/* 필터 : 모바일은 아래에서 올라오는 창 (body.is-filter-open) */
.shop-filter {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
	max-height: 86vh; overflow-y: auto; padding: 18px 20px 24px;
	border-radius: 20px 20px 0 0; background: #fff;
	transform: translateY(100%); visibility: hidden; transition: transform .25s var(--ease), visibility .25s;
}
.is-filter-open .shop-filter { transform: none; visibility: visible; }
.shop-filter__backdrop { position: fixed; inset: 0; z-index: 94; background: rgb(0 0 0 / .4); }
.shop-filter__backdrop[hidden] { display: none; }
.shop-filter__head { display: flex; align-items: center; justify-content: space-between; }
.shop-filter__title { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-family: var(--font-point); font-size: 13px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink); }
.shop-filter__group { border-bottom: 1px solid #e4e7ea; }
.shop-filter__group summary { display: flex; align-items: center; justify-content: space-between; padding: 20px 0 8px; list-style: none; cursor: pointer; font-family: var(--font-point); font-size: 14px; font-weight: 700; color: var(--ink); }
.shop-filter__group summary::-webkit-details-marker { display: none; }
.shop-filter__group summary::after { content: ""; width: 22px; height: 22px; background: url("../img/haruharuwonder/icon-down.svg") no-repeat center / 22px 22px; transition: transform .2s var(--ease); }
.shop-filter__group:not([open]) summary { padding-block-end: 18px; }
.shop-filter__group label { display: flex; align-items: center; gap: 10px; padding-block: 5px; font-size: 14px; line-height: 1.4; color: var(--ink); cursor: pointer; }   /* 줄 간격 약 30 (시안) */
.shop-filter__group label:last-child { padding-block-end: 16px; }
.shop-filter__group input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.shop-filter__price { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-block: 6px 18px; }
.shop-filter__price input { width: 100%; height: 40px; padding-inline: 12px; border: 1px solid #e4e7ea; border-radius: 10px; font-family: var(--font-body); font-size: 14px; color: var(--ink); }
.shop-filter__price input::placeholder { color: #6a6a6a; }
.shop-filter__btns { display: flex; gap: 10px; margin-block-start: 21px; }
.shop-filter__btn { height: 40px; padding-inline: 18px; font-size: 11px; }
@media (max-width: 899px) { .shop-filter__btns .shop-filter__btn { flex: 1; height: 48px; } }
@media (min-width: 900px) {
	.shop-filter { position: static; max-height: none; overflow: visible; padding: 0; border-radius: 0; transform: none; visibility: visible; transition: none; }
	.shop-filter__head { margin-block-end: 0; }
}

/* 상품 : 두 칸 · PC 세 칸 (간격 24 · 줄 간격 36). 둘째 칸에 "Just launched" 배너 (PC 두 칸 × 첫 줄 / 모바일 화면 폭) */
.shop-grid.h-spf__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; gap: 28px 14px; margin: 0; }
.shop-grid.h-spf__list > li:nth-child(n+5) { display: flex; }
.shop-grid[hidden] { display: none !important; }
.shop-launch { grid-column: 1 / -1; }
.shop-launch__link { position: relative; display: block; height: 100%; min-height: 320px; border-radius: 16px; overflow: hidden; background: var(--sky); }
.shop-launch__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shop-launch__card { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-radius: 14px; background: rgb(255 255 255 / .92); }
.shop-launch__body { display: grid; }
.shop-launch .h-eyebrow { margin: 0; }
.shop-launch__title { margin-block-start: 6px; font-family: var(--font-point); font-weight: var(--fw-point); font-size: 20px; line-height: 1.25; color: var(--ink); }
.shop-launch__text { margin-block-start: 8px; font-size: 14px; line-height: 21.7px; color: #6a6a6a; }
.shop-launch__btn { flex: none; width: 156px; }
@media (min-width: 900px) {
	.shop-grid.h-spf__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; }
	.shop-grid .h-spf__media { aspect-ratio: 288 / 340; }
	.shop-launch { grid-column: span 2; }
	.shop-launch__link { min-height: 750px; border-radius: 20px; }   /* 시안 600×750 : 같은 줄 첫 카드도 750 으로 늘어나 버튼이 아래에 붙는다 */
	.shop-launch__card { left: 32px; right: 32px; bottom: 32px; padding: 24px 28px; border-radius: 18px; }
	.shop-launch__title { margin-block-start: 8px; font-size: 26px; }
}

.shop-empty { padding: 40px 20px; border: 1px dashed #e4e7ea; border-radius: 18px; text-align: center; }
.shop-empty[hidden] { display: none; }
.shop-empty .h-btn { margin-block-start: 18px; }

/* ---- ④ SPF 고르는 법 (Mist · 왼쪽 글 566 · 오른쪽 흰 카드 273×94 2×2 / 모바일 세로) ---- */
.shop-guide { display: none; padding-block: 52px; background: var(--mist); }   /* 모바일 시안에는 없음 (11/24 합의) */
.shop-guide .h-eyebrow { margin-block-end: 11px; }
.shop-guide__text { margin-block-start: 12px; }
.shop-guide__link { margin-block-start: 20px; }
.shop-guide__list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-block-start: 24px; }
.shop-guide__list li { padding: 18px 16px; border-radius: 16px; background: #fff; }
.shop-guide__name { margin: 0; font-family: var(--font-point); font-size: 17px; color: var(--ink); }
.shop-guide__desc { margin: 4px 0 0; font-size: 13px; line-height: 20px; color: #6a6a6a; }
@media (min-width: 900px) {
	.shop-guide { display: block; padding-block: 90px; }
	.shop-guide__inner { display: grid; grid-template-columns: 566px 560px; justify-content: space-between; align-items: center; }
	.shop-guide .h-eyebrow { margin-block-end: 18px; }
	.shop-guide__text { margin-block-start: 16px; }
	.shop-guide__link { margin-block-start: 26px; }
	.shop-guide__list { gap: 14px; margin: 0; }
	.shop-guide__list li { min-height: 94px; padding: 22px; border-radius: 18px; }
	.shop-guide__name { font-size: 18px; }
	.shop-guide__desc { margin-block-start: 6px; font-size: 14px; line-height: 21.7px; }
}
