/*
 * VP-044 — Memarket on phones and tablets (Sahara, header1 / home1): everything below applies under 992 px, the
 * width under which the theme stacks its columns; from 992 px the page is the theme's own (the two rules outside
 * the media query only keep the new elements out of the desktop layout). js/mm-mobile.js adds the behaviour and
 * marks the page html.mm-ready once it runs; until then (or without it) the theme's own menu button stays in the bar.
 * The bar and the quick search apply to header1's #header.mm-mobile only: header2 / header3 (the theme's other headers,
 * same ids) keep the theme's own on every width.
 *
 *  - the bar: menu, search, favorites, account, publish; the logo under it, compact;
 *  - the quick search: the theme's own search form (templates/inc/*), folded under the logo until the search button
 *    opens it;
 *  - the menu: a side panel (templates/mobile/drawer.php) over the page;
 *  - the home page: slider, showcase, Premium (a row that scrolls sideways), latest listings (grid or list),
 *    featured brands, latest searches; the long category list, the popular locations (now in the menu), the social
 *    box (the footer's "Follow us"), the sidebar's Premium list (the same listings as the Premium row) and the sidebar
 *    banner slot are not repeated on the page.
 * Colours are Sahara's (green #53a318, page #f1efef); text on green uses the darker #3d7a10 (WCAG AA).
 */
:root {
    --mm-green: #53a318;
    --mm-green-ink: #3d7a10;
    --mm-green-soft: #eef6e8;
    --mm-amber: #f2a900;
    --mm-ink: #1f2328;
    --mm-text: #333333;
    --mm-muted: #646464;
    --mm-line: #e4e1e1;
    --mm-page: #f1efef;
    --mm-radius: 10px;
}

/* from 992 px: the Premium row's wrapper is no box at all (the cards lay out exactly as before) */
@media (min-width: 992px) {
    .mm-rail {
        display: contents;
    }
}

/* the controls js/mm-mobile.js adds to the home page's headings exist only under 992 px */
.mm-viewtoggle,
.mm-railnav {
    display: none;
}
.mm-drawer[hidden],
.mm-viewtoggle[hidden],
.mm-railnav[hidden] {
    display: none !important;
}

