/* Catalog filters + product cards */

.gm-home-catalog {
    margin: 2rem 0 2.75rem;
    overflow-x: hidden;
}

.gm-home-catalog__layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    align-items: start;
    min-width: 0;
}

.gm-home-catalog__main {
    min-width: 0;
    overflow-x: hidden;
}

/* ---- Sidebar ---- */
.gm-home-catalog__sidebar {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    position: sticky;
    top: 84px;
    max-height: calc(100vh - 100px);
    overflow: visible;
}

.gm-filter-sheet {
    background: #fff;
    border: 1px solid #EEEEEE;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 100px);
    overflow: hidden;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.gm-filter-sheet__grab {
    display: none;
}

.gm-filter-sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1rem 0.85rem;
    flex-shrink: 0;
    border-bottom: 1px solid #F3F4F6;
}

.gm-home-catalog__sidebar-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #1F2937;
}

.gm-home-catalog__clear {
    border: none;
    background: transparent;
    color: #9CA3AF;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-right: auto;
}

.gm-home-catalog__clear:hover {
    color: var(--gm-green, #00A651);
}

.gm-home-catalog__sidebar-close {
    border: none;
    background: #F3F4F6;
    color: #6B7280;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gm-filter-sheet__body {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 1rem 1.15rem;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gm-filter-sheet__body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

/* Soft fade hint instead of scrollbar */
.gm-scroll-fade {
    mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 28px), transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 28px), transparent 100%);
}

.gm-scroll-fade.is-at-bottom {
    mask-image: none;
    -webkit-mask-image: none;
}

.gm-filter-sheet__foot {
    display: none;
}

