

/* ---------- Copertina categoria ---------- */

.category-cover {
	position: relative;
	min-height: 420px;
	display: flex;
	align-items: flex-end;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	color: var(--white);
	margin-top: 90px;
}

.category-cover::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgb(var(--overlay-rgb) / 0.15) 0%, rgb(var(--overlay-rgb) / 0.75) 100%);
}

.category-cover__inner {
	position: relative;
	z-index: 1;
	padding: 60px 0 40px;
	width: 100%;
}

.category-cover__brand {
	height: 42px;
	margin-bottom: 18px;
	filter: brightness(0) invert(1);
}

.category-cover__title {
	font-family: var(--font-nord);
	font-weight: 700;
	font-size: 42px;
	line-height: 1.15;
	margin: 0 0 10px;
	text-transform: none;
}

.category-cover__subtitle {
	font-size: 16px;
	font-weight: 600;
	color: rgb(255 255 255 / 0.85);
	margin: 0;
	max-width: 640px;
}

/* ---------- Sezione elenco prodotti ---------- */

.category-products {
	padding: 60px 0 80px;
}

.category-products_wrap{
	width: 100%;
	display: flex;
	align-items:center;
	justify-content:space-between;
	margin: 0 0 30px;
}

.category-products__title {
	font-family: var(--font-nord);
	font-weight: 700;
	font-size: 26px;
	color: var(--brand-navy);
	
}

.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 24px;
}

/* ---------- Card prodotto (usata sia per "semplice" sia per "kit") ---------- */

.product-card {
	display: block;
	background: var(--white);
	border: 1px solid rgb(0 0 0 / 0.08);
	border-radius: var(--radius-md);
	overflow: hidden;
	text-align: left;
	cursor: pointer;
	color: inherit;
	text-decoration: none;
	transition: box-shadow .2s ease, transform .2s ease;
}

.product-card:hover,
.product-card:focus-visible {
	box-shadow: 0 12px 24px rgb(0 0 0 / 0.1);
	transform: translateY(-3px);
	color: inherit;
}

.product-card__thumb {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--panel-light);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.product-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 10px;
}

/* Placeholder mostrato quando il prodotto non ha ancora un'immagine caricata
   (capita spesso durante l'importazione massiva: i dati arrivano prima delle
   immagini) */
.product-card__thumb--placeholder {
	flex-direction: column;
	gap: 6px;
	color: var(--text-faint);
}

.product-card__thumb--placeholder svg { width: 34px; height: 34px; opacity: .6; }

.product-card__thumb--placeholder span {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.product-card__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: var(--brand-orange);
	color: var(--white);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .06em;
	padding: 4px 9px;
	border-radius: var(--radius-pill);
	text-transform: uppercase;
}

.product-card__body { padding: 14px 16px 16px; }

.product-card__code {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	color: var(--brand-orange);
	text-transform: uppercase;
	margin-bottom: 4px;
}

.product-card__name {
	font-size: 15px;
	font-weight: 700;
	color: var(--brand-navy);
	line-height: 1.3;
	margin: 0 0 4px;
}

.product-card__spec {
	font-size: 12.5px;
	color: var(--text-muted);
	margin: 0;
}

.product-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 10px;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--brand-navy);
}

.product-card:hover .product-card__cta { color: var(--brand-orange); }

/* ---------- Swatch finiture / colori ---------- */

.finish-list {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.finish-list__item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--text-body-dark);
}

.finish-list__swatch {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 1px solid rgb(0 0 0 / 0.15);
	flex-shrink: 0;
}

/* ---------- Badge informativi (customizable, da tagliare a misura, ecc.) --- */

.info-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }

.info-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--brand-navy);
	background: var(--panel-light);
	border-radius: var(--radius-pill);
	padding: 6px 12px;
}

/* ---------- Modale dettaglio prodotto (semplice) ---------- */

#productModal .modal-content { border: 0; border-radius: var(--radius-lg); overflow: hidden; }

#productModal .modal-header {
	border-bottom: 0;
	padding: 20px 24px 0;
}

#productModal .modal-body { padding: 10px 24px 28px; }

#productModal .product-modal__code {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .05em;
	color: var(--brand-orange);
	text-transform: uppercase;
}

#productModal .product-modal__name {
	font-family: var(--font-nord);
	font-weight: 700;
	font-size: 22px;
	color: var(--brand-navy);
	margin: 4px 0 0;
}

#productModal .product-modal__image {
	width: 100%;
	aspect-ratio: 4 / 3;
	background: var(--panel-light);
	border-radius: var(--radius-md);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	margin-bottom: 18px;
}

#productModal .product-modal__image img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }

#productModal .product-modal__specs {
	width: 100%;
	margin-bottom: 10px;
	border-collapse: collapse;
	font-size: 13.5px;
}

#productModal .product-modal__specs th {
	text-align: left;
	color: var(--text-faint);
	font-weight: 600;
	padding: 6px 12px 6px 0;
	white-space: nowrap;
}

#productModal .product-modal__specs td { padding: 6px 0; color: var(--text-body-dark); }

#productModal .product-modal__desc { font-size: 14px; color: var(--text-muted); }

/* ---------- Pagina kit: sezione componenti ---------- */

.kit-hero { padding: 90px 0 10px; }

.kit-hero__breadcrumb {
	font-size: 13px;
	font-weight: 600;
	color: var(--brand-orange);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 18px;
}

.kit-hero__image {
	width: 100%;
	aspect-ratio: 4 / 3;
	background: var(--panel-light);
	border-radius: var(--radius-lg);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.kit-hero__image img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }

.kit-hero__code {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .05em;
	color: var(--brand-orange);
	text-transform: uppercase;
}

.kit-hero__title {
	font-family: var(--font-nord);
	font-weight: 700;
	font-size: 34px;
	color: var(--brand-navy);
	margin: 6px 0 4px;
}

.kit-hero__version {
	display: inline-block;
	background: var(--brand-navy);
	color: var(--white);
	font-size: 12px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: var(--radius-pill);
	margin-bottom: 16px;
}

.kit-section { padding: 30px 0; border-top: 1px solid rgb(0 0 0 / 0.08); }

.kit-section__title {
	font-family: var(--font-nord);
	font-weight: 700;
	font-size: 20px;
	color: var(--brand-navy);
	margin: 0 0 18px;
}

@media (max-width: 767px) {
	.category-cover__title { font-size: 30px; }
	.kit-hero__title { font-size: 26px; }
}
