/**
 * ErosCharm — Collection (product category) page.
 *
 * Loaded only on product category pages. Same system as the product page,
 * homepage cards, cart and checkout. Product cards come from
 * eroscharm-cards.css; this file lays out the page around them.
 *
 * Logical properties throughout — the Arabic page mirrors by itself.
 */

.tax-product_cat {
	--ec-bg: #faf8f5;
	--ec-ink: #1f1612;
	--ec-ink-70: #4a403a;
	--ec-muted: #736a63;
	--ec-soft: #a39a92;
	--ec-paper: #ffffff;
	--ec-card: #f4efea;
	--ec-card-deep: #ece5dd;
	--ec-blush: #f3e8e4;
	--ec-line: #e8e1d9;
	--ec-line-strong: #d6ccc1;
	--ec-red: #c63a40;
	--ec-rose: #c0616a;
	--ec-brown: #2b1d17;
	--ec-brown-hover: #45322a;

	--ec-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		"Helvetica Neue", "Noto Sans Arabic", Arial, sans-serif;
	--ec-serif: "Playfair Display", Georgia, "Noto Naskh Arabic",
		"Times New Roman", serif;

	--ec-radius: 4px;
	--ec-shell: 1380px;
	--ec-gutter: clamp(16px, 3vw, 44px);
	--ec-ease: cubic-bezier(0.2, 0, 0.2, 1);
}

/* ==========================================================================
 * Shell — no Kadence archive chrome
 * ========================================================================== */

body.tax-product_cat {
	background: var(--ec-bg) !important;
	color: var(--ec-ink);
}

.tax-product_cat .entry-hero.product-archive-hero-section,
.tax-product_cat .kadence-shop-top-row,
.tax-product_cat .woocommerce-products-header,
.tax-product_cat .product-title.product-above {
	display: none !important;
}

.ec-collection {
	width: 100%;
	max-width: var(--ec-shell);
	margin-inline: auto;
	padding-inline: var(--ec-gutter);
	padding-block-end: clamp(40px, 5vw, 72px);
	font-family: var(--ec-sans);
	color: var(--ec-ink);
	box-sizing: border-box;
}

.ec-collection *,
.ec-collection *::before,
.ec-collection *::after {
	box-sizing: border-box;
}

.ec-collection a:focus-visible,
.ec-collection button:focus-visible,
.ec-collection input:focus-visible,
.ec-collection select:focus-visible {
	outline: 2px solid var(--ec-ink);
	outline-offset: 2px;
}

.ec-collection .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ==========================================================================
 * Breadcrumb
 * ========================================================================== */

.ec-crumbs {
	padding-block: 20px 16px;
}

.ec-crumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
	color: var(--ec-muted);
}

.ec-crumbs__list li {
	display: inline-flex;
	align-items: center;
	margin: 0;
}

.ec-crumbs__list li + li::before {
	content: "›";
	margin-inline: 10px;
	color: var(--ec-soft);
}

[dir="rtl"] .ec-crumbs__list li + li::before {
	content: "‹";
}

.ec-crumbs__list a {
	color: var(--ec-muted);
	text-decoration: none;
}

.ec-crumbs__list a:hover {
	color: var(--ec-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ec-crumbs__list [aria-current] {
	color: var(--ec-ink);
}

/* ==========================================================================
 * Hero
 * ========================================================================== */

.ec-hero {
	display: grid;
	grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
	min-height: clamp(300px, 27vw, 380px);
	margin-inline: calc(var(--ec-gutter) * -1);
	background: var(--ec-blush);
	overflow: hidden;
}

.ec-hero__text {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
	padding: clamp(28px, 3.5vw, 56px) var(--ec-gutter);
}

.ec-hero__eyebrow {
	margin: 0 !important;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ec-rose);
}

.ec-hero__index {
	letter-spacing: 0.08em;
}

.tax-product_cat .ec-hero .ec-hero__title {
	margin: 0 !important;
	padding: 0 !important;
	font-family: var(--ec-serif) !important;
	font-size: clamp(44px, 5.4vw, 80px) !important;
	font-weight: 500 !important;
	line-height: 0.98 !important;
	letter-spacing: -0.02em !important;
	text-transform: none !important;
	color: var(--ec-ink) !important;
	overflow-wrap: anywhere;
}

.ec-hero__desc {
	max-width: 44ch;
	font-family: var(--ec-serif);
	font-size: 17px;
	line-height: 1.5;
	color: var(--ec-ink-70);
}

.ec-hero__desc > :last-child {
	margin-block-end: 0;
}

.ec-hero__motto {
	display: flex;
	flex-direction: column;
	margin: 10px 0 0 !important;
	font-family: var(--ec-serif);
	font-style: italic;
	font-weight: 400;
	font-size: clamp(26px, 2.4vw, 36px);
	line-height: 1.05;
	color: var(--ec-rose);
	transform: rotate(-4deg);
	transform-origin: left center;
	width: max-content;
}

.ec-hero__motto span + span {
	padding-inline-start: 1.4em;
}

[dir="rtl"] .ec-hero__motto {
	transform: rotate(4deg);
	transform-origin: right center;
}

.ec-hero__media {
	position: relative;
	min-height: 100%;
	background: var(--ec-card-deep);
}

.ec-hero .ec-hero__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center 30%;
}

