/* 225Shop Editor front-end catalogue styles. */
body.shop225-active .shop225-shop-layout {
	box-sizing: border-box;
	width: 100%;
	margin-right: auto;
	margin-left: auto;
}

body.shop225-active.shop225-width-contained .shop225-shop-layout {
	max-width: var(--shop225-shop-max-width);
}

body.shop225-active.shop225-width-full .shop225-shop-layout {
	width: 100vw;
	max-width: none;
	margin-right: calc(50% - 50vw);
	margin-left: calc(50% - 50vw);
	padding-right: clamp(16px, 3vw, 48px);
	padding-left: clamp(16px, 3vw, 48px);
}

body.shop225-active ul.products,
body.shop225-active .wc-block-grid__products,
body.shop225-active .wc-block-product-template {
	display: grid !important;
	grid-template-columns: repeat(var(--shop225-columns-desktop), minmax(0, 1fr)) !important;
	column-gap: var(--shop225-column-gap) !important;
	row-gap: var(--shop225-row-gap) !important;
	clear: both !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

body.shop225-active ul.products::before,
body.shop225-active ul.products::after {
	display: none !important;
	content: none !important;
}

body.shop225-active ul.products li.product,
body.shop225-active .wc-block-grid__product,
body.shop225-active .wc-block-product {
	position: relative;
	display: flex !important;
	float: none !important;
	clear: none !important;
	flex-direction: column;
	box-sizing: border-box;
	width: auto !important;
	max-width: none !important;
	height: auto;
	margin: 0 !important;
	padding: var(--shop225-card-padding) !important;
	overflow: hidden;
	text-align: var(--shop225-content-align) !important;
	background: var(--shop225-card-bg) !important;
	border: var(--shop225-card-border-width) solid var(--shop225-card-border) !important;
	border-radius: var(--shop225-card-radius) !important;
	box-shadow: var(--shop225-card-shadow) !important;
}

body.shop225-active.shop225-equal-heights ul.products li.product,
body.shop225-active.shop225-equal-heights .wc-block-grid__product,
body.shop225-active.shop225-equal-heights .wc-block-product {
	height: 100%;
}

body.shop225-active ul.products li.product .desc,
body.shop225-active ul.products li.product .desc-wrapper,
body.shop225-active .wc-block-grid__product > div,
body.shop225-active .wc-block-product > div {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
}

body.shop225-active ul.products li.product .image_frame,
body.shop225-active ul.products li.product .mfn-woo-product-image,
body.shop225-active ul.products li.product .image_wrapper,
body.shop225-active ul.products li.product .product-loop-thumb {
	position: relative;
	box-sizing: border-box;
	width: 100% !important;
	aspect-ratio: var(--shop225-image-ratio);
	min-height: 0 !important;
	margin: 0 0 16px !important;
	padding: var(--shop225-image-padding) !important;
	overflow: hidden !important;
	background: var(--shop225-image-bg) !important;
	border-radius: var(--shop225-image-radius) !important;
}

/* BeTheme commonly nests image_wrapper inside image_frame. Only the outer frame should set the ratio. */
body.shop225-active ul.products li.product .image_frame > .image_wrapper,
body.shop225-active ul.products li.product .mfn-woo-product-image > .image_wrapper,
body.shop225-active ul.products li.product .product-loop-thumb > .image_wrapper {
	width: 100% !important;
	height: 100% !important;
	aspect-ratio: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border-radius: inherit !important;
}

body.shop225-active ul.products li.product .image_frame a,
body.shop225-active ul.products li.product .mfn-woo-product-image a,
body.shop225-active ul.products li.product .image_wrapper a,
body.shop225-active ul.products li.product .product-loop-thumb a {
	display: flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100% !important;
	height: 100% !important;
}

body.shop225-active ul.products li.product img.wp-post-image,
body.shop225-active ul.products li.product img.attachment-woocommerce_thumbnail,
body.shop225-active .wc-block-grid__product-image img,
body.shop225-active .wc-block-components-product-image img {
	display: block;
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100% !important;
	height: auto;
	aspect-ratio: var(--shop225-image-ratio);
	margin: 0 0 16px !important;
	padding: var(--shop225-image-padding);
	object-fit: var(--shop225-image-fit) !important;
	object-position: center center !important;
	background: var(--shop225-image-bg);
	border-radius: var(--shop225-image-radius);
	transform: none !important;
	transition: transform 220ms ease;
}

body.shop225-active ul.products li.product .image_frame img,
body.shop225-active ul.products li.product .mfn-woo-product-image img,
body.shop225-active ul.products li.product .image_wrapper img,
body.shop225-active ul.products li.product .product-loop-thumb img {
	width: 100% !important;
	height: 100% !important;
	max-height: 100% !important;
	aspect-ratio: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	object-fit: var(--shop225-image-fit) !important;
	object-position: center center !important;
	background: transparent !important;
	border-radius: inherit !important;
	transform: none !important;
}

body.shop225-active.shop225-image-zoom ul.products li.product:hover img.wp-post-image,
body.shop225-active.shop225-image-zoom ul.products li.product:hover img.attachment-woocommerce_thumbnail,
body.shop225-active.shop225-image-zoom .wc-block-grid__product:hover img,
body.shop225-active.shop225-image-zoom .wc-block-product:hover img {
	transform: scale(1.035) !important;
}

body.shop225-active ul.products li.product .woocommerce-loop-product__title,
body.shop225-active ul.products li.product .desc h4,
body.shop225-active ul.products li.product .desc h4 a,
body.shop225-active .wc-block-grid__product-title,
body.shop225-active .wc-block-components-product-name {
	display: -webkit-box;
	overflow: hidden;
	font-size: var(--shop225-title-size) !important;
	line-height: 1.3;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--shop225-title-lines);
}

