.products-page {
    background: linear-gradient(180deg, #f7fbff 0%, #eef4f9 100%);
}

.products-shell {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.products-sidebar {
    position: sticky;
    top: 24px;
}

.filter-panel {
    background: transparent;
    color: #454545;
    border-radius: 24px;
    /* padding: 24px 20px; */
    box-shadow: none;
}

.filter-group + .filter-group {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(25, 28, 31, 0.12);
}

.filter-group-header h6 {
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #191C1F;
}

.filter-search,
.toolbar-search {
    position: relative;
}

.filter-search .form-control,
.toolbar-search .form-control,
.price-inputs .form-control,
.toolbar-sort .form-select {
    border-radius: 14px;
    border: 1px solid rgba(0, 77, 140, 0.12);
    min-height: 44px;
    box-shadow: none;
}

.filter-search .form-control {
    background: transparent;
    border-color: rgba(25, 28, 31, 0.14);
    color: #454545;
    padding-right: 42px;
}

.filter-search .form-control::placeholder {
    color: rgba(69, 69, 69, 0.7);
}

.filter-search-icon,
.toolbar-search-icon {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: #191C1F;
    font-size: 14px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.filter-check,
.filter-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #454545;
}

.filter-check input,
.filter-radio input {
    width: 16px;
    height: 16px;
    accent-color: #00aeef;
    flex: 0 0 auto;
}

.filter-search .form-control:focus {
    background: transparent;
    border-color: rgba(25, 28, 31, 0.48);
    color: #454545;
}

.price-range-control {
    margin-top: 16px;
}

.dual-range-slider {
    position: relative;
    height: 26px;
    margin-bottom: 14px;
}

.dual-range-track,
.dual-range-fill {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    border-radius: 999px;
}

.dual-range-track {
    left: 0;
    right: 0;
    background: rgba(25, 28, 31, 0.18);
}

.dual-range-fill {
    left: 0;
    width: 100%;
    background: #00aeef;
}

.dual-range-input {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 26px;
    margin: 0;
    pointer-events: none;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
}

.dual-range-input::-webkit-slider-runnable-track {
    height: 6px;
    background: transparent;
}

.dual-range-input::-moz-range-track {
    height: 6px;
    background: transparent;
}

.dual-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #00aeef;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 174, 239, 0.35);
    pointer-events: auto;
    cursor: pointer;
    margin-top: -5px;
}

.dual-range-input::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #00aeef;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 174, 239, 0.35);
    pointer-events: auto;
    cursor: pointer;
}

.price-dropdowns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.price-select {
    border-radius: 12px;
    border: 1px solid rgba(25, 28, 31, 0.18);
    background: transparent;
    color: #454545;
    font-size: 13px;
    min-height: 40px;
    box-shadow: none;
}

.price-select:focus {
    border-color: rgba(25, 28, 31, 0.48);
    box-shadow: none;
}

.price-dropdown-separator {
    font-size: 14px;
    color: #454545;
}

.size-options {
    gap: 12px;
}

.filter-check-size span {
    min-width: 28px;
}

.products-content {
    min-width: 0;
}

.products-toolbar {
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 22px;
}

.toolbar-results {
    font-size: 15px;
    font-weight: 700;
    color: #191C1F;
}

.toolbar-search .form-control {
    background: #fff;
    padding-right: 42px;
}

.toolbar-sort {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toolbar-sort label {
    font-size: 14px;
    color: #454545;
    white-space: nowrap;
}

.toolbar-sort .form-select {
    min-width: 170px;
    font-size: 14px;
    color: #191C1F;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.products-search-bundles {
    margin-bottom: 24px;
}

.products-search-bundles[hidden] {
    display: none !important;
}

.products-search-bundles-header {
    font-size: 14px;
    font-weight: 700;
    color: #191C1F;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.products-search-bundles-grid {
    margin-bottom: 8px;
}

.product-card {
    position: relative;
    background: #fff;
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 16px 40px rgba(16, 39, 64, 0.08);
    min-height: 100%;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(16, 39, 64, 0.12);
}

.wishlist-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(25, 28, 31, 0.16);
    border-radius: 10px;
    background: #fff;
    color: #FA8232;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.product-image-wrap {
    background: linear-gradient(180deg, #f6f8fb 0%, #eef2f6 100%);
    border-radius: 18px;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: 18px; */
    margin-bottom: 16px;
}

.product-image {
    width: 100%;
    max-width: 265px;
    max-height: 210px;
    object-fit: contain;
}

.product-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #5a6473;
}

.product-rating i {
    color: #f4b400;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    color: #191C1F;
    margin-bottom: 0;
    min-height: 44px;
}

.product-image-wrap[data-detail-url],
.product-title[data-detail-url] {
    cursor: pointer;
}

