
/* --- PRODUCT TABLE LAYOUT --- */

.products-table ul.products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-gap: 1rem;
}

.products-table__header {
	display: flex;
	border-bottom: 2px solid #e0e0e0;
	padding: 0.75rem 0;
	font-weight: 600;
	text-transform: uppercase;
	color: #555;
	font-size: 0.85rem;
}

.products-table__header-col {
	padding: 0 1rem;
}


.products-table__row {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	border-bottom: 1px solid #eee;

	font-size: 0.9rem;
	background-color: #fff;
	transition: background 0.2s ease;
}

.products .product-list-view.products-table__row {
	padding: 0.75rem 0 !important;
}

.products-table__row:hover {
	background-color: #fafafa;
}

@media (min-width: 768px) {
	.products-table ul.products {
		/* Single column list/table on tablet and up */
		display: block;
	}

	.products-table__row {
		flex-direction: row;
		align-items: center;
	}
}

/* --- COLUMNS --- */
.products-table__col {
	padding: 0 1rem;
	display: flex;
	align-items: center;
}

.products-table__col--image {
	flex: 0 0 80px;
}

.products-table__col--title {
	flex: 1 1 15%;
}

.products-table__col--attributes {
	flex: 1 1 45%;
	flex-direction: column;
	gap: 0px;
	display: flex;
	align-items: first baseline;
	line-height: 1.4;
	font-size: 0.75rem;
}

.products-table__col--price {
	flex: 0 0 120px;
	justify-content: flex-end;
	font-weight: 600;
	color: #111;
	display: none;
}

.products-table__col--cart {
	/* flex: 0 0 120px; */
	justify-content: flex-end;
}

.product-attr {
	display: flex;
	justify-content: space-between;
	gap: 0.4rem;
}

.product-attr__label {
	color: #666;
	flex-shrink: 0;
}

.product-attr__value {
	color: #222;
}

@media (max-width: 768px) {
	.products-table__header {
		display: none;
	}

	.products-table__row {
		flex-direction: column;
		align-items: flex-start;
		border: 1px solid #eee;
		border-radius: 6px;
		margin-bottom: 0rem;		
	}

	.products .product-list-view.products-table__row {
		padding: 1rem !important;
	}

	.products-table__col {
		width: 100%;
		padding: 0.25rem 0;
		justify-content: flex-start;
	}

	.products-table__col--price,
	.products-table__col--cart {
		justify-content: flex-start;
	}

	.product-attr {
		justify-content: flex-start;
	}
}
