/* ==========================================================================
   India Pet Shop — Product listing (category, brand, search, collections)
   Desktop: sticky filter sidebar. Mobile: bottom action bar + bottom sheets.
   Tokens, buttons and the product card come from ui-kit.css.
   ========================================================================== */

.ips-listing {
    font-family: var(--hm-font);
    color: var(--hm-ink);
    background: #f7f6fb;
    padding-bottom: 56px;
}

.ips-listing *,
.ips-listing *::before,
.ips-listing *::after {
    box-sizing: border-box;
}

/*
 * The theme sets `main { overflow: hidden }`, which stops position: sticky
 * from working anywhere inside it. `clip` still hides horizontal overflow
 * but keeps the filter sidebar sticky. (body.ls-page is set by listing.js
 * for browsers without :has().)
 */
main:has(.ips-listing),
body.ls-page main {
    overflow: visible;
    overflow-x: clip;
}

.ips-listing :where(img) {
    max-width: 100%;
    display: block;
}

.ips-listing :where(a) {
    color: inherit;
    text-decoration: none;
}

.ips-listing :where(h1, h2, h3, h4, p, ul, ol) {
    margin: 0;
}

.ips-listing :where(ul, ol) {
    padding: 0;
    list-style: none;
}

.ips-listing :where(button, input, select) {
    font-family: inherit;
}

.ls-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Page header ---------- */

.ls-hero {
    /* --hm-header-h is 0 now that the header is in normal flow (see header.css). */
    padding: calc(var(--hm-header-h, 120px) + 16px) 0 18px;
    background: linear-gradient(180deg, #f1ecff 0%, #f7f6fb 100%);
}

.ls-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--hm-muted);
    margin-bottom: 10px;
}

.ls-crumbs li + li::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 9px;
    margin-right: 6px;
    opacity: 0.6;
}

.ls-crumbs a:hover {
    color: var(--hm-primary);
}

.ls-crumbs [aria-current] {
    color: var(--hm-ink);
    font-weight: 500;
}

.ls-hero__head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ls-hero__logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: contain;
    background: var(--hm-white);
    border: 1px solid var(--hm-line);
    padding: 4px;
}

.ls-hero__title {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.ls-hero__meta {
    margin-top: 4px !important;
    font-size: 14px;
    color: var(--hm-muted);
}

.ls-search {
    position: relative;
    display: flex;
    max-width: 560px;
    margin-top: 18px;
    background: var(--hm-white);
    border: 1px solid var(--hm-line);
    border-radius: 999px;
    box-shadow: var(--hm-shadow);
    overflow: hidden;
}

.ls-search i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--hm-muted);
}

.ls-search input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 14px 14px 14px 46px;
    font-size: 15px;
    background: transparent;
    min-width: 0;
}

.ls-search button {
    border: 0;
    background: var(--hm-primary);
    color: var(--hm-white);
    font-weight: 600;
    padding: 0 24px;
    cursor: pointer;
}

/* Title + category shortcuts share one row on desktop */

.ls-hero__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.ls-hero__intro {
    flex: 0 1 auto;
    min-width: 0;
}

.ls-hero__bar .ls-stories {
    margin-top: 0;
    flex: 0 1 auto;
    min-width: 0;
}

/* Category "stories" */

.ls-stories {
    display: flex;
    gap: 14px;
    margin-top: 16px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 4px 2px 6px;
    scrollbar-width: none;
}

.ls-stories::-webkit-scrollbar {
    display: none;
}

.ls-story {
    flex: 0 0 auto;
    width: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    scroll-snap-align: start;
    text-align: center;
}

.ls-story__img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 3px;
    background: var(--hm-white);
    border: 2px solid var(--hm-line);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.ls-story__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.ls-story__img i,
.ls-story__img--all i {
    font-size: 24px;
    color: var(--hm-primary);
}

.ls-story__img--all {
    background: var(--hm-primary-soft);
}

.ls-story__name {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ls-story:hover .ls-story__img {
    transform: translateY(-2px);
}

.ls-story.is-active .ls-story__img {
    border-color: transparent;
    background: linear-gradient(var(--hm-white), var(--hm-white)) padding-box,
                linear-gradient(135deg, var(--hm-accent), var(--hm-pink), var(--hm-primary)) border-box;
    border: 3px solid transparent;
}

.ls-story.is-active .ls-story__name {
    color: var(--hm-primary);
    font-weight: 700;
}

/* ---------- Layout ---------- */

.ls-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    padding-top: 20px;
}

