/* ==================== FILTERS SIDEBAR ==================== */

.filters-sidebar {
    background: #fff;
    margin: 10px 0;
    /* border-right: 1px solid #e0e0e0;
    padding: 0;
    max-height: 100vh;
    overflow-y: auto;
    position: sticky;
    top: 0; */
}

.mobile-filter-clear {
    border: 0;
    background: transparent;
    color: #2874f0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.filter-count-pill {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #fff;
    color: #212121;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.mobile-filters-offcanvas,
.mobile-sort-offcanvas {
    z-index: 10050;
}

.offcanvas-backdrop.show {
    z-index: 10040;
}

.mobile-filters-offcanvas {
    width: 100vw !important;
    max-width: 100vw;
    height: 100dvh;
    border-radius: 0;
}

.mobile-filters-offcanvas .offcanvas-header,
.mobile-sort-offcanvas .offcanvas-header {
    align-items: flex-start;
    padding: 16px 16px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-filters-offcanvas .offcanvas-body,
.mobile-sort-offcanvas .offcanvas-body {
    padding: 0;
    overflow-y: auto;
}

.mobile-filter-subtitle {
    font-size: 12px;
    color: #878787;
}

.mobile-filters-panel {
    margin: 0;
}

.mobile-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-browse-actions {
    display: flex;
    gap: 10px;
    padding: 8px 12px 12px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-browse-action-btn {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    background: #fff;
    color: #212121;
    font-size: 12px;
    font-weight: 600;
}

.mobile-browse-action-btn small {
    color: #878787;
    font-size: 11px;
    font-weight: 500;
}

.mobile-sort-offcanvas {
    height: auto;
    border-radius: 18px 18px 0 0;
}

.mobile-sort-options {
    padding: 8px 16px 18px;
}

.mobile-sort-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-bottom: 1px solid #f2f2f2;
    padding: 14px 0;
    background: transparent;
    color: #212121;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
}

.mobile-sort-option.active {
    color: #2874f0;
    font-weight: 600;
}

.filters-container {
    padding: 16px;
}

/* Filters Header */
.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 12px;
}

.filters-header h6 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: #212121;
    text-transform: uppercase;
}

.clear-all-btn {
    background: none;
    border: none;
    color: #2874f0;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    text-transform: uppercase;
}

.clear-all-btn:hover {
    text-decoration: underline;
}

/* Active Filters */
.active-filters {
    margin-bottom: 16px;
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f0f0;
    padding: 6px 10px;
    border-radius: 16px;
    font-size: 12px;
    color: #212121;
    cursor: pointer;
    margin-right: 8px;
    margin-bottom: 8px;
}

.badge-icon {
    font-size: 10px;
    color: #878787;
}

.filter-badge:hover {
    background: #e0e0e0;
}

