
.catalog-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 320px;
    display: flex;
    align-items: center;
    padding: 3.5rem 0;
}

.catalog-hero--plain {
    background-color: var(--gg-light);
}

.catalog-hero--plain .catalog-hero__content {
    color: var(--gg-dark);
}

.catalog-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.85));
    z-index: 1;
}

.catalog-hero__content {
    position: relative;
    z-index: 2;
    color: white;
}

.catalog-hero__title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    letter-spacing: 2px;
}

.catalog-hero__description {
    max-width: 640px;
    color: rgba(255, 255, 255, 0.9);
}

.products-empty-state {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.active-filters {
    border: 1px solid var(--gg-light-gray);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
}

/* Mobile Responsive Styles for Catalog Page */

/* container-wide adjustments for mobile */
@media (max-width: 576px) {
    .container-wide {
        padding-left: 15px;
        padding-right: 15px;
    }

    .catalog-listing {
        padding-top: 1rem;
        padding-bottom: 2rem;
    }
}

/* Breadcrumb mobile adjustments */
@media (max-width: 576px) {
    .breadcrumb {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .breadcrumb-item+.breadcrumb-item::before {
        content: "";
        font-size: var(--base-fontsize);
    }
}

/* Page header mobile adjustments */
@media (max-width: 768px) {
    .display-5 {
        font-size: 1.75rem !important;
    }

    .lead {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 576px) {
    .display-5 {
        font-size: 1.5rem !important;
    }

    .lead {
        font-size: 0.85rem !important;
    }
}

/* Mobile filter toggle button */
.filters-toggle-mobile {
    position: sticky;
    top: 20px;
    z-index: 100;
    transition: all 0.3s ease;
}

.filters-toggle-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Filter sidebar styles */
.filters-panel {
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: 0 !important;
}

.filter-options {
    max-height: 200px;
    overflow-y: auto;
    padding: 0 !important;
    margin: 0 !important;
}

/* Custom checkbox styles - Zero margin/padding */
.form-check-input {
    margin: 0 !important;
    padding: 0 !important;
    width: 16px !important;
    height: 16px !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 3px !important;
    background-color: #fff !important;
    cursor: pointer !important;
}

.form-check-input:checked {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25) !important;
    border-color: #0d6efd !important;
}

.form-check-label {
    margin-left: 0.5rem !important;
    margin-bottom: 0 !important;
    font-size: 0.875rem !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
    padding: 0 !important;
}

.form-check {
    margin-bottom: 0.5rem !important;
    margin-top: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: flex-start !important;
}

/* Filter section styles */
.filters-section {
    border-radius: 0.5rem !important;
}

.filters-section .form-label {
    margin-bottom: 0.5rem !important;
    font-weight: 600 !important;
    padding: 0 !important;
}

.filter-options {
    max-height: 150px;
    overflow-y: auto;
    padding: 0 !important;
    margin: 0 !important;
}

.filter-options .form-check {
    padding: 0.25rem 0 !important;
    margin: 0 !important;
}

/* Price range inputs */
.price-range-inputs .form-control {
    text-align: center;
}

/* Filter actions */
.filter-actions .btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-actions .btn:hover {
    transform: translateY(-1px);
}

/* Search input styling */
.search-input-wrapper {
    position: relative;
}

.search-input {
    padding-right: 2.5rem;
    border-radius: 0.375rem;
}

.search-icon {
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Price range inputs */
.price-range-inputs .form-control {
    text-align: center;
}

.price-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
    color: #6c757d;
    font-weight: 500;
}

/* Filter actions */
.filter-actions .btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-actions .btn:hover {
    transform: translateY(-1px);
}

/* Mobile offcanvas styling */
.offcanvas {
    width: 70% !important;
    max-width: 400px;
    z-index: 5100;
}

@media (max-width: 576px) {
    .offcanvas {
        width: 85% !important;
        max-width: 100vw;
    }
}

.offcanvas-header {
    border-bottom: 1px solid #e9ecef;
}

.offcanvas-body {
    padding: 0;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

/* Top controls mobile adjustments */
@media (max-width: 576px) {
    .d-flex.flex-column.flex-sm-row {
        gap: 0.75rem !important;
    }

    .d-flex.align-items-center.gap-2 {
        gap: 0.5rem !important;
    }

    .form-select {
        font-size: 0.875rem;
    }

    .text-nowrap {
        white-space: normal !important;
    }

    .product-count-info {
        text-align: center;
        margin-bottom: 1rem;
    }

    .btn-group .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* View toggle button styling */
.btn-group .btn {
    border-radius: 0.375rem !important;
    margin: 0 1px;
    transition: all 0.2s ease;
    position: relative;
}

.btn-group .btn.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.3);
    transform: translateY(-1px);
}

.btn-group .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-group .btn:active {
    transform: scale(0.95);
}

/* List view container-wide styles */
.list-view-container-wide {
    margin-top: 1rem;
}

.list-view-container-wide .product-list-card {
    margin-bottom: 1rem;
}

/* Loading states */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Form submission feedback */
.btn-submitting {
    position: relative;
    color: transparent !important;
}

.btn-submitting::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Dropdown search styling */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.dropdown-menu .form-control {
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
}

.dropdown-menu .btn {
    border-radius: 0.375rem;
}