/* ===================================================== */
/* 🔥 CATEGORY MODULE CSS */
/* 🔥 FILE #15 CLEAN FIX */
/* ===================================================== */

*{
box-sizing:border-box;
margin:0;
padding:0;
}

.category-layout{
display:grid;
grid-template-columns:280px 1fr;
gap:24px;
max-width:1400px;
margin:0 auto;
padding:24px;
}

.category-sidebar{
background:#fff;
border:1px solid #e5e5e5;
border-radius:16px;
padding:20px;
height:fit-content;
position:sticky;
top:20px;
}

.sidebar-title{
font-size:22px;
font-weight:700;
margin-bottom:20px;
color:#111;
}

.category-bar,
.category-bar-wrap{
width:100%;
}

.category-node{
display:block;
width:100%;
margin-bottom:10px;
}

.category-item{
display:inline-flex;
align-items:center;
gap:8px;
padding:10px 16px;
background:#f5f5f5;
border-radius:999px;
text-decoration:none;
color:#111;
transition:.25s;
margin-bottom:4px;
font-weight:600;
}

.category-item:hover{
background:#ffcc00;
color:#111;
}

.category-children{
margin-left:25px;
margin-top:6px;
padding-left:12px;
border-left:2px solid #e5e5e5;
}

.category-content{
min-width:0;
width:100%;
}

.product-list{
width:100%;
}

.category-empty,
.category-loading{
width:100%;
padding:40px;
text-align:center;
color:#777;
font-weight:600;
}

@media(max-width:1024px){

.category-layout{
grid-template-columns:220px 1fr;
}

}

@media(max-width:768px){

.category-layout{
display:block;
padding:12px;
}

.category-sidebar{
display:none;
}

.category-content{
width:100%;
}

.category-children{
margin-left:15px;
}

}