/* ==========================================================
   SmartShop - All Categories Page
   ========================================================== */

.categories-page{
    padding:30px 0 30px;
    background:#f8f9fc;
    min-height:500px;
}

.categories-page .page-title{
    margin:0;
    text-align:center;
    font-size:38px;
    font-weight:800;
    color:#0f1b46;
}

.categories-page .page-description{
    max-width:700px;
    margin:0 auto 20px;
    text-align:center;
    color:#6b7280;
    font-size:16px;
    line-height:1.8;
}

/* ==========================================================
   Grid
   ========================================================== */

.all-categories-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 10px;
}

/* ==========================================================
   Card
   ========================================================== */

.all-category-card{
    background:#fff;
    border:1px solid #edf0f5;
    border-radius:18px;
    padding:20px;
    transition:.25s;
    box-shadow:0 8px 24px rgba(15,27,70,.05);
}

.all-category-card:hover{
    transform:translateY(-6px);
    box-shadow:0 16px 40px rgba(15,27,70,.10);
}

/* ==========================================================
   Header
   ========================================================== */

.all-category-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:18px;
    padding-bottom:16px;
    border-bottom:1px solid #edf0f5;
}

.all-category-info{
    display:flex;
    align-items:center;
    gap:14px;
    flex:1;
    min-width:0;
}

.all-category-icon{
    width:54px;
    height:54px;
    border-radius:14px;
    object-fit:cover;
    border:1px solid #edf0f5;
    background:#fff;
    flex-shrink:0;
}

.all-category-title{
    margin:0;
    padding:0;
    border:none;
    font-size:18px;
    line-height:1.4;
    font-weight:700;
}

.all-category-title a{
    color:#0f1b46;
    text-decoration:none;
    transition:.2s;
}

.all-category-title a:hover{
    color:#f6a800;
}

.all-category-count{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    min-width:72px;
    padding:3px 6px;
    border-radius:12px;
    background:#f8f9fc;
    border:1px solid #edf0f5;
    font-weight:700;
    color:#0f1b46;
    font-size:20px;
}

.all-category-count span{
    margin-top:3px;
    font-size:12px;
    color:#6b7280;
    font-weight:600;
}

/* ==========================================================
   Sub Categories
   ========================================================== */

.all-subcategory-list{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.all-subcategory-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:8px 14px;
    background:#f5f7fb;
    border:1px solid #edf0f5;
    border-radius:40px;
    color:#374151;
    text-decoration:none;
    font-size:13px;
    font-weight:600;
    transition:.2s;
}

.all-subcategory-link:hover{
    background:#0f1b46;
    border-color:#0f1b46;
    color:#fff;
}

.all-empty-subcategories{
    color:#9ca3af;
    font-size:14px;
    font-style:italic;
}

/* ==========================================================
   Empty Message
   ========================================================== */

.empty-message{
    background:#fff;
    padding:60px;
    border-radius:16px;
    text-align:center;
    font-size:18px;
    color:#666;
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width:1200px){

    .all-categories-grid{
        grid-template-columns:repeat(3,1fr);
    }

}

@media (max-width:992px){

    .all-categories-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

@media (max-width:768px){

    .categories-page{
        padding:40px 0 60px;
    }

    .categories-page .page-title{
        font-size:28px;
    }

    .all-category-card{
        padding:18px;
    }

}

@media (max-width:576px){

    .all-categories-grid{
        grid-template-columns:1fr;
    }

    .all-category-header{
        align-items:flex-start;
    }

    .all-category-icon{
        width:46px;
        height:46px;
    }

    .all-category-title{
        font-size:16px;
    }

    .all-category-count{
        min-width:60px;
        font-size:16px;
        padding:8px;
    }

}