/* ---------- Filters ---------- */

.ls-filters {
    position: sticky;
    top: calc(var(--sh-main-h, 74px) + 16px);
    background: var(--hm-white);
    border: 1px solid var(--hm-line);
    border-radius: var(--hm-radius);
    max-height: calc(100vh - var(--sh-main-h, 74px) - 36px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ls-form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}

.ls-sheet__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--hm-line);
}

.ls-sheet__head h2 {
    font-size: 18px;
    font-weight: 700;
    margin-right: auto !important;
}

.ls-clear {
    font-size: 13px;
    font-weight: 600;
    color: var(--hm-pink) !important;
}

.ls-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: #f3f1f9;
    color: var(--hm-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ls-only-mobile {
    display: none !important;
}

.ls-form__body {
    overflow-y: auto;
    overscroll-behavior: contain;
    flex: 1;
    min-height: 0;
    scrollbar-width: thin;
}

.ls-group {
    border-bottom: 1px solid var(--hm-line);
}

.ls-group:last-child {
    border-bottom: 0;
}

.ls-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.ls-group summary::-webkit-details-marker {
    display: none;
}

.ls-group summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 11px;
    color: var(--hm-muted);
    transition: transform 0.2s ease;
}

.ls-group[open] summary::after {
    transform: rotate(180deg);
}

.ls-group__body {
    padding: 0 20px 18px;
}

/* Sub-category links */

.ls-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 14px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ls-links a:hover {
    background: var(--hm-primary-soft);
    color: var(--hm-primary);
}

.ls-links em,
.ls-check em {
    font-style: normal;
    font-size: 12px;
    color: var(--hm-muted);
    background: #f3f1f9;
    padding: 2px 8px;
    border-radius: 999px;
}

/* Checkboxes */

.ls-checks {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ls-checks--scroll {
    max-height: 260px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.ls-check {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 6px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    margin: 0;
}

.ls-check:hover {
    background: #faf9fd;
}

.ls-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ls-check__box {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 6px;
    border: 2px solid #cfcadf;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ls-check__box::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid var(--hm-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    margin-top: -2px;
    transition: transform 0.15s ease;
}

.ls-check input:checked + .ls-check__box {
    background: var(--hm-primary);
    border-color: var(--hm-primary);
}

.ls-check input:checked + .ls-check__box::after {
    transform: rotate(45deg) scale(1);
}

.ls-check input:focus-visible + .ls-check__box {
    outline: 2px solid var(--hm-primary);
    outline-offset: 2px;
}

.ls-check__label {
    flex: 1;
}

.ls-findbox {
    position: relative;
    margin-bottom: 10px;
}

.ls-findbox i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: var(--hm-muted);
}

.ls-findbox input {
    width: 100%;
    border: 1px solid var(--hm-line);
    border-radius: 10px;
    padding: 9px 12px 9px 34px;
    font-size: 14px;
    outline: 0;
}

.ls-findbox input:focus {
    border-color: var(--hm-primary);
}

/* Pills (sizes, quick price ranges) */

.ls-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ls-pills--quick {
    margin-top: 14px;
}

.ls-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--hm-line);
    background: var(--hm-white);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--hm-ink);
    cursor: pointer;
    margin: 0;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ls-pill:hover {
    border-color: var(--hm-primary);
}

.ls-pill--check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ls-pill.is-active,
.ls-pill--check:has(input:checked) {
    background: var(--hm-primary);
    border-color: var(--hm-primary);
    color: var(--hm-white);
}

.ls-pill--check input:checked + span {
    color: var(--hm-white);
}

.ls-pill--check:focus-within {
    outline: 2px solid var(--hm-primary);
    outline-offset: 2px;
}

/* Dual price slider */

.ls-range {
    position: relative;
    height: 28px;
    margin: 4px 4px 12px;
}

.ls-range__track {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 4px;
    margin-top: -2px;
    border-radius: 4px;
    background: #e7e3f3;
}

.ls-range__fill {
    position: absolute;
    top: 0;
    bottom: 0;
    background: var(--hm-primary);
    border-radius: 4px;
}

.ls-range input[type="range"] {
    position: absolute;
    inset: 0;
    width: 100%;
    margin: 0;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

.ls-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--hm-white);
    border: 3px solid var(--hm-primary);
    box-shadow: 0 2px 8px rgba(45, 26, 110, 0.25);
    cursor: grab;
}

