/* ============================================================
   fragrances.at — Catalog CSS
   Fragrance database / catalog page styles
   ============================================================ */


/* ============================================================
   CATALOG PAGE LAYOUT
   ============================================================ */

.catalog-page {
    padding-top: calc(var(--unit) * 6);
    padding-bottom: calc(var(--unit) * 16);
}

.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: calc(var(--unit) * 8);
    align-items: start;
}


/* ============================================================
   CATALOG HEADER
   ============================================================ */

.catalog-header {
    margin-bottom: calc(var(--unit) * 4);
    padding-bottom: calc(var(--unit) * 3);
    border-bottom: 0.5px solid var(--border);
}

.catalog-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: clamp(38px, 4vw, 52px);
    font-weight: 400;
    line-height: 1.1;
    color: var(--text);
    margin: 0 0 calc(var(--unit) * 1.25);
}

.catalog-subtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: 26px;
    line-height: 1.45;
}

.catalog-header__eyebrow {
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: calc(var(--unit) * 1.5);
}

.catalog-header__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: var(--h1);
    font-weight: 400;
    color: var(--text);
    margin-bottom: calc(var(--unit) * 2);
    line-height: 1.2;
}

.catalog-header__subtitle {
    font-size: var(--body);
    color: var(--text-muted);
    max-width: 560px;
    margin-bottom: calc(var(--unit) * 5);
    line-height: 1.7;
}

.catalog-header__search {
    max-width: 480px;
}


/* ============================================================
   CATALOG SIDEBAR
   ============================================================ */

.catalog-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
    max-height: calc(100vh - var(--nav-h) - 48px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    padding-right: 4px;
}

.catalog-sidebar::-webkit-scrollbar {
    width: 3px;
}

.catalog-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.catalog-sidebar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 0;
}


/* Mobile sidebar toggle */

.catalog-sidebar__toggle {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: calc(var(--unit) * 2) 0;
    border-bottom: 0.5px solid var(--border);
    cursor: pointer;
    margin-bottom: calc(var(--unit) * 3);
}

.catalog-sidebar__toggle-label {
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.catalog-sidebar__toggle-icon {
    color: var(--text-hint);
    transition: transform var(--ease);
}

.catalog-sidebar.is-open .catalog-sidebar__toggle-icon {
    transform: rotate(180deg);
}

.catalog-sidebar__body {
    display: flex;
    flex-direction: column;
    gap: calc(var(--unit) * 5);
}


/* ============================================================
   CATALOG FILTERS
   ============================================================ */

.catalog-filters {
    display: flex;
    flex-direction: column;
    gap: calc(var(--unit) * 5);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: calc(var(--unit) * 2);
}

.filter-group__label {
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-hint);
    padding-bottom: var(--unit);
    border-bottom: 0.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.filter-group__label-text {
    pointer-events: none;
}

.filter-group__toggle {
    color: var(--text-hint);
    transition: transform var(--ease);
    pointer-events: none;
}

.filter-group.is-collapsed .filter-group__toggle {
    transform: rotate(-90deg);
}

.filter-group__options {
    display: flex;
    flex-wrap: wrap;
    gap: var(--unit);
}

.filter-group.is-collapsed .filter-group__options {
    display: none;
}


/* Filter pill (within sidebar) */

.filter-pill--sidebar {
    display: inline-flex;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 0.5px solid var(--border);
    padding: 5px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    white-space: nowrap;
    background: transparent;
    transition: color var(--ease), border-color var(--ease), background-color var(--ease);
}

.filter-pill--sidebar:hover {
    color: var(--text);
    border-color: var(--border-hover);
    background-color: var(--surface-2);
}

.filter-pill--sidebar.is-active {
    color: var(--gold);
    border-color: var(--gold-border);
    background-color: var(--gold-muted);
}


/* Styled select */

.filter-select {
    width: 100%;
    background-color: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: var(--small);
    font-weight: 400;
    padding: calc(var(--unit) * 1.25) calc(var(--unit) * 4) calc(var(--unit) * 1.25) calc(var(--unit) * 2);
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(240,236,228,0.3)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right calc(var(--unit) * 1.5) center;
    transition: border-color var(--ease), color var(--ease);
}

.filter-select:hover {
    border-color: var(--border-hover);
    color: var(--text);
}

.filter-select:focus {
    border-color: var(--gold-border);
    color: var(--text);
}

.filter-select option {
    background-color: var(--surface-2);
    color: var(--text);
}


/* Range filter */

.filter-range {
    display: flex;
    flex-direction: column;
    gap: var(--unit);
}

.filter-range__track {
    position: relative;
    height: 2px;
    background: var(--border);
}

.filter-range__fill {
    position: absolute;
    top: 0;
    height: 100%;
    background: var(--gold);
}

.filter-range__input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 2px;
    background: transparent;
    outline: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    pointer-events: none;
}

