@media (max-width: 991.98px) {
    .designer-mobile {
        position: relative;
    }

    .designer-header {
        position: relative;
        background: #ECE8E2;
        padding: 28px 24px;
        text-align: center;
    }

    .designer-header__back {
        position: absolute;
        top: 22px;
        left: 18px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: transparent;
        border: none;
        padding: 0;
        text-decoration: none;
        font-family: 'Montserrat', sans-serif;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 1.6px;
        text-transform: uppercase;
        color: #3A3A3A;
        cursor: pointer;
        z-index: 1;
    }

    .designer-header__back:hover,
    .designer-header__back:focus {
        color: #3A3A3A;
        text-decoration: none;
    }

    .designer-header__back-arrow {
        color: #cc9966;
        display: inline-flex;
    }

    .designer-header__eyebrow {
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 2.6px;
        text-transform: uppercase;
        color: #6B6863;
        margin-bottom: 10px;
    }

    .designer-trigger {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 14px;
        width: 100%;
        background: transparent;
        border: none;
        padding: 0;
        cursor: pointer;
        font-family: inherit;
    }

    .designer-trigger__name {
        margin: 0;
        font-size: 38px;
        font-weight: 700;
        letter-spacing: -0.5px;
        color: #1F1F1F;
        line-height: 1.1;
    }

    .designer-trigger__chevron {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #cc9966;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: transform 200ms ease;
        flex-shrink: 0;
    }

    .designer-trigger[aria-expanded="true"] .designer-trigger__chevron {
        transform: rotate(180deg);
    }

    .designer-header__hint {
        margin-top: 8px;
        font-size: 11px;
        letter-spacing: 0.6px;
        color: #6B6863;
    }

    /* Controls bar — replaces the centered FILTERS row on mobile */
    .controls-bar {
        background: #FFFFFF;
        padding: 12px 18px;
        border-top: 1px solid #E5E1DA;
        border-bottom: 1px solid #E5E1DA;
        justify-content: space-between;
        align-items: center;
        margin: 0 -15px 0; /* counteract .container's gutter */
    }

    .controls-bar__filters {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        background: transparent;
        border: none;
        padding: 0;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 2px;
        color: #3A3A3A;
        text-decoration: none;
    }

    .controls-bar__filters:hover,
    .controls-bar__filters:focus {
        color: #3A3A3A;
        text-decoration: none;
    }

    .controls-bar__hamburger {
        position: relative;
        display: inline-block;
        width: 14px;
        height: 10px;
        background:
            linear-gradient(#3A3A3A, #3A3A3A) left top    / 14px 2px no-repeat,
            linear-gradient(#3A3A3A, #3A3A3A) left center / 10px 2px no-repeat,
            linear-gradient(#3A3A3A, #3A3A3A) left bottom / 4px  2px no-repeat;
    }

    .grid-toggle {
        display: inline-flex;
        gap: 2px;
        padding: 2px;
        background: #F3F0EB;
        border: 1px solid #E5E1DA;
        border-radius: 8px;
    }

    .grid-toggle__btn {
        width: 36px;
        height: 32px;
        border-radius: 6px;
        background: transparent;
        border: none;
        padding: 0;
        color: #3A3A3A;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background-color 120ms ease, color 120ms ease;
    }

    .grid-toggle__btn.is-active {
        background: #3A3A3A;
        color: #FFFFFF;
    }

    /* Designer-picker sheet */
    .designer-sheet {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: 0; /* JS sets the precise top each time it opens */
        background: #FFFFFF;
        border-top: 1px solid #D8D4CC;
        display: flex;
        flex-direction: column;
        transform: translateY(100%);
        transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
        pointer-events: none;
        z-index: 1040;
    }

    .designer-sheet.is-open {
        transform: translateY(0);
        pointer-events: auto;
        box-shadow: 0 -20px 40px -10px rgba(20, 16, 12, 0.15);
    }

    .designer-sheet__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 18px;
        border-bottom: 1px solid #E5E1DA;
    }

    .designer-sheet__eyebrow {
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: #3A3A3A;
    }

    .designer-sheet__close {
        background: transparent;
        border: none;
        color: #cc9966;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        font-family: inherit;
        padding: 0;
    }

    .designer-sheet__search {
        position: relative;
        padding: 14px 18px 10px;
    }

    .designer-sheet__search-icon {
        position: absolute;
        top: 50%;
        left: 32px;
        transform: translateY(-25%);
        color: #6B6863;
        pointer-events: none;
        display: inline-flex;
    }

    .designer-sheet__search input {
        width: 100%;
        border: 1px solid #D8D4CC;
        border-radius: 999px;
        padding: 10px 16px 10px 38px;
        font-size: 13px;
        color: #1F1F1F;
        background: #FFFFFF;
        font-family: inherit;
        -webkit-appearance: none;
        appearance: none;
    }

    .designer-sheet__search input::placeholder {
        color: #6B6863;
    }

    .designer-sheet__search input:focus {
        outline: none;
        border-color: #cc9966;
    }

    .designer-sheet__list {
        overflow-y: auto;
        flex: 1;
        -webkit-overflow-scrolling: touch;
    }

    .designer-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 22px;
        font-size: 15px;
        font-weight: 400;
        color: #1F1F1F;
        background: #FFFFFF;
        border-bottom: 1px solid #E5E1DA;
        text-decoration: none;
    }

    .designer-row:hover,
    .designer-row:focus {
        text-decoration: none;
        background: #F9F6F0;
        color: #1F1F1F;
    }

    .designer-row.is-current {
        color: #cc9966;
        font-weight: 600;
        background: #F3F0EB;
    }

    .designer-row__indicator {
        font-size: 11px;
        letter-spacing: 0.6px;
        color: #cc9966;
    }

    /* Body scroll lock while sheet is open */
    body.designer-sheet-active {
        position: fixed;
        left: 0;
        right: 0;
        width: 100%;
        overflow: hidden;
    }

    /* 2-up grid override — only applies on mobile */
    .products-grid.is-2up {
        margin-left: -7px;
        margin-right: -7px;
    }

    .products-grid.is-2up > .resizeable-div {
        flex: 0 0 50%;
        max-width: 50%;
        padding-left: 7px;
        padding-right: 7px;
    }

    .products-grid.is-2up .product-title {
        font-size: 13px;
        letter-spacing: 0.4px;
        padding-top: 12px;
        padding-bottom: 4px;
    }
}
