/* SaveAs creator shop (/creator/{shop}/) inside the storefront theme. Product cards keep the theme's own style. */

.saveas-shop {
	--saveas-shop-border: #e5e7eb;
	--saveas-shop-sub: #666;
	margin-bottom: 48px;
}

.saveas-shop__cover {
	height: 280px;
	background: #f3f4f6;
	border-radius: 12px;
	overflow: hidden;
}

/* Product cards: 4 columns regardless of the theme's float grid wrapper. */
.saveas-shop ul.products,
.saveas-market ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px 24px;
	margin: 0;
	padding: 0;
}

.saveas-shop ul.products::before,
.saveas-shop ul.products::after,
.saveas-market ul.products::before,
.saveas-market ul.products::after {
	display: none;
}

.saveas-shop ul.products li.product,
.saveas-market ul.products li.product {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
}

.saveas-shop ul.products li.product img,
.saveas-market ul.products li.product img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 8px;
}

@media (max-width: 767px) {
	.saveas-shop ul.products,
	.saveas-market ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 12px;
	}
}

.saveas-shop__cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.saveas-shop__cover--empty {
	height: 140px;
}

.saveas-shop__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 16px;
}

.saveas-shop__head {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 20px;
	margin-top: -48px;
}

.saveas-shop__avatar {
	flex: none;
	width: 112px;
	height: 112px;
	border: 4px solid #fff;
	border-radius: 50%;
	background: #e5e7eb;
	overflow: hidden;
}

.saveas-shop__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.saveas-shop__avatar span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #555;
	font-size: 36px;
	font-weight: 600;
}

.saveas-shop__meta {
	min-width: 0;
	padding-top: 60px;
}

.saveas-shop__name {
	margin: 0;
	font-size: 26px;
	line-height: 1.3;
}

.saveas-shop__tagline {
	margin: 4px 0 0;
	color: var(--saveas-shop-sub);
}

.saveas-shop__count {
	margin: 4px 0 0;
	color: #888;
	font-size: 13px;
}

.saveas-shop__tabs {
	display: flex;
	gap: 4px;
	margin-top: 24px;
	border-bottom: 1px solid var(--saveas-shop-border);
}

.saveas-shop__tab {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 16px;
	margin-bottom: -1px;
	border-bottom: 2px solid transparent;
	color: var(--saveas-shop-sub);
	font-weight: 500;
	text-decoration: none;
}

.saveas-shop__tab:hover {
	color: #222;
}

.saveas-shop__tab.is-active {
	border-bottom-color: currentColor;
	color: #222;
	font-weight: 700;
}

.saveas-shop__tab:focus-visible,
.saveas-shop__more:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.saveas-shop__body {
	padding-top: 28px;
}

.saveas-shop__section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.saveas-shop__title {
	margin: 0;
	font-size: 18px;
}

.saveas-shop__more {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--saveas-shop-sub);
	font-size: 14px;
}

.saveas-shop__empty {
	padding: 48px 0;
	color: #888;
	text-align: center;
}

.saveas-shop__about--teaser {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--saveas-shop-border);
}

.saveas-shop__text {
	margin-top: 12px;
	max-width: 760px;
	line-height: 1.8;
}

@media (max-width: 767px) {
	.saveas-shop__cover {
		height: 160px;
	}

	.saveas-shop__cover--empty {
		height: 96px;
	}

	.saveas-shop__head {
		gap: 12px;
		margin-top: -36px;
	}

	.saveas-shop__meta {
		padding-top: 42px;
	}

	.saveas-shop__avatar {
		width: 80px;
		height: 80px;
	}

	.saveas-shop__name {
		font-size: 20px;
	}

	.saveas-shop__tab {
		flex: 1;
		justify-content: center;
		padding: 0 8px;
	}
}

/* Creator name on product cards and product pages */
.saveas-product-creator {
	display: block;
	margin: 0 0 2px;
	color: #777;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
}

a.saveas-product-creator--single {
	display: inline-block;
	margin-bottom: 6px;
	color: #555;
	font-size: 14px;
	text-decoration: none;
}