/* Filter Section */
.filter-section {
    border-bottom: 1px solid #f0f0f0;
    padding: 0;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-title {
    font-size: 12px;
    font-weight: 500;
    color: #212121;
    margin: 0 0 0px 0;
    padding: 15px 0;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.filter-title:hover {
    color: #2874f0;
}

.expand-icon,
.expand-icon-down {
    font-size: 10px;
    color: #878787;
    transition: transform 0.2s ease, color 0.2s ease;
}

.filter-title:hover .expand-icon,
.filter-title:hover .expand-icon-down {
    color: #2874f0;
}

.question-icon {
    background: #f0f0f0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    margin-left: 4px;
    cursor: help;
}

.assured-icon {
    margin-right: 4px;
}

/* Filter Options */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.filter-options.scrollable {
    max-height: 200px;
    overflow-y: auto;
}

.filter-option {
    font-size: 13px;
    color: #212121;
    cursor: pointer;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

.filter-option:hover {
    color: #2874f0;
}

.filter-option.active {
    font-weight: 600;
    color: #2874f0;
}

.option-icon {
    font-size: 8px;
    color: #878787;
    transition: transform 0.2s ease;
}

/* Sub Options */
.filter-sub-options {
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.filter-sub-option {
    font-size: 13px;
    color: #878787;
    cursor: pointer;
    padding: 2px 0;
}

.filter-sub-option:hover {
    color: #2874f0;
}

/* Filter Checkboxes */
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #212121;
    cursor: pointer;
    margin: 0;
    user-select: none;
}

.filter-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #2874f0;
}

.filter-checkbox:hover {
    color: #2874f0;
}

/* Filter Search */
.filter-search {
    margin-bottom: 12px;
}

.filter-search input {
    font-size: 13px;
    padding: 6px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
}

.filter-search input:focus {
    border-color: #2874f0;
    box-shadow: none;
}

/* Show More / Clear Buttons */
.show-more-btn,
.clear-btn {
    background: none;
    border: none;
    color: #2874f0;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 0 8px 0;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.show-more-btn:hover,
.clear-btn:hover {
    text-decoration: underline;
}

/* Price Range */
.price-range {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.price-input {
    flex: 1;
    font-size: 13px;
    padding: 6px 5px;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    max-width: 85px;
}

.price-input:focus {
    outline: none;
    border-color: #2874f0;
}

.price-separator {
    font-size: 12px;
    color: #878787;
}

.price-slider {
    margin-top: 8px;
}

.price-slider input[type="range"] {
    width: 100%;
    accent-color: #2874f0;
}

/* Products Main Container */
.products-main {
    background: #ffffff;
    margin: 10px 0;
}

.products-headcontener {
    padding: 0 16px;
    font-size: 12px;
    color: #878787;
}

.products-headcontener p {
    margin: 0 0 10px;
}

.products-headcontener p a {
    color: #2874f0;
    text-decoration: none;
}




.products-container {
    min-height: 100vh;
}

/* Custom Scrollbar for Filters */
.filters-sidebar::-webkit-scrollbar,
.filter-options.scrollable::-webkit-scrollbar {
    width: 6px;
}

.filters-sidebar::-webkit-scrollbar-track,
.filter-options.scrollable::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.filters-sidebar::-webkit-scrollbar-thumb,
.filter-options.scrollable::-webkit-scrollbar-thumb {
    background: #c2c2c2;
    border-radius: 3px;
}

.filters-sidebar::-webkit-scrollbar-thumb:hover,
.filter-options.scrollable::-webkit-scrollbar-thumb:hover {
    background: #878787;
}



/*----------  breadcrumb  ----------*/
.breadcrumb-area {
    padding: 12px 16px;
}

.breadcrumb-area.nospace {
    padding: 0;
}

.breadcrumb-area .breadcrumb-container {
    /* border-bottom: 1px solid #dddddd; */

}

.breadcrumb-area .breadcrumb-container ul {
    margin: 0;
    padding: 0;
}

.breadcrumb-area .breadcrumb-container ul li a {
    color: #878787;
    text-decoration: none;
}

.breadcrumb-area .breadcrumb-container ul li a:hover {
    color: #2874f0;
}


.breadcrumb-area .breadcrumb-container ul li {
    display: inline-block;
    padding-right: 6px;
    position: static;
    font-size: 12px;
    line-height: 25px;
    color: #878787;
}

.breadcrumb-area .breadcrumb-container ul li:last-child:after {
    content: "";
}

.breadcrumb-area .breadcrumb-container ul li.active a {
    color: #2874f0;
}

.breadcrumb-area .breadcrumb-container ul li:not(:last-child)::after {
    content: ">";
    margin-left: 8px;
}

/* *************Tab**************** */
.nav-title {
    line-height: 40px;
    font-size: 14px;
    font-weight: 600;
    padding: 0 15px;
}

.nav-tabs {
    padding-bottom: 1px;
}

.nav-tabs .nav-link {
    border-bottom: 3px solid #ffffff;
    border-top: 0;
    border-right: 0;
    border-left: 0;
    color: #212121;
    font-size: 14px;
}

.nav-tabs .nav-link.active::after {
    content: "";
    border-bottom: 3px solid #2874f0;
}

.nav-tabs .nav-link:focus,
.nav-tabs .nav-link:hover,
.nav-tabs .nav-link.active {
    border-bottom: 3px solid #2874f0;
    border-top: 0;
    border-right: 0;
    border-left: 0;
    color: #2874f0;
}

/* ***************************** */

/* ==================== PRODUCT CARDS ==================== */

.product-card {
    background: #fff;
    border-radius: 2px;
    /* overflow: hidden; */
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .08);
}

.product-card:hover {
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, .16);
    transform: translateY(-2px);
    z-index: 9;
}

/* Product Image Wrapper */
.product-image-wrapper {
    position: relative;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    min-height: 220px;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

/* Wishlist Icon */
.wishlist-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    z-index: 2;
}

.product-card:hover .wishlist-icon {
    opacity: 1;
}

.wishlist-icon svg {
    fill: #878787;
    transition: fill 0.2s ease;
}

.wishlist-icon:hover svg {
    fill: #ff3f6c;
}

/* Product Actions - Add to Compare */
.product-actions {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.product-actions .btn {
    background: #fff;
    border: 1px solid #c2c2c2;
    color: #212121;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 2px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.product-actions .btn:hover {
    border-color: #2874f0;
    color: #2874f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
}

/* Product Info */
.product-info {
    padding: 16px 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 14px;
    color: #212121;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    font-weight: 400;
}

.product-subtitle {
    font-size: 12px;
    color: #878787;
    margin-bottom: 8px;
}

/* Rating Section */
.rating-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    position: relative;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #388e3c;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.rating-value {
    line-height: 1;
}

.star {
    font-size: 10px;
    line-height: 1;
}

.rating-count {
    color: #878787;
    font-size: 12px;
}

.assured-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: #878787;
}

/* Rating Popover */
.rating-popover {
    display: none;
    position: absolute;
    top: calc(100% + 0px);
    left: auto;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 16px;
    min-width: 350px;
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, .2);
    z-index: 1000;
    margin-top: 8px;
}


