/* Shop / All Products page */

.site-content--shop {
	padding: 0;
	max-width: none;
	margin: 0;
	background: #fff;
}

.shop-hero {
	width: 100%;
	line-height: 0;
	background: #f3f8fb;
	overflow: hidden;
}

.shop-hero__image {
	display: block;
	width: 100%;
	height: auto;
	max-height: 220px;
	object-fit: cover;
	object-position: center;
}

.shop-catalog {
	padding: 40px 40px 80px;
	display: flex;
	flex-direction: column;
	row-gap: 36px;
}

.shop-catalog__title {
	margin: 0;
	font-family: var(--pt-font);
	font-size: clamp(28px, 4vw, 38px);
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.15;
	color: #1a1916;
	text-transform: uppercase;
}

/* Hide default WooCommerce chrome on shop */
.woocommerce-shop .woocommerce-result-count,
.woocommerce-shop .woocommerce-ordering,
.woocommerce-shop .woocommerce-products-header,
body.post-type-archive-product .woocommerce-result-count,
body.post-type-archive-product .woocommerce-ordering,
body.tax-product_cat .woocommerce-result-count,
body.tax-product_cat .woocommerce-ordering {
	display: none !important;
}

/* Product grid — denser cards so more fit on screen */
.site-content--shop ul.products,
.woocommerce-shop ul.products,
body.post-type-archive-product ul.products,
body.tax-product_cat ul.products {
	display: grid !important;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 14px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
	width: 100%;
}

.site-content--shop ul.products::before,
.site-content--shop ul.products::after,
.woocommerce-shop ul.products::before,
.woocommerce-shop ul.products::after {
	display: none !important;
	content: none !important;
}

.site-content--shop ul.products li.product,
.woocommerce-shop ul.products li.product {
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	clear: none !important;
	display: flex;
	flex-direction: column;
	background: transparent;
	border: 0;
	box-shadow: none;
	text-align: left;
}

.product-card__media {
	display: block;
	background: #cfe8f2;
	aspect-ratio: 1 / 0.92;
	overflow: hidden;
	line-height: 0;
}

.product-card__media img,
.product-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
}

.product-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: 8px 0 4px;
	gap: 2px;
}

.product-card__heading {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
	width: 100%;
	min-width: 0;
}

.product-card__title-link {
	text-decoration: none;
	color: inherit;
	text-align: left;
	max-width: 100%;
}

.product-card__title,
.woocommerce-loop-product__title {
	margin: 0 !important;
	padding: 0 !important;
	font-family: var(--pt-font) !important;
	font-size: 17px !important;
	font-weight: 600 !important;
	line-height: 1.25 !important;
	color: #1a1916 !important;
	text-align: left !important;
	white-space: normal !important;
	overflow: visible !important;
	text-overflow: unset !important;
	word-break: normal !important;
	overflow-wrap: anywhere;
}

.product-card__meta {
	margin: 0;
	width: 100%;
	font-family: var(--pt-font);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
	color: #7a7770;
	text-align: left;
	white-space: normal;
	overflow: visible;
	text-overflow: unset;
	word-break: normal;
}

.product-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
	padding-top: 2px;
}

.product-card__price,
.product-card__price .amount,
.product-card .price {
	font-family: var(--pt-font) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #1a1916 !important;
	margin: 0 !important;
}

.product-card .button,
.product-card a.add_to_cart_button,
.product-card a.product_type_simple,
.product-card a.ajax_add_to_cart {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	margin: 0 !important;
	padding: 8px 12px !important;
	background: #000 !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 100px !important;
	font-family: var(--pt-font) !important;
	font-size: 9px !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	text-decoration: none !important;
	white-space: nowrap;
	transition: opacity 0.2s ease;
}

.product-card .button:hover,
.product-card a.add_to_cart_button:hover {
	opacity: 0.88;
	color: #fff !important;
	background: #000 !important;
}

.woocommerce-pagination {
	display: none !important;
}

.shop-catalog__more {
	display: flex;
	justify-content: center;
	margin-top: 48px;
}

.shop-view-more {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 180px;
	padding: 14px 32px;
	margin: 0;
	border: 1px solid #1a1916;
	border-radius: 999px;
	background: transparent;
	color: #1a1916;
	font-family: var(--pt-font), "Instrument Sans", sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.shop-view-more:hover {
	background: #1a1916;
	color: #fff;
	transform: translateY(-1px);
}

.shop-view-more:active {
	transform: translateY(0);
}

/* Initially show first 16 products; rest appear after View More */
.shop-catalog--collapsed .products > li.product:nth-child(n + 17) {
	display: none;
}

.shop-catalog--expanded .products > li.product {
	animation: shopCardIn 0.35s ease both;
}

@keyframes shopCardIn {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 1200px) {
	.site-content--shop ul.products,
	.woocommerce-shop ul.products,
	body.post-type-archive-product ul.products,
	body.tax-product_cat ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 14px;
	}
}

@media (max-width: 1024px) {
	.shop-catalog {
		padding: 36px 24px 72px;
		row-gap: 28px;
	}

	.site-content--shop ul.products,
	.woocommerce-shop ul.products,
	body.post-type-archive-product ul.products,
	body.tax-product_cat ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 14px;
	}
}

@media (max-width: 640px) {
	.shop-catalog {
		padding: 16px 12px 40px;
		row-gap: 16px;
	}

	.site-content--shop ul.products,
	.woocommerce-shop ul.products,
	body.post-type-archive-product ul.products,
	body.tax-product_cat ul.products {
		grid-template-columns: 1fr;
		gap: 14px;
		max-width: 320px;
		margin-inline: auto !important;
	}

	.product-card__media {
		aspect-ratio: 1 / 0.92;
	}

	.product-card__body {
		padding: 8px 0 4px;
		gap: 2px;
	}

	.product-card__heading {
		gap: 2px;
	}

	.product-card__title,
	.woocommerce-loop-product__title {
		font-size: 15px !important;
		line-height: 1.25 !important;
	}

	.product-card__meta {
		font-size: 12px;
		line-height: 1.3;
	}

	.product-card__footer {
		gap: 8px;
		padding-top: 2px;
	}

	.product-card__price,
	.product-card__price .amount,
	.product-card .price {
		font-size: 13px !important;
	}

	.product-card .button,
	.product-card a.add_to_cart_button,
	.product-card a.product_type_simple,
	.product-card a.ajax_add_to_cart {
		padding: 7px 10px !important;
		font-size: 9px !important;
	}
}

@media (max-width: 480px) {
	.shop-catalog {
		padding: 20px 12px 48px;
	}

	.shop-view-more,
	[data-shop-view-more] {
		width: 100%;
		justify-content: center;
	}
}