.filter-range__input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    pointer-events: all;
    border: 0.5px solid var(--surface);
}

.filter-range__input::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    border: 0.5px solid var(--surface);
}

.filter-range__labels {
    display: flex;
    justify-content: space-between;
}

.filter-range__val {
    font-size: 12px;
    color: var(--text-hint);
}


/* Active filters summary */

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--unit);
    margin-bottom: calc(var(--unit) * 3);
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    border: 0.5px solid var(--gold-border);
    background-color: var(--gold-muted);
    padding: 4px 10px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color var(--ease), border-color var(--ease);
}

.active-filter-tag:hover {
    background-color: rgba(201, 169, 110, 0.35);
    border-color: var(--gold);
}

.active-filter-tag__remove {
    display: flex;
    align-items: center;
    color: var(--gold);
    opacity: 0.7;
    transition: opacity var(--ease);
}

.active-filter-tag:hover .active-filter-tag__remove {
    opacity: 1;
}

.clear-all-btn {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-hint);
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px 0;
    transition: color var(--ease);
    font-family: 'Inter', sans-serif;
}

.clear-all-btn:hover {
    color: var(--text-muted);
}


/* ============================================================
   CATALOG MAIN CONTENT
   ============================================================ */

.catalog-main {
    min-width: 0;
}


/* ============================================================
   CATALOG TOOLBAR
   ============================================================ */

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: calc(var(--unit) * 4);
    padding-bottom: calc(var(--unit) * 3);
    border-bottom: 0.5px solid var(--border);
    gap: calc(var(--unit) * 3);
    flex-wrap: wrap;
}

.catalog-count {
    font-size: var(--small);
    color: var(--text-hint);
    flex-shrink: 0;
}

.catalog-count strong {
    color: var(--text-muted);
    font-weight: 500;
}

.catalog-toolbar__right {
    display: flex;
    align-items: center;
    gap: calc(var(--unit) * 2);
}

.sort-select {
    background-color: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: var(--small);
    font-weight: 400;
    padding: 7px calc(var(--unit) * 4) 7px calc(var(--unit) * 2);
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(240,236,228,0.3)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color var(--ease), color var(--ease);
}

.sort-select:hover {
    border-color: var(--border-hover);
    color: var(--text);
}

.sort-select:focus {
    border-color: var(--gold-border);
}

.sort-select option {
    background-color: var(--surface-2);
    color: var(--text);
}


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

.catalog-pagination {
    margin-top: calc(var(--unit) * 6);
}

.pagination-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--unit) * 2);
    width: 100%;
}

.pagination-info {
    font-size: var(--small);
    color: var(--text-hint);
    text-align: center;
}

.pagination__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: calc(var(--unit) * 0.75);
    width: 100%;
}

.pagination__item--text {
    width: auto;
    min-width: 0;
    padding: 0 calc(var(--unit) * 1.5);
    white-space: nowrap;
}

.pagination__item--disabled {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}

.pagination-jump {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: calc(var(--unit) * 0.75);
    font-size: var(--small);
    color: var(--text-hint);
}

.pagination-jump__input {
    width: 56px;
    height: 36px;
    padding: 0 calc(var(--unit) * 0.75);
    border: 0.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: var(--small);
}

.pagination-jump__input:focus {
    outline: none;
    border-color: var(--gold-border);
}

@media (max-width: 768px) {
    .catalog-pagination {
        margin-top: calc(var(--unit) * 5);
    }
    .pagination__inner {
        gap: calc(var(--unit) * 0.5);
    }
    .pagination__item--text {
        padding: 0 calc(var(--unit) * 1);
    }
}

@media (max-width: 480px) {
    .pagination-wrapper {
        align-items: stretch;
    }
    .pagination__inner {
        justify-content: center;
    }
    .pagination-jump {
        font-size: 12px;
    }
}