.product-image-wrap[data-detail-url]:focus-visible,
.product-title[data-detail-url]:focus-visible {
    outline: 2px solid #00aeef;
    outline-offset: 2px;
}

.product-seller {
    font-size: 13px;
    color: #454545;
    margin-bottom: 0;
}

.product-price {
    font-size: 22px;
    font-weight: 700;
    color: #191C1F;
    letter-spacing: -0.02em;
}

.load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.load-more-btn {
    border: none;
    background: #fff;
    color: #191C1F;
    border-radius: 999px;
    padding: 14px 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 14px 30px rgba(25, 28, 31, 0.1);
    font-weight: 600;
}

@media (max-width: 1199.98px) {
    .products-shell {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .products-shell {
        grid-template-columns: 1fr;
    }

    .products-sidebar {
        position: static;
    }

    .products-toolbar {
        grid-template-columns: 1fr;
    }

    .toolbar-sort {
        justify-content: space-between;
    }
}

@media (max-width: 767.98px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .filter-panel,
    .product-card {
        border-radius: 18px;
    }

    .product-image-wrap {
        min-height: 200px;
    }

    .price-dropdowns {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .price-dropdown-separator {
        text-align: center;
    }
}

.mobile-filter-header,
.mobile-filter-footer,
.mobile-sort-filter-bar,
.mobile-sort-sheet,
.mobile-sheet-backdrop {
    display: none;
}

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

@media (max-width: 991.98px) {
    .products-page {
        padding-bottom: 16px;
    }

    .toolbar-sort,
    .toolbar-search {
        display: none;
    }

    .products-sidebar {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1060;
        background: #fff;
        flex-direction: column;
        margin: 0;
        max-height: 100%;
    }

    .products-sidebar.is-open {
        display: flex;
    }

    .mobile-filter-header,
    .mobile-filter-footer {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    .mobile-filter-header {
        justify-content: space-between;
        padding: 14px 16px;
        border-bottom: 1px solid #e8e8e8;
    }

    .mobile-filter-header h5 {
        margin: 0;
        font-size: 16px;
        font-weight: 700;
        color: #212121;
    }

    .mobile-sheet-close {
        width: 36px;
        height: 36px;
        border: 0;
        background: transparent;
        font-size: 28px;
        line-height: 1;
        color: #717171;
    }

    .products-sidebar .filter-panel {
        flex: 1;
        overflow-y: auto;
        padding: 16px 16px 24px;
        border-radius: 0;
    }

    .mobile-filter-footer {
        gap: 12px;
        padding: 12px 16px;
        border-top: 1px solid #e8e8e8;
        background: #fff;
    }

    .mobile-filter-clear,
    .mobile-filter-apply {
        flex: 1;
        min-height: 44px;
        border-radius: 2px;
        font-size: 14px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .mobile-filter-clear {
        border: 1px solid #e0e0e0;
        background: #fff;
        color: #212121;
    }

    .mobile-filter-apply {
        border: 0;
        background: #00aeef;
        color: #fff;
    }

    .mobile-sort-filter-bar {
        display: flex;
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        z-index: 1;
        height: 48px;
        padding-bottom: 0;
        background: #fff;
        border-top: 1px solid #e0e0e0;
        border-bottom: 1px solid #e0e0e0;
        box-shadow: none;
    }

    .mobile-sort-filter-btn {
        position: relative;
        flex: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 0;
        background: #fff;
        color: #212121;
        font-size: 14px;
        font-weight: 500;
    }

    .mobile-sort-filter-btn + .mobile-sort-filter-btn {
        border-left: 1px solid #e0e0e0;
    }

    .mobile-sort-filter-btn i {
        font-size: 15px;
        color: #717171;
    }

    .mobile-sort-filter-btn.is-active,
    .mobile-sort-filter-btn.is-active i {
        color: #00aeef;
    }

    .mobile-filter-dot {
        position: absolute;
        top: 12px;
        right: calc(50% - 42px);
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #00aeef;
    }

    .mobile-sheet-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1050;
        background: rgba(0, 0, 0, 0.45);
    }

    .mobile-sort-sheet {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1060;
        background: #fff;
        border-radius: 12px 12px 0 0;
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
        max-height: 70vh;
        overflow: hidden;
        transform: translateY(100%);
        transition: transform 0.22s ease;
    }

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

    .mobile-sort-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        border-bottom: 1px solid #eee;
    }

    .mobile-sort-header h5 {
        margin: 0;
        font-size: 16px;
        font-weight: 700;
        color: #212121;
    }

    .mobile-sort-options {
        padding: 4px 0 12px;
    }

    .mobile-sort-option {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px 16px;
        margin: 0;
        font-size: 14px;
        color: #212121;
        cursor: pointer;
    }

    .mobile-sort-option input {
        width: 18px;
        height: 18px;
        accent-color: #00aeef;
    }
}