.ks-products {
	--ksp-bg: #f4f0e8;
	--ksp-surface: #fcfaf6;
	--ksp-ink: #181512;
	--ksp-muted: #6f675e;
	--ksp-accent: #96652e;
	--ksp-line: rgba(24, 21, 18, .16);
	--ksp-columns: 4;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--ksp-bg);
	color: var(--ksp-ink);
	font-family: inherit;
}

.ks-products *,
.ks-products *::before,
.ks-products *::after { box-sizing: border-box; }
.ks-products a { color: inherit; text-decoration: none; }
.ks-products button { font: inherit; }

.ks-products__blueprint {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	opacity: .24;
	background-image: linear-gradient(var(--ksp-line) 1px, transparent 1px), linear-gradient(90deg, var(--ksp-line) 1px, transparent 1px);
	background-size: 58px 58px;
	-webkit-mask-image: linear-gradient(to bottom, #000, transparent 72%);
	mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.ks-products__inner { width: 100%; margin-inline: auto; }
.ks-products__header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 48px;
	margin-bottom: 43px;
	padding-bottom: 29px;
	border-bottom: 1px solid var(--ksp-line);
}
.ks-products__heading { max-width: 850px; }
.ks-products__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	margin-bottom: 16px;
	color: var(--ksp-accent);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .19em;
	line-height: 1.35;
}
.ks-products__eyebrow::before { content: ""; width: 25px; height: 6px; background: repeating-linear-gradient(135deg, var(--ksp-accent) 0 4px, transparent 4px 7px); }
.ks-products__title { margin: 0; font-family: "Arial Narrow", "Roboto Condensed", sans-serif; font-size: clamp(42px, 5vw, 76px); font-weight: 900; letter-spacing: -.05em; line-height: .91; text-transform: uppercase; }
.ks-products__title em { color: var(--ksp-accent); font-style: normal; }
.ks-products__heading p { max-width: 690px; margin: 20px 0 0; color: var(--ksp-muted); font-size: 16px; line-height: 1.7; }
.ks-products__header-actions { display: flex; align-items: center; gap: 22px; }
.ks-products__catalog { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; color: var(--ksp-ink); font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.ks-products__catalog svg { transition: transform .2s ease; }
.ks-products__catalog:hover { color: var(--ksp-accent); }
.ks-products__catalog:hover svg { transform: translateX(4px); }
.ks-products__controls { display: flex; gap: 8px; }
.ks-products__control {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 1px solid var(--ksp-ink);
	background: transparent;
	color: var(--ksp-ink);
	cursor: pointer;
	transition: background .2s ease, color .2s ease, opacity .2s ease, transform .2s ease;
}
.ks-products__control:hover:not(:disabled) { background: var(--ksp-ink); color: var(--ksp-bg); transform: translateY(-2px); }
.ks-products__control:disabled { opacity: .28; cursor: default; }

.ks-products__viewport { width: 100%; min-width: 0; outline: none; }
.ks-products__track { display: grid; grid-template-columns: repeat(var(--ksp-columns), minmax(0, 1fr)); gap: 18px; }
.ks-products.layout-arsenal__track { min-width: 0; }
.ks-products.layout-arsenal .ks-products__viewport { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; }
.ks-products.layout-arsenal .ks-products__viewport::-webkit-scrollbar { display: none; }
.ks-products.layout-arsenal .ks-products__track { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - (18px * (var(--ksp-columns) - 1))) / var(--ksp-columns)); }
.ks-products.layout-arsenal .ks-product-card { scroll-snap-align: start; }

