/* Imaginaycrea Product Archive Styling */

/* Responsive container wrapper */
.woocommerce {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
}

/* Product list refinements */
ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	width: 100%;
	list-style: none;
	padding: 0;
	margin: 0 0 3rem 0;
}

li.product {
	display: flex;
	flex-direction: column;
	background: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(110, 44, 69, 0.1);
	transition: all 0.3s ease;
}

li.product:hover {
	transform: translateY(-8px);
	box-shadow: 0 8px 20px rgba(110, 44, 69, 0.2);
}

li.product a {
	text-decoration: none;
	color: inherit;
}

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

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

li.product:hover img.attachment-woocommerce_thumbnail {
	transform: scale(1.05);
}

/* Product content section */
.product-content {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

h2.woocommerce-loop-product__title {
	font-size: 1rem;
	font-weight: bold;
	color: #6E2C45;
	font-family: Georgia, serif;
	margin: 0 0 0.5rem 0;
	line-height: 1.3;
	min-height: 2.6em;
}

.woocommerce-loop-product__title a {
	color: #6E2C45;
	text-decoration: none;
	transition: color 0.2s ease;
}

.woocommerce-loop-product__title a:hover {
	color: #8B3A57;
	text-decoration: underline;
}

/* Rating and price */
.star-rating {
	margin: 0.5rem 0;
	font-size: 0.9rem;
}

span.price {
	font-size: 1.2rem;
	color: #6E2C45;
	font-weight: bold;
	margin: 0.5rem 0;
	display: block;
}

/* Add to cart button */
a.button.product_type_simple,
a.button.product_type_variable {
	background-color: #6E2C45;
	color: white;
	border: none;
	padding: 0.7rem 1.5rem;
	border-radius: 4px;
	font-family: Georgia, serif;
	font-size: 0.95rem;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	display: inline-block;
	margin-top: auto;
	width: 100%;
	text-align: center;
	box-sizing: border-box;
}

a.button.product_type_simple:hover,
a.button.product_type_variable:hover {
	background-color: #8B3A57;
	transform: scale(1.02);
}

/* Result count and ordering */
.woocommerce-result-count,
.woocommerce-ordering {
	font-family: Georgia, serif;
	color: #6E2C45;
	margin-bottom: 1.5rem;
}

.woocommerce-result-count {
	text-align: left;
}

.woocommerce-ordering {
	text-align: right;
}

select.orderby {
	padding: 0.5rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	background-color: white;
	color: #6E2C45;
	font-family: Georgia, serif;
	cursor: pointer;
}

/* Pagination */
.woocommerce-pagination {
	display: flex;
	justify-content: center;
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid #ddd;
}

.page-numbers {
	display: flex;
	gap: 0.5rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.page-numbers li a,
.page-numbers li span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0.5rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	color: #6E2C45;
	text-decoration: none;
	transition: all 0.2s ease;
	font-family: Georgia, serif;
	font-size: 0.95rem;
}

.page-numbers li a:hover {
	background-color: #6E2C45;
	color: white;
	border-color: #6E2C45;
}

.page-numbers li.active span {
	background-color: #6E2C45;
	color: white;
	border-color: #6E2C45;
	font-weight: bold;
}

.page-numbers li.dots span {
	border: none;
	cursor: default;
}

/* Empty state */
.woocommerce-info {
	background-color: #e8aab8;
	color: #6E2C45;
	padding: 2rem;
	border-radius: 8px;
	text-align: center;
	font-family: Georgia, serif;
	font-size: 1.1rem;
	margin: 2rem 0;
}

/* Sidebar (if present) */
.woocommerce-sidebar {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid #ddd;
}

/* Responsive */
@media (max-width: 768px) {
	ul.products {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
		gap: 15px;
	}

	.product-image-wrapper {
		height: 150px;
	}

	h2.woocommerce-loop-product__title {
		font-size: 0.95rem;
	}

	span.price {
		font-size: 1.1rem;
	}

	.woocommerce-result-count,
	.woocommerce-ordering {
		font-size: 0.9rem;
	}
}

@media (max-width: 480px) {
	ul.products {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}

	.product-content {
		padding: 0.75rem;
	}

	h2.woocommerce-loop-product__title {
		font-size: 0.85rem;
		min-height: auto;
	}

	span.price {
		font-size: 1rem;
	}

	a.button.product_type_simple,
	a.button.product_type_variable {
		padding: 0.5rem 1rem;
		font-size: 0.85rem;
	}

	.page-numbers li a,
	.page-numbers li span {
		min-width: 2rem;
		height: 2rem;
		padding: 0.25rem;
		font-size: 0.85rem;
	}
}
