/* 신화당제과 — Frost(templatemo 613) 디자인 시스템 위의 브랜드 오버라이드.
   Frost 원본(templatemo-frost-style.css)은 건드리지 않고 여기서만 덮어씀. */

/* ---------- 1. 한글 폰트 ---------- */
:root {
	--font-heading: 'Noto Serif KR', 'Lora', Georgia, serif;
	--font-body: 'Noto Sans KR', 'Manrope', 'Segoe UI', sans-serif;
}

/* ---------- 2. Frost 원본 컬러 (템플릿과 동일) ---------- */
:root {
	--terracotta: #E07A5F;
	--terracotta-light: #f0a58e;
	--terracotta-dark: #c4603f;
	--cream: #F4F1DE;
	--cream-dark: #e8e3c8;
	--navy: #3D405B;
	--navy-light: #575a78;
	--sage: #81B29A;
	--sage-light: #a8cfba;
	--sage-dark: #5f8e73;
	--shadow-card: 0 4px 24px rgba(61, 64, 91, 0.08);
	--shadow-hover: 0 8px 40px rgba(61, 64, 91, 0.14);
}

/* ---------- 3. 사이드바 브랜드 ---------- */
.sidebar__brand { text-align: left; }
.sidebar__brand img {
	width: 168px;
	max-width: 100%;
	filter: brightness(0) invert(1); /* 갈색 로고 → 크림색으로 반전 (네이비 사이드바 위) */
}
.sidebar__tagline { margin-top: 0.6rem; }

/* 장바구니 뱃지 */
.sidebar__nav a .cart-badge {
	margin-left: auto;
	background: var(--terracotta);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 800;
	min-width: 22px;
	height: 22px;
	line-height: 22px;
	border-radius: 11px;
	text-align: center;
	padding: 0 6px;
}
.sidebar__contact {
	font-size: 0.78rem;
	color: rgba(244, 241, 222, 0.55);
	line-height: 1.7;
}
.sidebar__contact strong { color: var(--sage-light); }

/* ---------- 4. 히어로: 사진 버전 ---------- */
.hero__photo {
	position: absolute;
	right: 4%;
	top: 50%;
	transform: translateY(-50%);
	width: clamp(280px, 34vw, 480px);
	aspect-ratio: 1;
	z-index: 1;
}
.hero__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
	box-shadow: 0 24px 60px rgba(61, 64, 91, 0.18);
}
.hero__photo::after {
	content: '';
	position: absolute;
	inset: -18px;
	border: 2px dashed var(--terracotta-light);
	border-radius: 50%;
	opacity: 0.6;
}
@media (max-width: 1024px) {
	.hero__photo { opacity: 0.28; right: -8%; }
}

/* ---------- 5. 이너 페이지 상단 ---------- */
.page-head {
	padding: calc(var(--section-pad) * 0.7) var(--section-pad) 0;
}
.page-head .section__header { margin-bottom: 1.5rem; }

/* ---------- 6. 상품 그리드 (Frost cart-card 확장) ---------- */
.prod-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: var(--gap);
}
.prod-card {
	background: #fff;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-card);
	transition: all 0.35s var(--ease-out);
	display: flex;
	flex-direction: column;
	position: relative;
}
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.prod-card__img {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--cream);
	position: relative;
}
.prod-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s var(--ease-out);
}
.prod-card:hover .prod-card__img img { transform: scale(1.05); }
.prod-card__tag {
	position: absolute;
	top: 0.9rem;
	left: 0.9rem;
	padding: 0.25rem 0.7rem;
	background: var(--terracotta);
	color: #fff;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	border-radius: 50px;
	z-index: 2;
}
.prod-card__body { padding: 1.25rem 1.35rem 1.35rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.prod-card__name { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; color: var(--navy); }
.prod-card__name a:hover { color: var(--terracotta-dark); }
.prod-card__spec { font-size: 0.82rem; color: var(--navy-light); }
.prod-card__price { font-size: 1.15rem; font-weight: 800; color: var(--terracotta-dark); margin-top: 0.25rem; }
.prod-card__price.inquiry { font-size: 0.95rem; font-weight: 600; color: var(--navy-light); }
.prod-card__foot { margin-top: auto; padding-top: 0.6rem; }
.qadd-btn {
	width: 100%;
	padding: 0.7rem;
	border-radius: var(--radius-sm);
	background: var(--navy);
	color: var(--cream);
	font-weight: 700;
	font-size: 0.88rem;
	transition: all 0.3s var(--ease-out);
}
.qadd-btn:hover { background: var(--terracotta-dark); transform: translateY(-1px); }

/* ---------- 7. 카테고리 필터 ---------- */
.cat-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.4rem;
	margin-bottom: 2rem;
}
.cat-filter a {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--navy);
	padding-bottom: 0.25rem;
	border-bottom: 2px solid transparent;
}
.cat-filter a:hover { color: var(--terracotta-dark); }
.cat-filter a.is-active { color: var(--terracotta-dark); border-bottom-color: var(--terracotta); }

