/* ============================================================
	상품 상세 페이지 (goods.html)
============================================================ */

/* 브레드크럼 */
.shop-goods-breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 4px 6px;
	padding: 14px 2px 14px;
	font-size: 13px;
	color: var(--shop-text-subtle);
	min-width: 0;
	overflow: hidden;
}

.shop-goods-breadcrumb a {
	display: inline-flex;
	align-items: center;
	color: var(--shop-text-subtle);
	text-decoration: none;
	flex-shrink: 0;
	line-height: 1.2;
}

.shop-goods-breadcrumb a:hover {
	color: var(--shop-primary);
}

.shop-goods-breadcrumb i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	color: #94a3b8;
	flex-shrink: 0;
	line-height: 1;
}

.shop-goods-breadcrumb-current {
	display: inline-flex;
	align-items: center;
	color: var(--shop-text);
	font-weight: 600;
	min-width: 0;
	flex: 1 1 auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	line-height: 1.2;
}

/* ─── 레이아웃 ─────────────────────────── */
.shop-goods-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	align-items: flex-start;
	padding-bottom: 40px;
}

@media (max-width: 768px) {
	.shop-goods-layout {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

/* ─── 갤러리 ─────────────────────────── */
.shop-goods-gallery {
	position: sticky;
	top: calc(88px + var(--shop-header-top-offset, 0px));
}

.shop-goods-main-image {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 14px;
	overflow: hidden;
	background: #f8fafc;
	border: 1px solid var(--shop-border);
}

.shop-goods-main-image.is-zoomable {
	cursor: zoom-in;
}

.shop-goods-main-image.is-zoomable:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

.shop-goods-main-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.shop-goods-main-image-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #bcc5d8;
}

.shop-goods-main-image-placeholder i {
	font-size: 64px;
}

.shop-goods-thumbnails {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	text-align: center;
	gap: 10px;
	margin-top: 12px;
}

.shop-goods-thumb-btn {
	width: 64px;
	height: 64px;
	border: 1px solid var(--shop-border);
	border-radius: 10px;
	overflow: hidden;
	background: #f8fafc;
	cursor: pointer;
	padding: 0;
	transition: border-color 0.15s, transform 0.15s;
}

.shop-goods-thumb-btn img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.shop-goods-thumb-btn:hover {
	border-color: var(--shop-primary);
	transform: translateY(-1px);
}

.shop-goods-thumb-btn.is-active {
	border-color: var(--shop-primary);
	box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.14);
}