a.saveas-product-creator--single:hover {
	color: #222;
	text-decoration: underline;
}

/* The theme's "직접 디자인하기" ordering note follows its Naver Pay button; creator products have no designer. */
.saveas-creator-product #saveas-go-cart-direct + p {
	display: none;
}

/* [saveas_creator_market] */
.saveas-market {
	margin-bottom: 48px;
}

.saveas-market__intro {
	padding: 40px 32px;
	background: #f6f4ef;
	border-radius: 12px;
}

.saveas-market__eyebrow {
	margin: 0 0 8px;
	color: #8a7f6a;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.saveas-market__title {
	margin: 0;
	font-size: 30px;
	line-height: 1.35;
}

.saveas-market__lead {
	margin: 8px 0 0;
	color: #555;
	font-size: 17px;
}

.saveas-market__steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.saveas-market__step {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px;
	background: #fff;
	border-radius: 10px;
	font-size: 13px;
	color: #666;
	line-height: 1.5;
}

.saveas-market__step strong {
	color: #222;
	font-size: 15px;
}

.saveas-market__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin-bottom: 4px;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	background: #2f3b4c;
	border-radius: 50%;
}

.saveas-market__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 24px 0 0;
}

.saveas-market__btn {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 20px;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	background: #2f3b4c;
	border-radius: 8px;
}

.saveas-market__btn:hover {
	color: #fff;
	background: #1f2835;
}

.saveas-market__btn--ghost,
.saveas-market__btn--ghost:hover {
	color: #2f3b4c;
	background: transparent;
	box-shadow: inset 0 0 0 1px #c9c2b3;
}

.saveas-market__section {
	margin-top: 40px;
}

.saveas-market__heading {
	margin: 0 0 16px;
	font-size: 20px;
}

.saveas-market__creators {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.saveas-market__creator {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	height: 100%;
	padding-bottom: 16px;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
}

.saveas-market__creator:hover {
	border-color: #bbb;
}

/* Themes underline links inside page content; the cards and buttons are links too. */
.saveas-market a.saveas-market__creator,
.saveas-market a.saveas-market__btn {
	text-decoration: none !important;
}

.saveas-market__cover {
	display: block;
	width: 100%;
	height: 96px;
	background: #e5e7eb center / cover no-repeat;
}

.saveas-market__avatar {
	width: 56px;
	height: 56px;
	margin: -28px 0 0 14px;
	overflow: hidden;
	background: #e5e7eb;
	border: 3px solid #fff;
	border-radius: 50%;
}

.saveas-market__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.saveas-market__name {
	margin: 8px 14px 0;
	font-size: 16px;
}

.saveas-market__tagline {
	margin: 4px 14px 0;
	color: #666;
	font-size: 13px;
	line-height: 1.5;
}

.saveas-market__count {
	margin: 8px 14px 0;
	color: #999;
	font-size: 12px;
}

@media (max-width: 767px) {
	.saveas-market__intro {
		padding: 28px 20px;
	}

	.saveas-market__title {
		font-size: 23px;
	}

	.saveas-market__lead {
		font-size: 15px;
	}

	.saveas-market__steps,
	.saveas-market__creators {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* [saveas_creator_banner] */
.saveas-cbanner {
	max-width: 1920px;
	margin: 32px auto;
}

.saveas-cbanner__link {
	display: block;
	overflow: hidden;
	border-radius: 12px;
	transition: transform .2s ease, box-shadow .2s ease;
}

.saveas-cbanner__link:hover,
.saveas-cbanner__link:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(15, 23, 42, .18);
}

.saveas-cbanner__link:focus-visible {
	outline: 3px solid #f5c26b;
	outline-offset: 3px;
}

.saveas-cbanner__img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
}

@media (max-width: 767px) {
	.saveas-cbanner {
		margin: 24px auto;
	}

	.saveas-cbanner__link {
		border-radius: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.saveas-cbanner__link {
		transition: none;
	}

	.saveas-cbanner__link:hover {
		transform: none;
	}
}