/* ---------- 8. 상품 상세 ---------- */
.detail-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 4vw, 4rem);
	align-items: start;
}
@media (max-width: 900px) { .detail-layout { grid-template-columns: 1fr; } }
.detail-img {
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--cream);
	aspect-ratio: 4 / 3;
	position: relative;
}
.detail-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spec-table { width: 100%; margin: 1.25rem 0; font-size: 0.92rem; }
.spec-table td { padding: 0.45rem 0; border-bottom: 1px solid rgba(61,64,91,0.08); }
.spec-table td:first-child { width: 96px; font-weight: 700; color: var(--navy); }
.detail-price { font-size: 1.7rem; font-weight: 800; color: var(--terracotta-dark); }
.qty-row { display: flex; gap: 0.75rem; align-items: center; margin: 1.25rem 0; flex-wrap: wrap; }
.qty-row input[type="number"] {
	width: 76px; padding: 0.7rem; border: 2px solid rgba(61,64,91,0.15);
	border-radius: var(--radius-sm); font-size: 1rem; text-align: center;
	background: #fff; color: var(--navy);
}
/* 탭 */
.shoptabs { display: flex; gap: 0.5rem; margin: 2.5rem 0 1.5rem; border-bottom: 2px solid rgba(61,64,91,0.1); }
.shoptabs button {
	padding: 0.8rem 1.4rem; font-weight: 700; font-size: 0.95rem; color: var(--navy-light);
	border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.shoptabs button.is-active { color: var(--terracotta-dark); border-bottom-color: var(--terracotta); }
.shoptab-panel { display: none; }
.shoptab-panel.is-active { display: block; animation: seasonFadeIn 0.4s var(--ease-out); }

/* ---------- 9. 상품평 ---------- */
.review-card {
	background: #fff; border-radius: var(--radius-md); padding: 1.1rem 1.25rem;
	margin-bottom: 0.9rem; box-shadow: var(--shadow-card);
}
.review-card .rc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.review-card .rc-meta { font-size: 0.78rem; color: var(--navy-light); margin-top: 0.4rem; }
.review-card .rc-meta a { color: var(--terracotta-dark); font-weight: 600; }
.stars { color: #E0A93E; letter-spacing: 0.1em; }

/* ---------- 10. 폼 ---------- */
.shd-form label { display: block; font-weight: 700; font-size: 0.88rem; margin: 1rem 0 0.35rem; color: var(--navy); }
.shd-form input, .shd-form textarea, .shd-form select {
	width: 100%; padding: 0.8rem 1rem; border: 2px solid rgba(61,64,91,0.14);
	border-radius: var(--radius-sm); font-size: 0.95rem; font-family: var(--font-body);
	background: #fff; color: var(--navy);
}
.shd-form input:focus, .shd-form textarea:focus, .shd-form select:focus {
	outline: none; border-color: var(--terracotta);
}
.form-card {
	background: #fff; border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.5rem);
	box-shadow: var(--shadow-card);
}
.flash-msg {
	background: #FFF4D6; border: 1px solid #E8C86A; color: #6b4d12;
	border-radius: var(--radius-sm); padding: 0.8rem 1.1rem; margin-bottom: 1.25rem; font-size: 0.92rem;
}

/* ---------- 11. 주문 단계 ---------- */
.shd-steps { display: flex; gap: 0.5rem; margin-bottom: 2rem; }
.shd-steps .st {
	flex: 1; text-align: center; padding: 0.8rem; border-radius: var(--radius-sm);
	background: rgba(61,64,91,0.06); font-weight: 700; font-size: 0.88rem; color: var(--navy-light);
}
.shd-steps .st.on { background: var(--navy); color: var(--cream); }

/* ---------- 12. 장바구니 테이블 ---------- */
.cart-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); }
.cart-table th { background: var(--navy); color: var(--cream); padding: 0.9rem; font-size: 0.85rem; text-align: left; }
.cart-table td { padding: 0.9rem; border-bottom: 1px solid rgba(61,64,91,0.08); font-size: 0.92rem; vertical-align: middle; }
.cart-table img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; }
.cart-table input[type="number"] { width: 64px; padding: 0.5rem; border: 2px solid rgba(61,64,91,0.14); border-radius: 8px; text-align: center; }
.cart-total { text-align: right; font-size: 1.25rem; font-weight: 800; color: var(--terracotta-dark); margin: 1.25rem 0; }
.link-danger { color: #B3402E; font-size: 0.85rem; font-weight: 600; }

/* ---------- 13. 연혁 타임라인 ---------- */
.timeline { position: relative; margin-top: 1rem; padding-left: 2rem; }
.timeline::before {
	content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px;
	background: linear-gradient(var(--terracotta), var(--sage));
}
.tl-item { position: relative; padding: 0 0 1.8rem 1.2rem; }
.tl-item::before {
	content: ''; position: absolute; left: -2rem; top: 4px; width: 18px; height: 18px;
	background: var(--terracotta); border: 4px solid var(--cream); border-radius: 50%;
	box-shadow: 0 0 0 2px var(--terracotta);
}
.tl-year { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; color: var(--terracotta-dark); }
.tl-title { font-weight: 700; color: var(--navy); margin: 0.15rem 0; }
.tl-desc { font-size: 0.9rem; color: var(--navy-light); }

/* ---------- 14. 인증 밴드 ---------- */
.cert-band { display: flex; flex-wrap: wrap; gap: 1rem; }
.cert {
	flex: 1 1 160px; background: #fff; border-radius: var(--radius-md); padding: 1.4rem 1rem;
	text-align: center; box-shadow: var(--shadow-card);
}
.cert b { display: block; font-family: var(--font-heading); font-size: 1.15rem; color: var(--terracotta-dark); }
.cert span { font-size: 0.82rem; color: var(--navy-light); }

/* ---------- 15. 공지 ---------- */
.notice-list { display: flex; flex-direction: column; gap: 0.9rem; }
.notice-row {
	display: flex; justify-content: space-between; align-items: center; gap: 1rem;
	background: #fff; border-radius: var(--radius-md); padding: 1.1rem 1.4rem;
	box-shadow: var(--shadow-card); transition: transform 0.3s var(--ease-out);
}
.notice-row:hover { transform: translateX(4px); }
.notice-row .nt { font-weight: 600; color: var(--navy); }
.notice-row .nd { font-size: 0.82rem; color: var(--navy-light); white-space: nowrap; }

/* ---------- 16. 카테고리 바로가기 패널 (seasonal 재활용) ---------- */
.cat-panel__visual {
	position: relative; min-height: 320px; display: flex; align-items: flex-end;
	justify-content: flex-start; padding: 1.5rem; overflow: hidden;
}
.cat-panel__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-panel__visual::after {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(61,64,91,0.55) 0%, transparent 60%);
	pointer-events: none;
}
.cat-panel__badge {
	position: relative; z-index: 2; color: #fff; font-family: var(--font-heading);
	font-size: 1.6rem; font-weight: 700;
}

/* ---------- 17. 기타 ---------- */
.price-won { color: var(--terracotta-dark); font-weight: 800; }
.btn-block { width: 100%; justify-content: center; }
.alert-info {
	background: #EFF4E4; border: 1px solid var(--sage-light); color: #4a5a35;
	border-radius: var(--radius-sm); padding: 0.9rem 1.1rem; font-size: 0.9rem; margin: 1rem 0;
}
.alert-warn {
	background: #FFF4D6; border: 1px solid #E8C86A; color: #6b4d12;
	border-radius: var(--radius-sm); padding: 0.9rem 1.1rem; font-size: 0.9rem; margin: 1rem 0;
}
#payment-method, #agreement { margin: 1rem 0; }
.footer__biz { font-size: 0.82rem; line-height: 1.9; }
.footer__biz b { color: var(--cream); }
