/* ==========================================
   REBOOTHUB CATEGORY PAGE
========================================== */

.category-page{
    background:#f5f5f7;
    padding:40px 0 60px;
    min-height:100vh;
}

/* Container */

.category-container{
    display:grid;
    grid-template-columns:280px 1fr;
    gap:30px;
}

/* ==========================================
   Breadcrumb
========================================== */

.category-breadcrumb{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:20px;
    font-size:14px;
}

.category-breadcrumb a{
    color:#666;
    text-decoration:none;
}

.category-breadcrumb a:hover{
    color:#D10024;
}

.category-breadcrumb span{
    color:#222;
}

/* ==========================================
   Header
========================================== */

.category-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
    flex-wrap:wrap;
    gap:15px;
}

.category-title h1{
    margin:0;
    font-size:34px;
    font-weight:700;
    color:#111;
}

.category-title p{
    margin-top:6px;
    color:#777;
    font-size:15px;
}

/* Sort */

.sort-box select{
    width:220px;
    height:46px;
    border:1px solid #ddd;
    border-radius:8px;
    padding:0 15px;
    background:#fff;
    outline:none;
}

/* ==========================================
   Sidebar
========================================== */

.category-sidebar{
    background:#fff;
    border-radius:14px;
    padding:25px;
    border:1px solid #ececec;
    position:sticky;
    top:20px;
    height:fit-content;
}

.category-sidebar h4{
    margin:0 0 18px;
    font-size:20px;
    font-weight:700;
}

.category-sidebar h5{
    margin:25px 0 15px;
    font-size:16px;
    font-weight:600;
}

.category-sidebar ul{
    list-style:none;
    padding:0;
    margin:0;
}

.category-sidebar li{
    margin-bottom:10px;
}

.category-sidebar a{
    display:flex;
    justify-content:space-between;
    align-items:center;
    text-decoration:none;
    color:#444;
    transition:.3s;
}

.category-sidebar a:hover{
    color:#D10024;
    padding-left:6px;
}

/* ==========================================
   Product Grid
========================================== */

.product-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(270px,1fr));
    gap:25px;
}

/* Empty */

.no-products{
    background:#fff;
    border-radius:14px;
    padding:80px 20px;
    text-align:center;
    border:1px solid #eee;
}

.no-products h3{
    margin:0;
    color:#555;
}
/* ==========================================
   PRODUCT CARD
========================================== */

.product-card{
    background:#fff;
    border-radius:14px;
    overflow:hidden;
    border:1px solid #ececec;
    transition:.35s;
    display:flex;
    flex-direction:column;
    position:relative;
    box-shadow:0 3px 12px rgba(0,0,0,.05);
}

.product-card:hover{
    transform:translateY(-8px);
    box-shadow:0 18px 40px rgba(0,0,0,.12);
}

/* Image */

.product-image{
    position:relative;
    height:260px;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    padding:20px;
    border-bottom:1px solid #f2f2f2;
}

.product-image img{
    width:100%;
    height:100%;
    object-fit:contain;
    transition:.35s;
}

.product-card:hover .product-image img{
    transform:scale(1.08);
}

/* Badge */

.discount{
    position:absolute;
    top:15px;
    left:15px;
    background:#D10024;
    color:#fff;
    font-size:12px;
    font-weight:700;
    padding:5px 12px;
    border-radius:30px;
    z-index:5;
}

/* Wishlist */

.wishlist-btn{
    position:absolute;
    top:15px;
    right:15px;
    width:40px;
    height:40px;
    border:none;
    border-radius:50%;
    background:#fff;
    box-shadow:0 3px 10px rgba(0,0,0,.12);
    cursor:pointer;
    transition:.3s;
    z-index:5;
}

.wishlist-btn:hover{
    background:#D10024;
    color:#fff;
}

/* Body */

.product-body{
    padding:18px;
    display:flex;
    flex-direction:column;
    flex:1;
}

/* Name */

.product-name{
    font-size:17px;
    font-weight:600;
    color:#222;
    text-decoration:none;
    line-height:1.5;
    height:52px;
    overflow:hidden;
    margin-bottom:10px;
}

.product-name:hover{
    color:#D10024;
}

/* Rating */

.rating{
    display:flex;
    align-items:center;
    gap:2px;
    color:#FFB400;
    font-size:14px;
    margin-bottom:12px;
}

