.category-page-hero {
	padding: 27px 0 58px;
	border-bottom: 1px solid #ededeb;
	background: #fff;
}

.category-breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 34px;
	color: #9a9da1;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: -0.02em;
}

.category-breadcrumb a {
	transition: color 0.18s ease;
}



.category-breadcrumb__separator {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 12px;
	height: 12px;
	color: #b5b5b2;
}

.category-breadcrumb__separator svg {
	display: block;
	width: 12px;
	height: 12px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.category-page-hero .home-eyebrow {
	margin: 0 0 17px;
	color: #95999f;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.22em;
}

.category-page-hero h1 {
	max-width: 820px;
	margin: 0;
	font-size: clamp(52px, 5vw, 72px);
	font-weight: 850;
	line-height: 0.98;
	letter-spacing: -0.065em;
}


.category-page-content {
	padding: 58px 0 90px;
	background: #fff;
}

.category-page-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 30px;
}

.category-page-heading h2 {
	margin: 0;
	font-size: 26px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.045em;
}

.category-page-count {
	margin: 8px 0 0;
	color: #8b8f94;
	font-size: 12px;
	line-height: 1.5;
}

.category-page-sort-note {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	width: 142px;
	height: 34px;
	margin: 0 0 2px;
	padding: 3px;
	border: 1px solid #e5e7ea;
	border-radius: 999px;
	background: #f4f5f6;
	color: #8b8f94;
	font: inherit;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	overflow: hidden;
}

.category-page-sort-note::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: calc(50% - 3px);
	height: 26px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 1px 4px rgba(20, 24, 30, 0.08);
	transition: transform 0.18s ease;
}

.category-page-sort-note:not(.is-drop-rate)::before {
	transform: translateX(100%);
}

.category-page-sort-note__option {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	transition: color 0.18s ease;
}

.category-page-sort-note__option--score { color: #202327; }
.category-page-sort-note__option--drop { color: #969ba1; }
.category-page-sort-note.is-drop-rate .category-page-sort-note__option--score { color: #969ba1; }
.category-page-sort-note.is-drop-rate .category-page-sort-note__option--drop { color: #202327; }

.category-page-sort-note:focus-visible {
	outline: 2px solid #1b1d20;
	outline-offset: 3px;
}

.category-product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, 270px);
	justify-content: start;
	gap: 34px 26px;
	width: 100%;
}

.category-product-grid > .home-price-drop-card {
	width: 270px;
}

.category-product-card .home-price-drop-card__visual {
	background: transparent;
}

.category-product-card .home-price-drop-card__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	column-gap: 14px;
	align-items: end;
}

.category-product-card .home-price-drop-card__title,
.category-product-card__footer {
	grid-column: 1 / -1;
}

.category-product-card .home-price-drop-card__price-wrap {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 5px;
}

.category-product-card .home-price-drop-card__previous {
	margin-top: 0;
}

.category-product-card .home-price-drop-card__change {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: flex-end;
	gap: 5px;
	min-width: 0;
	margin-top: 15px;
	padding: 0;
	border: 0;
}

.category-product-card .home-price-drop-card__rate {
	min-height: 0;
	padding: 0;
	background: transparent;
	font-size: 20px;
}


.category-product-card__footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #f0f1f2;
}


.category-price-drop-card__trend.category-product-card__trend {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 5px;
	min-width: 0;
	margin: 0;
	color: #2f6f58;
	font-size: 10.5px;
	font-weight: 500;
	line-height: 1.4;
	text-align: right;
}

.category-price-drop-card__trend-dot.category-product-card__trend-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	flex: 0 0 auto;
}

.category-product-card__trend.is-up {
	color: #9b5949;
}

.category-product-card__trend.is-neutral,
.category-product-card__trend.is-collecting {
	color: #8b9096;
}

@media (min-width: 701px) and (max-width: 1024px) {
	.category-product-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		justify-content: stretch;
		gap: 24px 18px;
	}

	.category-product-grid > .home-price-drop-card {
		width: 100%;
	}
}


