/*
Theme Name: MixTrader / Aura Premium
Author: You
Version: 1.8.4 (Footer Final)
Text Domain: aura-premium
Description: Кастомная тема для интернет-магазина MixTrader
*/

/* ============================================== */
/* ✅ ПАНЕЛЬ НАСТРОЕК (МЕНЯТЬ ЗДЕСЬ)              */
/* ============================================== */
:root {
    /* --- ШАПКА (Высота) --- */
    --header-height-desktop: 40px;
    --header-height-mobile: 35px;
    
    /* --- ЛОГОТИП (Размер) --- */
    --logo-height-desktop: 60px;
    --logo-height-mobile: 40px;
    
    /* --- ОТСТУПЫ (Мобильные) --- */
    --header-edge-padding-mobile: 20px;
    
    /* --- ВЕРТИКАЛЬНАЯ ПОДСТРОЙКА ЛОГОТИПА --- */
    --logo-offset-y: 5px;
}

/* ===== БАЗОВЫЙ СБРОС ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: all 0.3s ease; }
a:hover { color: #2DD4BF; }
img, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; border: none; outline: none; }
button { cursor: pointer; }
ul, ol { list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ===== ШАПКА И ЛОГОТИП ===== */
.site-header {
    background: #0a0a0a;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.site-header .container.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height-desktop); 
}

.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo .logo-link { display: block; line-height: 1; }
.site-logo .custom-logo { 
    max-height: var(--logo-height-desktop); 
    width: auto; height: auto; object-fit: contain; display: block; 
}
.site-logo .logo-text { font-size: 1.8rem; font-weight: 700; color: #fff; }
.site-logo .logo-text span { color: #2DD4BF; }

.cart-btn {
    display: flex !important; align-items: center !important; justify-content: center !important;
    width: 40px !important; height: 40px !important; border-radius: 50% !important; position: relative !important;
}
.cart-btn svg { display: block !important; margin: 0 !important; width: 24px !important; height: 24px !important; }

/* ===== МОБИЛЬНОЕ МЕНЮ ===== */
.mobile-menu-overlay {
    position: fixed !important; top: 0 !important; left: 0 !important;
    width: 100vw !important; height: 100vh !important;
    background: rgba(10, 10, 10, 0.98) !important;
    z-index: 9999 !important; display: flex !important; justify-content: center !important; align-items: center !important;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }
.mobile-menu-content {
    position: relative !important; top: auto !important; right: auto !important;
    width: 100% !important; max-width: 400px !important; height: auto !important;
    background: transparent !important; padding: 20px !important; transform: none !important;
}
.close-menu { position: absolute; top: 20px; right: 20px; font-size: 2rem; background: transparent; color: #fff; z-index: 10000; }
.mobile-nav-list { display: flex; flex-direction: column; gap: 25px; text-align: center; }
.mobile-nav-list a { font-size: 1.5rem; font-weight: 700; padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.1); }

/* ============================================== */
/* ✅ АДАПТИВ ДЛЯ МОБИЛЬНЫХ ===== */
/* ============================================== */
@media (max-width: 1024px) {
    .site-header .container.header-inner {
        height: var(--header-height-mobile) !important;
        padding-left: var(--header-edge-padding-mobile) !important;
        padding-right: var(--header-edge-padding-mobile) !important;
        position: relative !important;
    }
    .site-header .burger-menu { flex-shrink: 0 !important; z-index: 2 !important; margin: 0 !important; padding: 0 !important; }
    .site-header .header-actions { flex-shrink: 0 !important; z-index: 2 !important; margin: 0 !important; padding: 0 !important; display: flex; align-items: center; }
    
    .site-header .site-logo {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) translateY(var(--logo-offset-y)) !important; 
        margin: 0 !important; padding: 0 !important;
        text-align: center !important;
        max-width: 60%;
    }
    .site-logo .custom-logo { max-height: var(--logo-height-mobile) !important; width: auto !important; height: auto !important; display: inline-block !important; }
    .site-logo .custom-logo + .logo-text { display: none; }
}

/* ============================================== */
/* ✅ КАТАЛОГ (ТОВАРЫ) ===== */
/* ============================================== */
@media (max-width: 768px) {
    .products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 3px !important; padding: 0 3px !important; }
    .product-card { border-radius: 4px !important; }
    .product-info { padding: 8px !important; }
    .product-title { font-size: 0.85rem !important; }
    .product-price { font-size: 1rem !important; margin-bottom: 6px !important; }
    .add-to-cart { padding: 8px !important; font-size: 0.7rem !important; }
    .filter-sheet { bottom: 60px !important; max-height: calc(100vh - 80px) !important; z-index: 9998 !important; border-radius: 16px 16px 0 0 !important; }
    .filter-overlay { z-index: 9997 !important; }
}
@media (max-width: 480px) {
    .products-grid { gap: 2px !important; padding: 0 2px !important; }
    .product-info { padding: 6px !important; }
    .product-price { font-size: 0.95rem !important; }
}