@media (max-width: 991.98px) {

    /* ---------------------------------------------------------------- the bar */
    #header.mm-mobile header#top {
        min-height: 0;
        margin-bottom: 0;
        border: 0;
        border-radius: 0;
    }
    /* the bar's container keeps the theme's padding (and Control Pro's layout gutter): its edges are the page's */
    #header.mm-mobile #top .navbar-header {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 2px;
        float: none;
        height: 56px;
        margin: 0;
    }
    #header.mm-mobile #top .navbar-header::before,
    #header.mm-mobile #top .navbar-header::after {
        display: none;
    }
    #header.mm-mobile #top #bs-navbar {
        display: none !important;
    }
    #header.mm-mobile #top .navbar-header > .navbar-toggle,
    #header.mm-mobile #top .navbar-header > .mm-menu-btn,
    #header.mm-mobile #top .navbar-header > .tuxedo-menu-trigger {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        float: none;
        width: 44px;
        height: 44px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: #fff;
        font-size: 20px;
        line-height: 1;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }
    /* the favorites heart (Control Pro): the theme hides it from 768 px, the bar shows it up to 992 px */
    #header.mm-mobile #top .navbar-header > .cpf-navlink--mobile {
        display: inline-flex !important;
    }
    #header.mm-mobile #top .navbar-header > .cpf-navlink--mobile .cpf-count {
        top: 3px;
        right: 2px;
    }
    /* the menu button on the left: ours once the script runs, the theme's own until then */
    #header.mm-mobile #top .navbar-header > .tuxedo-menu-trigger,
    #header.mm-mobile #top .navbar-header > .mm-menu-btn {
        order: -1;
        margin-right: auto;
    }
    #header.mm-mobile #top .navbar-header > .mm-menu-btn {
        display: none;
    }
    html.mm-ready #header.mm-mobile #top .navbar-header > .mm-menu-btn {
        display: inline-flex;
    }
    html.mm-ready #header.mm-mobile #top .navbar-header > .tuxedo-menu-trigger {
        display: none;
    }
    #header.mm-mobile #top .navbar-header > .navbar-toggle:focus,
    #header.mm-mobile #top .navbar-header > .mm-menu-btn:focus {
        color: #fff;
        outline: none;
    }
    #header.mm-mobile #top .navbar-header > .navbar-toggle:focus-visible,
    #header.mm-mobile #top .navbar-header > .mm-menu-btn:focus-visible {
        outline: 2px solid #fff;
        outline-offset: -2px;
    }
    #header.mm-mobile #top .navbar-header > .navbar-toggle[aria-expanded="true"] {
        background: rgba(0, 0, 0, .14);
    }
    /* publish: the one filled control of the bar */
    #header.mm-mobile #top .navbar-header > .putihh {
        width: auto;
        height: 40px;
        margin-left: 6px;
        padding: 0 14px 0 11px;
        gap: 6px;
        border-radius: 999px;
        background: #fff;
        color: var(--mm-green-ink);
        font-size: 14px;
        font-weight: 700;
        box-shadow: 0 1px 2px rgba(0, 0, 0, .18);
    }
    #header.mm-mobile #top .navbar-header > .putihh:focus {
        background: #fff;
        color: var(--mm-green-ink);
    }
    #header.mm-mobile #top .navbar-header > .putihh:focus-visible {
        outline: 2px solid #fff;
        outline-offset: 2px;
    }
    #header.mm-mobile #top .navbar-header > .putihh .fa {
        font-size: 13px;
    }

    /* ---------------------------------------------------------------- the logo row */
    #header.mm-mobile .head2 {
        margin: 0;
        padding: 8px 0;
        border-bottom: 1px solid var(--mm-line);
    }
    #header.mm-mobile .head2 .centeres {
        line-height: 0;
    }
    #header.mm-mobile .head2 #logo {
        display: inline-block;
    }
    #header.mm-mobile .head2 #logo img {
        width: auto;
        height: 48px;
    }

    /* ---------------------------------------------------------------- the quick search (the theme's form) */
    #header.mm-mobile #bs-example-navbar-collapse-121.collapse:not(.in) {
        display: none !important;
    }
    #header.mm-mobile #bs-example-navbar-collapse-121.in,
    #header.mm-mobile #bs-example-navbar-collapse-121.collapsing {
        display: block !important;
    }
    #header.mm-mobile #bs-example-navbar-collapse-121 {
        max-height: none;
        margin: 8px 0 4px;
        padding: 12px;
        overflow: visible !important;
        border: 1px solid var(--mm-line);
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(16, 24, 40, .1);
    }
    #header.mm-mobile #bs-example-navbar-collapse-121 .mm-qs-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin: -4px -4px 8px 0;
    }
    #header.mm-mobile .mm-qs-title {
        margin: 0;
        color: var(--mm-ink);
        font-size: 16px;
        font-weight: 700;
    }
    #header.mm-mobile .mm-qs-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: var(--mm-muted);
        font-size: 18px;
    }
    #header.mm-mobile .mm-qs-close:hover {
        background: var(--mm-page);
        color: var(--mm-ink);
    }
    #header.mm-mobile #bs-example-navbar-collapse-121 form {
        margin: 0;
    }
    /* one field a row: the theme's longest prompts ("Scegli una Regione") stay whole at 16 px */
    #header.mm-mobile #bs-example-navbar-collapse-121 fieldset {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        min-width: 0;
        margin: 0;
        padding: 0;
        border: 0;
    }
    #header.mm-mobile #bs-example-navbar-collapse-121 fieldset > div {
        float: none;
        width: auto;
        min-width: 0;
        padding: 0;
    }
    #header.mm-mobile #bs-example-navbar-collapse-121 fieldset > div:empty {
        display: none;
    }
    #header.mm-mobile #bs-example-navbar-collapse-121 fieldset .row {
        margin: 0;
    }
    #header.mm-mobile #bs-example-navbar-collapse-121 input.form-control,
    #header.mm-mobile #bs-example-navbar-collapse-121 select {
        width: 100%;
        height: 46px;
        padding: 0 12px;
        border: 1px solid #d2cdcd;
        border-radius: 8px;
        background-color: #fff;
        box-shadow: none;
        color: var(--mm-text);
        font-size: 16px; /* 16 px: phones do not zoom into the field */
    }
    #header.mm-mobile #bs-example-navbar-collapse-121 input.form-control:focus,
    #header.mm-mobile #bs-example-navbar-collapse-121 select:focus {
        border-color: var(--mm-green);
        outline: none;
        box-shadow: 0 0 0 3px rgba(83, 163, 24, .25);
    }
    #header.mm-mobile #bs-example-navbar-collapse-121 .depans {
        width: 100%;
        height: 48px;
        border: 0;
        border-radius: 8px;
        background: var(--mm-green-ink);
        color: #fff;
        font-size: 16px;
        font-weight: 700;
    }
    #header.mm-mobile #bs-example-navbar-collapse-121 .depans:hover,
    #header.mm-mobile #bs-example-navbar-collapse-121 .depans:focus {
        background: #33680d;
    }

    /* ---------------------------------------------------------------- the menu (templates/mobile/drawer.php) */
    html.mm-drawer-open,
    html.mm-drawer-open body {
        overflow: hidden;
    }
    html.mm-drawer-open {
        scrollbar-gutter: stable; /* a mouse's scrollbar leaves no jump behind */
    }
    .mm-drawer {
        position: fixed;
        inset: 0;
        z-index: 1100; /* over the pinned bar (1000) and the theme's menu (1050) */
    }
    .mm-drawer__backdrop {
        position: absolute;
        inset: 0;
        background: rgba(16, 24, 40, .5);
        opacity: 0;
        transition: opacity .25s ease;
    }
    .mm-drawer__panel {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        width: min(88vw, 380px);
        background: #fff;
        box-shadow: 0 0 32px rgba(16, 24, 40, .28);
        color: var(--mm-text);
        transform: translate3d(-100%, 0, 0);
        transition: transform .28s cubic-bezier(.2, .7, .3, 1);
        outline: none;
    }
    .mm-drawer.is-open .mm-drawer__backdrop {
        opacity: 1;
    }
    .mm-drawer.is-open .mm-drawer__panel {
        transform: none;
    }
    .mm-drawer__head {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 0 0 auto;
        min-height: 60px;
        padding: 8px 8px 8px 16px;
        border-bottom: 1px solid var(--mm-line);
    }
    .mm-drawer__logo {
        line-height: 0;
    }
    .mm-drawer__logo img {
        width: auto;
        height: 40px;
    }
    .mm-drawer__title {
        flex: 1 1 auto;
        margin: 0;
        color: var(--mm-ink);
        font-size: 17px;
        font-weight: 700;
        line-height: 1.2;
        text-transform: none;
    }
    .mm-drawer__close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: var(--mm-muted);
        font-size: 20px;
    }
    .mm-drawer__close:hover {
        background: var(--mm-page);
        color: var(--mm-ink);
    }
    .mm-drawer__body {
        flex: 1 1 auto;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding: 12px 16px calc(28px + env(safe-area-inset-bottom, 0px));
    }
    .mm-drawer a {
        color: inherit;
        text-decoration: none;
    }
    .mm-drawer a:focus-visible,
    .mm-drawer button:focus-visible {
        outline: 3px solid rgba(83, 163, 24, .55);
        outline-offset: 1px;
    }
    .mm-drawer__panel:focus-visible {
        outline: none;
    }
    .mm-drawer__hello {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 4px 0 6px;
        color: var(--mm-ink);
        font-size: 15px;
        font-weight: 700;
        overflow-wrap: anywhere;
    }
    .mm-drawer__auth {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
        gap: 8px;
        margin: 4px 0 6px;
    }
    .mm-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 44px;
        padding: 0 14px;
        border-radius: 10px;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.2;
        text-align: center;
    }
    .mm-drawer .mm-btn--line {
        border: 1px solid var(--mm-green);
        background: #fff;
        color: var(--mm-green-ink);
    }
    .mm-drawer .mm-btn--line:hover {
        background: var(--mm-green-soft);
    }
    .mm-drawer .mm-btn--publish {
        display: flex;
        width: 100%;
        margin: 10px 0 4px;
        background: var(--mm-green-ink);
        color: #fff;
    }
    .mm-drawer .mm-btn--publish:hover {
        background: #33680d;
        color: #fff;
    }
    .mm-drawer__list {
        margin: 0;
        padding: 0;
        list-style: none;
    }
    .mm-drawer__list > li > a {
        display: flex !important; /* also the favorites link (cp-favorites.css: inline-flex !important) */
        align-items: center;
        gap: 10px;
        min-height: 44px;
        padding: 8px 4px;
        border-bottom: 1px solid #f0eeee;
        font-size: 15px;
        line-height: 1.3;
    }
    .mm-drawer__list > li:last-child > a {
        border-bottom: 0;
    }
    .mm-drawer__list > li > a > .fa,
    .mm-drawer__list .cpf-heart__icon {
        width: 18px;
        flex: 0 0 auto;
        color: var(--mm-green-ink);
        text-align: center;
    }
    .mm-drawer__list .cpf-count {
        position: static;
        margin-left: auto;
    }
    .mm-drawer__list > li > a:hover {
        color: var(--mm-green-ink);
    }
    .mm-drawer__sec {
        margin-top: 18px;
    }
    .mm-drawer__h {
        margin: 0 0 6px;
        padding: 0 4px;
        color: var(--mm-muted);
        font-size: 12px;
        font-weight: 700;
        line-height: 1.4;
        letter-spacing: .06em;
        text-transform: uppercase;
    }
    .mm-cats {
        margin: 0;
        padding: 0;
        list-style: none;
        border-top: 1px solid #f0eeee;
    }
    .mm-cat {
        border-bottom: 1px solid #f0eeee;
    }
    .mm-cat__row {
        display: flex;
        align-items: stretch;
    }
    .mm-cat__link {
        display: flex;
        align-items: center;
        gap: 10px;
        flex: 1 1 auto;
        min-width: 0;
        min-height: 48px;
        padding: 8px 4px;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.3;
    }
    .mm-cat__link > .fa {
        width: 20px;
        flex: 0 0 auto;
        color: var(--mm-green);
        text-align: center;
    }
    .mm-cat__link > span {
        min-width: 0;
        overflow-wrap: anywhere;
    }
    .mm-cat__link:hover {
        color: var(--mm-green-ink);
    }
    .mm-cat__toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 48px;
        width: 48px;
        padding: 0;
        border: 0;
        border-left: 1px solid #f0eeee;
        background: transparent;
        color: var(--mm-muted);
        font-size: 13px;
    }
    .mm-cat__toggle .fa {
        transition: transform .2s ease;
    }
    .mm-cat__toggle[aria-expanded="true"] {
        color: var(--mm-green-ink);
    }
    .mm-cat__toggle[aria-expanded="true"] .fa {
        transform: rotate(180deg);
    }
    .mm-cat__subs {
        margin: 0 0 8px;
        padding: 4px 0;
        list-style: none;
        border-radius: 8px;
        background: #f7f6f6;
    }
    .mm-cat__subs[hidden] {
        display: none;
    }
    .mm-cat__subs a {
        display: flex;
        align-items: center;
        min-height: 42px;
        padding: 6px 14px 6px 34px;
        font-size: 14px;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }
    .mm-cat__subs a:hover {
        color: var(--mm-green-ink);
    }
    .mm-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin: 4px 0 0;
        padding: 0;
        list-style: none;
    }
    .mm-chip {
        display: inline-flex;
        align-items: center;
        max-width: 100%;
        min-height: 40px;
        padding: 0 14px;
        border: 1px solid #d6e6cb;
        border-radius: 999px;
        background: var(--mm-green-soft);
        color: #2f5f0d !important;
        font-size: 14px;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .mm-chip:hover,
    .mm-chip.is-current {
        border-color: var(--mm-green-ink);
        background: var(--mm-green-ink);
        color: #fff !important;
    }

    /* ---------------------------------------------------------------- the home page's order */
    .main .mm-home-cats,
    .row.mm-home .mm-s-places,
    .row.mm-home .mm-s-social,
    .row.mm-home .mm-s-sponsored,
    .row.mm-home .mm-s-ads {
        display: none !important;
    }
    .row.mm-home {
        display: flex;
        flex-direction: column;
    }
    .row.mm-home::before,
    .row.mm-home::after {
        display: none;
    }
    .row.mm-home > .mm-home-main {
        order: 1;
    }
    .row.mm-home > .mm-home-side {
        order: 2;
        display: flex;
        flex-direction: column;
    }
    .row.mm-home > .mm-home-side > .mm-s-brands {
        order: 1;
    }
    .row.mm-home > .mm-home-side > .mm-s-searches {
        order: 2;
    }
    .main .mm-home-hero {
        margin-bottom: 4px;
    }

    /* ---------------------------------------------------------------- section headings (the theme's, kept on one line) */
    .row.mm-home .mm-home-main > .catalog {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 12px;
        float: none;
        margin: 22px 0 12px;
        padding-bottom: 8px;
    }
    .row.mm-home .mm-home-main > .catalog::before,
    .row.mm-home .mm-home-main > .catalog::after {
        display: none;
    }
    .row.mm-home .mm-home-main > .catalog > .pull-left {
        flex: 1 1 auto;
        min-width: 0;
        float: none !important;
    }
    .row.mm-home .mm-home-main > .catalog > .pull-right {
        float: none !important;
        margin-left: auto;
    }
    .row.mm-home .mm-home-main > .catalog > .pull-right a {
        display: inline-flex;
        align-items: center;
        min-height: 36px;
        font-size: 14px;
        text-transform: none; /* like the showcase's "Vedi tutti": the heading keeps one line */
    }
    .row.mm-home .mm-home-main > .catalog > .mm-viewtoggle,
    .row.mm-home .mm-home-main > .catalog > .mm-railnav {
        flex: 0 0 auto;
    }

    /* ---------------------------------------------------------------- the cards (Premium row and latest listings) */
    .row.mm-home .mm-home-main .list-product.premi,
    .row.mm-home .mm-home-main > .list-product.news {
        display: flex;
        flex-direction: column;
        float: none;
        width: auto;
        min-width: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
        border: 1px solid var(--mm-line);
        border-radius: var(--mm-radius);
        box-shadow: 0 1px 2px rgba(16, 24, 40, .06);
        transition: none;
    }
    .row.mm-home .mm-home-main > .list-product.news {
        background: #fff;
    }
    .row.mm-home .mm-home-main .list-product.premi {
        border-color: #f0e2a2;
    }
    .row.mm-home .mm-home-main .list-product > .product-kiri {
        float: none;
        width: auto;
        padding: 0;
    }
    .row.mm-home .mm-home-main .list-product .cpf-media {
        aspect-ratio: 4 / 3;
        overflow: hidden;
        background: var(--mm-page);
    }
    .row.mm-home .mm-home-main .list-product .cpf-media > a {
        display: block;
        width: 100%;
        height: 100%;
    }
    .row.mm-home .mm-home-main .list-product .cpf-media img.gambars {
        display: block;
        width: 100%;
        height: 100%;
        border: 0;
        object-fit: cover;
    }
    /* Sahara's Premium tag, drawn like the showcase's Premium badge; its ribbon only shows on hover, so not here */
    .row.mm-home .mm-home-main .list-product .label-premium {
        position: absolute;
        top: 8px;
        left: 8px;
        z-index: 3;
        display: inline-flex !important;
        align-items: center;
        gap: 4px;
        width: auto;
        margin: 0;
        padding: 4px 9px 4px 7px;
        border-radius: 999px;
        background: var(--mm-amber);
        box-shadow: 0 1px 2px rgba(16, 24, 40, .28);
        color: var(--mm-ink) !important;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.1;
        text-transform: none;
    }
    .row.mm-home .mm-home-main .list-product .label-premium::before {
        content: "";
        position: static;
        width: 11px;
        height: 11px;
        border: 0;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231f2328' d='M12 2.5l2.94 6.26 6.86.78-5.1 4.66 1.4 6.77L12 17.6l-6.1 3.37 1.4-6.77-5.1-4.66 6.86-.78z'/%3E%3C/svg%3E") center / contain no-repeat;
    }
    .row.mm-home .mm-home-main .list-product .label-premium::after,
    .row.mm-home .mm-home-main .list-product .label-premium b,
    .row.mm-home .mm-home-main .list-product .ribbon {
        display: none !important;
    }
    .row.mm-home .mm-home-main .list-product > .product-tengah {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        float: none;
        width: auto;
        min-width: 0;
        margin: 0;
        padding: 8px 10px 10px;
    }
    /* the text's parts keep their whole height: the card grows instead (it hides what sticks out) */
    .row.mm-home .mm-home-main .list-product > .product-tengah > * {
        flex-shrink: 0;
    }
    .row.mm-home .mm-home-main .list-product > .product-tengah > .judul {
        order: 2;
        margin: 0 0 4px;
        font-size: 14px;
        line-height: 1.35;
        -webkit-line-clamp: 2;
        overflow-wrap: anywhere;
    }
    .row.mm-home .mm-home-main .list-product > .product-tengah > .judul a {
        color: var(--mm-ink);
        font-size: 14px;
        line-height: 1.35;
    }
    .row.mm-home .mm-home-main .list-product > .product-tengah > .pricemini {
        order: 1;
        display: block;
        margin: 0 0 4px;
        overflow: hidden;
        color: var(--mm-green-ink);
        font-size: 16px;
        font-weight: 700;
        line-height: 1.3;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .row.mm-home .mm-home-main .list-product > .product-tengah > .price-wrap,
    .row.mm-home .mm-home-main .list-product > .product-tengah > .kontens {
        display: none;
    }
    .row.mm-home .mm-home-main .list-product > .product-tengah > .loc {
        order: 3;
        align-self: stretch; /* the theme's "end" (its grid) would push a long place out on the left */
        margin-top: auto;
        padding-top: 6px;
        overflow: hidden;
        border-top: 0;
        color: var(--mm-muted);
        font-size: 12px;
        line-height: 1.35;
        text-align: left;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .row.mm-home .mm-home-main .list-product > .product-tengah > .loc > span.lokas,
    .row.mm-home .mm-home-main .list-product > .product-tengah > .loc > span.lokas2 {
        margin-right: 0;
    }
    .row.mm-home .mm-home-main .list-product > .product-tengah > .loc > span.catt,
    .row.mm-home .mm-home-main .list-product > .product-tengah > .loc > span.datt {
        display: none;
    }
    .row.mm-home .mm-home-main .list-product > .product-tengah > .loc .fa {
        color: var(--mm-green);
    }

    /* ---------------------------------------------------------------- Premium: one row that scrolls sideways */
    .row.mm-home .mm-rail {
        display: flex;
        gap: 12px;
        margin: 0 0 4px;
        padding: 2px 1px 12px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 1px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }
    .row.mm-home .mm-rail > .list-product.premi {
        flex: 0 0 calc((100% - 12px) / 1.6);
        scroll-snap-align: start;
    }
    .mm-railnav {
        display: inline-flex;
        gap: 6px;
    }
    .mm-railnav button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        padding: 0;
        border: 1px solid var(--mm-line);
        border-radius: 999px;
        background: #fff;
        color: var(--mm-green-ink);
    }
    .mm-railnav button:disabled {
        color: #b8b5b5;
        cursor: default;
    }

    /* ---------------------------------------------------------------- latest listings: grid (default) or list */
    .row.mm-home .mm-home-main {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 12px;
        align-items: stretch;
    }
    .row.mm-home .mm-home-main > * {
        grid-column: 1 / -1;
        min-width: 0;
    }
    .row.mm-home .mm-home-main > .list-product.news {
        grid-column: auto;
        margin-bottom: 12px;
    }
    .row.mm-home .mm-home-main > .list-product:not(.news) {
        float: none;
        width: auto;
    }
    .row.mm-home .mm-home-main > a.full1 {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 46px;
        margin: 4px 0 8px;
        border: 0;
        border-radius: 10px;
        background: var(--mm-green-ink);
        color: #fff;
        font-size: 15px;
        white-space: normal;
    }
    .mm-viewtoggle {
        display: inline-flex;
        padding: 3px;
        border: 1px solid var(--mm-line);
        border-radius: 10px;
        background: #fff;
        text-transform: none;
    }
    .mm-viewtoggle button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-width: 40px;
        height: 34px;
        padding: 0 10px;
        border: 0;
        border-radius: 7px;
        background: transparent;
        color: var(--mm-muted);
        font-size: 13px;
        font-weight: 700;
    }
    .mm-viewtoggle button[aria-pressed="true"] {
        background: var(--mm-green-ink);
        color: #fff;
    }
    .mm-viewtoggle button:focus-visible,
    .mm-railnav button:focus-visible {
        outline: 3px solid rgba(83, 163, 24, .55);
        outline-offset: 1px;
    }
    /* list: photo on the left, the text beside it */
    html.mm-view-list .row.mm-home .mm-home-main > .list-product.news {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: stretch;
        margin-bottom: 10px;
    }
    /* the photo column the same width on every card; the photo fills its height (a 4:3 box here would take its
       width from the card's height and squeeze the text) */
    html.mm-view-list .row.mm-home .mm-home-main > .list-product.news > .product-kiri {
        flex: 0 0 38%;
        min-width: 0;
        max-width: 200px;
    }
    html.mm-view-list .row.mm-home .mm-home-main > .list-product.news .cpf-media {
        height: 100%;
        min-height: 104px;
        aspect-ratio: auto;
    }
    html.mm-view-list .row.mm-home .mm-home-main > .list-product.news > .product-tengah {
        padding: 10px 12px;
    }
    html.mm-view-list .row.mm-home .mm-home-main > .list-product.news > .product-tengah > .judul,
    html.mm-view-list .row.mm-home .mm-home-main > .list-product.news > .product-tengah > .judul a {
        font-size: 15px;
    }
    html.mm-view-list .row.mm-home .mm-home-main > .list-product.news > .product-tengah > .loc {
        white-space: normal;
    }
    html.mm-view-list .row.mm-home .mm-home-main > .list-product.news > .product-tengah > .loc > span.catt,
    html.mm-view-list .row.mm-home .mm-home-main > .list-product.news > .product-tengah > .loc > span.datt {
        display: inline;
        margin-right: 10px;
        white-space: nowrap;
    }
    html.mm-view-list .row.mm-home .mm-home-main > .list-product.news > .product-tengah > .loc > span.lokas2 {
        margin-right: 10px;
    }

    /* ---------------------------------------------------------------- featured brands and latest searches */
    .row.mm-home .mm-home-side > .catalogi {
        margin-top: 18px;
    }
    .row.mm-home .col-md-y.mm-s-brands #owl-demo7 .item {
        padding: 0 4px;
    }
    .row.mm-home .col-md-y.mm-s-brands #owl-demo7 .item img {
        display: block;
        width: 100%;
        height: 64px;
        padding: 6px;
        border: 1px solid var(--mm-line);
        border-radius: 8px;
        background: #fff;
        object-fit: contain;
    }
    .row.mm-home .col-md-y.mm-s-brands #owl-demo7 a:not([href]) {
        cursor: default; /* a brand without a link of its own (js/mm-mobile.js): nothing to open */
    }
    .row.mm-home .tager.mm-s-searches {
        padding: 0;
    }
    .row.mm-home .tager.mm-s-searches > .row {
        flex-wrap: nowrap;
        margin: 6px 0 12px;
        padding: 0 0 6px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }
    .row.mm-home .tager.mm-s-searches .tagss {
        flex: 0 0 auto;
    }
    .row.mm-home .tager.mm-s-searches a.clous {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
        max-width: 240px;
        padding: 0 14px;
        border: 1px solid #d6e6cb;
        border-radius: 999px;
        background: var(--mm-green-soft);
        color: #2f5f0d;
    }
    .row.mm-home .tager.mm-s-searches a.clous:focus-visible {
        outline: 3px solid rgba(83, 163, 24, .55);
        outline-offset: 1px;
    }
}