.rating-badge:hover .rating-popover {
    display: block;
}

.popover-header {
    display: flex;
    align-items: center;
    gap: 12px;
    /* margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0; */
}

.popover-rating {
    font-size: 32px;
    font-weight: 600;
    color: #212121;
    text-align: center;
}

.popover-star {
    font-size: 30px;
    color: #388e3c;
}

.popover-details {
    font-size: 12px;
    color: #878787;
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.rating-stars {
    min-width: 35px;
    color: #878787;
    display: flex;
    align-items: center;
    gap: 2px;
}

.bar-container {
    flex: 1;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(to right, #388e3c, #66bb6a);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.bar-fill.five-star {
    background: linear-gradient(to right, #388e3c, #66bb6a);
}

.bar-fill.four-star {
    background: linear-gradient(to right, #66bb6a, #81c784);
}

.bar-fill.three-star {
    background: linear-gradient(to right, #ffa726, #ffb74d);
}

.bar-fill.two-star {
    background: linear-gradient(to right, #ff9800, #ffa726);
}

.bar-fill.one-star {
    background: linear-gradient(to right, #f44336, #ef5350);
}

.bar-count {
    min-width: 45px;
    text-align: right;
    color: #878787;
}

/* Price Section */
.price-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 18px;
    font-weight: 500;
    color: #212121;
}

.original-price {
    font-size: 14px;
    color: #878787;
    text-decoration: line-through;
}

.discount {
    font-size: 12px;
    color: #388e3c;
    font-weight: 500;
}

/* Bank Offer & Others */
.bank-offer,
.only-few-left,
.free-delivery {
    font-size: 12px;
    font-weight: 500;
    margin-top: auto;
}

.bank-offer {
    color: #388e3c;
}

.only-few-left {
    color: #ff3f6c;
}

.free-delivery {
    color: #388e3c;
}

/* ==================== PAGINATION ==================== */

.pagination-wrapper {
    background: #fff;
    padding: 10px;
    margin-top: 0px;
    border-radius: 2px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    border-top: 1px solid #e0e0e0;
}

.pagination-info {
    font-size: 14px;
    color: #878787;
    font-weight: 400;
}

.pagination-list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-item {
    margin: 0;
}

.page-link {
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #212121;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-item.active .page-link {
    background: #2874f0;
    color: #fff;
    border-color: #2874f0;
}

.page-item:first-child .page-link {
    border-radius: 50%;
}

.page-link:hover:not(.page-item.active .page-link) {
    background: #2874f0;
    border-color: #c2c2c2;
    color: white;
}

.page-item.next-page .page-link {
    border-radius: 2px;
    padding: 8px 20px;
    min-width: auto;
    color: #2874f0;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    min-width: 60px;
}

.page-item.next-page .page-link:hover {
    background: #2874f0;
    color: #fff;
    border-color: #2874f0;
}


/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    aside.col-lg-2.col-md-3 {
        display: none;
    }

    .breadcrumb-area {
        display: none;
    }

    .products-main {
        padding: 0;
    }

    .product-title {
        font-size: 13px;
    }

    .current-price {
        font-size: 16px;
    }

    .product-image {
        height: 180px;
    }

    .rating-popover {
        min-width: 240px;
    }

    .mobile-filters-offcanvas .filters-sidebar {
        display: block;
        min-height: 100%;
        margin: 0;
    }

    .mobile-filters-offcanvas .filters-container {
        padding-bottom: 96px;
    }

    .mobile-browse-actions {
        position: sticky;
        top: 0;
        z-index: 15;
    }

    .nav-tabs {
        overflow-x: auto;
    }
}

@media (max-width: 576px) {
    .product-image-wrapper {
        min-height: 200px;
    }

    .product-image {
        height: 160px;
    }
}
