/* Collection pages — horizontal filters like catakor.com (no left sidebar) */

body.ck-catakor-collection .main-page-wrapper,
body.ck-catakor-collection #main-content,
body.ck-catakor-collection .wd-content-layout,
body.ck-catakor-collection .wd-page-content {
	max-width: none !important;
	width: 100% !important;
	padding: 0 !important;
	padding-block: 0 !important;
	margin: 0 !important;
}

body.ck-catakor-collection .wd-page-title,
body.ck-catakor-collection .page-title {
	display: none !important;
}

.ck-collection {
	--ck-fg: #121212;
	--ck-muted: #6d6d6e;
	--ck-green: #375b2b;
	--ck-badge-bg: #fff;
	--ck-card-radius: 12px;
	--duration-extra-long: 0.6s;
	--ease-out-slow: cubic-bezier(0, 0, 0.3, 1);
	background: #fff;
	color: var(--ck-fg);
	font-family: Teachers, "Space Grotesk", Georgia, serif;
}

.ck-collection__inner {
	max-width: 1440px;
	margin: 0 auto;
	padding: 36px 50px 64px;
	box-sizing: border-box;
}

/* ---------- Hero ---------- */
.ck-collection__hero {
	margin-bottom: 4px;
}

.ck-collection__crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 5px;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.275;
	color: var(--ck-fg);
}

.ck-collection__crumbs a {
	color: inherit;
	text-decoration: none;
	opacity: 0.6;
}

.ck-collection__crumbs a:hover {
	text-decoration: underline;
	text-underline-offset: 0.3rem;
}

.ck-collection__crumb-sep {
	opacity: 0.5;
}

.ck-collection__title {
	margin: 0 0 28px;
	font-family: Adieu, "Space Grotesk", Teachers, sans-serif;
	font-size: clamp(28px, 3.2vw, 40px);
	font-weight: 600;
	line-height: 1.15;
	color: #000;
}

/* ---------- Horizontal toolbar (Filter left / Sort right) ---------- */
.ck-collection__toolbar {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	margin: 0 0 28px;
	position: relative;
	z-index: 5;
}

.ck-collection__filter-row,
.ck-collection__sort-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 16px;
}

.ck-collection__sort-row {
	margin-left: auto;
	flex-shrink: 0;
}

.ck-collection__filter-label {
	font-size: 14px;
	font-weight: 400;
	color: rgba(18, 18, 18, 0.85);
}

.ck-collection__sort {
	display: inline-flex;
	align-items: center;
	gap: 0;
	font-size: 14px;
	line-height: 1.5;
	color: rgba(18, 18, 18, 0.85);
}

.ck-collection__sort-label {
	margin-right: 12px;
	white-space: nowrap;
	color: rgba(18, 18, 18, 0.85);
}

.ck-collection__sort-select {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.ck-collection__sort select,
.ck-collection__sort-select select,
.ck-collection #ck-collection-sort {
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	min-width: 0;
	height: auto;
	padding: 0 1.4rem 0 0 !important;
	margin: 0;
	border: 0 !important;
	border-radius: 0 !important;
	outline: none;
	background: transparent !important;
	background-image: none !important;
	background-color: transparent !important;
	box-shadow: none !important;
	font: inherit;
	font-size: 14px;
	line-height: 1.5;
	color: #121212;
	cursor: pointer;
}

.ck-collection__sort select::-ms-expand,
.ck-collection__sort-select select::-ms-expand,
.ck-collection #ck-collection-sort::-ms-expand {
	display: none;
}

.ck-collection__sort-select::after {
	content: "";
	position: absolute;
	right: 2px;
	top: 50%;
	width: 7px;
	height: 7px;
	margin-top: 0;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-65%) rotate(45deg);
	pointer-events: none;
	opacity: 0.75;
}

.ck-collection__sort select:hover,
.ck-collection__sort-select select:hover,
.ck-collection #ck-collection-sort:hover {
	border: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
}