@media (min-width: 1025px) {
    .desktop-only { display: block !important; }
    .mobile-only { display: none !important; }
    .desktop-filter-sidebar { display: block !important; }
    .site-header .container.header-inner { height: var(--header-height-desktop) !important; }
    .site-logo .custom-logo { max-height: var(--logo-height-desktop) !important; }
}

/* ============================================== */
/* ✅ САЛАТОВЫЙ ЦВЕТ НАЗВАНИЙ ТОВАРОВ ===== */
/* ============================================== */
:root {
    --product-title-color: #62ff01;
    --title-size-page: 2.2rem;
    --title-size-catalog: 1.4rem;
    --title-size-cart: 1.2rem;
    --title-size-checkout: 1.1rem;
    --title-size-page-mobile: 1.5rem;
    --title-size-catalog-mobile: 1.0rem;
    --title-size-cart-mobile: 1rem;
    --title-size-checkout-mobile: 1rem;
}

.single-product .product-title,
.single-product h1.product_title,
.single-product .entry-title,
.single-product .summary .product_title {
    color: var(--product-title-color) !important;
    font-size: var(--title-size-page) !important;
    font-weight: 700;
    text-shadow: 0 2px 15px rgba(98, 255, 1, 0.3);
}

.product-card .product-title,
.product-card .product-title a,
article.product-card h3 a,
.woocommerce-loop-product__title {
    color: var(--product-title-color) !important;
    font-size: var(--title-size-catalog) !important;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(98, 255, 1, 0.25);
    line-height: 1.3;
}

.cart-product-title,
.cart-product-title a,
table.cart .product-name a,
.woocommerce-cart-form .product-name a {
    color: var(--product-title-color) !important;
    font-size: var(--title-size-cart) !important;
    font-weight: 700;
}

.checkout-item-title,
div.checkout-item-title,
.woocommerce-checkout-review-order-table .product-name a,
#order_review .product-name a {
    color: var(--product-title-color) !important;
    font-size: var(--title-size-checkout) !important;
    font-weight: 700;
}

@media (max-width: 768px) {
    .single-product .product-title,
    .single-product h1.product_title { font-size: var(--title-size-page-mobile) !important; }
    .product-card .product-title,
    .product-card .product-title a,
    article.product-card h3 a { font-size: var(--title-size-catalog-mobile) !important; }
    .cart-product-title,
    .cart-product-title a,
    table.cart .product-name a { font-size: var(--title-size-cart-mobile) !important; }
    .checkout-item-title,
    .woocommerce-checkout-review-order-table .product-name a { font-size: var(--title-size-checkout-mobile) !important; }
}

/* ============================================== */
/* ✅ ФУТЕР: ФИНАЛЬНАЯ ВЕРСИЯ ===== */
/* ============================================== */

/* Сетка футера: 3 колонки с пропорциями */
.footer-grid {
    display: grid !important;
    grid-template-columns: 1.6fr 0.5fr 0.9fr !important;
    gap: 15px !important;
    align-items: start;
    width: 100%;
}

/* Текст описания */
.desc-col .footer-desc {
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* Контакты: выравнивание по левому краю */
.contacts-col {
    text-align: left !important;
    margin: 0 !important;
    justify-self: end;
    min-width: 240px;
}

/* Иконки соцсетей: прижаты влево */
.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    justify-content: flex-start !important;
}

/* Кнопки соцсетей */
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s, filter 0.2s;
}
.social-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }

/* Цвета мессенджеров */
.social-btn.vk { background: #0077FF; }
.social-btn.tg { background: #24A1DE; }
.social-btn.wa { background: #25D366; }
.social-btn.max { background: #6C5CE7; }

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 30px;
    }
    .contacts-col {
        justify-self: center;
        text-align: center !important;
    }
    .footer-socials {
        justify-content: center !important;
    }
}