/* ========================================
   CATEGORY INITIAL LOADING SKELETON V7
   - Direct category requests: skeleton only while initial data is unavailable.
   - Routed category requests normally receive D1 bootstrap data in the HTML.
======================================== */
.category-page-count__placeholder {
	display: inline-block;
	width: 86px;
	height: 12px;
	border-radius: 999px;
	background: #f0f1f2;
	vertical-align: middle;
}

.category-loading-grid[hidden] {
	display: none;
}

.category-loading-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, 270px);
	justify-content: start;
	gap: 34px 26px;
	width: 100%;
}

.category-loading-grid__sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.category-loading-card {
	width: 270px;
	min-width: 0;
}

.category-loading-card__image,
.category-loading-card__line,
.category-page-count__placeholder {
	background-image: linear-gradient(
		100deg,
		#f1f2f3 18%,
		#f8f8f8 36%,
		#f1f2f3 54%
	);
	background-size: 220% 100%;
	animation: categorySkeletonSweep 1.15s ease-in-out infinite;
}

.category-loading-card__image {
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 18px;
}

.category-loading-card__line {
	height: 12px;
	margin-top: 14px;
	border-radius: 999px;
}

.category-loading-card__line--title {
	width: 82%;
}

.category-loading-card__line--price {
	width: 42%;
	height: 18px;
	margin-top: 10px;
}

@keyframes categorySkeletonSweep {
	0% { background-position: 100% 0; }
	100% { background-position: -100% 0; }
}

@media (min-width: 701px) and (max-width: 1024px) {
	.category-loading-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		justify-content: stretch;
		gap: 24px 18px;
	}

	.category-loading-card {
		width: 100%;
	}
}


@media (prefers-reduced-motion: reduce) {
	.category-loading-card__image,
	.category-loading-card__line,
	.category-page-count__placeholder {
		animation: none;
	}
}


/* ========================================
   CATEGORY PRODUCT CARD V2
   Hero-style reading order + mobile compact list
======================================== */
.category-product-card .category-product-card__link {
	display: block;
	padding: 0;
	overflow: hidden;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 8px 26px rgba(20, 24, 30, 0.045);
}

.category-product-card .category-product-card__visual {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	padding: 14px;
	border-radius: 0;
	background: transparent;
}

.category-product-card .category-product-card__image {
	width: 100%;
	height: 100%;
	max-width: none;
	aspect-ratio: 1 / 1;
}

.category-product-card .category-product-card__body {
	display: block;
	padding: 18px 18px 20px;
	text-align: left;
}

.category-product-card .category-product-card__title {
	width: 100%;
	max-width: 100%;
	min-height: 42px;
	margin: 0;
	text-align: left;
	justify-self: stretch;
	align-self: stretch;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: -0.025em;
}

.category-product-card__price-row {
	display: block;
	margin-top: 17px;
}

.category-product-card .category-product-card__price-wrap {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	margin: 17px 0 0;
}

.category-product-card .category-product-card__previous {
	order: 0;
	margin: 0;
	font-size: 12px;
	line-height: 1.35;
}

.category-product-card .category-product-card__current {
	order: 1;
	font-size: 25px;
	font-weight: 720;
	line-height: 1.15;
	letter-spacing: -0.045em;
}

