/*
Theme Name:   Astra Child (или любое другое имя для вашей дочерней темы)
Template:     astra
Description:  Дочерняя тема для Astra Pro
Author:       Ваше имя
Version:      1.0.0
Text Domain:  astra-child
*/

/* Ваши кастомные CSS-стили размещайте здесь */
.tax-product_cat .woocommerce-info {
    display: none !important;
}
/* Основной контейнер выпадающего меню */
.main-header-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 600px; /* Ширина мега-меню */
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    display: none;
    padding: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Показываем меню при наведении */
.main-header-menu li:hover > .sub-menu {
    display: flex;
}

/* Стили для пунктов меню */
.main-header-menu .sub-menu .menu-item {
    flex: 1 1 200px; /* Ширина колонки */
    margin: 0;
    padding: 0.5rem 0;
}

.main-header-menu .sub-menu .menu-item a {
    text-decoration: none;
    color: #333;
    padding: 0.5rem;
    display: block;
    font-weight: 500;
}

.main-header-menu .sub-menu .menu-item a:hover {
    background: #f5f5f5;
    color: #0073aa;
}

/* Заголовки подкатегорий */
.main-header-menu .sub-menu .menu-item-has-children > a::after {
    content: " ▼";
    font-size: 0.8rem;
}

/* Подменю (уровень 3) */
.main-header-menu .sub-menu .sub-menu {
    position: relative;
    top: 0;
    left: 0;
    min-width: auto;
    box-shadow: none;
    border: none;
    padding: 0.25rem 0 0 1rem;
}

/* Показываем подменю при наведении на родителя */
.main-header-menu .sub-menu .menu-item:hover > .sub-menu {
    display: block;
}
/* === Блок "Пустая категория" === */

.empty-category-message {
    margin: 2rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.empty-category-message h3 {
    font-size: 1.4rem;
    color: #222;
    margin: 0 0 0.5rem;
}

.empty-category-message p {
    color: #666;
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

.empty-category-message .button.primary {
    background: #d32f2f; /* Яркий красный — как в Material Design */
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
    border: none;
    font-size: 1rem;
}

.empty-category-message .button.primary:hover {
    background: #b71c1c; /* Темно-красный для ховера */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(211, 47, 47, 0.3);
}

/* === Изображение категории === */
.empty-category-image {
    width: 100%;
    max-width: 300px;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.empty-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.empty-category-image:hover img {
    transform: scale(1.05);
}

/* === Адаптивность === */
@media (max-width: 768px) {
    .empty-category-message {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .empty-category-message h3 {
        font-size: 1.25rem;
    }

    .empty-category-message p {
        font-size: 0.95rem;
    }

    .empty-category-image {
        max-width: 250px;
        height: 160px;
    }
}

@media (max-width: 480px) {
    .empty-category-message {
        padding: 1.25rem;
        margin: 1rem 0;
    }

    .empty-category-message h3 {
        font-size: 1.15rem;
    }

    .empty-category-image {
        max-width: 220px;
        height: 140px;
    }
}