/* Category covers — level-matched layouts */

body.cl-cat .rey-pageCover,
body.cl-cat .cl-cat-cover-host {
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	overflow: hidden;
	width: 100%;
	max-width: 100%;
}

.cl-cat-cover__title {
	margin: 0;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: 0.01em;
	/* Sentence case as stored/formatted — never force ALL CAPS on hero titles */
	text-transform: none !important;
	color: inherit;
	hyphens: none;
	-webkit-hyphens: none;
	word-break: keep-all;
	overflow-wrap: normal;
}

body.cl-cat .rey-pageCover .elementor,
body.cl-cat .rey-pageCover .elementor-section,
body.cl-cat .rey-pageCover .elementor-container,
body.cl-cat .rey-pageCover .elementor-widget-wrap {
	margin: 0 !important;
	padding: 0 !important;
	max-width: none !important;
	background: transparent !important;
}

.cl-cat-cover {
	--ink: var(--cl-ink, #14110f);
	--muted: var(--cl-muted, #5a5049);
	--paper: var(--cl-paper, #f3eee7);
	--white: var(--cl-white, #fffdf9);
	--line: var(--cl-line, #d9cdc0);
	--accent: var(--cl-accent, #7a4a30);
	position: relative;
	color: var(--ink);
	font-family: Manrope, system-ui, sans-serif;
	isolation: isolate;
}

.cl-cat-cover *,
.cl-cat-cover *::before,
.cl-cat-cover *::after {
	box-sizing: border-box;
}

.cl-cat-cover__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
	z-index: 0;
}

/* Pseudo-image: background-position always crops to center (img sizing was broken by theme) */
.cl-cat-cover__media::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--cl-cover-img);
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

.cl-cat-cover__veil {
	position: absolute;
	inset: 0;
	display: block;
}

.cl-cat-cover__inner {
	position: relative;
	z-index: 1;
	max-width: 1180px;
	margin: 0 auto;
	width: 100%;
}

.cl-cat-cover__eyebrow {
	margin: 0 0 12px;
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-weight: 700;
}

.cl-cat-cover__title {
	margin: 0;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: 0.01em;
	text-transform: none !important;
	color: inherit;
}

.cl-cat-cover__text {
	margin: 14px 0 0;
	max-width: 36em;
	font-size: 1rem;
	line-height: 1.55;
	font-weight: 500;
}

.cl-cat-cover__meta {
	margin: 16px 0 0;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-weight: 700;
	opacity: 0.85;
}

/* ——— Level 0: top categories — cinematic full-bleed ——— */
.cl-cat-cover--l0 {
	min-height: clamp(340px, 48vw, 520px);
	display: flex;
	align-items: flex-end;
	color: #fffdf9;
}

.cl-cat-cover--l0 .cl-cat-cover__veil {
	background:
		linear-gradient(180deg, rgba(20, 17, 15, 0.15) 0%, rgba(20, 17, 15, 0.55) 55%, rgba(20, 17, 15, 0.78) 100%),
		radial-gradient(80% 60% at 20% 80%, rgba(122, 74, 48, 0.28), transparent 60%);
}

.cl-cat-cover--l0 .cl-cat-cover__inner {
	padding: clamp(28px, 5vw, 56px) 24px clamp(36px, 5vw, 64px);
}

.cl-cat-cover--l0 .cl-cat-cover__eyebrow {
	color: rgba(255, 248, 242, 0.88);
}

.cl-cat-cover--l0 .cl-cat-cover__title {
	font-size: clamp(2.6rem, 7vw, 4.6rem);
	color: #fffdf9;
	max-width: 12ch;
}

.cl-cat-cover--l0 .cl-cat-cover__text {
	color: rgba(255, 248, 242, 0.9);
	font-size: 1.05rem;
}

.cl-cat-chips {
	margin: 20px 0 0;
	padding: 0;
}

.cl-cat-chips__scroller {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	padding: 2px 0 10px;
	mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
}

.cl-cat-chips__scroller::-webkit-scrollbar {
	display: none;
}

.cl-cat-chips__item {
	flex: 0 0 auto;
	scroll-snap-align: start;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 0.84rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-decoration: none;
	text-transform: none !important;
	white-space: nowrap;
	border: 1px solid transparent;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cl-cat-cover--l0 .cl-cat-chips {
	margin-left: -24px;
	margin-right: -24px;
	width: calc(100% + 48px);
}

.cl-cat-cover--l0 .cl-cat-chips__scroller {
	padding-left: 24px;
	padding-right: 28px;
}

.cl-cat-cover--l0 .cl-cat-chips__item {
	color: #fffdf9;
	background: rgba(255, 248, 242, 0.12);
	border-color: rgba(255, 248, 242, 0.28);
}

.cl-cat-cover--l0 .cl-cat-chips__item:hover,
.cl-cat-cover--l0 .cl-cat-chips__item:focus-visible,
.cl-cat-cover--l0 .cl-cat-chips__item.is-current {
	background: rgba(255, 248, 242, 0.22);
	border-color: rgba(255, 248, 242, 0.7);
	outline: none;
	color: #fff;
}

.cl-cat-cover--l1 .cl-cat-chips {
	margin-left: -8px;
	margin-right: -8px;
}

.cl-cat-cover--l1 .cl-cat-chips__scroller {
	padding-left: 8px;
	padding-right: 20px;
}

.cl-cat-cover--l1 .cl-cat-chips__item {
	color: var(--ink, #14110f);
	background: #fff;
	border-color: var(--line, #d9cdc0);
}

.cl-cat-cover--l1 .cl-cat-chips__item:hover,
.cl-cat-cover--l1 .cl-cat-chips__item:focus-visible,
.cl-cat-cover--l1 .cl-cat-chips__item.is-current {
	border-color: var(--accent, #7a4a30);
	color: var(--accent, #7a4a30);
	outline: none;
}

.cl-shop-cats {
	background: transparent;
	border: 0;
	margin: 16px 0 20px;
}

body.woocommerce-shop .woocommerce-products-header {
	padding-top: 8px;
}

body.woocommerce-shop .woocommerce-products-header__title.page-title {
	margin-bottom: 0;
}

.cl-shop-cats .cl-cat-chips {
	margin: 0;
}

.cl-shop-cats .cl-cat-chips__scroller {
	gap: 10px;
	padding: 2px 4px 12px;
	mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 36px), transparent 100%);
}

.cl-cat-chips--shop .cl-cat-chips__item {
	color: #1a1612;
	background: #e8dfd3;
	border: 0;
	padding: 10px 16px;
	font-size: 0.88rem;
	font-weight: 600;
}

.cl-cat-chips--shop .cl-cat-chips__item:hover,
.cl-cat-chips--shop .cl-cat-chips__item:focus-visible {
	background: #ddd2c3;
	color: #1a1612;
	outline: none;
}

.cl-cat-chips--shop .cl-cat-chips__item.is-current {
	background: #cbb8a3;
	color: #1a1612;
}

@media (min-width: 900px) {
	.cl-cat-cover--l0 .cl-cat-chips {
		margin-left: 0;
		margin-right: 0;
		width: auto;
		max-width: 46em;
	}

	.cl-cat-cover .cl-cat-chips__scroller {
		flex-wrap: wrap;
		overflow: visible;
		mask-image: none;
		padding-right: 0;
		padding-bottom: 0;
	}

	.cl-cat-cover--l0 .cl-cat-chips__scroller {
		padding-left: 0;
	}

	.cl-shop-cats .cl-cat-chips__scroller {
		padding-left: 0;
		padding-right: 8px;
	}
}

.cl-cat-cover--l0 .cl-cat-cover__media::before {
	animation: cl-cat-drift 22s ease-in-out infinite alternate;
}

/* ——— Level 1: mid categories — overlapping text card ——— */
.cl-cat-cover--l1 {
	min-height: 0;
	background: #f7f2ec;
	padding: 0 0 8px;
}

.cl-cat-cover--l1 .cl-cat-cover__media {
	position: relative;
	inset: auto;
	width: 100%;
	aspect-ratio: 16 / 9;
	max-height: 420px;
}

.cl-cat-cover--l1 .cl-cat-cover__veil {
	background:
		linear-gradient(180deg, transparent 40%, rgba(20, 17, 15, 0.18) 100%);
}

.cl-cat-cover--l1 .cl-cat-cover__inner {
	margin: -48px 16px 0;
	max-width: none;
	width: auto;
	padding: 22px 20px 24px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 18px;
	box-shadow: 0 14px 34px rgba(31, 26, 23, 0.08);
	color: var(--ink);
}

.cl-cat-cover--l1 .cl-cat-cover__eyebrow {
	color: var(--accent);
}

.cl-cat-cover--l1 .cl-cat-cover__title {
	font-size: clamp(2rem, 5vw, 3.2rem);
	max-width: 16ch;
}

.cl-cat-cover--l1 .cl-cat-cover__text {
	color: var(--muted);
}

@media (min-width: 900px) {
	.cl-cat-cover--l1 {
		display: grid;
		grid-template-columns: 1.15fr 0.85fr;
		min-height: clamp(320px, 38vw, 440px);
		padding: 0;
		background: var(--white);
	}

	.cl-cat-cover--l1 .cl-cat-cover__media {
		position: absolute;
		inset: 0;
		aspect-ratio: auto;
		max-height: none;
		width: 58%;
		right: auto;
		left: 0;
	}

	.cl-cat-cover--l1 .cl-cat-cover__veil {
		background:
			linear-gradient(90deg, transparent 55%, rgba(251, 249, 246, 0.55) 78%, #fbf9f6 100%);
	}

	.cl-cat-cover--l1 .cl-cat-cover__inner {
		grid-column: 2;
		margin: 0;
		align-self: center;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		background: transparent;
		padding: 40px 48px 40px 24px;
		max-width: 520px;
	}
}

/* ——— Level 2+: compact elegant strip ——— */
.cl-cat-cover--l2 {
	min-height: clamp(180px, 28vw, 260px);
	display: flex;
	align-items: center;
	color: var(--ink);
	background: #f3ebe2;
}

.cl-cat-cover--l2 .cl-cat-cover__media {
	opacity: 0.42;
}

.cl-cat-cover--l2 .cl-cat-cover__veil {
	background:
		linear-gradient(105deg, rgba(250, 246, 241, 0.94) 0%, rgba(250, 246, 241, 0.72) 42%, rgba(243, 235, 226, 0.35) 100%);
}

.cl-cat-cover--l2 .cl-cat-cover__inner {
	padding: 28px 24px;
}

.cl-cat-cover--l2 .cl-cat-cover__eyebrow {
	color: var(--accent);
}

.cl-cat-cover--l2 .cl-cat-cover__title {
	font-size: clamp(1.85rem, 4.5vw, 2.75rem);
}

.cl-cat-cover--l2 .cl-cat-cover__text {
	color: var(--muted);
	font-size: 0.95rem;
	max-width: 42em;
}

@keyframes cl-cat-drift {
	from { transform: scale(1.02) translate3d(0, 0, 0); }
	to { transform: scale(1.06) translate3d(-1.2%, -0.8%, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.cl-cat-cover--l0 .cl-cat-cover__media::before {
		animation: none;
		transform: none;
	}
}

/* Soft paper behind catalog after cover */
body.cl-cat .site-content,
body.tax-product_cat .site-content {
	background:
		linear-gradient(180deg, #fbf9f6 0%, #f2eee8 100%);
}

body.cl-cat .rey-siteMain,
body.cl-cat .rey-siteMain-inner {
	background: transparent;
}

.cl-cat-seo {
	max-width: 1080px;
	margin: 8px auto 48px;
	padding: 0 20px;
	color: var(--cl-ink, #14110f);
	font-family: Manrope, system-ui, sans-serif;
}

.cl-cat-seo__inner {
	max-width: 46em;
}

.cl-cat-seo h2 {
	margin: 1.75rem 0 0.65rem;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: clamp(1.45rem, 3vw, 1.85rem);
	font-weight: 500;
	text-transform: none;
}

.cl-cat-seo__cta {
	margin: 0 0 1.25rem;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid var(--cl-line, #e6e0d8);
	color: var(--cl-ink, #14110f);
	font-size: 1rem;
	line-height: 1.5;
}

.cl-cat-seo p,
.cl-cat-seo li {
	margin: 0 0 0.7rem;
	color: var(--cl-muted, #5a5049);
	line-height: 1.65;
	font-size: 0.98rem;
}

.cl-cat-seo ul {
	margin: 0 0 1rem;
	padding-left: 1.15rem;
}

.cl-cat-seo a {
	color: var(--cl-ink, #14110f);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.14em;
}

.cl-cat-seo a:hover {
	color: var(--cl-accent, #7a4a30);
}

.cl-cat-seo__faq details {
	border: 1px solid var(--cl-line, #e6e0d8);
	background: #fff;
	padding: 12px 14px;
	margin: 0 0 8px;
}

.cl-cat-seo__faq summary {
	cursor: pointer;
	font-weight: 700;
	list-style: none;
}

.cl-cat-seo__faq summary::-webkit-details-marker {
	display: none;
}

.cl-cat-seo__faq details p {
	margin: 8px 0 0;
}

@media (max-width: 767px) {
	.cl-cat-seo {
		padding: 0 16px 8px;
	}
}
