/* ==========================================
   SKALHEIM - ПРЕМИУМ ТЕМА (БРОНЕБОЙНАЯ ВЕРСИЯ V4)
   ========================================== */

/* 1. Глобальная темная тема */
body, .bg-light, main.bg-light, .bg-white {
    background-color: #0f0f13 !important;
    color: #e0e0e0 !important;
}

/* 2. Стеклянная навигация (Navbar) */
.navbar.bg-light {
    background: rgba(15, 15, 19, 0.85) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(245, 183, 89, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.navbar-light .navbar-nav .nav-link {
    color: #e2e8f0 !important;
    font-weight: 500;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.navbar-light .navbar-nav .nav-link:hover {
    color: #f5b759 !important;
    text-shadow: 0 0 10px rgba(245, 183, 89, 0.3);
}

/* 3. Главный заголовок SKALHEIM */
.shop-name {
    font-weight: 800 !important;
    background: linear-gradient(90deg, #f5b759, #ffe1a8, #f5b759);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 4s infinite linear;
    filter: drop-shadow(0 0 10px rgba(245, 183, 89, 0.2));
}
@keyframes gradient-shift {
    to { background-position: 200% center; }
}

/* ==========================================
   4. ЖЕСТКОЕ ИСПРАВЛЕНИЕ МЕНЮ КАТЕГОРИЙ
   ========================================== */
/* Неактивные вкладки (перебиваем системный черный) */
html body #shop .nav-pills .nav-link,
html body #shop .nav-pills .nav-link *,
html body #shop .nav-pills .nav-link.text-black,
html body #shop .nav-pills .nav-link.text-dark {
    color: #a0aec0 !important; /* Приятный светло-серый */
    background-color: transparent !important;
    font-weight: 600 !important;
    transition: all 0.3s ease;
}

/* При наведении делаем вкладку белой */
html body #shop .nav-pills .nav-link:hover,
html body #shop .nav-pills .nav-link:hover * {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

/* Активная вкладка (золотой фон + темный текст) */
html body #shop .nav-pills .nav-link.active,
html body #shop .nav-pills .nav-link.active *,
html body #shop .nav-pills .show > .nav-link,
html body #shop .nav-pills .show > .nav-link * {
    background-color: #f5b759 !important;
    color: #111111 !important;
    box-shadow: 0 4px 10px rgba(245, 183, 89, 0.3) !important;
}

/* 5. Карточки товаров на главной */
.product-card, .card {
    background: rgba(25, 25, 30, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    overflow: hidden;
}
.product-card:hover, .card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 183, 89, 0.4) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 15px rgba(245, 183, 89, 0.15) !important;
}
.product-card .card-header img {
    transition: transform 0.4s ease, filter 0.4s ease !important;
}
.product-card:hover .card-header img {
    transform: scale(1.1) translateY(-3px) !important;
    filter: drop-shadow(0 10px 15px rgba(245, 183, 89, 0.2)) !important;
}
.product-card .card-body {
    padding-top: 10px !important;
    padding-bottom: 15px !important;
}
.product-card .card-body h5 {
    color: #e2e8f0 !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.3px;
    margin-bottom: 4px !important;
    text-transform: uppercase;
}
.product-card .card-body h4 {
    color: #fbd088 !important;
    font-weight: 500 !important;
    font-size: 1.15rem !important;
    letter-spacing: 0.5px;
    margin-top: 5px !important;
}

/* 6. Кнопки на главной */
.product-card .btn {
    background: linear-gradient(135deg, #eaaa4a, #f5b759) !important;
    border: none !important;
    color: #111111 !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(245, 183, 89, 0.15) !important;
    border-radius: 10px !important;
    padding: 10px 15px !important;
    transition: all 0.3s ease !important;
}
.product-card .btn:hover {
    background: linear-gradient(135deg, #f5b759, #ffdf80) !important;
    box-shadow: 0 6px 20px rgba(245, 183, 89, 0.4) !important;
    transform: translateY(-2px);
}

/* ==========================================
   7. ЖЕСТКОЕ ИСПРАВЛЕНИЕ КОРЗИНЫ (Модальное окно)
   ========================================== */
/* Убиваем любые светлые фоны внутри корзины (включая левую колонку) */
html body #cart .modal-content,
html body #cart .cart-content,
html body #cart .bg-white,
html body #cart .bg-light,
html body #cart .row > div {
    background-color: #141418 !important;
    background: #141418 !important;
}

/* Правая колонка остается чуть темнее для контраста */
html body #cart .bg-dark {
    background-color: #0f0f13 !important;
    background: #0f0f13 !important;
}

/* Границы и тени самой модалки */
html body #cart .modal-content {
    border: 1px solid rgba(245, 183, 89, 0.2) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9) !important;
}