.shop-goods-info {
	background: #ffffff;
	border: 1px solid var(--shop-border);
	border-radius: 16px;
	padding: 22px;
	box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

/* ─── 배지 ─────────────────────────── */
.shop-goods-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.shop-goods-badge {
	display: inline-flex;
	align-items: center;
	height: 22px;
	padding: 0 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.shop-goods-badge-recommend {
	background: #7c3aed;
	color: #ffffff;
}

.shop-goods-badge-best {
	background: #dc2626;
	color: #ffffff;
}

.shop-goods-badge-new {
	background: #2563eb;
	color: #ffffff;
}

.shop-goods-badge-soldout {
	background: #4b5563;
	color: #ffffff;
}

.shop-goods-badge-member {
	position: absolute;
	top: 10px;
	left: 10px;
	background: rgba(37, 99, 235, 0.92);
	color: #fff;
	z-index: 1;
}

/* ─── 상품명 ─────────────────────────── */
.shop-goods-title {
	font-size: 22px;
	font-weight: 800;
	color: var(--shop-text);
	line-height: 1.35;
	margin: 0;
}

.shop-goods-title-row {
	margin-top: 2px;
	margin-bottom: 14px;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.shop-goods-title-main {
	flex: 1 1 auto;
	min-width: 0;
}

.shop-goods-badges-mobile-inline {
	display: none;
}

.shop-goods-share-trigger {
	width: 44px;
	height: 44px;
	border: 1px solid #dbe3ee;
	border-radius: 14px;
	background: #ffffff;
	color: #334155;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	flex-shrink: 0;
	cursor: pointer;
	box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
	transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.shop-goods-share-trigger:hover {
	transform: translateY(-1px);
	border-color: #bfdbfe;
	background: #eff6ff;
	color: #1d4ed8;
}

.shop-goods-share-trigger:focus-visible {
	outline: 2px solid rgba(37, 99, 235, 0.3);
	outline-offset: 2px;
}

.shop-goods-share-trigger i {
	font-size: 18px;
	line-height: 1;
}

/* ─── 가격 ─────────────────────────── */
.shop-goods-price-area {
	margin-bottom: 14px;
}

.shop-goods-price-origin {
	display: block;
	font-size: 13px;
	color: #94a3b8;
	text-decoration: line-through;
	margin-bottom: 2px;
}

.shop-goods-price-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.shop-goods-price-sale {
	font-size: 28px;
	font-weight: 800;
	color: #0f172a;
	letter-spacing: -0.02em;
}

.shop-goods-discount-badge {
	display: inline-flex;
	align-items: center;
	height: 24px;
	padding: 0 9px;
	background: #fee2e2;
	color: #b91c1c;
	border: 1px solid #fecaca;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}

.shop-goods-member-discount {
	margin: 6px 0 0;
	font-size: 13px;
	color: #1d4ed8;
	display: flex;
	align-items: center;
	gap: 5px;
}

.shop-goods-member-discount strong {
	font-weight: 700;
}

/* ─── 메타 정보 ─────────────────────── */
.shop-goods-divider {
	border: none;
	border-top: 1px solid var(--shop-border);
	margin: 16px 0;
}

.shop-goods-meta-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 9px 0;
	font-size: 14px;
	border-bottom: 1px dashed #e5e7eb;
}

.shop-goods-meta-row:last-of-type {
	border-bottom: 0;
}

.shop-goods-meta-label {
	min-width: 72px;
	color: #64748b;
	font-weight: 600;
	flex-shrink: 0;
}

.shop-goods-meta-value {
	color: var(--shop-text);
}

.shop-goods-free-tag {
	display: inline-flex;
	align-items: center;
	height: 20px;
	padding: 0 7px;
	background: #dcfce7;
	color: #166534;
	border-radius: 5px;
	font-size: 12px;
	font-weight: 700;
}

.shop-goods-member-free-tag {
	color: #1d4ed8;
	font-size: 12px;
}

.shop-goods-soldout-text {
	color: #dc2626;
	font-weight: 700;
}

.shop-goods-reward {
	color: #4338ca;
	font-weight: 600;
}

.shop-goods-reward-condition {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.55;
	color: #6366f1;
}

.shop-goods-reward-condition-detail {
	color: #475569;
}

.shop-goods-detail-list {
	margin-top: 12px;
	border: 1px solid var(--shop-border);
	border-radius: 12px;
	background: #f8fafc;
	overflow: hidden;
}

.shop-goods-detail-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	padding: 11px 14px;
	border-top: 1px solid #e5e7eb;
}

.shop-goods-detail-row:first-child {
	border-top: none;
}

.shop-goods-detail-label {
	font-size: 13px;
	font-weight: 700;
	color: #64748b;
}

.shop-goods-detail-value {
	font-size: 13px;
	font-weight: 600;
	color: #0f172a;
	text-align: right;
}

/* ─── 옵션 선택 ─────────────────────── */
.shop-goods-option-area {
	margin-bottom: 14px;
}

.shop-goods-option-label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: var(--shop-text-subtle);
	margin-bottom: 6px;
}

.shop-goods-option-label .span-required {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 16px;
	height: 16px;
	margin-left: 4px;
	padding: 0 4px;
	border-radius: 999px;
	background: #ffedf0;
	color: #d0213d;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	vertical-align: middle;
}

.shop-goods-option-select {
	width: 100%;
	height: 44px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	background: #ffffff;
	color: var(--shop-text);
	padding: 0 14px;
	font-size: 14px;
	appearance: auto;
	outline: none;
	transition: border-color 0.15s;
}

.shop-goods-option-select:focus {
	border-color: var(--shop-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.shop-goods-option-help {
	margin: 8px 2px 0;
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
	min-height: 18px;
	line-height: 1.5;
}

.shop-goods-option-help.is-info {
	color: #2563eb;
}

.shop-goods-option-help.is-warning {
	color: #c2410c;
}

.shop-goods-option-help.is-soldout {
	color: #dc2626;
}

/* ─── 수량 ─────────────────────────── */
.shop-goods-qty-area {
	margin-bottom: 16px;
}

.shop-goods-qty-control {
	display: inline-flex;
	align-items: center;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	overflow: hidden;
	height: 44px;
}

.shop-goods-qty-btn {
	width: 44px;
	height: 44px;
	border: none;
	background: #f8fafc;
	color: var(--shop-text);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 18px;
	flex-shrink: 0;
	transition: background 0.15s;
}

.shop-goods-qty-btn:hover {
	background: #eff6ff;
}

.shop-goods-qty-btn:disabled {
	background: #f8fafc;
	color: #94a3b8;
	cursor: not-allowed;
}

.shop-goods-qty-input {
	width: 56px;
	height: 44px;
	border: none;
	border-left: 1px solid #cbd5e1;
	border-right: 1px solid #cbd5e1;
	text-align: center;
	font-size: 15px;
	font-weight: 700;
	color: var(--shop-text);
	outline: none;
	background: #ffffff;
	appearance: textfield;
	-moz-appearance: textfield;
}

.shop-goods-qty-input::-webkit-inner-spin-button,
.shop-goods-qty-input::-webkit-outer-spin-button {
	-webkit-appearance: none;
}

/* ─── 합계 ─────────────────────────── */
.shop-goods-total-area {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 14px;
	margin-bottom: 14px;
	border: 1px solid var(--shop-border);
	border-radius: 12px;
	background: #f8fafc;
}

.shop-goods-total-label {
	font-size: 14px;
	font-weight: 700;
	color: var(--shop-text-subtle);
}

.shop-goods-total-price {
	font-size: 22px;
	font-weight: 800;
	color: #0f172a;
	letter-spacing: -0.02em;
}

/* ─── 버튼 ─────────────────────────── */
.shop-goods-action-btns {
	display: flex;
	gap: 10px;
}

.shop-goods-btn {
	flex: 1;
	height: 52px;
	border: 1px solid transparent;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	cursor: pointer;
	transition: background 0.18s, transform 0.1s;
}

.shop-goods-btn:active {
	transform: scale(0.98);
}

.shop-goods-btn-cart {
	background: #ffffff;
	color: var(--shop-primary);
	border: 1px solid #bfdbfe;
}

.shop-goods-btn-cart:hover {
	background: #eff6ff;
}

.shop-goods-btn-buy {
	background: var(--shop-primary);
	border-color: var(--shop-primary);
	color: #ffffff;
}

.shop-goods-btn-buy:hover {
	background: var(--shop-primary-dark);
}

.shop-goods-btn-wishlist {
	background: #fff;
	color: #e11d48;
	border: 1px solid #fecdd3;
	flex: 0 0 120px;
}

.shop-goods-btn-wishlist:hover {
	background: #fff1f2;
	border-color: #fda4af;
}

.shop-goods-btn-wishlist.is-active {
	background: #ffe4e6;
	border-color: #fb7185;
	color: #be123c;
}

.shop-goods-btn-soldout {
	background: #f1f5f9;
	border-color: #e2e8f0;
	color: #94a3b8;
	cursor: not-allowed;
}

/* ─── 키워드 ─────────────────────────── */
.shop-goods-keywords {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 18px;
}

.shop-goods-keyword-chip {
	display: inline-flex;
	align-items: center;
	height: 28px;
	padding: 0 11px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	font-size: 12px;
	color: var(--shop-text-subtle);
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}

.shop-goods-keyword-chip:hover {
	background: #eff6ff;
	color: var(--shop-primary);
	border-color: #bfdbfe;
}

/* ─── 탭 ─────────────────────────────── */
.shop-goods-tabs-wrap {
	border-top: 1px solid var(--shop-border);
	padding-top: 0;
	margin-bottom: 48px;
}

.shop-goods-tabs {
	display: flex;
	border-bottom: 1px solid var(--shop-border);
	gap: 0;
	position: sticky;
	top: var(--shop-goods-tabs-top-offset, 105px);
	z-index: 30;
	background: #ffffff;
	border-radius: 12px 12px 0 0;
}

.shop-goods-tabs.is-sticky-active {
	/*box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);*/
	border-top:1px solid var(--shop-border);
	width: calc(100% + (var(--shop-inner-padding-x, 20px) * 2));
	margin-left: calc(-1 * var(--shop-inner-padding-x, 20px));
	margin-right: calc(-1 * var(--shop-inner-padding-x, 20px));
	border-radius: 0 0 0 0;
	backdrop-filter: blur(8px);
	background: rgba(255, 255, 255, 0.82);
}

.shop-goods-tab {
	padding: 13px 20px;
	border: none;
	background: transparent;
	font-size: 14px;
	font-weight: 700;
	color: var(--shop-text-subtle);
	cursor: pointer;
	position: relative;
	transition: color 0.15s;
}

.shop-goods-tab::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	right: 0;
	height: 3px;
	background: transparent;
	transition: background 0.15s;
}

.shop-goods-tab:hover {
	color: var(--shop-text);
}

.shop-goods-tab.is-active {
	color: var(--shop-primary);
}

.shop-goods-tab.is-active::after {
	background: var(--shop-primary);
}

.shop-goods-tab-panel {
	padding: 26px 0;
	scroll-margin-top: calc(var(--shop-goods-tabs-top-offset, 105px) + 12px);
}

.shop-goods-tab-panel + .shop-goods-tab-panel {
	border-top: 1px solid var(--shop-border);
}

.shop-goods-tab-empty {
	color: var(--shop-text-subtle);
	font-size: 14px;
	padding: 20px 0;
	text-align: center;
}

/* 상세 설명 */
.shop-goods-description {
	max-width: 800px;
	margin: 0 auto;
	font-size: 15px;
	line-height: 1.75;
	color: var(--shop-text);
	position: relative;
	word-break: keep-all;
}

.shop-goods-description-wrap {
	position: relative;
	max-width: 800px;
	margin: 0 auto;
}

.shop-goods-desc-more-btn {
	display: none;
}

.shop-goods-description img {
	max-width: 100%;
	height: auto;
}

.shop-goods-image-modal {
	position: fixed;
	inset: 0;
	z-index: 1200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(15, 23, 42, 0.76);
	backdrop-filter: blur(3px);
}

.shop-goods-image-modal[hidden] {
	display: none;
}

html.shop-goods-image-modal-open .shop-header,
html.shop-goods-image-modal-open .shop-header-layout,
html.shop-goods-image-modal-open .shop-goods-tabs-wrap {
	visibility: hidden;
}

html.shop-goods-image-modal-open .shop-goods-image-modal {
	visibility: visible;
}

.shop-goods-image-modal-dialog {
	width: min(100%, 860px);
	max-height: calc(100vh - 40px);
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
	gap: 12px;
	padding: 16px;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
}

.shop-goods-image-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.shop-goods-image-modal-head strong {
	margin-right: auto;
	font-size: 16px;
	font-weight: 800;
	color: #0f172a;
}

.shop-goods-image-modal-counter {
	font-size: 13px;
	font-weight: 700;
	color: #64748b;
	white-space: nowrap;
}

.shop-goods-image-modal-close {
	width: 38px;
	height: 38px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	background: #fff;
	color: #334155;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	cursor: pointer;
	appearance: none;
}

.shop-goods-image-modal-close:hover {
	border-color: #93c5fd;
	background: #eff6ff;
	color: #1d4ed8;
}

.shop-goods-image-modal-close:focus-visible,
.shop-goods-image-modal-nav:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

.shop-goods-image-modal-body {
	min-height: 0;
	overflow: auto;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	background: #f8fafc;
	padding: 12px 56px;
	touch-action: pan-y pinch-zoom;
}

.shop-goods-image-modal-img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 160px);
	object-fit: contain;
	border-radius: 12px;
	background: #fff;
	user-select: none;
	-webkit-user-drag: none;
}

.shop-goods-image-modal-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border: 1px solid rgba(203, 213, 225, 0.95);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.96);
	color: #334155;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	cursor: pointer;
	appearance: none;
	box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
	z-index: 1;
}

