/**
 * Premium product category / brand archive.
 *
 * @package Dekor_Afyon
 */

.product-archive {
	padding-block: clamp(1.75rem, 4vw, 3.25rem);
	overflow-x: clip;
}

/* Ürünler (Tüm Ürünler) page — toolbar without inner row */
.products-page .product-archive__toolbar:not(:has(.product-archive__toolbar-row)) {
	padding: 0.95rem 1rem;
	gap: 0.85rem;
}

.products-page .product-archive__toolbar:not(:has(.product-archive__toolbar-row)) .products-search {
	width: 100%;
	max-width: 100%;
	flex: 1 1 100%;
	min-width: 0;
}

.products-page .product-archive__toolbar:not(:has(.product-archive__toolbar-row)) {
	overflow-x: clip;
}

/* Category chips (flat layout on products page) */
.products-page .products-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 0.35rem;
	max-width: 100%;
	margin: 0 0 clamp(1rem, 2.5vw, 1.35rem);
	padding: 0;
	overflow-x: clip;
}

.products-page .products-filter__chip {
	flex: 0 1 auto;
	max-width: 100%;
}

/* Category lead / description */
.product-archive__lead {
	max-width: 720px;
	margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
	color: var(--color-muted);
	font-size: 1.02rem;
	line-height: 1.75;
}

/* Toolbar ------------------------------------------------------------- */
.product-archive__toolbar {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin-bottom: clamp(1.35rem, 2.8vw, 2rem);
	padding: 0;
	border: 1px solid rgba(52, 130, 197, 0.18);
	border-radius: 18px;
	background:
		linear-gradient(135deg, rgba(52, 130, 197, 0.07), rgba(255, 255, 255, 0.97) 45%),
		#F0F6FB;
	/* Must stay visible so the custom sort dropdown can overflow the toolbar */
	overflow: visible;
}

.product-archive__toolbar-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.85rem 1.15rem;
	padding: 0.95rem 1.15rem;
}

.product-archive__count {
	margin: 0;
	display: inline-flex;
	align-items: baseline;
	gap: 0.4rem;
	color: var(--color-muted);
	font-size: 0.92rem;
	letter-spacing: 0.01em;
}

.product-archive__count-num {
	font-family: var(--font-heading);
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--color-heading);
	letter-spacing: -0.02em;
}

.product-archive__tools {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.65rem;
	flex: 1 1 auto;
	min-width: 0;
}

/* Sort ---------------------------------------------------------------- */
.products-sort {
	position: relative;
	/* Above the category tabs row (z-index: 2) so the open menu isn't covered */
	z-index: 20;
	display: flex;
	align-items: center;
	min-width: min(100%, 220px);
	flex: 0 1 240px;
}

