/* Professional Catalog Styles */
.catalog-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    min-height: 100vh;
    gap: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .catalog-container {
        flex-direction: column;
        gap: 20px;
        padding: 0;
    }
    
    .sidebar {
        width: 100%;
        order: 2;
    }
    
    .main-content {
        order: 1;
    }
}

/* Products Grid - 3 Columns Layout */


.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    max-width: 100%;
    width: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background-color: #f5f5f5;
    max-width: 100%;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f9f9f9;
    transition: transform 0.3s ease;
    display: block;
}

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

.product-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.8rem;
    color: #757575;
    margin-bottom: 5px;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 10px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e53935;
    margin-top: auto;
}

/* Category Header */
.category-header {
    margin-bottom: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* Search Filter */
.search-filter {
    margin: 15px 0;
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.search-input-group:focus-within {
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    padding: 12px 15px;
    background: #e53935;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: #d32f2f;
}

.search-btn i {
    font-size: 1rem;
}

.clear-search {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #e53935;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.clear-search:hover {
    background: #ffebee;
    color: #d32f2f;
    text-decoration: none;
}

.clear-search i {
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .category-header {
        padding: 12px 15px;
        margin-bottom: 15px;
    }
    
    .search-input {
        font-size: 0.9rem;
        padding: 10px 12px;
    }
    
    .search-btn {
        padding: 10px 12px;
    }
    
    .clear-search {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}

.category-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px;
    position: relative;
    display: inline-block;
}

.category-header h2:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #e53935;
    border-radius: 1px;
}

.product-count-info {
    color: #666;
    font-size: 1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.count-number {
    font-weight: 700;
    color: #e53935;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .category-header h2 {
        font-size: 1.3rem;
        margin: 0 0 6px;
    }
    
    .category-header h2:after {
        width: 30px;
        height: 2px;
    }
    
    .product-count-info {
        font-size: 0.9rem;
    }
    
    .count-number {
        font-size: 1rem;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 5px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 35px;
    padding: 0 10px;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: #f5f5f5;
}

.page-link.active {
    background-color: #e53935;
    color: #fff;
    border-color: #e53935;
}

/* No Products & Category Intro */
.no-products,
.category-intro {
    text-align: center;
    padding: 50px 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.no-products i,
.category-intro i {
    font-size: 3rem;
    color: #e0e0e0;
    margin-bottom: 20px;
    display: block;
}

.no-products h3,
.category-intro h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.no-products p,
.category-intro p {
    color: #757575;
    max-width: 500px;
    margin: 0 auto;
}

/* Page Header Styling - Tokopedia Style with Red Accent */
.page-header {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    padding: 40px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.page-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #e53935 0%, #ff5252 100%);
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #212121;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.page-header h1:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: #e53935;
    border-radius: 2px;
}

.page-header p {
    color: #757575;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 15px 0 0;
}

/* Kategori Menu Style */
.tokopedia-categories {
    background: #fff;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 30px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    margin-right: 0;
}

.tokopedia-categories:before {
    display: none;
}

.tokopedia-categories h2 {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    width: 100%;
    box-sizing: border-box;
}

.tokopedia-categories h2 i {
    color: #e53935;
    margin-right: 10px;
    margin-left: 0;
}

.category-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
    width: 100%;
}

.category-menu li {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    padding: 0;
    margin: 0;
    width: 100%;
}

.category-menu li:last-child {
    border-bottom: none;
}

.category-menu li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    color: #444;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    line-height: 1.4;
    width: 100%;
    box-sizing: border-box;
}

.category-menu li a:hover {
    background-color: #f8f9fa;
    color: #e53935;
    transform: translateX(2px);
}

.category-menu li.active > a {
    background-color: #fff5f5;
    color: #e53935;
    font-weight: 600;
    border-left: 4px solid #e53935;
    padding-left: 12px;
}

/* Submenu styling */
.main-category {
    position: relative;
    transition: all 0.3s ease;
    margin: 0;
}

.main-category-link {
    display: flex;
    align-items: center;
    font-weight: 500;
    position: relative;
}

.main-category:hover {
    background-color: #f8f9fa;
}

.main-category.active {
    background-color: #fff5f5;
}

.main-category.active > a {
    color: #e53935;
    font-weight: 600;
    border-left: 3px solid #e53935;
    padding-left: 13px;
}

.toggle-icon {
    margin-left: auto;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background-color: transparent;
    color: #888;
    font-size: 12px;
    cursor: pointer;
}

.main-category:hover .toggle-icon {
    background-color: #f0f0f0;
    color: #666;
}

.main-category.active .toggle-icon {
    background-color: rgba(229, 57, 53, 0.1);
    color: #e53935;
}

.main-category.active .toggle-icon i {
    transform: rotate(180deg);
}

.subcategory-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    background: #f8f9fa;
    border-left: 3px solid #e8e8e8;
}