body.shop225-active .shop225-product-category {
	margin: 2px 0 8px;
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.65;
}

body.shop225-active ul.products li.product .star-rating,
body.shop225-active ul.products li.product .price {
	margin-right: 0;
	margin-left: 0;
}

body.shop225-active ul.products li.product .button,
body.shop225-active ul.products li.product .add_to_cart_button {
	margin-top: auto !important;
}

/* Consolidated membership discount banner. It remains hidden until a matching
   per-product message is found by the front-end script. */
.shop225-discount-banner,
body.shop225-active .shop225-discount-banner {
	position: relative !important;
	float: none !important;
	clear: both !important;
	box-sizing: border-box !important;
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 0 20px !important;
	padding: var(--shop225-discount-banner-padding) !important;
	color: var(--shop225-discount-banner-text) !important;
	font-size: var(--shop225-discount-banner-font-size) !important;
	font-weight: 600;
	line-height: 1.45;
	text-align: var(--shop225-discount-banner-align) !important;
	background: var(--shop225-discount-banner-bg) !important;
	border: 1px solid var(--shop225-discount-banner-border) !important;
	border-radius: var(--shop225-discount-banner-radius) !important;
	box-shadow: none !important;
}

.shop225-discount-banner[hidden],
body.shop225-active .shop225-discount-banner[hidden] {
	display: none !important;
}

.shop225-discount-banner.is-visible,
body.shop225-active .shop225-discount-banner.is-visible {
	display: block !important;
}

.shop225-discount-banner-text,
body.shop225-active .shop225-discount-banner-text {
	color: inherit !important;
	font: inherit !important;
}

/* Category navigation common reset. This prevents theme navigation styles creating extra height. */
.shop225-category-nav,
body.shop225-active .shop225-category-nav {
	position: relative !important;
	float: none !important;
	clear: both !important;
	box-sizing: border-box !important;
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	margin: 0 0 28px !important;
	padding: 0 !important;
	overflow: visible;
}

.shop225-category-nav::before,
.shop225-category-nav::after {
	display: none !important;
	content: none !important;
}