.ec-hero__neutral {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		radial-gradient(120% 90% at 80% 20%, rgba(255, 255, 255, 0.55), transparent 60%),
		linear-gradient(135deg, var(--ec-card) 0%, var(--ec-card-deep) 100%);
	overflow: hidden;
}

.ec-hero__neutral span {
	font-family: var(--ec-serif);
	font-size: clamp(64px, 9vw, 150px);
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1px rgba(31, 22, 18, 0.18);
	white-space: nowrap;
}

@media (max-width: 899px) {
	.ec-hero {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}

	.ec-hero__text {
		padding: 28px var(--ec-gutter) 24px;
		gap: 10px;
	}

	.ec-hero__media {
		aspect-ratio: 16 / 9;
		max-height: 240px;
		min-height: 0;
	}

	.ec-hero__motto {
		margin: 4px 0 0 !important;
		font-size: 22px;
	}
}

/* ==========================================================================
 * Category navigation
 * ========================================================================== */

.ec-catnav {
	margin-block: 26px 0;
	border-block-end: 1px solid var(--ec-line);
}

.ec-catnav__list {
	display: flex;
	gap: 6px;
	margin: 0 !important;
	padding: 0 0 14px !important;
	list-style: none !important;
	overflow-x: auto;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
	scroll-snap-type: x proximity;
}

.ec-catnav__list::-webkit-scrollbar {
	display: none;
}

.ec-catnav__list li {
	flex: 0 0 auto;
	margin: 0 !important;
	scroll-snap-align: start;
}

.ec-catnav__link {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var(--ec-line);
	border-radius: 999px;
	background: var(--ec-paper);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--ec-ink) !important;
	text-decoration: none !important;
	transition: background-color 0.2s var(--ec-ease), border-color 0.2s var(--ec-ease), color 0.2s var(--ec-ease);
}

.ec-catnav__link:hover {
	border-color: var(--ec-ink);
}

.ec-catnav__link.is-active {
	border-color: var(--ec-brown);
	background: var(--ec-brown);
	color: #fff !important;
}

@media (max-width: 899px) {
	.ec-catnav {
		margin-inline: calc(var(--ec-gutter) * -1);
	}

	.ec-catnav__list {
		padding-inline: var(--ec-gutter) !important;
		scroll-padding-inline: var(--ec-gutter);
	}
}

/* ==========================================================================
 * Body: filters + products
 * ========================================================================== */

.ec-collection__body {
	display: grid;
	grid-template-columns: 236px minmax(0, 1fr);
	gap: clamp(28px, 3vw, 48px);
	align-items: start;
	padding-block-start: 28px;
}

.ec-collection__main {
	min-width: 0;
	container-type: inline-size;
}

@media (max-width: 899px) {
	.ec-collection__body {
		grid-template-columns: minmax(0, 1fr);
		padding-block-start: 18px;
	}
}

/* ==========================================================================
 * Filters
 * ========================================================================== */

.ec-filters {
	position: sticky;
	top: 24px;
	padding: 22px 20px;
	border: 1px solid var(--ec-line);
	border-radius: var(--ec-radius);
	background: var(--ec-paper);
}

.ec-filters__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block-end: 14px;
	border-block-end: 1px solid var(--ec-line);
}

.ec-filters__title {
	margin: 0 !important;
	font-family: var(--ec-serif);
	font-size: 20px;
	font-weight: 500;
	color: var(--ec-ink);
}

.ec-filters__close {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-inline-end: -10px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ec-ink);
	cursor: pointer;
}

.ec-filters__close svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
}

.ec-filter {
	padding-block: 16px;
	border-block-end: 1px solid var(--ec-line);
}

.ec-filter:last-of-type {
	border-block-end: 0;
}

.tax-product_cat .ec-filter__title {
	margin: 0 0 10px !important;
	font-family: var(--ec-sans) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: var(--ec-ink) !important;
}