.main-category:hover .subcategory-menu,
.main-category.active .subcategory-menu {
    max-height: 500px;
    border-left-color: #e53935;
}

.subcategory-menu li {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.subcategory-menu li:last-child {
    border-bottom: none;
}

.subcategory-menu li a {
    padding: 10px 16px 10px 32px;
    font-size: 13px;
    color: #555;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subcategory-menu li a:before {
    content: '•';
    position: absolute;
    left: 20px;
    color: #ccc;
    font-size: 16px;
}

.subcategory-menu li:hover {
    background-color: rgba(229, 57, 53, 0.05);
    transform: translateX(4px);
}

.subcategory-menu li.active {
    background-color: rgba(229, 57, 53, 0.1);
    border-left: 3px solid #e53935;
}

.subcategory-menu li.active a {
    color: #e53935;
    font-weight: 600;
    padding-left: 29px;
}

.subcategory-menu li.active a:before {
    color: #e53935;
}

.category-menu .count {
    color: #888;
    font-size: 12px;
    font-weight: 500;
    background-color: #f0f3f7;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
}

.main-category.active .count {
    background-color: rgba(229, 57, 53, 0.1);
    color: #e53935;
}

.subcategory-menu .count {
    background-color: #e8ecf0;
    font-size: 11px;
}

.subcategory-menu li.active .count {
    background-color: rgba(229, 57, 53, 0.15);
    color: #e53935;
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
}

@media (max-width: 1024px) {
    .sidebar {
        width: 230px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
    }
}

.tokopedia-categories {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    overflow: hidden;
}

.tokopedia-categories h2 {
    background: linear-gradient(135deg, #e53935 0%, #d32f2f 100%);
    color: white;
    margin: 0;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.tokopedia-categories h2 i {
    color: white;
    margin-right: 12px;
    font-size: 18px;
}

.main-content {
    flex: 1;
    min-width: 0;
    padding-left: 10px;
}

.category-card {
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #e53935;
}

.category-image {
    height: 150px;
    overflow: hidden;
    position: relative;
    background: #f9f9f9;
}

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

.category-card:hover .category-img {
    transform: scale(1.05);
}

.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #f5f5f5;
    color: #9e9e9e;
}

.image-placeholder i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.category-info {
    padding: 15px;
    background: #fff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #212121;
    margin: 0 0 5px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-info p {
    font-size: 0.85rem;
    color: #e53935;
    margin: 5px 0 0;
    font-weight: 500;
}

/* Filter Sidebar - Tokopedia Style */
.filter-sidebar {
    width: 280px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 20px;
    border: 1px solid #f0f0f0;
    border-left: 3px solid #e53935;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.filter-header h3 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.clear-filters {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-filters:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.filter-section {
    margin-bottom: 30px;
}

.filter-section h4 {
    color: #555;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-section h4 i {
    color: #007bff;
}

/* Search Input */
.search-input-container {
    position: relative;
    margin-bottom: 20px;
}

.search-input-container input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input-container input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

/* Category Section Styling - Tokopedia Style */
.category-section {
    padding: 30px 0 60px;
}

.view-toggle button {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    padding: 12px 24px;
    margin: 0 8px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.view-toggle button:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.view-toggle button.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
    box-shadow: 0 4px 10px rgba(0,123,255,0.3);
}

.view-toggle button i {
    font-size: 1.1rem;
}

/* Hierarchy View Styling */
.category-hierarchy {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.category-hierarchy h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-hierarchy h2 i {
    color: #007bff;
}

.category-item {
    margin: 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.category-item.level-0 {
    border-left: none;
    padding-left: 0;
    margin-bottom: 0;
}

.category-item.level-1 {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    margin-bottom: 0;
    background-color: #f9f9f9;
}

.category-item.level-2 {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    background-color: #f5f5f5;
}

.category-parent {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.category-toggle {
    cursor: pointer;
    margin-right: 0;
    color: #666;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
    border: none;
    border-right: 1px solid #f0f0f0;
}

.category-toggle:hover {
    background: #f0f0f0;
    transform: none;
}

.category-toggle.expanded {
    transform: rotate(90deg);
    background: #e53935;
    color: white;
}

.category-link {
    text-decoration: none;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 0;
    transition: all 0.3s ease;
    flex: 1;
    font-size: 1rem;
    border: none;
}

.category-link:hover {
    background-color: #f5f5f5;
    color: #e53935;
    text-decoration: none;
    transform: none;
}

.category-link.parent {
    font-weight: 600;
    background-color: #fff;
    border: none;
    box-shadow: none;
}

.category-link.leaf {
    background-color: #fff;
    border: none;
    margin-left: 40px;
    padding-left: 20px;
}

.category-count {
    font-size: 0.85rem;
    color: #666;
    font-weight: normal;
    background: transparent;
    padding: 0;
    border-radius: 0;
    min-width: auto;
    text-align: right;
}

.category-children {
    margin-top: 0;
    animation: slideDown 0.3s ease;
    padding-left: 0;
    border-top: 1px solid #f0f0f0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 1000px;
    }
}

/* Grid View Styling */
.alphabet-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 30px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    justify-content: center;
}

.alphabet-filter a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f8f9fa;
    color: #495057;
    border-radius: 50%;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.alphabet-filter a:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.2);
}

.category-header {
    margin: 30px 0 20px;
    position: relative;
}

.category-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #343a40;
    display: inline-block;
    padding: 0 15px 8px 0;
    border-bottom: 3px solid #007bff;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.category-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    text-decoration: none;
}

.category-image {
    height: 180px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

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

.category-card:hover .category-img {
    transform: scale(1.05);
}

.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #adb5bd;
}

.image-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.category-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 10px;
    line-height: 1.4;
}