/* Compact category menu. */
.shop225-category-menu,
body.shop225-active .shop225-category-menu {
	display: flex !important;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--shop225-category-gap);
	padding-bottom: 16px !important;
	border-bottom: 1px solid var(--shop225-category-menu-border);
}

.shop225-category-menu-link,
body.shop225-active .shop225-category-menu-link {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 7px;
	box-sizing: border-box;
	min-height: 40px;
	padding: 9px 15px !important;
	color: var(--shop225-category-menu-text) !important;
	font-size: var(--shop225-category-menu-font-size, 15px) !important;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	text-decoration: none !important;
	background: var(--shop225-category-menu-bg) !important;
	border: 1px solid var(--shop225-category-menu-border) !important;
	border-radius: var(--shop225-category-radius) !important;
	box-shadow: none !important;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.shop225-category-menu-link:hover,
.shop225-category-menu-link:focus-visible,
.shop225-category-menu-link.is-active,
body.shop225-active .shop225-category-menu-link:hover,
body.shop225-active .shop225-category-menu-link:focus-visible,
body.shop225-active .shop225-category-menu-link.is-active {
	color: var(--shop225-category-menu-active-text) !important;
	background: var(--shop225-category-menu-active-bg) !important;
	border-color: var(--shop225-category-menu-active-bg) !important;
}

.shop225-category-menu-link small {
	font-size: 0.78em !important;
	opacity: 0.72;
}

/* Optional visual category tiles. */
.shop225-category-grid,
body.shop225-active .shop225-category-grid {
	display: grid !important;
	grid-template-columns: repeat(var(--shop225-category-columns-desktop), minmax(0, 1fr));
	gap: var(--shop225-category-gap);
}

.shop225-category-card,
body.shop225-active .shop225-category-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	background: #fff;
	border: 1px solid rgba(15, 23, 42, 0.10);
	border-radius: var(--shop225-category-radius);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.shop225-category-card:hover,
body.shop225-active .shop225-category-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10);
}

.shop225-category-image,
body.shop225-active .shop225-category-image {
	display: block;
	width: 100%;
	aspect-ratio: var(--shop225-category-ratio);
	overflow: hidden;
	background: #f3f4f6;
}

.shop225-category-image img,
body.shop225-active .shop225-category-image img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	transition: transform 220ms ease;
}

.shop225-category-card:hover .shop225-category-image img,
body.shop225-active .shop225-category-card:hover .shop225-category-image img {
	transform: scale(1.035);
}

.shop225-category-content,
body.shop225-active .shop225-category-content {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
}

.shop225-category-content strong,
body.shop225-active .shop225-category-content strong {
	font-size: 1rem;
	line-height: 1.3;
}

.shop225-category-content small,
body.shop225-active .shop225-category-content small {
	white-space: nowrap;
	opacity: 0.65;
}

body.shop225-active .woocommerce-result-count {
	clear: both;
}