.ec-filter__list {
	display: grid;
	gap: 2px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.ec-filter__list li {
	margin: 0 !important;
}

.ec-check {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 36px;
	font-size: 14px;
	color: var(--ec-ink-70) !important;
	text-decoration: none !important;
	cursor: pointer;
}

.ec-check__box {
	position: relative;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	border: 1.5px solid var(--ec-line-strong);
	border-radius: 3px;
	background: var(--ec-paper);
	transition: background-color 0.15s var(--ec-ease), border-color 0.15s var(--ec-ease);
}

.ec-check:hover .ec-check__box {
	border-color: var(--ec-ink);
}

.ec-check.is-active,
.ec-check--input input:checked ~ .ec-check__label {
	color: var(--ec-ink) !important;
	font-weight: 500;
}

.ec-check.is-active .ec-check__box,
.ec-check--input input:checked + .ec-check__box {
	border-color: var(--ec-brown);
	background: var(--ec-brown);
}

.ec-check.is-active .ec-check__box::after,
.ec-check--input input:checked + .ec-check__box::after {
	content: "";
	position: absolute;
	inset-inline-start: 5px;
	top: 1px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.ec-check__count {
	color: var(--ec-soft);
	font-size: 13px;
}

.ec-check--input {
	position: relative;
}

.ec-check--input input {
	position: absolute;
	opacity: 0;
	width: 18px;
	height: 18px;
	margin: 0;
}

.ec-check--input input:focus-visible + .ec-check__box {
	outline: 2px solid var(--ec-ink);
	outline-offset: 2px;
}

.ec-price {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ec-price__field {
	flex: 1 1 0;
	min-width: 0;
}

.ec-price input {
	width: 100%;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--ec-line-strong);
	border-radius: var(--ec-radius);
	background: var(--ec-paper);
	font-size: 15px;
	color: var(--ec-ink);
}

.ec-price__sep {
	color: var(--ec-soft);
}

.ec-filters__apply {
	width: 100%;
	min-height: 48px;
	margin-block-start: 8px;
	border: 0;
	border-radius: 999px;
	background: var(--ec-brown);
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

.ec-filters__apply:hover {
	background: var(--ec-brown-hover);
}

.ec-filters__reset {
	display: block;
	margin-block-start: 12px;
	text-align: center;
	font-size: 13px;
	color: var(--ec-ink-70) !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ec-filters__scrim {
	display: none;
}

/* Drawer below 900px */
@media (max-width: 899px) {
	.ec-filters {
		position: fixed;
		inset-block: 0;
		inset-inline-start: 0;
		z-index: 100000;
		width: min(86vw, 360px);
		border: 0;
		border-radius: 0;
		overflow-y: auto;
		transform: translateX(-102%);
		visibility: hidden;
		transition: transform 0.3s var(--ec-ease), visibility 0s linear 0.3s;
	}

	[dir="rtl"] .ec-filters {
		transform: translateX(102%);
	}

	.ec-filters.is-open {
		transform: none;
		visibility: visible;
		transition: transform 0.3s var(--ec-ease);
	}

	.ec-filters__close {
		display: inline-flex;
	}

	.ec-filters__scrim:not([hidden]) {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 99999;
		background: rgba(31, 22, 18, 0.38);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ec-filters,
	.ec-filters.is-open {
		transition: none;
	}
}

/* ==========================================================================
 * Toolbar: count + filter + sort
 * ========================================================================== */

.ec-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px 20px;
	margin-block-end: 22px;
}

.ec-toolbar__count {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 0 !important;
}

.ec-toolbar__count strong {
	font-family: var(--ec-serif);
	font-size: clamp(26px, 2.4vw, 34px);
	font-weight: 500;
	line-height: 1.1;
	color: var(--ec-ink);
}

.ec-toolbar__context {
	padding-inline-start: 18px;
	border-inline-start: 1px solid var(--ec-line-strong);
	font-size: 14px;
	color: var(--ec-muted);
}

.ec-toolbar__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ec-toolbar__filter {
	display: none;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--ec-line-strong);
	border-radius: var(--ec-radius);
	background: var(--ec-paper);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ec-ink);
	cursor: pointer;
}

.ec-toolbar__filter svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
}

.ec-sort {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 44px;
	border: 1px solid var(--ec-line-strong);
	border-radius: var(--ec-radius);
	background: var(--ec-paper);
}

.ec-sort__label {
	padding-inline-start: 14px;
	font-size: 13px;
	color: var(--ec-muted);
	white-space: nowrap;
}

.ec-sort__label::after {
	content: " :";
}

.tax-product_cat .ec-sort .woocommerce-ordering {
	float: none !important;
	margin: 0 !important;
}

.tax-product_cat .ec-sort select.orderby {
	min-height: 42px;
	max-width: 230px;
	padding-block: 0;
	padding-inline: 6px 34px;
	border: 0 !important;
	border-radius: var(--ec-radius);
	background-color: transparent !important;
	box-shadow: none !important;
	font-size: 13px;
	font-weight: 500;
	color: var(--ec-ink);
	cursor: pointer;
}

@media (max-width: 899px) {
	.ec-toolbar {
		align-items: stretch;
		flex-direction: column;
	}

	.ec-toolbar__actions {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
	}

	.ec-toolbar__filter {
		display: inline-flex;
	}

	.ec-sort__label {
		display: none;
	}

	.tax-product_cat .ec-sort .woocommerce-ordering,
	.tax-product_cat .ec-sort select.orderby {
		width: 100%;
		max-width: none;
	}
}

/* ==========================================================================
 * Grid (cards from eroscharm-cards.css) — sized by the product area
 * ========================================================================== */

.ec-collection__main .ec-cards {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 36px 14px;
}

@container (min-width: 620px) {
	.ec-collection__main .ec-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 40px 18px;
	}
}