.shop-goods-image-modal-nav.is-prev {
	left: 12px;
}

.shop-goods-image-modal-nav.is-next {
	right: 12px;
}

.shop-goods-image-modal-nav:hover:not(:disabled) {
	border-color: #93c5fd;
	background: #eff6ff;
	color: #1d4ed8;
}

.shop-goods-image-modal-nav:disabled {
	opacity: 0.45;
	cursor: default;
	box-shadow: none;
}

.shop-goods-share-modal {
	position: fixed;
	inset: 0;
	z-index: 1250;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 0;
	background: rgba(15, 23, 42, 0.46);
	backdrop-filter: blur(4px);
}

.shop-goods-share-modal[hidden] {
	display: none;
}

.shop-goods-share-backdrop {
	position: absolute;
	inset: 0;
}

.shop-goods-share-sheet {
	position: relative;
	width: min(100%, 520px);
	max-height: calc(100vh - 16px);
	overflow: auto;
	background: #ffffff;
	border-radius: 28px 28px 0 0;
	padding: 12px 20px 20px;
	box-shadow: 0 -16px 48px rgba(15, 23, 42, 0.2);
	transform: translateY(100%);
	transition: transform 0.26s ease;
	z-index: 1;
}

.shop-goods-share-modal[aria-hidden="false"] .shop-goods-share-sheet {
	transform: translateY(0);
}

