/**
 * Shop archive — matches homepage product cards (static grid).
 */

.wpcc-shop--archive .woocommerce-products-header {
	margin-bottom: 32px;
}

.wpcc-shop--archive .woocommerce-products-header__title {
	margin-bottom: 0;
}

.wpcc-shop--archive .wpcc-shop__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 32px;
}

.wpcc-shop--archive .woocommerce-result-count,
.wpcc-shop--archive .woocommerce-ordering {
	margin: 0;
}

.wpcc-shop--archive .woocommerce-ordering select {
	font-family: var(--wpcc-font);
	font-size: 14px;
	padding: 8px 12px;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 4px;
	background: var(--wpcc-white);
}

/* Grid replaces WooCommerce float columns. */
.wpcc-shop__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 26px;
	margin: 0 0 40px;
	padding: 0;
	clear: both;
}

.wpcc-shop__grid::before,
.wpcc-shop__grid::after {
	display: none;
	content: none;
}

.wpcc-shop__item,
.wpcc-shop__grid .product {
	float: none;
	display: flex;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
	clear: none;
}

.wpcc-shop__grid .wpcc-product-card {
	flex: none;
	width: 100%;
	min-width: 0;
	max-width: none;
	min-height: 527px;
	height: 100%;
	scroll-snap-align: none;
}

/* Reset WooCommerce loop styles inside our cards. */
.wpcc-shop__grid .wpcc-product-card__image img {
	width: auto;
	max-width: 100%;
	max-height: 280px;
	height: auto;
	margin: 0;
	box-shadow: none;
}

.wpcc-shop__grid .wpcc-product-card__name a {
	color: inherit;
	text-decoration: none;
}

.wpcc-shop__grid .wpcc-product-card__price,
.wpcc-shop__grid .wpcc-product-card__price .amount,
.wpcc-shop__grid .wpcc-product-card__price .woocommerce-Price-amount {
	font-size: 18px;
	font-weight: 700;
	margin: 0;
	text-transform: uppercase;
	color: inherit;
}

.wpcc-shop__grid .wpcc-product-card a.button,
.wpcc-shop__grid .wpcc-product-card .add_to_cart_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 159px;
	height: 45px;
	padding: 0 24px;
	margin: 0;
	border: 0;
	border-radius: 4px;
	font-family: var(--wpcc-font);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	text-shadow: none;
	background: var(--wpcc-red);
	color: var(--wpcc-white);
	box-shadow: none;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.wpcc-shop__grid .wpcc-product-card a.button:hover,
.wpcc-shop__grid .wpcc-product-card .add_to_cart_button:hover {
	background: var(--wpcc-red);
	color: var(--wpcc-white);
	opacity: 0.9;
	transform: translateY(-1px);
	text-decoration: none;
}

.wpcc-shop--archive .woocommerce-pagination {
	margin-top: 40px;
	text-align: center;
}

.wpcc-shop--archive .woocommerce-pagination ul {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.wpcc-shop--archive .woocommerce-pagination ul li a,
.wpcc-shop--archive .woocommerce-pagination ul li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 4px;
	color: inherit;
	text-decoration: none;
}

.wpcc-shop--archive .woocommerce-pagination ul li span.current {
	background: var(--wpcc-red);
	border-color: var(--wpcc-red);
	color: var(--wpcc-white);
}

@media (max-width: 1200px) {
	.wpcc-shop__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

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

	.wpcc-shop--archive .wpcc-shop__toolbar {
		flex-direction: column;
		align-items: flex-start;
	}
}
