/*
 * 꿀통 1.0.0 — agaya v3.0.0 스타일 포크, 꿀색 팔레트 (2026-10-09).
 * 데스크톱(1024px~): 왼쪽 메뉴 · 본문 · 오른쪽 aside 3단. 모바일: 상단 검색바 + 하단 6탭.
 * 불변 캐시 파일 — 수정 시 버전 파일명을 올린다.
 */

:root {
	--bg: #FBF8F1;
	--surface: #FFFFFF;
	--ink: #2A221D;
	--sub: #5F534A;
	--muted: #968980;
	--line: #EEE6D3;
	--soft: #F7F0DF;
	--accent: #A85F08;
	--accent-ink: #8A4C05;
	--red: #E5484D;
	--amber: #B87400;
	--blue: #1F6FB2;
	--green: #1D8A5B;
	--r: 12px;
	--r-sm: 8px;
	--gap: 16px;
	--shadow: 0 1px 2px rgba(42, 34, 29, 0.05), 0 4px 14px rgba(42, 34, 29, 0.06);
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ── 기본 ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
	font-size: 14px;
	line-height: 1.5;
	letter-spacing: -0.01em;
	-webkit-font-smoothing: antialiased;
	word-break: keep-all;
	overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.ag-skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--ink); color: #FFF; padding: 8px 12px; border-radius: var(--r-sm); }
.ag-skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── 레이아웃 ── */
.agaya-sidenav, .agaya-aside { display: none; }
.agaya-shell { min-width: 0; min-height: 100vh; }
.ag-main { padding: 0 var(--gap) 96px; }

.ag-topbar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px var(--gap);
	background: var(--surface);
	border-bottom: 1px solid var(--line);
	position: sticky;
	top: 0;
	z-index: 20;
}
.ag-logo { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 18px; letter-spacing: -0.03em; flex-shrink: 0; }
.ag-logo em { color: var(--accent); font-style: normal; }
.ag-search { flex: 1; min-width: 0; }
.ag-search input {
	width: 100%;
	height: 38px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--soft);
	font-size: 14px;
}
.ag-search input:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.ag-notice { margin: 0 calc(-1 * var(--gap)); padding: 7px var(--gap); font-size: 12.5px; font-weight: 600; color: #6A3A2B; background: #FBE9DF; text-align: center; }
.agaya-shell > .ag-notice { margin: 0; }

.ag-footer { padding: 24px var(--gap) 96px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.ag-footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 8px; font-weight: 600; color: var(--sub); }

.agaya-tabbar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 30;
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	background: var(--surface);
	border-top: 1px solid var(--line);
	padding: 6px 0 max(6px, env(safe-area-inset-bottom));
}
.agaya-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 10.5px; color: var(--muted); }
.agaya-tabbar a .ico { font-size: 17px; line-height: 1.3; }
.agaya-tabbar a.on { color: var(--ink); font-weight: 700; }

/* ── 머리·위치·칩·탭 ── */
.ag-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 12px 0 0; font-size: 12px; color: var(--muted); }
.ag-crumbs a:hover { color: var(--ink); }
.ag-crumbs [aria-current] { color: var(--sub); font-weight: 600; }

.ag-page-head { padding: 10px 0 8px; }
.ag-page-head h1 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.ag-page-head h1 small { font-size: 13px; font-weight: 600; color: var(--muted); }
.ag-page-head p { margin-top: 4px; font-size: 13px; color: var(--sub); }