.shop-goods-share-handle {
	width: 52px;
	height: 5px;
	border-radius: 999px;
	background: #d8e1ec;
	margin: 0 auto 12px;
}

.shop-goods-share-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.shop-goods-share-head strong {
	font-size: 22px;
	font-weight: 800;
	color: #0f172a;
}

.shop-goods-share-close {
	width: 40px;
	height: 40px;
	border: 1px solid #dbe3ee;
	border-radius: 12px;
	background: #ffffff;
	color: #334155;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	cursor: pointer;
	transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.shop-goods-share-close:hover {
	border-color: #bfdbfe;
	background: #eff6ff;
	color: #1d4ed8;
}

.shop-goods-share-close:focus-visible,
.shop-goods-share-action:focus-visible {
	outline: 2px solid rgba(37, 99, 235, 0.28);
	outline-offset: 2px;
}

.shop-goods-share-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px;
	border-radius: 18px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	margin-bottom: 18px;
	min-width: 0;
}

.shop-goods-share-thumb {
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: #ffffff;
	border: 1px solid #dbe3ee;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	overflow: hidden;
	color: #a0aec0;
}

.shop-goods-share-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.shop-goods-share-thumb i {
	font-size: 22px;
	line-height: 1;
}

.shop-goods-share-copy {
	min-width: 0;
	flex: 1 1 auto;
}

.shop-goods-share-product {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
	color: #0f172a;
	word-break: break-word;
}

.shop-goods-share-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.shop-goods-share-action {
	min-height: 54px;
	border-radius: 14px;
	padding: 0 16px;
	border: 1px solid #dbe3ee;
	background: #ffffff;
	color: #334155;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.shop-goods-share-action:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.shop-goods-share-action.is-secondary:hover {
	border-color: #bfdbfe;
	background: #eff6ff;
}