@container (min-width: 940px) {
	.ec-collection__main .ec-cards {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* ==========================================================================
 * One-product collection — editorial feature
 * ========================================================================== */

.ec-feature {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	align-items: center;
}

.ec-collection__main .ec-cards--feature {
	grid-template-columns: minmax(0, 1fr) !important;
}

@container (min-width: 620px) {
	.ec-feature {
		grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
		gap: clamp(28px, 4cqi, 64px);
	}
}

/* The card's own title/price repeat what the panel says; keep the image. */
.ec-cards--feature .ec-card__body {
	display: none;
}

.ec-feature__panel {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	padding: clamp(8px, 2cqi, 24px) 0;
}

.ec-feature__eyebrow {
	margin: 0 !important;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ec-rose);
}

.tax-product_cat .ec-feature__title {
	margin: 0 !important;
	padding: 0 !important;
	font-family: var(--ec-serif) !important;
	font-size: clamp(28px, 3.2cqi, 44px) !important;
	font-weight: 500 !important;
	line-height: 1.12 !important;
	letter-spacing: -0.01em !important;
	text-transform: none !important;
}

.ec-feature__title a {
	color: var(--ec-ink) !important;
	text-decoration: none !important;
}

.ec-feature__title a:hover {
	text-decoration: underline !important;
	text-underline-offset: 5px;
}

.ec-feature__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 14px;
	font-family: var(--ec-serif);
	font-size: 28px;
	font-weight: 600;
	color: var(--ec-ink);
}

.ec-feature__price ins {
	order: 1;
	text-decoration: none;
	background: none;
	color: var(--ec-red);
}

.ec-feature__price del {
	order: 2;
	font-size: 17px;
	font-weight: 400;
	color: var(--ec-soft);
}

.ec-feature__price .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}

.ec-feature__desc {
	max-width: 52ch;
	font-size: 15px;
	line-height: 1.65;
	color: var(--ec-ink-70);
}

.ec-feature__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-block-start: 8px;
}

.ec-feature__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 26px;
	border-radius: var(--ec-radius);
	background: var(--ec-brown);
	color: #fff !important;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none !important;
}

.ec-feature__cta:hover {
	background: var(--ec-brown-hover);
}

[dir="rtl"] .ec-feature__cta span,
[dir="rtl"] .ec-explore__arrow,
[dir="rtl"] .ec-explore__more span {
	display: inline-block;
	transform: scaleX(-1);
}

.ec-feature__note {
	margin: 6px 0 0 !important;
	font-size: 13px;
	color: var(--ec-muted);
}

/* ==========================================================================
 * Pagination (WooCommerce's own)
 * ========================================================================== */

.tax-product_cat .ec-collection .woocommerce-pagination {
	display: flex;
	justify-content: flex-end;
	margin-block-start: 40px;
	text-align: end;
}

.tax-product_cat .ec-collection .woocommerce-pagination ul.page-numbers {
	display: flex;
	gap: 8px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	list-style: none;
}

.tax-product_cat .ec-collection .woocommerce-pagination ul.page-numbers li {
	margin: 0 !important;
	border: 0 !important;
	float: none !important;
}

.tax-product_cat .ec-collection .woocommerce-pagination .page-numbers a,
.tax-product_cat .ec-collection .woocommerce-pagination .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 6px;
	border: 1px solid var(--ec-line-strong);
	border-radius: 999px;
	background: var(--ec-paper);
	font-size: 14px;
	font-weight: 500;
	color: var(--ec-ink);
	text-decoration: none;
}

