.woocommerce .wp-block-woocommerce-product-grid .woocommerce-ordering,
.woocommerce .wp-block-woocommerce-product-grid .items-per-page-dropdown {
    display: none;
}

/* Full-width header and footer backgrounds in Storefront */
.storefront-header,
.site-header,
.storefront-footer,
.site-footer {
    width: 100vw !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}

/* Override Storefront's container restrictions */
.storefront-header .storefront-primary-navigation,
.site-header .container,
.storefront-footer .col-full,
.site-footer .container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* Mobile-specific: Ensure no horizontal scroll or clipping */
@media screen and (max-width: 768px) {
    .storefront-header,
    .site-header,
    .storefront-footer,
    .site-footer {
        width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        padding: 0 !important;
    }

    /* Fix any WooCommerce-specific mobile wrappers */
    body.woocommerce .site-header,
    body.woocommerce .site-footer {
        overflow-x: hidden !important;
    }

    /* Body adjustments to prevent scroll issues */
    body {
        overflow-x: hidden !important;
        margin: 0 !important;
    }
}

/* Tablet: 768px to 1024px */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .storefront-header .container,
    .storefront-footer .col-full {
        max-width: 100% !important;
        padding: 0 20px !important;
    }
}