.shop-goods-share-action.is-kakao {
	border-color: #f7d94c;
	background: #fee500;
	color: #2b2b2b;
}

.shop-goods-share-action.is-kakao:hover {
	border-color: #f2c400;
	background: #f8db00;
}

.shop-goods-share-action i {
	font-size: 17px;
	line-height: 1;
}

/* 속성 테이블 */
.shop-goods-attr-table {
	width: 100%;
	max-width: 760px;
	border-collapse: collapse;
	font-size: 14px;
	border: 1px solid var(--shop-border);
	border-radius: 12px;
	overflow: hidden;
}

.shop-goods-attr-table th,
.shop-goods-attr-table td {
	padding: 11px 16px;
	text-align: left;
	border-bottom: 1px solid var(--shop-border);
	vertical-align: top;
}

.shop-goods-attr-table th {
	width: 140px;
	font-weight: 700;
	color: var(--shop-text-subtle);
	background: #f8fafc;
}

.shop-goods-attr-table td {
	color: var(--shop-text);
}

.shop-goods-attr-table tr:last-child th,
.shop-goods-attr-table tr:last-child td {
	border-bottom: none;
}

/* 리뷰 */
.shop-goods-review-summary {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 10px;
	padding: 14px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #f8fafc;
	margin-bottom: 14px;
}

.shop-goods-review-score-wrap {
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
}

.shop-goods-review-score {
	font-size: 26px;
	font-weight: 800;
	color: #0f172a;
	line-height: 1;
}

.shop-goods-review-score-max {
	font-size: 13px;
	font-weight: 700;
	color: #64748b;
}

.shop-goods-review-count {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	color: #334155;
}

.shop-goods-review-write {
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	padding: 20px 16px;
	background: #fff;
	margin-bottom: 14px;
}

.shop-goods-review-write-title {
	margin: 0 0 16px;
	font-size: 16px;
	font-weight: 800;
	color: #0f172a;
	text-align: center;
}

.shop-goods-review-snapshot-note {
	margin: -4px 0 16px;
	padding: 10px 12px;
	border-radius: 10px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	font-size: 12px;
	line-height: 1.6;
	color: #475569;
	text-align: center;
	word-break: keep-all;
}

.shop-goods-review-snapshot-note strong {
	color: #1e3a8a;
	font-weight: 800;
}

.shop-goods-review-form {
	display: grid;
	gap: 16px;
}

.shop-goods-review-field {
	display: grid;
	gap: 6px;
}

.shop-goods-review-field label {
	font-size: 13px;
	font-weight: 700;
	color: #334155;
}

.shop-goods-review-question {
	font-size: 15px;
	font-weight: 800;
	color: #0f172a;
	text-align: center;
	display: block;
	margin-bottom: 4px;
}

.shop-goods-review-rating-label {
	font-size: 13px;
	font-weight: 700;
	color: #334155;
}

.shop-goods-rating-stars {
	margin: 0;
	padding: 0;
	border: 0;
	display: inline-flex;
	flex-direction: row-reverse;
	gap: 2px;
	justify-self: center;
	align-self: start;
	width: fit-content;
}

.shop-goods-rating-stars input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.shop-goods-rating-stars label {
	font-size: 32px;
	line-height: 1;
	color: #cbd5e1;
	cursor: pointer;
	user-select: none;
	transition: color 0.15s ease;
}

.shop-goods-rating-stars label:hover,
.shop-goods-rating-stars label:hover ~ label,
.shop-goods-rating-stars input[type="radio"]:checked ~ label {
	color: #f59e0b;
}

.shop-goods-rating-stars input[type="radio"]:focus + label {
	outline: none;
}

.shop-goods-review-rating-help {
	margin: 2px 0 0;
	font-size: 12px;
	color: #64748b;
}

.shop-goods-review-rating-value {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	color: #334155;
	text-align: center;
}

/* 텍스트 영역 + 글자 수 카운터 */
.shop-goods-review-textarea-wrap {
	position: relative;
}

.shop-goods-review-textarea-wrap textarea {
	width: 100%;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #f8fafc;
	font-size: 14px;
	color: #0f172a;
	padding: 14px 14px 32px;
	box-sizing: border-box;
	resize: vertical;
	min-height: 130px;
	line-height: 1.6;
}

.shop-goods-review-textarea-wrap textarea::placeholder {
	color: #94a3b8;
}

.shop-goods-review-textarea-wrap textarea:focus {
	outline: none;
	border-color: #2563eb;
	background: #fff;
}

.shop-goods-review-char-count {
	position: absolute;
	right: 14px;
	bottom: 10px;
	font-size: 12px;
	color: #94a3b8;
	pointer-events: none;
}

