/* Searchable product collection. All product links are in the HTML. */
.catalog-sidebar,
.catalog-main {
    min-width: 0;
}

.catalog-section {
    display: grid;
    grid-template-columns: 225px minmax(0, 1fr);
    gap: 4vw;
    padding-block: 55px 100px;
}

.catalog-sidebar h2 {
    font-size: 26px;
    margin-bottom: 25px;
}

.category-list {
    border-top: 1px solid var(--line);
}

.category-button {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    text-align: left;
    padding: 12px 7px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}

.category-button span {
    color: #999;
    font-size: 13px;
}

.category-button.active, .category-button:hover {
    color: var(--copper);
    background: #efece5;
    padding-left: 13px;
}

.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 35px;
}

.catalog-toolbar .eyebrow {
    margin-bottom: 10px;
}

.catalog-toolbar h2 {
    font-size: 34px;
}

.catalog-toolbar p:last-child {
    font-size: 13px;
    color: var(--muted);
    margin-top: 10px;
}

.search-field {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #9eaaa4;
    padding-bottom: 10px;
}

.search-field input {
    border: 0;
    width: 215px;
    background: transparent;
    font-size: 13px;
    padding: 7px 0;
}

.catalog-main .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 35px 25px;
}

.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 60px;
}

.pagination button {
    min-width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    font-size: 13px;
}

.pagination button[aria-current="page"] {
    background: var(--ink);
    color: white;
    border-color: var(--ink);
}

/* Page surface and material contrast. */
.catalog-sidebar {
    background: #f5f4f1;
    padding: 20px;
    border-top: 4px solid #98714d;
}

.catalog-toolbar {
    border-bottom: 2px solid #303537;
}

@media (max-width: 1023px) {
    .catalog-section {
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 30px;
    }

    .catalog-main .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-field input {
        width: 100%;
    }

}

@media (max-width: 767px) {
    .catalog-section {
        grid-template-columns: 1fr;
        padding-top: 30px;
        gap: 35px;
    }

    .catalog-sidebar .eyebrow {
        display: none;
    }

    .catalog-sidebar h2 {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .category-list {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 4px 3px 12px;
        border-top: 0;
    }

    .category-button {
        width: auto;
        flex-shrink: 0;
        border: 1px solid var(--line);
        padding: 9px 12px;
        font-size: 13px;
    }

    .category-button.active {
        background: var(--ink);
        color: white;
        padding-left: 12px;
    }

    .catalog-toolbar {
        gap: 22px;
    }

    .catalog-toolbar h2 {
        font-size: 28px;
    }

    .catalog-main .product-grid {
        gap: 30px 16px;
    }

    .pagination {
        gap: 5px;
    }

    .pagination button {
        min-width: 35px;
        height: 35px;
    }

}
