﻿/* Editorial/grid visibility handoff moved to css/catalog-mode/permanent-editorial-mode.css */


/* Product grid baseline inside products+media blocks (works in both catalog body modes). */
body.agora-channel-permanent .agora-permanent-editorial__block--products-media:not([data-editorial-grid-v2="1"]) .agora-permanent-editorial-products .woocommerce .products.row {
	display: grid !important;
	grid-template-columns: repeat(var(--agora-shop-desktop-cols, 2), minmax(0, 1fr)) !important;
	gap: 0 !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media .agora-permanent-editorial-products .woocommerce .products.row > .product-small.col {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}

@media (max-width: 849px) {
	body.agora-channel-permanent .agora-permanent-editorial__block--products-media .agora-permanent-editorial-products .woocommerce .products.row {
		grid-template-columns: repeat(var(--agora-shop-mobile-cols, var(--agora-shop-desktop-cols, 2)), minmax(0, 1fr)) !important;
	}
}

body.agora-channel-permanent.agora-catalog-editorial-mode .agora-permanent-editorial-products .category-page-row {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
}

body.agora-channel-permanent.agora-catalog-editorial-mode .agora-permanent-editorial-products--hook_3 .woocommerce .products.row,
body.agora-channel-permanent.agora-catalog-editorial-mode .agora-permanent-editorial-products--line_1x4 .woocommerce .products.row {
	display: grid !important;
}

body.agora-channel-permanent.agora-catalog-editorial-mode .agora-permanent-editorial-products--hook_3 .woocommerce .products.row {
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
}

body.agora-channel-permanent.agora-catalog-editorial-mode .agora-permanent-editorial-products--hook_3 .woocommerce .products.row > .product-small.col:first-child {
	grid-row: 1;
	grid-column: 1;
}

body.agora-channel-permanent.agora-catalog-editorial-mode .agora-permanent-editorial-products--hook_3 .woocommerce .products.row > .product-small.col:nth-child(2) {
	grid-row: 2;
	grid-column: 2;
}

body.agora-channel-permanent.agora-catalog-editorial-mode .agora-permanent-editorial-products--hook_3 .woocommerce .products.row > .product-small.col:nth-child(3) {
	grid-row: 3;
	grid-column: 1;
}

body.agora-channel-permanent.agora-catalog-editorial-mode .agora-permanent-editorial-products--line_1x4 .woocommerce .products.row {
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

body.agora-channel-permanent.agora-catalog-editorial-mode .agora-permanent-editorial-products .woocommerce .products.row {
	display: grid !important;
	grid-template-columns: repeat(var(--agora-shop-desktop-cols, 2), minmax(0, 1fr)) !important;
	gap: 0 !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.agora-channel-permanent.agora-catalog-editorial-mode .agora-permanent-editorial-products .woocommerce .products.row > .product-small.col {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}

/* Flatten Flatsome product-grid/packery blocks into regular square card grid in editorial mode. */
body.agora-channel-permanent.agora-catalog-editorial-mode .agora-permanent-editorial-products [id^="product-grid-"].row-grid {
	display: grid !important;
	grid-template-columns: repeat(var(--agora-shop-desktop-cols, 2), minmax(0, 1fr)) !important;
	gap: 0 !important;
	height: auto !important;
	margin: 0 !important;
	position: static !important;
}

body.agora-channel-permanent.agora-catalog-editorial-mode .agora-permanent-editorial-products [id^="product-grid-"].row-grid > .col {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	position: relative !important;
	left: auto !important;
	top: auto !important;
	float: none !important;
}

body.agora-channel-permanent.agora-catalog-editorial-mode .agora-permanent-editorial-products [id^="product-grid-"].row-grid .box-image {
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

body.agora-channel-permanent.agora-catalog-editorial-mode .agora-permanent-editorial-products [id^="product-grid-"].row-grid .box-image img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

body.agora-channel-permanent.agora-catalog-editorial-mode .agora-permanent-editorial-products [id^="product-grid-"].row-grid .box-overlay .overlay.fill {
	display: none !important;
}

body.agora-channel-permanent.agora-catalog-editorial-mode .agora-permanent-editorial-products [id^="product-grid-"].row-grid .box-overlay .box-text {
	background: transparent !important;
	color: inherit !important;
	padding: 10px 0 0 !important;
	position: static !important;
	text-align: left !important;
}

body.agora-channel-permanent.agora-catalog-editorial-mode .agora-permanent-editorial-products .product-title,
body.agora-channel-permanent.agora-catalog-editorial-mode .agora-permanent-editorial-products .price-wrapper {
	height: auto !important;
}

/* UX Builder "Products" element in editorial split columns. */
body.agora-channel-permanent.agora-catalog-editorial-mode .agora-permanent-editorial-products > .row {
	display: grid !important;
	grid-template-columns: repeat(var(--agora-shop-desktop-cols, 2), minmax(0, 1fr)) !important;
	gap: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.agora-channel-permanent.agora-catalog-editorial-mode .agora-permanent-editorial-products > .row > .col {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}

body.agora-channel-permanent.agora-catalog-editorial-mode .agora-permanent-editorial-products > .row > .col > .col-inner {
	height: 100%;
}

body.agora-channel-permanent.agora-catalog-editorial-mode .agora-permanent-editorial-products > .row > .col .product-small.box {
	background: transparent !important;
	border: 0 !important;
}

body.agora-channel-permanent.agora-catalog-editorial-mode .agora-permanent-editorial-products > .row > .col .box-image {
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

body.agora-channel-permanent.agora-catalog-editorial-mode .agora-permanent-editorial-products > .row > .col .box-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

body.agora-channel-permanent.agora-catalog-editorial-mode:not(.agora-shop-zen-active) .agora-permanent-editorial-products > .row > .col .box-text {
	display: flex !important;
	position: relative !important;
	opacity: 1 !important;
	visibility: visible !important;
	max-height: none !important;
	overflow: visible !important;
	transform: none !important;
	pointer-events: auto !important;
	height: auto !important;
	padding: 10px 0 0 !important;
	text-align: left !important;
}

/* Match shop grid card typography (white on dark page). */
body.agora-channel-permanent.agora-catalog-editorial-mode .agora-permanent-editorial-products > .row > .col .box-text,
body.agora-channel-permanent.agora-catalog-editorial-mode .agora-permanent-editorial-products .woocommerce .products.row > .product-small.col .box-text,
body.agora-channel-permanent.agora-catalog-editorial-mode .agora-permanent-editorial-products .woocommerce .products.row > .product-small.col .box-text-products {
	--agora-card-meta-color: #ffffff !important;
	--agora-card-price-color: #ffffff !important;
	--agora-card-title-color: #ffffff !important;
	color: #ffffff !important;
}

body.agora-channel-permanent.agora-catalog-editorial-mode .agora-permanent-editorial-products .product-title,
body.agora-channel-permanent.agora-catalog-editorial-mode .agora-permanent-editorial-products .product-title a,
body.agora-channel-permanent.agora-catalog-editorial-mode .agora-permanent-editorial-products .woocommerce-loop-product__title,
body.agora-channel-permanent.agora-catalog-editorial-mode .agora-permanent-editorial-products .woocommerce-loop-product__title a,
body.agora-channel-permanent.agora-catalog-editorial-mode .agora-permanent-editorial-products .agora-product-designer__link,
body.agora-channel-permanent.agora-catalog-editorial-mode .agora-permanent-editorial-products .agora-product-meta,
body.agora-channel-permanent.agora-catalog-editorial-mode .agora-permanent-editorial-products .agora-product-meta__link,
body.agora-channel-permanent.agora-catalog-editorial-mode .agora-permanent-editorial-products .agora-product-topline-price,
body.agora-channel-permanent.agora-catalog-editorial-mode .agora-permanent-editorial-products .agora-product-meta__sep {
	color: #ffffff !important;
}

body.agora-channel-permanent.agora-catalog-editorial-mode:not(.agora-shop-zen-active) .agora-permanent-editorial-products .product-title,
body.agora-channel-permanent.agora-catalog-editorial-mode:not(.agora-shop-zen-active) .agora-permanent-editorial-products .title-wrapper,
body.agora-channel-permanent.agora-catalog-editorial-mode:not(.agora-shop-zen-active) .agora-permanent-editorial-products .agora-product-topline,
body.agora-channel-permanent.agora-catalog-editorial-mode:not(.agora-shop-zen-active) .agora-permanent-editorial-products .agora-product-designer,
body.agora-channel-permanent.agora-catalog-editorial-mode:not(.agora-shop-zen-active) .agora-permanent-editorial-products .agora-product-meta {
	opacity: 1 !important;
	visibility: visible !important;
	display: block !important;
	height: auto !important;
	max-height: none !important;
}

/* Zen in editorial mode should only collapse/expand product text, not hide cards. */
body.agora-channel-permanent.agora-catalog-editorial-mode.agora-shop-zen-active .agora-permanent-editorial-products {
	display: block !important;
}

/* All products+media editorial strips â€” settled zen only (transition handled by zen JS). */
body.agora-channel-permanent.agora-catalog-editorial-mode.agora-shop-zen-active:not(.agora-shop-zen-transitioning)
	.agora-permanent-editorial__block--products-media
	.woocommerce
	.products.row
	> .product-small.col
	.box-text,
body.agora-channel-permanent.agora-catalog-editorial-mode.agora-shop-zen-active:not(.agora-shop-zen-transitioning)
	.agora-permanent-editorial__block--products-media
	.woocommerce
	.products.row
	> .product-small.col
	.box-text-products,
body.agora-channel-permanent.agora-catalog-editorial-mode.agora-shop-zen-active:not(.agora-shop-zen-transitioning)
	.agora-permanent-editorial__block--products-media
	.agora-permanent-editorial-products
	> .row
	> .col
	.box-text,
body.agora-channel-permanent.agora-catalog-editorial-mode.agora-shop-zen-active:not(.agora-shop-zen-transitioning)
	.agora-permanent-editorial__block--products-media
	.agora-permanent-editorial-products
	> .row
	> .col
	.box-text-products {
	flex: 0 0 0 !important;
	height: 0 !important;
	min-height: 0 !important;
	max-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	opacity: 0 !important;
	overflow: hidden !important;
	pointer-events: none !important;
	visibility: hidden !important;
	transform: translate3d(0, -0.2rem, 0) !important;
}

body.agora-channel-permanent.agora-catalog-editorial-mode.agora-shop-zen-active
	.agora-permanent-editorial__row--editorial-media-locked.agora-permanent-editorial__row--editorial-seam-v
	.agora-permanent-editorial-products
	.woocommerce
	.products.row
	> .product-small.col
	.col-inner,
body.agora-channel-permanent.agora-catalog-editorial-mode.agora-shop-zen-active
	.agora-permanent-editorial__row--editorial-media-locked.agora-permanent-editorial__row--editorial-seam-v
	.agora-permanent-editorial-products
	.woocommerce
	.products.row
	> .product-small.col
	.product-small.box,
body.agora-channel-permanent.agora-catalog-editorial-mode.agora-shop-zen-active
	.agora-permanent-editorial__row--editorial-media-locked.agora-permanent-editorial__row--editorial-seam-v
	.agora-permanent-editorial-products
	.woocommerce
	.products.row
	> .product-small.col
	.box-image {
	height: 100% !important;
	max-height: 100% !important;
	min-height: 0 !important;
}

body.agora-channel-permanent.agora-catalog-editorial-mode.agora-shop-zen-active
	.agora-permanent-editorial__row--editorial-media-locked.agora-permanent-editorial__row--editorial-seam-v
	.agora-permanent-editorial-products
	.woocommerce
	.products.row
	> .product-small.col
	.box-image {
	aspect-ratio: unset !important;
	flex: 1 1 auto !important;
}

/* Side-by-side stacks: let products column grow; do not force equal column heights. */
body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--editorial-zen-seam-v.align-equal,
body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--editorial-seam-v.align-equal:not(.agora-permanent-editorial__row--editorial-detail-seam-v) {
	align-items: flex-start !important;
}

/* Detail mode (zen off): center editorial media vertically beside the taller products stack. */
body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--editorial-detail-seam-v.align-equal {
	align-items: center !important;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--editorial-seam-v.align-equal > .agora-permanent-editorial__col--products,
body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--editorial-zen-seam-v.align-equal > .agora-permanent-editorial__col--products,
body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--editorial-detail-seam-v.align-equal > .agora-permanent-editorial__col--products {
	align-self: flex-start !important;
	flex-grow: 0 !important;
	height: auto !important;
	max-height: none !important;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--editorial-seam-v.align-equal:not(.agora-permanent-editorial__row--editorial-detail-seam-v) > .agora-permanent-editorial__col--media,
body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--editorial-zen-seam-v.align-equal > .agora-permanent-editorial__col--media {
	align-self: flex-start !important;
	height: auto !important;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--editorial-detail-seam-v.align-equal > .agora-permanent-editorial__col--media {
	align-self: center !important;
	height: auto !important;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--editorial-detail-seam-v .agora-permanent-editorial__col--media .col-inner {
	align-items: center !important;
	justify-content: center !important;
	min-height: 0 !important;
	height: auto !important;
}

/* Vertical seam: zen allows products column to exceed media height; detail mode grows with text. */
body.agora-channel-permanent.agora-catalog-editorial-mode.agora-shop-zen-active
	.agora-permanent-editorial__row--editorial-zen-seam-v
	.agora-permanent-editorial__col--products
	.col-inner,
body.agora-channel-permanent.agora-catalog-editorial-mode.agora-shop-zen-active
	.agora-permanent-editorial__row--editorial-zen-seam-v
	.agora-permanent-editorial__col--products
	.agora-permanent-editorial-products,
body.agora-channel-permanent.agora-catalog-editorial-mode.agora-shop-zen-active
	.agora-permanent-editorial__row--editorial-zen-seam-v
	.agora-permanent-editorial-products--line_2x1
	.woocommerce,
body.agora-channel-permanent.agora-catalog-editorial-mode.agora-shop-zen-active
	.agora-permanent-editorial__row--editorial-zen-seam-v
	.agora-permanent-editorial-products--line_3x1
	.woocommerce,
body.agora-channel-permanent.agora-catalog-editorial-mode.agora-shop-zen-active
	.agora-permanent-editorial__row--editorial-zen-seam-v
	.agora-permanent-editorial-products--line_4x1
	.woocommerce {
	height: auto !important;
	max-height: none !important;
	min-height: 0 !important;
}

body.agora-channel-permanent.agora-catalog-editorial-mode:not(.agora-shop-zen-active)
	.agora-permanent-editorial__row--editorial-seam-v:not(.agora-permanent-editorial__row--editorial-zen-seam-v)
	.agora-permanent-editorial__col--products
	.col-inner,
body.agora-channel-permanent.agora-catalog-editorial-mode:not(.agora-shop-zen-active)
	.agora-permanent-editorial__row--editorial-seam-v:not(.agora-permanent-editorial__row--editorial-zen-seam-v)
	.agora-permanent-editorial__col--products
	.agora-permanent-editorial-products {
	height: auto !important;
	max-height: none !important;
	min-height: 0 !important;
}

@media (max-width: 849px) {
	body.agora-channel-permanent.agora-catalog-editorial-mode .agora-permanent-editorial-products .woocommerce .products.row {
		grid-template-columns: repeat(var(--agora-shop-mobile-cols, 2), minmax(0, 1fr)) !important;
	}

	body.agora-channel-permanent.agora-catalog-editorial-mode .agora-permanent-editorial-products [id^="product-grid-"].row-grid {
		grid-template-columns: repeat(var(--agora-shop-mobile-cols, 2), minmax(0, 1fr)) !important;
	}

	body.agora-channel-permanent.agora-catalog-editorial-mode .agora-permanent-editorial-products > .row {
		grid-template-columns: repeat(var(--agora-shop-mobile-cols, 2), minmax(0, 1fr)) !important;
	}
}

body.agora-channel-permanent .agora-permanent-editorial {
	display: grid;
	gap: clamp(32px, 5vw, 72px);
	margin: 0 auto clamp(48px, 8vw, 96px);
	max-width: 1440px;
	padding: 0 clamp(16px, 3vw, 32px);
}

/* Products + media column block (backend-driven shortcode layout). */
body.agora-channel-permanent .agora-permanent-editorial__block--products-media {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0 0 clamp(32px, 5vw, 64px);
	overflow: visible;
}

/* V2 editorial grids span the full viewport; scale/align are relative to page width (incl. mobile + row-full-width). */
body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding-left: 0;
	padding-right: 0;
	box-sizing: border-box;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media {
	margin: 0;
	width: 100%;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media > .agora-permanent-editorial__col--products .agora-permanent-editorial-products {
	--agora-shop-desktop-cols: 2;
	--agora-shop-mobile-cols: 2;
}

/* Hook (3): zig-zag equal squares (left top, right middle, left bottom). */
body.agora-channel-permanent .agora-permanent-editorial-products--hook_3 .woocommerce .products.row,
body.agora-channel-permanent .agora-permanent-editorial__row--products-media .agora-permanent-editorial-products--hook_3 .woocommerce .products.row {
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
	align-items: stretch !important;
}

body.agora-channel-permanent .agora-permanent-editorial-products--hook_3 .woocommerce .products.row > .product-small.col:first-child,
body.agora-channel-permanent .agora-permanent-editorial__row--products-media .agora-permanent-editorial-products--hook_3 .woocommerce .products.row > .product-small.col:first-child {
	grid-row: 1;
	grid-column: 1;
}

body.agora-channel-permanent .agora-permanent-editorial-products--hook_3 .woocommerce .products.row > .product-small.col:nth-child(2),
body.agora-channel-permanent .agora-permanent-editorial__row--products-media .agora-permanent-editorial-products--hook_3 .woocommerce .products.row > .product-small.col:nth-child(2) {
	grid-row: 2;
	grid-column: 2;
}

body.agora-channel-permanent .agora-permanent-editorial-products--hook_3 .woocommerce .products.row > .product-small.col:nth-child(3),
body.agora-channel-permanent .agora-permanent-editorial__row--products-media .agora-permanent-editorial-products--hook_3 .woocommerce .products.row > .product-small.col:nth-child(3) {
	grid-row: 3;
	grid-column: 1;
}

body.agora-channel-permanent .agora-permanent-editorial-products--hook_3 .woocommerce .products.row > .product-small.col:nth-child(n + 4),
body.agora-channel-permanent .agora-permanent-editorial__row--products-media .agora-permanent-editorial-products--hook_3 .woocommerce .products.row > .product-small.col:nth-child(n + 4) {
	display: none !important;
}

/* Line 1x4: four products in one row (scales to column width). */
body.agora-channel-permanent .agora-permanent-editorial-products--line_1x4 .woocommerce .products.row,
body.agora-channel-permanent .agora-permanent-editorial__row--products-media .agora-permanent-editorial-products--line_1x4 .woocommerce .products.row {
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

body.agora-channel-permanent .agora-permanent-editorial-products--line_1x3 .woocommerce .products.row,
body.agora-channel-permanent .agora-permanent-editorial__row--products-media .agora-permanent-editorial-products--line_1x3 .woocommerce .products.row {
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body.agora-channel-permanent .agora-permanent-editorial-products--line_3x1 .woocommerce .products.row,
body.agora-channel-permanent .agora-permanent-editorial__row--products-media .agora-permanent-editorial-products--line_3x1 .woocommerce .products.row {
	grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
}

body.agora-channel-permanent .agora-permanent-editorial-products--line_1x2 .woocommerce .products.row,
body.agora-channel-permanent .agora-permanent-editorial__row--products-media .agora-permanent-editorial-products--line_1x2 .woocommerce .products.row {
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.agora-channel-permanent .agora-permanent-editorial-products--line_2x1 .woocommerce .products.row,
body.agora-channel-permanent .agora-permanent-editorial-products--line_4x1 .woocommerce .products.row,
body.agora-channel-permanent .agora-permanent-editorial__row--products-media .agora-permanent-editorial-products--line_2x1 .woocommerce .products.row,
body.agora-channel-permanent .agora-permanent-editorial__row--products-media .agora-permanent-editorial-products--line_4x1 .woocommerce .products.row {
	grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
}

/* Keep product cards square regardless of chosen arrangement. */
body.agora-channel-permanent .agora-permanent-editorial__row--products-media .agora-permanent-editorial-products .woocommerce .products.row .box-image {
	aspect-ratio: 1 / 1;
}

/* Vertical stack patterns fill products column height when media is side-by-side. */
body.agora-channel-permanent .agora-permanent-editorial__row--products-media:not(.agora-permanent-editorial__row--media-top):not(.agora-permanent-editorial__row--media-bottom) .agora-permanent-editorial-products--line_2x1 .woocommerce .products.row,
body.agora-channel-permanent .agora-permanent-editorial__row--products-media:not(.agora-permanent-editorial__row--media-top):not(.agora-permanent-editorial__row--media-bottom) .agora-permanent-editorial-products--line_3x1 .woocommerce .products.row,
body.agora-channel-permanent .agora-permanent-editorial__row--products-media:not(.agora-permanent-editorial__row--media-top):not(.agora-permanent-editorial__row--media-bottom) .agora-permanent-editorial-products--line_4x1 .woocommerce .products.row {
	height: 100%;
	justify-content: center;
	justify-items: center;
	align-content: stretch;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media:not(.agora-permanent-editorial__row--media-top):not(.agora-permanent-editorial__row--media-bottom) .agora-permanent-editorial-products--line_2x1 {
	--agora-editorial-stack-count: 2;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media:not(.agora-permanent-editorial__row--media-top):not(.agora-permanent-editorial__row--media-bottom) .agora-permanent-editorial-products--line_3x1 {
	--agora-editorial-stack-count: 3;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media:not(.agora-permanent-editorial__row--media-top):not(.agora-permanent-editorial__row--media-bottom) .agora-permanent-editorial-products--line_4x1 {
	--agora-editorial-stack-count: 4;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media:not(.agora-permanent-editorial__row--media-top):not(.agora-permanent-editorial__row--media-bottom) .agora-permanent-editorial-products--line_2x1 .woocommerce .products.row > .product-small.col,
body.agora-channel-permanent .agora-permanent-editorial__row--products-media:not(.agora-permanent-editorial__row--media-top):not(.agora-permanent-editorial__row--media-bottom) .agora-permanent-editorial-products--line_3x1 .woocommerce .products.row > .product-small.col,
body.agora-channel-permanent .agora-permanent-editorial__row--products-media:not(.agora-permanent-editorial__row--media-top):not(.agora-permanent-editorial__row--media-bottom) .agora-permanent-editorial-products--line_4x1 .woocommerce .products.row > .product-small.col {
	justify-self: center;
	width: min(100%, calc(var(--agora-media-rendered-height, 0px) / var(--agora-editorial-stack-count, 3)));
}

/* Hard lock stacked card width to media-height/count in side-by-side mode.
 * This must beat global .agora-shop-grid width:100% !important rules. */
body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--media-height-locked .agora-permanent-editorial-products--line_2x1 .woocommerce .products.row > .product-small.col,
body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--media-height-locked .agora-permanent-editorial-products--line_3x1 .woocommerce .products.row > .product-small.col,
body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--media-height-locked .agora-permanent-editorial-products--line_4x1 .woocommerce .products.row > .product-small.col {
	justify-self: center !important;
	max-width: min(100%, calc(var(--agora-media-rendered-height, 0px) / var(--agora-editorial-stack-count, 3))) !important;
	width: min(100%, calc(var(--agora-media-rendered-height, 0px) / var(--agora-editorial-stack-count, 3))) !important;
}

/* Detail mode (text visible): rows grow with image + title; zen uses fixed square rows via JS. */
body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--editorial-detail-seam-v .agora-permanent-editorial-products--line_2x1 .woocommerce .products.row,
body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--editorial-detail-seam-v .agora-permanent-editorial-products--line_3x1 .woocommerce .products.row,
body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--editorial-detail-seam-v .agora-permanent-editorial-products--line_4x1 .woocommerce .products.row {
	grid-template-rows: repeat(var(--agora-editorial-grid-rows, 1), minmax(var(--agora-editorial-product-cell, 0px), auto)) !important;
	height: auto !important;
	min-height: 0 !important;
	align-content: start !important;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--media-top .agora-permanent-editorial-products--line_1x4 .woocommerce .products.row {
	width: 100% !important;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--media-top:not(.agora-permanent-editorial__row--fixed-grid-v2) {
	display: grid;
	grid-template-columns: 1fr;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--media-top:not(.agora-permanent-editorial__row--fixed-grid-v2) > .agora-permanent-editorial__col {
	width: 100% !important;
	max-width: 100% !important;
	flex-basis: 100% !important;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media .agora-permanent-editorial__col--media .col-inner {
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media .agora-permanent-editorial__col--products .col-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--editorial-seam-v .agora-permanent-editorial__col--products .col-inner {
	height: auto !important;
	min-height: 0 !important;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media .agora-permanent-editorial__col--products .agora-permanent-editorial-products {
	width: 100%;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--media-height-locked:not(.agora-permanent-editorial__row--editorial-zen-seam-v):not(.agora-permanent-editorial__row--editorial-detail-seam-v) .agora-permanent-editorial__col--products .agora-permanent-editorial-products {
	height: var(--agora-media-rendered-height, auto);
	max-height: var(--agora-media-rendered-height, none);
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--editorial-detail-seam-v .agora-permanent-editorial__col--products .agora-permanent-editorial-products {
	height: auto !important;
	max-height: none !important;
	min-height: 0 !important;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--editorial-detail-seam-v .agora-permanent-editorial-products .woocommerce .products.row > .product-small.col {
	height: auto !important;
	max-height: none !important;
	min-height: 0 !important;
	overflow: visible !important;
	align-self: start !important;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--editorial-detail-seam-v .agora-permanent-editorial-products .woocommerce .products.row > .product-small.col .product-small.box {
	display: flex !important;
	flex-direction: column !important;
	height: auto !important;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--editorial-detail-seam-v .agora-permanent-editorial-products .woocommerce .products.row > .product-small.col .box-image {
	flex: 0 0 auto !important;
	width: 100% !important;
	height: auto !important;
	min-height: var(--agora-editorial-product-cell, 0px) !important;
	aspect-ratio: 1 / 1 !important;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--editorial-detail-seam-v .agora-permanent-editorial-products .woocommerce .products.row > .product-small.col .box-text,
body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--editorial-detail-seam-v .agora-permanent-editorial-products .woocommerce .products.row > .product-small.col .box-text-products {
	flex: 0 0 auto !important;
	position: relative !important;
	width: 100% !important;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--editorial-zen-seam-v .agora-permanent-editorial__col--products .agora-permanent-editorial-products {
	height: auto !important;
	max-height: none !important;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--media-height-locked:not(.agora-permanent-editorial__row--editorial-zen-seam-v) .agora-permanent-editorial-products--line_2x1 .woocommerce,
body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--media-height-locked:not(.agora-permanent-editorial__row--editorial-zen-seam-v) .agora-permanent-editorial-products--line_3x1 .woocommerce,
body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--media-height-locked:not(.agora-permanent-editorial__row--editorial-zen-seam-v) .agora-permanent-editorial-products--line_4x1 .woocommerce {
	height: 100%;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--editorial-zen-seam-v .agora-permanent-editorial-products--line_2x1 .woocommerce,
body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--editorial-zen-seam-v .agora-permanent-editorial-products--line_3x1 .woocommerce,
body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--editorial-zen-seam-v .agora-permanent-editorial-products--line_4x1 .woocommerce {
	height: auto !important;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--media-width-locked .agora-permanent-editorial__col--products .agora-permanent-editorial-products {
	margin-left: auto;
	margin-right: auto;
	max-width: var(--agora-media-rendered-width, 100%) !important;
	width: min(100%, var(--agora-media-rendered-width, 100%)) !important;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--media-width-locked .agora-permanent-editorial__col--products .col-inner {
	align-items: center;
	display: flex;
	flex-direction: column;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--media-width-locked .agora-permanent-editorial-products .woocommerce {
	margin-left: auto !important;
	margin-right: auto !important;
	max-width: inherit !important;
	width: 100% !important;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--media-width-locked .agora-permanent-editorial-products .woocommerce .products.row {
	gap: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--media-width-locked .agora-permanent-editorial-products .woocommerce .products.row > .product-small.col {
	margin: 0 !important;
	max-width: none !important;
	padding: 0 !important;
	width: 100% !important;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--media-width-locked .agora-permanent-editorial-products .woocommerce .products.row > .product-small.col > .col-inner,
body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--media-width-locked .agora-permanent-editorial-products .woocommerce .products.row .product-small.box {
	margin: 0 !important;
	padding: 0 !important;
}

/* Unified seam sizing + media hugging (global). */
body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--editorial-media-locked .agora-permanent-editorial__col--products .col-inner {
	display: flex;
	flex-direction: column;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--editorial-seam-h .agora-permanent-editorial__col--products .col-inner {
	align-items: center;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--editorial-seam-v .agora-permanent-editorial__col--products .col-inner {
	align-items: center;
	justify-content: center;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-agora-effective-media='top'] .agora-permanent-editorial__col--products .col-inner,
body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-agora-effective-media='left'] .agora-permanent-editorial__col--products .col-inner {
	align-items: flex-start;
	justify-content: flex-start;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-agora-effective-media='bottom'] .agora-permanent-editorial__col--products .col-inner,
body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-agora-effective-media='right'] .agora-permanent-editorial__col--products .col-inner {
	align-items: flex-end;
	justify-content: flex-start;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--editorial-seam-v .agora-permanent-editorial-products .woocommerce .products.row,
body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--editorial-seam-v .agora-permanent-editorial-products .woocommerce .products.row.agora-editorial-products-grid-locked {
	display: grid !important;
	grid-auto-flow: row !important;
	grid-auto-rows: unset !important;
	grid-template-columns: repeat(var(--agora-editorial-grid-cols, 1), minmax(0, 1fr)) !important;
	max-width: var(--agora-editorial-band-width, 100%) !important;
	width: min(100%, var(--agora-editorial-band-width, 100%)) !important;
	align-content: start !important;
	justify-content: center !important;
	gap: 0 !important;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--editorial-seam-v:not(.agora-permanent-editorial__row--editorial-zen-seam-v) .agora-permanent-editorial-products .woocommerce .products.row,
body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--editorial-seam-v:not(.agora-permanent-editorial__row--editorial-zen-seam-v) .agora-permanent-editorial-products .woocommerce .products.row.agora-editorial-products-grid-locked {
	grid-template-rows: repeat(var(--agora-editorial-grid-rows, 1), minmax(var(--agora-editorial-product-cell, 0px), auto)) !important;
	height: auto !important;
	min-height: 0 !important;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--editorial-zen-seam-v .agora-permanent-editorial-products .woocommerce .products.row,
body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--editorial-zen-seam-v .agora-permanent-editorial-products .woocommerce .products.row.agora-editorial-products-grid-locked {
	grid-template-rows: repeat(var(--agora-editorial-grid-rows, 1), var(--agora-editorial-product-cell, 1fr)) !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--editorial-seam-v .agora-permanent-editorial-products .woocommerce .products.row > .product-small.col {
	float: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	max-width: var(--agora-editorial-product-cell, 100%) !important;
	width: var(--agora-editorial-product-cell, 100%) !important;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--editorial-seam-v:not(.agora-permanent-editorial__row--editorial-zen-seam-v) .agora-permanent-editorial-products .woocommerce .products.row > .product-small.col {
	height: auto !important;
	max-height: none !important;
	min-height: var(--agora-editorial-product-cell, 0px) !important;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--editorial-zen-seam-v .agora-permanent-editorial-products .woocommerce .products.row > .product-small.col {
	height: var(--agora-editorial-product-cell, auto) !important;
	max-height: none !important;
	overflow: hidden !important;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media .agora-permanent-editorial__media-wrap--column {
	align-items: center;
	background: transparent !important;
	display: flex;
	flex: 1 1 auto;
	justify-content: center;
	min-height: 100%;
	width: 100%;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media .agora-permanent-editorial__media-wrap--valign-top {
	align-items: flex-start;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media .agora-permanent-editorial__media-wrap--valign-center {
	align-items: center;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media .agora-permanent-editorial__media-wrap--valign-bottom {
	align-items: flex-end;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media .agora-permanent-editorial__media-wrap--halign-left {
	justify-content: flex-start;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media .agora-permanent-editorial__media-wrap--halign-center {
	justify-content: center;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media .agora-permanent-editorial__media-wrap--halign-right {
	justify-content: flex-end;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--media-left.agora-permanent-editorial__row--halign-left,
body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--media-right.agora-permanent-editorial__row--halign-left {
	justify-content: flex-start;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--media-left.agora-permanent-editorial__row--halign-center,
body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--media-right.agora-permanent-editorial__row--halign-center {
	justify-content: center;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--media-left.agora-permanent-editorial__row--halign-right,
body.agora-channel-permanent .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--media-right.agora-permanent-editorial__row--halign-right {
	justify-content: flex-end;
}

body.agora-channel-permanent .agora-permanent-editorial__row--products-media .agora-permanent-editorial__media-wrap--column .agora-permanent-editorial__media,
body.agora-channel-permanent .agora-permanent-editorial__row--products-media .agora-permanent-editorial__media-wrap--column img,
body.agora-channel-permanent .agora-permanent-editorial__row--products-media .agora-permanent-editorial__media-wrap--column video {
	display: block;
	height: auto;
	max-height: 100%;
	max-width: 100%;
	min-height: 0;
	object-fit: contain;
	width: auto;
}

@media (max-width: 849px) {
	body.agora-channel-permanent .agora-permanent-editorial__block--products-media .agora-permanent-editorial__row--products-media:not(.agora-permanent-editorial__row--fixed-grid-v2) {
		display: flex;
		flex-direction: column;
	}

	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--fixed-grid-v2.agora-permanent-editorial__row--editorial-zen-grid-v2 {
		display: grid !important;
	}

	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--fixed-grid-v2.agora-permanent-editorial__row--editorial-detail-grid-v2 {
		display: grid !important;
	}

	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-mobile-media-position="top"] .agora-permanent-editorial__col--media,
	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-mobile-media-position="top"] .agora-permanent-editorial__col--products,
	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-mobile-media-position="bottom"] .agora-permanent-editorial__col--media,
	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-mobile-media-position="bottom"] .agora-permanent-editorial__col--products {
		flex: 0 0 auto;
		max-width: 100%;
		width: 100%;
	}

	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-mobile-media-position="left"] .agora-permanent-editorial__row--products-media,
	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-mobile-media-position="right"] .agora-permanent-editorial__row--products-media {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: stretch;
	}

	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-mobile-media-position="left"] .agora-permanent-editorial__col--media,
	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-mobile-media-position="left"] .agora-permanent-editorial__col--products,
	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-mobile-media-position="right"] .agora-permanent-editorial__col--media,
	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-mobile-media-position="right"] .agora-permanent-editorial__col--products {
		flex: none;
		max-width: none;
		width: 100%;
	}

	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-mobile-media-position="left"] .agora-permanent-editorial__col--media { order: 1; }
	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-mobile-media-position="left"] .agora-permanent-editorial__col--products { order: 2; }
	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-mobile-media-position="right"] .agora-permanent-editorial__col--products { order: 1; }
	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-mobile-media-position="right"] .agora-permanent-editorial__col--media { order: 2; }

	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-mobile-media-position="left"] .agora-permanent-editorial__col--products .woocommerce .products.row,
	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-mobile-media-position="right"] .agora-permanent-editorial__col--products .woocommerce .products.row {
		grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
	}

	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-mobile-media-position="left"] .agora-permanent-editorial__col--media .agora-permanent-editorial__media-wrap--column,
	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-mobile-media-position="right"] .agora-permanent-editorial__col--media .agora-permanent-editorial__media-wrap--column {
		height: 100%;
		min-height: var(--agora-editorial-band-height, 220px);
	}

	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-mobile-media-position="left"] .agora-permanent-editorial__col--media .agora-permanent-editorial__media-wrap--column .agora-permanent-editorial__media,
	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-mobile-media-position="left"] .agora-permanent-editorial__col--media .agora-permanent-editorial__media-wrap--column img,
	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-mobile-media-position="left"] .agora-permanent-editorial__col--media .agora-permanent-editorial__media-wrap--column video,
	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-mobile-media-position="right"] .agora-permanent-editorial__col--media .agora-permanent-editorial__media-wrap--column .agora-permanent-editorial__media,
	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-mobile-media-position="right"] .agora-permanent-editorial__col--media .agora-permanent-editorial__media-wrap--column img,
	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-mobile-media-position="right"] .agora-permanent-editorial__col--media .agora-permanent-editorial__media-wrap--column video {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-mobile-media-position="bottom"] .agora-permanent-editorial__row--products-media {
		flex-direction: column-reverse;
	}

	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-mobile-media-position="top"] .agora-permanent-editorial__col--media {
		order: 1;
	}

	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-mobile-media-position="top"] .agora-permanent-editorial__col--products {
		order: 2;
	}

	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-mobile-media-position="bottom"] .agora-permanent-editorial__col--products {
		order: 1;
	}

	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-mobile-media-position="bottom"] .agora-permanent-editorial__col--media {
		order: 2;
	}

	/* Mobile-specific product pattern (independent from desktop). */
	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-mobile-products-pattern="line_1x4"] .agora-permanent-editorial-products .woocommerce .products.row {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-mobile-products-pattern="line_1x3"] .agora-permanent-editorial-products .woocommerce .products.row {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-mobile-products-pattern="line_3x1"] .agora-permanent-editorial-products .woocommerce .products.row {
		grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
	}

	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-mobile-products-pattern="line_1x2"] .agora-permanent-editorial-products .woocommerce .products.row {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-mobile-products-pattern="line_2x1"] .agora-permanent-editorial-products .woocommerce .products.row,
	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-mobile-products-pattern="line_4x1"] .agora-permanent-editorial-products .woocommerce .products.row {
		grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
	}

	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-mobile-products-pattern="hook_3"] .agora-permanent-editorial-products .woocommerce .products.row {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
	}

	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-mobile-products-pattern="hook_3"] .agora-permanent-editorial-products .woocommerce .products.row > .product-small.col:first-child {
		grid-row: 1;
		grid-column: 1;
	}

	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-mobile-products-pattern="hook_3"] .agora-permanent-editorial-products .woocommerce .products.row > .product-small.col:nth-child(2) {
		grid-row: 2;
		grid-column: 2;
	}

	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-mobile-products-pattern="hook_3"] .agora-permanent-editorial-products .woocommerce .products.row > .product-small.col:nth-child(3) {
		grid-row: 3;
		grid-column: 1;
	}

	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-mobile-products-pattern="grid_2x2"] .agora-permanent-editorial-products .woocommerce .products.row {
		grid-template-columns: repeat(var(--agora-shop-mobile-cols, 2), minmax(0, 1fr)) !important;
	}

	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-desktop-products-pattern="hook_3"]:not([data-mobile-products-pattern="hook_3"]) .agora-permanent-editorial-products .woocommerce .products.row {
		grid-template-columns: repeat(var(--agora-shop-mobile-cols, 2), minmax(0, 1fr)) !important;
		grid-template-rows: none !important;
	}

	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-desktop-products-pattern="hook_3"]:not([data-mobile-products-pattern="hook_3"]) .agora-permanent-editorial-products .woocommerce .products.row > .product-small.col:first-child {
		grid-row: auto;
	}

	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-desktop-products-pattern="hook_3"]:not([data-mobile-products-pattern="hook_3"]) .agora-permanent-editorial-products .woocommerce .products.row > .product-small.col:nth-child(2),
	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-desktop-products-pattern="hook_3"]:not([data-mobile-products-pattern="hook_3"]) .agora-permanent-editorial-products .woocommerce .products.row > .product-small.col:nth-child(3) {
		grid-column: auto;
		grid-row: auto;
	}
}

body.agora-channel-permanent .agora-permanent-editorial__block {
	align-items: stretch;
	display: grid;
	gap: clamp(20px, 3vw, 40px);
	grid-template-columns: minmax(0, 1fr);
	overflow: hidden;
}

body.agora-channel-permanent:not(.agora-shop-zen-active)
	.agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] {
	overflow: visible;
}

body.agora-channel-permanent .agora-permanent-editorial__block--hero {
	min-height: clamp(440px, 62vw, 760px);
	position: relative;
}

body.agora-channel-permanent .agora-permanent-editorial__block--hero .agora-permanent-editorial__media-wrap {
	inset: 0;
	position: absolute;
}

body.agora-channel-permanent .agora-permanent-editorial__block--hero .agora-permanent-editorial__copy {
	align-self: end;
	background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.52));
	color: #fff;
	min-height: 100%;
	padding: clamp(28px, 5vw, 72px);
	position: relative;
	z-index: 1;
}

body.agora-channel-permanent .agora-permanent-editorial__block--split {
	grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

body.agora-channel-permanent .agora-permanent-editorial__block--split .agora-permanent-editorial__copy {
	align-self: center;
	padding: clamp(18px, 3vw, 44px);
}

body.agora-channel-permanent .agora-permanent-editorial__media-wrap {
	background: #f4f4f4;
	min-height: 280px;
}

body.agora-channel-permanent .agora-permanent-editorial__media {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

body.agora-channel-permanent .agora-permanent-editorial__copy {
	display: grid;
	gap: 12px;
}

body.agora-channel-permanent .agora-permanent-editorial__eyebrow {
	font-size: 11px;
	letter-spacing: 0.16em;
	margin: 0;
	text-transform: uppercase;
}

body.agora-channel-permanent .agora-permanent-editorial__heading {
	font-size: clamp(28px, 4.5vw, 68px);
	line-height: 0.95;
	margin: 0;
	max-width: 760px;
}

body.agora-channel-permanent .agora-permanent-editorial__body {
	font-size: clamp(15px, 1.25vw, 18px);
	line-height: 1.6;
	max-width: 620px;
}

body.agora-channel-permanent .agora-permanent-editorial__body p {
	margin: 0 0 1em;
}

body.agora-channel-permanent .agora-permanent-editorial__body p:last-child {
	margin-bottom: 0;
}

body.agora-channel-permanent .agora-permanent-editorial__products {
	--agora-shop-desktop-cols: 4;
	margin-top: clamp(16px, 2.5vw, 28px);
}

body.agora-channel-permanent .agora-permanent-editorial__block--product_row .agora-permanent-editorial__products {
	--agora-shop-desktop-cols: 5;
}

body.agora-channel-permanent .agora-permanent-editorial__block--small_grid .agora-permanent-editorial__products {
	--agora-shop-desktop-cols: 3;
}

@media (max-width: 849px) {
	body.agora-channel-permanent .agora-permanent-editorial__block--split {
		grid-template-columns: minmax(0, 1fr);
	}

	body.agora-channel-permanent .agora-permanent-editorial__block--hero {
		min-height: 520px;
	}
}

/* Dynamic editorial slot grid (v2): 2x2 default, up to 4x4. */
body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--fixed-grid-v2 {
	display: grid !important;
	grid-template-columns: repeat(var(--agora-editorial-grid-cols, 2), minmax(0, 1fr));
	gap: 0 !important;
	width: calc((var(--agora-editorial-grid-cols, 2) / 4) * 100% * var(--agora-editorial-row-scale, 1)) !important;
	max-width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
	position: relative;
}

/* Zen uses the same v2 row geometry as detail; only product text is hidden via body.agora-shop-zen-active. */
body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--fixed-grid-v2.agora-permanent-editorial__row--editorial-zen-grid-v2,
body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--fixed-grid-v2.agora-permanent-editorial__row--editorial-detail-grid-v2 {
	grid-template-rows: repeat(var(--agora-editorial-grid-rows, 2), minmax(var(--agora-editorial-product-cell, 0px), auto));
	height: auto !important;
	min-height: 0 !important;
	aspect-ratio: auto !important;
	align-items: start;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--fixed-grid-v2.agora-permanent-editorial__row--editorial-detail-grid-v2 {
	overflow: visible;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--fixed-grid-v2[data-agora-row-tracks-synced="1"] {
	grid-template-rows: var(--agora-editorial-grid-template-rows) !important;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--fixed-grid-v2[data-agora-row-tracks-synced="1"] .agora-permanent-editorial-products .woocommerce .products.row {
	grid-template-rows: var(--agora-editorial-grid-template-rows) !important;
	height: auto !important;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--multi-media-locked[data-agora-row-tracks-synced="1"] .agora-permanent-editorial__media-grid {
	grid-template-rows: var(--agora-editorial-grid-template-rows) !important;
	height: var(--agora-editorial-band-height) !important;
	min-height: var(--agora-editorial-band-height) !important;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--fixed-grid-v2.agora-permanent-editorial__row--halign-left {
	margin-left: 0 !important;
	margin-right: auto !important;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--fixed-grid-v2.agora-permanent-editorial__row--halign-center {
	margin-left: auto !important;
	margin-right: auto !important;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--fixed-grid-v2.agora-permanent-editorial__row--halign-right {
	margin-left: auto !important;
	margin-right: 0 !important;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--fixed-grid-v2 > .agora-permanent-editorial__col {
	width: 100% !important;
	max-width: none !important;
	flex: none !important;
	padding: 0 !important;
	margin: 0 !important;
	min-height: 0;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--fixed-grid-v2 > .agora-permanent-editorial__col--products {
	grid-column: 1 / -1;
	grid-row: var(--agora-editorial-products-grid-row, 1 / -1);
	z-index: 1;
	align-self: stretch;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--multi-media-locked > .agora-permanent-editorial__col--products {
	z-index: 3;
}

/* Multi-media: products grid spans the full band above media tiles â€” let clicks pass through empty cells. */
body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--multi-media-locked > .agora-permanent-editorial__col--products,
body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--multi-media-locked > .agora-permanent-editorial__col--products .col-inner,
body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--multi-media-locked .agora-permanent-editorial-products,
body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--multi-media-locked .agora-permanent-editorial-products .woocommerce,
body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--multi-media-locked .agora-permanent-editorial-products .woocommerce .products.row {
	pointer-events: none;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--multi-media-locked .agora-permanent-editorial-products .woocommerce .products.row > .product-small.col {
	pointer-events: auto;
}

/* Multi-media overlay grid: keep card media interactive after the row-level pointer-events pass-through. */
body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--multi-media-locked .agora-permanent-editorial-products .woocommerce .products.row > .product-small.col .box-image,
body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--multi-media-locked .agora-permanent-editorial-products .woocommerce .products.row > .product-small.col .box-image .image-none,
body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--multi-media-locked .agora-permanent-editorial-products .woocommerce .products.row > .product-small.col .agora-card-media--double,
body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--multi-media-locked .agora-permanent-editorial-products .woocommerce .products.row > .product-small.col .agora-card-media__front,
body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--multi-media-locked .agora-permanent-editorial-products .woocommerce .products.row > .product-small.col .agora-card-media__under,
body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--multi-media-locked .agora-permanent-editorial-products .woocommerce .products.row > .product-small.col .agora-card-media__hit {
	pointer-events: auto;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--fixed-grid-v2.agora-permanent-editorial__row--editorial-detail-grid-v2 > .agora-permanent-editorial__col--products {
	align-self: start !important;
	min-height: 100%;
	height: auto !important;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--fixed-grid-v2 > .agora-permanent-editorial__col--media {
	grid-column: var(--agora-media-slot-col, 1) / span var(--agora-media-slot-colspan, 2);
	grid-row: var(--agora-media-slot-row, 1) / span var(--agora-media-slot-rowspan, 1);
	z-index: 2;
	align-self: start;
	min-height: 0;
	overflow: hidden;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--fixed-grid-v2 > .agora-permanent-editorial__col--media.agora-permanent-editorial__col--media-multi {
	grid-column: 1 / -1;
	grid-row: 1 / -1;
	pointer-events: none;
	align-self: stretch;
	min-height: 0;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__media-grid {
	display: grid;
	grid-template-columns: repeat(var(--agora-editorial-grid-cols, 2), minmax(0, 1fr));
	grid-template-rows: repeat(var(--agora-editorial-grid-rows, 2), minmax(0, 1fr));
	width: 100%;
	height: 100%;
	min-height: 0;
	gap: 0;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__media-wrap--tile {
	pointer-events: auto;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--fixed-grid-v2 > .agora-permanent-editorial__col--media .col-inner {
	min-height: 0 !important;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--fixed-grid-v2.agora-permanent-editorial__row--editorial-zen-grid-v2 > .agora-permanent-editorial__col--media .col-inner {
	height: 100% !important;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--fixed-grid-v2.agora-permanent-editorial__row--editorial-zen-grid-v2 > .agora-permanent-editorial__col--products .col-inner {
	min-height: 0 !important;
	height: 100% !important;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--fixed-grid-v2.agora-permanent-editorial__row--editorial-detail-grid-v2 > .agora-permanent-editorial__col--products .col-inner {
	min-height: 0 !important;
	height: auto !important;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--fixed-grid-v2.agora-permanent-editorial__row--editorial-zen-grid-v2 .agora-permanent-editorial-products .woocommerce .products.row {
	display: grid !important;
	grid-template-columns: repeat(var(--agora-editorial-grid-cols, 2), minmax(0, 1fr)) !important;
	grid-template-rows: repeat(var(--agora-editorial-product-band-rows, var(--agora-editorial-grid-rows, 2)), minmax(0, 1fr)) !important;
	grid-auto-flow: row !important;
	flex-wrap: unset !important;
	gap: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	min-height: 0 !important;
	height: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding: 0 !important;
	align-content: stretch !important;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--fixed-grid-v2.agora-permanent-editorial__row--editorial-detail-grid-v2 .agora-permanent-editorial-products .woocommerce .products.row {
	display: grid !important;
	grid-template-columns: repeat(var(--agora-editorial-grid-cols, 2), minmax(0, 1fr)) !important;
	grid-template-rows: repeat(var(--agora-editorial-product-band-rows, var(--agora-editorial-grid-rows, 2)), minmax(var(--agora-editorial-product-cell, 0px), auto)) !important;
	grid-auto-flow: row !important;
	flex-wrap: unset !important;
	gap: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	min-height: 0 !important;
	height: auto !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding: 0 !important;
	align-content: start !important;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--fixed-grid-v2 .agora-permanent-editorial-products {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--multi-media-locked {
	min-height: 0;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--multi-media-locked.agora-permanent-editorial__row--editorial-zen-grid-v2 .agora-permanent-editorial-products .woocommerce .products.row {
	grid-template-rows: repeat(var(--agora-editorial-grid-rows, 2), minmax(0, 1fr)) !important;
	min-height: 0 !important;
	height: 100% !important;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--multi-media-locked.agora-permanent-editorial__row--editorial-detail-grid-v2 .agora-permanent-editorial-products .woocommerce .products.row {
	grid-template-rows: repeat(var(--agora-editorial-grid-rows, 2), minmax(var(--agora-editorial-product-cell, 0px), auto)) !important;
	min-height: 0 !important;
	height: auto !important;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--multi-media-locked > .agora-permanent-editorial__col--products .col-inner,
body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--multi-media-locked > .agora-permanent-editorial__col--media .col-inner {
	align-items: stretch !important;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--multi-media-locked.agora-permanent-editorial__row--editorial-zen-grid-v2 .agora-permanent-editorial__media-grid {
	display: grid !important;
	grid-template-columns: repeat(var(--agora-editorial-grid-cols, 2), minmax(0, 1fr)) !important;
	grid-template-rows: repeat(var(--agora-editorial-grid-rows, 2), minmax(0, 1fr)) !important;
	width: 100% !important;
	max-width: 100% !important;
	height: 100% !important;
	min-height: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	gap: 0 !important;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--multi-media-locked.agora-permanent-editorial__row--editorial-detail-grid-v2 .agora-permanent-editorial__media-grid {
	display: grid !important;
	grid-template-columns: repeat(var(--agora-editorial-grid-cols, 2), minmax(0, 1fr)) !important;
	grid-template-rows: repeat(var(--agora-editorial-grid-rows, 2), minmax(var(--agora-editorial-product-cell, 0px), auto)) !important;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	min-height: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	gap: 0 !important;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--multi-media-locked .agora-permanent-editorial__media-wrap--tile {
	position: relative;
	overflow: hidden;
	width: 100% !important;
	height: 100% !important;
	min-height: 0 !important;
	aspect-ratio: auto !important;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__media-wrap--tile.agora-permanent-editorial__media-wrap--column {
	aspect-ratio: auto !important;
	height: 100% !important;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--fixed-grid-v2 .agora-permanent-editorial-products .woocommerce .products.row.large-columns-3,
body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--fixed-grid-v2 .agora-permanent-editorial-products .woocommerce .products.row.large-columns-2,
body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--fixed-grid-v2 .agora-permanent-editorial-products .woocommerce .products.row.large-columns-4 {
	display: grid !important;
	flex-wrap: unset !important;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--fixed-grid-v2 > .agora-permanent-editorial__col--products .col-inner,
body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--fixed-grid-v2 .agora-permanent-editorial-products,
body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--fixed-grid-v2 .agora-permanent-editorial-products .woocommerce,
body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--fixed-grid-v2 .agora-shop-grid,
body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--fixed-grid-v2 .agora-shop-grid .woocommerce,
body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--fixed-grid-v2 .agora-shop-grid .woocommerce .products.row {
	width: 100% !important;
	max-width: 100% !important;
	min-height: 0 !important;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--fixed-grid-v2.agora-permanent-editorial__row--editorial-zen-grid-v2 > .agora-permanent-editorial__col--products .col-inner {
	align-items: stretch !important;
	height: 100% !important;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--fixed-grid-v2.agora-permanent-editorial__row--editorial-zen-grid-v2 .agora-permanent-editorial-products .woocommerce .products.row > .product-small.col {
	width: auto !important;
	max-width: none !important;
	height: 100% !important;
	min-height: 0 !important;
	align-self: stretch !important;
	overflow: hidden !important;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--fixed-grid-v2.agora-permanent-editorial__row--editorial-detail-grid-v2 .agora-permanent-editorial-products .woocommerce .products.row > .product-small.col {
	width: auto !important;
	max-width: none !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	align-self: start !important;
	overflow: visible !important;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--fixed-grid-v2.agora-permanent-editorial__row--editorial-zen-grid-v2 .agora-permanent-editorial-products .woocommerce .products.row > .product-small.col > .col-inner,
body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--fixed-grid-v2.agora-permanent-editorial__row--editorial-zen-grid-v2 .agora-permanent-editorial-products .woocommerce .products.row > .product-small.col .product-small.box {
	height: 100% !important;
	min-height: 0 !important;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--fixed-grid-v2.agora-permanent-editorial__row--editorial-zen-grid-v2 .agora-permanent-editorial-products .woocommerce .products.row > .product-small.col .box-image {
	aspect-ratio: 1 / 1 !important;
	width: 100% !important;
	height: auto !important;
	max-height: 100% !important;
	flex: 1 1 auto !important;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--fixed-grid-v2.agora-permanent-editorial__row--editorial-detail-grid-v2 .agora-permanent-editorial-products .woocommerce .products.row > .product-small.col > .col-inner,
body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--fixed-grid-v2.agora-permanent-editorial__row--editorial-detail-grid-v2 .agora-permanent-editorial-products .woocommerce .products.row > .product-small.col .product-small.box {
	height: auto !important;
	min-height: 0 !important;
	display: flex !important;
	flex-direction: column !important;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--fixed-grid-v2.agora-permanent-editorial__row--editorial-detail-grid-v2 .agora-permanent-editorial-products .woocommerce .products.row > .product-small.col .box-image {
	aspect-ratio: 1 / 1 !important;
	width: 100% !important;
	height: auto !important;
	flex: 0 0 auto !important;
	min-height: var(--agora-editorial-product-cell, 0px) !important;
	position: relative !important;
	z-index: 2 !important;
	overflow: hidden !important;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--fixed-grid-v2.agora-permanent-editorial__row--editorial-detail-grid-v2 .agora-permanent-editorial-products .woocommerce .products.row > .product-small.col .box-text,
body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--fixed-grid-v2.agora-permanent-editorial__row--editorial-detail-grid-v2 .agora-permanent-editorial-products .woocommerce .products.row > .product-small.col .box-text-products {
	flex: 0 0 auto !important;
	position: relative !important;
	width: 100% !important;
	overflow: visible !important;
}

/* Detail + synced row tracks: beat generic multi-media minmax(cell, auto) rules. */
body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--multi-media-locked.agora-permanent-editorial__row--editorial-detail-grid-v2[data-agora-row-tracks-synced="1"] .agora-permanent-editorial-products .woocommerce .products.row,
body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--fixed-grid-v2.agora-permanent-editorial__row--editorial-detail-grid-v2[data-agora-row-tracks-synced="1"] .agora-permanent-editorial-products .woocommerce .products.row {
	grid-template-rows: var(--agora-editorial-grid-template-rows) !important;
	height: auto !important;
	min-height: 0 !important;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--multi-media-locked.agora-permanent-editorial__row--editorial-detail-grid-v2[data-agora-row-tracks-synced="1"] .agora-permanent-editorial__media-grid {
	grid-template-rows: var(--agora-editorial-grid-template-rows) !important;
	height: var(--agora-editorial-band-height) !important;
	min-height: var(--agora-editorial-band-height) !important;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial-products .woocommerce .products.row > .product-small.col {
	min-height: 0;
	min-width: 0;
	z-index: 1;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__media-wrap--column {
	position: relative;
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	aspect-ratio: var(--agora-media-slot-aspect, 1 / 1);
	overflow: hidden;
	--agora-pan-w-mult: var(--agora-media-pan-w, 1);
	--agora-pan-h-mult: var(--agora-media-pan-h, 1);
	--agora-focus-x: calc(var(--agora-media-crop-x, 50) * 1%);
	--agora-focus-y: calc(var(--agora-media-crop-y, 50) * 1%);
	--agora-zoom: calc(var(--agora-media-crop-scale, 100) / 100);
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__media-wrap--column .agora-permanent-editorial__media,
body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__media-wrap--column img,
body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__media-wrap--column video {
	position: absolute;
	inset: auto;
	right: auto;
	bottom: auto;
	left: var(--agora-focus-x, 50%);
	top: var(--agora-focus-y, 50%);
	width: calc(100% * var(--agora-pan-w-mult, 1) * var(--agora-zoom, 1)) !important;
	height: calc(100% * var(--agora-pan-h-mult, 1) * var(--agora-zoom, 1)) !important;
	max-width: none;
	max-height: none;
	transform: translate(-50%, -50%);
	object-fit: cover !important;
	object-position: center center;
	display: block;
	margin: 0;
}

body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__media-wrap--tile .agora-permanent-editorial__media,
body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__media-wrap--tile img,
body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__media-wrap--tile video {
	position: absolute;
	inset: auto;
	right: auto;
	bottom: auto;
	left: var(--agora-focus-x, 50%);
	top: var(--agora-focus-y, 50%);
	width: calc(100% * var(--agora-pan-w-mult, 1) * var(--agora-zoom, 1)) !important;
	height: calc(100% * var(--agora-pan-h-mult, 1) * var(--agora-zoom, 1)) !important;
	max-width: none;
	max-height: none;
	transform: translate(-50%, -50%);
	object-fit: cover !important;
	object-position: center center;
	display: block;
	margin: 0;
}

body.agora-channel-permanent .agora-permanent-editorial__media-wrap[data-overlay-src] .agora-permanent-editorial__media {
	cursor: zoom-in;
}

body.agora-channel-permanent .agora-permanent-editorial__media-wrap[data-overlay-src] {
	cursor: zoom-in;
}

@media (max-width: 849px) {
	body.agora-channel-permanent .agora-permanent-editorial {
		max-width: none;
		padding-left: 0;
		padding-right: 0;
	}

	/* UX Builder row-full-width wrapper: full viewport bleed for v2 editorial blocks. */
	body.agora-channel-permanent.agora-catalog-editorial-mode .row.row-full-width:has(.agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"]) {
		width: 100vw !important;
		max-width: 100vw !important;
		margin-left: calc(50% - 50vw) !important;
		margin-right: calc(50% - 50vw) !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	body.agora-channel-permanent.agora-catalog-editorial-mode .row.row-full-width:has(.agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"]) > .col,
	body.agora-channel-permanent.agora-catalog-editorial-mode .row.row-full-width:has(.agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"]) > .col > .col-inner {
		width: 100% !important;
		max-width: none !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}

	/* Mobile scale is relative to the full viewport; slot count only sets grid density. */
	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] .agora-permanent-editorial__row--products-media.agora-permanent-editorial__row--fixed-grid-v2 {
		width: calc(100% * var(--agora-editorial-row-scale, 1)) !important;
		max-width: 100% !important;
	}

	body.agora-channel-permanent .agora-permanent-editorial__block--products-media[data-editorial-grid-v2="1"] {
		max-width: 100vw;
		width: 100vw;
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
	}
}

body.agora-editorial-media-overlay-open {
	overflow: hidden;
}

.agora-editorial-media-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.88);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	z-index: 10000;
}

.agora-editorial-media-overlay.is-open {
	display: flex;
}

.agora-editorial-media-overlay__image {
	max-width: min(96vw, 1600px);
	max-height: 90vh;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.agora-editorial-media-overlay__close {
	position: absolute;
	top: 14px;
	right: 18px;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

/* Grid health debug HUD (admins or ?agora_grid_debug=1). */
body.agora-grid-debug-active.agora-grid-health-ok .agora-channel-catalog-row {
	outline: 2px solid #3dd68c !important;
	outline-offset: 2px;
}

body.agora-grid-debug-active.agora-grid-health-broken .agora-channel-catalog-row {
	outline: 2px solid #ff5c5c !important;
	outline-offset: 2px;
}

#agora-grid-debug-hud {
	position: fixed;
	right: 12px;
	bottom: 12px;
	z-index: 99999;
	max-width: min(420px, calc(100vw - 24px));
	max-height: 70vh;
	overflow: auto;
	padding: 12px 14px;
	font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	color: #f5f5f5;
	background: rgba(12, 12, 12, 0.94);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
	pointer-events: none;
}

#agora-grid-debug-hud.is-ok {
	border-color: #3dd68c;
}

#agora-grid-debug-hud.is-broken {
	border-color: #ff5c5c;
}

#agora-grid-debug-hud dt {
	margin: 8px 0 2px;
	font-weight: 700;
	color: #9cdcfe;
}

#agora-grid-debug-hud dt:first-child {
	margin-top: 0;
}

#agora-grid-debug-hud dd {
	margin: 0;
	word-break: break-word;
}

#agora-grid-debug-hud .agora-grid-debug-hud__hint {
	margin: 10px 0 0;
	opacity: 0.65;
	font-size: 11px;
}
