/* Стили для заголовков разделов */
.subcategories-title, .products-title {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    font-size: 20px;
    font-weight: 500;
    color: #000;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    /*background-color: #f5f5f5;
    border-left: 4px solid #F1BE4C;
    border-radius: 2px;*/
}

/* Разделитель между подкатегориями и товарами */
.products-title {
    margin-top: 30px;
    clear: both;
}

/* Стили для элементов подкатегорий */
.myservice__products-item.has-children .myservice__products-title h3:after {
    content: "»";
    display: inline-block;
    margin-left: 5px;
    color: #4a89dc;
    font-weight: bold;
}

/* Контейнер подкатегорий */
.myservice__category-product-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Установка размеров плиток подкатегорий */
.myservice__products-item {
    position: relative;
    width: calc(25% - 15px);
    /*margin-bottom: 20px;*/
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    transition: box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.myservice__products-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.myservice__category-product-inner .myservice__products-item:nth-child(n) {
    border-right: 1px solid #e0e0e0;
}

/* Стили для изображений */
.myservice__products-img {
    text-align: center;
    height: 90px;
    width: 90px;
    overflow: hidden;
}

.myservice__products-img img {
    max-width: 100%;
    max-height: 90px;
    object-fit: cover;
    padding-top: 10px;
}

/* Стили для названий */
.myservice__products-title {
    padding: 0;
}

.myservice__products-title h3 {
    font-size: 16px;
    margin: 0;
    line-height: 1.4;
}

/* Стили для описаний */
.myservice__products-desc {
    padding: 0 15px 15px;
    font-size: 14px;
    color: #666;
}

/* Стили для кнопки корзины */
.myservice__products-btn {
    bottom: 10px;
    margin: 10px 0 5px;
}

.myservice__products-btn .price .domleks-open__cart {
    position: absolute;
    bottom: 0;
    right: 0;
}

.price .domleks-go_to_cart {
    position: absolute;
    bottom: -10px;
    right: -10px;
}

.myservice__products-btn .price span {
    background: yellow;
}

/* Сообщение об отсутствии товаров и подкатегорий */
.no-products {
    width: 100%;
    padding: 30px;
    text-align: center;
    font-size: 16px;
    color: #888;
    background-color: #f9f9f9;
    border-radius: 5px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 1200px) {
    .myservice__products-item {
        width: calc(33.33% - 14px);
    }
}

@media (max-width: 768px) {
    .myservice__products-item {
        width: calc(50% - 11px);
    }
}

@media (max-width: 480px) {
    .myservice__category-product-inner {
        gap: 10px;
    }

    .subcategories-title,
    .products-title {
        font-size: 18px;
        padding: 5px;
        margin: 0;
    }

    .myservice__products-item {
        margin-bottom: 0;
        width: calc(50% - 5px);
    }

    .myservice__products-img {
        height: 50px;
        width: 50px;
    }

    .myservice__products-img img {
        max-height: 50px;
    }

    .myservice__products-btn .price span {
        font-size: 13px;
    }

    .myservice__products-btn .price span.old-price {
        font-size: 13px;
    }

    .myservice__products-btn .price .domleks-open__cart {
        height: 30px;
        width: 30px;
    }

    .myservice__products-btn .price .domleks-open__cart {
        position: unset;
    }
}

@media (max-width: 400px) {
    .myservice__products-item {
        padding: 0 0 5px;
    }

    .myservice__products-title h3 {
        font-size: 14px;
    }

    .myservice__products-btn {
        bottom: 0;
    }

    .myservice__products-btn .price {
        margin: 10px 0 7px;
        justify-content: flex-start;
    }

    .myservice__products-btn .price .domleks-open__cart {
        position: absolute;
        bottom: 0;
        right: -10px;
    }
}