.category-hero{

    position: relative;

    height: 320px;

    background-image: url('/static/media/images/category-banner.jpg');

    background-size: cover;

    background-position: center;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    overflow: hidden;
}


.overlay{

    position: absolute;

    inset: 0;

    background: rgba(0,0,0,0.45);
}


.hero-content{

    position: relative;

    z-index: 2;

    color: white;
}


.hero-content h1{

    font-size: 52px;

    font-weight: 700;

    margin-bottom: 15px;
}


.hero-content p{

    font-size: 18px;

    opacity: 0.95;
}



/* PAGE */

.category-page{

    background-color: #1E1E1E;

    padding: 50px 20px;
}


.category-container{

    max-width: 1400px;

    margin: auto;
}


.category-layout{

    display: grid;

    grid-template-columns: 280px 1fr;

    gap: 30px;
}



/* SIDEBAR */

.category-sidebar{

    display: flex;

    flex-direction: column;

    gap: 25px;
}


.sidebar-card{

    background-color: white;

    border-radius: 18px;

    padding: 25px;

    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}


.sidebar-card h3{

    color: #02407F;

    margin-bottom: 20px;

    font-size: 22px;

    font-weight: 700;
}


.subcategory-list{

    display: flex;

    flex-direction: column;

    gap: 12px;
}


.subcategory-item{

    text-decoration: none;

    color: #333;

    padding: 12px 14px;

    border-radius: 12px;

    transition: 0.3s ease;

    background-color: #F8F9FC;
}


.subcategory-item:hover{

    background-color: #02407F;

    color: white;
}


.sidebar-text{

    color: #666;

    margin-bottom: 14px;

    line-height: 1.6;
}



/* PRODUCTS */

.products-section{

    min-width: 0;
}


.products-header{

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 30px;
}


.products-header h2{

    color: #02407F;

    font-size: 32px;

    font-weight: 700;

    margin-bottom: 8px;
}


.products-header span{

    color: #666;
}


.sort-box select{

    height: 50px;

    border-radius: 12px;

    border: 1px solid #D9DDE5;

    padding: 0 16px;

    background-color: white;
}



/* GRID */

.products-grid{

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));

    gap: 25px;
}



/* CARD */

.product-card{

    background-color: white;

    border-radius: 20px;

    overflow: hidden;

    transition: 0.3s ease;

    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}


.product-card:hover{

    transform: translateY(-6px);
}


.product-image{
    display: block;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f7f7f7;
}

.product-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s ease;
}

.product-card:hover .product-image img{
    transform: scale(1.05);
}


.product-content{

    padding: 22px;
}


.product-category{

    display: inline-block;

    margin-bottom: 10px;

    font-size: 13px;

    color: #B85A17;

    font-weight: 600;
}


.product-title{

    font-size: 19px;

    color: #1E1E1E;

    margin-bottom: 16px;

    line-height: 1.4;

    min-height: 52px;
}


.product-price{

    font-size: 24px;

    font-weight: 700;

    color: #02407F;

    margin-bottom: 22px;
}


.product-actions{

    display: flex;

    align-items: center;

    gap: 12px;
}


.details-btn{

    flex: 1;

    height: 50px;

    border-radius: 12px;

    background-color: #02407F;

    color: white;

    text-decoration: none;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 600;

    transition: 0.3s ease;
}


.details-btn:hover{

    background-color: #0353A4;
}


.cart-btn{

    width: 50px;

    height: 50px;

    border-radius: 12px;

    background-color: #F0D79F;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #1E1E1E;

    transition: 0.3s ease;
}


.cart-btn:hover{

    background-color: #B85A17;

    color: white;
}



/* EMPTY */

.empty-products{

    background-color: white;

    padding: 50px;

    border-radius: 20px;

    text-align: center;

    grid-column: 1 / -1;
}


.empty-products h3{

    color: #02407F;

    margin-bottom: 12px;
}


.empty-products p{

    color: #666;
}



/* MOBILE */

@media(max-width:992px){

    .category-layout{

        grid-template-columns: 1fr;
    }

    .category-sidebar{

        order: 2;
    }
}


@media(max-width:768px){

    .hero-content h1{

        font-size: 38px;
    }

    .products-header{

        flex-direction: column;

        align-items: flex-start;

        gap: 20px;
    }

    .products-grid{

        grid-template-columns: 1fr;
    }
}