/* a mouse or a trackpad: the bar's buttons light up under the pointer */
@media (max-width: 991.98px) and (hover: hover) {
    #header.mm-mobile #top .navbar-header > .navbar-toggle:hover,
    #header.mm-mobile #top .navbar-header > .mm-menu-btn:hover,
    #header.mm-mobile #top .navbar-header > .tuxedo-menu-trigger:hover {
        background: rgba(255, 255, 255, .16);
        color: #fff;
    }
    #header.mm-mobile #top .navbar-header > .putihh:hover {
        background: #f3f8ef;
    }
    .row.mm-home .tager.mm-s-searches a.clous:hover {
        border-color: var(--mm-green-ink);
        background: var(--mm-green-ink);
        color: #fff;
    }
}

/* phones: the latest listings' heading keeps the title and the view buttons; "See all" is the button under the
   listings (the same page) */
@media (max-width: 575.98px) {
    .row.mm-home .mm-home-main > .catalog.topper:has(> .mm-viewtoggle) > .pull-right {
        display: none;
    }
}
/* the narrowest phones: the publish button shows its icon only (the word stays its accessible name) */
@media (max-width: 359.98px) {
    #header.mm-mobile #top .navbar-header > .putihh {
        width: 40px;
        padding: 0;
    }
    #header.mm-mobile #top .navbar-header > .putihh .mm-bar-publish {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}
