.product-list-page {
    background: #fff;
    color: #071324;
    min-height: 72vh;
    padding: 24px 0 40px;
}

.product-list-shell {
    width: min(1480px, calc(100vw - 48px));
    margin-inline: auto;
    display: grid;
    grid-template-columns: 316px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.filters-panel {
    position: sticky;
  /*  top: calc(var(--site-header-stable-height, var(--site-header-height, 145px)) + 16px);
    top:0;*/
    align-self: start;
    z-index: 20;
}

.filters-card {
    border: 1px solid #d8e0eb;
    border-radius: 8px;
    background: #fff;
    direction: rtl;
    text-align: right;
    padding: 26px 24px 18px;
    max-height: calc(100vh - var(--site-header-stable-height, var(--site-header-height, 145px)) - 32px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.filters-head,
.sort-bar,
.filter-toggle,
.check-row,
.price-row,
.range-visual {
    display: flex;
    align-items: center;
}

.filters-head {
    justify-content: space-between;
    margin-bottom: 26px;
}

.filters-head h1 {
    font-size: 18px;
    font-weight: 900;
    margin: 0;
}

.filters-head a,
.apply-filter,
.sort-bar a.active {
    color: #3478f6;
}

.filters-head a,
.apply-filter {
    font-size: 13px;
    font-weight: 700;
}

.filter-section {
    border-bottom: 1px solid #dfe6f0;
    padding: 0 0 18px;
    margin-bottom: 18px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    flex-direction: row;
    justify-content: space-between;
    direction: rtl;
    color: #172033;
    font-size: 13px;
    font-weight: 900;
    cursor: default;
}

.filter-toggle i {
    color: #9aa7ba;
    font-size: 13px;
}

.filter-body {
    padding-top: 20px;
}

.price-filter {
    --price-input-height: 48px;
    --price-range-height: 42px;
    position: relative;
    padding-left: 0;
}

.price-row {
    gap: 8px;
    justify-content: space-between;
}

.price-row label {
    min-width: 46px;
    color: #172033;
    font-size: 13px;
    font-weight: 700;
}

.price-row input {
    width: 100%;
    height: 48px;
    border: 1px solid #cfd8e5;
    border-radius: 6px;
    background: #fff;
    color: #071324;
    font-size: 15px;
    font-weight: 700;
    text-align: right;
    padding: 0 14px;
}

.range-visual {
    height: var(--price-range-height);
    margin: 0 54px 0 0;
    position: relative;
}

.range-track,
.range-selected {
    position: absolute;
    right: 0;
    left: 0;
    top: 50%;
    height: 4px;
    border-radius: 999px;
    transform: translateY(-50%);
    pointer-events: none;
}

.range-track {
    background: #dce9ff;
}

.range-selected {
    right: var(--range-start, 0%);
    left: var(--range-end, 0%);
    background: #3478f6;
    z-index: 1;
}

.range-input {
    appearance: none;
    position: absolute;
    inset-inline: 0;
    top: 50%;
    width: 100%;
    height: 22px;
    margin: 0;
    background: transparent;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2;
}

.range-input::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
}

.range-input::-moz-range-track {
    height: 4px;
    background: transparent;
}

.range-input::-webkit-slider-thumb {
    appearance: none;
    width: 22px;
    height: 22px;
    border: 3px solid #dce9ff;
    border-radius: 50%;
    background: #3478f6;
    cursor: grab;
    pointer-events: auto;
}

.range-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: 3px solid #dce9ff;
    border-radius: 50%;
    background: #3478f6;
    cursor: grab;
    pointer-events: auto;
}

.range-input:active::-webkit-slider-thumb {
    cursor: grabbing;
}

.range-input:active::-moz-range-thumb {
    cursor: grabbing;
}

.range-max {
    z-index: 3;
}


.apply-filter {
    display: inline-block;
    margin-top: 18px;
}

.checkbox-list {
    display: grid;
    direction: rtl;
    justify-items: stretch;
    gap: 14px;
}

.checkbox-list.compact {
    gap: 12px;
}

.check-row {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    text-align: right;
    color: #172033;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.check-row input {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 4px;
    background: #cfd7e4;
    display: inline-grid;
    place-content: center;
}

.check-row input:checked::after {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 2px;
    background: #3478f6;
}

.products-content {
    min-width: 0;
}

.sort-bar {
    height: 44px;
    justify-content: flex-start;
    gap: 26px;
    color: #516174;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.sort-label {
    color: #172033;
    font-weight: 800;
}

.sort-label i {
    margin-left: 6px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid #d8e0eb;
    border-right: 1px solid #d8e0eb;
}

.list-product-card {
    min-height: 308px;
    background: #fff;
    border-left: 1px solid #d8e0eb;
    border-bottom: 1px solid #d8e0eb;
    padding: 22px 28px 24px;
    display: flex;
    flex-direction: column;
    transition: box-shadow .18s ease, transform .18s ease;
}

.list-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
    z-index: 1;
}

