/* =============================================================
   710 GVNG — products.css
   Palace web-shop card grammar (VISUAL-REFERENCE §6): dense grid,
   centered uppercase name, gray price, gallery-image hover swap,
   no borders / shadows / radius. Data is 100% WooCommerce.
   ============================================================= */

.sg-product-grid {
	--sg-cols: 4;
	display: grid;
	grid-template-columns: repeat(var(--sg-cols), 1fr);
	gap: 40px 18px;
}

.sg-product-card {
	display: block;
	text-decoration: none;
	color: var(--sg-black);
	text-align: center;
}

.sg-product-card__media {
	position: relative;
	display: block;
	aspect-ratio: 3 / 4;
	background: var(--sg-gray-100);
	overflow: hidden;
}

.sg-product-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sg-product-card__img--hover {
	opacity: 0;
	transition: opacity 0.18s linear;
}

.sg-product-card:hover .sg-product-card__img--hover,
.sg-product-card:focus-visible .sg-product-card__img--hover {
	opacity: 1;
}

/* One badge max, priority handled server-side. */
.sg-product-card__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	font-family: var(--sg-font);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1;
	padding: 5px 7px;
	background: var(--sg-black);
	color: var(--sg-white);
}

.sg-product-card__badge--sale {
	background: var(--sg-red);
}

.sg-product-card__badge--soldout {
	background: var(--sg-white);
	color: var(--sg-black);
	box-shadow: inset 0 0 0 1px var(--sg-border);
}

.sg-product-card__name {
	display: block;
	margin-top: 13px;
	font-family: var(--sg-font);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	line-height: 1.35;
}

.sg-product-card__price {
	display: block;
	margin-top: 3px;
	font-family: var(--sg-font);
	font-size: 12px;
	font-weight: 400;
	color: var(--sg-gray-600);
}

/* WooCommerce sale price markup (<del> regular, <ins> sale). */
.sg-product-card__price del {
	opacity: 0.55;
	margin-right: 6px;
}

.sg-product-card__price ins {
	text-decoration: none;
	color: var(--sg-red);
}
