/* Stable catalogue grid. Equal cards prevent masonry gaps and row stretching. */
.woocommerce ul.products.columns-3 {
	align-items: start;
	column-gap: 18px;
	grid-auto-flow: row;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	row-gap: 58px;
}

.woocommerce ul.products li.product:first-child {
	grid-column: auto;
	grid-row: auto;
}

.woocommerce ul.products li.product:first-child a img,
.woocommerce ul.products li.product a img {
	aspect-ratio: 1 / 1.12;
}

.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link {
	display: flex;
	flex-direction: column;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	height: auto;
	min-height: 2.2em;
}

.woocommerce ul.products li.product .gkgod-product-quote {
	margin-top: 18px;
}

.gkgod-product-quote__mobile {
	display: none;
}

.gkgod-card-media {
	background: var(--stone);
	margin-bottom: 20px;
	overflow: hidden;
	position: relative;
	touch-action: pan-y;
}

.gkgod-card-media__slide {
	display: none;
}

.gkgod-card-media__slide.is-active {
	display: block;
}

.woocommerce ul.products li.product .gkgod-card-media__image {
	aspect-ratio: 1 / 1.12;
	display: block;
	margin: 0;
	object-fit: cover;
	width: 100%;
}

.gkgod-card-media__dots {
	align-items: center;
	backdrop-filter: blur(12px);
	background: rgba(255,255,255,.48);
	border: 1px solid rgba(255,255,255,.55);
	border-radius: 999px;
	display: flex;
	left: 50%;
	padding: 2px 4px;
	position: absolute;
	top: 10px;
	transform: translateX(-50%);
	touch-action: none;
	user-select: none;
	z-index: 3;
}

.gkgod-card-media__dots button {
	align-items: center;
	appearance: none;
	background: transparent;
	border: 0;
	display: flex;
	height: 18px;
	justify-content: center;
	margin: 0;
	padding: 0;
	width: 18px;
}

.gkgod-card-media__dots button::before {
	background: rgba(0,0,0,.32);
	border-radius: 50%;
	content: "";
	height: 4px;
	transition: background-color .18s ease, transform .18s ease;
	width: 4px;
}

.gkgod-card-media__dots button[aria-current="true"]::before {
	background: #111;
	transform: scale(1.45);
}

/* Homepage product gallery uses the same compact dot interaction as the catalogue. */
.gkgod-home-product {
	position: relative;
}

.gkgod-home-product__media {
	margin: 0;
}

.gkgod-home-product__image .gkgod-card-media__image {
	aspect-ratio: 4 / 5;
	display: block;
	margin: 0;
	object-fit: cover;
	transition: transform .45s ease;
	width: 100%;
}

.gkgod-home-product:hover .gkgod-card-media__image {
	transform: scale(1.02);
}

.gkgod-products-home .gkgod-home-product-grid {
	gap: 38px 18px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gkgod-products-home .gkgod-home-product__image .gkgod-card-media__image {
	aspect-ratio: 1 / 1.12;
}

.gkgod-products-home .gkgod-home-product__body {
	padding-top: 14px;
}

.gkgod-products-home .gkgod-home-product h3 {
	font-size: clamp(1.2rem, 1.45vw, 1.55rem);
}

@media (max-width: 980px) {
	.gkgod-products-home .gkgod-home-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.gkgod-products-home .gkgod-home-product-grid {
		gap: 34px 10px;
	}

	.gkgod-products-home .gkgod-home-product__body > div {
		align-items: flex-start;
		flex-direction: column;
		gap: 9px;
	}
}

@media (max-width: 1100px) {
	.woocommerce ul.products.columns-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 780px) {
	.woocommerce ul.products.columns-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	.gkgod-catalogue-header {
		padding-bottom: 30px;
	}

	.gkgod-catalogue-header__main {
		gap: 25px !important;
		padding-top: 30px;
	}

	.gkgod-catalogue-header h1 {
		font-size: 2.85rem;
		max-width: 330px;
	}

	.gkgod-catalogue-header__copy {
		padding-top: 18px;
	}

	.gkgod-catalogue-header__copy p {
		font-size: .8rem;
		line-height: 1.5;
	}

	.gkgod-catalogue-header__copy a {
		margin-top: 18px;
	}

	.woocommerce .gkgod-catalogue-header + .woocommerce-breadcrumb {
		display: none;
	}

	.gkgod-category-nav {
		margin-top: 0;
	}

	.woocommerce ul.products.columns-3 {
		column-gap: 10px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 38px;
	}

	.woocommerce ul.products li.product .woocommerce-loop-product__title {
		font-size: 1.05rem;
		min-height: 2.2em;
	}

	.woocommerce ul.products li.product .gkgod-product-quote {
		font-size: .58rem;
		letter-spacing: .08em;
		margin-top: 12px;
	}

	.gkgod-product-quote__desktop {
		display: none;
	}

	.gkgod-product-quote__mobile {
		display: inline;
	}

	.gkgod-card-category {
		font-size: .56rem;
		gap: 7px;
	}

	.gkgod-card-category::before {
		width: 18px;
	}

	.gkgod-card-material {
		font-size: .62rem;
		line-height: 1.35;
	}
}
