/* Attribute Swatches for WooCommerce - product cards ([wcas_product_cards]) */

/* ---------- Grid ---------- */

.wcas-product-grid {
	--wcas-cols: 4;
	--wcas-card-gap: clamp(16px, 2vw, 28px);

	display: grid !important;
	grid-template-columns: repeat(var(--wcas-cols), minmax(0, 1fr)) !important;
	gap: var(--wcas-card-gap) !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
	box-sizing: border-box !important;
	align-items: stretch !important;
}

/* Only product cards take a grid cell. Anything else that lands in the list (empty paragraphs,
   line breaks, stray list items from the page builder) would leave a blank cell. */
.wcas-product-grid > :not(.wcas-shop-product-card),
.wcas-product-grid > li:empty {
	display: none !important;
}

/* Declared after the base rule so the column classes win */
.wcas-columns-1 { --wcas-cols: 1; }
.wcas-columns-2 { --wcas-cols: 2; }
.wcas-columns-3 { --wcas-cols: 3; }
.wcas-columns-4 { --wcas-cols: 4; }
.wcas-columns-5 { --wcas-cols: 5; }

.wcas-product-grid > li,
.wcas-product-grid.products > li {
	float: none !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
}

.wcas-product-grid.products {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.wcas-product-grid-loading .wcas-shop-card-figure.is-loading::before {
	opacity: 1;
}

.wcas-empty-state {
	padding: 18px 20px;
	border-radius: 14px;
	background: #f4f8fb;
	color: #0A3D5A;
}

/* WooCommerce's clearfix on ul.products (::before / ::after) becomes an invisible grid item,
   which takes the first cell and pushes the first product into the second column.
   Remove those pseudo-elements from the grid entirely. */
.wcas-product-grid::before,
.wcas-product-grid::after,
ul.wcas-product-grid.products::before,
ul.wcas-product-grid.products::after,
.woocommerce ul.wcas-product-grid.products::before,
.woocommerce ul.wcas-product-grid.products::after {
	content: none !important;
	display: none !important;
	position: absolute !important;
	width: 0 !important;
	height: 0 !important;
	clear: none !important;
}

.wcas-product-grid,
ul.wcas-product-grid.products {
	clear: none !important;
}

/* ---------- Home slider and related layouts ---------- */

.wcas-product-slider {
	--wcas-slider-gap: clamp(14px, 1.5vw, 20px);

	position: relative;
	padding: 4px 0 0;
}

.wcas-product-slider__header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 20px;
	margin: 0 0 20px;
}

.wcas-product-slider__title {
	margin: 0;
	font-size: clamp(1.75rem, 2.4vw, 2.5rem);
	line-height: 1.08;
	letter-spacing: -0.04em;
	color: #141b22;
}

.wcas-product-slider__subtitle {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.5;
	max-width: 48ch;
	text-align: right;
	color: rgba(20, 27, 34, 0.68);
}

.wcas-product-slider__track {
	display: flex;
	gap: var(--wcas-slider-gap);
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
	scroll-snap-type: x proximity;
	scroll-padding-inline: 2px;
	padding: 4px 2px 12px;
}

.wcas-product-slider__track::-webkit-scrollbar {
	display: none;
}

.wcas-product-slider__track > .wcas-shop-product-card {
	flex: 0 0 calc((100% - (5 * var(--wcas-slider-gap))) / 6);
	max-width: calc((100% - (5 * var(--wcas-slider-gap))) / 6);
	scroll-snap-align: start;
}

.wcas-product-slider .wcas-shop-product-card--slider {
	padding: 10px !important;
	background: #ffffff !important;
	border-color: #e2e8ec !important;
	border-radius: 18px !important;
}

.wcas-product-slider .wcas-shop-product-card--slider .wcas-shop-card-figure {
	border-radius: 12px;
	border: 1px solid #edf1f3;
}

.wcas-product-slider .wcas-shop-card-body {
	padding: 14px 4px 4px !important;
}

