/* ------------------------------------------------------------------ */
/* CATEGORY ARCHIVE MERCHANDISING (inc/category-merch.php, 2026-10-03)  */
/* Child categories → banner slider → brands, above the (untouched)     */
/* VNT39 filter bar + product grid. Same visual language as the Shop's  */
/* own carousels: 9–10px radius cards, #e5e7eb borders, round white     */
/* arrows with a red chevron, white dots on the banner.                 */
/* Flatsome's `.flickity-slider>div:not(.col){width:100%!important;     */
/* padding:0}` is beaten with 3-class selectors + !important, same fix  */
/* the Shop carousels already use.                                      */
/* ------------------------------------------------------------------ */
.vnt39-catm {
	margin: 0;
}
/* ORDER: banner → child categories → brands → filter. Breadcrumb → first section ≈ 22px: Flatsome's
   `.category-page-row{padding-top:30px}` is the gap under the breadcrumb; this stylesheet only loads on
   archives that render merchandising, so categories without it keep Flatsome's spacing untouched. */
.row.category-page-row {
	padding-top: 22px;
}

.vnt39-catm__sec {
	position: relative;
	display: block;
	margin: 0 0 20px;
}
/* The last section hands over to the filter bar: ~19px + the bar's own 5px top room ≈ 24px. */
.vnt39-catm__sec:last-child {
	margin-bottom: 19px;
}

/* ---- shared Flickity pre-init layout (no layout jump while the lazy chunk loads) ---- */
.vnt39-catm-cats__slider:not( .flickity-enabled ),
.vnt39-catm-brands__slider:not( .flickity-enabled ),
.vnt39-catm-banner__slider:not( .flickity-enabled ) {
	display: flex;
	flex-wrap: nowrap;
	overflow: hidden;
}
.vnt39-catm-cats__slider:not( .flickity-enabled ) > *,
.vnt39-catm-brands__slider:not( .flickity-enabled ) > * {
	flex: none;
}
.vnt39-catm-banner__slider:not( .flickity-enabled ) > * {
	flex: 0 0 100%;
}
.vnt39-catm-cats__slider,
.vnt39-catm-brands__slider {
	position: relative;
}
/* Dots only exist for the banner. */
.vnt39-catm-cats__slider .flickity-page-dots,
.vnt39-catm-brands__slider .flickity-page-dots {
	display: none !important;
}

/* ---- arrows: round white, red chevron; on hover-capable devices only while the section is hovered ---- */
.vnt39-catm .flickity-prev-next-button {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	min-width: 32px !important;
	min-height: 32px !important;
	margin: -16px 0 0 !important;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 2px 8px rgba( 0, 0, 0, 0.18 );
	opacity: 0 !important;
	transition: opacity 0.2s ease;
}
.vnt39-catm .flickity-prev-next-button.previous {
	left: 6px;
}
.vnt39-catm .flickity-prev-next-button.next {
	right: 6px;
}
.vnt39-catm .flickity-prev-next-button .arrow {
	fill: var( --vnt39-brand, #8f0b18 );
}
.vnt39-catm__sec:hover .flickity-prev-next-button:not( :disabled ) {
	opacity: 1 !important;
}
.vnt39-catm__sec:hover .flickity-prev-next-button:disabled {
	opacity: 0.12 !important;
	box-shadow: none;
	cursor: default;
}
/* Touch: swipe + dots only. Rows that fit entirely (nothing to scroll): no arrows at all. */
@media ( hover: none ) {
	.vnt39-catm .flickity-prev-next-button {
		display: none;
	}
}
.vnt39-catm .is-static .flickity-prev-next-button {
	display: none;
}

/* ---- 1) child categories: compact, content-width cards (never stretched, one row) ---- */
.vnt39-catm-cats__slider .vnt39-catm-cats__cell.vnt39-catm-cats__cell,
.vnt39-catm-cats__cell {
	box-sizing: border-box !important;
	width: auto !important;
	padding: 0 12px 0 0 !important;
}
.vnt39-catm-cats__item {
	display: flex;
	align-items: center;
	gap: 12px;
	box-sizing: border-box;
	width: max-content;
	min-width: 190px;
	max-width: 240px;
	height: 76px;
	padding: 10px 18px 10px 14px;
	border: 1px solid #e5e7eb;
	border-radius: 11px;
	background: #fff;
	color: #252a31;
	text-decoration: none;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}
.vnt39-catm-cats__item--noimg {
	justify-content: center;
	padding: 10px 22px;
	text-align: center;
}
.vnt39-catm-cats__img {
	flex: 0 0 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
}
.vnt39-catm-cats__img img {
	display: block;
	width: auto;
	height: auto;
	max-width: 52px;
	max-height: 52px;
	object-fit: contain;
}
.vnt39-catm-cats__name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-width: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
}
@media ( hover: hover ) and ( pointer: fine ) {
	.vnt39-catm-cats__item:hover {
		border-color: var( --vnt39-brand, #8f0b18 );
		background: #fff8f8;
	}
}

/* ---- 2) banner slider ---- */
.vnt39-catm-banner__slider {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
}
.vnt39-catm-banner__slider .vnt39-catm-banner__slide.vnt39-catm-banner__slide,
.vnt39-catm-banner__slide {
	box-sizing: border-box !important;
	width: 100% !important;
	padding: 0 !important;
}
.vnt39-catm-banner__link {
	display: block;
}
.vnt39-catm-banner__slide picture {
	display: block;
}
.vnt39-catm-banner__slide img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: var( --ar, 3 / 1 );
	object-fit: cover;
}
/* DESKTOP / TABLET STANDARD (>=768px): every banner viewport is exactly 3:1 (VNT39 standard 1200x400),
   whatever the uploaded asset's own ratio — all slides in a slider share one height, and a legacy asset
   that is not 3:1 (legacy assets) is shown whole, centred (object-fit:contain), never stretched or cropped.
   Mobile keeps each image's own ratio (see the max-width:767px block). */