@media (max-width: 959px) {
	body.shop225-active ul.products,
	body.shop225-active .wc-block-grid__products,
	body.shop225-active .wc-block-product-template {
		grid-template-columns: repeat(var(--shop225-columns-tablet), minmax(0, 1fr)) !important;
	}

	.shop225-category-grid,
	body.shop225-active .shop225-category-grid {
		grid-template-columns: repeat(var(--shop225-category-columns-tablet), minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	body.shop225-active ul.products,
	body.shop225-active .wc-block-grid__products,
	body.shop225-active .wc-block-product-template {
		grid-template-columns: repeat(var(--shop225-columns-mobile), minmax(0, 1fr)) !important;
	}

	.shop225-category-grid,
	body.shop225-active .shop225-category-grid {
		grid-template-columns: repeat(var(--shop225-category-columns-mobile), minmax(0, 1fr));
	}

	.shop225-category-menu,
	body.shop225-active .shop225-category-menu {
		flex-wrap: nowrap;
		overflow-x: auto !important;
		overflow-y: hidden !important;
		padding-bottom: 12px !important;
		scrollbar-width: thin;
		-webkit-overflow-scrolling: touch;
	}

	.shop225-category-menu-link,
	body.shop225-active .shop225-category-menu-link {
		flex: 0 0 auto;
	}
}


/* Full-width deals and announcements ticker placed beneath the main header. */
.shop225-deal-ticker[hidden] {
	display: none !important;
}

.shop225-deal-ticker {
	position: relative;
	z-index: 35;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	color: var(--shop225-ticker-text);
	font-size: var(--shop225-ticker-font-size);
	font-weight: var(--shop225-ticker-weight);
	line-height: 1.35;
	background: var(--shop225-ticker-bg);
	border-top: 1px solid var(--shop225-ticker-border);
	border-bottom: 1px solid var(--shop225-ticker-border);
	opacity: 0;
	transition: opacity 120ms ease;
}

.shop225-deal-ticker.is-ready {
	opacity: 1;
}

.shop225-deal-ticker-viewport {
	width: 100%;
	overflow: hidden;
}

.shop225-deal-ticker-track {
	display: flex;
	align-items: stretch;
	width: max-content;
	will-change: transform;
}

.shop225-deal-ticker.is-scrolling .shop225-deal-ticker-track {
	animation: shop225-deal-ticker-scroll var(--shop225-ticker-duration) linear infinite;
}

.shop225-deal-ticker-group {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	box-sizing: border-box;
	min-width: 100vw;
	padding: var(--shop225-ticker-padding) 28px;
	white-space: nowrap;
}

.shop225-deal-ticker-item {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	color: var(--shop225-ticker-text) !important;
	font: inherit !important;
	line-height: inherit !important;
	text-decoration: none !important;
}

.shop225-deal-ticker a.shop225-deal-ticker-item {
	color: var(--shop225-ticker-link) !important;
	text-underline-offset: 3px;
}

.shop225-deal-ticker a.shop225-deal-ticker-item:hover,
.shop225-deal-ticker a.shop225-deal-ticker-item:focus-visible {
	color: var(--shop225-ticker-link) !important;
	text-decoration: underline !important;
}

.shop225-deal-ticker-separator {
	display: inline-flex;
	flex: 0 0 auto;
	margin: 0 28px;
	color: var(--shop225-ticker-separator) !important;
	font: inherit;
	opacity: 0.9;
}

body.shop225-ticker-pause-hover .shop225-deal-ticker:hover .shop225-deal-ticker-track,
body.shop225-ticker-pause-hover .shop225-deal-ticker:focus-within .shop225-deal-ticker-track {
	animation-play-state: paused;
}

.shop225-deal-ticker.is-static .shop225-deal-ticker-track {
	display: block;
	width: 100%;
	animation: none;
}

.shop225-deal-ticker.is-static .shop225-deal-ticker-group {
	flex-wrap: wrap;
	width: 100%;
	min-width: 0;
	white-space: normal;
}

@keyframes shop225-deal-ticker-scroll {
	from {
		transform: translate3d(0, 0, 0);
	}
	to {
		transform: translate3d(-25%, 0, 0);
	}
}

@media (max-width: 767px) {
	.shop225-deal-ticker-group {
		justify-content: flex-start;
		padding-right: 20px;
		padding-left: 20px;
	}

	.shop225-deal-ticker-separator {
		margin-right: 20px;
		margin-left: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.shop225-deal-ticker.is-scrolling .shop225-deal-ticker-track {
		display: block;
		width: 100%;
		animation: none;
	}

	.shop225-deal-ticker.is-scrolling .shop225-deal-ticker-group {
		flex-wrap: wrap;
		width: 100%;
		min-width: 0;
		white-space: normal;
	}

	.shop225-deal-ticker.is-scrolling .shop225-deal-ticker-group[aria-hidden="true"] {
		display: none;
	}
}
