/*
 * Homepage v7 — shared 4-up product grid card, used by both "New Arrivals"
 * ([log_v7_arrivals]) and "Trending Products" ([log_v7_trending]).
 * Depends on: log-home-v7-shared.css
 */

.v7-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 48px;
}

.v7-pgrid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

@media (min-width: 768px) {
	.v7-pgrid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

.v7-pcard {
	display: block;
	background: #f8f5fb;
	border-radius: 12px;
	padding: 12px;
	border: 1px solid rgba(233, 195, 73, .3);
	box-shadow: 0 20px 40px -10px rgba(30, 20, 64, .15);
	text-decoration: none;
	transition: transform .25s, box-shadow .25s;
}

@media (min-width: 768px) {
	.v7-pcard { padding: 24px; }
}

.v7-pcard:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 32px rgba(30, 20, 64, .12);
}

.v7-pcard-img {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 8px;
	margin-bottom: 12px;
	background: linear-gradient(135deg, #ece3f7, #fbf9fd);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 36px;
}

@media (min-width: 768px) {
	.v7-pcard-img { margin-bottom: 24px; }
}

.v7-pcard-img-el {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s;
}

.v7-pcard:hover .v7-pcard-img-el { transform: scale(1.1); }

.v7-pcard-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: #ffe088;
	color: #241a00;
	font-family: 'Manrope', sans-serif;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 999px;
}

.v7-pcard-name {
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
	color: #010006;
	margin: 0 0 4px;
}

@media (min-width: 768px) {
	.v7-pcard-name { font-size: 19px; margin-bottom: 8px; }
}

.v7-pcard-desc {
	display: none;
	font-family: 'Manrope', sans-serif;
	font-size: 13px;
	color: #4a3570;
	margin: 0 0 16px;
}

@media (min-width: 768px) {
	.v7-pcard-desc { display: block; }
}

.v7-pcard-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.v7-pcard-price {
	font-family: 'Manrope', sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #1e1440;
}

@media (min-width: 768px) {
	.v7-pcard-price { font-size: 16px; }
}

.v7-pcard-add {
	display: flex;
	color: #e9c349;
}

.v7-pcard-add svg { width: 18px; height: 18px; }

@media (min-width: 768px) {
	.v7-pcard-add svg { width: 24px; height: 24px; }
}
