/* =============================================================================
 * CarParts — Mobile tuning (≤600px). Desktop is untouched (all in @media).
 * ========================================================================== */
@media (max-width: 600px) {

	/* ---- car → part picker ---- */
	.cp-cf { padding: 14px !important; border-radius: 14px !important; margin-bottom: 18px !important; }
	.cp-cf__head { gap: 8px !important; margin-bottom: 12px !important; }
	.cp-cf__title { font-size: 14px !important; }
	.cp-cf__back { font-size: 12px !important; padding: 5px 11px !important; }
	.cp-cf__row { gap: 8px !important; }
	.cp-cf__chip { padding: 7px 12px !important; font-size: 13px !important; }
	.cp-cf__chip--car { font-size: 13px !important; }
	.cp-cf__chip-i { font-size: 18px !important; }
	.cp-cf__chip-c { font-size: 10px !important; min-width: 16px !important; padding: 1px 5px !important; } 

	/* ---- footer: pair «راهنمای خرید» + «تماس با ما» side-by-side (theme forces
	 *      the contact column full-width, leaving راهنمای خرید alone). ---- */
	.cpf__contact { grid-column: auto !important; }
	.cpf__contact-list { text-align: start; }

	/* ---- toolbar: keep «نتیجه …» on ONE line beside «پیش فرض», count smaller ---- */
	.cp-toolbar { gap: 8px !important; margin-bottom: 16px !important; flex-wrap: nowrap !important; }
	.woocommerce-ordering select.orderby {
		min-height: 42px !important;
		font-size: 13px !important;
		padding: 9px 14px 9px 34px !important;
	}
	.woocommerce-result-count {
		font-size: 10px !important;
		padding: 7px 11px !important;
		white-space: nowrap !important;
	}
}

/* The theme forces `li.product { width: 48% !important }` at ≤480px via the
 * higher-specificity `body.xtra-woo-two-col-mobile …` selector, which fights our
 * CSS grid (items shrink to 48% of their cell). Override it with a stronger
 * selector so grid items fill their track. */
@media (max-width: 480px) {
	body.xtra-woo-two-col-mobile .woocommerce ul.products li.product,
	body.xtra-woo-two-col-mobile ul.products[class*="columns-"] li.product {
		width: auto !important;
		float: none !important;
		margin: 0 !important;
	}
}
