/* Set max width and center columns/messages on product pages */
@media screen and (min-width: 768px) {
    .theme-pearl.store-view-default.page-products .columns,
    .theme-pearl.store-view-default.page-products .page.messages {
        max-width: 1370px !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 15px; /* optional spacing */
    }

    /* Remove padding from page-main container */
    .theme-pearl.store-view-default .page-main {
        max-width: 100%;
        width: 100%;
        padding: 0 !important;
    }

    /* Remove inline padding for page-wrapper */
    .theme-pearl .page-wrapper .page-main {
        padding-inline: 0 !important;
    }
}

@media screen and (max-width: 767px) {
    .theme-pearl.store-view-default.page-products .columns,
    .theme-pearl.store-view-default.page-products .page.messages {
        margin-left: 15px;
        margin-right: 15px;
        width: auto;        /* allows margins to take effect */
        max-width: none;    /* remove desktop max-width if needed */
        box-sizing: border-box;
    }
}
