/* ============================================================
   fox.prod.sidebar.categories.css — Product Categories Sidebar
   ============================================================ */

aside.especialidades {
    background: noe;
    border-radius: 8px;
    padding: 0!important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: auto;
    margin-right: 2%;
    border-top: 0;
}

/* Sidebar Categories Menu */
.categories-sidebar {
    width: 280px;
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
}

.categories-header {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    padding: 15px 20px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.categories-header i {
    font-size: 1.2rem;
}

.categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-item {
    border-bottom: 1px solid #e9ecef;
    position: relative;
}

.category-item:last-child {
    border-bottom: none;
}

.category-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.category-link:hover {
    background-color: #e9ecef;
    color: #2c3e50;
    padding-left: 25px;
}

.category-link.has-submenu:hover {
    background-color: #fff3cd;
    color: #2c3e50;
}

.category-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #6c757d;
}

.category-link:hover .category-icon {
    color: #2c3e50;
}

.category-name {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
}

.category-arrow {
    color: #adb5bd;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.category-link:hover .category-arrow {
    color: #6c757d;
    transform: translateX(3px);
}

/* Submenu Styles */
.category-submenu {
    position: absolute;
    left: 100%;
    top: 0;
    width: 400px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    padding: 20px;
    display: none;
}

.category-submenu { left: calc(100% - 1px); }

/* Desktop - Submenu visível quando pai tem classe 'open' */
@media (min-width: 992px) {
    .category-item.open .category-submenu {
        display: block !important;
    }
    
    .category-item:hover .category-submenu { display: block !important; }
}

.submenu-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.submenu-column h6 {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid #ffd700;
}

.submenu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.submenu-list li {
    margin-bottom: 5px;
}

.submenu-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.85rem;
    display: block;
    padding: 3px 0;
    transition: color 0.2s ease;
}

.submenu-link:hover {
    color: #2c3e50;
    padding-left: 5px;
}

/* Promotional Banner */
.promo-banner {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.promo-content h5 {
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.promo-content .offer-text {
    font-size: 2rem;
    font-weight: 800;
    color: #ffd700;
    margin: 5px 0;
}

.promo-content .offer-desc {
    font-size: 0.85rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.promo-btn {
    background-color: #ffd700;
    color: #2c3e50;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.promo-btn:hover {
    background-color: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
}

.promo-devices {
    position: absolute;
    right: -20px;
    bottom: -10px;
    opacity: 0.2;
    transform: rotate(-10deg);
}

/* Responsive */
@media (max-width: 991px) {
    
    aside.especialidades{
        width: 94%!important;
    }
    
    .categories-sidebar {
        width: 100%;
        margin-bottom: 20px;
    }

    .category-submenu {
        position: static;
        width: 100%;
        border: none;
        border-radius: 0;
        box-shadow: none;
        border-top: 1px solid #e9ecef;
        margin-top: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
        display: block;
    }

    .category-item.active .category-submenu {
        max-height: 400px;
        padding: 15px 20px;
    }

    .category-item.open .category-submenu {
        max-height: 400px;
        padding: 15px 20px;
    }

    .submenu-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .category-arrow {
        transition: transform 0.3s ease;
    }

    .category-item.active .category-arrow,
    .category-item.open .category-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 576px) {
    .categories-sidebar {
        width: 100%;
    }

    .categories-header {
        padding: 12px 15px;
        font-size: 1rem;
    }

    .category-link {
        padding: 10px 15px;
    }

    .category-link:hover {
        padding-left: 20px;
    }

    .promo-banner {
        padding: 15px;
    }

    .promo-content .offer-text {
        font-size: 1.5rem;
    }
}