/* Ketabbin Clean 1.6.8 — approved product showcase with bottom navigation on desktop. */

/* Keep the existing bottom navigation visible on desktop. */
@media (min-width: 761px) {
	.kc-mobile-nav {
		display: grid !important;
	}
}

/* A quiet white frame around every cover; no shadow and no image bleed. */
body.home .kc-products .kc-product-card,
body.front-page .kc-products .kc-product-card {
	grid-template-rows: 210px minmax(0, 1fr) !important;
	height: 506px !important;
}

body.home .kc-products .kc-product-card__image,
body.front-page .kc-products .kc-product-card__image {
	position: relative !important;
	z-index: 1 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
	height: 210px !important;
	min-height: 210px !important;
	padding: 15px 20px 20px !important;
	overflow: hidden !important;
	background: #fff !important;
	border: 0 !important;
	border-bottom: 2px solid #d9a12b !important;
	box-shadow: none !important;
}

body.home .kc-products .kc-product-card__image img,
body.front-page .kc-products .kc-product-card__image img {
	position: relative !important;
	z-index: 1 !important;
	display: block !important;
	width: auto !important;
	height: auto !important;
	max-width: 78% !important;
	max-height: 172px !important;
	margin: auto !important;
	object-fit: contain !important;
	object-position: center center !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	filter: none !important;
	transform: none !important;
}

body.home .kc-products .kc-product-card__body,
body.front-page .kc-products .kc-product-card__body {
	position: relative !important;
	z-index: 2 !important;
	background: #fff !important;
}

@media (max-width: 760px) {
	body.home .kc-products .kc-product-card,
	body.front-page .kc-products .kc-product-card {
		grid-template-rows: clamp(178px, 48vw, 202px) minmax(0, 1fr) !important;
		height: auto !important;
		min-height: 466px !important;
	}

	body.home .kc-products .kc-product-card__image,
	body.front-page .kc-products .kc-product-card__image {
		height: clamp(178px, 48vw, 202px) !important;
		min-height: clamp(178px, 48vw, 202px) !important;
		padding: 12px 12px 18px !important;
	}

	body.home .kc-products .kc-product-card__image img,
	body.front-page .kc-products .kc-product-card__image img {
		width: auto !important;
		height: auto !important;
		max-width: 76% !important;
		max-height: calc(100% - 8px) !important;
	}
}

@media (max-width: 390px) {
	body.home .kc-products .kc-product-card,
	body.front-page .kc-products .kc-product-card {
		grid-template-rows: 176px minmax(0, 1fr) !important;
		min-height: 458px !important;
	}

	body.home .kc-products .kc-product-card__image,
	body.front-page .kc-products .kc-product-card__image {
		height: 176px !important;
		min-height: 176px !important;
		padding: 10px 10px 17px !important;
	}
}
