/* ==========================================================================
   Mobile responsiveness — final layer, loaded last
   ========================================================================== */
@media (max-width: 1024px) {
	.ha-container,
	.woocommerce .ha-container { width: 100%; max-width: 100%; padding-inline: 18px; }
	html, body { max-width: 100%; overflow-x: hidden; }
	img, video, iframe, table { max-width: 100%; }

	.ha-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
	.ha-header__brand { min-width: 0; flex: 1 1 auto; }
	.ha-logo img { max-width: 130px; height: auto; }
	.ha-logo__name { font-size: 1rem; }
	.ha-header__actions { display: flex; align-items: center; gap: 6px; margin-inline-start: 0; }
	.ha-header__actions .ha-icon-btn { display: inline-flex; flex: 0 0 auto; }
	.ha-header__actions > .ha-icon-btn[data-ha-search-toggle] { display: none; }
	.ha-header__actions .ha-btn { display: none; }

	.ha-hero--advanced .ha-hero__grid,
	.ha-hero2__inner,
	.ha-product-hero__grid,
	.ha-store-hero .ha-container,
	.ha-addon-hero__grid,
	.ha-page-hero .ha-container { grid-template-columns: 1fr !important; }

	.ha-hero2__window,
	.ha-product-mock,
	.ha-showcase__window,
	.ha-browser--advanced { transform: none !important; }
	.ha-hero2__float,
	.ha-floatcard--rtl,
	.ha-floatcard--perf,
	.ha-showcase__chip { display: none !important; }

	.ha-grid--2,
	.ha-grid--3,
	.ha-grid--4,
	.ha-stats,
	.ha-stats--compact,
	.ha-store-cats,
	.ha-community-stats__grid,
	.ha-community-grid,
	.ha-agency-tools,
	.ha-agency-grid,
	.ha-included,
	.ha-included__cards,
	.ha-addon-package,
	.ha-addon-options,
	.ha-support-grid,
	.ha-contact-grid,
	.ha-agencies-stats,
	.ha-list-grid,
	.ha-topic-grid,
	.ha-community-members,
	.ha-docs-layout,
	.ha-pricing--cards { grid-template-columns: 1fr !important; }

	.ha-pricing--list .ha-plan { grid-template-columns: 1fr !important; }
	.ha-pricing--list .ha-plan .ha-check-list { grid-column: auto; grid-row: auto; }
	.ha-store-wrap ul.products { grid-template-columns: 1fr !important; }
	.ha-store-view--list ul.products li.product.ha-addon-card { grid-template-columns: 1fr !important; }
	.ha-store-view--list .ha-store-wrap ul.products li.product .ha-addon-card__image img { aspect-ratio: 4/3 !important; height: auto !important; }

	.ha-table-wrap,
	.ha-compare-table-wrap,
	.woocommerce table.shop_table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.ha-compare-table { min-width: 640px; }
	.ha-pricing-section .ha-compare-block { overflow: hidden; }

	.ha-product-actions,
	.ha-hero__actions,
	.ha-addon-hero__actions,
	.ha-product-secondary-actions { display: flex; flex-wrap: wrap; }
	.ha-product-actions .ha-btn,
	.ha-hero__actions .ha-btn,
	.ha-addon-links .ha-btn { flex: 1 1 100%; }
	.ha-sticky-buy__info { display: none; }
	.ha-sticky-buy__inner { justify-content: center; }
	.ha-sticky-buy__actions { width: 100%; justify-content: center; }
	.ha-sticky-buy__actions .ha-btn--primary { flex: 1; }

	.ha-section { padding-block: 46px; }
	.ha-section__head { margin-bottom: 22px; }
	.ha-section__title { font-size: clamp(1.45rem, 6vw, 2rem); }
}

@media (max-width: 640px) {
	.ha-container,
	.woocommerce .ha-container { padding-inline: 14px; }
	.ha-header__inner { min-height: 60px; }
	.ha-logo img { max-width: 104px; }
	.ha-icon-btn { width: 36px; height: 36px; }
	.ha-icon-btn .ha-icon { width: 18px; height: 18px; }
	.ha-cart__count { inset-block-start: -2px; inset-inline-end: -4px; min-width: 16px; height: 16px; font-size: .62rem; line-height: 16px; }
	.ha-breadcrumbs { font-size: .74rem; }
	.ha-hero__pill,
	.ha-hero2__eyebrow { font-size: .7rem; }
	.ha-hero2__title,
	.ha-product-hero__title,
	.ha-hero--advanced .ha-hero__title { font-size: clamp(1.9rem, 8.5vw, 2.4rem) !important; }
	.ha-hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.ha-ticker-track { gap: 22px; }
	.ha-docs-toc { position: static !important; max-height: none !important; }
	.ha-docs-content { padding: 16px !important; }
	.ha-form .ha-field input,
	.ha-form .ha-field textarea,
	.ha-form .ha-field select,
	.woocommerce form .form-row input,
	.woocommerce form .form-row textarea,
	.woocommerce form .form-row select { width: 100% !important; max-width: 100% !important; }
	.ha-ticket__summary { flex-wrap: wrap; }
	.ha-ticket__date { display: none; }
	.ha-review-form,
	.ha-helpbox__actions { flex-direction: column; align-items: stretch; }
	.ha-compare-block__title { font-size: 1.1rem; }
	.woocommerce div.product .woocommerce-tabs .tabs.wc-tabs { flex-wrap: nowrap; }
}