/* View toggle (grid / list) */

.view-toggle {
    display: flex;
    align-items: center;
    border: 0.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.view-toggle__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: var(--text-hint);
    cursor: pointer;
    transition: color var(--ease), background-color var(--ease);
    border-radius: 0;
}

.view-toggle__btn+.view-toggle__btn {
    border-left: 0.5px solid var(--border);
}

.view-toggle__btn:hover {
    color: var(--text-muted);
    background-color: var(--surface-2);
}

.view-toggle__btn.is-active {
    color: var(--gold);
    background-color: var(--gold-muted);
}


/* ============================================================
   CATALOG GRID
   ============================================================ */

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: calc(var(--unit) * 1);
}

.catalog-grid:not(.catalog-grid--list) .fragrance-card__image {
    padding: 0;
    background-color: transparent;
    border: none;
    box-shadow: none;
}


/* List view variant */

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

.catalog-grid--list .fragrance-card {
    flex-direction: row;
    height: 120px;
}

.catalog-grid--list .fragrance-card__image-wrap {
    width: 88px;
    aspect-ratio: auto;
    height: 100%;
    flex-shrink: 0;
}

.catalog-grid--list .fragrance-card__image {
    padding: 0;
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.catalog-grid--list .fragrance-card__body {
    padding: calc(var(--unit) * 2);
    flex-direction: row;
    align-items: center;
    gap: calc(var(--unit) * 3);
}

.catalog-grid--list .fragrance-card__info {
    flex: 1;
    min-width: 0;
}

.catalog-grid--list .fragrance-card__notes {
    flex-wrap: nowrap;
    overflow: hidden;
}


/* ============================================================
   CATALOG EMPTY STATE
   ============================================================ */

.catalog-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(var(--unit) * 16) calc(var(--unit) * 4);
    text-align: center;
    border: 0.5px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--surface);
}

.catalog-empty[hidden] {
    display: none !important;
}

.catalog-empty__icon {
    color: var(--text-hint);
    margin-bottom: calc(var(--unit) * 3);
    opacity: 0.4;
}

.catalog-empty__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: var(--h3);
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: var(--unit);
}

.catalog-empty__subtitle {
    font-size: var(--small);
    color: var(--text-hint);
    max-width: 360px;
    line-height: 1.65;
    margin-bottom: calc(var(--unit) * 4);
}


/* ============================================================
   CATALOG LOADING STATE
   ============================================================ */

.catalog-skeleton {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: calc(var(--unit) * 3);
}

.skeleton-card {
    background-color: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.skeleton-card__image {
    width: 100%;
    aspect-ratio: 3 / 4;
    background-color: var(--surface-2);
    position: relative;
    overflow: hidden;
}

.skeleton-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient( 90deg, transparent 0%, rgba(240, 236, 228, 0.03) 50%, transparent 100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(100%);
    }
}

.skeleton-card__body {
    padding: calc(var(--unit) * 2.5);
    display: flex;
    flex-direction: column;
    gap: var(--unit);
}

.skeleton-line {
    height: 10px;
    background-color: var(--surface-2);
    border-radius: var(--radius);
}

.skeleton-line--short {
    width: 40%;
}

.skeleton-line--medium {
    width: 70%;
}

.skeleton-line--full {
    width: 100%;
}


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

@media (max-width: 1440px) {
    .catalog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .catalog-skeleton {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }
    .catalog-sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
    }
    .catalog-sidebar__toggle {
        display: flex;
    }
    .catalog-sidebar__body {
        display: none;
        padding-top: calc(var(--unit) * 3);
    }
    .catalog-sidebar.is-open .catalog-sidebar__body {
        display: flex;
    }
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .catalog-skeleton {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .catalog-page {
        padding-top: calc(var(--unit) * 6);
    }
    .catalog-header {
        margin-bottom: calc(var(--unit) * 6);
    }
    .catalog-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: calc(var(--unit) * 2);
    }
    .catalog-toolbar__right {
        width: 100%;
        justify-content: space-between;
    }
    .sort-select {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .catalog-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: calc(var(--unit) * 1);
    }
    .catalog-skeleton {
        grid-template-columns: repeat(4, 1fr);
        gap: calc(var(--unit) * 1);
    }
}