.list-product-image {
    height: 168px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.list-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.list-product-title {
    color: #071324;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.65;
    text-align: center;
    min-height: 50px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-product-price {
    margin-top: 16px;
    color: #050b18;
    font-size: 15px;
    font-weight: 900;
    text-align: right;
}

.list-product-price .currency {
    font-size: 12px;
    font-weight: 700;
    margin-left: 4px;
}

@media (max-width: 1399.98px) {
    .product-list-shell {
        width: min(1180px, calc(100vw - 32px));
        grid-template-columns: 296px minmax(0, 1fr);
        gap: 20px;
    }

    .list-product-card {
        padding-inline: 20px;
    }
}

@media (max-width: 1199.98px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sort-bar {
        overflow-x: auto;
        padding-bottom: 4px;
    }
}

@media (max-width: 991.98px) {
    .product-list-page {
        padding: 14px 0 72px;
    }

    .product-list-shell {
        width: min(720px, calc(100vw - 24px));
        display: block;
    }

    .filters-panel {
        position: static;
        z-index: auto;
        margin-bottom: 16px;
    }

    .filters-card {
        max-height: none;
        padding: 18px;
    }

    .filters-card .filter-section:nth-of-type(n+4) {
        display: none;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .list-product-card {
        min-height: 270px;
        padding: 14px 12px 18px;
    }

    .list-product-image {
        height: 142px;
        margin-bottom: 12px;
    }

    .list-product-title {
        font-size: 13px;
    }
}

.product-list-mobile-backdrop,
.mobile-product-actions,
.mobile-sheet-close,
.mobile-filter-title {
    display: none;
}

@media (max-width: 991.98px) {
    body.product-list-sheet-lock {
        overflow: hidden;
    }

    .product-list-mobile-backdrop {
        position: fixed;
        inset: 0;
        display: block;
        background: rgba(15, 23, 42, .34);
        backdrop-filter: blur(5px);
        z-index: 1100;
    }

    .product-list-mobile-backdrop[hidden] {
        display: none;
    }

    .mobile-product-actions {
        display: flex;
        justify-content: flex-start;
        gap: 8px;
        padding: 14px 0 16px;
        border-bottom: 1px solid #dfe6f0;
    }

    .mobile-list-action {
        height: 40px;
        border: 1px solid #9ec0ff;
        border-radius: 7px;
        background: #fff;
        color: #1d5ee8;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 0 14px;
        font-size: 12px;
        font-weight: 900;
    }

    .mobile-list-action i {
        font-size: 15px;
    }

    .mobile-sheet-close {
        width: 32px;
        height: 32px;
        border: 1px solid #071324;
        border-radius: 4px;
        background: #fff;
        color: #071324;
        display: inline-grid;
        place-items: center;
        font-size: 16px;
        line-height: 1;
    }

    .filters-panel,
    .sort-bar {
        position: fixed;
        right: 0;
        left: 0;
        bottom: calc(64px + env(safe-area-inset-bottom, 0px));
        z-index: 1150;
        width: 100%;
        max-height: min(68vh, 560px);
        margin: 0;
        transform: translateY(110%);
        opacity: 0;
        pointer-events: none;
        transition: transform .22s ease, opacity .22s ease;
    }

    .filters-panel.mobile-sheet-open,
    .sort-bar.mobile-sheet-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .filters-card,
    .sort-bar {
        border: 0;
        border-radius: 14px 14px 0 0;
        background: #fff;
        box-shadow: 0 -10px 28px rgba(15, 23, 42, .12);
    }

    .filters-card {
        max-height: min(68vh, 560px);
        padding: 16px 16px 18px;
    }

    .filters-head {
        min-height: 46px;
        margin: 0 -16px 12px;
        padding: 0 16px 14px;
        border-bottom: 1px solid #dfe6f0;
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr);
        column-gap: 10px;
        align-items: center;
    }

    .desktop-filter-title {
        display: none;
    }

    .mobile-filter-title {
        display: inline;
    }

    .filters-head h1 {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        font-size: 16px;
    }

    .filters-head a {
        grid-column: 1 / -1;
        margin-top: 8px;
        justify-self: start;
        font-size: 12px;
    }

    .filters-head .mobile-sheet-close {
        grid-column: 1;
        grid-row: 1;
    }

    .filter-section {
        padding: 0;
        margin: 0;
    }

    .filter-toggle {
        min-height: 46px;
        cursor: pointer;
        font-size: 13px;
    }

    .filter-toggle i {
        color: #071324;
        transform: rotate(90deg);
    }

    .filter-section.open .filter-toggle i {
        transform: none;
    }

    .filter-body {
        padding: 10px 0 18px;
    }

    .sort-bar {
        height: auto;
        min-height: 0;
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
        align-items: center;
        direction: rtl;
        text-align: right;
        padding: 16px 16px 12px;
        white-space: normal;
        overflow: hidden auto;
    }

    .sort-label {
        grid-column: 1 / -1;
        justify-self: start;
        padding-left: 52px;
        color: #071324;
        font-size: 16px;
        font-weight: 900;
    }

    .sort-label i {
        display: none;
    }

    .sort-bar .mobile-sheet-close {
        position: absolute;
        top: 16px;
        left: 16px;
    }

    .sort-bar a {
        grid-column: 1 / -1;
        min-height: 46px;
        border-top: 1px solid #dfe6f0;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        direction: rtl;
        text-align: right;
        color: #1d5ee8;
        font-size: 13px;
        font-weight: 800;
    }

    .sort-bar a:first-of-type {
        margin-top: 12px;
    }
}

.filter-section:not(.open) .filter-body {
    display: none;
}

.search-filter input {
    width: 100%;
    height: 46px;
    border: 1px solid #cfd8e5;
    border-radius: 8px;
    padding: 0 14px;
    color: #071324;
    font-size: 14px;
    font-weight: 700;
    text-align: right;
}

.filter-hint {
    display: block;
    margin-top: 10px;
    color: #6b7a90;
    font-size: 12px;
}

.check-row small {
    margin-right: auto;
    color: #8492a6;
    font-size: 12px;
    font-weight: 700;
}

.color-dot {
    width: 16px;
    height: 16px;
    border: 1px solid #cfd8e5;
    border-radius: 999px;
    box-shadow: inset 0 0 0 2px #fff;
}

.apply-filter {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: #3478f6;
    color: #fff;
    cursor: pointer;
}

.products-list-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 10px;
}

.products-list-heading h1 {
    margin: 0 0 6px;
    color: #071324;
    font-size: 22px;
    font-weight: 900;
}

.products-list-heading p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.pl-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.pl-breadcrumb a {
    color: #3478f6;
}

.pl-breadcrumb a::after {
    content: "/";
    margin-right: 8px;
    color: #cbd5e1;
}

.empty-products {
    min-height: 360px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    text-align: center;
    color: #334155;
}

.empty-products i {
    color: #3478f6;
    font-size: 42px;
}

.empty-products h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
}

.empty-products p {
    margin: 0;
    color: #64748b;
}

.empty-products a,
.products-pagination a {
    min-height: 40px;
    border-radius: 8px;
    background: #eef5ff;
    color: #1d5ee8;
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    font-weight: 900;
}

.products-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px 0 0;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 991.98px) {
    .filters-card .filter-section:nth-of-type(n+4) {
        display: block;
    }

    .products-list-heading {
        display: block;
        padding-top: 8px;
    }

    .pl-breadcrumb {
        margin-bottom: 10px;
        overflow-x: auto;
    }
}

.category-filter-link {
    color: #172033;
}

.category-filter-link i {
    color: #3478f6;
}

.list-product-card {
    position: relative;
}

.list-product-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 50px;
    height: 50px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    z-index: 2;
}

.list-product-old-price {
    display: block;
    color: #dc2626;
    text-decoration: line-through;
    text-decoration-color: #dc2626;
    font-size: 12px;
    margin-bottom: 4px;
}

.list-product-new-price {
    color: #16a34a;
    font-weight: 900;
}