.gm-filter-sheet__apply {
    width: 100%;
    border: none;
    background: var(--gm-green, #00A651);
    color: #fff;
    border-radius: 14px;
    height: 50px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
}

.gm-filter-sheet__apply:hover {
    background: var(--gm-green-dark, #008f45);
}

.gm-filter-row {
    padding: 0.85rem 0;
    border-bottom: 1px solid #F0F0F0;
}

.gm-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    margin: 0;
    position: relative;
}

.gm-filter-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gm-filter-toggle__slider {
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: #D1D5DB;
    position: relative;
    flex-shrink: 0;
    transition: background 0.2s;
}

.gm-filter-toggle__slider::after {
    content: "";
    position: absolute;
    top: 3px;
    right: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.gm-filter-toggle input:checked + .gm-filter-toggle__slider {
    background: var(--gm-green, #00A651);
}

.gm-filter-toggle input:checked + .gm-filter-toggle__slider::after {
    transform: translateX(-20px);
}

.gm-filter-acc {
    border-bottom: 1px solid #F0F0F0;
}

.gm-filter-acc__btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border: none;
    background: transparent;
    padding: 0.95rem 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1F2937;
    cursor: pointer;
    text-align: right;
}

.gm-filter-acc__btn i {
    color: #9CA3AF;
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.gm-filter-acc.is-open .gm-filter-acc__btn i {
    transform: rotate(180deg);
}

.gm-filter-acc__body {
    display: none;
    padding: 0 0 0.9rem;
    overflow: hidden;
}

.gm-filter-acc.is-open .gm-filter-acc__body {
    display: block;
}

.gm-filter-search input {
    width: 100%;
    max-width: 100%;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    height: 36px;
    padding: 0 0.7rem;
    font-size: 0.8rem;
    margin-bottom: 0.55rem;
    background: #FAFAFA;
    box-sizing: border-box;
}

.gm-filter-options {
    max-height: none;
    overflow: visible;
    padding: 0;
    width: 100%;
}

.gm-filter-check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0;
    margin: 0;
    cursor: pointer;
    font-size: 0.84rem;
    color: #4B5563;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.gm-filter-check input {
    position: absolute;
    opacity: 0;
}

.gm-filter-check__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.gm-filter-check__box {
    width: 18px;
    height: 18px;
    border: 1.5px solid #D1D5DB;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    background: #fff;
}

.gm-filter-check__box--radio {
    border-radius: 50%;
}

.gm-filter-check input:checked + .gm-filter-check__box {
    background: var(--gm-green, #00A651);
    border-color: var(--gm-green, #00A651);
}

.gm-filter-check input:checked + .gm-filter-check__box::after {
    content: "";
    position: absolute;
    top: 2px;
    right: 5px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.gm-filter-check input:checked + .gm-filter-check__box--radio::after {
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    border: none;
    border-radius: 50%;
    background: #fff;
    transform: none;
}

.gm-filter-empty {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    color: #9CA3AF;
}

.gm-filter-price {
    overflow: hidden;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.gm-filter-price__slider {
    margin: 0.35rem 0 0.85rem;
    height: 6px;
}

.gm-filter-price .noUi-target {
    max-width: 100%;
}

.gm-filter-price .noUi-connect {
    background: var(--gm-green, #00A651);
}

.gm-filter-price .noUi-handle {
    border-color: var(--gm-green, #00A651);
    box-shadow: 0 1px 4px rgba(0, 166, 81, 0.25);
}

.gm-filter-price__labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #6B7280;
    font-weight: 600;
    gap: 0.5rem;
}

/* ---- Toolbar ---- */
.gm-home-catalog__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.15rem;
    padding: 0.15rem 0;
}

.gm-home-catalog__toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.gm-home-catalog__sort-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: #374151;
    white-space: nowrap;
}

.gm-home-catalog__sort {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    flex-wrap: wrap;
}

.gm-home-catalog__sort-btn {
    border: none;
    background: transparent;
    color: #9CA3AF;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.55rem;
    border-radius: 6px;
    cursor: pointer;
}

.gm-home-catalog__sort-btn:hover {
    color: #4B5563;
}

.gm-home-catalog__sort-btn.is-active {
    color: #1F2937;
    background: transparent;
    font-weight: 800;
}

.gm-home-catalog__count {
    font-size: 0.84rem;
    color: #9CA3AF;
    font-weight: 600;
    white-space: nowrap;
}

.gm-home-catalog__filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #E5E7EB;
    background: #fff;
    border-radius: 10px;
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.gm-home-catalog__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border: 1px solid #EEEEEE;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

/* ---- Product card (compact / Digikala-like) ---- */
.gm-pcard {
    background: #fff;
    border: none;
    border-left: 1px solid #EEEEEE;
    border-bottom: 1px solid #EEEEEE;
    border-radius: 0;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    margin: 0;
}

.gm-pcard:nth-child(4n) {
    border-left: none;
}

.gm-pcard:hover {
    background: #FAFAFA;
    box-shadow: none;
    z-index: 1;
}

.gm-pcard__desktop {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0.75rem 0.85rem 0.85rem;
}

.gm-pcard__mobile {
    display: none;
}

.gm-pcard__media {
    display: block;
    position: relative;
    aspect-ratio: 1;
    background: #fff;
    padding: 0.35rem;
    text-decoration: none;
    margin-bottom: 0.55rem;
}

.gm-pcard__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gm-pcard__badge {
    position: absolute;
    top: 0.35rem;
    left: 0.35rem;
    min-width: 28px;
    height: 20px;
    padding: 0 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #FEE2E2;
    color: #E11D48;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
}

.gm-pcard__body {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    flex: 1;
    min-width: 0;
}

.gm-pcard__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.4rem;
}

.gm-pcard__title {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.55;
    color: #1F2937;
}

.gm-pcard__title a {
    color: inherit !important;
    text-decoration: none !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gm-pcard__rating {
    display: inline-flex;
    align-items: center;
    gap: 0.18rem;
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 700;
    color: #6B7280;
    line-height: 1;
    padding-top: 0.15rem;
}

.gm-pcard__rating i {
    color: #F5A623;
    font-size: 0.65rem;
}

.gm-pcard__seller {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #6B7280;
    max-width: 100%;
}

.gm-pcard__seller i {
    color: #8B5CF6;
    font-size: 0.65rem;
    flex-shrink: 0;
}

.gm-pcard__seller span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gm-pcard__credit {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--gm-green, #00A651);
    line-height: 1.2;
}

.gm-pcard__credit i {
    font-size: 0.7rem;
}

.gm-pcard__foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.35rem;
}

.gm-pcard__meta {
    min-width: 0;
}

.gm-pcard__location {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.68rem;
    color: #9CA3AF;
    max-width: 100%;
}

.gm-pcard__location span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gm-pcard__pricing {
    margin-top: 0;
    text-align: left;
    flex-shrink: 0;
}

.gm-pcard__discount-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.3rem;
    margin-bottom: 0.1rem;
}

.gm-pcard__discount-row del {
    color: #9CA3AF;
    font-size: 0.7rem;
}

.gm-pcard__off {
    display: none;
}

.gm-pcard__price {
    font-size: 0.92rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.25;
    direction: ltr;
    unicode-bidi: plaintext;
}

.gm-pcard__price small {
    font-size: 0.65rem;
    font-weight: 600;
    color: #9CA3AF;
    margin-right: 0.12rem;
}

.gm-pcard__price--muted {
    color: #9CA3AF;
    font-size: 0.8rem;
    direction: rtl;
}

.gm-pcard__action {
    margin-top: 0.45rem;
}

.gm-pcard__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    min-height: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--gm-green, #00A651);
    background: #fff;
    color: var(--gm-green, #00A651) !important;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    padding: 0 0.5rem;
}

.gm-pcard__cta i {
    font-size: 0.78rem;
}

.gm-pcard__cta:hover {
    background: var(--gm-green, #00A651);
    color: #fff !important;
}

.gm-pcard__cta--muted {
    border-color: #E5E7EB;
    color: #6B7280 !important;
}

.gm-pcard--unavailable {
    opacity: 0.78;
}

/* Skeleton */
.gm-skel {
    background: linear-gradient(90deg, #F3F4F6 25%, #E5E7EB 37%, #F3F4F6 63%);
    background-size: 400% 100%;
    animation: gm-skel 1.2s ease-in-out infinite;
    border-radius: 8px;
}

.gm-skel--media {
    aspect-ratio: 1;
    border-radius: 8px;
    margin-bottom: 0.55rem;
}

.gm-skel--thumb {
    width: 108px;
    height: 108px;
    flex-shrink: 0;
    border-radius: 10px;
}

.gm-skel--line {
    height: 12px;
    margin-bottom: 0.55rem;
}

.gm-skel--w90 { width: 90%; }
.gm-skel--w60 { width: 60%; }
.gm-skel--w50 { width: 50%; }
.gm-skel--w40 { width: 40%; }
.gm-skel--w35 { width: 35%; }

.gm-skel--btn {
    height: 34px;
    margin-top: 0.45rem;
    border-radius: 8px;
}

@keyframes gm-skel {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

.gm-pcard--skeleton {
    pointer-events: none;
    box-shadow: none;
}

.gm-home-catalog.is-loading .gm-home-catalog__grid-wrap {
    opacity: 1;
    pointer-events: none;
}

.gm-home-catalog__pagination {
    display: none;
}

.gm-page-btn {
    display: none;
}

.gm-home-catalog__empty {
    background: #fff;
    border-radius: 14px;
    padding: 3rem 1.5rem;
    text-align: center;
    color: #9CA3AF;
}

.gm-home-catalog.is-loading .gm-home-catalog__grid-wrap {
    opacity: 1;
    pointer-events: none;
}

.gm-home-catalog__overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.28s ease;
}

.gm-home-catalog__overlay.is-visible {
    opacity: 1;
}

body.gm-catalog-drawer-open {
    overflow: hidden;
    touch-action: none;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1399.98px) {
    .gm-home-catalog__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gm-pcard:nth-child(4n) {
        border-left: 1px solid #EEEEEE;
    }

    .gm-pcard:nth-child(3n) {
        border-left: none;
    }
}

@media (max-width: 1199.98px) {
    .gm-home-catalog__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gm-pcard:nth-child(3n) {
        border-left: 1px solid #EEEEEE;
    }

    .gm-pcard:nth-child(2n) {
        border-left: none;
    }
}

@media (max-width: 991.98px) {
    .gm-home-catalog__layout {
        grid-template-columns: 1fr;
    }

    .gm-home-catalog__sidebar {
        position: fixed !important;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto !important;
        width: 100% !important;
        max-height: none;
        z-index: 1050;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        overflow: visible !important;
        transform: translateY(105%);
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
        pointer-events: none;
        margin: 0;
    }

    .gm-home-catalog__sidebar.is-open {
        transform: translateY(0);
        pointer-events: auto;
    }

    .gm-home-catalog__sidebar.is-dragging {
        transition: none;
    }

    .gm-filter-sheet {
        max-height: min(92vh, 860px);
        height: min(92vh, 860px);
        border-radius: 22px 22px 0 0;
        border: none;
        box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.18);
    }

    .gm-filter-sheet__grab {
        display: flex;
        justify-content: center;
        padding: 0.65rem 0 0.15rem;
        flex-shrink: 0;
        cursor: grab;
        touch-action: none;
    }

    .gm-filter-sheet__grab span {
        width: 44px;
        height: 5px;
        border-radius: 999px;
        background: #D1D5DB;
    }

    .gm-filter-sheet__head {
        padding: 0.55rem 1.15rem 0.85rem;
    }

    .gm-filter-sheet__body {
        padding: 0 1.15rem 1rem;
    }

    .gm-filter-sheet__foot {
        display: block;
        flex-shrink: 0;
        padding: 0.85rem 1.15rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid #F3F4F6;
        background: #fff;
    }

    .gm-scroll-fade {
        mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 36px), transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 36px), transparent 100%);
    }

    .gm-home-catalog__toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }

    .gm-home-catalog__toolbar-right {
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
    }

    .gm-home-catalog__sort-label {
        display: none;
    }

    .gm-home-catalog__sort {
        overflow-x: auto;
        flex-wrap: nowrap;
        max-width: 100%;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
        border-bottom: 1px solid #F0F0F0;
        padding-bottom: 0.35rem;
    }

    .gm-home-catalog__sort::-webkit-scrollbar {
        display: none;
    }

    .gm-home-catalog__sort-btn {
        white-space: nowrap;
        flex-shrink: 0;
        position: relative;
        padding: 0.45rem 0.65rem;
    }

    .gm-home-catalog__sort-btn.is-active {
        color: #111827;
    }

    .gm-home-catalog__sort-btn.is-active::after {
        content: "";
        position: absolute;
        right: 0.65rem;
        left: 0.65rem;
        bottom: 0;
        height: 2px;
        background: #1F2937;
        border-radius: 2px;
    }

    .gm-home-catalog__count {
        order: 3;
        font-size: 0.8rem;
    }

    .gm-home-catalog__grid {
        grid-template-columns: 1fr;
        gap: 0;
        background: #fff;
        border-radius: 12px;
        border: 1px solid #EEEEEE;
        overflow: hidden;
    }

    .gm-pcard {
        border: none;
        border-radius: 0;
        border-bottom: 1px solid #F0F0F0;
        border-left: none;
        box-shadow: none;
        height: auto;
        background: #fff;
    }

    .gm-pcard:nth-child(n) {
        border-left: none;
    }

    .gm-pcard:last-child {
        border-bottom: none;
    }

    .gm-pcard:hover {
        box-shadow: none;
        background: #fff;
    }

    .gm-pcard__desktop {
        display: none;
        padding: 0;
    }

    .gm-pcard__mobile {
        display: flex;
        align-items: stretch;
        gap: 0.85rem;
        padding: 0.9rem 0.95rem;
        text-decoration: none !important;
        color: inherit !important;
        background: #fff;
    }

    .gm-pcard__mobile-media {
        width: 112px;
        height: 112px;
        flex-shrink: 0;
        border-radius: 10px;
        background: #FAFAFA;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.35rem;
    }

    .gm-pcard__mobile-media img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .gm-pcard__mobile-body {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        align-items: flex-start;
    }

    .gm-pcard__mobile-title {
        font-size: 0.84rem;
        font-weight: 700;
        line-height: 1.55;
        color: #1F2937;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .gm-pcard__mobile-rating {
        display: inline-flex;
        align-items: center;
        gap: 0.2rem;
        font-size: 0.75rem;
        font-weight: 700;
        color: #6B7280;
    }

    .gm-pcard__mobile-rating i {
        color: #F5A623;
        font-size: 0.7rem;
    }

    .gm-pcard__mobile-credit {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        font-size: 0.72rem;
        font-weight: 600;
        color: var(--gm-green, #00A651);
    }

    .gm-pcard__mobile-price {
        margin-top: auto;
        font-size: 0.95rem;
        font-weight: 800;
        color: #111827;
    }

    .gm-pcard__mobile-price small {
        font-size: 0.7rem;
        font-weight: 600;
        color: #9CA3AF;
    }

    .gm-pcard--skeleton .gm-pcard__mobile {
        display: flex;
    }

    .gm-pcard--skeleton .gm-pcard__desktop {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .gm-filter-sheet {
        max-height: 94vh;
        height: 94vh;
    }

    .gm-pcard__mobile-media {
        width: 100px;
        height: 100px;
    }
}

/* ---- Search page ---- */
.gm-search-page {
    padding-top: 1rem;
    padding-bottom: 2rem;
}

.gm-search-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin: 0 0 1.25rem;
    font-size: 0.82rem;
    color: #9CA3AF;
}

.gm-search-breadcrumb a {
    color: #6B7280;
    text-decoration: none;
}

.gm-search-breadcrumb a:hover {
    color: var(--gm-green, #00A651);
}

.gm-search-breadcrumb a::after {
    content: "/";
    margin-right: 0.5rem;
    color: #D1D5DB;
    pointer-events: none;
}

.gm-search-breadcrumb > *:last-child::after {
    content: none;
}

.gm-search-breadcrumb > span[aria-current="page"] {
    color: #374151;
    font-weight: 700;
}

.gm-search-cats {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.88rem;
}

.gm-search-cats a {
    display: block;
    padding: 0.35rem 0;
    color: #4B5563;
    text-decoration: none;
}

.gm-search-cats a:hover {
    color: var(--gm-green, #00A651);
}

.gm-search-cats ul {
    list-style: none;
    margin: 0;
    padding: 0 0.75rem 0 0;
}

.gm-search-cats .is-current > a {
    color: #111827;
    font-weight: 700;
}

.gm-filter-color {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid #E5E7EB;
    flex-shrink: 0;
    margin-right: auto;
}

.gm-search-page #gm-search-catalog {
    margin-top: 0;
}

/* Mobile sticky filter / sort bar */
.gm-search-mobile-bar-sentinel {
    height: 0;
    width: 100%;
    pointer-events: none;
}

.gm-search-mobile-bar {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.85rem;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    z-index: 30;
}

.gm-search-mobile-bar.is-stuck {
    position: sticky;
    top: 64px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    margin-left: -15px;
    margin-right: -15px;
    width: calc(100% + 30px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.gm-search-mobile-bar__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 48px;
    border: none;
    background: #fff;
    color: #1F2937;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.65rem 0.75rem;
    position: relative;
}

.gm-search-mobile-bar__btn i {
    color: #4B5563;
    font-size: 1rem;
}

.gm-search-mobile-bar__badge {
    position: absolute;
    top: 8px;
    left: 18%;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--gm-green, #00A651);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    font-style: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.gm-search-mobile-bar__badge[hidden] {
    display: none !important;
}

.gm-search-mobile-bar__sep {
    width: 1px;
    background: #E5E7EB;
    flex-shrink: 0;
    align-self: stretch;
    margin: 0.55rem 0;
}

/* Sort bottom sheet */
.gm-sort-sheet {
    position: fixed;
    inset: 0;
    z-index: 1060;
    pointer-events: none;
}

.gm-sort-sheet.is-open {
    pointer-events: auto;
}

.gm-sort-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gm-sort-sheet.is-open .gm-sort-sheet__backdrop {
    opacity: 1;
}

.gm-sort-sheet__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-radius: 18px 18px 0 0;
    transform: translateY(105%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.gm-sort-sheet.is-open .gm-sort-sheet__panel {
    transform: translateY(0);
}

.gm-sort-sheet__grab {
    display: flex;
    justify-content: center;
    padding: 0.55rem 0 0.15rem;
}

.gm-sort-sheet__grab span {
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: #D1D5DB;
}

.gm-sort-sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1.1rem 0.75rem;
    border-bottom: 1px solid #F3F4F6;
}

.gm-sort-sheet__head h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
}

.gm-sort-sheet__close {
    border: none;
    background: transparent;
    color: #6B7280;
    font-size: 1.1rem;
    padding: 0.25rem;
}

.gm-sort-sheet__list {
    list-style: none;
    margin: 0;
    padding: 0.35rem 0 1rem;
    overflow-y: auto;
}

.gm-sort-sheet__option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: none;
    background: transparent;
    padding: 0.95rem 1.15rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #374151;
    text-align: right;
}

.gm-sort-sheet__option i {
    opacity: 0;
    color: var(--gm-green, #00A651);
    font-size: 0.85rem;
}

.gm-sort-sheet__option.is-active {
    color: var(--gm-green, #00A651);
    background: rgba(0, 166, 81, 0.06);
}

.gm-sort-sheet__option.is-active i {
    opacity: 1;
}

.gm-search-page .gm-home-catalog__grid-wrap.is-skel-active {
    min-height: 280px;
}

.gm-skel-fallback {
    grid-column: 1 / -1;
    padding: 2rem;
    text-align: center;
    color: #9CA3AF;
}

@media (min-width: 992px) {
    .gm-search-mobile-bar,
    .gm-search-mobile-bar-sentinel,
    .gm-sort-sheet {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .gm-search-page .gm-home-catalog__toolbar-right .gm-home-catalog__sort-label {
        display: none;
    }

    .gm-search-page .gm-home-catalog__toolbar {
        margin-bottom: 0.65rem;
    }

    .gm-search-mobile-bar.is-stuck {
        top: 56px;
    }

    #gm-home-catalog .gm-home-catalog__sort-label {
        display: none;
    }

    #gm-home-catalog .gm-home-catalog__toolbar {
        margin-bottom: 0.65rem;
    }
}