@media (max-width: 375px) {
    .catalog-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: calc(var(--unit) * 0.5);
    }
    .catalog-skeleton {
        grid-template-columns: repeat(4, 1fr);
        gap: calc(var(--unit) * 0.5);
    }
}


/* ---- Reduced Motion ---- */

@media (prefers-reduced-motion: reduce) {
    .skeleton-card__image::after {
        animation: none;
    }
}


/* ============================================================
   CATALOG OVERRIDES (page-katalog.hbs markup)
   ============================================================ */

.catalog-layout {
    grid-template-columns: 220px 1fr;
    gap: calc(var(--unit) * 5);
}

.catalog-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 20px);
    padding-left: calc(var(--unit) * 1.25);
}

.sidebar-toggle,
.sidebar-content {
    padding-left: 2px;
}

@media (max-width: 1024px) {
    .catalog-sidebar,
    .sidebar-toggle,
    .sidebar-content {
        padding-left: 0;
    }
}

.filter-reset--link {
    margin-top: calc(var(--unit) * 2);
    border: 0;
    background: transparent;
    color: var(--text-hint);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 11px;
    padding: 0;
    justify-content: flex-start;
}

.filter-reset--link:hover {
    color: var(--gold);
}

.catalog-toolbar {
    align-items: flex-end;
}

.catalog-toolbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: calc(var(--unit) * 2);
}

.search-field {
    position: relative;
}

.search-input {
    width: 100%;
    min-height: 42px;
    border: 0.5px solid var(--border);
    background: var(--surface);
    color: var(--text);
    padding: 0 36px 0 36px;
    border-radius: var(--radius);
}

.search-input::placeholder {
    color: var(--text-hint);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-hint);
}

.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-hint);
    cursor: pointer;
}

.search-field--toolbar {
    width: min(420px, 100%);
}

.search-field--toolbar .search-input {
    min-width: min(320px, 100%);
}

.catalog-error {
    border: 0.5px solid var(--border);
    background: var(--surface);
    padding: calc(var(--unit) * 6);
    text-align: center;
    color: var(--text-muted);
}

.fragrance-card__img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-hint);
    background: transparent;
    border: none;
    box-shadow: none;
}

.nf-section {
    margin-bottom: 24px;
}

.nf-title {
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(240, 236, 228, 0.2);
    margin-bottom: 12px;
}

.nf-search-wrap {
    position: relative;
    margin-bottom: 12px;
}

.nf-input {
    width: 100%;
    background: #111008;
    border: 0.5px solid rgba(240, 236, 228, 0.1);
    color: #f0ece4;
    padding: 10px 14px 10px 38px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.nf-input:focus {
    border-color: rgba(201, 169, 110, 0.4);
}

.nf-input::placeholder {
    color: rgba(240, 236, 228, 0.2);
}

.nf-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(240, 236, 228, 0.2);
    pointer-events: none;
}

.nf-suggest {
    background: #111008;
    border: 0.5px solid rgba(240, 236, 228, 0.1);
    border-top: none;
    display: none;
    position: absolute;
    width: 100%;
    z-index: 10;
}

.nf-suggest.show {
    display: block;
}

.nf-s-item {
    padding: 8px 14px;
    font-size: 12px;
    color: rgba(240, 236, 228, 0.45);
    cursor: pointer;
    border-bottom: 0.5px solid rgba(240, 236, 228, 0.05);
    display: flex;
    justify-content: space-between;
    transition: all 0.1s;
}

.nf-s-item:hover {
    background: rgba(201, 169, 110, 0.05);
    color: #f0ece4;
}

.nf-s-match {
    color: #c9a96e;
}

.nf-s-cnt {
    font-size: 10px;
    color: rgba(240, 236, 228, 0.2);
}

.nf-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.nf-sel-tag {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: #c9a96e;
    border: 0.5px solid rgba(201, 169, 110, 0.35);
    padding: 4px 9px;
    background: rgba(201, 169, 110, 0.05);
}

.nf-sel-x {
    cursor: pointer;
    color: rgba(201, 169, 110, 0.5);
    font-size: 12px;
    line-height: 1;
    transition: color 0.15s;
}

.nf-sel-x:hover {
    color: #c9a96e;
}

.nf-clear {
    font-size: 9px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(240, 236, 228, 0.2);
    cursor: pointer;
    margin-bottom: 14px;
    display: none;
    transition: color 0.15s;
}