/* Базовый цвет для всех текстов в корзине */
html body #cart h1, html body #cart h2, html body #cart h3, 
html body #cart h4, html body #cart h5, html body #cart h6,
html body #cart p, html body #cart span:not(.cart-cost):not(.badge), 
html body #cart label, html body #cart div,
html body #cart .text-muted, html body #cart .text-dark, 
html body #cart .text-black {
    color: #e2e8f0 !important;
}

/* Заголовок "Корзина" */
html body #cart h1.display-4, html body #cart h1:first-child {
    color: #ffffff !important;
    font-weight: 800 !important;
}

/* Шаги (1. Выбор товара и тд) */
html body #cart h5.text-warning, 
html body #cart h6.text-warning {
    color: #f5b759 !important; /* Золотистый цвет для шагов */
    font-weight: 700 !important;
}

/* Итоговая цена */
html body #cart .cart-cost, 
html body #cart .font-weight-bolder {
    color: #fbd088 !important;
    font-weight: 700 !important;
}

/* Товар в корзине (Серые карточки из скриншота) */
html body #cart .card {
    background: #1e1e24 !important; /* Нормальный темно-серый цвет */
    border: 1px solid rgba(245, 183, 89, 0.2) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

/* Название товара внутри корзины */
html body #cart .card h5 {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Инфо-блок (Внимание!) */
html body #cart .alert-warning {
    background-color: rgba(245, 183, 89, 0.15) !important;
    border: 1px solid rgba(245, 183, 89, 0.3) !important;
    border-radius: 10px !important;
}
html body #cart .alert-warning, 
html body #cart .alert-warning * {
    color: #fbd088 !important;
}

/* Кнопка удаления (Корзина) */
html body #cart .card .btn-danger, 
html body #cart .bg-danger {
    background-color: #ff4757 !important; /* Ярко-красный */
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
html body #cart .card .btn-danger i, 
html body #cart .bg-danger i, 
html body #cart .text-danger {
    color: #ffffff !important; /* Белая иконка корзины */
}

/* Кнопки Плюс/Минус */
html body #cart .card .btn-light, 
html body #cart .card .btn-outline-secondary {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    transition: all 0.2s;
}
html body #cart .card .btn-light:hover, 
html body #cart .card .btn-outline-secondary:hover {
    background: #f5b759 !important;
    color: #111111 !important;
}

/* Кнопка КУПИТЬ внутри корзины */
html body #cart .btn-warning, 
html body #cart .btn-primary {
    background: linear-gradient(135deg, #eaaa4a, #f5b759) !important;
    color: #111111 !important;
    font-weight: 800 !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 10px 20px !important;
}

/* Поля ввода (Ник, Email) */
.form-control, html body #cart .form-control {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
}
.form-control::placeholder { color: #718096 !important; }
.form-control:focus {
    background: rgba(0, 0, 0, 0.6) !important;
    border-color: #f5b759 !important;
    box-shadow: 0 0 12px rgba(245, 183, 89, 0.25) !important;
}

/* ==========================================
   8. МЕЛКИЕ ДЕТАЛИ И ИНТЕРФЕЙС
   ========================================== */
/* Скелетоны загрузки */
.skeleton-box {
    background-color: rgba(30, 30, 35, 0.8) !important;
}
.skeleton-box::after {
    background-image: linear-gradient(90deg, rgba(255,255,255, 0) 0, rgba(255,255,255, 0.03) 20%, rgba(255,255,255, 0.08) 60%, rgba(255,255,255, 0)) !important;
}
/* Плавающая кнопка корзины */
.basket-button {
    box-shadow: 0 0 15px rgba(245, 183, 89, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.basket-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(245, 183, 89, 0.6);
}
/* Выделение текста и скроллбар */
::selection { background: rgba(245, 183, 89, 0.3); color: #ffffff; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0f0f13; }
::-webkit-scrollbar-thumb { background: rgba(245, 183, 89, 0.3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(245, 183, 89, 0.6); }