/* Sheyde Mobile Home Grid 1.0.0 — homepage only, <=767px only */
@media (max-width: 767px) {
	/* 2-column grid, equal-height rows */
	body .sheyde-section .sheyde-products ul.products {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		grid-auto-rows: 1fr;
		align-items: stretch !important;
		gap: 12px !important;
	}
	/* no orphan card: hide the odd last card (3 -> 2, 5 -> 4) */
	body .sheyde-section .sheyde-products ul.products > li.product:nth-child(odd):last-child {
		display: none !important;
	}
	body .sheyde-section .sheyde-products ul.products > li.product {
		height: 100% !important;
		min-width: 0;
		padding: 10px 10px 14px !important;
		justify-content: flex-start;
	}
	/* full cover, fixed square, never cropped */
	body .sheyde-section .sheyde-products ul.products > li.product figure {
		width: 100%;
		margin: 0 !important;
	}
	body .sheyde-section .sheyde-products ul.products > li.product .ct-media-container {
		display: block;
		width: 100%;
		aspect-ratio: 1 / 1;
		border-radius: 14px;
		overflow: hidden;
		background: #0e0e11;
	}
	body .sheyde-section .sheyde-products ul.products > li.product .ct-media-container img {
		width: 100% !important;
		height: 100% !important;
		aspect-ratio: 1 / 1 !important;
		object-fit: contain !important;
		object-position: center;
		border-radius: 14px !important;
	}
	body .sheyde-section .sheyde-products .sheyde-card-meta {
		margin: 10px 0 6px;
		gap: 4px;
	}
	/* name: up to 3 lines, fixed height (full name visible) */
	body .sheyde-section .sheyde-products ul.products > li.product .woocommerce-loop-product__title {
		font-size: .82rem !important;
		line-height: 1.55 !important;
		height: 4.65em;
		min-height: 4.65em;
		margin: 0 0 8px !important;
		padding: 0 2px !important;
		width: 100%;
		overflow: hidden;
		display: -webkit-box !important;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
		overflow-wrap: break-word;
	}
	body .sheyde-section .sheyde-products ul.products > li.product .woocommerce-loop-product__title a {
		font-size: inherit !important;
		line-height: inherit !important;
		margin: 0 !important;
		padding: 0 !important;
		display: inline !important;
	}
	/* price: pinned to bottom, 2 fixed lines, each amount kept whole */
	body .sheyde-section .sheyde-products ul.products > li.product .price {
		margin-top: auto !important;
		min-height: 3.2em;
		display: flex !important;
		flex-wrap: wrap;
		align-items: center;
		align-content: center;
		justify-content: center;
		column-gap: 4px;
		font-size: .8rem !important;
		line-height: 1.6 !important;
		overflow: visible;
	}
	body .sheyde-section .sheyde-products ul.products > li.product .price .woocommerce-Price-amount,
	body .sheyde-section .sheyde-products ul.products > li.product .price .amount {
		display: inline !important;
		width: auto !important;
		margin: 0 !important;
		font-size: .8rem !important;
		white-space: nowrap;
	}
	body .sheyde-section .sheyde-products ul.products > li.product .price del,
	body .sheyde-section .sheyde-products ul.products > li.product .price ins {
		white-space: nowrap;
	}
}