.nf-clear.show {
    display: block;
}

.nf-clear:hover {
    color: #c9a96e;
}

.nf-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 12px;
}

.nf-divider-line {
    flex: 1;
    height: 0.5px;
    background: rgba(240, 236, 228, 0.07);
}

.nf-divider-text {
    font-size: 9px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(240, 236, 228, 0.18);
}

.nf-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.nf-tag {
    font-size: 10px;
    color: rgba(240, 236, 228, 0.38);
    border: 0.5px solid rgba(240, 236, 228, 0.08);
    padding: 4px 9px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 3px;
    background: transparent;
}

.nf-tag:hover {
    color: rgba(240, 236, 228, 0.65);
    border-color: rgba(240, 236, 228, 0.18);
}

.nf-tag.on {
    color: #c9a96e;
    border-color: rgba(201, 169, 110, 0.35);
    background: rgba(201, 169, 110, 0.05);
}

.nf-tag .cnt {
    font-size: 8px;
    color: rgba(240, 236, 228, 0.18);
}

.nf-tag.on .cnt {
    color: rgba(201, 169, 110, 0.4);
}

[data-theme="light"] .nf-title {
    color: var(--text-muted);
}

[data-theme="light"] .nf-input {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}

[data-theme="light"] .nf-input:focus {
    border-color: var(--gold-border);
}

[data-theme="light"] .nf-input::placeholder {
    color: var(--text-hint);
}

[data-theme="light"] .nf-icon {
    color: var(--text-hint);
}

[data-theme="light"] .nf-suggest {
    background: var(--surface);
    border-color: var(--border);
}

[data-theme="light"] .nf-s-item {
    color: var(--text-muted);
    border-bottom-color: var(--border);
}

[data-theme="light"] .nf-s-item:hover {
    background: var(--gold-muted);
    color: var(--text);
}

[data-theme="light"] .nf-s-match {
    color: var(--gold);
}

[data-theme="light"] .nf-s-cnt {
    color: var(--text-hint);
}

[data-theme="light"] .nf-sel-tag {
    color: var(--gold);
    border-color: var(--gold-border);
    background: var(--gold-muted);
}

[data-theme="light"] .nf-sel-x {
    color: rgba(154, 111, 58, 0.65);
}

[data-theme="light"] .nf-sel-x:hover {
    color: var(--gold);
}

[data-theme="light"] .nf-clear {
    color: var(--text-hint);
}

[data-theme="light"] .nf-clear:hover {
    color: var(--gold);
}

[data-theme="light"] .nf-divider-line {
    background: var(--border);
}

[data-theme="light"] .nf-divider-text {
    color: var(--text-hint);
}

[data-theme="light"] .nf-tag {
    color: var(--text-muted);
    border-color: var(--border);
}

[data-theme="light"] .nf-tag:hover {
    color: var(--text);
    border-color: var(--border-hover);
    background: rgba(26, 23, 20, 0.03);
}

[data-theme="light"] .nf-tag.on {
    color: var(--gold);
    border-color: var(--gold-border);
    background: var(--gold-muted);
}

[data-theme="light"] .nf-tag .cnt {
    color: var(--text-hint);
}

[data-theme="light"] .nf-tag.on .cnt {
    color: rgba(154, 111, 58, 0.65);
}

@media (max-width: 1024px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }
    .catalog-toolbar-right {
        width: 100%;
        margin-left: 0;
    }
    .search-field--toolbar {
        flex: 1;
        min-width: 0;
    }
    .search-field--toolbar .search-input {
        min-width: 0;
    }
}


/* ============================================================
   MOBILE RESPONSIVE FIXES
   ============================================================ */