.tax-product_cat .ec-collection .woocommerce-pagination .page-numbers span.current {
	border-color: var(--ec-brown);
	background: var(--ec-brown);
	color: #fff;
}

[dir="rtl"] .tax-product_cat .ec-collection .woocommerce-pagination .prev,
[dir="rtl"] .tax-product_cat .ec-collection .woocommerce-pagination .next {
	transform: scaleX(-1);
}

/* No products */
.tax-product_cat .ec-collection .woocommerce-info {
	margin: 0;
	padding: 24px;
	border: 1px solid var(--ec-line);
	border-radius: var(--ec-radius);
	background: var(--ec-paper);
	color: var(--ec-ink-70);
}

/* ==========================================================================
 * Explore other collections
 * ========================================================================== */

.ec-explore {
	margin-block-start: clamp(48px, 6vw, 88px);
	padding: clamp(24px, 3vw, 40px);
	border-radius: var(--ec-radius);
	background: var(--ec-card);
}

.ec-explore__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px 24px;
	margin-block-end: 22px;
}

.tax-product_cat .ec-explore__title {
	margin: 0 !important;
	font-family: var(--ec-serif) !important;
	font-size: clamp(24px, 2.4vw, 34px) !important;
	font-weight: 500 !important;
	line-height: 1.15 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: var(--ec-ink) !important;
}

.ec-explore__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-size: 14px;
	color: var(--ec-ink) !important;
	text-decoration: none !important;
}

.ec-explore__more:hover {
	text-decoration: underline !important;
	text-underline-offset: 4px;
}

.ec-explore__list {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 14px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.ec-explore__item {
	margin: 0 !important;
}

.ec-explore__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: var(--ec-radius);
	background: var(--ec-paper);
	overflow: hidden;
	color: var(--ec-ink) !important;
	text-decoration: none !important;
	transition: box-shadow 0.25s var(--ec-ease);
}

.ec-explore__link:hover {
	box-shadow: 0 10px 28px rgba(31, 22, 18, 0.09);
}

.ec-explore__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--ec-card-deep);
}

.ec-explore .ec-explore__img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center 25%;
	transition: transform 0.6s var(--ec-ease);
}

@media (hover: hover) {
	.ec-explore__link:hover .ec-explore__img {
		transform: scale(1.04);
	}
}

.ec-explore__initial {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--ec-serif);
	font-size: 54px;
	color: rgba(31, 22, 18, 0.28);
}

.ec-explore__name {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 48px;
	padding: 10px 14px;
	font-size: 14px;
	font-weight: 600;
}

@media (max-width: 1099px) {
	.ec-explore__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 599px) {
	.ec-explore {
		margin-inline: calc(var(--ec-gutter) * -1);
		border-radius: 0;
		padding-inline: var(--ec-gutter);
	}

	.ec-explore__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
}

/* ==========================================================================
 * Service strip
 * ========================================================================== */

.ec-services {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0;
	margin: clamp(32px, 4vw, 56px) 0 0 !important;
	padding: 0 !important;
	list-style: none !important;
	border-block: 1px solid var(--ec-line);
}

.ec-services__item {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin: 0 !important;
	padding: 24px 16px;
}

.ec-services__item + .ec-services__item {
	border-inline-start: 1px solid var(--ec-line);
}

.ec-services__icon {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	fill: none;
	stroke: var(--ec-ink);
	stroke-width: 1.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ec-services__copy {
	display: grid;
	gap: 3px;
	font-size: 13px;
	color: var(--ec-muted);
}

.ec-services__copy strong {
	font-family: var(--ec-serif);
	font-size: 17px;
	font-weight: 500;
	color: var(--ec-ink);
}

@media (max-width: 767px) {
	.ec-services__item {
		justify-content: flex-start;
		padding: 16px 4px;
	}

	.ec-services__item + .ec-services__item {
		border-inline-start: 0;
		border-block-start: 1px solid var(--ec-line);
	}
}

/* Cut-out category images: whole garment on its own white ground. */
.ec-hero.is-contain .ec-hero__media {
	background: #fff;
}

.ec-hero.is-contain .ec-hero__img {
	object-fit: contain;
	object-position: center;
	padding-block: 18px;
}

/* No filter panel (the category list was removed; price/availability only
   appear where the data supports them): products use the full width. */
.ec-collection__body.has-no-filters {
	grid-template-columns: minmax(0, 1fr);
}

/* Mobile toolbar: with no filter button, the sort control takes the row. */
@media (max-width: 899px) {
	.ec-toolbar__actions > .ec-sort:only-child {
		grid-column: 1 / -1;
	}
}