.ls-range input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--hm-white);
    border: 3px solid var(--hm-primary);
    box-shadow: 0 2px 8px rgba(45, 26, 110, 0.25);
    cursor: grab;
}

.ls-range input[type="range"]::-moz-range-track {
    background: none;
}

.ls-price-inputs {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.ls-price-inputs label {
    flex: 1;
    margin: 0;
}

.ls-price-inputs label span {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--hm-muted);
    margin-bottom: 4px;
}

.ls-price-inputs input {
    width: 100%;
    border: 1px solid var(--hm-line);
    border-radius: 10px;
    padding: 9px 10px;
    font-size: 14px;
    outline: 0;
    -moz-appearance: textfield;
}

.ls-price-inputs input::-webkit-outer-spin-button,
.ls-price-inputs input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.ls-price-inputs input:focus {
    border-color: var(--hm-primary);
}

.ls-price-inputs__dash {
    padding-bottom: 10px;
    color: var(--hm-muted);
}

/* Switches */

.ls-switch {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    cursor: pointer;
    margin: 0;
}

.ls-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ls-switch__ui {
    width: 42px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 999px;
    background: #dcd7ea;
    position: relative;
    transition: background-color 0.2s ease;
}

.ls-switch__ui::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--hm-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.ls-switch input:checked ~ .ls-switch__ui {
    background: var(--hm-primary);
}

.ls-switch input:checked ~ .ls-switch__ui::after {
    transform: translateX(18px);
}

.ls-switch input:focus-visible ~ .ls-switch__ui {
    outline: 2px solid var(--hm-primary);
    outline-offset: 2px;
}

/* Sheet footer (mobile apply bar; on desktop only shown without JS) */

.ls-sheet__foot {
    display: flex;
    gap: 12px;
    padding: 14px 20px;
    border-top: 1px solid var(--hm-line);
    background: var(--hm-white);
}

.ls-js .ls-filters .ls-sheet__foot {
    display: none;
}

/* ---------- Buttons ---------- */

.ls-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    padding: 13px 20px;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ls-btn--primary {
    flex: 1;
    background: var(--hm-primary);
    color: var(--hm-white) !important;
}

.ls-btn--primary:hover {
    background: var(--hm-primary-dark);
}

.ls-btn--ghost {
    background: #f3f1f9;
    color: var(--hm-ink) !important;
}

.ls-btn--outline {
    border-color: var(--hm-primary);
    color: var(--hm-primary) !important;
    background: var(--hm-white);
    padding: 12px 32px;
    border-radius: 999px;
}

.ls-btn--outline:hover {
    background: var(--hm-primary);
    color: var(--hm-white) !important;
}

/* ---------- Results ---------- */

.ls-main {
    min-width: 0;
    transition: opacity 0.2s ease;
}

.ls-main.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

.ls-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--hm-white);
    border: 1px solid var(--hm-line);
    border-radius: var(--hm-radius-sm);
    padding: 10px 10px 10px 18px;
    margin-bottom: 14px;
}

.ls-toolbar__count {
    font-size: 14px;
    color: var(--hm-muted);
}

.ls-toolbar__count strong {
    color: var(--hm-ink);
}

.ls-sortselect {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 14px;
    color: var(--hm-muted);
}

.ls-sortselect select {
    border: 1px solid var(--hm-line);
    border-radius: 10px;
    padding: 9px 36px 9px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--hm-ink);
    background: #faf9fd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b6880' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    outline: 0;
}

.ls-sortselect select:focus {
    border-color: var(--hm-primary);
}

.ls-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.ls-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--hm-primary-soft);
    color: var(--hm-primary) !important;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 999px;
    transition: background-color 0.2s ease;
}

.ls-chip i {
    font-size: 11px;
}

.ls-chip:hover {
    background: #e2d8ff;
}

.ls-chip--clear {
    background: transparent;
    color: var(--hm-pink) !important;
    font-weight: 600;
}

.ls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.ls-grid .hm-card {
    animation: ls-fade-up 0.35s ease both;
}

@keyframes ls-fade-up {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.ls-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

.ls-more__progress {
    width: 200px;
    height: 4px;
    border-radius: 4px;
    background: #e7e3f3;
    overflow: hidden;
}

.ls-more__progress span {
    display: block;
    height: 100%;
    background: var(--hm-primary);
    transition: width 0.3s ease;
}

.ls-more .is-loading {
    opacity: 0.6;
    pointer-events: none;
}

.ls-empty {
    text-align: center;
    background: var(--hm-white);
    border: 1px solid var(--hm-line);
    border-radius: var(--hm-radius);
    padding: 56px 24px;
}

.ls-empty__icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--hm-primary-soft);
    color: var(--hm-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
}