.rating small{
    color:#777;
    margin-left:8px;
}

/* Price */

.price{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:18px;
}

.sale-price{
    color:#D10024;
    font-size:24px;
    font-weight:700;
}

.mrp{
    color:#999;
    font-size:15px;
    text-decoration:line-through;
}

/* Buttons */

.product-actions{
    margin-top:auto;
    display:flex;
    gap:10px;
}

.btn-cart{
    flex:1;
    height:46px;
    border:none;
    border-radius:8px;
    background:#D10024;
    color:#fff;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
}

.btn-cart:hover{
    background:#111;
}

.btn-wishlist{
    width:46px;
    height:46px;
    border:none;
    border-radius:8px;
    background:#f4f4f4;
    cursor:pointer;
    transition:.3s;
}

.btn-wishlist:hover{
    background:#D10024;
    color:#fff;
}

/* Quick View */

.quick-view{
    position:absolute;
    left:50%;
    bottom:-60px;
    transform:translateX(-50%);
    background:#111;
    color:#fff;
    padding:10px 20px;
    border-radius:30px;
    text-decoration:none;
    transition:.35s;
    white-space:nowrap;
}

.product-card:hover .quick-view{
    bottom:15px;
}
/* ==========================================
   PAGINATION
========================================== */

.pagination{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    margin-top:40px;
}

.pagination a,
.pagination span{
    width:45px;
    height:45px;
    display:flex;
    justify-content:center;
    align-items:center;
    border-radius:10px;
    background:#fff;
    color:#333;
    text-decoration:none;
    border:1px solid #e5e5e5;
    transition:.3s;
    font-weight:600;
}

.pagination a:hover,
.pagination .active{
    background:#D10024;
    color:#fff;
    border-color:#D10024;
}

/* ==========================================
   TOOLBAR
========================================== */

.category-toolbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
    gap:20px;
    flex-wrap:wrap;
}

.toolbar-left{
    display:flex;
    align-items:center;
    gap:15px;
}

.toolbar-right{
    display:flex;
    align-items:center;
    gap:10px;
}

.toolbar-btn{
    width:42px;
    height:42px;
    border:1px solid #ddd;
    border-radius:8px;
    background:#fff;
    cursor:pointer;
    transition:.3s;
}

.toolbar-btn:hover,
.toolbar-btn.active{
    background:#D10024;
    color:#fff;
    border-color:#D10024;
}

/* ==========================================
   FILTER CHECKBOX
========================================== */

.filter-item{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:12px;
}

.filter-item input{
    width:18px;
    height:18px;
    accent-color:#D10024;
}

/* ==========================================
   PRICE RANGE
========================================== */

.price-range{
    margin-top:15px;
}

.price-range input{
    width:100%;
}

/* ==========================================
   LOADING
========================================== */

.skeleton{
    background:linear-gradient(
        90deg,
        #f0f0f0 25%,
        #f8f8f8 37%,
        #f0f0f0 63%
    );
    background-size:400% 100%;
    animation:skeleton 1.3s infinite;
}

@keyframes skeleton{

0%{
background-position:100% 0;
}

100%{
background-position:-100% 0;
}

}

/* ==========================================
   SCROLLBAR
========================================== */

::-webkit-scrollbar{
    width:8px;
}

::-webkit-scrollbar-thumb{
    background:#D10024;
    border-radius:30px;
}

/* ==========================================
   TABLET
========================================== */

@media(max-width:1200px){

.category-container{
grid-template-columns:240px 1fr;
}

.product-grid{
grid-template-columns:repeat(3,1fr);
}

}

/* ==========================================
   MOBILE
========================================== */

@media(max-width:992px){

.category-container{
grid-template-columns:1fr;
}

.category-sidebar{
position:relative;
top:0;
}

.product-grid{
grid-template-columns:repeat(2,1fr);
}

.category-toolbar{
flex-direction:column;
align-items:flex-start;
}

}

/* ==========================================
   SMALL MOBILE
========================================== */

@media(max-width:576px){

.category-page{
padding:20px 0;
}

.category-header{
flex-direction:column;
align-items:flex-start;
}

.category-title h1{
font-size:26px;
}

.product-grid{
grid-template-columns:1fr;
}

.product-image{
height:220px;
}

.product-actions{
flex-direction:column;
}

.btn-cart,
.btn-wishlist{
width:100%;
}

.quick-view{
display:none;
}

}
