@font-face {
    font-family: "Montserrat-Bold";
    src: url("../fonts/Montserrat-Bold.ttf");
}

.hero {
    padding: 30px 0 60px;
    background: #ffffff;
}

.page-title {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
}

.hero-slider {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.splide__slide img {
    width: 100%;
    height: 420px;
    display: block;
    object-fit: contain;
}

.splide__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
}

.splide__arrow--prev {
    left: -60px;
}

.splide__arrow--next {
    right: -60px;
}

.splide__arrow img {
    width: 28px;
    transition: 0.3s;
}

.splide__pagination {
    bottom: -5px;
}

.splide__pagination__page {
    background: #ffffff;
    width: 10px;
    height: 10px;
    margin: 0 6px;
    opacity: 1;
    border: 1px solid #000;
}

.splide__pagination__page.is-active {
    background: #000;
    width: 10px;
    height: 10px;
}

.popular, 
.new,
.pre-order,
.category,
.advanteges {
    display: flex;
    flex-direction: column;
    padding: 30px 0;
    background: #ffffff;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 35px;
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 50px;
}

.section-title::before,
.section-title::after {
    content: "";
    flex: 0 0 200px;
    height: 1px;
    background: #000;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: stretch;
}

.product-card {
    background: #fff;
    border: 1px solid #000000;
    padding: 15px;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #000;
    text-decoration: none;
}

.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;
    margin-top: auto;
}

.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);
}

.product-image {
    position: relative;
}

.product-bottom--center {
    justify-content: center;
}

.product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.category-wrapper,
.advanteges-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.category-card,
.advanteges-card {
    padding: 15px;
    background: #fff;
    border: 1px solid #000000;
    transition: 0.3s;
    text-align: center;
    text-decoration: none;
    color: #000;
    display: block;
}

.advanteges-card{
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.category-card:hover{
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.category-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-image1 {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.category-image1 img {
    width: 60%;
    height: 100%;
    object-fit: contain;
}

.category-name {
    font-family: "Montserrat-Bold";
}

.description-advanteges {
    color: #777;
}

.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);
}

/* ============================= */
/* ========= ADAPTIVE ========== */
/* ============================= */

/* 1200px */
@media (max-width: 1200px) {

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .category-wrapper,
    .advanteges-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }

    .splide__arrow--prev {
        left: -30px;
    }

    .splide__arrow--next {
        right: -30px;
    }
}

/* 992px — планшет */
@media (max-width: 992px) {

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .category-wrapper,
    .advanteges-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    .splide__slide img {
        height: 320px;
    }

    .section-title::before,
    .section-title::after {
        flex: 0 0 100px;
    }
}

@media (max-width: 768px) {

    .products-grid {
        grid-template-columns: 1fr;
    }

    .category-wrapper,
    .advanteges-wrapper {
        grid-template-columns: 1fr;
    }

    .splide__slide img {
        height: 250px;
    }

    .page-title {
        font-size: 22px;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 30px;
    }

    .splide__arrow {
        display: none !important;
    }

    .section-title::before,
    .section-title::after {
        display: none;
    }

    .product-card img {
        height: 180px;
    }

    .category-image,
    .category-image1 {
        height: 160px;
    }
}

/* 480px — маленькие телефоны */
@media (max-width: 480px) {

    .splide__slide img {
        height: 200px;
    }

    .product-title {
        font-size: 13px;
    }

    .product-price {
        font-size: 14px;
    }

    .btn-cart {
        font-size: 12px;
        padding: 5px 10px;
    }
}