.shop-goods-review-condition-help {
	margin: 2px 2px 0;
	font-size: 12px;
	line-height: 1.6;
	color: #475569;
	text-align: center;
	word-break: keep-all;
}

.shop-goods-review-condition-help.is-warning {
	color: #b45309;
	font-weight: 700;
}

.shop-goods-review-condition-help.is-complete {
	color: #15803d;
	font-weight: 700;
}

.shop-goods-review-condition-help-sep {
	display: inline-block;
	margin: 0 4px;
	color: #94a3b8;
}

/* 첨부 영역 */
.shop-goods-review-attach {
	display: grid;
	gap: 10px;
}

.shop-goods-review-attach-input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.shop-goods-review-attach-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 18px 16px 14px;
	border: 1px dashed #cbd5e1;
	border-radius: 12px;
	background: #f8fafc;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
}

.shop-goods-review-attach-btn:hover {
	border-color: #94a3b8;
	background: #f1f5f9;
}

.shop-goods-review-attach-icon {
	font-size: 24px;
	color: #64748b;
	line-height: 1;
}

.shop-goods-review-attach-text {
	font-size: 14px;
	font-weight: 700;
	color: #334155;
}

.shop-goods-review-attach-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
}

.shop-goods-review-attach-reward {
	color: #16a34a;
	font-weight: 700;
}

.shop-goods-review-attach-sep {
	color: #cbd5e1;
}

.shop-goods-review-attach-done {
	color: #16a34a;
	font-weight: 700;
}

.shop-goods-review-attach-done i {
	font-size: 13px;
}

