/* ========================================
   SIDEBAR CATEGORIAS - Design Moderno
   Menu lateral de departamentos otimizado
   ======================================== */

/* Container Principal */
.CategoryList.Block {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.CategoryList.Block:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* Título do Bloco */
.CategoryList h2 {
    background: linear-gradient(135deg, #c00 0%, #a00 100%);
    color: #fff;
    margin: 0;
    padding: 16px 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    position: relative;
}

.CategoryList h2::before {
    content: '\f0c9';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 10px;
    font-size: 14px;
}

.CategoryList h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff5722 0%, #c00 100%);
}

/* Container do Conteúdo */
.CategoryList .BlockContent {
    padding: 0;
    background: #fff;
}

/* Lista de Categorias */
.CategoryList ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.CategoryList li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.CategoryList li:last-child {
    border-bottom: none;
}

.CategoryList li:hover {
    background: #fafafa;
    border-left: 3px solid #c00;
}

/* Links das Categorias */
.CategoryList li a {
    display: block;
    padding: 10px 0px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 20px;
}

.CategoryList li a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: #c00;
    font-size: 14px;
    transition: all 0.3s ease;
}

.CategoryList li:hover a {
    color: #c00;
    padding-left: 50px;
}

.CategoryList li:hover a::before {
    left: 25px;
    transform: translateY(-50%) scale(1.2);
}

.CategoryList li a:active {
    background: #f5f5f5;
}

/* Categoria Ativa */
.CategoryList li.active,
.CategoryList li.selected {
    background: #fff5f5;
    border-left: 3px solid #c00;
}

.CategoryList li.active a,
.CategoryList li.selected a {
    color: #c00;
    font-weight: 700;
}

/* Subcategorias (se houver) */
.CategoryList li ul {
    background: #f8f8f8;
    padding: 8px 0;
}

.CategoryList li ul li {
    border-bottom: 1px solid #f0f0f0;
}

.CategoryList li ul li a {
    padding-left: 60px;
    font-size: 13px;
    color: #666;
    font-weight: 400;
}

.CategoryList li ul li a::before {
    content: '\f0da';
    left: 40px;
    font-size: 12px;
}

.CategoryList li ul li:hover a {
    padding-left: 65px;
}

/* Badge de Contador (opcional) */
.CategoryList li a .category-count {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #e0e0e0;
    color: #666;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 24px;
    text-align: center;
}

.CategoryList li:hover a .category-count {
    background: #c00;
    color: #fff;
}

/* Animação de Entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.CategoryList li {
    animation: fadeInUp 0.3s ease forwards;
}

.CategoryList li:nth-child(1) { animation-delay: 0.05s; }
.CategoryList li:nth-child(2) { animation-delay: 0.1s; }
.CategoryList li:nth-child(3) { animation-delay: 0.15s; }
.CategoryList li:nth-child(4) { animation-delay: 0.2s; }
.CategoryList li:nth-child(5) { animation-delay: 0.25s; }
.CategoryList li:nth-child(6) { animation-delay: 0.3s; }
.CategoryList li:nth-child(7) { animation-delay: 0.35s; }
.CategoryList li:nth-child(8) { animation-delay: 0.4s; }
.CategoryList li:nth-child(9) { animation-delay: 0.45s; }
.CategoryList li:nth-child(10) { animation-delay: 0.5s; }
.CategoryList li:nth-child(11) { animation-delay: 0.55s; }
.CategoryList li:nth-child(12) { animation-delay: 0.6s; }

/* Container sem scroll - altura automática */
.CategoryList .BlockContent {
    max-height: none;
    overflow: visible;
}

/* Ocultar Enquete e Newsletter */
.Block.Enquete,
#Enquete,
.Block.NewsletterSubscription,
#SideNewsletterBox {
    display: none !important;
}

/* Responsivo - Esconder no mobile */
@media screen and (max-width: 768px) {
    .CategoryList.Block {
        display: none;
    }
}

/* Tablet - Ajustes */
@media screen and (max-width: 1024px) and (min-width: 769px) {
    .CategoryList li a {
        font-size: 13px;
        padding: 12px 18px;
        padding-left: 40px;
    }
    
    .CategoryList li a::before {
        left: 18px;
    }
}
