/**
 * BRW — стилизация popup-меню каталога (bigmenu)
 * Добавлено: 2026-03-22
 */

/* === ПАНЕЛЬ === */
.bigmenu {
    background: #CDD798 !important;
    border-bottom: 2px solid #0D0D0D;
}

/* === КОНТЕНТ — на всю ширину === */
.bigmenu-inner {
    max-width: 100% !important;
    padding: 0 60px !important;
}

/* === ШАПКА === */
.bigmenu-brand {
    display: none !important;
}
.bigmenu-header {
    padding: 16px 0 10px !important;
    justify-content: flex-end !important;
}
.bigmenu-close {
    background: #3a3228;
}

/* === ТАБЫ === */
.bigmenu-tabs {
    padding: 0 !important;
    border-bottom: 1px solid rgba(58, 50, 40, 0.15);
    gap: 8px !important;
}

/* Разделитель · между табами */
.bigmenu-tabs > .bigmenu-tab:not(:first-child)::before,
.bigmenu-tabs > .bigmenu-tab--link::before {
    content: "·";
    margin-right: 5px;
    color: #3a3228;
    opacity: 0.3;
    font-size: 1.2em;
    font-weight: 400;
}
.bigmenu-tab {
    color: #3a3228 !important;
    opacity: 1 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    border-bottom: 3px solid transparent !important;
    padding: 14px 0 !important;
    transition: all 0.25s ease !important;
    position: relative !important;
}
.bigmenu-tab:hover {
    opacity: 1 !important;
    color: #fb2c18 !important;
    border-bottom-color: #fb2c18 !important;
    transform: translateY(-1px);
}
.bigmenu-tab.active {
    opacity: 1 !important;
    border-bottom-color: #3a3228 !important;
    border-bottom-width: 3px !important;
}

/* === БЕЙДЖ NEW === */
.bigmenu-badge {
    background: #3a3228 !important;
    color: #CDD798 !important;
}

/* === ТЕЛО === */
.bigmenu-body {
    padding: 40px 0 !important;
    gap: 60px !important;
}
.bigmenu-body.active {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
}

/* === ЛЕЙБЛЫ === */
.bigmenu-label {
    font-size: 16px !important;
    color: #3a3228 !important;
    opacity: 1 !important;
    letter-spacing: 0.12em !important;
    font-weight: 700 !important;
    margin-bottom: 24px !important;
    text-transform: uppercase !important;
}

/* === КАТЕГОРИИ === */
.bigmenu-nav {
    gap: 0 !important;
    gap: 4px;
}
.bigmenu-nav a {
    font-size: 22px;
    color: #3a3228;
    padding: 4px 12px !important;
    border-radius: 8px;
    position: relative;
}
.bigmenu-nav a:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    padding-left: 18px !important;
    color: #3a3228;
}

