.product-table-container {
	display: grid;
	grid-template-columns: repeat(var(--prodcols), minmax(auto, 1fr));
	border: 1px solid #ccc;
	font-family: sans-serif;
	width: 100%;
	border-radius: var(--radius-input, 10px);
	overflow-x: auto; /* â†� scroll orizzontale */
	overflow-y: hidden;
}

.table-header {
	display: contents;
	background-color: #2b3990;
	color: -var(--font-color, black);
	font-weight: bold;
	text-align: center;
	padding: 1rem 0;
}

.table-header>div, .table-row>div {
	box-sizing: border-box;
}

.table-header>div {
	white-space: nowrap;
	padding: 0.5rem;
	border-bottom: 1px solid #ccc;
}

.table-header>div::first-letter {
	text-transform: uppercase;
}

.tabel-header>div::before::first-letter {
	text-transform: uppercase;
}

.table-row {
	display: contents;
	text-align: center;
	border-bottom: 1px solid #ddd;
}

.table-row>div {
	padding: 0.75rem;
	border-bottom: 1px solid #eee;
	height: 100%;
	text-align: center;
	align-content: center;
	background-color: #e8e8e8;
}

.old-price {
	text-decoration: line-through;
	color: #777;
	font-size: 0.9rem;
}

.new-price {
	font-size: 1.2rem;
	font-weight: bold;
	color: #002984;
}

.discount {
	font-size: 0.8rem;
	color: #777;
}

input[type="number"] {
	width: 60px;
	padding: 4px;
	text-align: center;
}

/* input[type="checkbox"] { */
/* 	transform: scale(1.2); */
/* } */
.table-footer {
	display: flex;
	justify-content: flex-end;
	padding: 1rem;
	gap: 1rem;
}

.table-footer button {
	font-weight: bold;
	height: 3rem;
	width: fit-content;
	padding: 1rem;
	background: linear-gradient(90deg, #344ea3 0%, #ee2225 100%);
	border: none;
	border-radius: 5px;
	color: #ffffff;
	font-size: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

.qta_number {
	border: 1px solid #cccccc;
	border-radius: var(--radius-input, 10px);
}

.add-to-cart, .view-cart {
	height: 2rem;
	padding: 0 1.25rem;
	background: var(--gradient-primary, #344ea3);
	border-radius: var(--radius-button, 10px);
	color: var(--text-color-button, #ffffff);
	font-size: 0.875rem;
	font-weight: 700;
	border: none;
	cursor: pointer;
}

.view-cart {
	position: relative;
}

.view-cart .cart-count {
	position: absolute;
	left: 4.5rem;
	top: -0.75rem;
}

.qta-container {
	display: flex; /* mette bottoni e input sulla stessa riga */
	align-items: center; /* li allinea verticalmente */
	justify-content: center; /* opzionale: li centra orizzontalmente */
	padding: 0.75rem;
	height: 100%;
	text-align: center;
}

.qta-container>button {
	width: 1rem;
	border-radius: var(--radius-button, 10px);
	cursor: pointer;
	border: none;
}

.qta-container>input.qta_number {
	width: 3rem; /* puoi regolare la larghezza a piacere */
	text-align: center;
	margin: 0 0.25rem; /* piccolo spazio tra bottoni e input */
}

.product-table-container .btn-add-to-cart {
	font-weight: bold;
	height: 3rem;
	width: fit-content;
	padding: 1rem;
	background: linear-gradient(90deg, #344ea3 0%, #ee2225 100%);
	border: none;
	border-radius: 5px;
	color: #ffffff;
	font-size: 16px;
	align-items: center;
	justify-content: center;
	gap: 5px;
	display: none;
	align-self: center;
}

@media ( max-width : 1400px) {
	.product-table-container {
		display: grid;
		grid-template-columns: repeat(3, minmax(auto, 1fr));
		border: none;
		grid-gap: 0.5rem 1rem;
	}
	.product-table-container .btn-add-to-cart {
		display: flex;
	}
	.table-header {
		display: none;
	}
	.table-row {
		/* 		display: grid; */
		/* 		grid-template-columns: 1fr 1fr; */
		display: flex;
		flex-direction: column;
		gap: 0.5rem;
		background: #fff;
		border: 1px solid #ccc;
		border-radius: var(--radius-input, 10px);
		padding: 1rem;
		margin-bottom: 1rem;
	}
	.table-row>div {
		display: grid;
		grid-template-columns: 40% 60%;
		gap: 0.5rem;
		align-items: center;
		padding: 0;
		border: none;
	}
	.table-row>div::before {
		content: attr(data-label);
		font-weight: 600;
		color: #555;
	}

	/* codice articolo */
	.table-row>div:first-child {
		grid-column: 1/-1;
		display: block;
		font-weight: bold;
		color: #2b3990;
	}

	/* prezzo full width */
	.table-row>div:nth-child(5) {
		grid-column: 1/-1;
		display: block;
	}
	.table-footer button {
		display: none;
	}
	.qta-container {
		border: none;
	}
}

@media ( max-width : 768px) {
	.product-table-container {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	}
}

.dot-container {
	display: flex;
	flex-direction: column; /* dot sopra, data sotto */
	align-items: center; /* centro orizzontale */
	justify-content: center; /* centro verticale (se serve) */
	gap: 0.25rem;
}