/* 첨부 썸네일 */
.shop-goods-review-thumbs {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.shop-goods-review-thumbs:empty {
	display: none;
}

.shop-goods-review-thumb {
	position: relative;
	width: 64px;
	height: 64px;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #e5e7eb;
	background: #f8fafc;
}

.shop-goods-review-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.shop-goods-review-thumb-del {
	position: absolute;
	top: 2px;
	right: 2px;
	width: 20px;
	height: 20px;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 12px;
	line-height: 20px;
	text-align: center;
	cursor: pointer;
	padding: 0;
}

.shop-goods-review-thumb-del:hover {
	background: rgba(0, 0, 0, 0.75);
}

.shop-goods-review-field select,
.shop-goods-review-field input[type="file"] {
	width: 100%;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	background: #fff;
	font-size: 14px;
	color: #0f172a;
	padding: 10px 12px;
	box-sizing: border-box;
}

.shop-goods-review-help {
	margin: 0;
	font-size: 12px;
	color: #64748b;
}

.shop-goods-review-submit-wrap {
	display: flex;
	justify-content: flex-end;
}

.shop-goods-review-submit {
	width: 100%;
	height: 44px;
	padding: 0 16px;
	border: 1px solid #2563eb;
	border-radius: 10px;
	background: #2563eb;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.shop-goods-review-submit:hover {
	background: #1d4ed8;
}

.shop-goods-review-blocked {
	margin: 0;
	padding: 12px;
	border-radius: 10px;
	background: #fff7ed;
	border: 1px solid #fed7aa;
	font-size: 13px;
	font-weight: 700;
	color: #c2410c;
}

.shop-goods-review-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.shop-goods-review-item {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 12px;
	background: #fff;
	display: grid;
	gap: 8px;
}

.shop-goods-review-head {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.shop-goods-reviewer {
	font-size: 14px;
	font-weight: 800;
	color: #0f172a;
}

.shop-goods-review-rating {
	font-size: 14px;
	letter-spacing: 1px;
	color: #f59e0b;
	font-weight: 700;
}

.shop-goods-review-date {
	margin-left: auto;
	font-size: 12px;
	color: #94a3b8;
}

.shop-goods-review-content {
	margin: 0;
	font-size: 14px;
	line-height: 1.65;
	color: #334155;
	word-break: break-word;
}

.shop-goods-review-images {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.shop-goods-review-image-wrap {
	max-width: 260px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	overflow: hidden;
	background: #f8fafc;
}

.shop-goods-review-image {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}

/* 문의 */
.shop-goods-inquiry-write {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 14px;
	background: #fff;
	margin-bottom: 14px;
}

.shop-goods-inquiry-write-title {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 800;
	color: #0f172a;
}

.shop-goods-inquiry-form {
	display: grid;
	gap: 10px;
}

.shop-goods-inquiry-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.shop-goods-inquiry-field {
	display: grid;
	gap: 6px;
}

.shop-goods-inquiry-field label {
	font-size: 13px;
	font-weight: 700;
	color: #334155;
}

.shop-goods-inquiry-field input,
.shop-goods-inquiry-field textarea {
	width: 100%;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	background: #fff;
	font-size: 14px;
	color: #0f172a;
	padding: 10px 12px;
	box-sizing: border-box;
}

.shop-goods-inquiry-field textarea {
	resize: vertical;
	min-height: 110px;
}

.shop-goods-inquiry-help {
	margin: 2px 0 0;
	font-size: 12px;
	color: #64748b;
}

.shop-goods-inquiry-agree {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
}

.shop-goods-inquiry-agree-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.shop-goods-inquiry-policy-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	padding: 0 12px;
	border: 1px solid #dbe3ee;
	border-radius: 999px;
	background: #f8fafc;
	color: #334155;
	font-size: 12px;
	font-weight: 700;
	font-family: inherit;
	white-space: nowrap;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.shop-goods-inquiry-policy-btn:hover,
.shop-goods-inquiry-policy-btn:focus-visible {
	border-color: #bfdbfe;
	background: #eff6ff;
	color: #2563eb;
}

.shop-goods-inquiry-policy-btn:focus-visible {
	outline: 2px solid rgba(37, 99, 235, 0.22);
	outline-offset: 2px;
}

.shop-goods-inquiry-secret {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
}

.shop-goods-inquiry-submit-wrap {
	display: flex;
	justify-content: flex-end;
}

.shop-goods-inquiry-submit {
	height: 40px;
	padding: 0 16px;
	border: 1px solid #2563eb;
	border-radius: 10px;
	background: #2563eb;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.shop-goods-inquiry-submit:hover {
	background: #1d4ed8;
}

.shop-goods-inquiry-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.shop-goods-inquiry-item {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 12px;
	background: #fff;
	display: grid;
	gap: 8px;
}

.shop-goods-inquiry-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	flex-wrap: wrap;
}

.shop-goods-inquiry-writer {
	font-size: 14px;
	font-weight: 800;
	color: #0f172a;
}

.shop-goods-inquiry-writer-wrap {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.shop-goods-inquiry-secret-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	background: #eef2ff;
	color: #4338ca;
	border: 1px solid #c7d2fe;
}

.shop-goods-inquiry-date {
	font-size: 12px;
	color: #94a3b8;
}

.shop-goods-inquiry-content {
	margin: 0;
	font-size: 14px;
	line-height: 1.65;
	color: #334155;
	word-break: break-word;
}

.shop-goods-inquiry-content-secret {
	color: #64748b;
	font-style: italic;
}

.shop-goods-inquiry-answer {
	margin-top: 8px;
	padding: 10px 12px;
	border-radius: 10px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
}

.shop-goods-inquiry-answer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 6px;
}

.shop-goods-inquiry-answer-title {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 800;
	color: #1e293b;
}

.shop-goods-inquiry-answer-date {
	font-size: 12px;
	color: #94a3b8;
}

.shop-goods-inquiry-answer-content {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: #334155;
	word-break: break-word;
}

.shop-goods-inquiry-unlock-form {
	margin-top: 10px;
}

.shop-goods-inquiry-unlock-input-wrap {
	display: flex;
	gap: 8px;
	align-items: center;
}

.shop-goods-inquiry-unlock-input {
	flex: 1;
	min-width: 0;
	height: 38px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 0 10px;
	font-size: 13px;
	color: #0f172a;
	background: #fff;
}

.shop-goods-inquiry-unlock-btn {
	height: 38px;
	padding: 0 12px;
	border: 1px solid #94a3b8;
	border-radius: 8px;
	background: #f8fafc;
	color: #334155;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
}

.shop-goods-inquiry-unlock-btn:hover {
	background: #e2e8f0;
}

.shop-goods-suggest {
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid #e5e7eb;
}

.shop-goods-suggest-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
	flex-wrap: wrap;
}

.shop-goods-suggest-copy {
	display: grid;
	gap: 4px;
}

.shop-goods-suggest-title {
	margin: 0;
	font-size: 18px;
	font-weight: 800;
	color: #0f172a;
}

.shop-goods-suggest-subtitle {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: #64748b;
	line-height: 1.5;
}

.shop-goods-suggest-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
	color: #2563eb;
	text-decoration: none;
	white-space: nowrap;
}

.shop-goods-suggest-more:hover {
	color: #1d4ed8;
}