.ck-collection__sort select:focus,
.ck-collection__sort select:focus-visible,
.ck-collection__sort-select select:focus,
.ck-collection__sort-select select:focus-visible,
.ck-collection #ck-collection-sort:focus,
.ck-collection #ck-collection-sort:focus-visible {
	outline: 2px solid rgba(18, 18, 18, 0.35);
	outline-offset: 4px;
	border: 0 !important;
	box-shadow: none !important;
}

.ck-collection__count {
	margin: 0 0 0 20px;
	font-size: 14px;
	line-height: 1.5;
	font-weight: 400;
	color: rgba(18, 18, 18, 0.75);
	white-space: nowrap;
}

/* Inline facet dropdowns */
.ck-facet--inline {
	position: relative;
	border: 0;
	padding: 0;
}

.ck-facet--inline > .ck-facet__summary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 0;
	cursor: pointer;
	list-style: none;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
	user-select: none;
}

.ck-facet--inline > .ck-facet__summary::-webkit-details-marker {
	display: none;
}

.ck-facet--inline .ck-facet__caret {
	width: 10px;
	height: 6px;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.ck-facet--inline[open] > .ck-facet__summary .ck-facet__caret {
	transform: rotate(180deg);
}

.ck-facet--inline > .ck-facet__body {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 20;
	min-width: 260px;
	padding: 16px;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
	border: 1px solid rgba(18, 18, 18, 0.08);
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ck-facet__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 13px;
	color: rgba(18, 18, 18, 0.55);
}

.ck-facet__check {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	line-height: 1.35;
	cursor: pointer;
	color: var(--ck-fg);
}

.ck-facet__check input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.ck-facet__box {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	margin-top: 1px;
	border: 1px solid currentColor;
	box-sizing: border-box;
	background: #fff;
}

.ck-facet__check input:checked + .ck-facet__box {
	background: var(--ck-green);
	border-color: var(--ck-green);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 12 9'%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M11.35.643a.5.5 0 0 1 .006.707l-6.77 6.886a.5.5 0 0 1-.719-.006L.638 4.845a.5.5 0 1 1 .724-.69l2.872 3.011 6.41-6.517a.5.5 0 0 1 .707-.006z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 10px 8px;
}

.ck-facet__check.is-disabled,
.ck-facet__check:has(input:disabled) {
	opacity: 0.4;
	cursor: not-allowed;
}

.ck-facet__check em {
	font-style: normal;
	color: rgba(18, 18, 18, 0.55);
}

.ck-facet__price-note {
	margin: 0;
	font-size: 13px;
	color: rgba(18, 18, 18, 0.65);
}

.ck-facet__price-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.ck-facet__price-fields label {
	display: flex;
	align-items: center;
	gap: 6px;
	border: 1px solid rgba(18, 18, 18, 0.16);
	border-radius: 6px;
	padding: 8px 10px;
	font-size: 14px;
}

.ck-facet__price-fields input {
	width: 100%;
	border: 0;
	outline: 0;
	background: transparent;
	font: inherit;
	color: inherit;
	min-width: 0;
}

.ck-facet__reset {
	border: 0;
	background: none;
	padding: 0;
	font: inherit;
	font-size: 13px;
	color: var(--ck-fg);
	text-decoration: underline;
	text-underline-offset: 0.2rem;
	cursor: pointer;
}

.ck-facet__clear-all {
	border: 0;
	margin-left: 4px;
	padding: 8px 14px;
	border-radius: 6px;
	background: #f3f3f3;
	font: inherit;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #121212;
	cursor: pointer;
}

.ck-facet__clear-all:hover {
	background: #eaeaea;
}

/* ---------- Product grid (full width) ---------- */
.ck-collection__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ck-collection__item[hidden] {
	display: none !important;
}

/* ---------- Cards ---------- */
.ck-scard {
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: var(--ck-card-radius);
	overflow: hidden;
	background: #fff;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
	text-align: center;
}

.ck-scard__media-wrap {
	position: relative;
}

.ck-scard__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	background: #fff;
	overflow: hidden;
}

.ck-scard__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	transition: transform 0.55s ease;
}

@media (hover: hover) {
	.ck-scard:hover .ck-scard__media img {
		transform: scale(1.03);
	}
}

