.modern-product-card{
    background:#fff;
    border:1px solid #ececec;
    border-radius:18px;
    overflow:hidden;
    transition:.3s;
    height:500px;
    display:flex;
    flex-direction:column;
    position:relative;
}

.modern-product-card:hover{
    transform:translateY(-6px);
    box-shadow:0 12px 28px rgba(0,0,0,.12);
}

.home-products { 
    position: relative; 
} 

.product-image{
    height:240px;
    background:#fafafa;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
}

.product-image img{
    max-width:100%;
    max-height:190px;
    object-fit:contain;
    transition:.3s;
}

.modern-product-card:hover .product-image img{
    transform:scale(1.05);
}

.product-body{
    padding:16px;
    display:flex;
    flex-direction:column;
    flex:1;
}

.product-brand{
    font-size:12px;
    color:#888;
    margin-bottom:4px;
}

.product-title{
    height:44px;
    overflow:hidden;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
}

.product-title a{
    color:#222;
    text-decoration:none;
}

.product-price{
    margin:12px 0;
}

.current-price{
    font-size:22px;
    font-weight:700;
    color:#183f68;
}

.old-price{
    margin-left:8px;
    color:#999;
    text-decoration:line-through;
    font-size:14px;
}

.product-actions{
    margin-top:auto;
}

.product-actions .btn{
    border-radius:10px;
    font-weight:600;
    padding:10px;
}

.discount-badge{
    position:absolute;
    top:12px;
    left:12px;
    background:#e53935;
    color:#fff;
    padding:4px 10px;
    border-radius:20px;
    font-size:12px;
    font-weight:700;
}

.wishlist{
    position:absolute;
    top:12px;
    right:12px;
    z-index:5;
}

.wishlist .btn{
    width:38px;
    height:38px;
    border-radius:50%;
    background:#fff;
    box-shadow:0 4px 10px rgba(0,0,0,.12);
}

.offer-circle{
    position:absolute;
    top:12px;
    left:12px;
    width:60px;
    height:60px;
    border-radius:50%;
    background:#e53935;
    color:#fff;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    font-weight:700;
    box-shadow:0 8px 18px rgba(229,57,53,.35);
}

.modern-product-listing {
    background: #f7f9fc;
    min-height: 100vh;
}

.listing-header {
    background: #fff;
    padding: 25px 0 30px;
    border-bottom: 1px solid #edf0f4;
}

.listing-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    font-size: 13px;
    color: #8a94a6;
}

.listing-breadcrumb a {
    color: #183f68;
    text-decoration: none;
    font-weight: 600;
}

.listing-breadcrumb i {
    font-size: 9px;
}

.listing-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.listing-title-row h1 {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 750;
    color: #15283d;
}

.listing-title-row p {
    margin: 0;
    color: #7b8794;
    font-size: 14px;
}

.product-count {
    min-width: 120px;
    padding: 14px 20px;
    background: #f1f6fb;
    border-radius: 14px;
    text-align: center;
}

.product-count strong {
    display: block;
    color: #183f68;
    font-size: 22px;
}

.product-count span {
    color: #7b8794;
    font-size: 12px;
}

.listing-content {
    padding: 30px 0 60px;
}

.filter-sidebar {
    background: #fff;
    border: 1px solid #edf0f4;
    border-radius: 18px;
    padding: 22px;
    position: sticky;
    top: 90px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #edf0f4;
}

.filter-header > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eef5fb;
    color: #183f68;
}

.filter-header h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #182b3d;
}

.filter-header small {
    color: #8a94a6;
    font-size: 11px;
}

.clear-filters {
    color: #e05252;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.clear-filters:hover {
    text-decoration: none;
}

.filter-group {
    padding: 22px 0;
    border-bottom: 1px solid #edf0f4;
}

.filter-group:last-child {
    border-bottom: 0;
}

.filter-group > label {
    display: block;
    margin-bottom: 10px;
    color: #27394d;
    font-size: 13px;
    font-weight: 700;
}

.filter-group-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: #27394d;
    font-size: 13px;
    font-weight: 700;
}

.filter-group-title i {
    font-size: 10px;
    color: #9aa5b1;
}

.filter-search {
    height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    background: #f7f9fc;
    border: 1px solid #edf0f4;
    border-radius: 10px;
}

.filter-search i {
    color: #9aa5b1;
    font-size: 13px;
}

.filter-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 13px;
}

.filter-options {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 4px;
}

.filter-options::-webkit-scrollbar {
    width: 4px;
}

.filter-options::-webkit-scrollbar-thumb {
    background: #d5dce4;
    border-radius: 10px;
}

.filter-options a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 4px;
    color: #657386;
    font-size: 13px;
    text-decoration: none;
    transition: .2s;
}

.filter-options a:hover {
    color: #183f68;
}

.filter-options a.active {
    color: #183f68;
    font-weight: 700;
}