.category-info p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.category-info p:before {
    content: '\f07a';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #007bff;
}



.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-color: #e53935;
}

.product-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-image {
    height: 180px;
    overflow: hidden;
    position: relative;
    background: #f9f9f9;
    padding: 10px;
}

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

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

.product-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-top: 1px solid #f5f5f5;
}

.product-info h3 {
    font-size: 0.95rem;
    font-weight: 500;
    color: #212121;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e53935;
    margin: 8px 0;
}

.product-category {
    color: #757575;
    font-size: 0.8rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Pagination Styling */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0 20px;
    flex-wrap: wrap;
    gap: 8px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    background: #fff;
    color: #495057;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.pagination-btn:hover {
    background: #e9ecef;
    color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-decoration: none;
}

.pagination-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
    box-shadow: 0 4px 10px rgba(0,123,255,0.3);
}

/* No Products Found */
.no-products {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin: 30px 0;
}

.no-products i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

.no-products h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 15px;
}

.no-products p {
    color: #6c757d;
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.no-products .btn {
    padding: 10px 25px;
    font-weight: 500;
    font-size: 1rem;
}

/* Category Breadcrumb */
.category-breadcrumb {
    margin-bottom: 25px;
    padding: 15px 20px;
    background: #fff;
    border-radius: 8px;
    font-size: 0.95rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.category-breadcrumb a {
    color: #007bff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.category-breadcrumb a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #adb5bd;
    display: inline-flex;
    align-items: center;
}

.breadcrumb-current {
    font-weight: 600;
    color: #343a40;
    padding: 2px 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

/* Responsive Adjustments */


@media (max-width: 768px) {
    .page-header {
        padding: 30px 0;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .view-toggle button {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .category-hierarchy {
        padding: 20px;
    }
    

    
    .product-image {
        height: 160px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-info h3 {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {

    
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .product-image {
        height: 140px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-info h3 {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .product-price {
        font-size: 1rem;
        margin: 5px 0;
    }
    
    .pagination-btn {
        min-width: 35px;
        height: 35px;
        padding: 0 10px;
        font-size: 0.9rem;
    }
}

/* Filter Options */
.filter-options {
    max-height: 250px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #007bff #f0f0f0;
}

.filter-options::-webkit-scrollbar {
    width: 6px;
}

.filter-options::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.filter-options::-webkit-scrollbar-thumb {
    background-color: #007bff;
    border-radius: 10px;
}

.filter-search {
    margin-bottom: 15px;
}

.filter-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.9rem;
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.filter-option:hover {
    background: #f8f9fa;
}

.filter-option input {
    margin: 0;
    cursor: pointer;
}

.option-text {
    flex: 1;
    font-size: 0.9rem;
    color: #333;
}

.option-count {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

/* Price Filter */
.price-filter {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.price-inputs input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.9rem;
}

.price-separator {
    color: #6c757d;
    font-weight: 600;
}

.price-range-slider {
    position: relative;
    margin-bottom: 15px;
    height: 6px;
}

.price-range-slider input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #dee2e6;
    outline: none;
    -webkit-appearance: none;
    position: absolute;
    top: 0;
    pointer-events: none;
}

.price-range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    margin-top: -6px;
    pointer-events: auto;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.price-range-slider input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.price-range-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #495057;
    margin-top: 10px;
}

/* Apply Filters Button */
.apply-filters-btn {
    width: 100%;
    background: #007bff;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.apply-filters-btn:hover {
    background: #0069d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.apply-filters-btn:active {
    transform: translateY(0);
}

/* Catalog Content */
.catalog-content {
    flex: 1;
    min-width: 0;
}

/* Catalog Header */
.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.catalog-summary {
    font-size: 0.95rem;
    color: #6c757d;
}

.catalog-summary strong {
    color: #212529;
    font-weight: 600;
}

.catalog-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-options label {
    font-size: 0.9rem;
    color: #495057;
}

.sort-options select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #495057;
    background-color: #fff;
    cursor: pointer;
}

.view-options {
    display: flex;
    gap: 5px;
}

.view-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background-color: #fff;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-btn:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.view-btn.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Active Filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background-color: #e9ecef;
    border-radius: 30px;
    font-size: 0.85rem;
    color: #495057;
}

.remove-filter {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: #dee2e6;
    color: #495057;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    font-size: 0.7rem;
}

.remove-filter:hover {
    background-color: #dc3545;
    color: #fff;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.product-grid.list-view {
    grid-template-columns: 1fr;
}

/* Product Card */
.product-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.list-view .product-card {
    flex-direction: row;
    height: 200px;
}

.product-image {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
    background-color: #f8f9fa;
}

.list-view .product-image {
    width: 200px;
    min-width: 200px;
    padding-top: 0;
    height: 100%;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    max-width: 100%;
}

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

.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    transition: bottom 0.3s ease;
}

.product-card:hover .product-actions {
    bottom: 0;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #e9ecef;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.list-view .product-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-category {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.4;
}

.product-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-title a:hover {
    color: #007bff;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 15px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    font-size: 0.85rem;
    color: #6c757d;
}

.product-brand {
    font-weight: 500;
}

.product-description {
    display: none;
    margin: 15px 0;
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
}

.list-view .product-description {
    display: block;
}

.list-view-actions {
    display: none;
    margin-top: 15px;
    gap: 10px;
}

.list-view .list-view-actions {
    display: flex;
}

.btn-view-details, .btn-add-to-cart {
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-view-details {
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #ced4da;
}

.btn-view-details:hover {
    background-color: #e9ecef;
    color: #212529;
}

.btn-add-to-cart {
    background-color: #007bff;
    color: #fff;
    border: 1px solid #007bff;
    flex: 1;
}

.btn-add-to-cart:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

/* No Products */
.no-products {
    text-align: center;
    padding: 50px 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    color: #6c757d;
}

.no-products i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #dee2e6;
}

.no-products h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #495057;
}

.no-products p {
    font-size: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 40px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    color: #495057;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-link:hover {
    background-color: #e9ecef;
    color: #007bff;
    border-color: #dee2e6;
}

.page-link.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
    font-weight: 600;
}

.page-dots {
    color: #6c757d;
    font-size: 1.2rem;
    margin: 0 5px;
}

/* Quick View Modal */
.quick-view-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: #fff;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background-color: #f8f9fa;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #495057;
    transition: all 0.2s ease;
}

.close-modal:hover {
    background-color: #dc3545;
    color: #fff;
}

.modal-body {
    padding: 30px;
    max-height: 90vh;
    overflow-y: auto;
}

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    color: #007bff;
    font-size: 2rem;
}

.quick-view-product {
    display: flex;
    gap: 30px;
}

.quick-view-image {
    width: 40%;
    border-radius: 8px;
    overflow: hidden;
}

.quick-view-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.quick-view-details {
    flex: 1;
}

.quick-view-details h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #212529;
}

.quick-view-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 15px;
}

