.rekhi-mat{
	--rml-accent:#ff6b00;
	--rml-accent-rgb:255,107,0;
	--rml-bg:#0a0a0a;
	--rml-text:#fff;
	--rml-muted:#aaaaaa;
	--rml-surface:#141414;
	--rml-surface-rgb:20,20,20;
	--rml-swatch:#3a3a48;
	color:var(--rml-text);
	background:var(--rml-bg);
	padding:2.5rem 0 2rem;
	font-family:inherit;
}
.rekhi-mat__header{text-align:center;max-width:720px;margin:0 auto 1.75rem;padding:0 1rem}
.rekhi-mat__title{margin:0 0 .5rem;font-size:clamp(1.45rem,2.4vw,2rem);font-weight:700;letter-spacing:.01em}
.rekhi-mat__subtitle{margin:0;color:var(--rml-muted);font-size:.95rem;line-height:1.55}

.rekhi-mat__carousel-wrap{position:relative;display:flex;align-items:center;gap:.35rem;padding:0 .5rem}
.rekhi-mat__nav{
	flex:0 0 auto;width:42px;height:42px;border-radius:50%;
	border:1px solid rgba(255,255,255,.12);background:rgba(var(--rml-surface-rgb),.85);
	color:var(--rml-text);font-size:1.4rem;line-height:1;cursor:pointer;z-index:2;
	transition:background .2s,border-color .2s,transform .2s;
}
.rekhi-mat__nav:hover{background:rgba(var(--rml-accent-rgb),.18);border-color:var(--rml-accent);transform:scale(1.04)}
.rekhi-mat__track{
	display:flex;gap:1rem;overflow-x:auto;scroll-snap-type:x mandatory;
	padding:.5rem .25rem 1rem;scrollbar-width:thin;flex:1;scroll-behavior:smooth;
	-webkit-overflow-scrolling:touch;
}
.rekhi-mat__track::-webkit-scrollbar{height:6px}
.rekhi-mat__track::-webkit-scrollbar-thumb{background:rgba(var(--rml-accent-rgb),.45);border-radius:4px}

.rekhi-mat__grid{
	display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
	gap:1rem;padding:0 1rem 1rem;max-width:1200px;margin:0 auto;
}

.rekhi-mat__card{
	flex:0 0 min(78vw,260px);scroll-snap-align:center;
	background:var(--rml-surface);border:1px solid rgba(255,255,255,.08);
	border-radius:14px;overflow:hidden;transition:border-color .25s,box-shadow .25s,transform .25s;
}
.rekhi-mat__grid .rekhi-mat__card{flex:none}
.rekhi-mat__card.is-active{
	border-color:rgba(var(--rml-accent-rgb),.55);
	box-shadow:0 0 0 1px rgba(var(--rml-accent-rgb),.25),0 12px 28px rgba(0,0,0,.35);
	transform:translateY(-2px);
}
.rekhi-mat__card-btn{
	display:block;width:100%;padding:0;border:0;background:transparent;color:inherit;
	text-align:left;cursor:pointer;font:inherit;
}
.rekhi-mat__media{display:block;aspect-ratio:16/10;overflow:hidden;background:var(--rml-swatch)}
.rekhi-mat__media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .45s ease}
.rekhi-mat__card.is-active .rekhi-mat__media img{transform:scale(1.04)}
.rekhi-mat__swatch{
	display:block;width:100%;height:100%;
	background:linear-gradient(135deg,var(--rml-swatch),color-mix(in srgb,var(--rml-swatch) 60%,#000));
}
.rekhi-mat__card-body{display:flex;flex-direction:column;gap:.35rem;padding:.9rem 1rem 1.05rem}
.rekhi-mat__name{font-weight:700;font-size:1.02rem}
.rekhi-mat__desc{
	color:var(--rml-muted);font-size:.82rem;line-height:1.45;
	display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.rekhi-mat__opt-count{
	margin-top:.15rem;font-size:.72rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;
	color:var(--rml-accent);
}

.rekhi-mat__detail{
	max-width:1100px;margin:1.25rem auto 0;padding:0 1rem;
	animation:rmlFade .35s ease;
}
.rekhi-mat__detail-panel{display:none}
.rekhi-mat__detail-panel.is-active{display:block}
.rekhi-mat__detail-head{margin-bottom:1rem}
.rekhi-mat__detail-head h3{margin:0 0 .4rem;font-size:1.2rem}
.rekhi-mat__detail-head p{margin:0;color:var(--rml-muted);font-size:.92rem;line-height:1.5;max-width:70ch}
.rekhi-mat__options{
	display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem;
}
.rekhi-mat__option{
	background:rgba(var(--rml-surface-rgb),.9);border:1px solid rgba(255,255,255,.08);
	border-radius:12px;overflow:hidden;transition:border-color .2s,transform .2s;
}
.rekhi-mat__option:hover{border-color:rgba(var(--rml-accent-rgb),.4);transform:translateY(-2px)}
.rekhi-mat__option-media{aspect-ratio:4/3;background:rgba(255,255,255,.04)}
.rekhi-mat__option-media img{width:100%;height:100%;object-fit:cover;display:block}
.rekhi-mat__option-placeholder{
	display:block;width:100%;height:100%;
	background:repeating-linear-gradient(-32deg,rgba(255,255,255,.04),rgba(255,255,255,.04) 8px,transparent 8px,transparent 16px);
}
.rekhi-mat__option-body{padding:.75rem .85rem .95rem}
.rekhi-mat__option-body h4{margin:0 0 .3rem;font-size:.95rem}
.rekhi-mat__option-body p{margin:0;color:var(--rml-muted);font-size:.82rem;line-height:1.45}
.rekhi-mat__empty{color:var(--rml-muted);font-size:.9rem;text-align:center;padding:1rem}

@keyframes rmlFade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

@media (prefers-reduced-motion:reduce){
	.rekhi-mat__card,.rekhi-mat__option,.rekhi-mat__media img,.rekhi-mat__detail{transition:none;animation:none}
	.rekhi-mat__track{scroll-behavior:auto}
}
@media (max-width:640px){
	.rekhi-mat__nav{display:none}
	.rekhi-mat__card{flex-basis:min(86vw,280px)}
}
