/* Controlled additions: preserve the desktop composition and native layouts. */
.site-header .header-search:focus-within {
	outline: 3px solid #1460E8;
	outline-offset: 3px;
}
.site-header :is(.account-link, .cart-link, .menu-toggle, .category-navigation a, .main-navigation a):focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}
@media (max-width: 1024px) {
	.site-header .header-main,
	.site-header .header-search,
	.site-header .nav-inner { min-width: 0; }
	.site-header .header-search button { flex: 0 0 50px; }
	.site-header .category-navigation {
		flex: 1 1 auto;
		min-width: 0;
		max-width: 100%;
		overflow-x: auto;
		scrollbar-width: thin;
		scrollbar-color: #FFFFFF #1460E8;
		scroll-padding-inline: 6px;
	}
	.site-header .category-navigation::-webkit-scrollbar { display: block; height: 5px; }
	.site-header .category-navigation::-webkit-scrollbar-thumb { border-radius: 4px; background: #FFFFFF; }
	.site-header .category-navigation ul { width: max-content; padding: 4px 6px; }
	.site-header .category-navigation li { flex: 0 0 auto; }
	.site-header .category-navigation li a { display: flex; align-items: center; min-height: 44px; padding: 10px 4px; font-size: 12px; }
	.site-header .main-navigation { flex: 0 0 auto; }
	.site-header .account-link,
	.site-header .cart-link { min-width: 44px; min-height: 44px; justify-content: center; }
}
@media (max-width: 700px) {
	.site-header .header-main { column-gap: 10px; }
	.site-header .header-actions { gap: 6px; }
	.site-header .menu-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 4px; }
	.site-header .header-search { flex: 0 0 100%; width: 100%; height: 46px; }
	.site-header .header-search input[type=search] { width: 0; min-width: 0; flex: 1 1 auto; font-size: 16px; }
	.site-header .main-navigation li a { min-height: 44px; padding: 10px 6px; }
	.homepage .section-heading { flex-wrap: wrap; align-items: flex-start; gap: 12px; }
	.homepage .section-heading > div { flex: 1 1 220px; min-width: 0; }
	.homepage .section-heading h2 { overflow-wrap: anywhere; }
	.homepage .section-heading .text-link { display: inline-flex; align-items: center; min-height: 44px; padding-block: 8px; }
	/* Keep the existing card grids and image proportions. */
	.homepage .product-card,
	.homepage .product-card__body { min-width: 0; }
	.homepage .product-card h3 { font-size: 14px; overflow-wrap: anywhere; }
	.homepage .product-card__category { font-size: 12px; overflow-wrap: anywhere; }
	.homepage .product-card__price { font-size: 16px; overflow-wrap: anywhere; }
	.homepage .product-card__button {
		min-height: 44px;
		padding: 10px 8px;
		font-size: 13px;
		line-height: 1.5;
		white-space: normal;
		overflow-wrap: anywhere;
	}
	.homepage .category-name { font-size: 14px; overflow-wrap: anywhere; }
	.homepage .category-description { font-size: 12px; overflow-wrap: anywhere; }
	.homepage .section-kicker { font-size: 11px; }
	.homepage .newsletter-inner p { font-size: 14px; }
	.homepage .newsletter-inner .button { max-width: 100%; padding-block: 10px; white-space: normal; overflow-wrap: anywhere; }
	/* Existing wrapping cart form remains in control of the product layout. */
	.single-product.woocommerce div.product form.cart > * { min-width: 0; max-width: 100%; }
	.single-product.woocommerce div.product form.cart .button { overflow-wrap: anywhere; }
	.single-product.woocommerce .quantity .qty { font-size: 16px; }
	.single-product.woocommerce .summary :is(.price, .stock) { overflow-wrap: anywhere; }
	.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li { min-width: 0; max-width: 100%; }
	.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li a { white-space: normal; overflow-wrap: anywhere; }
	/* Native fieldsets have a min-content minimum; allow narrow account forms. */
	.woocommerce-account .site-main .woocommerce fieldset { min-inline-size: 0; }
	.woocommerce-account .site-main .woocommerce legend { max-width: 100%; overflow-wrap: anywhere; }
	.woocommerce-account .site-main .woocommerce .button { max-width: 100%; overflow-wrap: anywhere; }
	.woocommerce-account .site-main .woocommerce .woocommerce-Address { min-width: 0; }
	.woocommerce-account .site-main .woocommerce .woocommerce-Address .title h2 { overflow-wrap: anywhere; }
	.woocommerce-account .site-main .woocommerce .woocommerce-Address .edit { display: inline-flex; align-items: center; min-height: 44px; padding-block: 8px; }
	/* Preserve both footer columns, giving long words room to reflow. */
	.site-footer .footer-main > * { min-width: 0; overflow-wrap: anywhere; }
	.site-footer .footer-column h2 { font-size: 14px; }
	.site-footer .footer-column li { margin-block: 4px; font-size: 14px; }
	.site-footer .footer-column a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; padding-block: 8px; }
	.site-footer .footer-brand p { font-size: 14px; }
	.site-footer .footer-bottom { font-size: 12px; overflow-wrap: anywhere; }
	.site-footer a:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; }
}
@media (max-width: 600px) {
	/* Catalog selectors do not reach the product recommendations or Blocks. */
	:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag, .search-results.woocommerce) .site-main ul.products li.product .woocommerce-loop-product__title { font-size: 14px; overflow-wrap: anywhere; }
	:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag, .search-results.woocommerce) .site-main ul.products li.product .price { min-width: 0; overflow-wrap: anywhere; }
	:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag, .search-results.woocommerce) .site-main ul.products li.product .button { font-size: 13px; white-space: normal; overflow-wrap: anywhere; }
}
@media (max-width: 430px) {
	/* Confirmed narrow-card issue: catalog only, never homepage or related items. */
	:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag, .search-results.woocommerce) .site-main ul.products { grid-template-columns: minmax(0, 1fr); }
	/* Override WooCommerce smallscreen's more specific columns-* width: 48%. */
	:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag, .search-results.woocommerce) .site-main ul.products li.product {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		float: none;
		margin-inline: 0;
		justify-self: stretch;
	}
	:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag, .search-results.woocommerce) .site-main ul.products li.product .woocommerce-loop-product__title { min-height: 0; }
	:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag, .search-results.woocommerce) .site-main ul.products li.product .price { gap: 4px 8px; }
	:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag, .search-results.woocommerce) .site-main ul.products li.product .price .woocommerce-Price-amount { white-space: nowrap; }
	:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag, .search-results.woocommerce) .site-main ul.products li.product .button { word-break: normal; overflow-wrap: normal; }
	:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag, .search-results.woocommerce) .site-main ul.products li.product a img { display: block; margin-inline: auto; object-fit: contain; object-position: center; }
}
