.category-hero-section {
    background: #f5f7fb;
    overflow: hidden;
}

.category-hero-row {
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
    min-width: 0;
    max-width: 100%;
}

.hero-title {
    font-size: clamp(1.5rem, 2.2vw + 0.75rem, 2.75rem);
    font-weight: 700;
    line-height: 1.25;
    word-break: break-word;
    overflow-wrap: anywhere;
    margin-bottom: 0;
}

.hero-title-line {
    display: block;
    color: #0d1b2a;
}

.hero-title-suffix {
    display: block;
    margin-top: 0.35rem;
    color: #198754;
}

.hero-image-wrap {
    position: relative;
    z-index: 1;
    max-width: 100%;
}

.hero-image {
    display: block;
    max-height: 420px;
    object-fit: cover;
}

.hero-description {
    color: #6c757d;
    margin-top: 20px;
    line-height: 1.8;
    word-break: break-word;
}

.category-sidebar .filter-box {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.category-listing-section {
    background: #f5f7fb;
}

.card-img-top {
    height: 220px;
    object-fit: cover;
}

.pagination .page-link {
    border-radius: 10px;
    margin: 0 4px;
}



/* Subcategory Product Listing */
.product-image{
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #f8f9fa;
}

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

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

.product-card{
    transition: all .3s ease;
    overflow: hidden;
}

.product-card .card-body{
    position: relative;
    z-index: 2;
    background: #fff;
}

.product-card .card-body h5{
    word-break: break-word;
    overflow-wrap: anywhere;
}

.product-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,.08)!important;
}

.subcategory-badge{
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,.75);
    color: #fff;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.filter-sidebar{
    top: 100px;
}

.line-clamp-2{
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-details-page .product-sidebar h1,
.product-card .card-body h5{
    line-height: 1.35;
}

.product-details-page .product-sidebar h1{
    font-size: clamp(1.25rem, 2vw + 0.5rem, 1.75rem);
    word-break: break-word;
    overflow-wrap: anywhere;
}

.subcategory-filter-list{
    max-height: 300px;
    overflow-y: auto;
}

.empty-products-state{
    background: #fafafa;
}