/* Freeware page styles - reuses product card styling */

img {
    border-radius: var(--normal-border-radius);
}

h2 {
    margin-bottom: var(--margin-bottom-element);
}

.product-price {
	font-weight: bold;
	margin: 10px 15px !important;
}

.product-grid-container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-bottom: 60px;
}

/* Mobile styles */
@media (max-width: 768px) {
    
}

.product-card-link {
	text-decoration: none;
	color: inherit;
	display: flex;
	height: 100%;
}

.product-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: var(--normal-border-radius);
	overflow: hidden;
	background-color: var(--element-bkg);
	transition: box-shadow var(--transition);
}

.product-card:hover {
	box-shadow: var(--hover-shadow);
}

.product-image-wrapper {
	position: relative;
	overflow: hidden;
	width: 100%;
	height: 200px;
}

.product-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.product-content {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.product-content h4 {
	margin: 15px 15px 10px 15px;
	text-align: left;
}

.product-content p {
	margin: 0 15px 15px 15px;
	text-align: left;
	flex-grow: 1;
}

/* Mobile layout */
@media (max-width: 1200px) {
	.product-grid-container {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.product-grid-container {
		grid-template-columns: 1fr;
	}

	.product-card {
		flex-direction: row;
        width: 100%;
	}

	.product-image-wrapper {
		width: 150px;
		height: 150px;
		flex-shrink: 0;
	}
}