.wcas-product-slider .wcas-shop-card-meta {
	display: inline-flex;
	align-self: flex-start;
	padding: 4px 0;
	border-radius: 0;
	background: transparent;
	color: #0A3D5A;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.wcas-product-slider .wcas-shop-card-title {
	font-size: 1rem !important;
	line-height: 1.35 !important;
	min-height: 2.7em !important;
}

.wcas-product-slider .wcas-shop-card-actions {
	margin-top: 8px;
	gap: 10px;
}

.wcas-product-slider .wcas-shop-card-quote {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 4;
	flex: 0 0 auto;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.wcas-product-slider .wcas-shop-product-card:hover .wcas-shop-card-quote,
.wcas-product-slider .wcas-shop-card-quote:focus-within {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* Card swatches remain accessible without a "+N more" control. */
.wcas-shop-product-swatches {
	min-width: 0;
	overflow: hidden;
}

.wcas-shop-product-swatches .wcas-list {
	flex-wrap: nowrap;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding: 4px 2px 8px;
	scroll-snap-type: x proximity;
}

.wcas-shop-product-swatches .wcas-list::-webkit-scrollbar {
	display: none;
}

.wcas-shop-product-swatches .wcas-item {
	flex: 0 0 auto;
	scroll-snap-align: center;
}

.wcas-product-slider .wcas-shop-card-cart {
	background: #0A3D5A;
	border-color: #0A3D5A;
	color: #ffffff !important;
	border-radius: 10px;
	height: 44px;
	font-weight: 700;
	flex: 1 1 auto;
}

.wcas-product-slider .wcas-shop-card-cart:hover,
.wcas-product-slider .wcas-shop-card-cart:focus-visible {
	background: #0A3D5A;
	color: #ffffff !important;
}

.wcas-product-slider__controls {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 10px;
}

.wcas-product-slider__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid #d9e3e8;
	border-radius: 10px;
	background: #fff;
	color: #0A3D5A;
	cursor: pointer;
	transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.wcas-product-slider__nav:hover,
.wcas-product-slider__nav:focus-visible {
	transform: translateY(-1px);
	background: #0A3D5A;
	border-color: #0A3D5A;
	color: #ffffff;
	outline: none;
}

.wcas-product-slider__nav svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
}

.wcas-related-products {
	margin-top: 44px;
}

.wcas-related-products__heading {
	margin-bottom: 18px;
}

.wcas-related-products__heading h2 {
	margin: 0;
	font-size: clamp(1.5rem, 2vw, 2.1rem);
	line-height: 1.2;
	letter-spacing: -0.04em;
	color: #141b22;
}

/* ---------- Card ---------- */

.wcas-shop-product-card {
	position: relative;
	display: flex !important;
	flex-direction: column;
	min-width: 0;
	box-sizing: border-box;
	margin: 0 !important;
	padding: 10px !important;
	list-style: none !important;
	background: #ffffff !important;
	border: 1px solid #e2e8ec !important;
	border-radius: 18px !important;
	box-shadow: 0 1px 2px rgba(10, 61, 90, 0.02);
	transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

@media (hover: hover) {
	.wcas-shop-product-card:hover {
		transform: translateY(-3px);
		border-color: rgba(10, 61, 90, 0.24) !important;
		box-shadow: 0 18px 36px -28px rgba(10, 61, 90, 0.5);
	}
}

/* ---------- Figure (image area) ---------- */

.wcas-shop-card-figure {
	position: relative;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: 12px;
	background: #f4f6f7;
	isolation: isolate;
}

.wcas-shop-card-figure.is-empty {
	background: linear-gradient(160deg, #f5f8fb, #e9f0f5);
}

.wcas-shop-card-figure.is-loading::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgba(148, 163, 184, 0.08) 25%, rgba(148, 163, 184, 0.18) 50%, rgba(148, 163, 184, 0.08) 75%);
	background-size: 200% 100%;
	animation: wcas-shimmer 1.3s linear infinite;
}

@keyframes wcas-shimmer {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

.wcas-shop-card-link {
	position: absolute;
	inset: 0;
	display: block;
	z-index: 0;
	text-decoration: none !important;
}

.wcas-shop-card-image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	object-fit: cover !important;
	background: #f2f6f9 !important;
	transition: opacity 0.25s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wcas-shop-card-figure.is-loading .wcas-shop-card-image {
	opacity: 0.15;
}

/* Gallery swap: slide and crossfade between the two layers (driven by swatches.js) */
.wcas-shop-card-figure.is-animating .wcas-shop-card-image {
	transition: transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.42s ease;
}

.wcas-shop-card-figure.is-animating .wcas-shop-card-link {
	pointer-events: none;
}

.wcas-shop-card-image.secondary {
	opacity: 0;
	pointer-events: none;
}

@media (hover: hover) {
	.wcas-shop-product-card:hover .wcas-shop-card-image.primary {
		transform: scale(1.02);
	}
}

.wcas-shop-card-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(10, 61, 90, 0.3);
}

.wcas-shop-card-placeholder svg {
	width: 56%;
	height: 56%;
}

/* Arrows: appear on hover, always there (softer) on touch */
.wcas-shop-card-nav {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin-top: -19px;
	padding: 0;
	border: 1px solid rgba(10, 61, 90, 0.2);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	color: #0A3D5A;
	cursor: pointer;
	opacity: 0;
	transform: scale(0.9);
	transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.wcas-shop-card-prev { left: 10px; }
.wcas-shop-card-next { right: 10px; }

.wcas-shop-card-nav svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
}

.wcas-shop-card-nav:hover,
.wcas-shop-card-nav:focus-visible {
	background: #0A3D5A;
	color: #ffffff;
	outline: none;
}

@media (hover: hover) {
	.wcas-shop-product-card:hover .wcas-shop-card-nav,
	.wcas-shop-card-figure.is-gallery-active .wcas-shop-card-nav,
	.wcas-shop-card-nav:focus-visible {
		opacity: 1;
		transform: scale(1);
	}
}

@media (hover: none) {
	.wcas-shop-card-nav {
		opacity: 0.92;
		transform: scale(0.9);
	}
}

/* Dots: how far through the gallery the card is */
.wcas-shop-card-dots {
	position: absolute;
	left: 50%;
	bottom: 10px;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 5px 7px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.78);
	transform: translateX(-50%);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.wcas-shop-card-dots i {
	display: block;
	width: 5px;
	height: 5px;
	border-radius: 999px;
	background: rgba(10, 61, 90, 0.35);
	transition: width 0.25s ease, background-color 0.25s ease;
}

.wcas-shop-card-dots i.is-active {
	width: 14px;
	background: #0A3D5A;
}

/* ---------- Body ---------- */

.wcas-shop-card-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 9px;
	min-width: 0;
	padding: 14px 4px 4px;
}