@media ( min-width: 768px ) {
	.vnt39-catm-banner__slide.vnt39-catm-banner__slide {
		aspect-ratio: 3 / 1;
		background: #f3f4f6;
	}
	.vnt39-catm-banner__slide .vnt39-catm-banner__link,
	.vnt39-catm-banner__slide picture {
		display: block;
		width: 100%;
		height: 100%;
	}
	.vnt39-catm-banner__slide img {
		width: 100%;
		height: 100%;
		aspect-ratio: auto;
		object-fit: contain;
		object-position: center;
	}
}
.vnt39-catm-banner__slider .flickity-prev-next-button.previous {
	left: 10px;
}
.vnt39-catm-banner__slider .flickity-prev-next-button.next {
	right: 10px;
}
/* White dots on the banner (same treatment as the Shop hero). */
.vnt39-catm-banner__slider .flickity-page-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin: 0;
	padding: 0;
	line-height: 1;
	list-style: none;
}
.vnt39-catm-banner__slider .flickity-page-dots .dot {
	width: 8px;
	height: 8px;
	margin: 0;
	border: 0;
	border-radius: 999px;
	background: rgba( 255, 255, 255, 0.75 );
	box-shadow: 0 0 3px rgba( 0, 0, 0, 0.45 );
	opacity: 1;
	transition: background-color 0.2s ease, width 0.2s ease;
}
.vnt39-catm-banner__slider .flickity-page-dots .dot.is-selected {
	width: 20px;
	background: #fff;
}

/* ---- 3) brands: a slim logo strip (same family as the Shop's brand cards, but smaller + content-width) ---- */
.vnt39-catm-brands__slider .vnt39-catm-brands__cell.vnt39-catm-brands__cell,
.vnt39-catm-brands__cell {
	box-sizing: border-box !important;
	width: auto !important;
	padding: 0 10px 0 0 !important;
}
.vnt39-catm-brand__item {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: max-content;
	min-width: 110px;
	max-width: 145px;
	height: 46px;
	padding: 0 16px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	text-decoration: none;
	transition: border-color 0.2s ease;
}
@media ( hover: hover ) and ( pointer: fine ) {
	.vnt39-catm-brand__item:hover {
		border-color: var( --vnt39-brand, #8f0b18 );
	}
}
.vnt39-catm-brand__logo {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 28px;
	object-fit: contain;
}
.vnt39-catm-brand__word {
	display: block;
	max-width: 100%;
	font-size: 13px;
	font-weight: 800;
	color: #344054;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.vnt39-catm-brand__item--has-bg {
	background-color: #fff;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

/* ---- mobile ---- */
@media ( max-width: 767px ) {
	/* On phones the title block already ends ~15px under the breadcrumb text, so a smaller row padding
	   gives the same ~23px breadcrumb → first section gap. */
	.row.category-page-row {
		padding-top: 8px;
	}
	.vnt39-catm__sec {
		margin-bottom: 14px;
	}
	.vnt39-catm__sec:last-child {
		margin-bottom: 16px;
	}
	.vnt39-catm-cats__slider .vnt39-catm-cats__cell.vnt39-catm-cats__cell,
	.vnt39-catm-cats__cell {
		padding-right: 10px !important;
	}
	.vnt39-catm-cats__item {
		min-width: 160px;
		max-width: 220px;
		height: 64px;
		padding: 8px 14px 8px 10px;
		gap: 10px;
	}
	.vnt39-catm-cats__img {
		flex-basis: 42px;
		width: 42px;
		height: 42px;
	}
	.vnt39-catm-cats__img img {
		max-width: 42px;
		max-height: 42px;
	}
	.vnt39-catm-cats__name {
		font-size: 14px;
	}
	.vnt39-catm-banner__slide img {
		aspect-ratio: var( --arm, var( --ar, 3 / 1 ) );
	}
	.vnt39-catm-banner__slider .flickity-page-dots {
		bottom: 3px;
		gap: 5px;
	}
	.vnt39-catm-banner__slider .flickity-page-dots .dot {
		width: 6px;
		height: 6px;
	}
	.vnt39-catm-banner__slider .flickity-page-dots .dot.is-selected {
		width: 14px;
	}
	.vnt39-catm-brands__slider .vnt39-catm-brands__cell.vnt39-catm-brands__cell,
	.vnt39-catm-brands__cell {
		padding-right: 8px !important;
	}
	.vnt39-catm-brand__item {
		min-width: 100px;
		max-width: 115px;
		height: 46px;
		padding: 0 12px;
	}
	.vnt39-catm-brand__logo {
		max-height: 26px;
	}
	.vnt39-catm-brand__word {
		font-size: 12px;
	}
}