.category-check {
    width: 17px;
    height: 17px;
    border: 1px solid #d8dee6;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.filter-options a.active .category-check {
    background: #183f68;
    border-color: #183f68;
    color: #fff;
    font-size: 9px;
}

.brand-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c7d1dc;
}

.price-inputs {
    display: flex;
    align-items: end;
    gap: 8px;
}

.price-inputs > div:not(.price-divider) {
    flex: 1;
}

.price-inputs span {
    display: block;
    margin-bottom: 5px;
    color: #8a94a6;
    font-size: 10px;
}

.price-inputs input {
    width: 100%;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #e1e6ec;
    border-radius: 8px;
    outline: none;
    font-size: 12px;
}

.price-divider {
    padding-bottom: 12px;
    color: #9aa5b1;
}

.apply-filter-btn {
    width: 100%;
    margin-top: 12px;
    height: 40px;
    border: 0;
    border-radius: 9px;
    background: #183f68;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    transition: .25s;
}

.apply-filter-btn:hover {
    background: #102e4d;
}

.products-area {
    min-width: 0;
}

.products-toolbar {
    min-height: 62px;
    background: #fff;
    border: 1px solid #edf0f4;
    border-radius: 14px;
    padding: 10px 15px;
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.showing-text {
    color: #7b8794;
    font-size: 13px;
}

.showing-text strong {
    color: #27394d;
}

.toolbar-right label {
    margin: 0;
    color: #7b8794;
    font-size: 12px;
}

.product-sort {
    height: 40px;
    min-width: 170px;
    padding: 0 12px;
    border: 1px solid #e2e7ed;
    border-radius: 9px;
    background: #fff;
    color: #27394d;
    outline: none;
    font-size: 12px;
}

.product-grid {
    margin-left: -8px;
    margin-right: -8px;
}

.product-grid > div {
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 16px;
}

.listing-product-wrapper {
    height: 100%;
}

.empty-products {
    background: #fff;
    border-radius: 18px;
    padding: 80px 20px;
    text-align: center;
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef5fb;
    color: #183f68;
    font-size: 30px;
}

.empty-products h3 {
    color: #27394d;
    font-size: 21px;
    font-weight: 700;
}

.empty-products p {
    color: #8a94a6;
    font-size: 13px;
}

.empty-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 11px 22px;
    border-radius: 9px;
    background: #183f68;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.empty-btn:hover {
    color: #fff;
    text-decoration: none;
}

.modern-pagination {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.modern-pagination .pagination {
    gap: 6px;
}

.modern-pagination .page-item {
    margin: 0;
}

.modern-pagination .page-link {
    min-width: 38px;
    height: 38px;
    border: 0;
    border-radius: 9px;
    background: #fff;
    color: #657386;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.modern-pagination .page-item.active .page-link {
    background: #183f68;
    color: #fff;
}

.modern-pagination .page-link:hover {
    background: #eef5fb;
    color: #183f68;
}

.mobile-filter-btn {
    display: none;
    border: 1px solid #e0e6ed;
    background: #fff;
    color: #183f68;
    border-radius: 8px;
    height: 38px;
    padding: 0 13px;
    font-size: 12px;
    font-weight: 600;
}

.mobile-filter-panel {
    margin-bottom: 20px;
}

.mobile-filter-inner {
    background: #fff;
    border: 1px solid #edf0f4;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
}

@media (max-width: 1199px) {
    .listing-title-row h1 {
        font-size: 28px;
    }
}


@media (max-width: 991px) {
    .filter-sidebar {
        display: none;
    }

    .mobile-filter-btn {
        display: inline-flex;
        align-items: center;
        gap: 7px;
    }

    .listing-content {
        padding-top: 20px;
    }
}


@media (max-width: 767px) {
    .listing-header {
        padding: 18px 0 22px;
    }

    .listing-title-row {
        align-items: flex-start;
    }

    .listing-title-row h1 {
        font-size: 23px;
    }

    .listing-title-row p {
        font-size: 12px;
    }

    .product-count {
        min-width: 80px;
        padding: 9px 10px;
    }

    .product-count strong {
        font-size: 18px;
    }

    .products-toolbar {
        align-items: center;
    }

    .toolbar-right label {
        display: none;
    }

    .product-sort {
        min-width: 125px;
        height: 38px;
    }

    .showing-text {
        display: none;
    }
}

@media (max-width: 575px) {
    .listing-breadcrumb {
        margin-bottom: 14px;
    }

    .listing-title-row h1 {
        font-size: 20px;
    }

    .listing-title-row p {
        max-width: 200px;
    }

    .product-count {
        min-width: 70px;
    }

    .product-count span {
        font-size: 10px;
    }

    .product-grid {
        margin-left: -5px;
        margin-right: -5px;
    }

    .product-grid > div {
        padding-left: 5px;
        padding-right: 5px;
        margin-bottom: 10px;
    }

    .products-toolbar {
        padding: 8px 10px;
    }

    .product-sort {
        min-width: 120px;
    }
}
