/**
 * Product presentation — category cards + product grid/tabs.
 * IE / legacy: padding-box aspect ratio (no reliance on aspect-ratio alone),
 * explicit block cards (never inline accent text dump).
 */

.rekhi-pp {
	padding: 3.5rem 0;
}

.rekhi-pp-eyebrow {
	margin: 0 0 0.5rem;
	text-align: center;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rekhi-accent, #ec3136);
}

.rekhi-pp-title {
	margin: 0 0 2rem;
	text-align: center;
	font-size: 1.75rem;
	font-size: clamp(1.75rem, 3vw, 2.4rem);
	font-weight: 800;
	color: var(--rekhi-heading, #fff);
}

/* Feature columns (3 promo texts) */
.rekhi-pp-features {
	display: -ms-grid;
	display: grid;
	-ms-grid-columns: 1fr 1.5rem 1fr 1.5rem 1fr;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem 2rem;
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
}

.rekhi-pp-feature {
	display: -ms-flexbox;
	display: flex;
	-ms-flex-direction: column;
	flex-direction: column;
	gap: 0.35rem;
	text-align: center;
	padding: 1.25rem 1rem;
	border-radius: 16px;
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
	color: inherit;
	text-decoration: none;
}

.rekhi-pp-feature__eyebrow {
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--rekhi-accent, #ec3136);
}

.rekhi-pp-feature__title {
	font-size: 1.45rem;
	font-weight: 800;
	color: var(--rekhi-heading, #fff);
	line-height: 1.2;
}

.rekhi-pp-feature__desc {
	font-size: 0.9rem;
	color: var(--rekhi-text-secondary, #a0a0b0);
}

/* Our Categories — NEVER leave these as bare inline links */
.rekhi-pp-cats {
	display: -ms-grid;
	display: grid;
	-ms-grid-columns: 1fr 1.25rem 1fr 1.25rem 1fr 1.25rem 1fr;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25rem;
	width: 100%;
}

.rekhi-pp-cat {
	position: relative;
	display: block !important;
	width: 100%;
	/* IE / no aspect-ratio: padding box 4:5 */
	height: 0;
	padding-bottom: 125%;
	overflow: hidden;
	border-radius: 14px;
	text-decoration: none !important;
	color: #fff !important;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: #1a1a25;
	box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
	box-sizing: border-box;
}
@supports (aspect-ratio: 1) {
	.rekhi-pp-cat {
		height: auto;
		padding-bottom: 0;
		aspect-ratio: 4 / 5;
		min-height: 220px;
	}
}

.rekhi-pp-cat__media {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	-webkit-transition: transform 0.35s ease, opacity 0.35s ease;
	transition: transform 0.35s ease, opacity 0.35s ease;
	border-radius: 14px;
	z-index: 0;
}

.rekhi-pp-cat__media.is-carousel-tick {
	opacity: 0.82;
	-webkit-transform: scale(1.06);
	transform: scale(1.06);
}

.rekhi-pp-cat__media--plain,
.rekhi-pp-cat--noimg .rekhi-pp-cat__media {
	display: -ms-flexbox;
	display: flex;
	-ms-flex-align: center;
	align-items: center;
	-ms-flex-pack: center;
	justify-content: center;
	background: linear-gradient(155deg, #3a3a4a 0%, #1c1c28 42%, #2a1810 100%) !important;
	-webkit-transform: none;
	transform: none;
}

.rekhi-pp-cat__initial {
	font-size: 3.5rem;
	font-weight: 800;
	color: rgba(255, 255, 255, 0.62);
	letter-spacing: 0.04em;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.rekhi-pp-cat--noimg .rekhi-pp-cat__shade {
	background: linear-gradient(180deg, transparent 25%, rgba(0, 0, 0, 0.78) 100%);
}

.rekhi-pp-cat:hover .rekhi-pp-cat__media {
	-webkit-transform: scale(1.08);
	transform: scale(1.08);
}

.rekhi-pp-cat__shade {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.82) 100%);
	z-index: 1;
	pointer-events: none;
}

.rekhi-pp-cat__body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 1.1rem 1rem 1.25rem;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-direction: column;
	flex-direction: column;
	gap: 0.25rem;
	z-index: 2;
	color: #fff !important;
}

.rekhi-pp-cat__name {
	display: block;
	font-size: 1.05rem;
	font-weight: 800;
	color: #fff !important;
	line-height: 1.25;
}

.rekhi-pp-cat__meta {
	display: block;
	font-size: 0.8rem;
	opacity: 0.85;
	color: rgba(255, 255, 255, 0.88) !important;
}

.rekhi-pp-card.is-carousel-focus {
	border-color: rgba(236, 49, 54, 0.55);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.rekhi-pp-card__media img.is-carousel-pulse {
	-webkit-transform: scale(1.04);
	transform: scale(1.04);
	-webkit-transition: transform 0.55s ease;
	transition: transform 0.55s ease;
}

.rekhi-pp-card__placeholder {
	display: -ms-flexbox;
	display: flex;
	-ms-flex-align: center;
	align-items: center;
	-ms-flex-pack: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 100%;
	background: linear-gradient(145deg, #242432, #12121a 60%, #1a120c);
}

.rekhi-pp-card__placeholder span {
	font-size: 2.75rem;
	font-weight: 800;
	color: rgba(255, 255, 255, 0.45);
}

.rekhi-pp-empty {
	text-align: center;
	color: var(--rekhi-text-secondary, #a0a0b0);
	padding: 1.5rem;
}

/* Tabs + product cards */
.rekhi-pp-tabs__nav {
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	-ms-flex-pack: center;
	justify-content: center;
	gap: 0.5rem;
	margin-bottom: 1.75rem;
}

.rekhi-pp-tabs__btn {
	-webkit-appearance: none;
	appearance: none;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: transparent;
	color: var(--rekhi-text-secondary, #a0a0b0);
	padding: 0.55rem 1rem;
	margin: 0.2rem;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	-webkit-transition: all 0.18s ease;
	transition: all 0.18s ease;
}

.rekhi-pp-tabs__btn.is-active,
.rekhi-pp-tabs__btn:hover {
	background: var(--rekhi-accent, #ec3136);
	border-color: var(--rekhi-accent, #ec3136);
	color: #fff;
}

.rekhi-pp-tabs__panel[hidden] {
	display: none !important;
}

.rekhi-pp .rekhi-container,
.rekhi-pp-grid,
.rekhi-pp-cats {
	width: 100%;
	max-width: none;
}
.rekhi-pp .rekhi-container {
	max-width: var(--rekhi-container-width, 1280px);
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
	box-sizing: border-box;
}
.rekhi-pp-grid {
	display: -ms-grid;
	display: grid;
	-ms-grid-columns: 1fr 1.25rem 1fr 1.25rem 1fr 1.25rem 1fr;
	grid-template-columns: repeat(var(--rekhi-pp-cols, 4), minmax(0, 1fr));
	gap: 1.25rem;
	width: 100%;
}

.rekhi-pp-card {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 14px;
	overflow: hidden;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-direction: column;
	flex-direction: column;
	min-width: 0;
}

.rekhi-pp-card__media {
	display: block;
	position: relative;
	width: 100%;
	/* IE: 1:1 box */
	height: 0;
	padding-bottom: 100%;
	background: #12121a;
	overflow: hidden;
}
@supports (aspect-ratio: 1) {
	.rekhi-pp-card__media {
		height: auto;
		padding-bottom: 0;
		aspect-ratio: 1;
	}
}

.rekhi-pp-card__media img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	-webkit-transition: transform 0.3s ease;
	transition: transform 0.3s ease;
}

.rekhi-pp-card:hover .rekhi-pp-card__media img {
	-webkit-transform: scale(1.05);
	transform: scale(1.05);
}

.rekhi-pp-card__body {
	padding: 0.95rem 1rem 1.15rem;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-direction: column;
	flex-direction: column;
	gap: 0.35rem;
	-ms-flex: 1 1 auto;
	flex: 1;
}

.rekhi-pp-card__cat {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--rekhi-accent, #ec3136);
}

.rekhi-pp-card__title {
	margin: 0;
	font-size: 1rem;
	line-height: 1.3;
	font-weight: 700;
}

.rekhi-pp-card__title a {
	color: var(--rekhi-heading, #fff) !important;
	text-decoration: none;
}

.rekhi-pp-card__title a:hover,
.rekhi-pp-card__title a:focus {
	color: var(--rekhi-accent, #ec3136) !important;
}

.rekhi-pp-card__meta {
	margin: 0;
	font-size: 0.82rem;
	color: var(--rekhi-text-secondary, #a0a0b0);
}

.rekhi-pp-card__cta {
	margin-top: auto;
	padding-top: 0.55rem;
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--rekhi-accent, #ec3136) !important;
	text-decoration: none;
}

.rekhi-pp-card__cta:hover,
.rekhi-pp-card__cta:focus {
	color: var(--rekhi-accent, #ec3136) !important;
	filter: brightness(1.12);
}

.rekhi-pp-more {
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	-ms-flex-pack: center;
	justify-content: center;
	gap: 0.75rem;
	margin: 2rem 0 0;
}

.rekhi-pp-more a {
	color: var(--rekhi-accent, #ec3136) !important;
}

/* Light / modern skin */
body.rekhi-skin--light .rekhi-pp-feature,
body.rekhi-skin--modern .rekhi-pp-feature {
	background: linear-gradient(145deg, rgba(10, 10, 15, 0.04), rgba(10, 10, 15, 0.02));
	border-color: rgba(10, 10, 15, 0.1);
	box-shadow: 0 8px 28px rgba(10, 10, 15, 0.06);
}

body.rekhi-skin--light .rekhi-pp-tabs__btn,
body.rekhi-skin--modern .rekhi-pp-tabs__btn {
	border-color: rgba(10, 10, 15, 0.14);
	color: var(--rekhi-text-secondary, #5a5a6a);
}

body.rekhi-skin--light .rekhi-pp-tabs__btn.is-active,
body.rekhi-skin--light .rekhi-pp-tabs__btn:hover,
body.rekhi-skin--modern .rekhi-pp-tabs__btn.is-active,
body.rekhi-skin--modern .rekhi-pp-tabs__btn:hover {
	background: var(--rekhi-accent, #ec3136);
	border-color: var(--rekhi-accent, #ec3136);
	color: #fff;
}

body.rekhi-skin--light .rekhi-pp-card,
body.rekhi-skin--modern .rekhi-pp-card {
	background: rgba(10, 10, 15, 0.03);
	border-color: rgba(10, 10, 15, 0.1);
}

body.rekhi-skin--light .rekhi-pp-card__media,
body.rekhi-skin--modern .rekhi-pp-card__media {
	background: #f0f0f4;
}

body.rekhi-skin--light .rekhi-pp-title,
body.rekhi-skin--modern .rekhi-pp-title {
	color: #18181b;
}

body.rekhi-skin--light .rekhi-pp-card__title a,
body.rekhi-skin--modern .rekhi-pp-card__title a {
	color: #18181b !important;
}

body.rekhi-skin--light .rekhi-pp-cat,
body.rekhi-skin--modern .rekhi-pp-cat {
	border-color: rgba(10, 10, 15, 0.12);
	box-shadow: 0 10px 32px rgba(10, 10, 15, 0.12);
}

/* Tablet */
@media (max-width: 1024px) {
	.rekhi-pp-features,
	.rekhi-pp-cats,
	.rekhi-pp-grid {
		-ms-grid-columns: 1fr 1.25rem 1fr;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Mobile — keep 2-col cards (not a text dump) */
@media (max-width: 640px) {
	.rekhi-pp {
		padding: 2.25rem 0;
	}
	.rekhi-pp-features {
		grid-template-columns: 1fr;
	}
	.rekhi-pp-cats,
	.rekhi-pp-grid {
		-ms-grid-columns: 1fr 0.75rem 1fr;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.75rem;
	}
	.rekhi-pp-cat__name {
		font-size: 0.88rem;
	}
	.rekhi-pp-cat__meta {
		font-size: 0.7rem;
	}
	.rekhi-pp-cat__body {
		padding: 0.7rem 0.65rem 0.8rem;
	}
	.rekhi-pp-tabs__nav {
		-ms-flex-pack: start;
		justify-content: flex-start;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		flex-wrap: nowrap;
		padding-bottom: 0.35rem;
	}
	.rekhi-pp-tabs__btn {
		-ms-flex: 0 0 auto;
		flex: 0 0 auto;
		white-space: nowrap;
		font-size: 0.72rem;
		padding: 0.45rem 0.75rem;
	}
	.rekhi-pp-card__title {
		font-size: 0.88rem;
	}
}