.quick-view-category {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 20px;
}

.quick-view-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 30px;
}

.quick-view-actions {
    display: flex;
    gap: 15px;
}

.error-message {
    text-align: center;
    padding: 30px;
    color: #dc3545;
    font-size: 1.1rem;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .catalog-container {
        padding: 15px;
        gap: 20px;
    }
    
    .filter-sidebar {
        width: 280px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .catalog-container {
        flex-direction: column;
    }
    
    .filter-sidebar {
        width: 100%;
        position: static;
        margin-bottom: 20px;
    }
    
    .quick-view-product {
        flex-direction: column;
    }
    
    .quick-view-image {
        width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .catalog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .catalog-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .list-view .product-card {
        flex-direction: column;
        height: auto;
    }
    
    .list-view .product-image {
        width: 100%;
        height: 200px;
    }
    
    .list-view .product-description {
        display: none;
    }
    
    .list-view .list-view-actions {
        display: none;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-title {
        font-size: 1rem;
    }
    
    .product-price {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .quick-view-details h2 {
        font-size: 1.3rem;
    }
    
    .quick-view-price {
        font-size: 1.3rem;
    }
    
    .quick-view-actions {
        flex-direction: column;
    }
}

.price-range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.price-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 600;
}

/* Filter Actions */
.filter-actions {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.apply-filters {
    width: 100%;
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-filters:hover {
    background: #218838;
    transform: translateY(-1px);
}

/* Main Content */
.catalog-content {
    flex: 1;
    min-width: 0;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.results-info h1 {
    color: #333;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.results-count {
    color: #6c757d;
    font-size: 1rem;
    margin: 0;
}

.filter-indicator {
    color: #007bff;
    font-weight: 600;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options label {
    color: #555;
    font-weight: 600;
}

.sort-options select {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
}

.view-toggle {
    display: flex;
    gap: 5px;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #dee2e6;
    background: white;
    color: #6c757d;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover,
.view-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Active Filters */
.active-filters {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.active-filters h4 {
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #007bff;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.filter-tag button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.filter-tag button:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Products Container */
.products-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 25px;
}




/* Product Cards */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 220px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.quick-view {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-view:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-category {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.product-brand {
    font-size: 0.9rem;
    color: #007bff;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn-detail,
.btn-contact {
    flex: 1;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-detail {
    background: #007bff;
    color: white;
}

.btn-detail:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

.btn-contact {
    background: #28a745;
    color: white;
}

.btn-contact:hover {
    background: #218838;
}

/* No Products */
.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-products i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #dee2e6;
}

.no-products h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #495057;
}

.no-products p {
    font-size: 1rem;
    margin-bottom: 25px;
}

.btn-primary {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: white;
    color: #007bff;
    text-decoration: none;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
    text-decoration: none;
}

.page-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.page-dots {
    color: #6c757d;
    padding: 0 8px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
    color: #007bff;
}

.loading-spinner i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.loading-spinner p {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .catalog-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .filter-sidebar {
        width: 100%;
        position: static;
    }
    
    .catalog-header {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .sort-options,
    .view-toggle {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .catalog-container {
        padding: 15px;
    }
    
    .filter-sidebar {
        padding: 20px;
    }
    
    .catalog-header {
        padding: 20px;
    }
    
    .results-info h1 {
        font-size: 1.5rem;
    }
    

    
    .products-container {
        padding: 20px;
    }
    
    .filter-tags {
        gap: 8px;
    }
    
    .filter-tag {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {

    
    .product-actions {
        flex-direction: column;
    }
    
    .catalog-header {
        padding: 15px;
    }
    
    .filter-sidebar {
        padding: 15px;
    }
    
    .products-container {
        padding: 15px;
    }
}

/* Sidebar styling */
#hierarchy-view {
    border: 1px solid #e0e0e0;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
    float: left;
    width: 250px;
    margin-right: 20px;
}

#hierarchy-view .category-item:first-child .category-link {
    background-color: #2c4f9e;
    color: white;
    font-weight: bold;
    padding: 15px;
    text-align: center;
}

#hierarchy-view .category-item:first-child .category-link:hover {
    background-color: #2c4f9e;
    color: white;
}

#hierarchy-view h2 {
    display: none;
}

#hierarchy-view p.text-muted {
    display: none;
}

/* View Toggle */
.view-toggle {
    margin-bottom: 30px;
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.view-toggle button {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    margin: 0 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.view-toggle button:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

.view-toggle button.active {
    background: #28a745;
    box-shadow: 0 4px 8px rgba(40,167,69,0.3);
}

.view-toggle button i {
    margin-right: 8px;
}

/* Category Hierarchy */
.category-hierarchy {
    background: #ffffff;
    border-radius: 0;
    padding: 0;
    margin-bottom: 30px;
    border: none;
    box-shadow: none;
}

.category-hierarchy h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
    display: none;
}

.category-hierarchy h2 i {
    color: #007bff;
    margin-right: 10px;
    display: none;
}

/* Category Items */
.category-item {
    margin: 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid #eee;
}

.category-item.level-0 {
    border-left: none;
    padding-left: 0;
    margin-bottom: 0;
    background: #fff;
    border-radius: 0;
}

.category-item.level-0:first-child .category-link {
    background-color: #2c4f9e;
    color: white;
    font-weight: bold;
}

.category-item.level-0:first-child .category-link:hover {
    background-color: #2c4f9e;
    color: white;
}

.category-item.level-0 .category-link {
    font-weight: bold;
    color: #2c4f9e;
    border-bottom: 1px solid #eee;
}

.category-item.level-0 .category-link:hover {
    color: #2c4f9e;
}

.category-item.level-1 {
    border-left: none;
    padding-left: 20px;
    margin-left: 0;
    background: #fff;
    border-radius: 0;
}

.category-item.level-1 .category-link {
    color: #2962ff;
}

.category-item.level-1 .category-link:hover {
    color: #2962ff;
}

.category-item.level-2 {
    border-left: none;
    padding-left: 40px;
    margin-left: 0;
    background: #fff;
    border-radius: 0;
}

/* Category Parent */
.category-parent {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    padding: 0;
}

.category-toggle {
    cursor: pointer;
    margin-right: 8px;
    color: #2962ff;
    transition: all 0.3s ease;
    width: 20px;
    height: 20px;
    text-align: center;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.category-toggle:hover {
    background: transparent;
    transform: none;
}

.category-toggle.expanded {
    transform: rotate(90deg);
    background: transparent;
}

.category-toggle i {
    font-size: 12px;
}

/* Category Links */
.category-link {
    text-decoration: none;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 0;
    transition: all 0.3s ease;
    flex: 1;
    border: none;
}

.category-link:hover {
    background-color: #f5f5f5;
    color: #2962ff;
    text-decoration: none;
    transform: none;
    border-color: transparent;
}

.category-link.parent {
    font-weight: 600;
    background-color: #fff;
    border: none;
    box-shadow: none;
}

.category-link.parent:hover {
    box-shadow: none;
}

.category-link.leaf {
    background-color: #fff;
    border: none;
    margin-left: 0;
    font-size: 0.95rem;
}

.category-link.leaf:hover {
    margin-left: 0;
}

.category-count {
    font-size: 0.85em;
    color: #6c757d;
    font-weight: normal;
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    display: none;
}

/* Category Children Animation */
.category-children {
    margin-top: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    max-height: 0;
}

.category-children[style*="block"] {
    max-height: 1000px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    margin-left: 270px;
}

.category-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

.product-image {
    height: 180px;
    overflow: hidden;
    position: relative;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

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

.category-card:hover .category-img {
    transform: scale(1.05);
}

.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6c757d;
    background: #f8f9fa;
}

.image-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.image-placeholder span {
    font-size: 0.9rem;
    text-align: center;
}

.category-info {
    padding: 20px;
}

.category-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.category-info p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.category-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.product-count {
    font-size: 12px;
    color: #777;
}

.page-header {
    background-color: #fff;
    padding: 20px 0;
    margin-bottom: 20px;
    text-align: left;
    background-image: none;
    border-bottom: 1px solid #e0e0e0;
}

.page-header h1 {
    margin: 0;
    font-size: 32px;
    color: #333;
    font-weight: 700;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
}

.page-header p {
    margin: 10px 0 0;
    color: #555;
    font-size: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Breadcrumb styling */
.category-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
    font-size: 16px;
    background-color: rgba(211, 47, 47, 0.05);
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 3px solid #d32f2f;
}

.category-breadcrumb a {
    color: #d32f2f;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 3px 6px;
    border-radius: 4px;
}

.category-breadcrumb a:hover {
    color: #b71c1c;
    background-color: rgba(211, 47, 47, 0.1);
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #999;
    font-size: 12px;
}

.breadcrumb-current {
    color: #555;
    font-weight: 600;
    padding: 3px 6px;
    background-color: rgba(211, 47, 47, 0.1);
    border-radius: 4px;
}

.alphabet-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.alphabet-filter a {
    display: inline-block;
    margin: 5px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.alphabet-filter a:hover,
.alphabet-filter a.active {
    background-color: #d32f2f;
    color: #fff;
}

.alphabet-section {
    margin-top: 30px;
}

.alphabet-heading {
    background-color: #f0f0f0;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.category-header {
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.category-header h2 {
    font-size: 26px;
    color: #333;
    padding-bottom: 10px;
    display: inline-block;
    position: relative;
}

.category-header h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #d32f2f;
    border-radius: 3px;
}

.category-header p {
    color: #666;
    margin-top: 5px;
    font-size: 14px;
}

/* Tampilan produk dalam kategori */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    box-shadow: none;
    margin-bottom: 15px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.product-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    overflow: hidden;
    padding: 10px;
    position: relative;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

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

.product-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(211, 47, 47, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 1;
}

.product-info {
    padding: 8px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    border-top: 1px solid #f0f0f0;
}

.product-info h3 {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.product-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2962ff;
    margin-bottom: 3px;
}

.product-category {
    font-size: 0.75rem;
    color: #777;
    margin-top: 3px;
}

.product-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-top: auto;
}

.product-category {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 10px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #d32f2f;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
    color: #666;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    margin-top: auto;
    margin-bottom: 15px;
    color: #d32f2f;
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-add-cart {
    flex-grow: 1;
    background-color: #d32f2f;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-add-cart:hover {
    background-color: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(211, 47, 47, 0.2);
}

.btn-wishlist {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.btn-wishlist:hover {
    background-color: #ffebee;
    color: #e91e63;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(233, 30, 99, 0.2);
}

.no-products {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    margin: 30px 0;
}

.no-products p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.no-products .btn {
    display: inline-block;
    background-color: #d32f2f;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.no-products .btn:hover {
    background-color: #b71c1c;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pagination a, 
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    margin: 0 5px 5px;
    padding: 0 10px;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.pagination a:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
}

.pagination .active {
    background-color: #d32f2f;
    color: #fff;
    border-color: #d32f2f;
}

.pagination .disabled {
    color: #aaa;
    cursor: not-allowed;
    background-color: #f8f8f8;
}

/* Responsif */
@media (max-width: 1200px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .category-breadcrumb {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-title {
        font-size: 14px;
        height: 40px;
    }
    
    .product-price {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .btn-add-cart {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .btn-wishlist {
        width: 36px;
        height: 36px;
    }
    
    .page-header {
        padding: 20px 0;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .page-header p {
        font-size: 14px;
    }
    
    .pagination a, 
    .pagination span {
        min-width: 35px;
        height: 35px;
        margin: 0 3px 5px;
        font-size: 14px;
    }
    
    .page-header h1 {
        font-size: 22px;
    }
    
    .category-breadcrumb {
        flex-wrap: wrap;
        line-height: 1.8;
        font-size: 12px;
    }
    
    .breadcrumb-separator {
        margin: 0 5px;
    }
}

@media (max-width: 576px) {
    .category-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .product-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 5px;
    }
    
    .alphabet-filter a {
        margin: 3px;
        width: 25px;
        height: 25px;
        line-height: 25px;
        font-size: 12px;
    }
    
    .product-image {
        height: 120px;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-wishlist {
        width: 100%;
        height: 36px;
    }
    
    .category-header h2 {
        font-size: 20px;
    }
    
    .pagination a, 
    .pagination span {
        min-width: 30px;
        height: 30px;
        margin: 0 2px 5px;
        font-size: 13px;
    }
}