/* ==========================================
   BHAV HOME DECOR - CATEGORY PAGE
========================================== */

.category-breadcrumb {
    padding: 18px 0;
    background: #fff;
    border-bottom: 1px solid #eeeeee;
    font-size: 13px;
}

.category-breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.category-breadcrumb a {
    color: #777;
    text-decoration: none;
}

.category-breadcrumb a:hover {
    color: #0756b5;
}

.category-breadcrumb i {
    font-size: 10px;
    color: #aaa;
}

.category-breadcrumb span {
    color: #0756b5;
    font-weight: 600;
}

/* CATEGORY HERO */

.category-hero {
    min-height: 440px;
    display: flex;
    align-items: center;
    background-color: #063777;
    background-position: center;
    background-size: cover;
    padding: 60px 0;
    color: #fff;
}

.category-hero-content {
    max-width: 600px;
}

.category-eyebrow,
.section-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.category-eyebrow {
    color: #c4e4ff;
}

.category-hero h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.15;
    font-weight: 600;
    margin-bottom: 18px;
}

.category-hero p {
    max-width: 500px;
    color: #f0f5fb;
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 26px;
}

.category-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    color: #0756b5;
    padding: 14px 23px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: 0.25s ease;
}

.category-hero-btn:hover {
    background: #dceeff;
    color: #063777;
    transform: translateY(-2px);
}

/* SUBCATEGORY SECTION */

.subcategory-section {
    padding: 35px 0;
    border-bottom: 1px solid #eeeeee;
    background: #fff;
}

.subcategory-heading {
    margin-bottom: 20px;
}

.section-eyebrow {
    color: #0756b5;
    margin-bottom: 8px;
}

.subcategory-heading h2,
.category-intro h2 {
    font-family: "Playfair Display", serif;
    font-size: 30px;
    font-weight: 600;
    margin: 0;
    color: #202020;
}

.subcategory-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.subcategory-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e7ed;
    border-radius: 30px;
    padding: 11px 19px;
    font-size: 13px;
    color: #444;
    text-decoration: none;
    background: #fff;
    transition: 0.25s ease;
}

.subcategory-chip:hover,
.subcategory-chip.active {
    background: #0756b5;
    border-color: #0756b5;
    color: #fff;
}

/* PRODUCT SECTION */

.category-products-section {
    padding: 65px 0 85px;
    background: #f9fafc;
}

.category-intro {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 35px;
}

.category-intro p {
    color: #777;
    font-size: 14px;
    margin: 12px 0 0;
    line-height: 1.8;
}

/* LISTING LAYOUT */

.category-listing-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

/* FILTER SIDEBAR */

.category-filter-sidebar {
    background: #fff;
    border: 1px solid #ebedf0;
    padding: 24px;
    border-radius: 8px;
}

.filter-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eeeeee;
}

.filter-heading h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
}

.filter-heading h3 i {
    color: #0756b5;
    margin-right: 7px;
}

.filter-heading > a {
    font-size: 12px;
    color: #0756b5;
    text-decoration: none;
}

.filter-group {
    padding: 23px 0;
    border-bottom: 1px solid #eeeeee;
}

.filter-group h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 17px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
}

.filter-option:last-child {
    margin-bottom: 0;
}

.filter-option input {
    accent-color: #0756b5;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.price-inputs input {
    width: 100%;
    min-width: 0;
    border: 1px solid #e0e3e8;
    padding: 11px 8px;
    border-radius: 4px;
    outline: none;
    font-size: 12px;
}

.price-inputs input:focus {
    border-color: #0756b5;
}

.apply-filter-btn {
    width: 100%;
    background: #0756b5;
    color: #fff;
    border: none;
    padding: 13px;
    margin-top: 22px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    transition: 0.25s ease;
}

.apply-filter-btn:hover {
    background: #063777;
}

/* TOOLBAR */

.product-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 17px 20px;
    background: #fff;
    border: 1px solid #ebedf0;
    border-radius: 7px;
    margin-bottom: 22px;
}

.product-count {
    color: #777;
    font-size: 13px;
}

.product-count strong {
    color: #222;
}

.product-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.sort-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-form label {
    color: #777;
    font-size: 12px;
    white-space: nowrap;
}

.sort-form select {
    max-width: 190px;
    padding: 10px 12px;
    border: 1px solid #e2e5e9;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 12px;
    outline: none;
}

.mobile-filter-btn {
    display: none;
    background: #fff;
    border: 1px solid #dce1e7;
    padding: 10px 13px;
    border-radius: 4px;
    font-size: 12px;
}

/* PRODUCT GRID */

.category-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.category-product-card {
    min-width: 0;
    background: #fff;
    border: 1px solid #eceef1;
    border-radius: 7px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(20, 45, 80, 0.09);
}

.category-product-image {
    position: relative;
    background: #f1f3f5;
    overflow: hidden;
    aspect-ratio: 4 / 4.5;
}

.category-product-image > a {
    display: block;
    width: 100%;
    height: 100%;
}

