/* =====================================================
   CATEGORIES BAR - REDESIGN CLEAN
   Fundo branco, sombra elegante, fonte azul
   ===================================================== */

/* Barra principal */
.categories-bar {
    background: #ffffff !important;
    border: none !important;
    border-top: none !important;
    box-shadow: 0 4px 16px rgba(0, 61, 122, 0.10),
                0 1px 4px rgba(0, 0, 0, 0.06) !important;
}

.categories-container {
    background: transparent !important;
    border-top: 1px solid rgba(0, 61, 122, 0.10) !important;
}

/* Botao Categorias */
.all-categories-btn {
    color: var(--primary) !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 14px 20px !important;
    border-right: none !important;
    transition: all 0.2s ease !important;
    gap: 8px !important;
}

.all-categories-btn:hover {
    background: rgba(0, 61, 122, 0.06) !important;
    color: var(--primary) !important;
}

.all-categories-btn i.fa-bars {
    color: #d4a017 !important;
    font-size: 16px;
    opacity: 1;
}

.all-categories-btn .chevron {
    color: var(--primary) !important;
    opacity: 0.5;
}

/* Links de categorias */
.categories-nav a {
    color: var(--primary) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 14px 16px !important;
    letter-spacing: 0.2px !important;
    transition: all 0.2s ease !important;
    position: relative !important;
}

.categories-nav a:hover {
    color: var(--primary-dark, #002850) !important;
    background: rgba(0, 61, 122, 0.05) !important;
}

.categories-nav a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) scaleX(0) !important;
    width: 70% !important;
    height: 2.5px !important;
    background: var(--primary) !important;
    border-radius: 3px 3px 0 0 !important;
    transition: transform 0.25s ease !important;
}

.categories-nav a:hover::after {
    transform: translateX(-50%) scaleX(1) !important;
}

.categories-nav a.active {
    color: var(--primary) !important;
    background: rgba(0, 61, 122, 0.04) !important;
    font-weight: 700 !important;
}

.categories-nav a.active::after {
    background: var(--primary) !important;
    height: 3px !important;
    width: 70% !important;
    bottom: 0 !important;
    border-radius: 3px 3px 0 0 !important;
    transform: translateX(-50%) scaleX(1) !important;
}

/* ---- Botao OFERTAS ---- */
.ofertas-menu-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 16px;
    margin: 0 0 0 auto;
    background: transparent;
    color: #e74c3c;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
}

.ofertas-menu-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 70%;
    height: 2.5px;
    background: #e74c3c;
    border-radius: 3px 3px 0 0;
    transition: transform 0.25s ease;
}

.ofertas-menu-btn:hover {
    color: #c0392b;
    background: rgba(231, 76, 60, 0.05);
}

.ofertas-menu-btn:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.ofertas-menu-btn i {
    font-size: 12px;
    animation: ofertaPulse 2s ease-in-out infinite;
}

.ofertas-menu-btn .ofertas-count {
    background: rgba(231, 76, 60, 0.12);
    color: #e74c3c;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

@keyframes ofertaPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ---- Dropdown de categorias - Redesign ---- */
.all-categories-dropdown {
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.08) !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
    padding: 8px 0 !important;
    min-width: 300px !important;
    margin-top: 0 !important;
    max-height: 70vh !important;
}

.all-categories-dropdown ul {
    padding: 4px 0 !important;
}

.all-categories-dropdown li a {
    padding: 11px 22px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: var(--text-dark) !important;
    border-left: 3px solid transparent !important;
    transition: all 0.15s ease !important;
}

.all-categories-dropdown li a:hover {
    background: var(--bg-light) !important;
    color: var(--primary) !important;
    border-left-color: var(--primary) !important;
    padding-left: 26px !important;
}

/* ---- Responsivo ---- */
@media (max-width: 1200px) {
    .ofertas-menu-btn {
        padding: 14px 12px;
        font-size: 12px;
    }

    .ofertas-menu-btn .ofertas-count {
        display: none;
    }
}

@media (max-width: 992px) {
    .ofertas-menu-btn {
        padding: 14px 10px;
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .categories-bar {
        padding: 0 !important;
        box-shadow: 0 2px 8px rgba(0, 61, 122, 0.08) !important;
    }

    .all-categories-btn {
        padding: 12px 14px !important;
        font-size: 13px !important;
    }

    .ofertas-menu-btn {
        padding: 12px 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .ofertas-menu-btn span:not(.ofertas-count) {
        display: none;
    }

    .ofertas-menu-btn {
        padding: 12px 8px;
    }

    .ofertas-menu-btn i {
        font-size: 14px;
    }
}
