/* ==========================================================================
   category.css - category listing and shop page
   ========================================================================== */

.cat-head {
    padding: 26px 0 14px;
}

.cat-title {
    font-size: 27px;
    margin-bottom: 6px;
}

.cat-desc {
    color: #6b7b72;
    max-width: 720px;
    margin: 0;
}

/* --- Sub-category chips -------------------------------------------------- */

.cat-children {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.cat-chip {
    display: inline-block;
    padding: 7px 15px;
    border: 1px solid #e3e8e5;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #1c2620;
    background: #ffffff;
}

.cat-chip:hover {
    background: #0f7a3c;
    border-color: #0f7a3c;
    color: #ffffff;
}

/* --- Toolbar ------------------------------------------------------------- */

.cat-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    margin-bottom: 4px;
    border-bottom: 1px solid #e3e8e5;
}

.cat-count {
    margin: 0;
    font-size: 14px;
    color: #6b7b72;
}

.cat-count strong {
    color: #1c2620;
}

.cat-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.cat-sort label {
    color: #6b7b72;
    white-space: nowrap;
}

.cat-sort select {
    border: 1px solid #e3e8e5;
    border-radius: 4px;
    padding: 7px 10px;
    font-size: 14px;
    background: #ffffff;
    color: #1c2620;
}

.cat-sort select:focus {
    outline: none;
    border-color: #0f7a3c;
}

/* --- Search page form  ----------------------- */

.search-page-form {
    display: flex;
    gap: 9px;
    max-width: 560px;
    margin-bottom: 26px;
}

.search-page-form input {
    flex: 1;
    min-width: 0;
    border: 1px solid #e3e8e5;
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 15px;
}

.search-page-form input:focus {
    outline: none;
    border-color: #0f7a3c;
    box-shadow: 0 0 0 3px rgba(15, 122, 60, .12);
}

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 575.98px) {
    .cat-title {
        font-size: 22px;
    }

    .cat-toolbar {
        justify-content: space-between;
    }

    .cat-sort label {
        display: none;
    }
}
