/**
 * Product Showcase Block Styles
 */

.product-showcase {
	margin: 2em 0;
}

.product-showcase-items {
	display: grid;
	gap: 2em;
}

/* Column layouts */
.product-showcase.columns-1 .product-showcase-items {
	grid-template-columns: 1fr;
}

.product-showcase.columns-2 .product-showcase-items {
	grid-template-columns: repeat(2, 1fr);
}

.product-showcase.columns-3 .product-showcase-items {
	grid-template-columns: repeat(3, 1fr);
}

.product-showcase.columns-4 .product-showcase-items {
	grid-template-columns: repeat(4, 1fr);
}

/* Product item */
.product-item {
	position: relative;
	background: #fff;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-item-image {
	position: relative;
	overflow: hidden;
	background: #f5f5f5;
	aspect-ratio: 1;
}

.product-item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.product-item:hover .product-item-image img {
	transform: scale(1.05);
}

.product-item-image a {
	display: block;
	height: 100%;
}

.product-item-content {
	padding: 1.5em;
	text-align: center;
}

.product-item-title {
	margin: 0 0 0.5em 0;
	font-size: 1.1em;
	line-height: 1.3;
	min-height: 2.6em;
}

.product-item-title a {
	color: #000;
	text-decoration: none;
	transition: opacity 0.3s ease;
}

.product-item-title a:hover {
	opacity: 0.7;
}

.product-item-price {
	margin: 1em 0;
	font-size: 1.1em;
	font-weight: 700;
}

.product-item-price .amount {
	color: #000;
}

.product-item-price del {
	opacity: 0.5;
	margin-right: 0.5em;
}

.product-item-price ins {
	text-decoration: none;
	color: #000;
}

.product-item-button {
	margin-top: 1em;
}

.product-item-button .button,
.product-item-button .added_to_cart {
	display: inline-block;
	padding: 0.75em 1.5em;
	background: #000;
	color: #fff;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: opacity 0.3s ease;
	font-size: 0.9em;
}

.product-item-button .button:hover,
.product-item-button .added_to_cart:hover {
	opacity: 0.8;
}

/* WooCommerce specific styles */
.product-item .onsale {
	position: absolute;
	top: 1em;
	right: 1em;
	background: #000;
	color: #fff;
	padding: 0.5em 1em;
	font-size: 0.875em;
	font-weight: 700;
	z-index: 1;
}

/* Editor specific styles */
.editor-styles-wrapper .product-showcase {
	border: 1px dashed #ddd;
	padding: 1em;
}

.editor-styles-wrapper .product-item {
	border: 1px solid #e5e5e5;
}

/* Responsive */
@media (max-width: 1024px) {
	.product-showcase.columns-4 .product-showcase-items {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.product-showcase.columns-3 .product-showcase-items,
	.product-showcase.columns-4 .product-showcase-items {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.product-showcase-items {
		gap: 1.5em;
	}
	
	.product-item-content {
		padding: 1em;
	}
	
	.product-item-title {
		font-size: 1em;
		min-height: auto;
	}
}

@media (max-width: 480px) {
	.product-showcase.columns-3 .product-showcase-items,
	.product-showcase.columns-4 .product-showcase-items {
		grid-template-columns: 1fr;
	}
	
	.product-showcase-items {
		gap: 1em;
	}
}