.ks-product-card {
	position: relative;
	display: flex;
	min-width: 0;
	min-height: 100%;
	flex-direction: column;
	border: 1px solid var(--ksp-line);
	background: var(--ksp-surface);
	transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.ks-product-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	background: color-mix(in srgb, var(--ksp-bg) 76%, #fff);
	aspect-ratio: 4 / 3;
	border-bottom: 1px solid var(--ksp-line);
}
.ks-products.ratio-wide .ks-product-card__media { aspect-ratio: 16 / 10; }
.ks-products.ratio-square .ks-product-card__media { aspect-ratio: 1; }
.ks-products.ratio-portrait .ks-product-card__media { aspect-ratio: 4 / 5; }
.ks-product-card__media::after { content: ""; position: absolute; inset: auto 0 0; height: 42%; background: linear-gradient(to top, rgba(24,21,18,.12), transparent); opacity: 0; transition: opacity .3s ease; }
.ks-product-card__media img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 18px; mix-blend-mode: multiply; transition: transform .55s cubic-bezier(.2,.8,.2,1); }
.ks-product-card__index { position: absolute; z-index: 2; top: 19px; right: 20px; color: color-mix(in srgb, var(--ksp-ink) 32%, transparent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.ks-product-card__badge { position: absolute; z-index: 3; top: 18px; left: 18px; max-width: calc(100% - 70px); padding: 8px 11px; background: var(--ksp-ink); color: var(--ksp-bg); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; font-weight: 800; letter-spacing: .14em; line-height: 1.2; text-transform: uppercase; }
.ks-product-card__badge.is-sale { background: var(--ksp-accent); color: #fff; }
.ks-product-card__badge.is-featured { border: 1px solid var(--ksp-accent); background: color-mix(in srgb, var(--ksp-surface) 92%, transparent); color: var(--ksp-accent); }
.ks-product-card__media-action { position: absolute; z-index: 3; right: 17px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 7px 10px; background: var(--ksp-ink); color: var(--ksp-bg); font-size: 9px; font-weight: 800; letter-spacing: .12em; opacity: 0; transform: translateY(8px); text-transform: uppercase; transition: opacity .25s ease, transform .25s ease; }
.ks-product-card__body { display: flex; flex: 1; flex-direction: column; min-height: 250px; padding: 25px 25px 22px; }
.ks-product-card__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 13px; min-height: 19px; margin-bottom: 13px; color: var(--ksp-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; font-weight: 750; letter-spacing: .11em; line-height: 1.4; text-transform: uppercase; }
.ks-product-card__category a { color: var(--ksp-accent); }
.ks-product-card__title { margin: 0; font-family: "Arial Narrow", "Roboto Condensed", sans-serif; font-size: clamp(23px, 2vw, 31px); font-weight: 900; letter-spacing: -.035em; line-height: 1.02; text-transform: uppercase; }
.ks-product-card__title a { display: inline; background: linear-gradient(var(--ksp-accent),var(--ksp-accent)) 0 100%/0 2px no-repeat; transition: background-size .3s ease; }
.ks-product-card__excerpt { margin: 16px 0 0; color: var(--ksp-muted); font-size: 13px; line-height: 1.6; }
.ks-product-card__rating { margin-top: 13px; color: var(--ksp-accent); }
.ks-product-card__rating .star-rating { float: none; margin: 0; }
.ks-product-card__footer { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 22px; }
.ks-product-card__price { color: var(--ksp-ink); font-family: "Arial Narrow", "Roboto Condensed", sans-serif; font-size: clamp(25px, 2.2vw, 36px); font-weight: 900; letter-spacing: -.035em; line-height: 1; }
.ks-product-card__price del { display: block; margin-bottom: 5px; color: var(--ksp-muted); font-size: 13px; font-weight: 600; opacity: .75; }
.ks-product-card__price ins { text-decoration: none; }
.ks-product-card__button {
	display: inline-flex !important;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 52px;
	height: 52px;
	min-height: 52px;
	padding: 0 15px !important;
	border: 1px solid var(--ksp-accent) !important;
	border-radius: 0 !important;
	background: var(--ksp-accent) !important;
	color: #fff !important;
	font-size: 10px !important;
	font-weight: 800 !important;
	letter-spacing: .09em;
	line-height: 1 !important;
	text-transform: uppercase;
	transition: background .2s ease, color .2s ease, transform .2s ease !important;
}
.ks-product-card__button svg { flex: 0 0 auto; }
.ks-product-card__button:hover { background: var(--ksp-ink) !important; border-color: var(--ksp-ink) !important; transform: translateY(-2px); }
.ks-product-card__button.loading { opacity: .65; pointer-events: none; }
.ks-product-card__button.added { background: #27693c !important; border-color: #27693c !important; }
.ks-products__progress { position: relative; height: 2px; margin-top: 28px; overflow: hidden; background: var(--ksp-line); }
.ks-products__progress i { display: block; width: 20%; height: 100%; background: var(--ksp-accent); transform-origin: left; transition: width .25s ease, transform .25s ease; }
.ks-products__empty { display: grid; place-items: center; min-height: 280px; padding: 40px; border: 1px dashed var(--ksp-line); text-align: center; }
.ks-products__empty strong { font-size: 22px; }
.ks-products__empty span { color: var(--ksp-muted); }

/* Editorial: airy catalog with an asymmetric rhythm. */
.ks-products.layout-editorial .ks-products__blueprint { display: none; }
.ks-products.layout-editorial .ks-products__header { grid-template-columns: minmax(0, .85fr) minmax(280px, .4fr); align-items: start; }
.ks-products.layout-editorial .ks-products__header-actions { align-self: end; justify-content: flex-end; }
.ks-products.layout-editorial .ks-products__track { gap: 42px 22px; }
.ks-products.layout-editorial .ks-product-card { border: 0; background: transparent; }
.ks-products.layout-editorial .ks-product-card__media { border: 1px solid var(--ksp-line); }
.ks-products.layout-editorial .ks-product-card__body { min-height: 230px; padding: 22px 3px 0; }
.ks-products.layout-editorial .ks-product-card:nth-child(4n+2) { transform: translateY(36px); }

/* Spotlight: the first product owns the composition. */
.ks-products.layout-spotlight .ks-products__track { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ks-products.layout-spotlight .ks-product-card:first-child { grid-column: span 2; grid-row: span 2; }
.ks-products.layout-spotlight .ks-product-card:first-child .ks-product-card__media { aspect-ratio: 16 / 11; }
.ks-products.layout-spotlight .ks-product-card:first-child .ks-product-card__body { min-height: 290px; padding: 32px; }
.ks-products.layout-spotlight .ks-product-card:first-child .ks-product-card__title { max-width: 630px; font-size: clamp(38px, 4.2vw, 66px); }
.ks-products.layout-spotlight .ks-product-card:first-child .ks-product-card__price { font-size: clamp(35px, 3vw, 48px); }
.ks-products.layout-spotlight .ks-product-card:not(:first-child) .ks-product-card__button span { display: none; }

/* Blueprint: darker, dense and explicitly technical. */
.ks-products.layout-blueprint { --ksp-bg: #191714; --ksp-surface: #211e1a; --ksp-ink: #f7f1e7; --ksp-muted: rgba(247,241,231,.58); --ksp-line: rgba(247,241,231,.14); }
.ks-products.layout-blueprint .ks-products__blueprint { opacity: .48; }
.ks-products.layout-blueprint .ks-products__header { border-bottom-style: dashed; }
.ks-products.layout-blueprint .ks-product-card { clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); }
.ks-products.layout-blueprint .ks-product-card__media { background: #ebe6dd; }
.ks-products.layout-blueprint .ks-product-card__body { min-height: 225px; }
.ks-products.layout-blueprint .ks-product-card__index { color: rgba(24,21,18,.45); }
.ks-products.layout-blueprint .ks-product-card__badge.is-featured { background: #ebe6dd; }

/* Hover modes. */
.ks-products.hover-lift .ks-product-card:hover { z-index: 2; border-color: var(--ksp-accent); box-shadow: 0 22px 48px rgba(24,21,18,.13); transform: translateY(-7px); }
.ks-products.layout-editorial.hover-lift .ks-product-card:nth-child(4n+2):hover { transform: translateY(29px); }
.ks-products.hover-zoom .ks-product-card:hover .ks-product-card__media img,
.ks-products.hover-lift .ks-product-card:hover .ks-product-card__media img { transform: scale(1.045) rotate(-1deg); }
.ks-products.hover-reveal .ks-product-card:hover .ks-product-card__media-action,
.ks-products.hover-lift .ks-product-card:hover .ks-product-card__media-action { opacity: 1; transform: none; }
.ks-products .ks-product-card:hover .ks-product-card__media::after { opacity: 1; }
.ks-products .ks-product-card:hover .ks-product-card__title a { background-size: 100% 2px; }

.ks-products a:focus-visible,
.ks-products button:focus-visible,
.ks-products__viewport:focus-visible { outline: 2px solid var(--ksp-accent); outline-offset: 4px; }

.ks-products.has-reveal.is-reveal-ready .ks-products__header,
.ks-products.has-reveal.is-reveal-ready .ks-product-card { opacity: 0; transform: translateY(22px); }
.ks-products.has-reveal.is-reveal-ready .ks-products__header { transition: opacity .65s ease, transform .65s ease; }
.ks-products.has-reveal.is-reveal-ready .ks-product-card { transition: opacity .55s ease, transform .55s ease, box-shadow .3s ease, border-color .3s ease; }
.ks-products.has-reveal.is-reveal-ready.is-visible .ks-products__header,
.ks-products.has-reveal.is-reveal-ready.is-visible .ks-product-card { opacity: 1; transform: none; }
.ks-products.has-reveal.is-reveal-ready.is-visible .ks-product-card:nth-child(2) { transition-delay: .06s; }
.ks-products.has-reveal.is-reveal-ready.is-visible .ks-product-card:nth-child(3) { transition-delay: .12s; }
.ks-products.has-reveal.is-reveal-ready.is-visible .ks-product-card:nth-child(4) { transition-delay: .18s; }
.ks-products.has-reveal.is-reveal-ready.is-visible .ks-product-card:nth-child(n+5) { transition-delay: .22s; }
.ks-products.layout-editorial.has-reveal.is-reveal-ready.is-visible .ks-product-card:nth-child(4n+2) { transform: translateY(36px); }

.ks-products-dependency { display: grid; gap: 7px; padding: 24px; border-left: 4px solid #96652e; background: #f4f0e8; color: #181512; }
.ks-products-dependency span { color: #6f675e; }

@media (max-width: 1180px) {
	.ks-products__header { gap: 30px; }
	.ks-products__header-actions { align-items: flex-end; flex-direction: column-reverse; }
	.ks-products.layout-spotlight .ks-products__track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ks-products.layout-spotlight .ks-product-card:first-child { grid-column: 1 / -1; grid-row: auto; }
}

@media (max-width: 767px) {
	.ks-products__blueprint { background-size: 40px 40px; }
	.ks-products__header { grid-template-columns: 1fr; gap: 24px; margin-bottom: 28px; padding-bottom: 24px; }
	.ks-products__eyebrow { margin-bottom: 13px; font-size: 9px; }
	.ks-products__title { font-size: clamp(42px, 13vw, 58px); }
	.ks-products__heading p { margin-top: 17px; font-size: 15px; line-height: 1.62; }
	.ks-products__header-actions { align-items: center; flex-direction: row; justify-content: space-between; width: 100%; }
	.ks-products__catalog { min-height: 44px; }
	.ks-products__control { width: 46px; height: 46px; }
	.ks-products.layout-arsenal .ks-products__track { grid-auto-columns: 86%; gap: 12px; }
	.ks-product-card__media img { padding: 14px; }
	.ks-product-card__body { min-height: 232px; padding: 22px 20px 20px; }
	.ks-product-card__title { font-size: clamp(26px, 8vw, 34px); }
	.ks-product-card__footer { padding-top: 19px; }
	.ks-product-card__button { min-width: 50px; height: 50px; min-height: 50px; }
	.ks-product-card__button span { display: none; }
	.ks-products__progress { margin-top: 20px; }
	.ks-products.layout-editorial .ks-products__header { grid-template-columns: 1fr; }
	.ks-products.layout-editorial .ks-products__header-actions { align-self: auto; justify-content: flex-start; }
	.ks-products.layout-editorial .ks-products__track,
	.ks-products.layout-blueprint .ks-products__track { grid-template-columns: 1fr; gap: 18px; }
	.ks-products.layout-editorial .ks-product-card:nth-child(4n+2),
	.ks-products.layout-editorial.hover-lift .ks-product-card:nth-child(4n+2):hover,
	.ks-products.layout-editorial.has-reveal.is-reveal-ready.is-visible .ks-product-card:nth-child(4n+2) { transform: none; }
	.ks-products.layout-spotlight .ks-products__track { grid-template-columns: 1fr; }
	.ks-products.layout-spotlight .ks-product-card:first-child { grid-column: auto; }
	.ks-products.layout-spotlight .ks-product-card:first-child .ks-product-card__body { min-height: 250px; padding: 24px 20px 20px; }
	.ks-products.layout-spotlight .ks-product-card:first-child .ks-product-card__title { font-size: clamp(32px, 10vw, 45px); }
}

@media (prefers-reduced-motion: reduce) {
	.ks-products *, .ks-products *::before, .ks-products *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