@media (max-width: 991.98px) and (min-width: 576px) {
    .row.mm-home .mm-rail > .list-product.premi {
        flex-basis: calc((100% - 24px) / 2.5);
    }
}
@media (max-width: 991.98px) and (min-width: 768px) {
    .row.mm-home .mm-rail > .list-product.premi {
        flex-basis: calc((100% - 36px) / 3.5);
    }
    .row.mm-home .mm-home-main {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 991.98px) and (min-width: 576px) {
    html.mm-view-list .row.mm-home .mm-home-main > .list-product.news > .product-tengah > .loc {
        order: 4;
    }
    html.mm-view-list .row.mm-home .mm-home-main > .list-product.news > .product-tengah > .kontens {
        display: block;
        height: auto;
        order: 3;
        margin-top: 4px;
        color: var(--mm-muted);
        font-size: 13px;
    }
    html.mm-view-list .row.mm-home .mm-home-main > .list-product.news > .product-tengah > .kontens p {
        display: -webkit-box;
        margin: 0;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
}
/* touch screens swipe: no arrows over the Premium row or the brands (the brands keep their dots) */
@media (max-width: 991.98px) and (hover: none) {
    .mm-railnav,
    .row.mm-home .col-md-y.mm-s-brands #owl-demo7 .owl-buttons {
        display: none !important;
    }
}
@media (max-width: 991.98px) and (prefers-reduced-motion: reduce) {
    .mm-drawer__backdrop,
    .mm-drawer__panel,
    .mm-cat__toggle .fa {
        transition: none;
    }
}
