:root {
	--green: #195944;
	--ink: #202621;
	--muted: #747b75;
	--line: #e4e9e3;
	--cream: #f5f6f0;
}
* {
	box-sizing: border-box;
}
body {
	margin: 0;
	color: var(--ink);
	font-family: Pretendard, "Noto Sans KR", Arial, sans-serif;
	background: #fff;
}
a {
	color: inherit;
	text-decoration: none;
}
img {
	max-width: 100%;
}
.page-width,
.header-inner {
	width: min(1200px, calc(100% - 40px));
	margin: auto;
}
.site-header {
	border-bottom: 1px solid var(--line);
	background: #fff;
}
.header-inner {
	display: flex;
	align-items: center;
	gap: 40px;
	min-height: 94px;
}
.brand {
	display: block;
	flex: none;
	width: 162px;
}
.brand img {
	display: block;
	width: 100%;
	height: auto;
}
.top-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 25px;
	font-size: 16px;
	font-weight: 650;
}
.top-nav a:hover,
.breadcrumb a:hover {
	color: var(--green);
}
.page-content {
	min-height: 65vh;
}
.hero {
	margin-top: 30px;
	min-height: 320px;
	background: var(--cream);
	display: flex;
	align-items: center;
	padding: 50px 7%;
}
.hero h1 {
	font-size: 42px;
	line-height: 1.3;
	margin: 8px 0 15px;
}
.hero p {
	color: var(--muted);
}
.eyebrow {
	font-size: 12px;
	letter-spacing: 0.25em;
	color: var(--green) !important;
	font-weight: 700;
}
.section-space {
	padding-top: 55px;
	padding-bottom: 80px;
}
.section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	margin-bottom: 28px;
}
.section-heading h1,
.section-heading h2 {
	font-size: 31px;
	margin: 0;
}
.section-heading p {
	color: var(--muted);
	margin: 10px 0 0;
}
.product-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 34px 22px;
}
.product-card a {
	display: block;
}
.product-image {
	aspect-ratio: 1;
	background: #f6f6f6;
	overflow: hidden;
}
.product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.2s;
}
.product-card a:hover img {
	transform: scale(1.025);
}
.product-info {
	padding-top: 14px;
}
.product-info h3 {
	font-size: 16px;
	line-height: 1.5;
	font-weight: 600;
	margin: 0 0 6px;
}
.subname {
	font-size: 13px;
	color: var(--muted);
	margin: 0 0 7px;
}
.price {
	font-size: 18px;
}
.breadcrumb {
	font-size: 13px;
	color: var(--muted);
	margin-bottom: 30px;
}
.breadcrumb span {
	padding: 0 8px;
}
.sort-form {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
}
.sort-form select {
	padding: 9px 12px;
	border: 1px solid var(--line);
	background: white;
}
.pagination {
	display: flex;
	justify-content: center;
	gap: 7px;
	margin-top: 45px;
}
.pagination a {
	min-width: 33px;
	height: 33px;
	padding: 6px 10px;
	text-align: center;
	border: 1px solid var(--line);
}
.pagination a.active {
	background: var(--green);
	border-color: var(--green);
	color: #fff;
}
.empty-state {
	text-align: center;
	padding: 80px 0;
	color: var(--muted);
}
.product-detail {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
}
/* 원본 상품 상세의 경로 표시와 본문 폭을 공개 상품 화면에 맞춘다. */
.product-detail-page {
	padding-top: 0;
}
.product-detail-page .breadcrumb {
	display: block;
	min-height: 31px;
	margin: 0 0 35px;
	padding: 6px 12px;
	background: #f4f4f4;
}
.product-detail-page .product-detail {
	width: min(1008px, 100%);
	margin: 0 auto;
	gap: 80px;
}
.main-image {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	background: #f6f6f6;
}
.gallery-thumbs {
	display: flex;
	gap: 10px;
	margin-top: 12px;
	flex-wrap: wrap;
}
.gallery-thumbs button {
	border: 1px solid var(--line);
	background: #fff;
	padding: 0;
	width: 72px;
	height: 72px;
	cursor: pointer;
}
.gallery-thumbs img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.detail-summary h1 {
	font-size: 21px;
	line-height: 1.4;
	margin: 0 0 15px;
}
.detail-summary > p {
	color: var(--muted);
}
.detail-prices {
	border-top: 0;
	border-bottom: 1px solid var(--line);
	padding: 2px 0 28px;
	margin-top: 6px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 5px;
}
.detail-regular-price {
	color: #777;
	font-size: 18px;
}
.detail-member-label {
	color: var(--green);
	font-size: 13px;
	font-weight: 700;
}
.detail-current-price {
	color: #c90000;
	font-size: 24px;
}
.member-note {
	color: var(--green) !important;
}
.detail-shipping {
	display: flex;
	align-items: baseline;
	gap: 35px;
	padding: 22px 0;
	border-bottom: 1px solid var(--line);
	font-size: 13px;
}
.detail-shipping span {
	flex: none;
	color: var(--muted);
}
.detail-shipping p {
	margin: 0;
	line-height: 1.5;
}
.detail-shipping strong {
	display: block;
	margin-bottom: 3px;
	font-size: 13px;
	font-weight: 600;
}
.detail-notice {
	background: var(--cream);
	padding: 18px;
	line-height: 1.6;
	margin-top: 35px;
}
.catalog-option-panel {
	margin-top: 28px;
	padding: 22px;
	border: 1px solid var(--line);
	background: #fff;
}
.product-detail-page .catalog-option-panel {
	margin-top: 22px;
	padding: 18px 0 0;
	border: 0;
}
.product-detail-page .catalog-quantity {
	grid-template-columns: 80px minmax(0, 1fr);
	align-items: center;
}
.catalog-quantity-control {
	display: flex;
	align-items: center;
	min-height: 44px;
	border: 1px solid var(--line);
	border-radius: 24px;
}
.catalog-quantity-control button {
	width: 42px;
	height: 42px;
	flex: none;
	border: 0;
	border-radius: 24px;
	background: #fff;
	font: inherit;
	font-size: 20px;
	cursor: pointer;
}
.catalog-quantity-control button:disabled {
	color: #aaa;
	cursor: not-allowed;
}
.product-detail-page .catalog-quantity-control input {
	width: 100%;
	max-width: none;
	min-width: 0;
	border: 0;
	text-align: center;
	appearance: textfield;
}
.catalog-quantity-control input::-webkit-outer-spin-button,
.catalog-quantity-control input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}
.catalog-option-field {
	display: grid;
	gap: 8px;
	margin-bottom: 16px;
	font-size: 14px;
	font-weight: 600;
}
.catalog-option-field small {
	margin-left: 5px;
	color: var(--muted);
	font-weight: 400;
}
.catalog-option-field select,
.catalog-option-field input {
	width: 100%;
	min-height: 44px;
	padding: 9px 12px;
	border: 1px solid #cfd8d0;
	border-radius: 2px;
	background: #fff;
	font: inherit;
}
.catalog-option-field select:disabled,
.catalog-option-field input:disabled {
	background: #f4f6f3;
	color: var(--muted);
}
.catalog-option-swatches[hidden] {
	display: none;
}
.catalog-option-swatches {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
	gap: 9px;
	margin: -7px 0 18px;
}
.catalog-option-swatch {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	min-width: 0;
	padding: 9px 7px;
	border: 1px solid #cfd8d0;
	background: #fff;
	color: inherit;
	font: inherit;
	font-size: 12px;
	text-align: center;
	cursor: pointer;
}
.catalog-option-swatch[aria-pressed="true"] {
	border: 2px solid var(--green);
	padding: 8px 6px;
}
.catalog-option-swatch:focus-visible {
	outline: 2px solid var(--green);
	outline-offset: 2px;
}
.catalog-option-swatch:disabled {
	opacity: .5;
	cursor: not-allowed;
}
.catalog-option-swatch img {
	width: 58px;
	height: 58px;
	object-fit: cover;
}
.catalog-option-swatch span {
	max-width: 100%;
	word-break: break-word;
}
.catalog-option-swatch small {
	color: var(--muted);
}
.catalog-quantity input {
	max-width: 120px;
}
.catalog-addon-group {
	margin: 0 0 17px;
	padding: 13px 14px;
	border: 1px solid var(--line);
}
.catalog-addon-group legend {
	padding: 0 5px;
	font-size: 14px;
	font-weight: 700;
}
.catalog-addon-group legend small {
	margin-left: 4px;
	color: var(--muted);
	font-weight: 400;
}
.catalog-addon-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
}
.catalog-addon-row + .catalog-addon-row {
	border-top: 1px solid var(--line);
}
.catalog-addon-row label {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	font-size: 14px;
}
.catalog-addon-row input[type="number"] {
	width: 82px;
	min-height: 36px;
	padding: 5px 8px;
	border: 1px solid #cfd8d0;
	font: inherit;
}
.catalog-addon-row input:disabled {
	color: var(--muted);
}
.catalog-option-status {
	min-height: 20px;
	margin: 0 0 16px;
	color: var(--muted);
	font-size: 13px;
}
.catalog-option-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 15px;
	padding-top: 19px;
	border-top: 1px solid var(--line);
}
.catalog-option-total strong {
	font-size: 23px;
	color: var(--green);
}
.description {
	margin-top: 100px;
	border-top: 2px solid var(--green);
	padding-top: 35px;
}
.description h2 {
	text-align: center;
	margin: 0 0 45px;
}
.description-content {
	max-width: 900px;
	margin: auto;
	line-height: 1.7;
	overflow-wrap: anywhere;
}
.description-content img {
	height: auto;
}
/* Product-specific community routes remain visible after the full description. */
.product-detail-community {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 48px auto 0;
	padding-top: 28px;
	border-top: 1px solid var(--line);
}
.product-detail-community a {
	padding: 12px 18px;
	border: 1px solid var(--green);
	border-radius: 4px;
	color: var(--green);
	font-weight: 600;
}
.product-detail-community a:hover {
	background: var(--green);
	color: #fff;
}
.site-footer {
	background: #f7f8f6;
	border-top: 1px solid var(--line);
	padding: 45px 0;
	color: var(--muted);
	font-size: 13px;
}
.site-footer strong {
	color: var(--ink);
	font-size: 17px;
}
.site-footer p {
	margin: 8px 0;
}
@media (max-width: 900px) {
	.header-inner {
		display: block;
		padding: 22px 0;
	}
	.top-nav {
		gap: 14px;
		margin-top: 20px;
		font-size: 14px;
	}
	.product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.product-detail {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	.product-detail-page .product-detail {
		gap: 30px;
	}
	.hero h1 {
		font-size: 33px;
	}
}
@media (max-width: 520px) {
	.product-detail-page {
		padding-top: 15px;
	}
	.product-detail-page .breadcrumb {
		display: block;
	}
	.page-width,
	.header-inner {
		width: min(100% - 28px, 1200px);
	}
	.product-grid {
		gap: 22px 12px;
	}
	.product-info h3 {
		font-size: 14px;
	}
	.price {
		font-size: 16px;
	}
	.hero {
		min-height: 240px;
		padding: 30px;
	}
	.section-heading h1,
	.section-heading h2 {
		font-size: 25px;
	}
	.listing-heading {
		display: block;
	}
	.sort-form {
		margin-top: 20px;
	}
	.detail-summary h1 {
		font-size: 25px;
	}
}