.wcas-shop-card-title {
	margin: 0 !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.8em;
	font-size: 16px !important;
	line-height: 1.4 !important;
	font-weight: 600 !important;
	letter-spacing: -0.015em;
	color: #17212b !important;
}

.wcas-shop-card-title a {
	color: inherit !important;
	text-decoration: none !important;
	transition: color 0.2s ease;
}

.wcas-shop-card-title a:hover {
	color: #0A3D5A !important;
}

.wcas-shop-price {
	display: block;
	min-height: 1.4em;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: #0A3D5A;
}

/* Swatches: always the brand colour for the active ring, whatever the settings say */
.wcas-shop-product-swatches {
	box-sizing: border-box;
	min-width: 0;
	min-height: 38px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 4px;
	scrollbar-width: none;
	-ms-overflow-style: none;
	overscroll-behavior-x: contain;
}

.wcas-shop-product-swatches .wcas-swatches {
	flex-direction: row;
	flex-wrap: nowrap;
	width: max-content;
	min-width: 100%;
	gap: 8px;
	--wcas-accent: #0A3D5A !important;
}

.wcas-shop-product-swatches .wcas-group {
	flex: 0 0 auto;
	min-width: 0;
}

/* Keep every option on one swipeable rail instead of letting a card grow a second row. */
.wcas-shop-product-swatches .wcas-list {
	flex-wrap: nowrap !important;
	max-width: none;
	overflow: visible;
	padding: 0;
}