.ls-empty h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px !important;
}

.ls-empty p {
    color: var(--hm-muted);
    margin-bottom: 20px !important;
}

.ls-empty .ls-btn {
    flex: none;
}

/* ---------- Mobile-only pieces (hidden on desktop) ---------- */

.ls-mbar,
.ls-sheet--sort,
.ls-overlay {
    display: none;
}

/* ---------- Tablet & mobile: app-style UI ---------- */

@media (max-width: 991px) {
    .ips-listing {
        padding-bottom: calc(84px + env(safe-area-inset-bottom));
    }

    .ls-hero__bar {
        display: block;
    }

    .ls-hero__bar .ls-stories {
        margin-top: 14px;
    }

    .ls-container {
        padding: 0 14px;
    }

    .ls-hero {
        padding-top: calc(var(--hm-header-h, 100px) + 12px);
        padding-bottom: 14px;
    }

    .ls-stories {
        gap: 12px;
        margin-top: 16px;
    }

    .ls-story {
        width: 68px;
    }

    .ls-story__img {
        width: 56px;
        height: 56px;
    }

    .ls-layout {
        grid-template-columns: minmax(0, 1fr);
        padding-top: 14px;
    }

    .ls-toolbar {
        padding: 10px 14px;
    }

    .ls-sortselect {
        display: none;
    }

    .ls-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    /* Bottom sheets */

    .ls-sheet {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        z-index: 10001;
        display: flex;
        flex-direction: column;
        max-height: 88vh;
        background: var(--hm-white);
        border: 0;
        border-radius: 22px 22px 0 0;
        box-shadow: 0 -10px 40px rgba(29, 27, 47, 0.2);
        transform: translateY(105%);
        transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
        visibility: hidden;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .ls-sheet.is-open {
        transform: translateY(0);
        visibility: visible;
    }

    .ls-sheet::before {
        content: '';
        width: 40px;
        height: 5px;
        border-radius: 5px;
        background: #dcd7ea;
        margin: 10px auto 0;
        flex-shrink: 0;
    }

    .ls-filters {
        position: fixed;
        top: auto;
        height: 88vh;
    }

    .ls-sheet__head {
        padding: 12px 18px 14px;
    }

    .ls-only-mobile {
        display: inline-flex !important;
    }

    .ls-js .ls-filters .ls-sheet__foot {
        display: flex;
    }

    /* Sort sheet */

    .ls-sortlist {
        padding: 8px 10px 16px;
    }

    .ls-sortlist a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 14px;
        border-radius: 12px;
        font-size: 15px;
    }

    .ls-sortlist a i {
        opacity: 0;
        color: var(--hm-primary);
    }

    .ls-sortlist a.is-active {
        background: var(--hm-primary-soft);
        color: var(--hm-primary);
        font-weight: 600;
    }

    .ls-sortlist a.is-active i {
        opacity: 1;
    }

    .ls-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 10000;
        background: rgba(29, 27, 47, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .ls-overlay.is-open {
        opacity: 1;
        visibility: visible;
    }

    /* Bottom action bar */

    .ls-mbar {
        display: flex;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        z-index: 9990;
        background: var(--hm-ink);
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(29, 27, 47, 0.35);
        overflow: hidden;
    }

    .ls-mbar button {
        flex: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 15px 10px;
        border: 0;
        background: transparent;
        color: var(--hm-white);
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
    }

    .ls-mbar button + button {
        border-left: 1px solid rgba(255, 255, 255, 0.15);
    }

    .ls-mbar__badge {
        min-width: 22px;
        height: 22px;
        padding: 0 6px;
        border-radius: 999px;
        background: var(--hm-accent);
        color: var(--hm-ink);
        font-size: 12px;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .ls-mbar__badge[hidden] {
        display: none;
    }

    body.ls-sheet-open {
        overflow: hidden;
    }

    /* Keep the site's floating buttons above the action bar. */
    body.ls-has-mbar .go-top,
    body.ls-has-mbar .whatsapp,
    body.ls-has-mbar .float {
        bottom: calc(84px + env(safe-area-inset-bottom)) !important;
    }
}

@media (max-width: 375px) {
    .ls-grid {
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ips-listing *,
    .ips-listing *::before,
    .ips-listing *::after {
        animation: none !important;
        transition: none !important;
    }
}