.products-sort__icon {
	position: absolute;
	left: 0.85rem;
	top: 50%;
	width: 1rem;
	height: 1rem;
	color: var(--color-bronze, #2A6BA3);
	transform: translateY(-50%);
	pointer-events: none;
	z-index: 1;
}

.products-sort__icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* Closed select — soft blue surface */
.products-sort__select {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	height: 44px;
	padding: 0 2.35rem 0 2.35rem;
	border: 1px solid #D4DCE4;
	border-radius: 999px;
	background-color: #F0F6FB;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233482C5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.9rem center;
	background-size: 0.95rem;
	color: #1B4F7A;
	color-scheme: light;
	font: inherit;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
	cursor: pointer;
	box-shadow: none;
	transition: background-color 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, color 0.28s ease;
}

/* Hover: depth over color — border firms up, a whisper of shadow; no movement */
.products-sort__select:hover {
	border-color: #5BA0D9;
	box-shadow: 0 4px 12px rgba(52, 130, 197, 0.1);
}

/* Focus: thin, soft gold ring — no browser blue */
.products-sort__select:focus,
.products-sort__select:focus-visible {
	outline: none;
	border-color: #3482C5;
	box-shadow:
		0 0 0 2px rgba(52, 130, 197, 0.28),
		0 4px 14px rgba(52, 130, 197, 0.1);
}

/* Custom sort dropdown (JS-enhanced) — same language as the account menu:
   white panel, cream hover rows, cream pill on the selected row. */
.products-sort__toggle {
	text-align: left;
	cursor: pointer;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.products-sort__menu {
	position: absolute;
	top: calc(100% + 0.4rem);
	left: 0;
	right: 0;
	z-index: 30;
	margin: 0;
	padding: 0.4rem;
	list-style: none;
	background: #fff;
	border: 1px solid rgba(52, 130, 197, 0.28);
	border-radius: 12px;
	box-shadow: 0 14px 36px rgba(24, 25, 27, 0.12);
}

.products-sort__menu[hidden] {
	display: none;
}

.products-sort__option {
	padding: 0.62rem 0.8rem;
	border-radius: 8px;
	font-size: 0.92rem;
	font-weight: 500;
	line-height: 1.3;
	color: #202020;
	cursor: pointer;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: background-color 0.2s ease;
}

.products-sort__option + .products-sort__option {
	margin-top: 2px;
}

.products-sort__option:hover,
.products-sort__option.is-active {
	background: #F0F6FB;
	color: #202020;
}

.products-sort__option.is-selected {
	background: #E4EDF5;
	color: #202020;
	font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
	.products-sort__option {
		transition: none;
	}
}

/* Dropdown list — white ground, dark text, no default blue (best effort on
   native popups; row hover/selected tones where the browser allows) */
.products-sort__select option,
.products-filter__select option {
	background: #fff;
	color: #202020;
	font-weight: 500;
	padding: 0.45rem 0.75rem;
	border: 0;
}

.products-sort__select option:hover,
.products-filter__select option:hover {
	background: #F0F6FB;
	color: #202020;
}

.products-sort__select option:checked,
.products-filter__select option:checked {
	background: #E4EDF5;
	color: #202020;
	font-weight: 600;
}

/* Toolbar search ------------------------------------------------------ */
.products-search {
	display: flex;
	align-items: stretch;
	flex: 1 1 260px;
	width: min(100%, 320px);
	max-width: 340px;
	min-width: 0;
}

.products-search__field {
	position: relative;
	display: flex;
	align-items: stretch;
	flex: 1 1 auto;
	min-width: 0;
}

.products-search__icon {
	position: absolute;
	left: 0.9rem;
	top: 50%;
	width: 1rem;
	height: 1rem;
	color: var(--color-bronze, #2A6BA3);
	transform: translateY(-50%);
	pointer-events: none;
	z-index: 1;
}

.products-search__icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.products-search__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 44px;
	padding: 0 0.85rem 0 2.35rem;
	border: 1px solid rgba(212, 220, 228, 0.95);
	border-right: 0;
	border-radius: 999px 0 0 999px;
	background: #fff;
	color: var(--color-text);
	font: inherit;
	font-size: 0.92rem;
	line-height: 1.2;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.products-search__input::placeholder {
	color: rgba(24, 25, 27, 0.42);
}

.products-search__input:focus,
.products-search__input:focus-visible {
	outline: none;
	border-color: rgba(52, 130, 197, 0.7);
	box-shadow: inset 0 0 0 1px rgba(52, 130, 197, 0.18);
}

.products-search__btn {
	flex: 0 0 auto;
	height: 44px;
	padding: 0 1.15rem;
	border: 1px solid #3482C5;
	border-radius: 0 999px 999px 0;
	background: #3482C5;
	color: #FFFFFF;
	font: inherit;
	font-size: 0.88rem;
	font-weight: 650;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.products-search__btn:hover,
.products-search__btn:focus-visible {
	background: #2A6BA3;
	border-color: #2A6BA3;
	color: #FFFFFF;
	outline: none;
}

.products-search__btn:active {
	transform: translateY(1px);
}

.products-search:focus-within .products-search__btn {
	border-color: rgba(52, 130, 197, 0.75);
}

/* Tablet and below: sort + search take the full row, never overlapping */
@media (max-width: 900px) {
	.product-archive__tools {
		justify-content: stretch;
		width: 100%;
	}

	.products-sort,
	.products-search {
		flex: 1 1 100%;
		width: 100%;
		max-width: none;
		min-width: 0;
	}
}

@media (max-width: 720px) {
	.product-archive__toolbar {
		overflow-x: clip;
	}

	.product-archive__toolbar-row {
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
		padding: 0.85rem 1rem;
	}

	.product-archive__count {
		width: 100%;
	}

	.product-archive__tools {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		gap: 0.65rem;
	}

	.post-grid--products {
		grid-template-columns: minmax(0, 1fr);
	}

	.product-archive .container,
	.products-page .product-archive__toolbar:not(:has(.product-archive__toolbar-row)) {
		min-width: 0;
	}

	.products-sort,
	.products-search {
		width: 100%;
		max-width: 100%;
		flex: none;
	}

	/* Prevent iOS focus zoom + horizontal overflow when the search field is tapped */
	.products-search {
		flex-direction: column;
		align-items: stretch;
		gap: 0.5rem;
		overflow: hidden;
	}

	.products-search__field {
		width: 100%;
	}

	.products-search__input {
		width: 100%;
		font-size: 16px;
		border-right: 1px solid rgba(212, 220, 228, 0.95);
		border-radius: 999px;
		-webkit-appearance: none;
		appearance: none;
	}

	.products-search__input::-webkit-search-decoration,
	.products-search__input::-webkit-search-cancel-button,
	.products-search__input::-webkit-search-results-button {
		-webkit-appearance: none;
		display: none;
	}

	.products-search__btn {
		width: 100%;
		border-radius: 999px;
	}

	.post-card--product .post-card__body {
		padding-inline: 1rem;
	}

	.post-card--product .post-card__meta {
		grid-template-columns: minmax(0, 1fr) minmax(0, auto);
		column-gap: 0.5rem;
	}

	.post-card--product .post-card__cart,
	.post-card--product a.add_to_cart_button,
	.post-card--product a.product_type_simple,
	.post-card--product a.product_type_variable {
		padding-inline: 0.85rem;
		font-size: 0.68rem;
	}
}

/* Grid ---------------------------------------------------------------- */
.post-grid--products {
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	gap: clamp(1.5rem, 2.8vw, 2.15rem);
	align-items: stretch;
}

/* Editorial product card in a soft frame ----------------------------- */
.post-card--product {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid rgba(52, 130, 197, 0.2);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 1px 0 rgba(24, 25, 27, 0.03), 0 8px 24px rgba(27, 79, 122, 0.04);
	isolation: isolate;
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.post-card--product:hover {
	transform: translateY(-2px);
	border-color: rgba(52, 130, 197, 0.45);
	box-shadow: 0 10px 28px rgba(27, 79, 122, 0.1);
}

.post-card--product .post-card__media-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.post-card--product .post-card__media {
	position: relative;
	aspect-ratio: 1 / 1;
	display: block;
	padding: 0;
	background: #F0F6FB;
	overflow: hidden;
	border-radius: 0;
}

.post-card--product .post-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.38) 100%);
	opacity: 0;
	transition: opacity 0.35s ease;
	pointer-events: none;
}

.post-card--product:hover .post-card__media::after {
	opacity: 1;
}

.post-card--product .post-card__media img,
.post-card--product .post-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.post-card--product:hover .post-card__media img {
	transform: scale(1.03);
}

.post-card__media-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: rgba(52, 130, 197, 0.42);
	background:
		linear-gradient(135deg, rgba(52, 130, 197, 0.08), rgba(52, 130, 197, 0.03)),
		linear-gradient(135deg, #F0F6FB 0%, #E4EDF5 100%);
}

.post-card__media-placeholder svg {
	width: 48px;
	height: 48px;
	opacity: 0.5;
}

.post-card--product .post-card__badge {
	display: none;
}

/* Positioning handled by shared .da-sale-badge */

.post-card--product .post-card__peek {
	position: absolute;
	left: 50%;
	bottom: 1.15rem;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	opacity: 0;
	transform: translate(-50%, 8px);
	transition: opacity 0.35s ease, transform 0.35s ease;
	pointer-events: none;
}

.post-card--product .post-card__peek svg {
	width: 14px;
	height: 14px;
	transition: transform 0.35s ease;
}

.post-card--product:hover .post-card__peek {
	opacity: 1;
	transform: translate(-50%, 0);
}

.post-card--product:hover .post-card__peek svg {
	transform: translateX(2px);
}

.post-card--product .post-card__body {
	--da-card-title-h: calc(1.02rem * 1.35 * 2);
	--da-card-title-pad: 0.55rem;
	/* Fixed title block so every card’s borders (facts / promo / price) share one baseline. */
	--da-card-title-block-h: calc(var(--da-card-title-h) + var(--da-card-title-pad) + 1px);
	--da-card-excerpt-h: calc(0.84rem * 1.55 * 2);
	--da-card-fact-row: 1.2rem;
	--da-card-facts-gap: 0.35rem;
	--da-card-facts-pad: 0.55rem;
	--da-card-facts-h: calc(
		var(--da-card-facts-pad) + (var(--da-card-fact-row) * 2) + var(--da-card-facts-gap)
	);
	--da-card-promo-h: 1.7rem;
	--da-card-meta-h: 3.25rem;
	display: grid;
	grid-template-rows:
		var(--da-card-title-block-h)
		var(--da-card-excerpt-h)
		var(--da-card-facts-h)
		minmax(0, 1fr)
		var(--da-card-meta-h);
	grid-template-columns: minmax(0, 1fr);
	align-content: stretch;
	gap: 0.55rem;
	padding: 1.15rem 1.2rem 1.2rem;
	flex: 1 1 auto;
	min-height: 0;
	background: #fff;
	box-sizing: border-box;
}

.post-card--product .post-card__title-link {
	display: block;
	grid-row: 1;
	height: var(--da-card-title-block-h);
	min-height: var(--da-card-title-block-h);
	max-height: var(--da-card-title-block-h);
	padding-bottom: var(--da-card-title-pad);
	margin: 0;
	border-bottom: 1px solid rgba(212, 220, 228, 0.9);
	box-sizing: border-box;
	text-decoration: none;
	color: inherit;
	min-width: 0;
	overflow: hidden;
}

.post-card--product .post-card__title {
	margin: 0 !important;
	font-family: var(--font-heading);
	font-size: 1.02rem;
	line-height: 1.35;
	height: var(--da-card-title-h);
	min-height: var(--da-card-title-h);
	max-height: var(--da-card-title-h);
	font-weight: 600;
	letter-spacing: -0.015em;
	color: var(--color-heading);
	transition: color 0.35s ease;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.post-card--product:hover .post-card__title {
	color: var(--color-bronze, #2A6BA3);
}

.post-card--product .post-card__excerpt {
	grid-row: 2;
	margin: 0;
	color: var(--color-muted);
	font-size: 0.84rem;
	line-height: 1.55;
	height: var(--da-card-excerpt-h);
	min-height: var(--da-card-excerpt-h);
	max-height: var(--da-card-excerpt-h);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-width: 0;
}

.post-card--product .post-card__excerpt:empty {
	visibility: hidden;
}

/* SKU + stock: fixed two-row slot — never bleeds into coupon/price. */
.post-card--product .post-card__facts {
	grid-row: 3;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: var(--da-card-facts-gap);
	margin: 0;
	padding: var(--da-card-facts-pad) 0 0;
	border-top: 1px solid rgba(212, 220, 228, 0.75);
	box-sizing: border-box;
	height: var(--da-card-facts-h);
	min-height: var(--da-card-facts-h);
	max-height: var(--da-card-facts-h);
	overflow: hidden;
	min-width: 0;
}

.post-card--product .post-card__fact {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem;
	margin: 0 !important;
	padding: 0;
	height: var(--da-card-fact-row);
	min-height: var(--da-card-fact-row);
	max-height: var(--da-card-fact-row);
	font-size: 0.78rem;
	line-height: 1.2;
	min-width: 0;
	overflow: hidden;
}

.post-card--product .post-card__promo {
	grid-row: 4;
	position: relative;
	z-index: 1;
}

.post-card--product .post-card__body:has(.post-card__promo) {
	grid-template-rows:
		var(--da-card-title-block-h)
		var(--da-card-excerpt-h)
		var(--da-card-facts-h)
		var(--da-card-promo-h)
		minmax(0, 1fr)
		var(--da-card-meta-h);
}

.post-card--product .post-card__fact--empty {
	visibility: hidden;
}

.post-card--product .post-card__fact-label {
	flex: 0 0 auto;
	color: var(--color-muted, #6c6c6c);
	font-weight: 500;
	letter-spacing: 0.01em;
	white-space: nowrap;
}

.post-card--product .post-card__fact-value {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.35rem;
	min-width: 0;
	max-width: 65%;
	text-align: right;
	font-weight: 600;
	color: var(--color-heading, #1B4F7A);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.post-card--product .post-card__fact-value--code {
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
	word-break: normal;
}

.post-card--product .post-card__stock--in .post-card__fact-value {
	color: #1f5c32;
	background: #d8efe0;
	border-color: #6eab7f;
}

.post-card--product .post-card__stock--low .post-card__fact-value {
	color: #8a3d12;
	background: #f5e0c8;
	border-color: #3482C5;
}

.post-card--product .post-card__stock--out .post-card__fact-value {
	color: #8a2e28;
	background: #f0d6d4;
	border-color: #d08a84;
}

.post-card--product .post-card__meta {
	grid-row: 5;
	margin: 0;
	padding-top: 0.75rem;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 0.75rem;
	height: var(--da-card-meta-h);
	min-height: var(--da-card-meta-h);
	max-height: var(--da-card-meta-h);
	box-sizing: border-box;
	border-top: 1px solid rgba(212, 220, 228, 0.9);
	overflow: hidden;
	position: relative;
	z-index: 0;
	min-width: 0;
	align-self: stretch;
}

.post-card--product .post-card__body:has(.post-card__promo) .post-card__meta {
	grid-row: 6;
}

/* Coupon lives in .post-card__promo — never nest inside meta. */
.post-card--product .post-card__meta .da-coupon-badge {
	display: none !important;
}

.post-card--product .post-card__meta--quote {
	grid-template-columns: 1fr;
	justify-items: stretch;
}

/* Quote cards: single SKU row; spacer below button (not between code and button). */
.post-card--product .post-card__body:has(.post-card__meta--quote):not(:has(.post-card__promo)) {
	--da-card-facts-h: calc(var(--da-card-facts-pad) + var(--da-card-fact-row));
	grid-template-rows:
		var(--da-card-title-block-h)
		var(--da-card-excerpt-h)
		var(--da-card-facts-h)
		auto
		minmax(0, 1fr);
}

.post-card--product .post-card__body:has(.post-card__meta--quote):not(:has(.post-card__promo)) .post-card__meta {
	grid-row: 4;
	height: auto;
	min-height: 0;
	max-height: none;
	padding-top: var(--da-card-facts-pad);
}

.post-card--product .post-card__meta--quote .post-card__cart,
.post-card--product .post-card__meta--quote a.post-card__cart {
	width: 100%;
	justify-content: center;
}

.post-card--product .post-card__price {
	margin: 0 !important;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 0.08rem;
	min-width: 0;
	max-width: 100%;
	height: 100%;
	font-family: var(--font-heading);
	font-size: 0.98rem;
	font-weight: 550;
	line-height: 1.15;
	color: var(--color-bronze, #2A6BA3);
	letter-spacing: -0.015em;
	float: none !important;
	position: static !important;
	clear: none !important;
	overflow: hidden;
}

.post-card--product .post-card__price del,
.post-card--product .post-card__price ins {
	float: none !important;
	position: static !important;
	clear: none !important;
}

.post-card--product .post-card__price del {
	display: block;
	margin: 0;
	opacity: 1;
	font-weight: 400;
	font-size: 0.76rem;
	line-height: 1.15;
	letter-spacing: 0;
	color: #8a8781;
	text-decoration: line-through;
	text-decoration-thickness: 1px;
	text-decoration-color: rgba(92, 90, 86, 0.6);
	order: -1;
}

.post-card--product .post-card__price ins {
	display: block;
	text-decoration: none;
	color: var(--color-bronze, #2A6BA3);
	font-weight: 650;
	font-size: 0.98rem;
	line-height: 1.15;
}

.post-card--product .post-card__cart,
.post-card--product a.add_to_cart_button,
.post-card--product a.product_type_simple,
.post-card--product a.product_type_variable,
.post-card--product a.product_type_grouped,
.post-card--product a.product_type_external {
	appearance: none;
	margin: 0;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 2.55rem;
	padding: 0.55rem 1.15rem 0.55rem 1rem;
	border: 1px solid #3482C5;
	border-radius: 999px;
	background: #3482C5;
	color: #FFFFFF;
	font-family: inherit;
	font-size: 0.72rem;
	font-weight: 650;
	letter-spacing: 0.02em;
	line-height: 1;
	text-decoration: none;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: none;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	transition:
		background-color 0.35s ease,
		border-color 0.35s ease,
		color 0.35s ease,
		transform 0.35s ease,
		box-shadow 0.35s ease;
}

.post-card--product .post-card__cart > span {
	display: inline-block;
	line-height: 1;
}

.post-card--product .post-card__cart-icon {
	width: 14px;
	height: 14px;
	flex: 0 0 auto;
	display: block;
	transition: transform 0.35s ease;
}

.post-card--product .post-card__cart:hover,
.post-card--product a.add_to_cart_button:hover,
.post-card--product a.product_type_simple:hover,
.post-card--product a.product_type_variable:hover {
	background: #2A6BA3;
	border-color: #2A6BA3;
	color: #FFFFFF;
	transform: translateY(-1px);
	box-shadow: 0 6px 14px rgba(52, 130, 197, 0.22);
	opacity: 1;
}

.post-card--product .post-card__cart:hover .post-card__cart-icon,
.post-card--product a.add_to_cart_button:hover .post-card__cart-icon {
	transform: translateX(2px);
}

/* Card hover lights up the add-to-cart button in Santek blue */
.post-card--product:hover .post-card__cart,
.post-card--product:hover a.add_to_cart_button,
.post-card--product:hover a.product_type_simple,
.post-card--product:hover a.product_type_variable {
	background: #3482C5;
	border-color: #3482C5;
	color: #fff;
}

.post-card--product:hover .post-card__cart-icon {
	transform: translateX(3px);
	transition: transform 0.35s ease;
}

.post-card--product:hover .post-card__cart:hover,
.post-card--product:hover a.add_to_cart_button:hover,
.post-card--product:hover a.product_type_simple:hover,
.post-card--product:hover a.product_type_variable:hover {
	background: #2A6BA3;
	border-color: #2A6BA3;
	color: #fff;
	transform: none;
	box-shadow: 0 6px 14px rgba(52, 130, 197, 0.24);
}

.post-card--product .post-card__cart:focus-visible,
.post-card--product a.add_to_cart_button:focus-visible {
	outline: none;
	background: #2A6BA3;
	border-color: #2A6BA3;
	color: #FFFFFF;
	box-shadow: 0 0 0 3px rgba(52, 130, 197, 0.18);
}

.post-card--product a.added_to_cart {
	display: none;
}

/* Empty state --------------------------------------------------------- */
.product-archive__empty {
	padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
	text-align: center;
	border: 1px dashed var(--color-border);
	border-radius: 16px;
	background: var(--color-section-soft-background);
	color: var(--color-muted);
}

.product-archive__empty p {
	margin: 0;
	font-size: 1.05rem;
}

/* CTA ----------------------------------------------------------------- */
.product-archive__cta {
	margin-top: clamp(2.25rem, 5vw, 3.5rem);
	text-align: center;
}

/* Category filter — select on mobile, scrollable tabs on desktop ------ */
.products-filter {
	position: relative;
	z-index: 2;
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	border-top: 1px solid rgba(52, 130, 197, 0.14);
	border-radius: 0 0 17px 17px;
	background: #FFFFFF;
}

.products-filter__select-wrap {
	display: none;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
}

.products-filter__label {
	display: none;
}

.products-filter__field {
	position: relative;
	display: block;
	width: 100%;
	min-width: 0;
}

.products-filter__icon {
	position: absolute;
	left: 0.85rem;
	top: 50%;
	width: 1rem;
	height: 1rem;
	color: var(--color-bronze, #2A6BA3);
	transform: translateY(-50%);
	pointer-events: none;
	z-index: 1;
}

.products-filter__icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.products-filter__select {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	height: 44px;
	padding: 0 2.35rem 0 2.35rem;
	border: 1px solid #D4DCE4;
	border-radius: 999px;
	background-color: #F0F6FB;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233482C5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.9rem center;
	background-size: 0.95rem;
	color: #1B4F7A;
	color-scheme: light;
	font: inherit;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
	box-shadow: none;
	transition: background-color 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, color 0.28s ease;
}

.products-filter__select:hover {
	background-color: #E4EDF5;
	border-color: #3482C5;
	box-shadow: 0 4px 12px rgba(52, 130, 197, 0.1);
}

.products-filter__select:focus,
.products-filter__select:focus-visible {
	outline: none;
	border-color: #3482C5;
	box-shadow:
		0 0 0 2px rgba(91, 160, 217, 0.25),
		0 6px 18px rgba(52, 130, 197, 0.12);
}

.products-filter__rail {
	display: flex;
	align-items: stretch;
	gap: 0;
	min-width: 0;
}

.products-filter__track {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.15rem;
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	padding: 0 0.35rem;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	scroll-behavior: smooth;
	overscroll-behavior-x: contain;
}

.products-filter__track::-webkit-scrollbar {
	display: none;
	height: 0;
	width: 0;
}

.products-filter__nav {
	appearance: none;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.35rem;
	min-height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	background: linear-gradient(90deg, rgba(240, 246, 251, 0.98), rgba(240, 246, 251, 0.55));
	color: var(--color-bronze, #2A6BA3);
	cursor: pointer;
	transition: color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.products-filter__nav--next {
	background: linear-gradient(270deg, rgba(240, 246, 251, 0.98), rgba(240, 246, 251, 0.55));
}

.products-filter__nav[hidden] {
	display: none;
}

.products-filter__nav:hover,
.products-filter__nav:focus-visible {
	color: var(--color-heading, #1B4F7A);
	outline: none;
}

.products-filter__nav svg {
	display: block;
	width: 1.05rem;
	height: 1.05rem;
}

.products-filter__chip {
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	flex: 0 0 auto;
	position: relative;
	z-index: 1;
	min-height: 44px;
	padding: 0.85rem 0.9rem 0.95rem;
	border: 0;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	background: transparent;
	color: var(--color-muted, #7A7A7A);
	font-family: inherit;
	font-size: 0.86rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	line-height: 1.25;
	white-space: nowrap;
	box-shadow: none;
	touch-action: manipulation;
	-webkit-tap-highlight-color: rgba(52, 130, 197, 0.2);
	transition: color 0.2s ease, border-color 0.2s ease;
}

.products-filter__chip:hover {
	color: var(--color-gold, #3482C5);
	background: transparent;
	border-color: transparent;
	box-shadow: none;
	transform: none;
}

.products-filter__chip.is-active {
	color: var(--color-heading, #1B4F7A);
	border-bottom-color: var(--color-gold, #3482C5);
	background: transparent;
	box-shadow: none;
	font-weight: 700;
}

.products-filter__chip:focus-visible {
	outline: 2px solid var(--color-gold, #3482C5);
	outline-offset: -2px;
}

@media (max-width: 720px) {
	.products-filter {
		padding: 0.15rem 1rem 1rem;
	}

	.products-filter__select-wrap {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0.45rem;
		width: 100%;
		padding: 0.85rem 0 0;
		box-sizing: border-box;
	}

	.products-filter__label {
		display: block;
		margin: 0;
		padding: 0 0.15rem;
		color: var(--color-heading, #1B4F7A);
		font-size: 0.72rem;
		font-weight: 700;
		letter-spacing: 0.1em;
		line-height: 1.2;
		text-transform: uppercase;
	}

	.products-filter__field {
		width: 100%;
	}

	.products-filter__select {
		font-size: 16px;
	}

	.products-filter__rail {
		display: none;
	}
}

.products-page__item {
	display: flex;
	align-items: stretch;
	height: 100%;
	min-height: 0;
}

.products-page__item > .post-card--product {
	width: 100%;
	height: 100%;
	min-height: 0;
}

.products-page__item[hidden],
.post-card--product[hidden] {
	display: none;
}

.products-page__empty {
	margin: clamp(2rem, 5vw, 3rem) 0 0;
	text-align: center;
	color: var(--color-muted);
	font-size: 1.02rem;
}

.products-pagination {
	margin-top: clamp(2rem, 4vw, 2.75rem);
	display: flex;
	justify-content: center;
}

.products-pagination__nav {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
}

.products-pagination__btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	min-height: 2.5rem;
	padding: 0.4rem 0.75rem;
	border: 1px solid var(--color-border);
	border-radius: 10px;
	background: #fff;
	color: var(--color-heading);
	font-family: inherit;
	font-size: 0.92rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.products-pagination__btn:hover:not(:disabled):not(.is-current) {
	border-color: rgba(52, 130, 197, 0.55);
	color: var(--color-bronze, #2A6BA3);
}

.products-pagination__btn.is-current {
	background: var(--color-gold, #3482C5);
	border-color: var(--color-gold, #3482C5);
	color: var(--color-graphite, #1B4F7A);
	cursor: default;
}

.products-pagination__btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.products-pagination__btn:focus-visible {
	outline: 2px solid var(--color-gold, #3482C5);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.post-card--product .post-card__media::after,
	.post-card--product .post-card__media img,
	.post-card--product .post-card__peek,
	.products-filter__chip,
	.products-pagination__btn {
		transition: none;
	}

	.post-card--product:hover .post-card__media img {
		transform: none;
	}
}


/* ==========================================================================
   Catalog category cards (shop + category archives)
   ========================================================================== */

.catalog-categories {
	margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
}

.catalog-categories__heading {
	margin: 0 0 1rem;
	font-family: var(--font-heading, inherit);
	font-size: clamp(1.15rem, 2vw, 1.35rem);
	font-weight: 700;
	color: var(--color-heading, #1B4F7A);
}

.catalog-category-desc {
	margin: 0 0 1.5rem;
	max-width: 52rem;
	color: var(--color-muted, #6B7280);
	line-height: 1.7;
}

.catalog-cat-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85rem;
}

@media (min-width: 768px) {
	.catalog-cat-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1rem;
	}
}

@media (min-width: 1100px) {
	.catalog-cat-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 1.1rem;
	}
}

.catalog-cat-card {
	min-width: 0;
	height: 100%;
}

.catalog-cat-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
	border: 1px solid rgba(52, 130, 197, 0.14);
	border-radius: 16px;
	background: #fff;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(27, 79, 122, 0.05);
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.catalog-cat-card__link:hover,
.catalog-cat-card__link:focus-visible {
	transform: translateY(-3px);
	border-color: rgba(52, 130, 197, 0.35);
	box-shadow: 0 14px 32px rgba(27, 79, 122, 0.12);
	outline: none;
}

.catalog-cat-card__media {
	display: block;
	aspect-ratio: 4 / 3;
	background: linear-gradient(135deg, #F0F6FB 0%, #E4EDF5 100%);
	overflow: hidden;
}

.catalog-cat-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.catalog-cat-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: rgba(52, 130, 197, 0.4);
}

.catalog-cat-card__placeholder svg {
	width: 2.5rem;
	height: 2.5rem;
}

.catalog-cat-card__body {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 1.15rem; /* ~18–24px between title and CTA */
	padding: 1.5rem 1.1rem 1.25rem; /* ~24–30px above title */
	flex: 1 1 auto;
	min-height: 0;
	text-align: center;
}

.catalog-cat-card__title {
	margin: 0;
	padding: 0;
	font-family: var(--font-heading, inherit);
	font-size: clamp(1.35rem, 1.5vw, 1.85rem); /* ~21–30px */
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.015em;
	color: var(--color-heading, #1B4F7A);
	text-align: center;
	overflow-wrap: anywhere;
	hyphens: auto;
	display: block;
	-webkit-line-clamp: unset;
	overflow: visible;
	min-height: 0;
	max-width: 100%;
}

.catalog-cat-card__text {
	display: none !important;
}

.catalog-cat-card__cta {
	margin: 0;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--color-accent, #3482C5);
	text-align: center;
}

.catalog-cat-card__cta svg {
	width: 1rem;
	height: 1rem;
	flex: 0 0 auto;
}

@media (max-width: 1024px) {
	.catalog-cat-card__title {
		font-size: clamp(1.3rem, 1.8vw, 1.6rem); /* ~23–26px */
	}

	.catalog-cat-card__body {
		padding-top: 1.4rem;
		gap: 1.1rem;
	}
}

@media (max-width: 640px) {
	.catalog-cat-card__title {
		font-size: clamp(1.25rem, 4.2vw, 1.45rem); /* ~21–24px */
	}

	.catalog-cat-card__body {
		padding: 1.25rem 0.95rem 1.15rem;
		gap: 1rem;
	}
}

.products-page--catalog-home .product-archive__toolbar,
.products-page--catalog-home .post-grid--products {
	display: none;
}

.product-archive__empty--soft {
	margin-top: 0.5rem;
	padding: 1rem 1.15rem;
	border-radius: 12px;
	background: rgba(52, 130, 197, 0.06);
	border: 1px solid rgba(52, 130, 197, 0.12);
}

.product-archive__empty--soft p {
	margin: 0;
	color: var(--color-muted, #6B7280);
}

/* Product cards: industrial photos keep full product in frame */
.post-card--product .post-card__media img,
.post-card--product .post-card__img {
	object-fit: contain;
	background: #fff;
}

.post-card--product .post-card__meta--quote {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.55rem;
}

.post-card--product .post-card__inspect {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	width: 100%;
	min-height: 2.65rem;
	padding: 0.65rem 1rem;
	border-radius: 999px;
	border: 1px solid rgba(52, 130, 197, 0.28);
	background: linear-gradient(180deg, #3482C5 0%, #1B4F7A 100%);
	color: #fff !important;
	font-weight: 700;
	font-size: 0.92rem;
	text-decoration: none;
	box-shadow: 0 8px 18px rgba(27, 79, 122, 0.18);
	transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.post-card--product .post-card__inspect:hover,
.post-card--product .post-card__inspect:focus-visible {
	filter: brightness(1.05);
	transform: translateY(-1px);
	box-shadow: 0 12px 22px rgba(27, 79, 122, 0.22);
	outline: none;
}

.post-card--product .post-card__inspect-icon {
	width: 1.05rem;
	height: 1.05rem;
}

.woocommerce-pagination {
	margin: 1.75rem 0 0;
	display: flex;
	justify-content: center;
}

.woocommerce-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.woocommerce-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.4rem;
	height: 2.4rem;
	padding: 0 0.7rem;
	border-radius: 10px;
	border: 1px solid rgba(52, 130, 197, 0.18);
	background: #fff;
	color: var(--color-heading, #1B4F7A);
	text-decoration: none;
	font-weight: 600;
}

.woocommerce-pagination .page-numbers.current,
.woocommerce-pagination .page-numbers:hover {
	background: rgba(52, 130, 197, 0.12);
	border-color: rgba(52, 130, 197, 0.35);
}

@media (max-width: 480px) {
	.catalog-cat-grid {
		grid-template-columns: 1fr;
	}
}

/*
 * Compact product cards: image → title → actions pinned to bottom.
 * Equal card height via grid stretch + flex column; buttons use margin-top:auto.
 * Divider borders from the legacy card grid are removed for compact cards.
 */
.post-card--product-compact .post-card__media-link {
	flex: 0 0 auto;
}

.post-card--product-compact .post-card__media {
	aspect-ratio: 1 / 1;
	display: grid;
	place-items: center;
	padding: clamp(1.1rem, 2vw, 1.85rem);
	background: #fff;
	box-sizing: border-box;
}

.post-card--product-compact .post-card__media img,
.post-card--product-compact .post-card__img {
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
	background: transparent;
}

.post-card--product-compact .post-card__body {
	--da-card-title-h: auto;
	--da-card-title-block-h: auto;
	--da-card-title-pad: 0;
	--da-card-excerpt-h: 0px;
	--da-card-facts-h: 0px;
	--da-card-meta-h: auto;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	justify-content: flex-start;
	align-content: stretch;
	gap: 0;
	grid-template-rows: none !important;
	padding: 1rem clamp(0.95rem, 1.6vw, 1.25rem) 1.35rem;
	min-height: 0;
}

.post-card--product-compact .post-card__title-link {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	flex: 0 0 auto;
	width: 100%;
	height: auto !important;
	min-height: calc(2 * 1.24em);
	max-height: none !important;
	padding: 0.15rem 0.15rem 0;
	margin: 0;
	border-bottom: 0;
	overflow: visible;
	text-align: center;
	text-decoration: none;
	color: inherit;
	box-sizing: border-box;
}

.post-card--product-compact .post-card__title {
	margin: 0 !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	width: 100%;
	font-family: var(--font-heading, 'Poppins', sans-serif);
	font-size: clamp(1.1875rem, 1.02rem + 0.42vw, 1.5625rem); /* ~19–25px */
	line-height: 1.24;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--color-heading, #1B4F7A);
	text-align: center;
	text-wrap: balance;
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
	display: block;
	-webkit-line-clamp: unset;
	-webkit-box-orient: unset;
	overflow: visible;
	transition: color 0.2s ease;
}

.post-card--product-compact .post-card__title-keep {
	white-space: nowrap;
}

.post-card--product-compact:hover .post-card__title {
	color: var(--color-bronze, #2A6BA3);
}

.post-card--product-compact .post-card__excerpt,
.post-card--product-compact .post-card__facts {
	display: none !important;
}

.post-card--product-compact .post-card__meta {
	flex: 0 0 auto;
	grid-row: auto;
	margin-top: auto;
	margin-bottom: 0;
	padding-top: 1.25rem;
	height: auto;
	min-height: 0;
	max-height: none;
	border-top: 0;
	overflow: visible;
	align-self: stretch;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.65rem;
}

/* Quote-mode body rules also set meta padding-top / borders — neutralize for compact. */
.post-card--product-compact.post-card--product .post-card__body:has(.post-card__meta--quote):not(:has(.post-card__promo)) {
	grid-template-rows: none !important;
}

.post-card--product-compact.post-card--product .post-card__body:has(.post-card__meta--quote):not(:has(.post-card__promo)) .post-card__meta {
	margin-top: auto;
	padding-top: 1.25rem;
	border-top: 0;
}

.post-card--product-compact .post-card__inspect,
.post-card--product-compact .post-card__cart,
.post-card--product-compact a.add_to_cart_button,
.post-card--product-compact a.product_type_simple,
.post-card--product-compact a.product_type_variable {
	width: 100%;
	min-height: 3.15rem;
	box-sizing: border-box;
}

.product-related .post-card--product-compact .post-card__body {
	padding-bottom: 1.15rem;
}

.product-related .post-card--product-compact .post-card__meta {
	border-top: 0;
	padding-top: 1.1rem;
}

@media (max-width: 1024px) {
	.post-card--product-compact .post-card__title {
		font-size: clamp(1.15rem, 1rem + 0.45vw, 1.4375rem); /* ~18–23px */
	}

	.post-card--product-compact .post-card__meta {
		padding-top: 1.15rem;
	}
}

@media (max-width: 640px) {
	.post-card--product-compact .post-card__title {
		font-size: clamp(1.125rem, 0.98rem + 0.55vw, 1.3125rem); /* ~18–21px */
	}

	.post-card--product-compact .post-card__media {
		padding: clamp(0.95rem, 3.5vw, 1.35rem);
	}

	.post-card--product-compact .post-card__meta {
		padding-top: 1.05rem;
	}
}
