/* Settings-driven section spacing. This dependency loads after the legacy layer. */
html body.dc-storefront-polish .wc-block-product-filters.wp-block-woocommerce-product-filters .wc-block-product-filters__overlay-content {
    display: flex !important;
    flex-direction: column;
    gap: var(--dc-shop-filter-section-gap,24px) !important;
    padding: var(--dc-shop-filter-panel-padding,18px) !important;
}
html body.dc-storefront-polish .wc-block-product-filters.wp-block-woocommerce-product-filters .wc-block-product-filters__overlay-content > * {
    margin-block: 0 !important;
    flex-shrink: 0;
}
html body.dc-storefront-polish .wc-block-product-filters.wp-block-woocommerce-product-filters .wc-block-product-filters__overlay-content .wp-block-heading {
    margin-top: 0 !important;
    margin-bottom: var(--dc-shop-filter-heading-gap,10px) !important;
}
@media(max-width:921px) {
    html body.dc-storefront-polish .wc-block-product-filters.wp-block-woocommerce-product-filters .wc-block-product-filters__overlay-content {
        gap: var(--dc-shop-filter-section-gap-mobile,20px) !important;
        padding: var(--dc-shop-filter-panel-padding-mobile,14px) var(--dc-shop-filter-panel-padding-mobile,14px) 110px !important;
    }
    html body.dc-storefront-polish .wc-block-product-filters.wp-block-woocommerce-product-filters .wc-block-product-filters__overlay-content .wp-block-heading {
        margin-bottom: var(--dc-shop-filter-heading-gap-mobile,8px) !important;
    }
    html body.dc-storefront-polish:not(.single-product) #content .wc-block-product-filters {
        padding: var(--dc-shop-filter-panel-padding-mobile,14px) !important;
    }
    html body.dc-storefront-polish:not(.single-product) .wc-block-product-filters__open-overlay { margin-bottom: 0 !important; }

    /* A single controlled interval replaces the accumulated theme/template gaps. */
    html body.dc-storefront-polish:not(.single-product) .ast-archive-entry-banner {
        min-height: 0 !important; height: auto !important;
        margin-block: 0 !important; padding-block: 0 !important; border-bottom-width: 0 !important;
    }
    html body.dc-storefront-polish:not(.single-product) .ast-archive-entry-banner > .ast-container {
        min-height: 0 !important; height: auto !important;
        padding-top: var(--dc-shop-archive-header-gap-mobile,12px) !important;
        padding-bottom: var(--dc-shop-archive-title-to-filter-mobile,24px) !important;
    }
    html body.dc-storefront-polish:not(.single-product) .ast-archive-entry-banner .ast-breadcrumbs-wrapper { margin-block: 0 !important; }
    html body.dc-storefront-polish:not(.single-product) .ast-archive-entry-banner h1 {
        margin-top: var(--dc-shop-archive-breadcrumb-title-gap-mobile,8px) !important;
        margin-bottom: 0 !important;
    }
    html body.dc-storefront-polish:not(.single-product) #content,
    html body.dc-storefront-polish:not(.single-product) #content > .ast-container,
    html body.dc-storefront-polish:not(.single-product) #content .elementor-location-archive,
    html body.dc-storefront-polish:not(.single-product) #content .dc-storefront-archive-top { padding-top: 0 !important; margin-top: 0 !important; }
    html body.dc-storefront-polish:not(.single-product) #content .dc-storefront-archive-row {
        display: flex !important; flex-direction: column !important;
        padding-top: 0 !important; margin-top: 0 !important;
        gap: var(--dc-shop-filter-to-results-gap-mobile,16px) !important;
    }
    html body.dc-storefront-polish:not(.single-product) #content .dc-storefront-filter-column {
        margin-block: 0 !important; padding-block: 0 !important;
    }
    html body.dc-storefront-polish:not(.single-product) #content .dc-storefront-results-column {
        margin-block: 0 !important; padding-top: 0 !important;
    }
    html body.dc-storefront-polish:not(.single-product) #content .elementor-widget-sidebar,
    html body.dc-storefront-polish:not(.single-product) #content .woocommerce-ordering { margin-top: 0 !important; }
    html body.dc-storefront-polish:not(.single-product) #content .woocommerce-ordering {
        margin-bottom: var(--dc-shop-sorting-to-products-gap-mobile,16px) !important;
    }
}
