/* Catalog Page Specific Styles */

/* Breadcrumb Section */
.breadcrumb-section {
    background-color: var(--background-light);
    border-bottom: 1px solid var(--border-light);
}

.breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-light);
    font-weight: 500;
}

/* Filter Sidebar */
.filter-sidebar {
    position: sticky;
    top: 120px;
}

.filter-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-light);
}

.filter-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.filter-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--surface-light);
}

.filter-group:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-subtitle {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-check-input {
    border-color: var(--border-light);
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(236, 109, 19, 0.15);
}

.form-check-label {
    font-size: 0.875rem;
    color: var(--text-light);
    cursor: pointer;
    user-select: none;
}

/* Catalog Header */
.catalog-header {
    margin-bottom: 2rem;
}

.catalog-header h1 {
    position: relative;
    display: inline-block;
}

.catalog-header h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 2px;
}

/* Sorting Bar */
.sorting-bar {
    background: white;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sorting-bar .btn {
    transition: all 0.2s ease;
}

.sorting-bar .btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.view-toggle .btn {
    padding: 0.5rem 0.75rem;
    border-color: var(--border-light);
}

.view-toggle .btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.view-toggle .btn i {
    font-size: 1.25rem;
}

/* Section Titles */
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--surface-light);
    display: flex;
    align-items: center;
}

.section-title i {
    font-size: 2rem;
}

.subsection-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1rem;
    margin-top: 2rem;
    padding-left: 1rem;
    border-left: 4px solid var(--primary-color);
}

/* Product Card Catalog */
.product-card-catalog {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
}

.product-card-catalog:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.product-image-catalog {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--background-light);
}

.product-image-catalog img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card-catalog:hover .product-image-catalog img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(236, 109, 19, 0.4);
    z-index: 1;
}

.product-badge-new {
    background: linear-gradient(135deg, #2c5f2d 0%, #1e4620 100%);
}

.product-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-name {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
    flex-grow: 1;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.spec-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    background: var(--surface-light);
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
}

.spec-item i {
    font-size: 1rem;
    color: var(--primary-color);
}

.product-content .btn {
    margin-top: auto;
}

/* Pagination */
.pagination {
    margin-top: 3rem;
}

.page-link {
    color: var(--text-light);
    border-color: var(--border-light);
    padding: 0.625rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.page-link:hover {
    background-color: var(--surface-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-item.disabled .page-link {
    color: var(--text-muted);
    background-color: var(--surface-light);
    border-color: var(--border-light);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .filter-sidebar {
        position: static;
        margin-bottom: 2rem;
    }

    .filter-card {
        padding: 1.25rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .subsection-title {
        font-size: 1.125rem;
    }
}

@media (max-width: 767px) {
    .catalog-header h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.375rem;
    }

    .section-title i {
        font-size: 1.5rem;
    }

    .product-content {
        padding: 1.25rem;
    }

    .product-name {
        font-size: 1rem;
    }

    .sorting-bar {
        padding: 0.75rem;
    }
}

/* Loading State */
.product-card-catalog.loading {
    opacity: 0.6;
    pointer-events: none;
}

.product-card-catalog.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid var(--surface-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
}

/* Search Highlight */
.search-highlight {
    background-color: #fff3cd;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
}