/* Homepage product cards — base reference styles. The final homepage override is loaded after all responsive bundles. */
.pp-product-section .pp-section-products {
	display: grid;
	grid-template-columns: repeat(var(--pp-columns, 4), minmax(0, 1fr));
	gap: clamp(12px, 1.6vw, 20px);
	width: 100%;
	max-width: none;
	overflow: visible;
	padding: 0;
	direction: rtl;
}

.pp-product-section .pp-product-card {
	position: relative;
	display: flex;
	min-width: 0;
	min-height: 100%;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #e4e8ef;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 7px 22px #172b4d12;
	transition: transform .2s ease, box-shadow .2s ease;
}

.pp-product-section .pp-product-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px #172b4d1c;
}

.pp-product-section .pp-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 45px;
	padding: 9px 12px;
	background: linear-gradient(110deg, #edf3ff 0%, #f8fbff 52%, #e3ecff 100%);
}

.pp-product-section .pp-card-brand {
	min-width: 0;
	color: #182b61;
	font-size: 11px;
	font-weight: 800;
	white-space: nowrap;
}

.pp-product-section .pp-card-badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 4px;
}

.pp-product-section .pp-card-badge {
	display: inline-flex;
	align-items: center;
	min-height: 20px;
	padding: 2px 7px;
	border-radius: 999px;
	font-size: 9px;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
}

.pp-product-section .pp-card-badge-primary { background: #e7efff; color: #245fd1; }
.pp-product-section .pp-card-badge-secondary { background: #fff0e3; color: #bc641b; }

.pp-product-section .pp-product-image {
	display: block;
	position: relative;
	margin: 11px 11px 0;
	overflow: hidden;
	border-radius: 13px;
	background: #f2f5f9;
}

.pp-product-section .pp-product-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.pp-product-section .pp-sale {
	top: 9px;
	right: 9px;
	padding: 3px 8px;
	border-radius: 999px;
	background: #d72c5a;
	color: #fff;
	font-size: 9px;
	font-weight: 700;
}

.pp-product-section .pp-product-content {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	padding: 11px 12px 13px;
}

.pp-product-section .pp-product-category {
	margin: 0 0 3px;
	color: #7b8494;
	font-size: 10px;
	line-height: 1.5;
}

.pp-product-section .pp-product-card h3 {
	display: -webkit-box;
	min-height: 45px;
	margin: 0;
	overflow: hidden;
	color: #1c2d59;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.75;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.pp-product-section .pp-product-card h3 a { color: inherit; }

.pp-product-section .pp-card-benefits {
	display: grid;
	gap: 2px;
	margin: 7px 0 0;
	padding: 0;
	list-style: none;
}

.pp-product-section .pp-card-benefits li {
	display: flex;
	align-items: center;
	min-width: 0;
	gap: 5px;
	overflow: hidden;
	color: #657087;
	font-size: 9px;
	line-height: 1.65;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pp-product-section .pp-card-benefit-check {
	display: inline-grid;
	flex: 0 0 15px;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: #e7f1ff;
	color: #1688ff;
	place-items: center;
}
.pp-product-section .pp-card-benefit-check svg { width: 11px; height: 11px; }

.pp-product-section .pp-product-foot {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
	padding-top: 12px;
}

.pp-product-section .pp-price { min-width: 0; }
.pp-product-section .pp-price ins { color: inherit; text-decoration: none; }
.pp-product-section .pp-price del { color: #a3a9b3; font-size: 9px; font-weight: 400; }

.pp-product-section .pp-add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	gap: 4px;
	min-width: 66px;
	min-height: 35px;
	padding: 6px 11px;
	border: 0;
	border-radius: 999px;
	background: #1688ff;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.3;
	box-shadow: 0 5px 12px #1688ff3d;
}
.pp-product-section .pp-add:hover { background: #0875e5; color: #fff; }
.pp-product-section .pp-card-cta-label { display: inline; }
.pp-product-section .pp-card-cta-icon { font-size: 16px; line-height: 1; }

@media (max-width: 1050px) {
	.pp-product-section .pp-section-products {
		grid-template-columns: repeat(min(3, var(--pp-columns, 4)), minmax(0, 1fr));
	}
}

@media (max-width: 650px) {
	.pp-product-section .pp-section-products {
		grid-template-columns: repeat(min(2, var(--pp-columns, 4)), minmax(0, 1fr));
		gap: 9px;
		overflow: visible;
		padding: 0;
	}
	.pp-product-section .pp-product-card {
		border-color: #252a2c;
		border-radius: 13px;
		background: #1b1d1c;
		box-shadow: none;
	}
	.pp-product-section .pp-card-brand { color: #d8e2ff; font-size: 9px; }
	.pp-product-section .pp-card-badge { min-height: 17px; padding: 2px 5px; font-size: 7px; }
	.pp-product-section .pp-product-image { margin: 8px 8px 0; border-radius: 10px; }
	.pp-product-section .pp-product-content { padding: 8px 8px 9px; }
	.pp-product-section .pp-product-category { color: #92999a; font-size: 8px; }
	.pp-product-section .pp-product-card h3 { min-height: 37px; color: #f4f6f8; font-size: 10px; line-height: 1.7; }
	.pp-product-section .pp-card-benefits { margin-top: 5px; }
	.pp-product-section .pp-card-benefits li { color: #aab1b4; font-size: 8px; }
	.pp-product-section .pp-card-benefit-check { flex-basis: 13px; width: 13px; height: 13px; }
	.pp-product-section .pp-card-benefit-check svg { width: 9px; height: 9px; }
	.pp-product-section .pp-product-foot { padding-top: 9px; }
	.pp-product-section .pp-add { min-width: 55px; min-height: 29px; padding: 5px 8px; font-size: 9px; box-shadow: none; }
	.pp-product-section .pp-card-cta-icon { font-size: 14px; }
	.pp-product-section .pp-product-card:hover { transform: none; box-shadow: none; }
}

@media (max-width: 380px) {
	.pp-product-section .pp-section-products { grid-template-columns: minmax(0, 1fr); }
}

html[data-theme="light"] .pp-product-section .pp-product-card { background: #fff; border-color: #e4e8ef; box-shadow: 0 7px 22px #172b4d12; }
html[data-theme="light"] .pp-product-section .pp-card-brand { color: #182b61; }
html[data-theme="light"] .pp-product-section .pp-product-card h3 { color: #1c2d59; }
html[data-theme="light"] .pp-product-section .pp-card-benefits li { color: #657087; }

@media (max-width: 650px) {
	html[data-theme="light"] .pp-product-section .pp-product-card { background: #fff; }
	html[data-theme="light"] .pp-product-section .pp-card-brand,
	html[data-theme="light"] .pp-product-section .pp-product-card h3 { color: #1c2d59; }
	html[data-theme="light"] .pp-product-section .pp-card-benefits li { color: #657087; }
}