.ag-section { margin-top: 24px; }
.ag-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 10px; }
.ag-head h2, .ag-head h3 { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.ag-head h2 small { font-size: 13px; color: var(--muted); font-weight: 600; }
.ag-head-sub { font-size: 12px; color: var(--muted); }
.ag-more { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.ag-more:hover { color: var(--accent-ink); }

.ag-chips { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0; margin: 4px 0; scrollbar-width: none; }
.ag-chips::-webkit-scrollbar { display: none; }
.ag-chip {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	font-size: 13px;
	color: var(--sub);
	white-space: nowrap;
}
.ag-chip span { font-size: 11px; color: var(--muted); }
.ag-chip.on { background: var(--ink); border-color: var(--ink); color: #FFF; font-weight: 700; }
.ag-chip.on span { color: rgba(255, 255, 255, 0.7); }
.ag-chips.is-sub .ag-chip { padding: 4px 10px; font-size: 12px; }

.ag-tabs { display: flex; gap: 4px; padding: 4px; margin: 4px 0 8px; border-radius: 12px; background: var(--soft); }
.ag-tabs a { flex: 1; text-align: center; padding: 8px 4px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--sub); }
.ag-tabs a.on { background: var(--surface); color: var(--ink); font-weight: 800; box-shadow: var(--shadow); }

.ag-toolbar { display: flex; justify-content: flex-end; margin: 4px 0 10px; }
.agaya-sort { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 10px; background: var(--soft); }
.agaya-sort-link { padding: 4px 10px; border-radius: 8px; font-size: 12.5px; color: var(--sub); }
.agaya-sort-link.active { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: var(--shadow); }

.agaya-pagination { display: flex; justify-content: center; gap: 4px; margin: 20px 0; }
.agaya-pagination a { min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); font-size: 13px; }
.agaya-pagination a.current { background: var(--ink); color: #FFF; border-color: var(--ink); font-weight: 700; }

.ag-empty { padding: 36px 16px; text-align: center; font-size: 13px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); }
.ag-muted { font-size: 13px; color: var(--muted); }
.ag-dot { display: inline-block; width: 9px; height: 9px; border-radius: 999px; flex-shrink: 0; }

/* ── 배지 ── */
.agaya-badge { display: inline-block; padding: 2px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.agaya-badge.low-hit { background: #FDE8E8; color: var(--red); }
.agaya-badge.low-near { background: #FFF1D6; color: var(--amber); }

/* ── 상품 카드 그리드 (상품 1개여도 한 칸만 차지) ── */
.ag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ag-rail {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 152px;
	gap: 12px;
	overflow-x: auto;
	padding-bottom: 6px;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
}
.ag-rail > .agaya-row { scroll-snap-align: start; }

.agaya-row {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	padding: 8px 8px 10px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r);
	transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease);
}
.agaya-row.is-near { border-color: #F3DDB0; }
/* 6개월 최저가 카드: 붉은 테두리 맥박 + 사진 위로 빛이 지나감 + 가격 강조 */
.agaya-row.is-low { border: 1.5px solid #EE8C8F; background: linear-gradient(180deg, #FFF7F7, var(--surface) 55%); animation: ag-up 0.4s var(--ease) both, ag-glow 2.6s ease-in-out 0.6s infinite; }
.agaya-row.is-low .agaya-media { overflow: hidden; border-radius: var(--r-sm); }
.agaya-row.is-low .agaya-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%); transform: translateX(-120%); animation: ag-shine 3.2s ease-in-out 1s infinite; pointer-events: none; }
.agaya-row.is-low .agaya-badge.low-hit { background: var(--red); color: #FFF; font-size: 11px; padding: 3px 8px; }
.agaya-row.is-low .ag-card-price b { color: var(--red); }
@keyframes ag-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); } 50% { box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.12), 0 6px 18px rgba(229, 72, 77, 0.18); } }
@keyframes ag-shine { 0% { transform: translateX(-120%); } 45%, 100% { transform: translateX(120%); } }
.agaya-media { position: relative; display: block; margin-bottom: 5px; }
.agaya-thumb {
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: var(--r-sm);
	object-fit: cover;
	background: var(--soft);
}
.agaya-thumb.is-empty, .ag-mini-thumb.is-empty, .ag-p-img.is-empty { display: grid; place-items: center; font-size: 40px; background: linear-gradient(135deg, #FBF1E8, #F3E6DA); }
.agaya-media .agaya-badge { position: absolute; left: 6px; bottom: 6px; font-size: 10.5px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.agaya-fav {
	position: absolute;
	right: 6px;
	bottom: 6px;
	width: 28px;
	height: 28px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
	font-size: 15px;
	line-height: 1;
	color: #B9ACA1;
	cursor: pointer;
}
.agaya-fav.on { color: #F5A623; }
.ag-rank {
	position: absolute;
	left: 6px;
	top: 6px;
	z-index: 1;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	display: grid;
	place-items: center;
	border-radius: 7px;
	background: var(--ink);
	color: #FFF;
	font-size: 12px;
	font-weight: 800;
}
.ag-rank.top { background: var(--accent); }
.ag-card-name {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.38;
	min-height: 2.76em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ag-card-opt { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-card-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; margin-top: auto; padding-top: 2px; }
.ag-card-price b { font-size: 16px; font-weight: 800; letter-spacing: -0.03em; }
.ag-card-price small { font-size: 12px; font-weight: 600; margin-left: 1px; }
.ag-drop { font-style: normal; font-size: 12.5px; font-weight: 800; color: var(--red); }
.ag-card-unit { font-size: 11.5px; color: var(--sub); }

/* ── 육아 지수 ── */
.ag-ix-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.ag-ix {
	display: flex;
	flex-direction: column;
	gap: 1px;
	padding: 9px 10px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
}
.ag-ix-name { font-size: 12px; font-weight: 600; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-ix-val { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ag-ix.is-cheap .ag-ix-val { color: var(--red); }
.ag-ix.is-dear .ag-ix-val { color: var(--blue); }
.ag-ix.is-none { opacity: 0.55; }
.ag-ix.is-total { background: var(--ink); border-color: var(--ink); color: #FFF; }
.ag-ix.is-total .ag-ix-name, .ag-ix.is-total .agaya-ix-chg { color: rgba(255, 255, 255, 0.75); }
.ag-ix.is-total .ag-ix-val { color: #FFF; }
.agaya-ix-chg { font-size: 11px; font-weight: 700; color: var(--muted); }
.agaya-ix-chg.down { color: var(--red); }
.agaya-ix-chg.rise { color: var(--blue); }
.ag-low-grid { grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 6px; }
.ag-low-tile { flex-direction: row; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 10px; border-radius: 9px; }
.ag-low-tile .ag-ix-name { font-size: 12.5px; }
.ag-low-tile .ag-ix-val { font-size: 15px; }
.ag-low-tile .ag-ix-val small { font-size: 11px; font-weight: 600; margin-left: 1px; }
.ag-low-tile.is-hot .ag-ix-val { color: var(--red); }
.ag-low-tile.is-hot:not(.is-total) { border-color: #F5C2C3; background: #FFF7F7; }
.ag-ix.is-total.is-hot .ag-ix-val { color: #FF9B9E; }
.ag-ix-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 10px 14px; margin: 2px 0 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); font-size: 13px; color: var(--sub); }
.ag-ix-line b { font-size: 20px; font-weight: 800; color: var(--ink); }
.ag-ix-line.is-cheap b { color: var(--red); }
.ag-ix-line.is-dear b { color: var(--blue); }
.ag-ix-say { font-size: 12px; color: var(--muted); }

/* ── 홈 히어로 ── */
.ag-hero {
	position: relative;
	display: grid;
	gap: 16px;
	margin-top: 16px;
	padding: 24px 22px;
	border-radius: 18px;
	background: radial-gradient(120% 140% at 100% 0%, #FFE3D6 0%, #FFF4EC 45%, #FFFFFF 100%);
	border: 1px solid #F3DCCD;
	overflow: hidden;
	animation: ag-up 0.5s var(--ease) both;
}
.ag-hero::after { content: '🍯'; position: absolute; right: -12px; bottom: -28px; font-size: 140px; opacity: 0.07; transform: rotate(-18deg); pointer-events: none; }
.ag-hero-eyebrow { font-size: 12.5px; font-weight: 700; color: var(--accent); }
.ag-hero h1 { margin-top: 6px; font-size: 25px; font-weight: 800; line-height: 1.32; letter-spacing: -0.035em; }
.ag-hero h1 em { font-style: normal; color: var(--accent); }
.ag-hero-desc { margin-top: 10px; font-size: 14px; line-height: 1.65; color: var(--sub); max-width: 560px; }
.ag-hero-stats { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 14px 0 0; }
.ag-hero-stats dt { font-size: 11.5px; color: var(--muted); }
.ag-hero-stats dd { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.ag-hero-stats dd.is-hot { color: var(--red); }
.ag-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ag-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 700; color: var(--ink); }
.ag-btn.is-primary { background: var(--accent); border-color: var(--accent); color: #FFF; box-shadow: 0 4px 14px rgba(196, 87, 58, 0.28); }
.ag-btn:hover { border-color: #E2C9B8; }
.ag-btn.is-primary:hover { background: var(--accent-ink); }
.ag-hero-pick { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: var(--r); background: var(--surface); border: 1.5px solid #EE8C8F; box-shadow: 0 8px 24px rgba(229, 72, 77, 0.12); animation: ag-up 0.5s var(--ease) 0.15s both, ag-glow 2.6s ease-in-out 1s infinite; }
.ag-hero-pick-label { font-size: 11.5px; font-weight: 800; color: var(--red); }
.ag-hero-pick-img { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r-sm); object-fit: cover; background: var(--soft); }
.ag-hero-pick-img.is-empty { display: grid; place-items: center; font-size: 48px; background: linear-gradient(135deg, #FBF1E8, #F3E6DA); }
.ag-hero-pick-name { font-size: 13px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ag-hero-pick-price { display: flex; align-items: baseline; gap: 6px; }
.ag-hero-pick-price b { font-size: 18px; font-weight: 800; color: var(--red); }
.ag-hero-pick-price em { font-style: normal; font-size: 13px; font-weight: 800; color: var(--red); }
.ag-hero-pick-note { font-size: 11px; color: var(--muted); }

/* ── 전체 분류·브랜드 허브 ── */
.ag-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ag-cat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.ag-cat-top { display: flex; align-items: center; gap: 10px; }
.ag-cat-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--soft); font-size: 20px; }
.ag-cat-name { flex: 1; display: flex; flex-direction: column; font-size: 15px; font-weight: 800; }
.ag-cat-name small { font-size: 12px; font-weight: 500; color: var(--muted); }
.ag-cat-ix { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ag-cat-ix.is-cheap { color: var(--red); }
.ag-cat-ix.is-dear { color: var(--blue); }
.ag-cat-ix.is-none { color: var(--muted); }
.ag-cat-kids { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.ag-cat-kids a { padding: 3px 8px; border-radius: 999px; background: var(--soft); font-size: 12px; color: var(--sub); }
.ag-cat-kids a span { color: var(--muted); font-size: 11px; }
.ag-brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ag-brand { display: flex; align-items: center; gap: 8px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); font-weight: 700; }
.ag-brand small { margin-left: auto; font-weight: 500; color: var(--muted); }

/* ── 쿠팡 베스트 목록 ── */
.ag-best { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.ag-best a { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.ag-best .ag-rank { left: 10px; top: 50%; transform: translateY(-50%); }
.ag-best img, .ag-best-img { width: 48px; height: 48px; border-radius: var(--r-sm); object-fit: cover; flex-shrink: 0; }
.ag-best-img.is-empty { display: grid; place-items: center; font-size: 22px; background: linear-gradient(135deg, #FBF1E8, #F3E6DA); }
.ag-best-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ag-best-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-best-meta { font-size: 12px; color: var(--muted); }
.ag-best-tag { font-size: 11.5px; font-weight: 700; color: var(--accent); white-space: nowrap; }

/* ── 상품 페이지 ── */
.ag-p-hero { display: grid; gap: 16px; margin-top: 8px; }
.ag-p-media { position: relative; }
.ag-p-img { width: 100%; aspect-ratio: 1 / 1; border-radius: var(--r); object-fit: contain; background: var(--surface); border: 1px solid var(--line); }
.ag-p-img.is-empty { font-size: 96px; }
.ag-p-media .agaya-badge { position: absolute; left: 12px; top: 12px; font-size: 12.5px; padding: 4px 10px; }
.ag-p-info { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ag-p-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ag-p-tags a { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: var(--soft); font-size: 12px; font-weight: 600; color: var(--sub); }
.ag-product h1 { font-size: 21px; font-weight: 800; line-height: 1.35; letter-spacing: -0.03em; }
.ag-p-opt { font-size: 13px; color: var(--muted); }
.ag-p-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.ag-p-price b { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; }
.ag-p-price b small { font-size: 16px; margin-left: 2px; }
.ag-p-unit { padding: 3px 8px; border-radius: 6px; background: var(--soft); font-size: 12.5px; font-weight: 600; color: var(--sub); }

.ag-verdict { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.ag-verdict b { font-size: 15.5px; font-weight: 800; }
.ag-verdict span { font-size: 12.5px; color: var(--sub); }
.ag-verdict.is-hot { background: #FDECEC; border-color: #F7C6C7; }
.ag-verdict.is-hot b { color: var(--red); }
.ag-verdict.is-good { background: #EAF6F0; border-color: #BFE3D0; }
.ag-verdict.is-good b { color: var(--green); }
.ag-verdict.is-wait { background: #EEF4FB; border-color: #C9DBEF; }
.ag-verdict.is-wait b { color: var(--blue); }

.ag-range { padding: 4px 2px 0; }
.ag-range-bar { position: relative; height: 8px; border-radius: 999px; background: linear-gradient(90deg, #F7C6C7, #F3E6DA 50%, #C9DBEF); }
.ag-range-now, .ag-range-avg { position: absolute; top: 50%; transform: translate(-50%, -50%); border-radius: 999px; }
.ag-range-now { left: var(--pos); width: 18px; height: 18px; background: var(--ink); border: 3px solid var(--surface); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); animation: ag-slide 0.9s var(--ease) 0.2s both; }
.ag-range-avg { width: 2px; height: 16px; border-radius: 1px; background: var(--sub); }
.ag-range-labels { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.ag-range-labels b { color: var(--red); }

.ag-p-actions { display: flex; gap: 8px; }
.ag-cta {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 50px;
	padding: 0 18px;
	border-radius: var(--r);
	background: var(--accent);
	color: #FFF;
	font-size: 16px;
	font-weight: 800;
	box-shadow: 0 4px 14px rgba(196, 87, 58, 0.32);
	transition: background 0.15s var(--ease), transform 0.15s var(--ease);
}
.ag-cta:hover { background: var(--accent-ink); }
.ag-cta:active { transform: scale(0.98); }
.ag-cta.is-off { background: var(--soft); color: var(--muted); box-shadow: none; font-size: 13.5px; font-weight: 600; cursor: default; }
.ag-p-favbox { position: static; padding: 0; border: 0; background: none; flex-shrink: 0; }
.ag-p-favbox .agaya-fav { position: static; width: auto; height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r); box-shadow: none; background: var(--surface); font-size: 13.5px; font-weight: 700; color: var(--sub); }
.ag-p-favbox .agaya-fav.on { color: var(--amber); border-color: #F3DDB0; }
.ag-p-note { font-size: 11.5px; color: var(--muted); }

.ag-p-tabs {
	position: sticky;
	top: 58px;
	z-index: 15;
	display: flex;
	gap: 4px;
	margin: 20px 0 0;
	padding: 6px 0;
	background: var(--bg);
	border-bottom: 1px solid var(--line);
	overflow-x: auto;
}
.ag-p-tabs a { flex-shrink: 0; padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--sub); }
.ag-p-tabs a:hover { background: var(--soft); color: var(--ink); }
.ag-product section[id] { scroll-margin-top: 110px; }

.ag-box { margin-top: 16px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
/* 가격 추이 차트 (agaya.js가 그림) */
.ag-period { margin-left: auto; display: inline-flex; gap: 2px; padding: 3px; border-radius: 9px; background: var(--soft); }
.ag-period button { border: 0; border-radius: 7px; padding: 4px 10px; background: none; font-size: 12px; font-weight: 600; color: var(--sub); cursor: pointer; }
.ag-period button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 800; box-shadow: var(--shadow); }
.ag-chart-stats, .ag-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin: 0 0 10px; }
.ag-chart-stats div, .ag-summary div { padding: 7px 10px; border-radius: var(--r-sm); background: var(--soft); animation: ag-fade 0.35s var(--ease) both; }
.ag-chart-stats dt, .ag-summary dt { font-size: 11.5px; color: var(--muted); }
.ag-chart-stats dd, .ag-summary dd { margin: 0; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ag-chart-stats dd.down, .ag-summary dd.is-low { color: var(--red); }
.ag-chart-stats dd.rise { color: var(--blue); }
.ag-summary .is-cheap dd { color: var(--red); }
.ag-summary .is-dear dd { color: var(--blue); }
.ag-summary { margin: 4px 0 8px; }
.ag-summary div { background: var(--surface); border: 1px solid var(--line); }
.ag-chart-plot { position: relative; height: 150px; margin: 6px 0 20px; cursor: crosshair; touch-action: pan-y; }
.ag-chart-plot svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ag-chart-area { animation: ag-fade 0.8s var(--ease) 0.3s both; }
.ag-chart-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: ag-draw 1s var(--ease) forwards; }
.ag-chart-avg { stroke: var(--sub); stroke-width: 1; stroke-dasharray: 5 4; opacity: 0.55; }
.ag-chart-avgl { position: absolute; right: 0; transform: translateY(-120%); font-size: 11px; font-weight: 700; color: var(--sub); background: rgba(255, 255, 255, 0.85); padding: 0 4px; border-radius: 4px; }
.ag-chart-pt { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 999px; background: var(--surface); border: 2.5px solid var(--sub); animation: ag-pop 0.35s var(--ease) 0.9s both; }
.ag-chart-pt b { position: absolute; left: 50%; transform: translateX(-50%); font-size: 10.5px; font-weight: 800; white-space: nowrap; }
.ag-chart-pt.is-min { border-color: var(--red); }
.ag-chart-pt.is-min b { top: 9px; color: var(--red); }
.ag-chart-pt.is-max { border-color: var(--blue); }
.ag-chart-pt.is-max b { bottom: 9px; color: var(--blue); }
.ag-chart-pt.is-now { width: 12px; height: 12px; margin: -6px 0 0 -6px; background: var(--accent); border-color: var(--surface); box-shadow: 0 0 0 0 rgba(196, 87, 58, 0.5); animation: ag-pop 0.35s var(--ease) 0.9s both, ag-ring 2s ease-out 1.3s infinite; }
.ag-chart-guide { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--ink); opacity: 0.25; pointer-events: none; }
.ag-chart-tip { position: absolute; top: -26px; transform: translateX(-50%); padding: 3px 8px; border-radius: 6px; background: var(--ink); color: #FFF; font-size: 11.5px; font-weight: 600; white-space: nowrap; pointer-events: none; }
.ag-chart-x { position: absolute; left: 0; right: 0; bottom: -18px; display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.ag-chart-empty { display: grid; place-items: center; height: 100%; text-align: center; }
@keyframes ag-draw { to { stroke-dashoffset: 0; } }
@keyframes ag-ring { 0% { box-shadow: 0 0 0 0 rgba(196, 87, 58, 0.45); } 100% { box-shadow: 0 0 0 12px rgba(196, 87, 58, 0); } }
.ag-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ag-table th { padding: 6px 4px; font-size: 11.5px; font-weight: 600; color: var(--muted); text-align: right; border-bottom: 1px solid var(--line); }
.ag-table th:first-child, .ag-table td:first-child { text-align: left; }
.ag-table td { padding: 8px 4px; text-align: right; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.ag-table tr:last-child td { border-bottom: 0; }
.ag-prose { font-size: 14px; line-height: 1.75; }
/* 문서·콘텐츠 페이지: 읽기 좋은 폭과 문단 간격 */
.ag-narrow { max-width: 780px; }
.ag-doc { padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.ag-doc > :first-child { margin-top: 0; }
.ag-prose h2, .ag-prose h3 { margin: 26px 0 8px; font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.ag-prose p { margin: 0 0 10px; }
.ag-prose ul, .ag-prose ol { margin: 0 0 12px; padding-left: 20px; }
.ag-prose li { margin: 3px 0; }
.ag-prose a { color: var(--accent); text-decoration: underline; }
.ag-prose table { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: 13px; }
.ag-prose th, .ag-prose td { padding: 8px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.ag-prose th { background: var(--soft); font-weight: 700; }

.ag-buybar {
	position: sticky;
	bottom: 62px;
	z-index: 25;
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 16px calc(-1 * var(--gap)) -96px;
	padding: 10px var(--gap);
	background: rgba(255, 255, 255, 0.96);
	border-top: 1px solid var(--line);
	backdrop-filter: blur(8px);
}
.ag-buybar-price { display: flex; flex-direction: column; min-width: 0; }
.ag-buybar-price b { font-size: 17px; font-weight: 800; }
.ag-buybar-price span { font-size: 11.5px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-buybar { flex-wrap: wrap; row-gap: 4px; }
.ag-buybar .ag-cta { min-height: 44px; font-size: 14.5px; white-space: nowrap; }
@media (max-width: 599px) { .ag-buybar .ag-cta { font-size: 13px; padding: 0 12px; } .ag-buybar .ag-cta.is-off { white-space: normal; } }
.ag-buybar-note { flex-basis: 100%; font-size: 10.5px; text-align: center; }

/* ── aside ── */
.ag-side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; }
.ag-side-title { font-size: 14px; font-weight: 800; margin: 2px 2px 8px; }
.ag-side-title small { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.ag-side-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 3px; margin-bottom: 6px; border-radius: 10px; background: var(--soft); }
.ag-side-tabs button { border: 0; border-radius: 8px; padding: 6px 2px; background: none; font-size: 12px; font-weight: 600; color: var(--sub); cursor: pointer; }
.ag-side-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); font-weight: 800; box-shadow: var(--shadow); }
.ag-mini-list { list-style: none; margin: 0; padding: 0; }
.ag-mini { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-radius: var(--r-sm); }
.ag-mini:hover { background: var(--soft); }
.ag-mini-rank { width: 14px; flex-shrink: 0; text-align: center; font-size: 12px; font-weight: 800; color: var(--accent); }
.ag-mini-thumb { width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--r-sm); object-fit: cover; background: var(--soft); }
.ag-mini-thumb.is-empty { font-size: 18px; }
.ag-mini-body { display: flex; flex-direction: column; min-width: 0; }
.ag-mini-name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-mini-price { font-size: 12px; color: var(--sub); }
.ag-mini-price b { color: var(--red); }
.ag-side-empty { padding: 14px 6px; text-align: center; font-size: 12px; color: var(--muted); }
.ag-side-panel[hidden], .ag-side-empty[hidden] { display: none; }
.ag-cmt-list { list-style: none; margin: 0; padding: 0; }
.ag-cmt-list a { display: flex; flex-direction: column; gap: 2px; padding: 8px 4px; border-top: 1px solid var(--line); }
.ag-cmt-list li:first-child a { border-top: 0; }
.ag-cmt-list a:hover .ag-cmt-text { color: var(--accent); }
.ag-cmt-text { font-size: 13px; line-height: 1.45; }
.ag-cmt-meta { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── 모든 의견 ── */
.ag-opinions { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ag-opinion { display: grid; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); animation: ag-up 0.4s var(--ease) both; }
.ag-opinion-product { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; background: var(--soft); min-width: 0; }
.ag-opinion-product:hover .ag-mini-name { color: var(--accent); }
.ag-opinion-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ag-opinion-body .agaya-comment-body { margin: 0; }
.ag-opinion-reply { align-self: flex-start; font-size: 12.5px; font-weight: 600; color: var(--accent); }
.ag-opinions > .ag-adsense { margin: 8px 0; }
.ag-side-more { float: right; font-size: 11.5px; font-weight: 600; color: var(--accent); }
@media (min-width: 760px) {
	.ag-opinion { grid-template-columns: 240px minmax(0, 1fr); align-items: start; }
}

/* ── 광고 표시·쿠팡 파트너스 고지 ── */
.ag-ad { display: inline-block; white-space: nowrap; flex-shrink: 0; margin-right: 6px; padding: 1px 6px; border-radius: 4px; font-size: 11px; font-weight: 700; line-height: 1.5; vertical-align: 1px; background: rgba(42, 34, 29, 0.08); color: var(--sub); }
.ag-cta .ag-ad { background: rgba(255, 255, 255, 0.24); color: #FFF; }
.ag-cta.is-off .ag-ad { background: rgba(42, 34, 29, 0.08); color: var(--muted); }
.ag-disclosure { font-size: 12px; line-height: 1.5; color: var(--sub); }

/* ── 애드센스 자리 — 크기를 미리 잡아 화면 밀림 방지. 넓으면 728×90, 좁으면 320×100, aside 300×250 ── */
.ag-adsense { grid-column: 1 / -1; container-type: inline-size; margin: 28px 0; text-align: center; }
.ag-grid > .ag-adsense { margin: 6px 0; }
.ag-adsense-label { margin: 0 0 4px; font-size: 11px; font-weight: 600; color: var(--muted); }
.ag-adsense-unit { display: inline-block; width: 320px; height: 100px; max-width: 100%; }
@container (min-width: 728px) { .ag-adsense-unit { width: 728px; height: 90px; } }
.ag-adsense--aside { margin: 0; container-type: normal; }
.ag-adsense--aside .ag-adsense-unit { width: 300px; height: 250px; }
.ag-adsense.is-preview .ag-adsense-unit { display: inline-grid; place-items: center; padding: 8px; border: 2px dashed #E2B9A6; border-radius: 8px; background: repeating-linear-gradient(45deg, #FFF8F3, #FFF8F3 10px, #FFF1E8 10px, #FFF1E8 20px); font-size: 12px; font-weight: 700; color: var(--accent-ink); }

/* ── 파트너스 배너 ── */
.agaya-partner-slot { position: relative; margin: 24px 0 0; padding-top: 18px; text-align: center; overflow: hidden; }
.agaya-ad-tag { position: absolute; top: 0; right: 0; font-size: 11px; color: var(--muted); }
.agaya-partner-slot .ag-disclosure { margin-top: 4px; text-align: center; }
.agaya-partner-widget { display: inline-block; max-width: 100%; }
.agaya-partner-widget iframe { max-width: 100%; }

/* ── 댓글 ── */
.agaya-comments { display: flex; flex-direction: column; }
.agaya-comments > .ag-head { margin-bottom: 14px; }
.agaya-comments-head { display: flex; justify-content: flex-end; margin: -6px 0 6px; }
.agaya-csort { display: inline-flex; gap: 2px; font-size: 12.5px; }
.agaya-csort a { padding: 3px 8px; border-radius: 6px; color: var(--muted); }
.agaya-csort a.active { background: var(--soft); color: var(--ink); font-weight: 700; }
.agaya-comment-items, .agaya-comment-items .children { list-style: none; margin: 0; padding: 0; }
.agaya-comment-items .children { padding-left: 16px; border-left: 2px solid var(--line); }
.agaya-comment { padding: 14px 2px; border-bottom: 1px solid var(--line); }
.agaya-comment-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.agaya-comment-date { color: var(--muted); }
.agaya-vote { margin-left: auto; display: inline-flex; gap: 4px; }
.agaya-vote-btn { border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; background: var(--surface); font-size: 11.5px; color: var(--muted); cursor: pointer; }
.agaya-vote-btn.active { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.agaya-comment-body { margin-top: 4px; font-size: 13.5px; line-height: 1.6; }
.agaya-comment-body p { margin: 0; }
.agaya-comment-pending { font-size: 12px; color: var(--amber); }
.agaya-comment-actions { display: flex; gap: 10px; margin-top: 4px; font-size: 12px; }
.agaya-comment-actions a, .agaya-comment-del { border: 0; background: none; padding: 0; color: var(--muted); cursor: pointer; font-size: 12px; }
.agaya-del-form { display: flex; gap: 6px; margin-top: 6px; }
.agaya-del-form input { flex: 1; min-width: 0; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.agaya-del-form button { height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; }
.agaya-del-form .confirm { background: var(--red); border-color: var(--red); color: #FFF; }
.agaya-del-error { display: block; font-size: 12px; color: var(--red); margin-top: 4px; }
.agaya-cpages { display: flex; justify-content: center; gap: 6px; margin: 10px 0; font-size: 13px; }
.agaya-comments-empty { padding: 18px 16px; border: 1px dashed var(--line); border-radius: 10px; text-align: center; font-size: 13.5px; color: var(--sub); }
.agaya-reply-title { font-size: 16px; font-weight: 800; margin: 24px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.agaya-reply-title small a { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 8px; }
/* 폼 공통 — 칸마다 이름표, 칸 사이 16px, 높이 46px */
.ag-form { display: flex; flex-direction: column; gap: 16px; margin-top: 4px; }
.ag-form > p, .ag-form > div { margin: 0; }
.ag-field-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
.ag-field { display: flex; flex-direction: column; gap: 6px; margin: 0; min-width: 0; }
.ag-field label { font-size: 13px; font-weight: 700; color: var(--ink); }
.ag-field label small { margin-left: 4px; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.ag-field input, .ag-field select, .ag-field textarea {
	width: 100%;
	min-width: 0;
	min-height: 46px;
	padding: 11px 14px;
	border: 1.5px solid var(--line);
	border-radius: 10px;
	background: var(--surface);
	font-size: 15px;
	line-height: 1.5;
	transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.ag-field textarea { min-height: 120px; resize: vertical; }
.ag-field input::placeholder, .ag-field textarea::placeholder { color: #B3A79D; }
.ag-field input:focus, .ag-field select:focus, .ag-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(196, 87, 58, 0.14); }
.agaya-agree { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--soft); font-size: 12.5px; line-height: 1.6; color: var(--sub); }
.agaya-agree label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.agaya-agree input { flex-shrink: 0; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.agaya-agree a { color: var(--accent); text-decoration: underline; }
.agaya-hp { position: absolute !important; left: -9999px; }
.form-submit { margin: 0; }
.agaya-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; font-size: 15px; padding: 0 18px; border: 0; border-radius: var(--r-sm); background: var(--ink); color: #FFF; font-weight: 700; cursor: pointer; }
.agaya-btn:disabled { background: #CFC4BA; cursor: not-allowed; }
.agaya-comment-submit, .agaya-inq-submit { width: 100%; }
@media (min-width: 600px) { .ag-field-row { grid-template-columns: 1fr 1fr; } }

/* ── 소개·문의 (콘텐츠 페이지) ── */
.agaya-about-hero { padding: 28px 0 12px; }
.agaya-about-hero h1 { font-size: 26px; font-weight: 800; line-height: 1.3; letter-spacing: -0.03em; }
.agaya-about-hero h1 em { font-style: normal; color: var(--accent); }
.agaya-about-hero p { margin-top: 10px; font-size: 14px; color: var(--sub); }
.agaya-section-head { padding: 16px 0 4px; }
.agaya-section-head h2 { font-size: 22px; font-weight: 800; }
.agaya-page-desc { font-size: 13px; color: var(--sub); margin: 4px 0 8px; }
.agaya-card { margin-top: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); font-size: 14px; line-height: 1.7; }
.agaya-card-title { font-size: 15.5px; font-weight: 800; margin: 0 0 6px; }
.agaya-card p { margin: 0; }
.agaya-about-num { font-size: 12px; font-weight: 800; color: var(--accent); }
.agaya-about-list { margin: 0; padding-left: 18px; }
.agaya-about-cta { display: flex; align-items: center; gap: 16px; margin: 20px 0; }
.agaya-link-muted { font-size: 13px; color: var(--muted); text-decoration: underline; }
.agaya-contact-types { display: grid; gap: 8px; margin: 8px 0; }
.agaya-contact-type { display: flex; flex-direction: column; padding: 10px 12px; border-radius: var(--r-sm); background: var(--soft); font-size: 13px; }
.agaya-contact-type span { color: var(--sub); font-size: 12.5px; }
.req { color: var(--red); }
.agaya-inq-error { display: block; margin-top: 6px; font-size: 12px; color: var(--red); }
.agaya-inq-done { text-align: center; padding: 20px 0; }
.agaya-faq { border-top: 1px solid var(--line); padding: 10px 0; }
.agaya-faq summary { font-weight: 700; cursor: pointer; }
.agaya-faq p { margin-top: 6px; font-size: 13px; color: var(--sub); }

/* ── 움직임: 카드·지수 등장, 판단 박스 ── */
@keyframes ag-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ag-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ag-pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }
@keyframes ag-slide { from { left: 0; } }
.ag-grid > .agaya-row, .ag-rail > .agaya-row, .ag-ix, .ag-cat-card { animation: ag-up 0.4s var(--ease) both; }
.ag-grid > .agaya-row:nth-child(2), .ag-rail > .agaya-row:nth-child(2), .ag-ix:nth-child(2) { animation-delay: 0.04s; }
.ag-grid > .agaya-row:nth-child(3), .ag-rail > .agaya-row:nth-child(3), .ag-ix:nth-child(3) { animation-delay: 0.08s; }
.ag-grid > .agaya-row:nth-child(4), .ag-rail > .agaya-row:nth-child(4), .ag-ix:nth-child(4) { animation-delay: 0.12s; }
.ag-grid > .agaya-row:nth-child(n+5), .ag-rail > .agaya-row:nth-child(n+5), .ag-ix:nth-child(n+5) { animation-delay: 0.16s; }
.ag-verdict { animation: ag-up 0.45s var(--ease) 0.1s both; }
.ag-summary div:nth-child(2), .ag-chart-stats div:nth-child(2) { animation-delay: 0.05s; }
.ag-summary div:nth-child(3), .ag-chart-stats div:nth-child(3) { animation-delay: 0.1s; }
.ag-summary div:nth-child(4), .ag-chart-stats div:nth-child(4) { animation-delay: 0.15s; }

/* 모바일: 지수는 한 줄 가로 스크롤 */
@media (max-width: 599px) {
	.ag-ix-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 100px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
	.ag-ix-grid::-webkit-scrollbar { display: none; }
	.ag-low-grid { grid-auto-columns: max-content; }
	.ag-hero { padding: 20px 18px; }
	.ag-hero-pick { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 10px; row-gap: 2px; align-items: center; }
	.ag-hero-pick-label { grid-column: 1 / -1; }
	.ag-hero-pick-img { grid-row: span 3; width: 64px; aspect-ratio: 1 / 1; }
	.ag-hero-pick-img.is-empty { font-size: 28px; }
	.ag-doc { padding: 16px; }
	.ag-prose table { display: block; overflow-x: auto; }
	.ag-prose th, .ag-prose td { min-width: 120px; }
}

/* ── 넓은 화면 ── */
@media (min-width: 600px) {
	.ag-p-hero { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: start; }
	.ag-chart-stats, .ag-summary { grid-template-columns: repeat(4, 1fr); }
	.ag-hero { grid-template-columns: minmax(0, 1fr) 220px; align-items: center; padding: 28px 28px; }
	.ag-hero h1 { font-size: 30px; }
	.ag-chart-plot { height: 170px; }
	.ag-ix-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
}

@media (min-width: 1024px) {
	:root { --gap: 24px; }
	.agaya-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr) 320px; max-width: 1560px; margin: 0 auto; align-items: start; }
	.ag-topbar, .agaya-tabbar { display: none; }
	.agaya-shell { border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: var(--bg); }
	.ag-main { padding-bottom: 40px; }
	.ag-footer { padding-bottom: 28px; }
	.ag-grid { grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 14px; }
	.ag-p-tabs { top: 0; }
	.ag-product section[id] { scroll-margin-top: 56px; }
	.ag-buybar { bottom: 0; margin-bottom: -40px; border-radius: var(--r) var(--r) 0 0; }

	/* 왼쪽 메뉴 */
	.agaya-sidenav { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 12px 24px; scrollbar-width: thin; }
	.agaya-sidenav .ag-logo { padding: 0 8px; font-size: 20px; }
	.agaya-sidenav .ag-search { flex: none; }
	.agaya-sidenav .ag-search input { height: 36px; font-size: 13px; }
	.ag-menu { display: flex; flex-direction: column; gap: 1px; }
	.ag-menu a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--r-sm); font-size: 14px; color: var(--ink); }
	.ag-menu a:hover { background: var(--soft); }
	.ag-menu a.on { background: var(--ink); color: #FFF; font-weight: 700; }
	.ag-menu .ico { width: 20px; text-align: center; font-size: 15px; }
	.ag-menu-cats a { font-size: 13px; padding: 6px 10px; color: var(--sub); }
	.ag-menu-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.ag-menu-low { min-width: 22px; padding: 0 6px; border-radius: 999px; text-align: center; font-style: normal; font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums; color: #CDBFB4; }
	.ag-menu-low.is-on { background: #FDE8E8; color: var(--red); }
	.ag-menu a.on .ag-menu-low.is-on { background: var(--red); color: #FFF; }
	.ag-menu-title { display: flex; justify-content: space-between; padding: 6px 10px 0; font-size: 11.5px; font-weight: 700; color: var(--muted); }

	/* 오른쪽 aside */
	.agaya-aside { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 0; max-height: 100vh; overflow-y: auto; padding: 18px 10px 24px; scrollbar-width: thin; }
	.agaya-aside .agaya-partner-slot { margin: 0; width: 300px; align-self: center; }
	.agaya-aside .agaya-partner-widget { width: 300px; min-height: 250px; }

	@media (hover: hover) {
		.agaya-row:hover { border-color: #E2C9B8; box-shadow: var(--shadow); transform: translateY(-1px); }
		.ag-chip:not(.on):hover, .ag-cat-card:hover, .ag-brand:hover, .ag-ix:not(.is-total):hover, .ag-best a:hover { border-color: #E2C9B8; }
	}
}

@media (min-width: 1024px) and (max-width: 1279px) {
	.agaya-layout { grid-template-columns: 196px minmax(0, 1fr) 316px; }
	:root { --gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── 꿀통 블로그 (2026-10-09) ── */
.kk-posts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.kk-post a { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.kk-post a:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.kk-post-img { width: 112px; height: 84px; object-fit: cover; border-radius: var(--r-sm); background: var(--soft); }
.kk-post-img.is-empty { display: grid; place-items: center; font-size: 30px; }
.kk-post-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.kk-post-cat { align-self: flex-start; font-size: 11px; font-weight: 700; color: var(--accent-ink); background: var(--soft); padding: 2px 8px; border-radius: 99px; }
.kk-post-title { font-size: 15px; font-weight: 800; line-height: 1.4; letter-spacing: -0.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kk-post-excerpt { font-size: 13px; color: var(--sub); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kk-post-date { font-size: 12px; color: var(--muted); }
.kk-article-head { display: flex; flex-direction: column; gap: 6px; }
.kk-article-head h1 { font-size: 26px; line-height: 1.35; }
.ag-page-head .kk-article-meta { font-size: 12px; color: var(--muted); }
.kk-article-body { font-size: 16px; line-height: 1.85; }
.kk-article-body h2 { font-size: 20px; margin-top: 32px; }
.kk-article-body h3 { font-size: 17px; }
.kk-article-body p { margin-bottom: 14px; }
.kk-article-body img { height: auto; border-radius: var(--r-sm); }
.kk-article-body figure { margin: 16px 0; max-width: 100%; }
.kk-article-body figcaption { font-size: 12px; color: var(--muted); text-align: center; margin-top: 4px; }
.kk-article-body table { display: block; overflow-x: auto; }
.kk-article-body blockquote { margin: 16px 0; padding: 10px 16px; border-left: 3px solid var(--accent); background: var(--soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.kk-article-body iframe, .kk-article-body video { max-width: 100%; }
.agaya-pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; }
.agaya-pagination span.current, .agaya-pagination .page-numbers { min-width: 34px; height: 34px; padding: 0 8px; display: grid; place-items: center; border-radius: var(--r-sm); font-size: 13px; }
.agaya-pagination span.current { background: var(--ink); color: #FFF; font-weight: 700; }
.agaya-pagination .dots { border: 0; background: none; }
@media (max-width: 599px) {
	.kk-post a { grid-template-columns: 88px 1fr; gap: 10px; padding: 10px; }
	.kk-post-img { width: 88px; height: 66px; }
	.kk-article-head h1 { font-size: 22px; }
	.kk-article-body { font-size: 15px; }
}
/* 부정 클릭 방지 장치가 광고(ins)를 걷어 낸 자리는 '광고' 라벨까지 숨긴다 */
.ag-adsense:not(:has(ins, .ag-adsense-unit)) { display: none; }
.kk-article-body .ag-adsense { margin: 28px 0; }
.kk-post-ad { list-style: none; } .kk-post-ad .ag-adsense { margin: 12px 0; }