/* === ЭФФЕКТЫ — плашки === */
.bigmenu-effects {
    gap: 10px;
    display: flex !important;
    flex-direction: column !important;
}
.effect-item {
    padding: 14px 20px !important;
    border-radius: 10px !important;
    border-bottom: none !important;
    margin: 0 !important;
    color: #fff !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}
.effect-item:hover {
    transform: translateX(4px) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18) !important;
    background: inherit !important;
}
.effect-item:nth-child(1) { background: #F4A261 !important; }
.effect-item:nth-child(2) { background: #6B9F78 !important; }
.effect-item:nth-child(3) { background: #9B8EC4 !important; }
.effect-item:nth-child(4) { background: #4A5899 !important; }
.effect-dot { display: none !important; }
.effect-name {
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 16px !important;
}
.effect-count {
    color: rgba(255, 255, 255, 0.8) !important;
    opacity: 1 !important;
    font-size: 14px !important;
    margin-left: auto;
}

/* === РАЗДЕЛИТЕЛЬ === */
.bigmenu-col-right {
    border-left-color: rgba(58, 50, 40, 0.12);
    padding-left: 60px !important;
}

/* === ФУТЕР === */
.bigmenu-footer {
    padding: 0 0 28px !important;
}
.bigmenu-footer-line {
    background: rgba(58, 50, 40, 0.15);
}
.bigmenu-footer-links a {
    color: #3a3228 !important;
    opacity: 0.7 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}
.bigmenu-footer-links a:hover {
    opacity: 1 !important;
}

/* === Ссылка «Конструктор наборов» === */
.bigmenu-tab--link {
    color: #3a3228 !important;
    opacity: 1 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    border-bottom: 3px solid transparent !important;
    padding: 14px 0 !important;
    transition: all 0.25s ease !important;
    position: relative !important;
    font-family: inherit !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: opacity 0.2s !important;
    white-space: nowrap !important;
}
.bigmenu-tab--link:hover {
    opacity: 1 !important;
    color: #fb2c18 !important;
    border-bottom-color: #fb2c18 !important;
    transform: translateY(-1px);
}
.bigmenu-tab--highlight {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #2D2A26 !important;
}

/* ============================================
   ПЛАНШЕТ И МОБИЛЬНОЕ (≤ 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .bigmenu {
        background: #CDD798 !important;
    }
    .bigmenu-inner {
        padding: 0 20px !important;
    }
    .bigmenu-header {
        padding: 10px 0 4px !important;
    }
    .bigmenu-close {
        width: 36px !important;
        height: 36px !important;
    }

    /* Табы — компактные, скролл */
    .bigmenu-tabs {
    border-bottom: 2px solid rgba(58, 50, 40, 0.2) !important;

    /* Разделитель · меньше на мобильных */
    .bigmenu-tabs > .bigmenu-tab:not(:first-child)::before,
    .bigmenu-tabs > .bigmenu-tab--link::before {
        margin-right: 5px;
        font-size: 1em;
    }
    margin-bottom: 4px !important;
        gap: 5px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap !important;
        scrollbar-width: none;
        padding-bottom: 8px !important;
    }
    .bigmenu-tabs::-webkit-scrollbar { display: none; }
    .bigmenu-tab {
        font-size: 18px !important;
        padding: 14px 0 !important;
    transition: all 0.25s ease !important;
    position: relative !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    .bigmenu-tab--link {
        font-size: 18px !important;
        padding: 14px 0 !important;
    transition: all 0.25s ease !important;
    position: relative !important;
    }
    .bigmenu-tab--highlight {
        font-size: 13px !important;
    }

    /* Тело — компактное */
    .bigmenu-body {
        padding: 16px 0 !important;
        gap: 0 !important;
    }
    .bigmenu-body.active {
        grid-template-columns: 1fr !important;
    }

    /* Лейблы */
    .bigmenu-label {
        font-size: 12px !important;
        margin-bottom: 10px !important;
    }

    /* Категории — компактные, touch-friendly */
    .bigmenu-nav a {
        font-size: 18px !important;
        padding: 2px 10px !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        line-height: 1.2 !important;
    }

    /* Эффекты */
    .bigmenu-col-right {
        border-left: none !important;
        padding-left: 0 !important;
        margin-top: 14px !important;
        padding-top: 14px !important;
        border-top: 1px solid rgba(58, 50, 40, 0.12) !important;
    }
    .bigmenu-effects {
        gap: 4px !important;
    }
    .effect-item {
        padding: 10px 14px !important;
        min-height: 44px !important;
        border-radius: 8px !important;
    }
    .effect-name {
        font-size: 14px !important;
    }
    .effect-count {
        font-size: 12px !important;
    }

    /* Футер */
    .bigmenu-footer {
        padding: 0 0 16px !important;
    }
    .bigmenu-footer-line {
        margin-bottom: 10px !important;
    }
    .bigmenu-footer-links {
        gap: 14px !important;
    }
    .bigmenu-footer-links a {
        font-size: 11px !important;
    }
}

/* ============================================
   МАЛЕНЬКИЙ ТЕЛЕФОН (≤ 480px)
   ============================================ */
@media (max-width: 480px) {
    .bigmenu-inner {
        padding: 0 16px !important;
    }
    .bigmenu-header {
        padding: 8px 0 2px !important;
    }
    .bigmenu-close {
        width: 32px !important;
        height: 32px !important;
    }

    .bigmenu-tabs {
        gap: 6px !important;
    }
    .bigmenu-tab {
        font-size: 15px !important;
        letter-spacing: 0.04em !important;
        padding: 12px 0 !important;
    }
    .bigmenu-tab--link {
        font-size: 15px !important;
        letter-spacing: 0.04em !important;
        padding: 12px 0 !important;
    }
    .bigmenu-tab--highlight {
        font-size: 17px !important;
    }

    .bigmenu-body {
        padding: 12px 0 !important;
    }
    .bigmenu-label {
        font-size: 11px !important;
        margin-bottom: 8px !important;
    }
    .bigmenu-nav a {
        font-size: 16px !important;
        padding: 1px 8px !important;
        min-height: 40px !important;
    }

    .bigmenu-col-right {
        margin-top: 10px !important;
        padding-top: 10px !important;
    }
    .bigmenu-effects {
        gap: 5px !important;
    }
    .effect-item {
        padding: 4px 12px !important;
        min-height: 40px !important;
    }
    .effect-name {
        font-size: 13px !important;
    }
    .effect-count {
        font-size: 11px !important;
    }

    .bigmenu-footer {
        padding: 0 0 12px !important;
    }
    .bigmenu-footer-links {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
}

/* ============================================
   ОЧЕНЬ МАЛЕНЬКИЙ (≤ 380px)
   ============================================ */
@media (max-width: 380px) {
    .bigmenu-tabs { gap: 8px !important; }
    .bigmenu-tab { font-size: 13px !important; }
    .bigmenu-tab--link { font-size: 13px !important; }
    .bigmenu-nav a { font-size: 15px !important; }
    .effect-name { font-size: 12px !important; }
    .effect-count { font-size: 10px !important; }
}
