/**
 * Card prodotto premium — modalità app v4.7.4.
 * Griglia confinata a .sof-shop__catalog — nessuna fuoriuscita nel checkout.
 */

body.sof-app-mode-active .sof-shop__catalog .sof-catalogo {
	width: 100%;
	max-width: 100%;
}

body.sof-app-mode-active .sof-shop__catalog .sof-categoria-blocco {
	margin: 0 0 40px;
	padding: 0;
}

body.sof-app-mode-active .sof-shop__catalog .sof-categoria-blocco + .sof-categoria-blocco {
	margin-top: 48px;
	padding-top: 8px;
	border-top: 1px solid rgba(211, 154, 53, 0.15);
}

body.sof-app-mode-active .sof-shop__catalog .sof-categoria-titolo {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.4rem, 2vw, 1.75rem);
	font-weight: 600;
	color: #efc973;
	margin: 0 0 20px;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(211, 154, 53, 0.25);
}

body.sof-app-mode-active .sof-shop__catalog .sof-prodotti-grid {
	display: grid !important;
	gap: 24px !important;
	grid-template-columns: 1fr !important;
	width: 100%;
	max-width: 100%;
}

@media (min-width: 900px) {
	body.sof-app-mode-active .sof-shop__catalog .sof-prodotti-grid {
		grid-template-columns: repeat(2, minmax(300px, 1fr)) !important;
	}
}

@media (min-width: 1600px) {
	body.sof-app-mode-active .sof-shop__catalog .sof-prodotti-grid {
		grid-template-columns: repeat(2, minmax(340px, 1fr)) !important;
	}
}

@media (min-width: 1800px) {
	body.sof-app-mode-active .sof-shop__catalog .sof-prodotti-grid {
		grid-template-columns: repeat(3, minmax(320px, 1fr)) !important;
	}
}

body.sof-app-mode-active .sof-shop__catalog .sof-prodotto-card {
	display: flex !important;
	flex-direction: column !important;
	min-width: 0 !important;
	width: 100% !important;
	height: auto !important;
	border-radius: 20px !important;
	border: 1px solid rgba(211, 154, 53, 0.3) !important;
	background: #181411 !important;
	overflow: hidden !important;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32) !important;
}

body.sof-app-mode-active .sof-shop__catalog .sof-prodotto-media {
	width: 100% !important;
	height: 240px !important;
	min-height: 220px !important;
	max-height: 240px !important;
	flex-shrink: 0 !important;
	background: #0f0e0c !important;
	overflow: hidden !important;
}

body.sof-app-mode-active .sof-shop__catalog .sof-prodotto-img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
}

body.sof-app-mode-active .sof-shop__catalog .sof-prodotto-body {
	flex: 1 1 auto !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 12px !important;
	padding: 22px 24px 24px !important;
}

body.sof-app-mode-active .sof-shop__catalog .sof-prodotto-titolo {
	font-size: 22px !important;
	line-height: 1.3 !important;
	margin: 0 !important;
	font-weight: 600 !important;
	color: #f6efe4 !important;
}

body.sof-app-mode-active .sof-shop__catalog .sof-prodotto-descrizione {
	font-size: 15px !important;
	line-height: 1.55 !important;
	margin: 0 !important;
	color: rgba(246, 239, 228, 0.76) !important;
	display: block !important;
	-webkit-line-clamp: unset !important;
	-webkit-box-orient: unset !important;
	overflow: visible !important;
	max-height: none !important;
	min-height: 0 !important;
}

body.sof-app-mode-active .sof-shop__catalog .sof-prezzo {
	font-size: 23px !important;
	font-weight: 700 !important;
	color: #efc973 !important;
}

body.sof-app-mode-active .sof-shop__catalog .sof-prodotto-meta {
	font-size: 14px !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	gap: 4px !important;
	color: rgba(246, 239, 228, 0.65) !important;
}

body.sof-app-mode-active .sof-shop__catalog .sof-prodotto-cta {
	margin-top: auto !important;
	padding-top: 10px !important;
}

body.sof-app-mode-active .sof-shop__catalog .sof-qty-row {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 8px !important;
	align-items: center !important;
}

body.sof-app-mode-active .sof-shop__catalog .sof-qty-input,
body.sof-app-mode-active .sof-shop__catalog .sof-qty-unit-select {
	flex: 1 1 90px !important;
	min-height: 48px !important;
	font-size: 1rem !important;
}

body.sof-app-mode-active .sof-shop__catalog .sof-qty-step-btn {
	min-width: 48px !important;
	min-height: 48px !important;
	font-size: 1.2rem !important;
}

body.sof-app-mode-active .sof-shop__catalog .sof-btn-aggiungi {
	min-height: 52px !important;
	width: 100% !important;
	font-size: 1rem !important;
	font-weight: 700 !important;
	border-radius: 14px !important;
	margin-top: 6px !important;
}

/* Neutralizza regole legacy che comprimono la griglia nel catalogo */
body.sof-app-mode-active .sof-shop__catalog .sof-prodotti-grid {
	grid-column: auto !important;
}

@media (min-width: 1280px) {
	body.sof-app-mode-active .sof-shop__catalog .sof-prodotti-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (min-width: 1600px) {
	body.sof-app-mode-active .sof-shop__catalog .sof-prodotti-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}
