/* ==========================================================================
   FreshMart Frontend - All Categories Directory Stylesheet
   Location: public/frontend/assets/css/all-categories.css
   ========================================================================== */

/* Interactive Category Explorer Styles */
.cat-explorer-hero {
    background: linear-gradient(135deg, #09090b 0%, #1e293b 100%);
    color: #ffffff;
    padding: 40px 0;
    position: relative;
}

.main-cat-nav-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 10px;
    text-decoration: none !important;
}

.main-cat-nav-item:hover {
    background: #f8fafc;
    border-color: #00a884;
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.main-cat-nav-item.active {
    background: #f0fdf4;
    border-color: #00a884;
    border-left: 5px solid #00a884;
    box-shadow: 0 4px 18px rgba(0, 168, 132, 0.12);
    transform: translateX(6px);
}

.main-cat-nav-item.active .main-cat-title {
    color: #00a884 !important;
    font-weight: 700;
}

.sub-cat-showcase-panel {
    display: none;
    animation: fadeInPane 0.25s ease forwards;
}

.sub-cat-showcase-panel.active {
    display: block;
}

@keyframes fadeInPane {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sub Category Cards */
.sub-cat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none !important;
}

.sub-cat-card:hover {
    background: #f8fafc;
    border-color: #00a884;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.sub-sub-pill {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.15s ease;
}

.sub-sub-pill:hover {
    background: #00a884;
    color: #ffffff;
    border-color: #00a884;
}

