/* ===== BREADCRUMB ===== */
.page-breadcrumb {
    background: #f8f9fa;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}
.page-breadcrumb .breadcrumb {
    margin: 0;
    font-size: 0.8rem;
}
.page-breadcrumb .breadcrumb-item a {
    color: #888;
    text-decoration: none;
}
.page-breadcrumb .breadcrumb-item a:hover {
    color: var(--primary);
}
.page-breadcrumb .breadcrumb-item.active {
    color: var(--dark);
    font-weight: 600;
}

/* ===== CATEGORY HERO ===== */
.category-hero {
    padding: 30px 0;
    background: linear-gradient(135deg, #fffbf5 0%, #fff5eb 100%);
}
.category-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.category-hero-content h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}
.category-hero-content p {
    font-size: 0.88rem;
    color: var(--text-muted);
    max-width: 500px;
    line-height: 1.6;
    margin-bottom: 12px;
}
.category-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: #fff5f5;
    padding: 5px 14px;
    border-radius: 20px;
}
.category-hero-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 4px solid #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.category-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== SUB CATEGORIES STRIP ===== */
.sub-categories-strip {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    padding: 14px 0;
    position: sticky;
    top: 60px;
    z-index: 100;
}
.sub-cat-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.sub-cat-scroll::-webkit-scrollbar { display: none; }
.sub-cat-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #555;
    background: #f5f5f7;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s;
    border: 1.5px solid transparent;
}
.sub-cat-chip:hover {
    color: var(--primary);
    background: #fff5f5;
    border-color: var(--primary-light);
}
.sub-cat-chip.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ===== PRODUCTS SECTION ===== */
.products-section {
    padding: 30px 0 60px;
}

/* Filters Sidebar */
.filters-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    padding: 24px;
    position: sticky;
    top: 120px;
}
.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}
.filters-header h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    color: var(--dark);
}
.filter-clear {
    font-size: 0.72rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.filter-clear:hover { text-decoration: underline; }
.filter-group {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f8f8f8;
}
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}
.price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.price-input {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid #e8e8e8;
    border-radius: 8px;
    font-size: 0.78rem;
    outline: none;
    transition: border-color 0.2s;
}
.price-input:focus { border-color: var(--primary); }
.price-inputs span { color: #ccc; font-size: 0.8rem; }
.price-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.price-tag {
    padding: 5px 10px;
    border-radius: 6px;
    background: #f5f5f7;
    font-size: 0.7rem;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}
.price-tag:hover {
    background: #fff5f5;
    color: var(--primary);
}
.filter-checks {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.filter-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #555;
    cursor: pointer;
    transition: color 0.2s;
}
.filter-check:hover { color: var(--primary); }
.filter-check input {
    accent-color: var(--primary);
    width: 15px;
    height: 15px;
}
.filter-check small {
    margin-left: auto;
    color: #bbb;
    font-size: 0.7rem;
}
.rating-stars {
    display: inline-flex;
    gap: 1px;
}
.rating-stars i {
    font-size: 0.72rem;
    color: #ffc107;
}
.rating-stars i.bi-star { color: #ddd; }

/* ===== PRODUCTS TOOLBAR ===== */
.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 14px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}
.toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.toolbar-results {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.toolbar-results strong { color: var(--dark); }
.btn-filter-mobile {
    padding: 7px 14px;
    border-radius: 8px;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    color: #555;
}
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.toolbar-sort {
    padding: 8px 14px;
    border: 1.5px solid #e8e8e8;
    border-radius: 8px;
    font-size: 0.78rem;
    color: #555;
    outline: none;
    cursor: pointer;
    background: #fff;
}
.toolbar-sort:focus { border-color: var(--primary); }
.toolbar-view {
    display: flex;
    gap: 4px;
}
.view-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1.5px solid #e8e8e8;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #999;
    cursor: pointer;
    transition: all 0.2s;
}
.view-btn.active,
.view-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ===== PAGINATION ===== */
.products-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}
.products-pagination .pagination {
    gap: 6px;
}
.products-pagination .page-link {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1.5px solid #e8e8e8;
    font-size: 0.82rem;
    font-weight: 600;
    color: #555;
    transition: all 0.2s;
    padding: 0;
}
.products-pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(229,57,53,0.25);
}
.products-pagination .page-link:hover {
    background: #fff5f5;
    border-color: var(--primary-light);
    color: var(--primary);
}
.products-pagination .page-item.disabled .page-link {
    color: #ccc;
    background: #f9f9f9;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .category-hero-img { display: none; }
    .category-hero-content h1 { font-size: 1.5rem; }
    .row > [style*="flex: 0 0 20%"] {
        flex: 0 0 33.333% !important;
        max-width: 33.333% !important;
    }
}
@media (max-width: 767px) {
    .products-toolbar { flex-direction: column; gap: 10px; align-items: flex-start; padding: 12px 14px; }
    .toolbar-right { width: 100%; justify-content: space-between; }
    .toolbar-sort { font-size: 0.72rem; padding: 6px 10px; }
    .sub-categories-strip { top: 50px; padding: 10px 0; }
    .sub-cat-chip { padding: 6px 14px; font-size: 0.72rem; }
    .category-hero { padding: 20px 0; }
    .category-hero-content h1 { font-size: 1.2rem; }
    .category-hero-content p { font-size: 0.78rem; }
    .page-breadcrumb { padding: 10px 0; }
    .page-breadcrumb .breadcrumb { font-size: 0.72rem; }
    .row > [style*="flex: 0 0 20%"] {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    .products-pagination .page-link { width: 32px; height: 32px; font-size: 0.75rem; }
}