.shop-goods-suggest-list {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* 반응형 */
@media (max-width: 600px) {
	.shop-goods-badges-desktop {
		display: none;
	}

	.shop-goods-title-row {
		display: flex;
		align-items: flex-start;
		justify-content: space-between;
		gap: 8px;
		margin-bottom: 10px;
	}

	.shop-goods-title {
		font-size: 18px;
		flex: 1;
		min-width: 0;
	}

	.shop-goods-title-main {
		display: grid;
		gap: 8px;
	}

	.shop-goods-badges-mobile-inline {
		display: inline-flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 4px;
		margin: 0;
		flex-shrink: 0;
	}

	.shop-goods-badges-mobile-inline .shop-goods-badge {
		height: 20px;
		padding: 0 6px;
		font-size: 10px;
	}

	.shop-goods-share-trigger {
		width: 40px;
		height: 40px;
		border-radius: 12px;
	}

	.shop-goods-price-sale {
		font-size: 24px;
	}

	.shop-goods-action-btns {
		flex-direction: column;
	}

	.shop-goods-btn {
		height: 58px;
		font-size: 16px;
	}

	.shop-goods-btn-wishlist {
		flex: 1 1 auto;
	}

	.shop-goods-info {
		padding: 16px;
	}

	.shop-goods-attr-table th {
		width: 100px;
	}

	.shop-goods-review-summary {
		flex-direction: column;
		align-items: flex-start;
	}

	.shop-goods-review-date {
		margin-left: 0;
	}

	.shop-goods-inquiry-row {
		grid-template-columns: 1fr;
	}

	.shop-goods-inquiry-agree-row {
		align-items: flex-start;
	}

	.shop-goods-suggest-title {
		font-size: 17px;
	}
}

@media (max-width: 768px) {
	.shop-goods-gallery {
		position: static;
		top: auto;
	}

	.shop-goods-option-area {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		align-items: center;
		column-gap: 12px;
		row-gap: 6px;
		margin-bottom: 12px;
	}

	.shop-goods-option-area .shop-goods-option-label {
		margin-bottom: 0;
		font-size: 12px;
		white-space: nowrap;
		grid-column: 1;
		grid-row: 1;
	}

	.shop-goods-option-area .shop-goods-option-select {
		width: 100%;
		height: 42px;
		padding: 0 12px;
		font-size: 13px;
		grid-column: 2;
		grid-row: 1;
	}

	.shop-goods-option-area .shop-goods-option-help {
		margin-top: 0;
		font-size: 11px;
		min-height: 0;
		grid-column: 1 / -1;
	}

	.shop-goods-qty-area {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		margin-bottom: 14px;
	}

	.shop-goods-qty-area .shop-goods-option-label {
		margin-bottom: 0;
		flex-shrink: 0;
		font-size: 12px;
	}

	.shop-goods-qty-area .shop-goods-qty-control {
		margin-left: auto;
		height: 40px;
		border-radius: 9px;
	}

	.shop-goods-qty-area .shop-goods-qty-btn {
		width: 40px;
		height: 40px;
		font-size: 16px;
	}

	.shop-goods-qty-area .shop-goods-qty-input {
		width: 52px;
		height: 40px;
		font-size: 14px;
	}

	#shopGoodsBuyForm .shop-goods-action-btns {
		flex-direction: column;
		gap: 12px;
	}

	#shopGoodsBuyForm .shop-goods-action-btns .shop-goods-btn {
		height: 60px !important;
		min-height: 60px !important;
		line-height: 1.2 !important;
		font-size: 16px !important;
		padding: 0 14px !important;
	}

	.shop-goods-description-wrap.is-collapsed .shop-goods-description {
		max-height: 260px;
		overflow: hidden;
	}

	.shop-goods-description-wrap.is-collapsed .shop-goods-description::after {
		content: '';
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		height: 72px;
		pointer-events: none;
		background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff 76%);
	}

	.shop-goods-desc-more-btn {
		display: flex;
		align-items: center;
		justify-content: center;
		margin: 12px auto 0;
		padding: 0 14px;
		height: 38px;
		border: 1px solid #cbd5e1;
		border-radius: 999px;
		background: #ffffff;
		color: var(--shop-text);
		font-size: 13px;
		font-weight: 700;
		cursor: pointer;
		width: fit-content;
		min-width: 92px;
		box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
		position: relative;
		z-index: 2;
	}

	.shop-goods-desc-more-btn[hidden] {
		display: none;
	}

	.shop-goods-image-modal {
		padding: 12px;
	}

	.shop-goods-image-modal-dialog {
		width: 100%;
		padding: 12px;
		border-radius: 14px;
	}

	.shop-goods-image-modal-counter {
		order: 3;
		width: 100%;
		text-align: center;
	}

	.shop-goods-image-modal-head {
		flex-wrap: wrap;
	}

	.shop-goods-image-modal-body {
		padding: 12px 44px;
	}

	.shop-goods-image-modal-nav {
		width: 34px;
		height: 34px;
	}

	.shop-goods-image-modal-nav.is-prev {
		left: 8px;
	}

	.shop-goods-image-modal-nav.is-next {
		right: 8px;
	}

	.shop-goods-image-modal-img {
		max-height: calc(100vh - 132px);
	}

	.shop-goods-share-sheet {
		width: 100%;
		padding: 10px 16px 16px;
		border-radius: 22px 22px 0 0;
	}

	.shop-goods-share-head strong {
		font-size: 18px;
	}

	.shop-goods-share-actions {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

	.shop-goods-share-action {
		min-height: 50px;
		font-size: 14px;
		padding: 0 12px;
	}

	.shop-goods-suggest-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

}

@media (max-width: 380px) {
	.shop-goods-share-actions {
		grid-template-columns: 1fr;
	}

	.shop-goods-suggest-list {
		grid-template-columns: 1fr;
	}
}