@media (max-width: 768px) {
    .catalog-page {
        padding-left: calc(var(--unit) * 2);
        padding-right: calc(var(--unit) * 2);
        padding-top: calc(var(--unit) * 4);
        overflow-x: hidden;
    }
    .catalog-header {
        padding-left: 0;
        padding-right: 0;
        margin-bottom: calc(var(--unit) * 4);
    }
    .catalog-title {
        font-size: clamp(22px, 6vw, 28px);
        word-wrap: break-word;
        overflow-wrap: break-word;
        margin-bottom: calc(var(--unit) * 1);
    }
    .catalog-subtitle {
        font-size: clamp(14px, 3.5vw, 18px);
        word-wrap: break-word;
        margin-bottom: 0;
    }
    .catalog-header__title {
        font-size: clamp(22px, 6vw, 28px);
        word-wrap: break-word;
        margin-bottom: calc(var(--unit) * 1);
    }
    .catalog-header__subtitle {
        font-size: 13px;
        margin-bottom: calc(var(--unit) * 3);
    }
    /* Sidebar / Filters */
    .catalog-sidebar {
        padding-left: 0;
        padding-right: 0;
        margin-bottom: calc(var(--unit) * 4);
    }
    .sidebar-toggle,
    .sidebar-content {
        padding-left: 0;
    }
    .catalog-filters {
        gap: calc(var(--unit) * 3);
    }
    .filter-group {
        gap: calc(var(--unit) * 1.5);
    }
    .filter-group__label {
        font-size: 10px;
        padding-bottom: calc(var(--unit) * 0.75);
        margin-bottom: 0;
    }
    /* Note filter section */
    .nf-section {
        margin-bottom: 12px;
    }
    .nf-title {
        font-size: 8px;
        margin-bottom: 8px;
    }
    .nf-input {
        font-size: 13px;
        padding: 8px 12px 8px 32px;
    }
    .nf-icon {
        left: 10px;
    }
    .nf-tags {
        max-height: 120px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        gap: 3px;
    }
    .nf-tag {
        font-size: 9px;
        padding: 3px 7px;
        max-width: 120px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .nf-sel-tag {
        font-size: 9px;
        padding: 3px 7px;
        max-width: 120px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .nf-suggest {
        max-height: 180px;
        overflow-y: auto;
    }
    .nf-s-item {
        padding: 6px 12px;
        font-size: 11px;
    }
    /* Search */
    .search-field--toolbar {
        width: 100%;
    }
    .search-field--toolbar .search-input {
        min-width: 0;
        width: 100%;
        padding: 8px 32px 8px 32px;
        font-size: 13px;
    }
    .search-icon {
        left: 10px;
    }
    .search-clear {
        right: 10px;
    }
    /* Filter pills */
    .filter-group__options {
        max-width: 100%;
    }
    .filter-pill--sidebar {
        font-size: 9px;
        padding: 3px 8px;
        letter-spacing: 0.08em;
        max-width: 100px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    /* Toolbar */
    .catalog-toolbar {
        margin-bottom: calc(var(--unit) * 3);
        flex-direction: column;
        align-items: stretch;
        gap: calc(var(--unit) * 2);
    }
    .catalog-toolbar-right {
        width: 100%;
        margin-left: 0;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .sort-select {
        font-size: 12px;
        padding: 6px calc(var(--unit) * 3) 6px calc(var(--unit) * 1.5);
    }
    .view-toggle__btn {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .catalog-page {
        padding-left: calc(var(--unit) * 1.5);
        padding-right: calc(var(--unit) * 1.5);
        padding-top: calc(var(--unit) * 3);
    }
    .catalog-title {
        font-size: 20px;
        margin-bottom: calc(var(--unit) * 0.75);
    }
    .catalog-subtitle {
        font-size: 13px;
    }
    .catalog-header__title {
        font-size: 20px;
        margin-bottom: calc(var(--unit) * 0.75);
    }
    .catalog-header__subtitle {
        font-size: 12px;
        margin-bottom: calc(var(--unit) * 2.5);
    }
    .catalog-filters {
        gap: calc(var(--unit) * 2);
    }
    .filter-group {
        gap: calc(var(--unit) * 1);
    }
    .nf-tags {
        max-height: 100px;
        gap: 2px;
    }
    .nf-tag {
        font-size: 8px;
        padding: 2px 6px;
        max-width: 90px;
    }
    .nf-sel-tag {
        font-size: 8px;
        padding: 2px 6px;
        max-width: 90px;
    }
    .filter-pill--sidebar {
        font-size: 8px;
        padding: 3px 6px;
        max-width: 80px;
    }
    .catalog-count {
        font-size: 11px;
    }
    .search-field--toolbar .search-input {
        font-size: 12px;
        padding: 7px 28px 7px 28px;
    }
    .search-icon,
    .search-clear {
        font-size: 12px;
    }
    .sort-select {
        font-size: 11px;
        padding: 5px calc(var(--unit) * 2.5) 5px calc(var(--unit) * 1.25);
    }
}