.category-product-card .category-product-card__change-summary {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid rgba(221, 224, 227, 0.78);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

/* Keep category price-direction colors identical to the main index tracked-product cards. */
.category-product-card .category-product-card__change-summary.is-down,
.category-product-card .category-product-card__change-summary.is-down .category-product-card__change-text {
	color: #18794e;
}

.category-product-card .category-product-card__change-summary.is-up,
.category-product-card .category-product-card__change-summary.is-up .category-product-card__change-text {
	color: #9b5949;
}

.category-product-card .category-product-card__timing {
	margin-top: 12px;
	padding: 12px 14px;
	border-radius: 14px;
}

.category-product-card .category-product-card__timing-text {
	display: block;
	font-size: 13px;
	font-weight: 680;
	line-height: 1.45;
	letter-spacing: -0.02em;
}


/* ========================================
   CATEGORY CARD = LANDING CARD
   Keep /category/* product cards visually identical to landing-page cards.
======================================== */
.category-product-grid > .home-price-drop-card {
	width: 270px;
}

@media (min-width: 701px) and (max-width: 1024px) {
	.category-product-grid {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		justify-content: stretch;
		gap: 24px 18px;
		border-top: 0;
	}

	.category-product-grid > .home-price-drop-card {
		width: 100%;
	}
}

/* ========================================
   CATEGORY MOBILE HORIZONTAL LIST
   Single authoritative mobile rule set.
   - Full-width horizontal list
   - Compact right-aligned sort toggle
   - D.Score overlaps the upper-left edge
   - Current + previous price on one row
   - Price direction icon and status stacked
======================================== */
@media (max-width: 700px) {
	.category-page-hero {
		padding: 12px 0 0px;
	}

	.category-page-hero > .home-container,
	.category-page-content > .home-container {
		width: 100%;
		padding-right: 16px;
		padding-left: 16px;
	}

	.category-breadcrumb {
		gap: 6px;
		margin-bottom: 26px;
		font-size: 12px;
	}

	.category-breadcrumb__separator,
	.category-breadcrumb__separator svg {
		width: 11px;
		height: 11px;
	}

	.category-page-hero .home-eyebrow {
		margin-bottom: 13px;
		font-size: 10px;
		letter-spacing: 0.2em;
	}

	.category-page-hero h1 {
		font-size: 44px;
		line-height: 1;
	}

	.category-page-content {
		padding: 36px 0 64px;
	}

	.category-page-heading {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: start;
		gap: 12px;
		margin-bottom: 28px;
	}

	.category-page-heading h2 {
		font-size: 22px;
	}

	.category-page-sort-note {
		align-self: start;
		width: 128px;
		height: 32px;
		margin: 0;
		padding: 3px;
		font-size: 10.5px;
	}

	.category-page-sort-note::before {
		height: 24px;
	}

	.category-product-grid {
		display: block;
		width: 100%;
		border-top: 1px solid #eceef0;
	}

	.category-product-grid > .home-price-drop-card,
	.category-product-grid > .category-product-card {
		width: 100%;
		min-width: 0;
	}

	.category-product-card .category-product-card__link {
		position: relative;
		display: grid;
		grid-template-columns: 112px minmax(0, 1fr);
		gap: 14px;
		align-items: center;
		width: 100%;
		min-height: 180px;
		padding: 32px 0;
		overflow: visible;
		border-radius: 0;
		border-bottom: 1px solid #eceef0;
		background: #fff;
		box-shadow: none;
	}

	

	.category-product-card .category-product-card__visual {
		position: relative;
		width: 112px;
		height: 112px;
		aspect-ratio: auto;
		padding: 8px;
		border-radius: 18px;
		background: transparent;
	}

	.category-product-card .category-product-card__image {
		width: 100%;
		height: 100%;
		max-width: none;
		aspect-ratio: 1 / 1;
	}

	.category-product-card .category-product-card__image.is-placeholder {
		border-radius: 12px;
		font-size: 9px;
	}

	.category-product-card .tracked-product-card__score {
		top: 7px;
		left: -8px;
		min-width: 50px;
		min-height: 46px;
		padding: 6px 7px;
		border-radius: 12px;
		box-shadow: 0 5px 14px rgba(17, 18, 20, 0.08);
	}

	.category-product-card .tracked-product-card__score-label {
		font-size: 7.5px;
	}

	.category-product-card .tracked-product-card__score-value {
		font-size: 18px;
	}

	.category-product-card .category-product-card__body {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		justify-content: center;
		min-width: 0;
		padding: 0;
		text-align: left;
	}

	.category-product-card .category-product-card__title {
		display: -webkit-box;
		width: 100%;
		max-width: 100%;
		min-height: 0;
		margin: 0;
		margin-left: 0;
		margin-right: 0;
		overflow: hidden;
		text-align: left;
		justify-self: stretch;
		align-self: stretch;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		font-size: 15px;
		font-weight: 600;
		line-height: 1.42;
		letter-spacing: -0.025em;
	}

	.category-product-card__price-row {
		display: block;
		width: 100%;
		margin-top: 0;
		text-align: left;
	}

	.category-product-card .category-product-card__price-wrap {
		display: flex;
		flex-direction: row;
		align-items: baseline;
		justify-content: flex-start;
		flex-wrap: wrap;
		gap: 7px;
		width: 100%;
		min-width: 0;
		margin-top: 17px;
		text-align: left;
	}

	.category-product-card .category-product-card__current {
		order: 0;
		text-align: left;
		font-size: 22px;
		font-weight: 760;
		line-height: 1.1;
		letter-spacing: -0.045em;
	}

	.category-product-card .category-product-card__previous {
		order: 1;
		margin: 0;
		color: #a4a8ae;
		font-size: 12px;
		font-weight: 550;
		line-height: 1.2;
		text-decoration: line-through;
		text-decoration-thickness: 1.25px;
	}

	.category-product-card .category-product-card__previous.is-empty {
		display: none;
	}

	.category-product-card .category-product-card__change-summary {
		display: flex;
		align-items: center;
		gap: 4px;
		align-self: flex-start;
		margin-top: 9px;
		padding: 0;
		border: 0;
		font-size: 12px;
		font-weight: 720;
		line-height: 1.35;
		white-space: normal;
		text-align: left;
	}

	.category-product-card__change-icon {
		display: block;
		width: 12px;
		height: 12px;
		flex: 0 0 12px;
		fill: none;
		stroke: currentColor;
		stroke-width: 2;
		stroke-linecap: round;
		stroke-linejoin: round;
	}

	.category-product-card .category-product-card__change-summary.is-down,
	.category-product-card .category-product-card__change-summary.is-down .category-product-card__change-text {
		color: #18794e;
	}

	.category-product-card .category-product-card__change-summary.is-up,
	.category-product-card .category-product-card__change-summary.is-up .category-product-card__change-text {
		color: #9b5949;
	}

	.category-product-card .category-product-card__change-summary.is-stable,
	.category-product-card .category-product-card__change-summary.is-collecting {
		color: #747a82;
	}

	/* Match mobile category timing/status to the main-index tracked product cards. */
	.category-product-card .category-product-card__timing {
		display: block;
		align-self: stretch;
		width: 100%;
		margin-top: 12px;
		padding: 11px 13px;
		border-radius: 14px;
		text-align: left;
	}

	.category-product-card .category-product-card__timing.is-down {
		background: #eef8f3;
	}

	.category-product-card .category-product-card__timing.is-up {
		background: #fbf3f0;
	}

	.category-product-card .category-product-card__timing.is-stable,
	.category-product-card .category-product-card__timing.is-collecting {
		background: #f3f5f6;
	}

	.category-product-card .category-product-card__timing-text {
		display: block;
		font-size: 12.5px;
		font-weight: 680;
		line-height: 1.45;
		letter-spacing: -0.02em;
	}

	.category-product-card .category-product-card__timing.is-down .category-product-card__timing-text {
		color: #18794e;
	}

	.category-product-card .category-product-card__timing.is-up .category-product-card__timing-text {
		color: #9b5949;
	}

	.category-product-card .category-product-card__timing.is-stable .category-product-card__timing-text,
	.category-product-card .category-product-card__timing.is-collecting .category-product-card__timing-text {
		color: #5f6670;
	}

	.category-loading-grid {
		display: block;
		width: 100%;
		border-top: 1px solid #eceef0;
	}

	.category-loading-card {
		display: grid;
		grid-template-columns: 112px minmax(0, 1fr);
		grid-template-rows: auto auto;
		column-gap: 14px;
		width: 100%;
		padding: 32px 0;
		border-bottom: 1px solid #eceef0;
	}

	.category-loading-card__image {
		grid-row: 1 / 3;
		width: 112px;
		height: 112px;
		aspect-ratio: auto;
		border-radius: 18px;
	}

	.category-loading-card__line {
		margin-top: 0;
	}

	.category-loading-card__line--title {
		align-self: end;
		width: 88%;
	}

	.category-loading-card__line--price {
		align-self: start;
		width: 48%;
		height: 17px;
		margin-top: 10px;
	}

	.category-loading-card:nth-child(n + 5) {
		display: none;
	}
}

@media (max-width: 390px) {
	.category-page-hero > .home-container,
	.category-page-content > .home-container {
		padding-right: 14px;
		padding-left: 14px;
	}

	.category-page-hero h1 {
		font-size: 41px;
	}

	.category-page-sort-note {
		width: 122px;
		font-size: 10px;
	}

	.category-product-card .category-product-card__link {
		grid-template-columns: 102px minmax(0, 1fr);
		gap: 12px;
		min-height: 170px;
		padding: 30px 0;
	}

	.category-product-card .category-product-card__visual {
		width: 102px;
		height: 102px;
	}

	.category-product-card .category-product-card__current {
		font-size: 20px;
	}

	.category-loading-card {
		grid-template-columns: 102px minmax(0, 1fr);
		column-gap: 12px;
		padding: 30px 0;
	}

	.category-loading-card__image {
		width: 102px;
		height: 102px;
	}
}

/* Category product photo scale and subtype filtering */
.category-product-card__image img {
	width: 78%;
	height: 78%;
	object-fit: contain;
}
.category-variant-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: -10px 0 24px;
}
.category-variant-tabs[hidden] { display: none !important; }
.category-variant-tab {
	min-height: 38px;
	padding: 8px 17px;
	border: 1px solid #e6e7e8;
	border-radius: 999px;
	background: #fff;
	color: #62666c;
	font: inherit;
	font-size: 13px;
	font-weight: 650;
	cursor: pointer;
	transition: background-color .15s, color .15s;
}
.category-variant-tab.is-active {
	background: #171819;
	color: #fff;
	border-color: #171819;
}
.category-variant-tab:focus-visible { outline: 2px solid #1d1d1d; outline-offset: 3px; }
@media (max-width: 600px) {
	.category-variant-tabs { gap: 6px; }
	.category-variant-tab { font-size: 12px; padding: 7px 13px; min-height: 36px; }
}

/* Category pagination: desktop/tablet button, mobile scroll loading */
.category-pagination-controls {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 70px;
	margin-top: 28px;
}
.category-pagination-controls[hidden],
.category-pagination-controls [hidden] { display: none !important; }
.category-pagination-button {
	min-height: 46px;
	padding: 11px 28px;
	border: 1px solid #dfe2e5;
	border-radius: 999px;
	background: #fff;
	color: #26292d;
	font: inherit;
	font-weight: 650;
	font-size: 13px;
	cursor: pointer;
}

.category-pagination-button:focus-visible { outline: 2px solid #191b1f; outline-offset: 3px; }
.category-pagination-loading { color: #737c86; font-size: 13px; }
.category-infinite-sentinel { width: 100%; height: 20px; }
@media (max-width: 700px) {
	.category-product-card__image img { width: 90%; height: 90%; object-fit: contain; }
	.category-pagination-controls { margin-top: 8px; min-height: 42px; }
}


/* 카테고리 전체 가격 하락 알림 — 미니멀 히어로 */
.category-curation-and-alert { margin-top:40px; }
.category-curation-and-alert[hidden], .category-alert-toast[hidden] { display:none !important; }
.category-alert-row { display:flex; align-items:center; gap:24px; padding:25px 0; border-top:1px solid #e5e7e9; border-bottom:1px solid #e5e7e9; }
.category-alert-row__icon { width:40px; height:40px; border-radius:12px; flex:0 0 40px; background:#f3f4f5; display:grid; place-items:center; color:#3a3c3f; }
.category-alert-row__icon svg { width:19px; height:19px; display:block; }
.category-alert-row__copy { flex:1; min-width:0; }
.category-alert-row__copy strong { display:block; font-size:16px; line-height:1.4; font-weight:730; letter-spacing:-.035em; color:#17191b; }
.category-alert-row__copy span { display:block; font-size:13px; line-height:1.5; color:#747a81; margin-top:5px; }
.category-alert-toggle { flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center; gap:9px; min-width:174px; min-height:45px; padding:0 19px; border:1px solid #191b1d; border-radius:12px; background:#191b1d; color:white; font:inherit; font-size:13px; font-weight:680; letter-spacing:-.025em; cursor:pointer; transition:background .2s,color .2s,border-color .2s,transform .2s; }
.category-alert-toggle svg { width:16px; height:16px; flex:0 0 auto; display:block; }

.category-alert-toggle:active { transform:scale(.985); }
.category-alert-toggle:disabled { opacity:.6; cursor:wait; }
.category-alert-toggle.is-active { background:#fff; color:#33383d; border-color:#d9dde0; }

.category-alert-toggle:focus-visible { outline:3px solid #4c84ff; outline-offset:3px; }
.category-alert-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.category-alert-toast { position:fixed; z-index:9999; left:50%; bottom:max(26px,env(safe-area-inset-bottom)); transform:translateX(-50%); max-width:min(500px,calc(100% - 32px)); background:#242629; color:white; border-radius:10px; padding:12px 16px; font-size:13px; line-height:1.5; box-shadow:0 6px 30px #0002; text-align:center; }
.category-page-heading__title-row { display:flex; flex-wrap:nowrap; align-items:baseline; gap:12px; min-width:0; }
.category-page-heading__title-row .category-page-count { margin:0; font-size:13px; white-space:nowrap; }
@media (max-width:700px) {
 .category-curation-and-alert { margin-top:30px; }
 /* Keep the notification action next to the copy, including when subscribed. */
 .category-alert-row { display:flex; flex-wrap:nowrap; align-items:center; gap:10px; padding:19px 0; border-bottom:0; }
 .category-alert-row__icon { display:none; }
 .category-alert-row__copy { flex:1 1 auto; min-width:0; }
 .category-alert-row__copy strong { font-size:14px; }
 .category-alert-row__copy span { font-size:12px; line-height:1.5; }
 .category-alert-toggle, .category-alert-toggle.is-active { width:auto; min-width:0; flex:0 0 auto; grid-column:auto; min-height:42px; padding:0 12px; gap:6px; font-size:12px; white-space:nowrap; }
 .category-alert-toggle svg { width:14px; height:14px; }
 .category-page-heading__title-row { gap:10px; }
 .category-page-heading__title-row .category-page-count { font-size:12px; }
}
@media (max-width:370px) {
 .category-alert-row { gap:7px; }
 .category-alert-row__copy strong { font-size:13px; }
 .category-alert-row__copy span { font-size:11px; }
 .category-alert-toggle, .category-alert-toggle.is-active { padding:0 9px; gap:4px; font-size:11px; }
 .category-page-heading { gap:8px; }
 .category-page-heading__title-row { gap:8px; }
 .category-page-heading__title-row .category-page-count { font-size:11px; }
}
@media (prefers-reduced-motion:reduce) {
 .category-alert-toggle { transition:none; }
}

/* v39: retain displayed cards while switching tabs; never flash skeletons. */
.category-product-grid[aria-busy="true"] { pointer-events: none; }

/* v52: mobile category hero / heading / variant tabs */
@media (max-width: 700px) {
  .category-page-hero { padding: 12px 0 0px; }
  .category-page-heading { margin-bottom: 28px; }
  .category-page-heading + .category-variant-tabs:not([hidden]) { margin-top: 0; }
}

/* v52: delayed loading overlay keeps the old cards mounted until the API responds.
   An overlay appears only when a tab / sort request lasts >= 180 ms. */
.category-product-grid { position: relative; }
.category-product-grid > .category-tab-loading-grid {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  z-index: 2;
  width: 100%;
  min-height: 100%;
  align-content: start;
  overflow: hidden;
  background: #fff;
  pointer-events: none;
}
.category-product-grid > .category-tab-loading-grid .category-loading-card { max-width: 100%; }
@media (max-width: 700px) {
  .category-product-grid > .category-tab-loading-grid { border-top: 1px solid #eceef0; }
}

