/* AlahaDeal global mobile/tablet width guard V1.
   Keeps the shared page-flow shell on the full viewport without changing
   desktop container sizing or fixed overlays. */

html,
body {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    overflow-x: clip;
}

@media (max-width: 1199.98px) {
    body > .header,
    body > .main-content,
    body > .footer,
    body > .app-bar,
    .header,
    .main-content,
    .footer {
        width: 100% !important;
        max-width: 100% !important;
        margin-inline: 0 !important;
        inset-inline: 0;
        box-sizing: border-box;
    }

    .header > .header-top,
    .header > .header-middle,
    .header > .header-main,
    .header-location-mobile-strip,
    .main-content > section,
    .footer > .footer-bg-img,
    .footer .footer-top,
    .footer .footer-main,
    .footer .footer-bottom {
        width: 100% !important;
        max-width: 100% !important;
        margin-inline: 0 !important;
        box-sizing: border-box;
    }

    .header .container,
    .main-content > .container,
    .main-content > section > .container,
    .footer .container {
        width: calc(100% - 24px) !important;
        max-width: none !important;
        margin-inline: auto !important;
        box-sizing: border-box;
    }

    .main-content > .container,
    .main-content > section > .container {
        min-width: 0 !important;
    }

    .main-content [class*="flexible-grid"],
    .main-content #ajax-products-view,
    .main-content #filtered-products {
        max-width: 100%;
        min-width: 0;
    }
}

@media (max-width: 575.98px) {
    .header .container,
    .main-content > .container,
    .main-content > section > .container,
    .footer .container {
        width: calc(100% - 16px) !important;
    }
}