.category-product-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-product-card:hover .category-product-image img {
    transform: scale(1.06);
}

.product-badge,
.discount-badge {
    position: absolute;
    left: 12px;
    z-index: 2;
    padding: 7px 9px;
    font-size: 9px;
    letter-spacing: 0.6px;
    font-weight: 700;
    border-radius: 2px;
}

.product-badge {
    top: 12px;
    background: #fff;
    color: #0756b5;
}

.discount-badge {
    top: 42px;
    background: #eaf4ff;
    color: #0756b5;
}

.product-wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    transition: 0.25s ease;
}

.product-wishlist-btn:hover,
.product-wishlist-btn.active {
    background: #0756b5;
    color: #fff;
}

.category-product-info {
    padding: 19px 17px 20px;
}

.product-category-name {
    display: block;
    color: #888;
    font-size: 11px;
    margin-bottom: 9px;
}

.category-product-info h3 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    margin: 0 0 10px;
    min-height: 44px;
}

.category-product-info h3 a {
    color: #242424;
    text-decoration: none;
}

.category-product-info h3 a:hover {
    color: #0756b5;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 13px;
    color: #555;
    font-size: 12px;
}

.product-rating i {
    color: #e5a300;
    font-size: 11px;
}

.review-count {
    color: #999;
}

.category-product-price {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-bottom: 17px;
}

.current-price {
    font-size: 17px;
    font-weight: 700;
    color: #0756b5;
}

.old-price {
    color: #999;
    font-size: 12px;
    text-decoration: line-through;
}

.view-product-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    padding: 12px;
    border: 1px solid #0756b5;
    color: #0756b5;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    transition: 0.25s ease;
}

.view-product-btn:hover {
    color: #fff;
    background: #0756b5;
}

/* PAGINATION */

.category-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 42px;
}

.category-pagination a {
    width: 39px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e1e5ea;
    background: #fff;
    color: #444;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    transition: 0.2s ease;
}

.category-pagination a:hover,
.category-pagination a.active {
    background: #0756b5;
    color: #fff;
    border-color: #0756b5;
}

/* EMPTY STATE */

.category-empty-state {
    text-align: center;
    background: #fff;
    border: 1px solid #eceef1;
    border-radius: 8px;
    padding: 70px 25px;
}

.empty-state-icon {
    width: 75px;
    height: 75px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #edf5ff;
    color: #0756b5;
    border-radius: 50%;
    font-size: 30px;
}

.category-empty-state h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.category-empty-state p {
    max-width: 450px;
    margin: 0 auto 22px;
    color: #777;
    font-size: 14px;
    line-height: 1.8;
}

.category-empty-state > a {
    display: inline-block;
    padding: 12px 20px;
    background: #0756b5;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
}

/* RESPONSIVE */

@media (max-width: 1199px) {
    .category-listing-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 22px;
    }

    .category-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 767px) {
    .category-hero {
        min-height: 300px;
        padding: 45px 0;
        background-position: center;
    }

    .category-hero h1 {
        font-size: 36px;
    }

    .category-hero p {
        font-size: 13px;
        line-height: 1.8;
    }

    .subcategory-section {
        padding: 28px 0;
    }

    .subcategory-heading h2,
    .category-intro h2 {
        font-size: 25px;
    }

    .subcategory-list {
        gap: 9px;
    }

    .subcategory-chip {
        padding: 9px 13px;
        font-size: 11px;
    }

    .category-products-section {
        padding: 42px 0 60px;
    }

    .category-listing-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .category-filter-sidebar {
        display: none;
        order: 1;
    }

    .category-filter-sidebar.show {
        display: block;
    }

    .mobile-filter-btn {
        display: inline-flex;
        align-items: center;
        gap: 7px;
    }

    .product-toolbar {
        padding: 14px;
    }

    .product-toolbar-actions {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .sort-form {
        gap: 6px;
    }

    .sort-form label {
        display: none;
    }

    .sort-form select {
        max-width: 175px;
        font-size: 11px;
        padding: 9px 7px;
    }

    .category-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .category-product-info {
        padding: 13px 11px 14px;
    }

    .category-product-info h3 {
        font-size: 12px;
        min-height: 39px;
    }

    .current-price {
        font-size: 15px;
    }

    .old-price {
        font-size: 11px;
    }

    .product-badge,
    .discount-badge {
        left: 7px;
        padding: 6px;
        font-size: 8px;
    }

    .product-wishlist-btn {
        width: 30px;
        height: 30px;
        top: 7px;
        right: 7px;
        font-size: 14px;
    }

    .view-product-btn {
        padding: 10px 6px;
        font-size: 11px;
    }
}

@media (max-width: 380px) {
    .category-product-grid {
        gap: 9px;
    }

    .category-product-info {
        padding: 11px 9px;
    }

    .category-product-info h3 {
        font-size: 11px;
    }

    .category-product-price {
        gap: 5px;
    }

    .current-price {
        font-size: 14px;
    }
}
