/**
* Theme Name:        avanam-techshop
* Theme URI:         https://templatemela.com/
* Template:          avanam
* Author:            TemplateMela
* Author URI:        #
* Description:       This is a child theme of Avanam, generated by TemplateMela.
* Version:           1.0.0
* License:           GNU General Public License v3.0 (or later)
* License URI:       https://www.gnu.org/licenses/gpl-3.0.html
* Text Domain:       avanam-techshop
* Requires at least: 6.2
* Tested up to:      6.6
* Requires PHP:      7.4
* Tags: translation-ready, two-columns, right-sidebar, left-sidebar, footer-widgets, blog, custom-logo, custom-background, custom-menu, rtl-language-support, editor-style, threaded-comments, custom-colors, featured-images, wide-blocks, full-width-template, theme-options, e-commerce
**/
/* Контейнер */
.custom-subcategories-wrapper {
    width: 100% !important;
    margin: 20px 0 40px 0 !important;
    padding: 0 !important;
    clear: both !important;
}

/* Сетка - убираем маркеры и сбрасываем список */
ul.custom-subcat-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    gap: 20px !important;
    list-style: none !important; /* Убирает точки/маркеры */
    margin: 0 !important;
    padding: 0 !important;
}

/* Сама плитка */
ul.custom-subcat-grid li.subcat-item {
    list-style: none !important;
    margin: 0 !important;
    padding: 15px !important;
    background: #fff !important;
    border: 1px solid #eaeaea !important;
    border-radius: 12px !important;
    text-align: center !important;
    transition: all 0.2s ease-in-out !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* Убираем псевдоэлементы темы (маркеры), если они остались */
ul.custom-subcat-grid li.subcat-item::before,
ul.custom-subcat-grid li.subcat-item::after {
    display: none !important;
    content: none !important;
}

ul.custom-subcat-grid li.subcat-item:hover {
    border-color: #000 !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05) !important;
}

/* Ссылка внутри плитки */
ul.custom-subcat-grid li.subcat-item a {
    text-decoration: none !important;
    color: inherit !important;
    display: block !important;
    width: 100% !important;
}

/* Миниатюра */
ul.custom-subcat-grid li.subcat-item img {
    width: 120px !important; /* Укажите нужный размер */
    height: 120px !important;
    object-fit: contain !important;
	display: block !important;       /* Делаем картинку блоком */
    margin-left: auto !important;    /* Выталкиваем слева */
    margin-right: auto !important;   /* Выталкиваем справа */
    margin-bottom: 15px !important;
    border-radius: 0 !important;
}

/* Заголовок */
ul.custom-subcat-grid li.subcat-item h4 {
    font-size: 14px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    color: #333 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
}

/* Адаптация для мобильных */
@media (max-width: 480px) {
    ul.custom-subcat-grid {
        grid-template-columns: repeat(2,  minmax(120px, 1fr)) !important;
        gap: 5px !important;
        gap: 5px !important;
    }
}
/* Адаптация для мобильных */
@media (max-width: 960px) {
    ul.custom-subcat-grid {
        grid-template-columns: repeat(2,  minmax(120px, 1fr)) !important;
        gap: 5px !important;
    }
}