/* Shop, category, parameter and tag listings (patterns/catalog.php). Cards: cards.css. */
.an-listing { padding-bottom: 56px; }
.an-catalog-top { padding-top: 16px !important; }
.an-crumbs, .an-crumbs .woocommerce-breadcrumb { font-size: 14px; color: var(--wp--preset--color--muted); margin: 0 0 18px; }
.an-crumbs a { color: var(--wp--preset--color--muted); }
.an-archive-head { margin-bottom: 22px; }
.an-archive-head__title { font-size: var(--wp--preset--font-size--xx-large); letter-spacing: -.02em; margin: 6px 0 0; }
.an-archive-head__intro { margin: 10px 0 0; color: var(--wp--preset--color--muted); max-width: 720px; font-size: 16.5px; }

.an-catalog__layout { display: grid; gap: 18px; align-items: start; }
.an-catalog__main { min-width: 0; }
.an-catalog__toolbar { gap: 12px; margin-bottom: 16px !important; align-items: center; }
.an-catalog__toolbar .woocommerce-result-count { margin: 0; font-size: 14.5px; color: var(--wp--preset--color--muted); }
.an-catalog__toolbar select.orderby { min-height: 40px; padding: 0 36px 0 12px; font-size: 14.5px; background-color: #fff; }

/* Filters: WooCommerce's drawer on phones (button + overlay), a panel beside the grid on desktop */
.an-filters { margin: 0 !important; }
/* The floating WhatsApp button would cover the drawer's "Aplicar" */
body:has(.wc-block-product-filters.is-overlay-opened) .an-wa-float { display: none; }
.an-filters__heading { font-size: 16px !important; letter-spacing: 0 !important; padding: 12px 18px 4px; margin: 0; }
.an-filters .wc-block-product-filter-checkbox-list { border: 0; padding: 0; }
.an-filters .wp-block-woocommerce-product-filter-attribute,
.an-filters .wp-block-woocommerce-product-filter-status,
.an-filters .wp-block-woocommerce-product-filter-active { padding: 14px 18px; border-bottom: 1px solid var(--wp--preset--color--border); margin: 0 !important; }
.an-filters > :last-child, .an-filters .wc-block-product-filters__overlay-content > :last-child { border-bottom: 0 !important; }
.an-filter__title { font-size: 14px !important; font-weight: 590 !important; letter-spacing: 0 !important; margin: 0 0 10px !important; }
.an-filters .wc-block-product-filter-checkbox-list__item { font-size: 14.5px; }
.an-filters input[type="checkbox"] { accent-color: var(--wp--preset--color--action); width: 18px; height: 18px; min-height: 0; }
.an-filters .wc-block-product-filter-checkbox-list__count { color: var(--wp--preset--color--muted); font-size: 13px; }
.an-filters .wc-block-product-filter-removable-chips__item { background: var(--wp--preset--color--tint); color: var(--wp--preset--color--action); border: 0; border-radius: 9999px; font-weight: 510; }
.an-filters__clear .wp-block-button__link { min-height: 36px; padding: 0 14px; font-size: 14px; }
.an-filters .wc-block-product-filters__open-overlay { min-height: 44px; padding: 0 16px; border: 1px solid var(--wp--preset--color--border-strong); border-radius: var(--wp--custom--radius--control); background: #fff; color: var(--wp--preset--color--text); font-weight: 590; }

/* Photo-less items (consumables) */
.an-noimg { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 8px; aspect-ratio: 4/3; background: var(--wp--preset--color--tint) !important; color: var(--wp--preset--color--brand); text-decoration: none !important; }
.an-noimg .an-icon { width: 44px; height: 44px; stroke-width: 1.2; }
.an-noimg span { font-size: 12.5px; color: var(--wp--preset--color--muted); }

.an-pagination { margin-top: 28px; gap: 6px; font-size: 15px; }
.an-pagination .page-numbers { min-width: 40px; min-height: 40px; display: inline-grid; place-items: center; border-radius: var(--wp--custom--radius--control); box-shadow: var(--wp--preset--shadow--ring); background: #fff; color: var(--wp--preset--color--text); text-decoration: none; }
.an-pagination .page-numbers.current { background: var(--wp--preset--color--action); color: #fff; box-shadow: none; }
.an-empty { padding: 44px 22px; text-align: center; background: #fff; border-radius: var(--wp--custom--radius--card); box-shadow: var(--wp--preset--shadow--ring); }
.an-empty h2 { font-size: 20px !important; margin: 0 0 8px; }
.an-empty p { color: var(--wp--preset--color--muted); margin: 4px 0; }

@media (min-width: 901px) {
	.an-catalog-top { padding-top: 18px !important; }
	.an-catalog__layout { grid-template-columns: 268px minmax(0, 1fr); gap: 28px; }
	.an-filters { position: sticky; top: 140px; background: var(--wp--preset--color--surface); border-radius: var(--wp--custom--radius--card); box-shadow: var(--wp--preset--shadow--ring); padding: 6px 0 !important; max-height: calc(100vh - 160px); overflow: auto; }
	.admin-bar .an-filters { top: 172px; }
}
@media (max-width: 900px) {
	.an-filters__heading { display: none; }
	.an-filters .wc-block-product-filters__open-overlay { width: 100%; justify-content: center; }
}
