/* Базовые стили для всего магазина */
.fantasy-theme {
    /* font-family: 'Georgia', 'Times New Roman', serif; */
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    color: #080808;
    line-height: 1;
}

/* Общие стили для секций */
.section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #000000;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #7f8c8d;
}

/* Кнопки в стиле фэнтези */
.btn-magic {
    background: linear-gradient(45deg, #000000, #484848);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.btn-magic:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-ghost {
    background: transparent;
    color: #8B4513;
    border: 2px solid #8B4513;
    padding: 10px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-ghost:hover {
    background: #060606;
    color: white;
}

.brand-title a {
    display: inline; /* или inline-block */
    text-decoration: none;
    color: black;
    letter-spacing: 0.2em;
}


/* МОБИЛЬНОЕ МЕНЮ - СКРЫТО НА ДЕСКТОПЕ */
.mobile-bottom-nav {
    display: none !important;
}

/* НА МОБИЛЬНЫХ: показываем меню и скрываем хедер/футер */
@media (max-width: 768px) {
    /* Принудительно скрываем десктопные элементы */
    /* body .premium-header, */
    /* body .navigation-bar,  */
    body .brand-bar,
    body .premium-footer {
        display: none !important;
    }
    
    body .premium-header {
            display: flex !important;
        }

    /* Принудительно показываем мобильное меню */
    body .mobile-bottom-nav {
        display: block !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: white !important;
        border-top: 2px solid black !important;
        z-index: 9999 !important;
        padding: 8px 0 !important;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1) !important;
        height: 60px !important;
    }
    
    /* Отступ для контента */
    body {
        padding-bottom: 70px !important;
    }
    
    /* Стили меню */
    .mobile-nav-container {
        display: flex !important;
        justify-content: space-around !important;
        align-items: center !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    
    .mobile-nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        color: #000000 !important; /* ЧЕРНЫЙ ЦВЕТ ТЕКСТА */
        padding: 8px 12px !important;
        border-radius: 8px !important;
        transition: all 0.3s ease !important;
        flex: 1 !important;
        max-width: 25% !important;
        position: relative !important;
        background: none !important; /* УБРАНА ЗАЛИВКА */
        border: none !important;
    }
    
    .mobile-nav-item:hover {
        background: none !important; /* УБРАНА ЗАЛИВКА ПРИ НАВЕДЕНИИ */
        color: #000000 !important; /* ЧЕРНЫЙ ЦВЕТ */
        transform: translateY(-2px) !important;
    }
    
    .mobile-nav-item.active {
        color: #000000 !important; /* ЧЕРНЫЙ ЦВЕТ */
        background: none !important; /* УБРАНА ЗАЛИВКА */
    }
    
    .mobile-nav-icon {
        width: 24px !important;
        height: 24px !important;
        margin-bottom: 4px !important;
        fill: #000000 !important; /* ЧЕРНЫЕ ИКОНКИ */
        color: #000000 !important; /* ЧЕРНЫЕ ИКОНКИ */
    }
    
    .mobile-nav-text {
        font-size: 10px !important;
        font-weight: 500 !important;
        text-align: center !important;
        line-height: 1.2 !important;
        color: #000000 !important; /* ЧЕРНЫЙ ЦВЕТ ТЕКСТА */
    }
    
    /* Особые стили для иконок SVG */
    .mobile-nav-item svg {
        fill: #000000 !important;
        color: #000000 !important;
        stroke: #000000 !important;
    }
    
    /* Специально для эмодзи в избранном */
    .mobile-nav-item[aria-label="Избранное"] .mobile-nav-icon {
        color: #000000 !important;
        font-size: 20px !important;
    }
    
    /* Бейдж для корзины - остается красным */
    .mobile-cart-badge {
        position: absolute !important;
        top: 2px !important;
        right: 8px !important;
        background: #e74c3c !important; /* КРАСНЫЙ цвет сохраняем */
        color: white !important;
        border-radius: 50% !important;
        width: 16px !important;
        height: 16px !important;
        font-size: 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-weight: bold !important;
    }
    
    /* Бейдж для избранного - тоже красный */
    .mobile-nav-item[aria-label="Избранное"] .mobile-cart-badge {
        background: #e74c3c !important;
        color: white !important;
    }
    
    /* Убираем все возможные фоны у дочерних элементов */
    .mobile-nav-item * {
        background: none !important;
    }
}

/* Дополнительные адаптации для очень маленьких экранов */
@media (max-width: 480px) {
    .mobile-nav-text {
        font-size: 9px !important;
        color: #000000 !important;
    }
    
    .mobile-nav-item {
        padding: 6px 8px !important;
        color: #000000 !important;
    }
    
    .mobile-bottom-nav {
        height: 58px !important;
        padding: 6px 0 !important;
    }
    
    .mobile-nav-icon {
        width: 22px !important;
        height: 22px !important;
        fill: #000000 !important;
        color: #000000 !important;
    }
}

@media (max-width: 360px) {
    .mobile-nav-text {
        font-size: 8px !important;
        color: #000000 !important;
    }
    
    .mobile-nav-item {
        padding: 4px 6px !important;
        color: #000000 !important;
    }
}

/* Принудительная установка черного цвета для всех ссылок в мобильном меню */
@media (max-width: 768px) {
    .mobile-nav-item,
    .mobile-nav-item:visited,
    .mobile-nav-item:hover,
    .mobile-nav-item:active,
    .mobile-nav-item:focus {
        color: #000000 !important;
        background: none !important;
    }
    
    .mobile-nav-text,
    .mobile-nav-text:visited,
    .mobile-nav-text:hover,
    .mobile-nav-text:active,
    .mobile-nav-text:focus {
        color: #000000 !important;
    }
    
    .mobile-nav-icon,
    .mobile-nav-icon:visited,
    .mobile-nav-icon:hover,
    .mobile-nav-icon:active,
    .mobile-nav-icon:focus {
        fill: #000000 !important;
        color: #000000 !important;
    }
}