.accessories-block-products {
    margin-top: 20px;
}

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

@media (max-width: 767px) {
    .category-products > *:nth-child(n+3) {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1729px) {
    .category-products > *:nth-child(4) {
        display: none;
    }
}

.product-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
}

.card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    /*height: max-content;*/
}

.card-title {
    text-align: center;
    margin-top: 10px;
    font-size: 16px;
    color: #FAFAFA;
    font-family: "Source Sans Pro Bold", sans-serif;
    margin-bottom: 12px;
    max-width: 100%;
    hyphens: auto;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

    line-height: 1.3;
    height: 2.6em;
}

.card-price {
    display: flex;
    flex-direction: column;
    text-align: center;
    color: #FAFAFA;
    margin-top: 0;
    margin-bottom: 0;
    margin-block-start: 0;
    margin-block-end: 0;
}

.popular-product-price-block {
    color: #FAFAFA;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    text-align: center;
}

.discount_price {
    font-family: "Source Sans Pro Bold", sans-serif;
    font-size: 20px;
    font-style: normal;
    line-height: normal;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
    opacity: 0.7;
    white-space: nowrap;
}

.price_credit {
    font-family: "Source Sans Pro Bold", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: rgba(250, 250, 250, 0.36);
}

.end_price {
    font-family: "Source Sans Pro Bold", sans-serif;
    font-size: 20px;
    white-space: nowrap;
}

.buttons_product {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    gap: 9px;
}

.popular-products-full-block {
    margin-top: 60px;
}

.popular-products-full-block-name {
    color: #FAFAFA;
    font-family: "Fixel Display-Bold", sans-serif;
    font-size: 36px;
    font-style: normal;
    line-height: normal;
}

.popular-product-full-block {
    background-color: #050505;
    padding: 30px 16px;
    border-radius: 37px;
    border: #FAFAFA 2px solid;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.container-product-img {
    aspect-ratio: 1 / 1;
    overflow: hidden;

    display: flex;
    justify-content: center;
}

/* popup */

#popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

/* Сам popup */
#popup {
    background-color: #1A1717;;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    height: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow-y: auto;
}

.popup-header {
    display: flex;
    justify-content: space-between;
}


/* end popup*/

.product-info-button-buy-now {
    display: flex;
    padding: 16px 0;
    width: 100%;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    border-radius: 67px;
    background: #FECA14;
    border: none;
}

.product-info-button-buy-now span {
    color: #1A1717;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    align-items: center;
}

/* media 576 */
@media (min-width: 576px) {

    .popular-products-full-block-name {
        display: flex;
        justify-content: center;
    }

    .card-title {
        font-size: 20px;
    }

    .price_credit {
        font-size: 18px;
    }

    .end_price {
        font-size: 24px;
    }

    .product-info-button-buy-now span {
        font-size: 24px;
    }

    .product-info-button-buy-now {
        gap: 18px;
    }
}

@media (min-width: 768px) {

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

@media (min-width: 992px) {
    .category-blocks {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        justify-content: center;
        align-items: center;
        align-self: stretch;
    }

    .popular-products-full-block-name {
        font-size: 40px;
    }
}

@media (min-width: 1730px) {
    .product-img-block {
        max-width: none;
        width: 80%;
        object-fit: fill;
        margin-bottom: 15px;
    }

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

/* -------------fonts--------------- */
@font-face {
    font-family: "Source Sans Pro Bold";
    src: url("../../fonts/SourceSansPro-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
}

@font-face {
    font-family: "Source Sans Pro";
    src: url("../../fonts/SourceSansPro-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
}


@font-face {
    font-family: "Fixel Display-Bold";
    src: url("../../fonts/FixelDisplay-Bold.otf") format("truetype");
    font-style: normal;
    font-weight: 800;
}
