@font-face {
    font-family: "Montserrat-Bold";
    src: url("../fonts/Montserrat-Bold.ttf");
}

.catalog-page {
    padding: 40px 0;
}

.breadcrumbs {
    font-size: 14px;
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: #127FB2;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.catalog-title {
    font-size: 28px;
    margin-bottom: 5px;
}

.catalog-count {
    font-size: 14px;
    color: #777;
}

.catalog-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.catalog-sort select {
    padding: 6px 10px;
    border: 1px solid #ccc;
    cursor: pointer;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
}

.catalog-sidebar {
    border-right: 1px solid #eee;
    padding-right: 20px;
}

.filter-block {
    margin-bottom: 30px;
}

.filter-block h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.filter-block label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    cursor: pointer;
}

.filter-price {
    display: flex;
    gap: 10px;
}

.filter-price input {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
}

.btn-filter {
    width: 100%;
    background: #127FB2;
    color: #fff;
    border: none;
    padding: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-filter:hover {
    background: rgb(7, 97, 138);
}

.btn-reset {
    width: 100%;
    background: #f5f5f5;
    border: 1px solid #ccc;
    padding: 10px;
    cursor: pointer;
}

.pagination {
    margin-top: 40px;
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;

    border: 1px solid #ccc;
    background: #fff;
    color: #333;

    text-decoration: none;
    font-size: 14px;

    border-radius: 6px;

    transition: 0.25s;
}

.pagination a:hover {
    background: #f4f4f4;
    border-color: #bbb;
}

.pagination a.active {
    background: #127FB2;
    border-color: #127FB2;
    color: #fff;
    font-weight: 600;
}

.pagination a:first-child,
.pagination a:last-child {
    font-weight: 600;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: #fff;
    border: 1px solid #000000;
    padding: 15px;
    transition: 0.3s;
    color: #000;
}

.product-image {
    position: relative;
}

.product-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    margin-bottom: 15px;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.product-brand,
.release-date {
    font-size: 12px;
    color: #777;
    margin-bottom: 15px;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-family: "Montserrat-Bold";
    color: #127FB2;
}

.btn-cart, .btn-preorder {
    background: #127FB2;
    color: #fff;
    border: none;
    font-family: "Montserrat-Bold";
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-cart:hover, 
.btn-preorder:hover {
    background: rgb(7, 97, 138);
}

.badge-new {
    font-family: "Montserrat-Bold";
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ff2d2d;
    color: #fff;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.badge-hit {
    font-family: "Montserrat-Bold";
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ff9800;
    color: #fff;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.badge-preorder {
    font-family: "Montserrat-Bold";
    position: absolute;
    top: 12px;
    right: 12px;
    background: #7b1fa2;
    color: #fff;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.product-release {
    font-size: 12px;
    color: #555;
    margin-bottom: 15px;
}

.badge-sale {
    font-family: "Montserrat-Bold";
    position: absolute;
    top: 12px;
    right: 12px;
    background: #e53935;
    color: #fff;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 20px;
}

.price-wrapper {
    display: flex;
    flex-direction: column;
}

.product-old-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.catalog-sidebar {
    border: none;
    padding-right: 0;
}

.filters-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.filter-block h3 {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.filter-price {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.filter-price input {
    width: 100%;
    padding: 8px;
    border: 1px solid #aaa;
    border-radius: 4px;
    background: #fff;
}

.filter-range input[type="range"] {
    width: 100%;
    appearance: none;
    height: 4px;
    background: #000;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

.filter-range input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    background: #000;
    border-radius: 50%;
    cursor: pointer;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 10px;
    cursor: pointer;
}

.custom-checkbox input {
    display: none;
}

.custom-checkbox span {
    width: 16px;
    height: 16px;
    border: 1px solid #444;
    background: #fff;
    display: inline-block;
}

.custom-checkbox input:checked + span {
    background: #127FB2;
    border-color: #127FB2;
}

.btn-filter {
    width: 100%;
    background: #127FB2;
    color: #fff;
    border: none;
    padding: 12px;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-filter:hover {
    background: #0a6b94;
}

.btn-reset {
    width: 100%;
    display: block;

    background: #f3f3f3;
    border: 1px solid #ccc;

    padding: 12px;

    border-radius: 4px;

    font-weight: 500;
    font-size: 14px;

    text-align: center;
    text-decoration: none;
    color: #333;

    cursor: pointer;

    transition: 0.25s;
}

.btn-reset:hover {
    background: #e6e6e6;
    border-color: #bbb;
}

.range-slider {
    position: relative;
    height: 20px;
    margin-top: 8px;
}

.range-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    pointer-events: none;
    z-index: 0;
}

.range-fill {
    position: absolute;
    height: 100%;
    background: #127FB2;
    border-radius: 2px;
}

.range-slider input[type="range"] {
    position: absolute;
    top: -7px;
    left: 0;
    width: 100%;
    height: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    pointer-events: none;
    margin: 0;
    padding: 0;
}

.range-slider input[type="range"]#rangeMin {
    z-index: 1;
}

.range-slider input[type="range"]#rangeMax {
    z-index: 2;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #127FB2;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    transition: transform 0.15s;
}

.range-slider input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.range-slider input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #127FB2;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.range-slider input[type="range"]::-webkit-slider-runnable-track {
    background: transparent;
    height: 4px;
}

.range-slider input[type="range"]::-moz-range-track {
    background: transparent;
    height: 4px;
}
/* =========================
   1200px
========================= */
@media (max-width: 1200px) {

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .catalog-layout {
        gap: 30px;
    }
}


/* =========================
   992px — планшет
========================= */
@media (max-width: 992px) {

    .catalog-layout {
        grid-template-columns: 220px 1fr;
        gap: 25px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .catalog-title {
        font-size: 24px;
    }

    .product-card img {
        height: 200px;
    }
}


/* =========================
   768px — мобильный
========================= */
@media (max-width: 768px) {

    .catalog-page {
        padding: 25px 0;
    }

    /* Заголовок */
    .catalog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 25px;
    }

    .catalog-sort {
        width: 100%;
    }

    .catalog-sort form {
        width: 100%;
    }

    .catalog-sort select {
        width: 100%;
    }

    .catalog-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .catalog-sidebar {
        order: -1;
    }

    .filters-card {
        padding: 20px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .product-card {
        padding: 12px;
    }

    .product-card img {
        height: 180px;
    }

    .product-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .btn-cart {
        width: 100%;
        text-align: center;
    }

}


/* =========================
   480px — маленькие телефоны
========================= */
@media (max-width: 480px) {

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-card img {
        height: 200px;
    }

    .catalog-title {
        font-size: 20px;
    }

    .catalog-count {
        font-size: 13px;
    }

    .breadcrumbs {
        font-size: 13px;
    }

    .filters-card {
        padding: 18px;
    }

    .filter-price {
        flex-direction: column;
        gap: 10px;
    }

    .filter-range {
        margin-top: 10px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 6px;
    }

    .pagination a {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
}