.wcas-shop-product-swatches::-webkit-scrollbar {
	display: none;
}

.wcas-shop-product-swatches .wcas-group + .wcas-group {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.wcas-shop-product-swatches .wcas-title,
.wcas-shop-product-swatches .wcas-count {
	display: none !important;
}

.wcas-shop-product-swatches .wcas-item {
	flex: 0 0 auto;
	margin: 0 !important;
}

.wcas-shop-product-swatches .wcas-circle {
	gap: 0;
}

.wcas-shop-product-swatches .wcas-dot {
	box-shadow: inset 0 0 0 1px rgba(15, 42, 58, 0.14), 0 0 0 1px rgba(15, 42, 58, 0.04);
}

/* A selected colour on the card */
.wcas-shop-product-swatches .wcas-clickable.is-active .wcas-dot {
	box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #0A3D5A;
}

.wcas-shop-product-swatches .wcas-clickable.wcas-pill.is-active {
	background: #0A3D5A;
	border-color: #0A3D5A;
}

/* A shopper pressed Add to cart before picking a colour */
.wcas-needs-choice .wcas-shop-product-swatches {
	animation: wcas-nudge 0.45s ease;
}

@keyframes wcas-nudge {
	0%, 100% { transform: translateX(0); }
	20% { transform: translateX(-5px); }
	40% { transform: translateX(5px); }
	60% { transform: translateX(-3px); }
	80% { transform: translateX(2px); }
}

/* ---------- Actions: Add to cart sits below the swatches ---------- */

.wcas-shop-card-actions {
	display: flex;
	align-items: stretch;
	gap: 10px;
	margin-top: auto;
	padding-top: 2px;
}

.wcas-shop-card-cart {
	display: inline-flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 0;
	height: 44px;
	padding: 0 14px;
	border: 1px solid #0A3D5A;
	border-radius: 10px;
	background: #0A3D5A;
	color: #ffffff !important;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1;
	text-decoration: none !important;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.wcas-shop-card-cart svg {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.wcas-shop-card-cart__label {
	overflow: hidden;
	text-overflow: ellipsis;
}

.wcas-shop-card-cart:hover {
	background: #072f45;
	border-color: #072f45;
	color: #ffffff !important;
	transform: translateY(-1px);
	box-shadow: 0 10px 18px -14px rgba(10, 61, 90, 0.65);
}

.wcas-shop-card-cart:active {
	transform: translateY(0) scale(0.98);
}

.wcas-shop-card-cart:focus-visible {
	outline: 3px solid rgba(10, 61, 90, 0.3);
	outline-offset: 2px;
}

.wcas-shop-card-cart.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

.wcas-shop-card-cart.is-added {
	background: #0A3D5A;
	border-color: #0A3D5A;
	color: #ffffff !important;
}

/* Select options / view product: same circle, lighter weight */
.wcas-shop-card-cart.is-link {
	border-style: dashed;
}

/* Out of stock: visible but not clickable */
.wcas-shop-card-cart.is-soldout {
	border-color: #c5d3dc;
	background: #f4f7f9;
	color: #7a8f9c !important;
	cursor: not-allowed;
	pointer-events: none;
	box-shadow: none;
}

/* Quote: a round secondary button next to Add to cart */
.wcas-shop-card-quote {
	display: flex;
	flex: 0 0 44px;
}

.wcas-shop-card-quote .wcas-quote-wrap {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
}

.wcas-shop-card-quote .wcas-quote-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid #d4e0e6;
	border-radius: 10px;
	background: #ffffff;
	color: #0A3D5A;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.wcas-shop-card-quote .wcas-quote-btn svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
}

.wcas-shop-card-quote .wcas-quote-btn:hover,
.wcas-shop-card-quote .wcas-quote-btn:focus-visible {
	background: #0A3D5A;
	border-color: #0A3D5A;
	color: #ffffff;
}

.wcas-shop-card-quote .wcas-quote-btn__text {
	display: none !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
	.wcas-columns-4,
	.wcas-columns-5 {
		--wcas-cols: 3;
	}
}

@media (max-width: 1200px) {
	.wcas-product-slider__track > .wcas-shop-product-card {
		flex-basis: calc((100% - (3 * var(--wcas-slider-gap))) / 4);
		max-width: calc((100% - (3 * var(--wcas-slider-gap))) / 4);
	}
}

@media (max-width: 900px) {
	.wcas-product-slider__track > .wcas-shop-product-card {
		flex-basis: calc((100% - var(--wcas-slider-gap)) / 2.2);
		max-width: calc((100% - var(--wcas-slider-gap)) / 2.2);
	}
}

@media (max-width: 760px) {
	.wcas-product-slider__header {
		align-items: flex-start;
		flex-direction: column;
		gap: 6px;
		margin-bottom: 16px;
	}

	.wcas-product-slider__subtitle {
		text-align: left;
	}

	.wcas-product-slider__track {
		--wcas-slider-gap: 14px;
	}

	.wcas-product-slider__track > .wcas-shop-product-card {
		flex-basis: calc((100% - var(--wcas-slider-gap)) / 1.18);
		max-width: calc((100% - var(--wcas-slider-gap)) / 1.18);
	}

	.wcas-product-grid:not(.wcas-columns-1) {
		--wcas-cols: 2;
	}

	.wcas-shop-product-card {
		padding: 8px !important;
		border-radius: 16px !important;
	}

	.wcas-shop-card-figure {
		border-radius: 12px;
	}

	.wcas-shop-card-body {
		gap: 8px;
		padding: 10px 4px 4px;
	}

	.wcas-shop-card-title {
		font-size: 14px !important;
		min-height: 2.8em;
	}

	.wcas-shop-card-cart {
		height: 40px;
		padding: 0 10px;
		font-size: 13px;
	}

	.wcas-shop-card-quote {
		flex-basis: 40px;
	}

	.wcas-shop-card-quote .wcas-quote-btn {
		width: 40px;
		height: 40px;
	}

	.wcas-shop-card-nav {
		width: 30px;
		height: 30px;
		margin-top: -15px;
	}

	.wcas-shop-card-prev { left: 6px; }
	.wcas-shop-card-next { right: 6px; }
}

@media (max-width: 480px) {
	.wcas-shop-card-cart svg {
		display: none;
	}
}

@media (max-width: 359px) {
	.wcas-product-grid {
		--wcas-cols: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wcas-shop-product-card,
	.wcas-shop-card-image,
	.wcas-shop-card-cart,
	.wcas-shop-card-nav,
	.wcas-shop-card-dots i,
	.wcas-shop-product-card .wcas-shop-card-figure::before {
		transition: none !important;
		animation: none !important;
	}
}

/* ---------- Filter sidebar: "Show more" button (layout.js) ---------- */

.wcas-filter-more {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 44px;
	margin-top: 12px;
	padding: 0 14px;
	border: 1px solid #e3e6ea;
	border-radius: 12px;
	background: #f4f5f7;
	color: #111827;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.wcas-filter-more:hover {
	background: #eceef2;
	border-color: #d6dae0;
}

.wcas-filter-more:focus-visible {
	outline: 2px solid #0A3D5A;
	outline-offset: 2px;
}

/* ---------- Infinite scroll ---------- */

.wcas-infinite {
	width: 100%;
}

/* New cards rise and fade in one after another. The class is removed when the animation ends,
   so the card's normal hover transform is untouched afterwards. */
.wcas-product-grid > .wcas-card-enter {
	animation: wcas-card-in 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
	animation-delay: calc(var(--wcas-i, 0) * 55ms);
}

@keyframes wcas-card-in {
	from {
		opacity: 0;
		transform: translateY(22px) scale(0.975);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* Placeholder cards shown while the next page loads. The grid hides anything that is not a
   product card, so these opt back in with a more specific selector. */
.wcas-product-grid > li.wcas-skel-card {
	display: block !important;
	padding: 8px;
	border-radius: 18px;
	background: #fff;
	border: 1px solid rgba(10, 61, 90, 0.08);
	animation: wcas-skel-in 0.35s ease both;
	animation-delay: calc(var(--wcas-i, 0) * 40ms);
}

@keyframes wcas-skel-in {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: none; }
}

.wcas-skel-figure,
.wcas-skel-line {
	position: relative;
	overflow: hidden;
	background: #eef3f7;
	border-radius: 12px;
}

.wcas-skel-figure {
	aspect-ratio: 4 / 5;
}

.wcas-skel-line {
	height: 12px;
	margin: 14px 6px 0;
	border-radius: 999px;
}

.wcas-skel-line.is-short {
	width: 55%;
	margin-bottom: 8px;
}

.wcas-skel-figure::after,
.wcas-skel-line::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.75) 50%, transparent 80%);
	transform: translateX(-100%);
	animation: wcas-skel-sweep 1.3s ease-in-out infinite;
}

@keyframes wcas-skel-sweep {
	to { transform: translateX(100%); }
}

/* Footer: progress, count, spinner */
.wcas-infinite-foot {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 34px 0 12px;
	text-align: center;
}

.wcas-infinite-progress {
	width: min(240px, 60%);
	height: 4px;
	border-radius: 999px;
	background: rgba(10, 61, 90, 0.1);
	overflow: hidden;
}

.wcas-infinite-progress span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #0A3D5A, #2c7da0);
	transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wcas-infinite-count {
	margin: 0 !important;
	font-size: 13px;
	line-height: 1.4;
	letter-spacing: 0.02em;
	color: #5b7283;
}

.wcas-infinite-loader {
	display: none;
	align-items: center;
	gap: 10px;
	padding: 10px 18px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid rgba(10, 61, 90, 0.12);
	box-shadow: 0 10px 24px -14px rgba(10, 61, 90, 0.4);
	font-size: 13px;
	font-weight: 600;
	color: #0A3D5A;
}

.wcas-infinite.is-loading .wcas-infinite-loader {
	display: inline-flex;
	animation: wcas-loader-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.wcas-infinite.is-loading .wcas-infinite-count {
	opacity: 0.55;
}

@keyframes wcas-loader-in {
	from { opacity: 0; transform: translateY(8px) scale(0.96); }
	to { opacity: 1; transform: none; }
}

.wcas-spinner {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	border-radius: 50%;
	border: 2px solid rgba(10, 61, 90, 0.18);
	border-top-color: #0A3D5A;
	animation: wcas-spin 0.7s linear infinite;
}

@keyframes wcas-spin {
	to { transform: rotate(360deg); }
}

/* Button: only for browsers without IntersectionObserver, or after a failed load */
.wcas-infinite-btn {
	display: none;
	padding: 12px 24px;
	border: 0;
	border-radius: 999px;
	background: #0A3D5A;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wcas-infinite-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 22px -12px rgba(10, 61, 90, 0.6);
}

.wcas-infinite-btn:focus-visible {
	outline: 2px solid #2c7da0;
	outline-offset: 3px;
}

.wcas-infinite.is-manual:not(.is-done):not(.is-loading) .wcas-infinite-btn,
.wcas-infinite.is-error .wcas-infinite-btn {
	display: inline-block;
}

.wcas-infinite.is-done .wcas-infinite-progress {
	opacity: 0.5;
}

.wcas-infinite-status {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.wcas-infinite-nojs {
	text-align: center;
	margin: 12px 0;
}

@media (prefers-reduced-motion: reduce) {
	.wcas-product-grid > .wcas-card-enter,
	.wcas-product-grid > li.wcas-skel-card,
	.wcas-infinite.is-loading .wcas-infinite-loader {
		animation: none !important;
	}
	.wcas-skel-figure::after,
	.wcas-skel-line::after {
		animation: none !important;
	}
	.wcas-spinner {
		animation-duration: 1.6s;
	}
	.wcas-infinite-progress span {
		transition: none;
	}
}
