/**
 * Shop archive rhythm (layout 903) - spacing only. Scoped to main catalog.
 * Brand: dark theme, #c36928 prices, Gothic Paneuropean (no font overrides).
 */

/* Native Woodmart .wd-page-title replaces duplicate Elementor H1 on main shop only. */
body.post-type-archive-product .elementor-element-f5ac44d {
	display: none !important;
}

/*
 * Title block -> promo: match sibling pages (kur/apie/eduk title-block flush to content).
 * Shop native .wd-page-title sits outside layout 903 (40px natural gap); categories use 20px flex row-gap.
 */
body.post-type-archive-product .elementor-element-e18b061 {
	--margin-top: -40px;
	margin-top: -40px !important;
}

body.tax-product_cat .elementor-element-e18b061 {
	--margin-top: -20px;
	margin-top: -20px !important;
}

/*
 * Category archives: main gets 40px padding-top for native .wd-page-title on shop.
 * Without native title that padding becomes empty space above Elementor title (f5ac44d).
 */
body.tax-product_cat main.wd-content-layout {
	padding-top: 0 !important;
}

body.post-type-archive-product .elementor-element-3fb715b .wd-product .wd-entities-title {
	margin-top: 0.5rem;
	min-height: 2.75em;
	line-height: 1.35;
}

body.post-type-archive-product .elementor-element-3fb715b .wd-product .star-rating {
	margin-top: 0.25rem;
}

body.post-type-archive-product .elementor-element-3fb715b .wd-product .wrap-price {
	margin-top: 0.25rem;
}

body.post-type-archive-product .elementor-element-3fb715b .wd-product .product-element-bottom {
	padding-bottom: 0.5rem;
}

body.post-type-archive-product .elementor-element-3fb715b .wd-add-btn-replace {
	inset: auto auto 0.5rem 0.5rem;
}

body.post-type-archive-product .wd-nav-product-cat-wrap .nav-link-count,
body.tax-product_cat .wd-nav-product-cat-wrap .nav-link-count {
	display: none !important;
}

/*
 * Category nav row: Woodmart category-nav-link inherits btn min-height (42px) plus
 * Elementor widget _padding_mobile (8px). Tighten vertical rhythm only inside the nav bar.
 */
body.post-type-archive-product .elementor-element-5addff9 > .elementor-widget-container,
body.tax-product_cat .elementor-element-5addff9 > .elementor-widget-container {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

body.post-type-archive-product .wd-nav-product-cat-wrap .wd-nav-product-cat > li > a,
body.tax-product_cat .wd-nav-product-cat-wrap .wd-nav-product-cat > li > a {
	min-height: 0 !important;
	padding-top: 0.125rem !important;
	padding-bottom: 0.125rem !important;
	line-height: 1.25;
}

@media (max-width: 768.98px) {
	body.post-type-archive-product .wd-nav-product-cat-wrap .wd-nav-product-cat > li > a,
	body.tax-product_cat .wd-nav-product-cat-wrap .wd-nav-product-cat > li > a {
		padding-top: 0.125rem !important;
		padding-bottom: 0.125rem !important;
	}

	body.post-type-archive-product .elementor-element-3fb715b .wd-product-grid {
		--wd-gap: 16px;
	}
}
