/*
Theme Name:   Storefront Child
Theme URI:    https://woocommerce.com/products/storefront/
Description:  Child theme for Storefront theme
Author:       Your Name
Author URI:   https://example.com
Template:     storefront
Version:      1.0.0
License:      GNU General Public License v3 or later
License URI:  https://www.gnu.org/licenses/gpl-3.0.html
Text Domain:  storefront-child
*/

/* Add your custom styles below this line */

/* Blog Grid Layout */
.blog-grid-wrapper {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	margin: 2rem 0;
}

@media (max-width: 768px) {
	.blog-grid-wrapper {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.5rem;
	}
}

@media (max-width: 480px) {
	.blog-grid-wrapper {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
}

.blog-grid-item {
	margin: 0;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.blog-grid-item:hover {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
	transform: translateY(-2px);
}

.blog-grid-thumbnail {
	width: 100%;
	overflow: hidden;
	position: relative;
	padding-top: 75%; /* 4:3 aspect ratio */
	background: #f5f5f5;
}

.blog-grid-thumbnail img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.blog-grid-placeholder {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #e0e0e0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.blog-grid-placeholder::before {
	content: '';
	width: 60px;
	height: 60px;
	background: #bdbdbd;
	border-radius: 50%;
	opacity: 0.5;
}

.blog-grid-item:hover .blog-grid-thumbnail img {
	transform: scale(1.05);
}

.blog-grid-thumbnail a {
	display: block;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
}

.blog-grid-header {
	padding: 1.5rem;
	flex-grow: 1;
	display: flex;
	align-items: center;
}

.blog-grid-title {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.4;
}

.blog-grid-title a {
	color: #333;
	text-decoration: none;
	transition: color 0.3s ease;
}

.blog-grid-title a:hover {
	color: #0073aa;
}

/* Ensure proper spacing for archive headers */
.page-header {
	margin-bottom: 2rem;
}

.page-title {
	margin-bottom: 1rem;
}