.ck-scard__badge {
	position: absolute;
	left: 14px;
	bottom: 14px;
	z-index: 2;
	display: inline-block;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--ck-badge-bg);
	color: #1e1e1e;
	font-size: 12px;
	font-weight: 400;
	line-height: 1;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.ck-scard__body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 18px 18px 20px;
	flex: 1;
}

.ck-scard__tag,
.ck-scard__title {
	margin: 0;
	font-family: Teachers, Georgia, serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.02em;
	color: #121212;
}

.ck-scard__title a {
	color: inherit;
	text-decoration: none;
}

.ck-scard__title a:hover {
	text-decoration: underline;
}

.ck-scard__sub {
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
	color: var(--ck-muted);
}

.ck-scard__cta {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	padding: 12px 18px;
	box-sizing: border-box;
	border-radius: 999px;
	border: 0;
	background: var(--ck-green);
	color: #fff !important;
	text-decoration: none !important;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, outline 0.15s ease;
}

.ck-scard__cta:hover,
.ck-scard__cta:focus-visible {
	background: #fff;
	color: var(--ck-green) !important;
	outline: 2px solid var(--ck-green);
}

.ck-scard__cta--sold,
.ck-scard.is-sold-out .ck-scard__cta--sold {
	background: rgba(55, 91, 43, 0.35);
	color: #fff !important;
	cursor: not-allowed;
	pointer-events: none;
	outline: 0;
}

.ck-collection__empty {
	margin: 40px 0 0;
	text-align: center;
	font-size: 15px;
	color: rgba(18, 18, 18, 0.65);
}

.ck-collection__about {
	margin-top: 56px;
	max-width: 66.67%;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ck-collection__about p {
	margin: 0;
	font-size: 18px;
	line-height: 1.55;
	color: rgba(18, 18, 18, 0.88);
}

/* ---------- Scroll animations ---------- */
.ck-collection .scroll-trigger.animate--fade-in,
.ck-collection .scroll-trigger.animate--slide-in {
	opacity: 0.01;
}

.ck-collection .scroll-trigger.animate--slide-in {
	transform: translateY(2rem);
}

.ck-collection .scroll-trigger:not(.scroll-trigger--offscreen).animate--fade-in {
	opacity: 1;
	animation: ck-col-fade-in var(--duration-extra-long) var(--ease-out-slow) forwards;
}

.ck-collection .scroll-trigger:not(.scroll-trigger--offscreen).animate--slide-in {
	animation: ck-col-slide-in var(--duration-extra-long) var(--ease-out-slow) forwards;
	animation-delay: calc(var(--animation-order, 0) * 75ms);
}

@keyframes ck-col-slide-in {
	from {
		opacity: 0.01;
		transform: translateY(2rem);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes ck-col-fade-in {
	from {
		opacity: 0.01;
	}
	to {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ck-collection .scroll-trigger.animate--fade-in,
	.ck-collection .scroll-trigger.animate--slide-in,
	.ck-collection .scroll-trigger:not(.scroll-trigger--offscreen).animate--fade-in,
	.ck-collection .scroll-trigger:not(.scroll-trigger--offscreen).animate--slide-in {
		opacity: 1;
		transform: none;
		animation: none;
	}
}

.ck-collection__item.is-hash-target {
	outline: 2px solid var(--ck-green);
	outline-offset: 6px;
	border-radius: 12px;
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 1199px) {
	.ck-collection__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media screen and (max-width: 989px) {
	.ck-collection__inner {
		padding: 28px 24px 48px;
	}

	.ck-collection__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px 12px;
	}

	.ck-collection__about {
		max-width: none;
	}
}

@media screen and (max-width: 749px) {
	.ck-collection__inner {
		padding: 20px 16px 40px;
	}

	.ck-collection__title {
		font-size: 26px;
		margin-bottom: 18px;
	}

	.ck-collection__toolbar {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.ck-collection__sort-row {
		justify-content: space-between;
	}

	.ck-scard__body {
		padding: 14px 12px 16px;
	}

	.ck-scard__title,
	.ck-scard__tag {
		font-size: 14px;
	}
}
