/* SNAP HUB — Home page. Single source of truth for base, responsive, and home-only refinements. */

/* ==========================================================================
   Base
   ========================================================================== */

/* SnapHub main page styles. */

/* Home page theme values — desktop/tablet base. */
.page-home.theme--pink {
	--page-header-bg: transparent;
	--home-hero-bg: linear-gradient(180deg,#ffe8e8 0,#fff 82.03%);
}

.page-home.theme--white {
	--home-hero-bg: #fff;
}

.hero {
	position: relative;
	height: 1269px;
	overflow: hidden;
	background: var(--home-hero-bg,#fff);
}

.hero__brand-bg {
	position: absolute;
	left: 50%;
	top: 126px;
	width: 1794px;
	height: 284px;
	transform: translateX(-50%);
	pointer-events: none;
	user-select: none;
}

.hero__brand-bg img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.hero__copy {
	position: absolute;
	z-index: 3;
	left: calc(50% - 695px);
	top: 180px;
	width: 580px;
	height: 192px;
}

/*
 * Group 60 typography from the Figma source.
 * Keep the live HTML text and use the original ROKAF Sans Bold metrics.
 * Pretendard is only a fallback when ROKAF Sans is unavailable on the client.
 */

.hero__copy-art {
	display: block;
	width: 580px;
	margin: 0;
	color: var(--ink);
	font-family: "ROKAF Sans",var(--font-display);
	font-size: 48px;
	font-style: normal;
	font-weight: 700;
	line-height: 60px;
	letter-spacing: 0;
	font-variation-settings: normal;
	font-synthesis: none;
	font-kerning: normal;
	text-rendering: geometricPrecision;
	-webkit-font-smoothing: antialiased;
}

.hero__copy-line {
	display: block;
	white-space: nowrap;
}

.hero__copy-line:first-child {
	box-sizing: border-box;
	padding-left: 5px;
	font-size: inherit;
	line-height: inherit;
}

.hero__copy-line--brand {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-top: 3px;
}

.hero__brand-highlight {
	margin: 0;
	padding: 3px 6px;
	border: 0;
	background: var(--primary);
	color: #fff;
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-family: inherit;
	font-size: inherit;
	font-style: normal;
	font-weight: inherit;
	line-height: 1;
	letter-spacing: inherit;
	font-variation-settings: normal;
	white-space: nowrap;
}

.hero__copy-line--brand>span:not(.hero__brand-highlight) {
	display: block;
	width: 364px;
	flex: 0 0 364px;
	font-family: inherit;
	font-size: inherit;
	font-style: normal;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	font-variation-settings: normal;
	white-space: nowrap;
}

.hero__copy-description {
	margin-top: 21px;
	color: var(--text-secondary);
	font-size: 20px;
	font-weight: 400;
	line-height: 24px;
	letter-spacing: -1px;
	white-space: nowrap;
}

.hero__visual {
	position: absolute;
	z-index: 2;
	left: calc(50% + 160px);
	top: 0;
	width: 640px;
	height: 640px;
}

.hero__visual.swiper {
	overflow: visible;
}

.hero__visual .swiper-wrapper,
.hero__visual .swiper-slide {
	width: 100%;
	height: 100%;
}

.hero__visual .swiper-slide {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Hero bootstrap invariant.
 * Swiper loop may reorder slide DOM nodes while it initializes, so DOM position
 * (:first-child) is not a stable identity. Until our init callback marks the
 * component ready, keep layout measurable but paint only the canonical first banner. */
.hero__visual:not(.is-hero-ready) .swiper-slide {
	visibility: hidden;
	opacity: 0 !important;
	pointer-events: none;
}

.hero__visual:not(.is-hero-ready) .hero__slide--original {
	visibility: visible;
	opacity: 1 !important;
}

.hero__visual img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/*
 * The generated studio artwork contains a taller opaque subject area than the
 * original hero artwork. Normalize only that slide so both banners retain the
 * same perceived scale and optical center without changing shared hero geometry.
 */
.hero__visual .hero__slide--studio img {
	width: 94%;
	height: 94%;
	transform: translateY(4%);
}

/* Hero paging follows the supplied 87x24 SVG source exactly. */
.hero__counter {
	position: absolute;
	z-index: 3;
	left: 302px;
	top: 478px;
	width: 87px;
	min-width: 87px;
	height: 24px;
	padding: 0;
	border-radius: 12px;
	background: rgba(0,0,0,.37);
	color: #fff;
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 400;
	line-height: 14px;
	font-variant-numeric: tabular-nums;
}

.hero__counter-numbers {
	position: absolute;
	left: 17px;
	top: 50%;
	display: inline-flex;
	align-items: center;
	gap: 5.5px;
	transform: translateY(-50%);
	white-space: nowrap;
}

.hero__counter-numbers strong {
	font-weight: 400;
}

.hero__counter-numbers em {
	display: inline-flex;
	align-items: center;
	gap: 4.5px;
	font-style: normal;
	font-weight: 400;
	opacity: .6;
}

.hero__counter-control {
	position: absolute;
	top: 0;
	width: 14px;
	height: 24px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

.hero__counter-control--prev {
	left: 51px;
}

.hero__counter-control--next {
	left: 65px;
}

.hero__counter-control::before {
	display: block;
	width: 5px;
	height: 9px;
	background-position: center;
	background-repeat: no-repeat;
	background-size: 5px 9px;
	content: "";
}

.hero__counter-control--prev::before {
	background-image: url("../svg/common/icon-hero-prev.svg");
}

.hero__counter-control--next::before {
	background-image: url("../svg/common/icon-hero-next.svg");
}

.hero__counter-control:focus-visible {
	outline: 1px solid rgba(255,255,255,.95);
	outline-offset: -2px;
	border-radius: 8px;
}

.hero__counter-control:disabled {
	cursor: default;
	opacity: .45;
}

.hero-search {
	position: absolute;
	z-index: 5;
	left: calc(50% - 700px);
	top: 428px;
	width: 807px;
	height: 98px;
	border: 2px solid var(--primary);
	border-radius: 49px;
	background: #fff;
}

.hero-search__controls {
	position: absolute;
	left: 46px;
	right: 22px;
	top: 22px;
	width: auto;
	height: 50px;
	display: grid;
	grid-template-columns: 482px minmax(0,1fr);
	column-gap: 0;
	align-items: center;
}

.hero-search__filters {
	width: 482px;
	height: 33px;
	display: flex;
	align-items: center;
}

.hero-search__field {
	min-width: 0;
	width: 94px;
	flex: 0 0 94px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 14px;
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 20px;
	font-style: normal;
	font-weight: 600;
	line-height: 24px;
	letter-spacing: -1px;
	white-space: nowrap;
}

.hero-search__field span {
	display: block;
	width: 67px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hero-search__chevron {
	display: block;
	width: 13px;
	height: 9px;
	flex: 0 0 13px;
	background: var(--primary);
	-webkit-mask: url("../svg/common/icon-chevron-down-hero.svg") center / 13px 9px no-repeat;
	mask: url("../svg/common/icon-chevron-down-hero.svg") center / 13px 9px no-repeat;
}

.hero-search__field:disabled {
	cursor: default;
	color: var(--text-tertiary);
}

.hero-search__field:disabled .hero-search__chevron {
	opacity: .35;
}

.hero-search__divider {
	width: 1px;
	height: 33px;
	flex: 0 0 1px;
	background: var(--primary);
}

.hero-search__divider--region-district {
	margin-left: 42px;
	margin-right: 57px;
}

.hero-search__divider--district-type {
	margin-left: 59px;
	margin-right: 40px;
}

.hero-search__submit {
	width: 140px;
	height: 50px;
	justify-self: end;
	border-radius: 25px;
	background: var(--primary);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-family: var(--font-body);
	font-size: 20px;
	font-style: normal;
	font-weight: 800;
	line-height: 24px;
	letter-spacing: -1px;
}

.hero-search__search-icon {
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	overflow: visible;

	display: block;
	background: currentColor;
	-webkit-mask: url("../svg/common/icon-search.svg") center / contain no-repeat;
	mask: url("../svg/common/icon-search.svg") center / contain no-repeat;
}

.hero-search__submit span {
	display: block;
}

.category-heading {
	position: absolute;
	left: 50%;
	top: 703px;
	width: 790px;
	transform: translateX(-50%);
	text-align: center;
}

.category-heading h2 {
	font-size: 32px;
	line-height: 38px;
	font-weight: 600;
	letter-spacing: -1.6px;
}

.category-heading p {
	margin-top: 10px;
	color: #676767;
	font-size: 20px;
	line-height: 24px;
	font-weight: 400;
	letter-spacing: -1px;
}

.category-carousel {
	position: absolute;
	left: 50%;
	top: 827px;
	width: min(1397px,calc(100% - 80px));
	height: auto;
	aspect-ratio: 1397/402;
	transform: translateX(-50%);
	overflow: visible;
}

.category-carousel .swiper-wrapper {
	position: relative;
	width: 100%;
	height: 100%;
}

.category-card {
	--x: 50%;
	--card-rotate: 0deg;
	--layer: 1;
	--order: 0;
	position: absolute;
	left: 50%;
	top: 0;
	width: 22.33357194%;
	height: auto;
	aspect-ratio: 312/402;
	transform: translateX(-50%);
	transform-origin: center;
	z-index: var(--layer);
	opacity: 1;
	transition: left .38s var(--ease-out),transform .38s var(--ease-out);
	transition-delay: calc(var(--order)*24ms);
}

/*
 * Category card: Figma banner02 / Group 10 / Rectangle 31 / Group 64.
 * The wrapper keeps the rotated 312 x 402 bounding area; the visible clipped card
 * is the original 268 x 372 frame.
 */

.category-card__surface {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 85.8974359%;
	height: 92.5373134%;
	overflow: hidden;
	border: 1px solid rgba(255,255,255,.5);
	border-radius: 20px;
	background: #fff;
	box-shadow: none;
	transform: translate(-50%,-50%) rotate(var(--card-rotate));
	transform-origin: center;
	transition: transform .22s var(--ease-out);
	isolation: isolate;
}

.category-card__surface::after {
	content: "";
	position: absolute;
	z-index: 1;
	left: 0;
	right: 0;
	bottom: 0;
	height: 37.6344086%;
	background: linear-gradient(180deg,rgba(183,183,183,0) 0%,rgba(37,37,37,1) 99.99%);
	pointer-events: none;
}

.category-card__media {
	position: absolute;
	z-index: 0;
	left: -5.9701493%;
	top: -3.4946237%;
	display: block;
	width: 111.9402985%;
	height: 106.9892473%;
	max-width: none;
	object-fit: cover;
	pointer-events: none;
	user-select: none;
}

.category-card--baby .category-card__media {
	object-position: center 47%;
}

.category-card__title {
	position: absolute;
	z-index: 2;
	left: 9.7014925%;
	top: 5.3763441%;
	width: 80.554296%;
	height: 10.9886856%;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #fff;
	border-radius: 50px;
	background: rgba(255,255,255,.7);
	color: var(--ink);
	font-family: var(--font-inter);
	font-size: 16px;
	font-weight: 500;
	line-height: 16px;
	text-align: center;
	white-space: nowrap;
}

.category-card__meta {
	position: absolute;
	z-index: 2;
	left: 9.7220805%;
	bottom: 6.2117372%;
	width: 99px;
	color: #fff;
}

.category-card__meta span,
.category-card__meta strong {
	display: block;
	margin: 0;
	font-family: var(--font-body);
	white-space: nowrap;
}

.category-card__meta span {
	color: #f6f6f6;
	font-size: 14px;
	font-weight: 400;
	line-height: 14px;
}

.category-card__meta strong {
	margin-top: 3px;
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	line-height: 20px;
}

.category-card--baby {
	--x: 0%;
	--card-rotate: -7deg;
	--layer: 1;
	--order: 0;
}

.category-card--wedding {
	--x: 19.39871152%;
	--card-rotate: 7deg;
	--layer: 2;
	--order: 1;
}

.category-card--family {
	--x: 38.86900501%;
	--card-rotate: -7deg;
	--layer: 3;
	--order: 2;
}

.category-card--body {
	--x: 58.26771654%;
	--card-rotate: 7deg;
	--layer: 4;
	--order: 3;
}

.category-card--id {
	--x: 77.66642806%;
	--card-rotate: -7deg;
	--layer: 5;
	--order: 4;
}

.category-carousel.is-spread .category-card {
	left: var(--x);
	transform: none;
}

.category-carousel.is-spread .category-card.is-active-card {
	z-index: 20;
}

.category-carousel.is-spread .category-card.is-active-card .category-card__surface {
	box-shadow: none;
	transform: translate(-50%,calc(-50% - 22px)) rotate(0deg) scale(1.065);
}

.category-carousel.has-active-card .category-card:not(.is-active-card) {
	z-index: var(--layer);
}

.popular-section {
	position: relative;
	height: 887px;
	overflow: hidden;
	background: #fff;
	padding-top: 130px;
}

.popular-section__header {
	position: relative;
	width: 1410px;
	height: 128px;
	margin: 0 auto;
	padding-left: 10px;
	padding-right: 5px;
	box-sizing: border-box;
}

.popular-section__header h2 {
	font-size: 32px;
	line-height: 38px;
	font-weight: 600;
	letter-spacing: -1.6px;
}

.popular-section__header .section-more {
	position: absolute;
	right: 7px;
	top: 34.237px;
}

.section-more,
.new-section__more {
	--more-width: 168px;
	--more-line-width: 152px;
	--more-shift: 16px;
	--more-arrow-size: 17px;
	position: relative;
	width: var(--more-width);
	min-width: var(--more-width);
	height: 32px;
	display: block;
	color: #ff4848;
	font-size: 16px;
	font-weight: 500;
	line-height: 19px;
	letter-spacing: -.8px;
	white-space: nowrap;
}

.section-more::after,
.new-section__more::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: var(--more-line-width);
	height: 2px;
	border-radius: 999px;
	background: currentColor;
	transition: width .48s var(--ease-more);
}

.section-more__label,
.new-section__more > span:not(.new-section__more-arrow) {
	position: absolute;
	left: 0;
	top: 3px;
	display: block;
	color: currentColor;
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 500;
	line-height: 19px;
	letter-spacing: -.8px;
	white-space: nowrap;
}

.section-more__arrow,
.new-section__more-arrow {
	position: absolute;
	left: calc(var(--more-line-width) - var(--more-arrow-size));
	top: 4px;
	width: var(--more-arrow-size);
	height: 16px;
	display: block;
	overflow: visible;
	background: url("../svg/common/icon-section-more-arrow-figma.svg") center / contain no-repeat;
	transition: transform .48s var(--ease-more);
}

.section-more:focus-visible::after,
.new-section__more:focus-visible::after {
	width: var(--more-width);
}

.section-more:focus-visible .section-more__arrow,
.new-section__more:focus-visible .new-section__more-arrow {
	transform: translateX(var(--more-shift));
}

@media (hover: hover) and (pointer: fine) {
	.section-more:hover::after,
	.new-section__more:hover::after {
		width: var(--more-width);
	}

	.section-more:hover .section-more__arrow,
	.new-section__more:hover .new-section__more-arrow {
		transform: translateX(var(--more-shift));
	}
}

.filter-list {
	position: absolute;
	left: 10px;
	top: 62px;
	display: flex;
	gap: 10px;
}

.filter-list button {
	height: 38px;
	padding: 0 18px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	color: #666;
	font-size: 14px;
	white-space: nowrap;
}

.filter-list button.is-active {
	border-color: var(--primary);
	color: var(--primary);
	background: #fff;
}

.studio-track {
	position: absolute;
	left: 0;
	right: 0;
	top: 262px;
	height: 480px;
	overflow: visible;
}

.studio-track__empty {
	width: 100%;
	min-height: 280px;
	display: grid;
	place-items: center;
	color: #777;
	font-size: 15px;
	text-align: center;
}


.studio-track .swiper-wrapper {
	align-items: flex-start;
}

.studio-card--popular {
	position: relative;
	width: 438px;
	min-width: 438px;
	height: 471px;
	display: grid;
	grid-template-columns: minmax(0,1fr) auto;
	grid-template-areas: "image image" "tags location" "identity identity" "description description" "price price";
	align-content: start;
	column-gap: 12px;
}

.studio-card__image {
	grid-area: image;
	position: relative;
	width: 438px;
	height: 300px;
	overflow: hidden;
	border-radius: 20px;
	background: #eee;
}

.studio-card__image::after {
	content: none;
	position: absolute;
	z-index: 2;
	inset: auto 0 0;
	height: 92px;
	background: linear-gradient(transparent,rgba(0,0,0,.68));
	pointer-events: none;
}

.studio-card__image-link {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
	overflow: hidden;
	border-radius: inherit;
	cursor: pointer;
}

.studio-card__image-link>img,
.studio-card__image>img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	user-select: none;
	-webkit-user-drag: none;
}

.studio-card__badges {
	position: absolute;
	z-index: 3;
	left: 20px;
	top: 20px;
	display: flex;
	gap: 8px;
}

.badge {
	position: static;
	height: 31px;
	padding: 0 14px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 700;
}

.badge--new {
	background: #fff;
	color: var(--primary);
}

.badge--popular {
	background: var(--primary);
	color: #fff;
}

.favorite-button,
.new-card__favorite {
	position: absolute;
	z-index: 4;
	right: 19px;
	bottom: 16px;
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	filter: drop-shadow(0 1px 1px rgba(0,0,0,.35));
}

.studio-card__tags {
	grid-area: tags;
	min-width: 0;
	display: flex;
	gap: 7px;
	margin-top: 16px;
	overflow: hidden;
}

.studio-card__identity {
	grid-area: identity;
	position: relative;
	display: flex;
	align-items: center;
	margin-top: 10px;
	min-width: 0;
	min-height: 48px;
}

.studio-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	overflow: hidden;
	flex: 0 0 auto;
}

.studio-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.studio-card__identity strong {
	margin-left: 14px;
	font-size: 19px;
	font-weight: 750;
}

.rating {
	margin-left: auto;
	color: var(--primary);
	font-size: 15px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 5px;
}

.rating em {
	color: #ff8b90;
	font-weight: 400;
}

.rating i {
	font-size: 15px;
}

.studio-card__location {
	grid-area: location;
	align-self: start;
	justify-self: end;
	margin-top: 18px;
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: #333;
	white-space: nowrap;
}

.studio-card__location i {
	font-size: 16px;
}

.studio-card__description {
	grid-area: description;
	min-width: 0;
	margin-top: 10px;
	color: var(--text-tertiary);
	font-size: 14px;
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.studio-card__price {
	grid-area: price;
	margin-top: 7px;
	display: flex;
	align-items: baseline;
	gap: 5px;
}

.studio-card__price strong {
	font-size: 25px;
	line-height: 1;
	color: var(--ink);
}

.studio-card__price span {
	font-size: 14px;
	color: var(--text-disabled);
}

.new-section {
	position: relative;
	height: 820px;
	overflow: hidden;
	background: #fff;
}

.new-section__shape {
	position: absolute;
	left: 0;
	top: 0;
	width: 646px;
	height: 720px;
	border-radius: 0 40px 40px 0;
	background: var(--primary-pale);
}

.new-section__intro {
	position: absolute;
	z-index: 2;
	left: calc(50% - 695px);
	top: 93px;
	width: 350px;
	height: 610px;
}

.new-section__intro>span {
	display: inline-flex;
	width: 76px;
	height: 35px;
	padding: 0;
	justify-content: center;
	border-radius: 999px;
	background: #fff;
	color: var(--primary);
	align-items: center;
	font-size: 16px;
	line-height: 19px;
	font-weight: 700;
	letter-spacing: -.8px;
}

.new-section__intro h2 {
	margin-top: 17px;
	color: var(--primary);
	font-size: 32px;
	line-height: 38px;
	font-weight: 700;
	letter-spacing: -1.6px;
}

.new-section__intro>img {
	position: absolute;
	left: -16px;
	top: 182px;
	width: 296px;
	height: 385px;
	object-fit: contain;
}

.new-section__controls {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 24px;
	margin-left: 5px;
}

.new-section__control {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #fff;
	color: var(--primary);
	display: grid;
	place-items: center;
	font-size: 15px;
}

.new-section__control:disabled {
	opacity: .45;
	cursor: default;
}

.new-section__more--desktop {
	margin-left: 10px;
}

.new-section__more--mobile {
	display: none;
}

.new-cards {
	position: absolute;
	left: calc(50% - 260px);
	top: 20px;
	width: 1090px;
	height: 680px;
	overflow: hidden;
}

.new-cards .swiper-wrapper {
	height: 100%;
}

.new-card {
	width: 958px;
	height: 320px;
	display: flex;
	padding: 40px;
	border-radius: 20px;
	background: var(--primary-pale);
	transition: transform .2s ease;
}

.new-card--odd {
	align-self: flex-start;
	border: 1px solid var(--primary);
	background: #fff;
}

.new-card--even {
	align-self: flex-end;
	background: var(--primary-pale);
}

.new-card__image {
	position: relative;
	width: 336px;
	height: 240px;
	flex: 0 0 336px;
	overflow: hidden;
	border-radius: 10px;
}

.new-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.new-card__image>span {
	position: absolute;
	z-index: 2;
	left: 16px;
	top: 16px;
	height: 29px;
	padding: 0 14px;
	border-radius: 999px;
	background: #fff;
	color: var(--primary);
	display: flex;
	align-items: center;
	font-size: 13px;
	font-weight: 700;
}

.new-card__body {
	flex: 1;
	padding: 17px 0 0 37px;
	min-width: 0;
}

.new-card .studio-card__tags {
	margin-top: 0;
}

.new-card__title {
	display: flex;
	align-items: center;
	margin-top: 14px;
	min-height: 48px;
}

.new-card__avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	overflow: hidden;
	flex: 0 0 auto;
}

.new-card__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.new-card__title strong {
	margin-left: 17px;
	font-size: 20px;
}

.new-card__title .rating {
	margin-left: auto;
	margin-right: 0;
}

.new-card .studio-card__location {
	grid-area: auto;
	position: static;
	justify-self: auto;
	margin-top: 13px;
	font-size: 14px;
}

.new-card .studio-card__description {
	margin-top: 13px;
	font-size: 14px;
}

.new-card .studio-card__price {
	margin-top: 10px;
}

.new-card .studio-card__price strong {
	font-size: 25px;
	color: var(--ink);
}

.new-card--even .new-card__body,
.new-card--odd .new-card__body {
	display: flex;
	flex-direction: column;
}

.new-card--even .studio-card__tags {
	order: 0;
}

.new-card--even .new-card__title {
	order: 1;
}

.new-card--even .studio-card__location {
	order: 2;
}

.new-card--even .studio-card__description {
	order: 3;
}

.new-card--even .studio-card__price {
	order: 4;
}

/* Desktop new-studio cards share one metadata flow for consistent scanning.
 * White and pink surfaces use the same tags -> title -> location -> description -> price order. */
.new-card--odd .studio-card__tags {
	order: 0;
	margin-top: 0;
}

.new-card--odd .new-card__title {
	order: 1;
}

.new-card--odd .studio-card__location {
	order: 2;
	margin-top: 13px;
}

.new-card--odd .studio-card__description {
	order: 3;
}

.new-card--odd .studio-card__price {
	order: 4;
}

.new-section__pagination {
	display: none;
}

.cta-section {
	position: relative;
	height: 460px;
	overflow: hidden;
	background: #fff;
}

.cta-section__inner {
	position: absolute;
	left: 50%;
	top: 0;
	width: min(1800px,calc(100% - 80px));
	height: 380px;
	transform: translateX(-50%);
	overflow: hidden;
	border-radius: 50px;
	background: url("../images/cta-bg-figma-desktop.webp") center/100% 100% no-repeat;
}

.cta-section__copy {
	position: absolute;
	left: 200px;
	top: 143px;
}

.cta-section__copy h2 {
	font-size: 40px;
	line-height: 48px;
	font-weight: 600;
	letter-spacing: -2px;
}

.cta-section__copy p {
	margin-top: 16px;
	font-size: 20px;
	line-height: 24px;
	font-weight: 400;
	letter-spacing: -1px;
	color: #333;
}

.cta-section__actions {
	position: absolute;
	right: 200px;
	top: 158px;
	display: flex;
	gap: 20px;
}

.cta-button {
	width: 250px;
	height: 64px;
	padding: 0 28px 0 29px;
	border-radius: 32px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0;
	font-size: 20px;
	line-height: 24px;
	font-weight: 600;
	letter-spacing: -1px;
}

.cta-button__arrow {
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	margin-left: auto;
	background: currentColor;
	-webkit-mask: url("../svg/common/cta-arrow.svg") center / contain no-repeat;
	mask: url("../svg/common/cta-arrow.svg") center / contain no-repeat;
}

.cta-button--primary {
	background: var(--primary);
	color: #fff;
}

.cta-button--secondary {
	border: 1px solid var(--primary);
	background: #fff;
	color: var(--primary);
}

.section-more:focus-visible,
.new-section__more:focus-visible,
.cta-button:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.category-card,
	.category-card__surface,
	.section-more::after,
	.section-more__arrow,
	.new-section__more::after,
	.new-section__more-arrow {
		transition: none;
	}
}

@media (min-width: 1200px) {
	.studio-track {
		left: -214px;
		right: auto;
		width: calc(100% + 428px);
	}
}

/* ==========================================================================
	 Figma fidelity: 신규 입점 스튜디오 desktop card
	 Source: uploaded card reference, exact 958×320 composition.
	 Keep compact desktop/tablet/mobile rules untouched.
	 ========================================================================== */
@media (min-width: 1600px) {
	.new-card {
		padding: 39px;
	}

	.new-card__image>span {
		left: 19px;
		top: 17px;
		width: 59px;
		height: 25px;
		padding: 0;
		justify-content: center;
		font-size: 14px;
		font-weight: 700;
	}

	.new-card__favorite {
		right: 18px;
		bottom: 20px;
		width: 32px;
		height: 32px;
	}

	.new-card .studio-card__tags {
		gap: 6px;
	}

	.new-card .studio-card__tags .studio-tag {
		flex: 0 0 auto;
	}

	.new-card__title {
		width: 374px;
		max-width: 100%;
	}

	.new-card__title .rating {
		width: 88px;
		min-width: 88px;
		height: 20px;
		gap: 4px;
		line-height: 20px;
	}

	.new-card__title .rating>i {
		width: 20.2219px;
		height: 19.7753px;
		flex: 0 0 20.2219px;
		background: url("../svg/detail/icon-detail-rating-star.svg") center/contain no-repeat;
		font-size: 0;
	}

	.new-card .studio-card__location {
		gap: 3px;
	}

	.new-card .studio-card__location>i {
		width: 24px;
		height: 24px;
		flex: 0 0 24px;
		background: var(--ink);
		-webkit-mask: url("../images/icon-detail-area-compass.png") center/20px 20px no-repeat;
		mask: url("../images/icon-detail-area-compass.png") center/20px 20px no-repeat;
		font-size: 0;
	}

	.new-card--odd .studio-card__tags {
		margin-top: 12px;
	}

	.new-card--odd .new-card__title {
		margin-top: 10px;
	}

	.new-card--odd .studio-card__description {
		margin-top: 9px;
	}

	.new-card--odd .studio-card__price {
		margin-top: 13px;
	}
}

.new-card__image-link {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
	overflow: hidden;
	border-radius: inherit;
	cursor: pointer;
}

.new-card__image-link > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	user-select: none;
	-webkit-user-drag: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* SnapHub main page responsive rules.
 * Primary tiers: PC 1025px+ / approved mobile interaction model <=1024px.
 * Tablet widths keep the same mobile composition and expand fluidly; compact
 * guards exist only for content safety.
 */

/*
 * Figma desktop fidelity — Group 104 (popular heading filters)
 * and Group 51 (popular studio card).
 *
 * Scope is intentionally limited to >=1200px so the existing compact
 * compact desktop/mobile rules keep their current behavior and dimensions.
 */
@media (min-width: 1200px) {
	/* Group 104: keep the current heading position/typography; align filter pills. */
	.filter-list {
		gap: 14px;
	}

	.filter-list button {
		box-sizing: border-box;
		width: auto;
		min-width: max-content;
		height: 39px;
		padding: 0 18px;
		border-color: var(--line-strong);
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex: 0 0 auto;
		color: var(--text-secondary);
		font-size: 16px;
		font-weight: 500;
		line-height: 19px;
		letter-spacing: -.8px;
	}

	.filter-list button.is-active {
		border-color: var(--primary);
		color: var(--primary);
		font-weight: 500;
	}

	/* Group 51: 438 x 471 desktop card geometry from the Figma SVG export. */
	.studio-card--popular .studio-card__image::after {
		height: 151.37px;
		background: linear-gradient(180deg,rgba(0,0,0,0) 0%,#000 100%);
	}

	.studio-card--popular .studio-card__badges {
		left: 30px;
		top: 22.5px;
		gap: 6px;
	}

	.studio-card--popular .badge {
		height: 23.4375px;
		padding: 0;
		border-radius: 11.71875px;
		font-size: 14px;
		font-weight: 700;
		line-height: 17px;
	}

	.studio-card--popular .badge--new {
		width: 59px;
	}

	.studio-card--popular .badge--popular {
		width: 52px;
	}

	.studio-card--popular .favorite-button,
	.new-card__favorite {
		width: 32px;
		height: 30px;
		filter: drop-shadow(1px 1px 1px rgba(0,0,0,.23));
	}

	.studio-card--popular .favorite-button {
		right: 28px;
		bottom: 29.0625px;
	}

	.studio-card--popular .studio-card__tags {
		gap: 6px;
		margin-top: 16px;
	}

	.studio-card--popular .studio-card__location {
		margin-top: 16px;
		gap: 6px;
		color: var(--ink);
		font-size: 16px;
		font-weight: 400;
		line-height: 20px;
		letter-spacing: -.8px;
	}

	.studio-card--popular .studio-card__location i {
		font-size: 20px;
	}

	.studio-card--popular .studio-card__identity {
		margin-top: 10px;
		min-height: 48px;
	}

	.studio-card--popular .studio-card__identity strong {
		margin-left: 14px;
		color: var(--ink);
		font-size: 20px;
		font-weight: 700;
		line-height: 24px;
		letter-spacing: -1px;
	}

	.studio-card--popular .rating {
		color: var(--primary);
		font-size: 16px;
		font-weight: 700;
		line-height: 19px;
		gap: 6px;
	}

	.studio-card--popular .rating i {
		font-size: 17px;
	}

	.studio-card--popular .rating em {
		color: var(--primary-border);
		font-size: 16px;
		font-weight: 400;
	}

	.studio-card--popular .studio-card__description {
		margin-top: 10px;
		color: var(--text-secondary);
		font-size: 16px;
		font-weight: 400;
		line-height: 19px;
		letter-spacing: -.8px;
	}

	.studio-card--popular .studio-card__price {
		margin-top: 10px;
		gap: 4px;
	}

	.studio-card--popular .studio-card__price strong {
		color: var(--ink);
		font-size: 24px;
		font-weight: 700;
		line-height: 29px;
		letter-spacing: 0;
	}

	.studio-card--popular .studio-card__price span {
		color: var(--text-disabled);
		font-size: 16px;
		font-weight: 500;
		line-height: 19px;
		letter-spacing: -.8px;
	}
}

@media (max-width: 1599px) and (min-width: 1200px) {
	.hero__copy,
	.hero-search,
	.new-section__intro {
		left: 6vw;
	}

	.hero__copy {
		width: clamp(500px,42vw,580px);
		height: auto;
	}

	.hero__copy-art {
		font-family: "ROKAF Sans",var(--font-display);
		font-size: clamp(42px,3vw,48px);
		font-weight: 700;
		line-height: 1.25;
		letter-spacing: 0;
		font-variation-settings: normal;
	}

	.hero__copy-description {
		font-size: clamp(16px,1.25vw,18px);
		line-height: 1.333;
	}

	.hero__visual {
		left: auto;
		right: 0;
	}

	.hero__brand-bg {
		top: clamp(92px,6.6vw,126px);
		width: calc(100% - 48px);
		height: auto;
	}

	.hero__brand-bg img {
		height: auto;
	}

	.popular-section__header {
		width: calc(100% - 64px);
	}

	.new-section__shape {
		width: 34vw;
	}

	.new-cards {
		left: 36vw;
		right: 32px;
		width: auto;
	}

	.new-card {
		width: min(958px,100%);
	}

	.cta-section__inner {
		display: grid;
		grid-template-columns: minmax(0,1fr) auto;
		align-items: center;
		column-gap: clamp(28px,4vw,64px);
		padding-inline: clamp(48px,8vw,160px);
	}

	.cta-section__copy,
	.cta-section__actions {
		position: static;
	}

	.cta-section__copy {
		min-width: 0;
	}

	.cta-section__copy h2 {
		font-size: clamp(28px,2.4vw,36px);
	}

	.cta-section__actions {
		display: flex;
		gap: clamp(12px,1.5vw,20px);
	}

	.cta-button {
		width: clamp(190px,17vw,250px);
	}
}

/*
 * Compact desktop. Keep desktop information density,
 * but remove fixed-width clipping and negative carousel offsets.
 */

@media (max-width: 1199px) and (min-width: 1025px) {
	.hero__copy {
		left: 32px;
		top: 140px;
		width: 500px;
		height: auto;
	}

	.hero__copy-art {
		font-family: "ROKAF Sans",var(--font-display);
		font-size: 45px;
		font-weight: 700;
		line-height: 50px;
		letter-spacing: 0;
		font-variation-settings: normal;
		font-synthesis: none;
	}

	.hero__copy-line--brand {
		gap: 9px;
	}

	.hero__copy-description {
		margin-top: 16px;
		font-size: 16px;
		line-height: 22px;
		letter-spacing: -.75px;
	}

	.hero__visual {
		left: auto;
		right: 0;
		top: 12px;
		width: min(54vw,560px);
		height: min(54vw,560px);
	}

	.hero__visual img {
		width: 100%;
		height: 100%;
	}

	.hero__counter {
		left: 47%;
		top: 74%;
		transform: translateX(-50%);
	}

	.hero__brand-bg {
		width: calc(100% - 32px);
		height: auto;
	}

	.hero__brand-bg img {
		height: auto;
	}

	.hero-search {
		left: 32px;
		top: 350px;
		width: 700px;
		height: 86px;
		border-radius: 43px;
	}

	.hero-search__controls {
		left: 32px;
		right: 18px;
		top: 18px;
		width: auto;
		height: 50px;
		grid-template-columns: 430px minmax(0,1fr);
		column-gap: 0;
	}

	.hero-search__filters {
		width: 430px;
		height: 34px;
		display: grid;
		grid-template-columns: 118px 2px 190px 2px 118px;
	}

	.hero-search__field {
		width: auto;
		flex: initial;
		height: 34px;
		gap: 12px;
		font-size: 16px;
		font-weight: 700;
		line-height: 26px;
		letter-spacing: -.55px;
	}

	.hero-search__field--region {
		justify-content: flex-start;
	}

	.hero-search__field--district {
		justify-content: center;
	}

	.hero-search__field--type {
		justify-content: flex-end;
	}

	.hero-search__field span {
		width: auto;
	}

	.hero-search__chevron {
		width: 13px;
		height: 9px;
		flex-basis: 13px;
	}

	.hero-search__divider {
		width: 2px;
		height: 34px;
		margin: 0;
	}

	.hero-search__submit {
		width: 132px;
		gap: 11px;
		font-size: 18px;
		line-height: 25px;
		letter-spacing: -.55px;
	}

	.category-heading {
		top: 640px;
		width: min(850px,calc(100% - 48px));
	}

	.category-carousel {
		top: 770px;
		width: calc(100% - 48px);
	}

	.popular-section__header {
		width: calc(100% - 48px);
	}

	.studio-track {
		left: 24px;
		right: 0;
		width: auto;
		height: 480px;
		padding-right: 24px;
		overflow: hidden;
	}

	.studio-card--popular {
		width: 360px;
		min-width: 360px;
		height: 438px;
	}

	.studio-card__image {
		width: 360px;
		height: 247px;
	}

	.new-section__shape {
		width: 33%;
		min-width: 300px;
	}

	.new-section__intro {
		left: 24px;
		top: 82px;
		width: 275px;
	}

	.new-section__intro>img {
		left: 8px;
		width: 210px;
		height: auto;
	}

	.new-cards {
		left: 330px;
		right: 24px;
		top: 20px;
		width: auto;
	}

	.new-card {
		width: 100%;
		padding: 24px;
	}

	.new-card__image {
		width: 40%;
		height: 240px;
		flex-basis: 40%;
	}

	.new-card__body {
		padding: 10px 0 0 24px;
	}

	.new-card__title strong {
		font-size: 18px;
	}

	.new-card .studio-card__description {
		max-width: 100%;
	}

	.cta-section__inner {
		display: grid;
		grid-template-columns: minmax(0,1fr) auto;
		align-items: center;
		column-gap: 24px;
		padding-inline: 40px;
	}

	.cta-section__copy,
	.cta-section__actions {
		position: static;
	}

	.cta-section__copy h2 {
		font-size: 28px;
	}

	.cta-section__copy p {
		font-size: 16px;
	}

	.cta-button {
		width: clamp(172px,19vw,210px);
		padding-inline: clamp(20px,2vw,28px);
		font-size: 16px;
		gap: 0;
	}
}

/*
 * The <=1024px tier shares the approved mobile interaction model: mobile drawer,
 * centered category Swiper, touch-friendly studio lists.
 */

@media (max-width: 1024px) {
	.hero {
		height: 912px;
		background: linear-gradient(180deg,#ffebec 0,#fff 549px);
		overflow: hidden;
	}

	.hero__brand-bg {
		left: 50%;
		top: 145px;
		width: 520px;
		height: auto;
		transform: translateX(-50%);
	}

	.hero__brand-bg img {
		width: 100%;
		height: auto;
	}

	.hero__copy {
		left: 21px;
		right: 12px;
		top: 20px;
		width: auto;
		height: auto;
	}

	.hero__copy-art {
		width: auto;
		height: auto;
		font-family: "ROKAF Sans",var(--font-display);
		font-size: 28px;
		line-height: 32px;
		font-weight: 700;
		letter-spacing: 0;
		font-variation-settings: normal;
		font-synthesis: none;
	}

	.hero__copy-line:first-child {
		padding-left: 0;
	}

	.hero__copy-line--brand {
		gap: 4px;
		margin-top: 5px;
	}

	.hero__brand-highlight {
		width: 123px;
		flex-basis: 123px;
		height: 38px;
		padding: 0 5px;
		justify-content: center;
		text-align: center;
		letter-spacing: 0;
	}

	.hero__copy-line--brand>span:not(.hero__brand-highlight) {
		width: 212px;
		flex-basis: 212px;
	}

	.hero__copy-description {
		display: none;
	}

	.hero-search {
		left: 13px;
		right: 13px;
		top: 107px;
		cursor: pointer;
		width: auto;
		height: 52px;
		border-width: 1px;
		border-radius: 999px;
		display: flex;
		align-items: center;
		padding: 0 10px 0 18px;
	}

	.hero-search__controls {
		position: static;
		width: 100%;
		height: 100%;
		display: flex;
		align-items: center;
	}

	.hero-search__filters {
		display: none;
	}

	.hero-search__controls::before {
		content: "지역 · 촬영종류";
		font-size: 16px;
		line-height: 20px;
		font-weight: 500;
		color: rgba(68,68,68,.9);
		letter-spacing: 0;
	}

	.hero-search__submit {
		margin-left: auto;
		width: 40px;
		height: 40px;
		border-radius: 50%;
		font-size: 0;
		flex: 0 0 40px;
		gap: 0;
	}

	.hero-search__search-icon {
		width: 15px;
		height: 15px;
		flex-basis: 15px;
	}

	.hero__visual {
		left: 50%;
		top: 94px;

		transform: translateX(-50%);
	}

	.hero__counter {
		left: calc(50% + 10px);
		top: 275px;
		transform: translateX(-50%);
	}

	.category-heading {
		left: 50%;
		top: 454px;
		width: min(380px,calc(100% - 20px));
		transform: translateX(-50%);
	}

	.category-heading h2 {
		padding: 0;
		font-size: 20px;
		line-height: 24px;
		font-weight: 600;
		letter-spacing: -1px;
	}

	.category-heading p {
		margin-top: 8px;
		font-size: 14px;
		line-height: 17px;
		letter-spacing: -.7px;
	}

	.category-carousel {
		left: 0;

		width: 100%;

		aspect-ratio: auto;
		transform: none;

	}

	.category-carousel .swiper-wrapper {
		position: relative;

		margin-left: 0;
	}

	.category-carousel.is-spread .category-card {
		left: auto;
		top: auto;
		transform: none;
	}

	.category-card {
		position: relative;
		left: auto;
		top: auto;

		height: auto;
		aspect-ratio: 218/302;
		flex: 0 0 clamp(190px,54.5vw,218px);
		transform: none;
		transition: none;
		z-index: auto;
	}

	/* Figma mobile active card: 218 x 302 frame. */

	.category-card__surface {
		width: 100%;
		height: 100%;
		border-color: #fff;
		border-radius: 20px;
		background: rgba(255,255,255,.5);
	}

	.category-card__surface::after {
		left: -.9174312%;
		right: auto;
		width: 101.0528984%;
		height: 46.3576159%;
	}

	.category-card__media {
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
	}

	.category-card__title {
		left: 11.9266055%;
		top: 6.6225166%;
		width: 78.8990826%;
		height: 13.535732%;
		font-size: 16px;
		font-weight: 500;
		line-height: 16px;
	}

	.category-card__meta {
		left: 8.7407462%;
		bottom: 5.6648671%;
		width: 85.012047px;
	}

	.category-card__meta span {
		font-size: 12px;
		font-weight: 400;
		line-height: 12px;
	}

	.category-card__meta strong {
		margin-top: 5px;
		font-size: 16px;
		font-weight: 700;
		line-height: 16px;
	}

	.popular-section {
		height: 550px;
		padding-top: 45px;
		overflow: hidden;
	}

	.popular-section__header {
		width: min(100%,768px);
		height: 78px;
		margin-inline: auto;
		padding-inline: 13px;
	}

	.popular-section__header h2 {
		font-size: 20px;
		line-height: 24px;
		font-weight: 600;
		letter-spacing: -1px;
	}

	.popular-section__header .section-more {
		--more-width: 76px;
		--more-line-width: 76px;
		--more-shift: 0px;
		--more-arrow-size: 14px;
		right: 13px;
		top: 0;
		height: 32px;
		font-size: 14px;
		line-height: 17px;
		font-weight: 600;
		letter-spacing: -.7px;
	}

	.popular-section__header .section-more::after {
		height: 1px;
	}

	.popular-section__header .section-more__label {
		top: 6px;
	}

	.popular-section__header .section-more__label,
	.new-section__more--mobile > span:not(.new-section__more-arrow) {
		font-size: 14px;
		font-weight: 600;
		line-height: 17px;
		letter-spacing: -.7px;
	}

	.popular-section__header .section-more__arrow {
		top: 5px;
		height: 13px;
	}

	.filter-list {
		left: 13px;
		right: 13px;
		top: 34px;
		width: auto;
		max-width: none;
		gap: 8px;
		padding: 4px 0 6px;
		scroll-padding-inline: 0;
		overflow-x: auto;
		overflow-y: hidden;
		overscroll-behavior-inline: contain;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.filter-list::-webkit-scrollbar {
		display: none;
	}

	.filter-list button {
		height: 34px;
		padding: 0 13px;
		font-size: 10px;
		flex: 0 0 auto;
	}

	.studio-track {
		left: 0;
		right: 0;
		top: 127px;
		width: 100%;
		height: 400px;
		overflow: visible;
		padding-left: max(15px,calc((100% - 768px)/2 + 15px));
	}

	.studio-card--popular {

		height: 373px;
		grid-template-columns: minmax(0,1fr) auto;
		column-gap: 8px;
	}

	.studio-card__image {
		width: 100%;
		height: auto;
		aspect-ratio: 340/232;
		border-radius: 20px;
	}

	.studio-card__image::after {
		height: 72px;
		background: linear-gradient(transparent,rgba(0,0,0,.78));
	}

	.studio-card__badges {
		left: 19px;
		top: 19px;
		gap: 6px;
	}

	.badge {
		height: 25px;
		padding: 0 12px;
		font-size: 11px;
	}

	.favorite-button {
		right: 5px;
		bottom: 8px;
		width: 40px;
		height: 40px;
	}

	.studio-card__tags {
		margin-top: 14px;
		gap: 5px;
		align-items: center;
	}

	.studio-card__tags .studio-tag {
		flex: 0 0 auto;
	}

	.studio-card__location {
		margin-top: 14px;
		gap: 4px;
		font-size: 10px;
	}

	.studio-card__location i {
		font-size: 11px;
	}

	.studio-card__identity {
		margin-top: 7px;
		min-height: 32px;
	}

	.studio-avatar {
		width: 30px;
		height: 30px;
		flex-basis: 30px;
	}

	.studio-card__identity strong {
		min-width: 0;
		margin-left: 9px;
		font-size: 15px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.rating {
		font-size: 12px;
		gap: 3px;
		white-space: nowrap;
	}

	.rating i {
		font-size: 11px;
	}

	.studio-card__description {
		margin-top: 6px;
		font-size: 10px;
		line-height: 1.4;
	}

	.studio-card__price {
		margin-top: 7px;
	}

	.studio-card__price strong {
		font-size: 20px;
	}

	.studio-card__price span {
		font-size: 10px;
	}

	.new-section {
		height: 474px;
		background: var(--primary-surface);
		overflow: hidden;
	}

	.new-section__shape {
		display: none;
	}

	.new-section__intro {
		position: relative;
		left: auto;
		top: auto;
		width: min(100%,768px);
		height: 100px;
		margin-inline: auto;
		padding: 21px 14px 0;
	}

	.new-section__intro>span {
		width: 57px;
		height: 24px;
		padding: 0;
		justify-content: center;
		font-size: 10px;
	}

	.new-section__intro h2 {
		margin-top: 10px;
		font-size: 20px;
		line-height: 24px;
		font-weight: 700;
		letter-spacing: -1px;
	}

	.new-section__intro>img,
	.new-section__controls {
		display: none;
	}

	.new-section__more--desktop {
		display: none;
	}

	.new-section__more--mobile {
		--more-width: 80px;
		--more-line-width: 80px;
		--more-shift: 0px;
		--more-arrow-size: 14px;
		display: block;
		position: absolute;
		right: 14px;
		top: 53px;
		height: 32px;
		font-size: 14px;
		line-height: 17px;
		font-weight: 600;
	}

	.new-section__more--mobile::after {
		height: 1px;
	}

	.new-section__more--mobile>span {
		top: 4px;
	}

	.new-section__more--mobile .new-section__more-arrow {
		top: 5px;
		height: 13px;
	}

	.new-cards {
		left: 50%;
		right: auto;
		top: 126px;
		height: 286px;
		transform: translateX(-50%);
		overflow: hidden;
		touch-action: pan-y pinch-zoom;
	}

	/* <=1024px mobile interaction: one Swiper slide is one fixed two-card page.
	 * This keeps the section height stable for odd item counts and lets
	 * Swiper loop page groups without grid/loop edge cases. */
	.new-card-group {
		width: 100%;
		height: 286px;
		display: grid;
		grid-template-rows: repeat(2,136px);
		row-gap: 14px;
	}

	.new-card-group > .new-card,
	.new-card-slot--empty {
		width: 100%;
		height: 136px;
	}

	.new-card-slot--empty {
		visibility: hidden;
		pointer-events: none;
	}

	.new-card {
		width: 100%;
		height: 136px;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: transparent;
		display: grid;
		grid-template-columns: clamp(118px,35.5%,132px) minmax(0,1fr);
		column-gap: 14px;
		align-items: start;
	}

	.new-card--odd,
	.new-card--even {
		align-self: auto;
		border: 0;
		background: transparent;
	}

	.new-card__image {
		width: 100%;
		height: 112px;
		border-radius: 10px;
	}

	.new-card__image img {
		opacity: 1;
		object-fit: cover;
	}

	.new-card[data-studio-id="new-1"] .new-card__image img {
		object-position: center 66%;
	}

	.new-card__image>span {
		display: none;
	}

	.new-card__favorite {
		right: -2px;
		bottom: -2px;
		width: 36px;
		height: 36px;
	}

	.new-card__body {
		padding: 2px 0 0;
		min-width: 0;
	}

	.new-card__avatar {
		display: none;
	}

	.new-card .studio-card__tags {
		display: flex;
		order: 0;
		min-width: 0;
		margin: 0 0 6px;
		gap: 4px;
		overflow: hidden;
		flex-wrap: nowrap;
	}

	.new-card .studio-card__tags .studio-tag {
		white-space: nowrap;
	}

	.new-card .rating {
		display: inline-flex;
		margin-left: auto;
		flex: 0 0 auto;
		gap: 3px;
		font-size: 10px;
		line-height: 14px;
	}

	.new-card .rating i,
	.new-card .rating em {
		font-size: 10px;
		line-height: 14px;
	}

	.new-card__title {
		min-height: 21px;
		margin-top: 0;
		order: 1;
		gap: 8px;
	}

	.new-card__title strong {
		min-width: 0;
		margin-left: 0;
		flex: 1 1 auto;
		font-size: 15px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.new-card .studio-card__location {
		order: 2;
		margin-top: 5px;
		font-size: 10px;
	}

	.new-card .studio-card__description {
		order: 3;
		min-width: 0;
		margin-top: 6px;
		font-size: 10px;
		line-height: 1.35;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.new-card .studio-card__price {
		order: 4;
		margin-top: 7px;
	}

	.new-card .studio-card__price strong {
		font-size: 20px;
		color: var(--primary);
	}

	.new-card .studio-card__price span {
		font-size: 10px;
	}

	.new-section__pagination {
		position: absolute;
		left: 50%;
		bottom: 24px;
		display: flex;
		align-items: center;
		gap: 6px;
		transform: translateX(-50%);
	}

	.new-section__pagination span {
		width: 6px;
		height: 6px;
		border-radius: 999px;
		background: #ffd7d9;
		transition: width .2s ease,background .2s ease;
	}

	.new-section__pagination span.is-active {
		width: 24px;
		background: var(--primary);
	}

	.cta-section {
		height: 195px;
	}

	.cta-section__inner {
		left: 0;
		top: 0;
		width: 100%;
		height: 195px;
		transform: none;
		border-radius: 0;
		background-image: url("../images/cta-bg-figma-desktop.webp");
		background-position: center;
		background-size: cover;
		background-repeat: no-repeat;
	}

	.cta-section__copy {
		left: 13px;
		right: 13px;
		top: 44px;
		text-align: center;
	}

	.cta-section__copy h2 {
		font-size: 20px;
		line-height: 24px;
		font-weight: 600;
		letter-spacing: -1px;
	}

	.cta-section__copy p {
		margin-top: 8px;
		font-size: 14px;
		line-height: 17px;
		letter-spacing: -.7px;
	}

	.cta-section__actions {
		left: 19px;
		right: 19px;
		top: 115px;
		display: flex;
		gap: 12px;
	}

	.cta-button {
		width: auto;
		min-width: 0;
		flex: 1;
		height: 45px;
		padding: 0 28px 0 29px;
		border-radius: 22.5px;
		justify-content: flex-start;
		gap: 0;
		font-size: 11px;
	}

	.cta-button__arrow {
		width: 14px;
		height: 14px;
		flex: 0 0 14px;
		margin-left: auto;
	}

	.category-card:focus-visible,
	.filter-list button:focus-visible,
	.favorite-button:focus-visible,
	.new-card__favorite:focus-visible {
		outline: 2px solid var(--primary);
		outline-offset: 2px;
	}

	.page-home {
		overflow-x: clip;
		overscroll-behavior-x: none;
	}

	.category-carousel,
	.studio-track {
		touch-action: pan-y pinch-zoom;
		overscroll-behavior-inline: contain;
		-webkit-user-select: none;
		user-select: none;
		isolation: isolate;
	}

	.category-carousel {
		contain: layout paint;
		--category-top-room: clamp(22.66px,6.5vw,26px);
		top: calc(573px - var(--category-top-room));
		height: calc(330px + var(--category-top-room));
		overflow: hidden;
	}

	.category-carousel .swiper-wrapper {
		height: 100%;
		box-sizing: border-box;
		padding-top: var(--category-top-room);
		align-items: flex-start;
	}

	.category-card__surface,
	.category-carousel.is-spread .category-card.is-active-card .category-card__surface {
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
		transform: none;
		transform-origin: 0 0;
	}


}

/* Mobile reference follows the 400px Figma frame. Wider <=1024px viewports
 * keep the same composition while expanding fluidly. */

@media (max-width: 1024px) {
	/*
	 * Phone category carousel.
	 * Swiper owns all motion; CSS owns only visibility and interaction state.
	 */
	.category-carousel {
		overflow: hidden;
		clip-path: inset(0);
	}

	.category-carousel .swiper-wrapper {
		backface-visibility: hidden;
	}

	.category-carousel .category-card {
		width: clamp(184px,54.5vw,218px);
		flex-basis: clamp(184px,54.5vw,218px);
		opacity: 1;
		backface-visibility: hidden;
		transform-origin: 0 0;
		cursor: grab;
	}

	.category-carousel .category-card:active {
		cursor: grabbing;
	}

	.category-carousel .category-card:not(.swiper-slide-prev):not(.swiper-slide-active):not(.swiper-slide-next) {
		visibility: hidden;
		opacity: 0;
		pointer-events: none;
	}

	.category-carousel .category-card.swiper-slide-prev,
	.category-carousel .category-card.swiper-slide-active,
	.category-carousel .category-card.swiper-slide-next {
		visibility: visible;
		opacity: 1;
		pointer-events: auto;
	}

	.category-carousel .category-card__surface,
	.category-carousel.is-spread .category-card.is-active-card .category-card__surface {
		transition: none;
		transform: none;
	}

	.category-carousel .category-card__meta {
		opacity: 0;
		visibility: hidden;
	}

	.category-carousel .category-card.swiper-slide-active .category-card__meta {
		opacity: 1;
		visibility: visible;
	}

	.section-more,
	.new-section__more--mobile {
		background: none;
	}

	.section-more__label,
	.new-section__more--mobile > span {
		opacity: 1;
	}

	.section-more::after,
	.new-section__more--mobile::after,
	.section-more__arrow,
	.new-section__more--mobile .new-section__more-arrow {
		display: block;
	}

	.hero__visual {
		width: min(373px,calc(100vw - 18px));
		height: min(373px,calc(100vw - 18px));
	}

	.new-cards {
		width: calc(100% - 28px);
	}

	.studio-card--popular {
		width: min(340px,calc(100vw - 60px));
		min-width: min(340px,calc(100vw - 60px));
	}


	/* Mobile new-studio favorite:
	 * use the same heart/count typography as the approved Popular Studio card.
	 * 14px heart + 14/17px count keeps both sections visually consistent
	 * without enlarging the 112px new-studio row or changing its layout geometry.
	 */
	.new-card .rating {
		gap: 4px;
		font-size: 14px;
		line-height: 17px;
		font-weight: 700;
	}

	.new-card .rating i {
		font-size: 14px;
		line-height: 17px;
	}

	.new-card .rating em {
		font-size: 14px;
		line-height: 17px;
		font-weight: 400;
	}

	.popular-section__header .section-more,
	.new-section__more--mobile {
		--more-arrow-size: 10.5px;
	}

	.popular-section__header .section-more__arrow,
	.new-section__more--mobile .new-section__more-arrow {
		left: calc(var(--more-line-width) - 10px);
		width: 10px;
		height: 10px;
		top: 7px;
		background-size: contain;
	}

	.popular-section__header .section-more__label,
	.new-section__more--mobile > span:not(.new-section__more-arrow) {
		font-size: 12px;
		font-weight: 600;
		line-height: 17px;
		letter-spacing: -.6px;
	}

	/* Original pink page uses one source gradient from page y=0 to y=609.
	 * Only the theme values change; header/hero components keep one CSS contract.
	 */
	.page-home.theme--pink {
		--page-header-bg: linear-gradient(180deg,var(--primary-hero) 0%,#ffeaeb 100%);
		--page-header-border: #fff;
		--home-hero-bg: linear-gradient(180deg,#ffeaeb 0,#fff 549px);
	}

	/* Popular source underline: x=311.5..387.5 / y=1040.5 at 400px. */
	.popular-section__header .section-more::after {
		left: .5px;
		bottom: 8px;
		width: 76px;
	}

	/* New section source: only y=1522..1622 is var(--primary-surface); cards area is white. */
	.new-section {
		background: #fff;
	}

	.new-section__intro {
		background: var(--primary-surface);
	}

	/* New source underline: x=306.5..382.5 / y=1597.5 at 400px. */
	.new-section__more--mobile {
		--more-line-width: 76px;
	}

	.new-section__more--mobile::after {
		left: .5px;
		bottom: 9px;
		width: 76px;
	}

/* ==========================================================================
	 Phone search/header refinements — source-grounded
	 Source checks: SANPHUB_MO(3).svg / latest 400px comparison captures.
	 ========================================================================== */

	/* Search copy is visually Medium in the source; keep the confirmed 16/19 geometry. */
	.hero-search__controls::before {
		font-size: 16px;
		line-height: 19px;
		font-weight: 500;
		letter-spacing: -.4px;
	}

	/* Keep the pale SNAPHUB background word entirely inside the mobile viewport. */

	/* Popular category pills: Figma stroke is 1px; inactive var(--line-strong) / active var(--primary). */
	.popular-section .filter-list button {
		border-width: 1px;
		border-style: solid;
		border-color: var(--line-strong);
	}

	.popular-section .filter-list button.is-active {
		border-color: var(--primary);
	}

	/* Popular thumbnail source overlay: y=1213..1330 on a 232px image = 117px (50.431%).
		 Figma uses a transparent-to-black gradient; no backdrop blur is present. */
	.studio-card--popular .studio-card__image::after {
		height: 50.4310345%;
		background: linear-gradient(180deg,rgba(0,0,0,0) 0%,#000 100%);
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
	}

	/* New studio mobile layout follows the Figma source: 2 complete rows + pagination. */

/* Popular mobile category pills.
	 Keep the Figma 13px horizontal label padding while allowing each pill to size
	 naturally from its text. The row itself remains a full-width horizontal scroller. */

	.popular-section .filter-list {
		left: 13.5px;
		right: 13px;
		top: 38.5px;
		gap: 8px;
		padding: 4px 0 6px;
	}

	.popular-section .filter-list button {
		box-sizing: border-box;
		width: auto;
		min-width: max-content;
		height: 29px;
		padding: 0 12px;
		flex: 0 0 auto;
	}

/* ==========================================================================
	 Phone hero paging — SANPHUB_MO source geometry
	 ========================================================================== */

	/* Figma search ends at y=218.5 and the pale SNAPHUB word begins at y=240.
		 Hero starts at page y=60, so the brand artwork top is 180px inside hero. */
	.hero__brand-bg {
		top: 180px;
		left: 0;
		right: 0;
		width: 100%;
		max-width: 100%;
		transform: none;
		overflow: hidden;
	}

	.hero__brand-bg img {
		width: 100%;
		max-width: 100%;
		height: auto;
	}

	/* Hero paging visual geometry is defined in the base section above; only breakpoint position changes here. */

	/* The mobile '전체보기' exists in markup but was painted under intro(z-index:2). */
	.new-section__more--mobile {
		display: block;
		z-index: 3;
	}

}

@media (max-width: 380px) {
	.cta-button {
		padding-left: 18px;
		padding-right: 17px;
	}

	.hero__copy {
		left: 16px;
		right: 8px;
	}

	.hero__copy-art {
		font-size: 27px;
		line-height: 32px;
		letter-spacing: 0;
	}

	.hero__brand-highlight {
		height: 32px;
	}

	.hero-search {
		left: 12px;
		right: 12px;
	}

	.hero__visual {
		left: calc(50% - 4px);
		width: calc(100vw - 18px);
		height: calc(100vw - 18px);
	}

	.hero__counter {
		left: calc(50% + 8px);
		top: calc(68.75vw + 1px);
	}

	.category-heading {
		top: 448px;
		width: calc(100% - 32px);
	}

	.studio-track {
		padding-left: 12px;
	}

	.new-cards {
		width: calc(100% - 24px);
	}

	.cta-section__actions {
		left: 14px;
		right: 14px;
		gap: 10px;
	}

	.hero-search__submit {
		width: 32px;
		height: 32px;
		flex: 0 0 32px;
	}

	.hero-search__search-icon {
		width: 14px;
		height: 14px;
		flex-basis: 14px;
		background: currentColor;
		-webkit-mask: url("../svg/common/icon-search-compact.svg") center / 14px 14px no-repeat;
		mask: url("../svg/common/icon-search-compact.svg") center / 14px 14px no-repeat;
	}

	.hero-search__search-icon > * { opacity: 0; }

	.studio-card--popular .studio-card__location > i {
		width: 17px;
		height: 17px;
		flex: 0 0 17px;
		background: var(--ink);
		-webkit-mask: url("../images/icon-mobile-popular-location-fidelity.png") center/17px 17px no-repeat;
		mask: url("../images/icon-mobile-popular-location-fidelity.png") center/17px 17px no-repeat;
		font-size: 0;
	}

	.studio-card--popular .rating > i {
		width: 14px;
		height: 14px;
		flex: 0 0 14px;
		background: var(--primary);
		-webkit-mask: url("../images/icon-mobile-popular-star-fidelity.png") center/14px 14px no-repeat;
		mask: url("../images/icon-mobile-popular-star-fidelity.png") center/14px 14px no-repeat;
		font-size: 0;
	}

	.new-card .studio-card__location > i {
		width: 14px;
		height: 14px;
		flex: 0 0 14px;
		background: var(--ink);
		-webkit-mask: url("../images/icon-mobile-new-location-fidelity.png") center/14px 14px no-repeat;
		mask: url("../images/icon-mobile-new-location-fidelity.png") center/14px 14px no-repeat;
		font-size: 0;
	}

}

@media (max-width: 340px) {
	.hero__copy-art {
		font-size: 26px;
		line-height: 31px;
		letter-spacing: 0;
	}

	.hero__brand-highlight {
		height: 34px;
	}

	.studio-card__location {
		font-size: 9px;
	}

	.new-card .studio-card__description {
		font-size: 9px;
	}
}

/* Mobile category carousel fidelity: fixed viewport, moving cards only.
 * 400px Figma source coordinates:
 * active 91,633 / 218x302; prev -26,659 @ -10deg; next 203.441,621 @ 10deg.
 */

/* Phone card geometry: retain the 400px reference while scaling down safely. */

/* Phone studio-card spacing from the 400px reference frame. */

/* Exact icon glyph sizes remain fixed on smaller phones; layout typography may
 * continue to use the existing narrow-phone scaling rules above. */

/* Phone section arrows use the source 10.4px glyph. */

/* ==========================================================================
	 Phone source geometry — SANPHUB_MO 400px reference.
	 These rules correct only values confirmed from the original SVG geometry.
	 ========================================================================== */
@media (min-width: 360px) and (max-width: 1024px) {

/* ==========================================================================
	 Phone typography and icon sizing — 400px reference
	 Source: SANPHUB_MO SVG path bounds / uploaded mobile component crops.
	 Exact Figma typography is applied at phone reference widths; smaller phones
	 keep layout scaling rules while preserving the original glyph/icon ratios.
	 ========================================================================== */

	/* Hero title: source glyph height 27.16px => 32px display style. */
	.hero__copy-art {
		font-size: 32px;
		line-height: 32px;
		font-weight: 700;
	}

	/* Search source: text 16px, coral circle 32x32, magnifier 14x14. */

	.hero-search__submit {
		width: 32px;
		height: 32px;
		flex: 0 0 32px;
	}

	.hero-search__search-icon {
		width: 14px;
		height: 14px;
		flex-basis: 14px;
		background: currentColor;
		-webkit-mask: url("../svg/common/icon-search-compact.svg") center / 14px 14px no-repeat;
		mask: url("../svg/common/icon-search-compact.svg") center / 14px 14px no-repeat;
	}

	.hero-search__search-icon > * {
		opacity: 0;
	}

	/* Category copy/card typography. */
	.category-heading h2 {
		font-size: 20px;
		line-height: 24px;
		font-weight: 600;
	}

	.category-heading p {
		font-size: 14px;
		line-height: 17px;
		font-weight: 400;
	}

	.category-card__title {
		font-size: 16px;
		font-weight: 500;
		line-height: 16px;
	}

	.category-card__meta span {
		font-size: 12px;
		font-weight: 400;
		line-height: 12px;
	}

	.category-card__meta strong {
		font-size: 16px;
		font-weight: 700;
		line-height: 16px;
	}

	/* Popular section source typography. */
	.popular-section__header h2 {
		font-size: 20px;
		line-height: 24px;
		font-weight: 600;
	}

	.filter-list {
		gap: 7px;
		padding-top: 0;
		padding-bottom: 0;
	}

	.filter-list button {
		height: 30px;
		padding: 0 12px;
		font-size: 12px;
		line-height: 14px;
		font-weight: 500;
	}

	.studio-card--popular .studio-card__badges {
		left: 19px;
		top: 19px;
	}

	.studio-card--popular .badge {
		height: 25px;
		padding: 0;
		font-size: 14px;
		line-height: 17px;
		font-weight: 700;
	}

	.studio-card--popular .badge--popular {
		width: 52px;
	}

	.studio-card--popular .badge--new {
		width: 59px;
	}

	.studio-card--popular .favorite-button {
		right: 8px;
		bottom: 16px;
		width: 32px;
		height: 32px;
		filter: none;
	}

	.studio-card--popular .studio-card__tags {
		margin-top: 15px;
		gap: 5px;
	}

	.studio-card--popular .studio-card__location {
		margin-top: 14px;
		gap: 6px;
		color: var(--ink);
		font-size: 14px;
		line-height: 17px;
		font-weight: 400;
	}

	.studio-card--popular .studio-card__location > i {
		width: 17px;
		height: 17px;
		flex: 0 0 17px;
		background: var(--ink);
		-webkit-mask: url("../images/icon-mobile-popular-location-fidelity.png") center/17px 17px no-repeat;
		mask: url("../images/icon-mobile-popular-location-fidelity.png") center/17px 17px no-repeat;
		font-size: 0;
	}

	.studio-card--popular .studio-card__identity {
		margin-top: 7px;
		min-height: 32px;
	}

	.studio-card--popular .studio-avatar {
		width: 32px;
		height: 32px;
		flex-basis: 32px;
	}

	.studio-card--popular .studio-card__identity strong {
		margin-left: 10px;
		font-size: 18px;
		line-height: 22px;
		font-weight: 700;
	}

	.studio-card--popular .rating {
		font-size: 14px;
		line-height: 17px;
		font-weight: 700;
		gap: 4px;
	}

	.studio-card--popular .rating > i {
		width: 14px;
		height: 14px;
		flex: 0 0 14px;
		background: var(--primary);
		-webkit-mask: url("../images/icon-mobile-popular-star-fidelity.png") center/14px 14px no-repeat;
		mask: url("../images/icon-mobile-popular-star-fidelity.png") center/14px 14px no-repeat;
		font-size: 0;
	}

	.studio-card--popular .rating em {
		font-size: 14px;
		line-height: 17px;
		font-weight: 400;
	}

	.studio-card--popular .studio-card__description {
		margin-top: 8px;
		color: var(--text-secondary);
		font-size: 14px;
		line-height: 17px;
		font-weight: 400;
	}

	.studio-card--popular .studio-card__price {
		margin-top: 8px;
		gap: 5px;
	}

	.studio-card--popular .studio-card__price strong {
		font-size: 24px;
		line-height: 29px;
		font-weight: 700;
	}

	.studio-card--popular .studio-card__price span {
		font-size: 14px;
		line-height: 17px;
		font-weight: 500;
	}

	/* New studio section source typography/icons. */
	.new-section__intro > span {
		width: 57px;
		height: 24px;
		font-size: 14px;
		line-height: 14px;
		font-weight: 700;
		letter-spacing: -.7px;
	}

	.new-section__intro h2 {
		font-size: 20px;
		line-height: 24px;
		font-weight: 700;
	}

	.new-card__favorite {
		right: -2px;
		bottom: 0;
		width: 32px;
		height: 32px;
		filter: none;
	}

	.new-card__title strong {
		font-size: 16px;
		line-height: 19px;
		font-weight: 700;
	}

	.new-card .studio-card__location {
		margin-top: 3px;
		gap: 5px;
		color: var(--ink);
		font-size: 12px;
		line-height: 14px;
		font-weight: 400;
	}

	.new-card .studio-card__location > i {
		width: 14px;
		height: 14px;
		flex: 0 0 14px;
		background: var(--ink);
		-webkit-mask: url("../images/icon-mobile-new-location-fidelity.png") center/14px 14px no-repeat;
		mask: url("../images/icon-mobile-new-location-fidelity.png") center/14px 14px no-repeat;
		font-size: 0;
	}

	.new-card .studio-card__description {
		margin-top: 4px;
		font-size: 12px;
		line-height: 14px;
		font-weight: 400;
	}

	.new-card .studio-card__price {
		margin-top: 5px;
		gap: 5px;
	}

	.new-card .studio-card__price strong {
		font-size: 18px;
		line-height: 22px;
		font-weight: 700;
	}

	.new-card .studio-card__price span {
		font-size: 12px;
		line-height: 14px;
		font-weight: 500;
	}

	/* CTA source text/icon scale. */
	.cta-section__copy h2 {
		font-size: 20px;
		line-height: 24px;
		font-weight: 600;
	}

	.cta-section__copy p {
		font-size: 14px;
		line-height: 17px;
		font-weight: 400;
	}

	.cta-button {
		font-size: 14px;
		line-height: 17px;
		font-weight: 600;
		letter-spacing: -0.7px;
	}

	.cta-button--primary {
		font-weight: 700;
	}

	.studio-card--popular {
		width: 340px;
		min-width: 340px;
	}


}

/* Tablet uses the same confirmed mobile component hierarchy.
 * Horizontal space grows fluidly, with no tablet-only visual tier. */

/* ==========================================================================
   Home-only refinements
   ========================================================================== */

/* Price / product state and management trust signal.
 * Reuses the existing card price line and Figma-aligned Pretendard hierarchy:
 * price remains the primary 24/25px value, missing-price metadata stays 14px,
 * and the management signal reuses the original Figma dark Label primitive. */
[data-page-variant="index"] .studio-card__price {
	width: 100%;
}

[data-page-variant="index"] .studio-card__price > .studio-card__price-empty {
	color: var(--text-secondary);
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
}

[data-page-variant="index"] .studio-card__price--empty {
	align-items: center;
}

[data-page-variant="index"] .studio-card__price > .studio-card__managed {
	margin-left: auto;
	align-self: center;
	flex: 0 0 auto;
	gap: 4px;
}

[data-page-variant="index"] .studio-card__managed-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 9px;
	line-height: 1;
}

@media (max-width: 1024px) {
	[data-page-variant="index"] .new-card .studio-card__price > .studio-card__price-empty {
		font-size: 12px;
		line-height: 14px;
	}

}

/* The inline heart is the only active favorite control in index.
 * Shared [data-role="favorite"] normally paints the bookmark SVG through
 * ::before. Suppress only that renderer; the production .rating geometry,
 * typography and responsive placement remain the source of truth. */
[data-page-variant="index"] .favorite-inline {
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	padding: 0;
	background: transparent;
	font: inherit;
	line-height: inherit;
	cursor: pointer;
}

/* 1차 메인 API는 찜 액션 없이 카운트만 노출하므로, 원본 하트 시각 규칙은 유지하고 상호작용만 비활성화합니다. */
[data-page-variant="index"] .favorite-inline--readonly {
	cursor: default;
	pointer-events: none;
}

/* Keep the two Font Awesome heart states optically centered inside the
 * production .rating flex line. No translate/nudge values are used. */
[data-page-variant="index"] .favorite-inline__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: center;
	line-height: 1;
}

[data-page-variant="index"] .favorite-inline::before {
	content: none;
}

[data-page-variant="index"] .favorite-inline__icon--on {
	display: none;
}

[data-page-variant="index"] .favorite-inline[aria-pressed="true"] .favorite-inline__icon--off {
	display: none;
}

[data-page-variant="index"] .favorite-inline[aria-pressed="true"] .favorite-inline__icon--on {
	display: inline-flex;
}


/* Favorite micro-interaction — index only.
 * The production .rating component remains the geometry/typography source.
 * Motion uses compositor-friendly transform/opacity only:
 * add = press → jelly pop + one pulse ring,
 * remove = short release,
 * count = subtle 3px lift. */
[data-page-variant="index"] .favorite-inline__icon {
	position: relative;
	transform-origin: center;
	will-change: transform;
	transition: transform .16s var(--ease-out);
}

[data-page-variant="index"] .favorite-inline__icon--on::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 1.75em;
	height: 1.75em;
	border: 1px solid currentColor;
	border-radius: 50%;
	box-sizing: border-box;
	pointer-events: none;
	opacity: 0;
	transform: translate(-50%, -50%) scale(.42);
}

[data-page-variant="index"] .favorite-inline.is-favorite-adding .favorite-inline__icon--on {
	animation: snaphub-heart-jelly .38s cubic-bezier(.22, .9, .32, 1);
}

[data-page-variant="index"] .favorite-inline.is-favorite-adding .favorite-inline__icon--on::after {
	animation: snaphub-heart-ring .30s ease-out;
}

[data-page-variant="index"] .favorite-inline.is-favorite-removing .favorite-inline__icon--off {
	animation: snaphub-heart-release .22s var(--ease-out);
}

[data-page-variant="index"] .favorite-inline.is-count-updating [data-role="favorite-count-value"]:not([hidden]) {
	animation: snaphub-favorite-count .30s var(--ease-out);
}

[data-page-variant="index"] .favorite-inline:active .favorite-inline__icon {
	transform: scale(.82);
	transition-duration: .08s;
}

@media (hover: hover) and (pointer: fine) {
	[data-page-variant="index"] .favorite-inline:not(.is-favorite-adding):not(.is-favorite-removing):hover .favorite-inline__icon--off,
	[data-page-variant="index"] .favorite-inline[aria-pressed="true"]:not(.is-favorite-adding):not(.is-favorite-removing):hover .favorite-inline__icon--on {
		transform: scale(1.08);
	}
}

@keyframes snaphub-heart-jelly {
	0% {
		transform: scale(1);
	}

	18% {
		transform: scale(.78);
	}

	42% {
		transform: scale(1.22);
	}

	64% {
		transform: scale(.93);
	}

	82% {
		transform: scale(1.07);
	}

	100% {
		transform: scale(1);
	}
}

@keyframes snaphub-heart-ring {
	0% {
		opacity: .52;
		transform: translate(-50%, -50%) scale(.42);
	}

	100% {
		opacity: 0;
		transform: translate(-50%, -50%) scale(1.45);
	}
}

@keyframes snaphub-heart-release {
	0% {
		transform: scale(1);
	}

	45% {
		transform: scale(.84);
	}

	100% {
		transform: scale(1);
	}
}

@keyframes snaphub-favorite-count {
	0% {
		opacity: 1;
		transform: translateY(0);
	}

	45% {
		opacity: .68;
		transform: translateY(-3px);
	}

	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	[data-page-variant="index"] .favorite-inline__icon,
	[data-page-variant="index"] .favorite-inline [data-role="favorite-count-value"] {
		transition: none;
	}

	[data-page-variant="index"] .favorite-inline.is-favorite-adding .favorite-inline__icon--on,
	[data-page-variant="index"] .favorite-inline.is-favorite-adding .favorite-inline__icon--on::after,
	[data-page-variant="index"] .favorite-inline.is-favorite-removing .favorite-inline__icon--off,
	[data-page-variant="index"] .favorite-inline.is-count-updating [data-role="favorite-count-value"] {
		animation: none;
	}

	[data-page-variant="index"] .favorite-inline:active .favorite-inline__icon {
		transform: none;
	}

	@media (hover: hover) and (pointer: fine) {
		[data-page-variant="index"] .favorite-inline:hover .favorite-inline__icon {
			transform: none;
		}
	}
}

/* Some production fidelity breakpoints paint the old star through background/
 * mask while preserving a fixed icon box. current removes only the star renderer;
 * width/height/flex remain owned by the existing rating CSS. */
[data-page-variant="index"] .favorite-inline > i.fa-heart {
	background: none;
	-webkit-mask: none;
	mask: none;
}

@media (max-width: 1024px) {
	[data-page-variant="index"] .studio-card--popular .favorite-inline > i.fa-heart {
		font-size: 14px;
	}
}

@media (min-width: 1600px) {
	[data-page-variant="index"] .new-card__title .favorite-inline > i.fa-heart {
		font-size: 15px;
	}
}

/* 601–1024px remains the approved mobile interaction tier while production main.js
 * instantiates the category Swiper in tablet mode above 600px. Swiper owns
 * slide position and overlap; current owns only the side-card rotation. Do not copy
 * the 400px Figma frame's absolute Y coordinates into this different layout
 * context because that double-applies vertical positioning and makes one side
 * sag. Keeping both side cards on the same baseline preserves a symmetric
 * composition while retaining the approved overlap and ±10deg attitude. */
@media (min-width: 601px) and (max-width: 1024px) {
	[data-page-variant="index"] .category-carousel .category-card__surface {
		transform-origin: center;
		transition: transform .42s var(--ease-out);
	}

	[data-page-variant="index"] .category-carousel .category-card.swiper-slide-prev .category-card__surface {
		transform: rotate(-10deg);
	}

	[data-page-variant="index"] .category-carousel .category-card.swiper-slide-active .category-card__surface {
		transform: none;
	}

	[data-page-variant="index"] .category-carousel .category-card.swiper-slide-next .category-card__surface {
		transform: rotate(10deg);
	}
}

/* Mobile new-studio metadata guard.
 * Card geometry/tags are owned by the primary <=1024 new-studio layout above.
 * This block only tightens optional metadata; avatar remains hidden on mobile. */
@media (max-width: 1024px) {
	[data-page-variant="index"] .new-card__avatar {
		display: none;
	}

	[data-page-variant="index"] .new-card .studio-card__price {
		min-width: 0;
		align-items: center;
		gap: 4px;
	}

	[data-page-variant="index"] .new-card .studio-card__price > .studio-card__managed {
		min-height: 22px;
		padding: 0 7px;
		gap: 3px;
		font-size: 10px;
		line-height: 14px;
	}

	[data-page-variant="index"] .new-card .studio-card__managed-icon {
		font-size: 8px;
	}
}

@media (max-width: 340px) {
	[data-page-variant="index"] .new-card .studio-card__price {
		gap: 3px;
	}

	[data-page-variant="index"] .new-card .studio-card__price strong {
		font-size: 17px;
	}

	[data-page-variant="index"] .new-card .studio-card__price span {
		font-size: 10px;
	}

	[data-page-variant="index"] .new-card .studio-card__price > .studio-card__managed {
		min-height: 20px;
		padding: 0 6px;
		gap: 2px;
		font-size: 9px;
		line-height: 12px;
	}

	[data-page-variant="index"] .new-card .studio-card__managed-icon {
		font-size: 7px;
	}
}
/* New-studio desktop metadata flow.
 * Keep the favorite action attached to the studio name instead of pushing it
 * to the far edge of the title row. Mobile keeps its approved layout. */
@media (min-width: 1025px) {
	[data-page-variant="index"] .new-card__title {
		justify-content: flex-start;
	}

	[data-page-variant="index"] .new-card__title strong {
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	[data-page-variant="index"] .new-card__title .rating {
		margin-left: 16px;
		margin-right: 0;
		flex: 0 0 auto;
	}
}

