/* =============================================================================
   Darplay Tweaks - shop and category pages (includes/shop.php)
   ============================================================================= */

/* The emptied row that held the result count and sorting. */
.post-type-archive-product main > .wp-block-group.alignwide:not(:has(*)),
.tax-product_cat main > .wp-block-group.alignwide:not(:has(*)),
.tax-product_tag main > .wp-block-group.alignwide:not(:has(*)) {
	display: none;
}

/* Heading. */
.darplay-shop-head {
	margin-top: 24px !important;
}

.darplay-shop-head h1.wp-block-query-title {
	margin-top: 0;
	margin-bottom: 14px;
}

.post-type-archive-product .darplay-shop-head h1.wp-block-query-title {
	margin-bottom: 4px;
	font-size: clamp(28px, 3vw, 36px);
	line-height: 1.2;
}

.darplay-shop-line {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	margin: 0 0 4px !important;
	color: #5f5e5a;
	font-size: 15px;
}

.darplay-shop-line span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.darplay-shop-line svg {
	flex: none;
	color: #5c8a6a;
}

/* Category tabs - like the menu: plain words, current one underlined green. */
.darplay-shop-tabs {
	display: flex;
	gap: 28px;
	margin: 16px 0 28px !important;
	border-bottom: 1px solid #ececec;
	overflow-x: auto;
	scrollbar-width: none;
}

.darplay-shop-tabs::-webkit-scrollbar {
	display: none;
}

.darplay-shop-tab {
	flex: none;
	padding: 10px 0;
	color: #202020;
	font-size: 16px;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: inset 0 -2px 0 transparent;
}

.darplay-shop-tab:hover,
.darplay-shop-tab:focus-visible {
	color: #4d7759;
	text-decoration: none;
	box-shadow: inset 0 -2px 0 #c9d9cd;
}

.darplay-shop-tab.is-current {
	color: #2f5259;
	font-weight: 600;
	box-shadow: inset 0 -2px 0 #518459;
}

/* 6) Product cards: price easier to see; on phones smaller titles. */
.wc-block-product-template .wc-block-components-product-price {
	color: #202020;
	font-size: 17px !important;
	font-weight: 700;
}

@media (max-width: 600px) {
	.post-type-archive-product main,
	.tax-product_cat main {
		margin-block-start: 0 !important;
	}

	.darplay-shop-head {
		margin-top: 14px !important;
	}

	.wc-block-product-template .wp-block-post-title {
		font-size: 16px !important;
		line-height: 1.3 !important;
		margin-top: 10px !important;
		margin-bottom: 6px !important;
	}

	.wc-block-product-template .wp-block-woocommerce-product-price {
		margin-bottom: 10px !important;
	}

	.wc-block-product-template .wc-block-components-product-price {
		font-size: 16px !important;
	}

	.darplay-shop-tabs {
		gap: 22px;
	}

	.darplay-shop-tab {
		font-size: 15px;
	}
}
