/* aromatic x Shared Mobile Foundation: adapter. Loaded only for an enabled store.
   Tokens are the theme's own header values (generated by gen_adapters.py); no layout rules here. */
body.sf-m.sf-m-t-aromatic {
    --sf-m-header-bg: rgb(255, 255, 255);
    --sf-m-header-fg: rgb(68, 68, 68);
    --sf-m-header-line: rgb(240, 236, 232);
    --sf-m-header-line-w: 1px;
    --sf-m-color-accent: rgb(248, 58, 38);
    --sf-m-color-on-accent: rgb(0, 0, 0);
    --sf-m-drawer-bg: rgb(255, 255, 255);
    --sf-m-drawer-fg: rgb(44, 44, 44);
    --sf-m-bar-bg: rgb(255, 255, 255);
    --sf-m-bar-fg: rgb(44, 44, 44);
    --sf-m-bar-line: rgb(240, 236, 232);
    --sf-m-bar-active: rgb(248, 58, 38);
    --sf-m-sheet-bg: rgb(255, 255, 255);
    --sf-m-sheet-fg: var(--ar-text, rgb(51, 51, 51));
    --sf-m-sheet-line: var(--ar-border, rgb(229, 224, 216));
    --sf-m-control-bg: rgb(255, 255, 255);
    --sf-m-control-fg: var(--ar-text, rgb(51, 51, 51));
    --sf-m-control-line: var(--ar-border, rgb(229, 224, 216));
}

@media (max-width: 991.98px) {
    /* home product grids use two fixed 202px tracks */
    body.sf-m.sf-m-t-aromatic .ar-prod-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.sf-m.sf-m-t-aromatic .ar-prod-grid-item {
        min-inline-size: 0;
    }
}

@media (max-width: 991.98px) {
    /* cart step indicator: three steps share the row; labels may wrap under their number instead of
       pushing the last step out of the viewport (theme layout, identical with the foundation off) */
    body.sf-m.sf-m-t-aromatic .ar-steps {
        max-inline-size: 100%;
        min-inline-size: 0;
    }

    body.sf-m.sf-m-t-aromatic .ar-steps > .ar-step {
        flex: 1 1 0 !important;
        min-inline-size: 0;
        padding-inline: 6px !important;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        letter-spacing: 0 !important;
        overflow-wrap: anywhere;
    }

    body.sf-m.sf-m-t-aromatic .ar-steps > .ar-step-line {
        flex: 0 1 12px !important;
        min-inline-size: 4px !important;
    }
}
