/* 기존 Astra 헤더 숨기고(홈 전용 헤더 사용) 컨테이너 여백 제거 */
body.home .site-content .ast-container { max-width: none; padding: 0; display: block; }
body.home #primary { margin: 0; padding: 0; width: 100%; }
body.home article.page, body.home .entry-content { margin: 0; padding: 0; }
body.home .ast-separate-container .ast-article-post,
body.home .ast-separate-container .site-main > .ast-row { background: transparent; padding: 0; }

.yjh {
	--blue: #1f6bff;
	--ink: #1a1a1a;
	--sub: #6b7280;
	--line: #e5e7eb;
	--red: #e5333d;
	color: var(--ink);
	font-size: 15px;
	line-height: 1.5;
	letter-spacing: -0.01em;
}
.yjh *, .yjh *::before, .yjh *::after { box-sizing: border-box; }
.yjh a { color: inherit; text-decoration: none; }
.yjh ul { list-style: none; margin: 0; padding: 0; }
.yjh img { display: block; max-width: 100%; height: auto; }
.yjh button { font: inherit; cursor: pointer; }
.yjh h2 { margin: 0; }
.yjh-inner { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ---------- 히어로 ---------- */
.yjh-hero { position: relative; overflow: hidden; }
.yjh-hero__track { position: relative; height: 400px; }
.yjh-slide {
	position: absolute; inset: 0; background: var(--bg); opacity: 0; visibility: hidden; transition: opacity .6s ease;
}
.yjh-slide.is-active { opacity: 1; visibility: visible; }
.yjh-slide__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.yjh-slide__text { max-width: 480px; }
.yjh-slide__eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--blue); margin-bottom: 14px; }
.yjh-slide__text h2 { font-size: 44px; line-height: 1.2; font-weight: 800; margin-bottom: 14px; word-break: keep-all; }
.yjh-slide__text p { font-size: 17px; color: #444; margin: 0 0 26px; word-break: keep-all; }
.yjh-slide__imgs { position: relative; width: 520px; height: 100%; flex: none; }
.yjh-slide__img { position: absolute; display: block; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 18px 40px rgba(0,0,0,.14); }
.yjh-slide__img img { width: 100%; height: 100%; object-fit: cover; }
.yjh-slide__img--1 { width: 290px; height: 290px; right: 150px; top: 58px; }
.yjh-slide__img--2 { width: 215px; height: 215px; right: 0; bottom: 42px; }
.yjh-hero__ctrl {
	position: absolute; left: 0; right: 0; bottom: 18px; display: flex; align-items: center; justify-content: flex-start; gap: 6px;
	pointer-events: none;
}
.yjh-hero__ctrl > * { pointer-events: auto; }
.yjh-hero__ctrl button {
	width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0,0,0,.35); color: #fff; font-size: 18px; line-height: 1; padding: 0;
}
.yjh-hero__ctrl button:hover { background: rgba(0,0,0,.6); }
.yjh-hero__pause { font-size: 10px !important; }
.yjh-hero__count { background: rgba(0,0,0,.35); color: #fff; border-radius: 999px; padding: 4px 14px; font-size: 13px; }
.yjh-hero__count b { font-weight: 700; }

/* ---------- 버튼 ---------- */
.yjh-btn { display: inline-block; padding: 13px 28px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 1.5px solid transparent; transition: .15s; }
.yjh-btn--dark { background: var(--ink); color: #fff !important; }
.yjh-btn--dark:hover { background: #000; }
.yjh-btn--line { border-color: #c9cdd4; background: #fff; }
.yjh-btn--line:hover { border-color: var(--ink); }
.yjh-btn--white { background: #fff; color: var(--blue) !important; }

/* ---------- 퀵메뉴 ---------- */
.yjh-quick { padding-top: 34px; padding-bottom: 8px; }
.yjh-quick ul { display: flex; justify-content: space-between; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
.yjh-quick ul::-webkit-scrollbar { display: none; }
.yjh-quick li { flex: 1 0 96px; text-align: center; }
.yjh-quick__circle { display: block; width: 92px; height: 92px; margin: 0 auto 10px; border-radius: 50%; overflow: hidden; background: #f3f4f6; border: 1px solid var(--line); }
.yjh-quick__circle img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.yjh-quick a:hover .yjh-quick__circle img { transform: scale(1.08); }
.yjh-quick__label { font-size: 14px; font-weight: 600; white-space: nowrap; }

/* ---------- 섹션 공통 ---------- */
.yjh-sec { padding-top: 56px; }
.yjh-sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.yjh-sec__title { font-size: 26px; font-weight: 800; }
.yjh-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.yjh-tabs button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 18px; font-size: 14px; color: #444; }
.yjh-tabs button.is-active { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }
.yjh-panel { display: none; }
.yjh-panel.is-active { display: block; }
.yjh-more { text-align: center; margin-top: 30px; }

/* ---------- 상품 카드 ---------- */
.yjh-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 30px 18px; }
.yjh-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.yjh-card__link { display: block; }
.yjh-card__thumb { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: #f4f5f7; margin-bottom: 12px; }
.yjh-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.yjh-card__link:hover .yjh-card__thumb img { transform: scale(1.05); }
.yjh-card__rank {
	position: absolute; left: 0; top: 0; min-width: 30px; height: 30px; padding: 0 8px; display: grid; place-items: center;
	background: var(--ink); color: #fff; font-size: 14px; font-weight: 800; border-bottom-right-radius: 10px;
}
.yjh-grid li:nth-child(-n+3) .yjh-card__rank { background: var(--blue); }
.yjh-card__name {
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	font-size: 14.5px; line-height: 1.45; min-height: 42px; margin-bottom: 8px; word-break: keep-all;
}
.yjh-card__meta { display: block; }
.yjh-card__price { font-size: 17px; font-weight: 800; }
.yjh-card__rate { color: var(--red); font-weight: 800; font-size: 17px; margin-right: 4px; }
.yjh-card__reg { color: #9ca3af; font-size: 13px; margin-left: 4px; }

/* ---------- 오늘의 추천 ---------- */
.yjh-today { display: grid; grid-template-columns: 250px 1fr; gap: 34px; align-items: start; }
.yjh-today .yjh-sec__title { margin-bottom: 20px; }
.yjh-countdown { display: flex; align-items: center; gap: 4px; font-size: 44px; font-weight: 800; color: var(--blue); font-variant-numeric: tabular-nums; }
.yjh-countdown i { font-style: normal; opacity: .5; }
.yjh-today__note { margin: 12px 0 0; color: var(--sub); font-size: 14px; word-break: keep-all; }

/* ---------- 카테고리 카드 ---------- */
.yjh-feat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.yjh-feat__card { background: var(--bg); border-radius: 16px; padding: 18px; }
.yjh-feat__main { display: block; text-align: center; }
.yjh-feat__img { display: block; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: #fff; margin-bottom: 14px; }
.yjh-feat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.yjh-feat__main:hover .yjh-feat__img img { transform: scale(1.05); }
.yjh-feat__main strong { display: block; font-size: 19px; font-weight: 800; }
.yjh-feat__main em { font-style: normal; color: var(--sub); font-size: 13.5px; }
.yjh-feat__subs { margin-top: 16px; border-top: 1px solid rgba(0,0,0,.08); padding-top: 12px; display: grid; gap: 10px; }
.yjh-feat__subs a { display: grid; grid-template-columns: 54px 1fr; gap: 4px 12px; align-items: center; }
.yjh-feat__subs a > span:first-child { grid-row: 1 / 3; width: 54px; height: 54px; border-radius: 8px; overflow: hidden; background: #fff; }
.yjh-feat__subs img { width: 100%; height: 100%; object-fit: cover; }
.yjh-feat__sname { font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; align-self: end; }
.yjh-feat__sprice { font-size: 13px; }
.yjh-feat__sprice .yjh-card__price, .yjh-feat__sprice .yjh-card__rate { font-size: 13.5px; }

/* ---------- 배너 ---------- */
.yjh-banner {
	margin-top: 56px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
	background: linear-gradient(100deg, #1f6bff, #5b9bff); color: #fff; border-radius: 18px; padding: 34px 40px;
}
.yjh-banner strong { display: block; font-size: 24px; font-weight: 800; margin-bottom: 4px; word-break: keep-all; }
.yjh-banner span { opacity: .9; }

.yjh > .yjh-sec:last-child { padding-bottom: 80px; }

/* ---------- 반응형 ---------- */
@media (max-width: 1024px) {
	.yjh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.yjh-feat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.yjh-today { grid-template-columns: 1fr; gap: 20px; }
	.yjh-slide__text h2 { font-size: 36px; }
	.yjh-slide__imgs { width: 400px; }
	.yjh-slide__img--1 { width: 230px; height: 230px; right: 110px; top: 70px; }
	.yjh-slide__img--2 { width: 170px; height: 170px; }
}
@media (max-width: 720px) {
	.yjh-hero__track { height: 460px; }
	.yjh-slide__in { flex-direction: column; align-items: flex-start; justify-content: flex-start; padding-top: 30px; gap: 0; }
	.yjh-slide__text h2 { font-size: 30px; }
	.yjh-slide__text p { font-size: 15px; margin-bottom: 18px; }
	.yjh-slide__imgs { width: 100%; height: 190px; margin-top: 18px; }
	.yjh-slide__img--1 { width: 150px; height: 150px; right: auto; left: 8px; top: 10px; }
	.yjh-slide__img--2 { width: 120px; height: 120px; right: auto; left: 150px; bottom: 6px; }
	.yjh-hero__ctrl { bottom: 12px; }
	.yjh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
	.yjh-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.yjh-sec { padding-top: 40px; }
	.yjh-sec__title { font-size: 22px; }
	.yjh-countdown { font-size: 36px; }
	.yjh-feat { grid-template-columns: 1fr; }
	.yjh-banner { padding: 26px 22px; }
	.yjh-banner strong { font-size: 19px; }
	.yjh-quick__circle { width: 76px; height: 76px; }
}


/* 모바일/태블릿에서 열 수에 맞춰 짝수로 보이도록: 추천상품은 1025px 미만에서 6개(2열/3열 모두 꽉 참), 데스크톱은 5개 */
@media (min-width: 1025px) { .yjh-grid--rec > li:nth-child(n+6) { display: none; } }
/* 오늘의 추천은 720px 이하(2열)에서 4개, 그 위는 3개 */
@media (min-width: 721px) { .yjh-grid--today > li:nth-child(n+4) { display: none; } }
