
/* Timimi V2 - Category / shop listing */
.tm-shop-page {
    padding: 30px 0 72px;
    background: #fff;
}

.tm-shop-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
    color: #8b9a9d;
    font-size: 13px;
}

.tm-shop-breadcrumb a {
    color: #6e8589;
    text-decoration: none;
}

.tm-shop-breadcrumb a:hover {
    color: #73cdd7;
}

.tm-shop-breadcrumb strong {
    color: #536c70;
    font-weight: 700;
}

.tm-shop-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    padding: 10px 0 30px;
}

.tm-shop-heading h1 {
    margin: 5px 0 5px;
    color: #5f7b80;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.05;
}

.tm-shop-heading p {
    margin: 0;
    color: #8b999c;
    font-size: 14px;
}

.tm-shop-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.tm-shop-filters {
    position: sticky;
    top: 104px;
    border: 1px solid #e3eff0;
    border-radius: 18px;
    padding: 7px 18px 18px;
    background: #f8fcfc;
}

.tm-shop-filters__mobile-head {
    display: none;
}


.tm-shop-search {
    padding: 15px 0 17px;
    border-bottom: 1px solid #e4eeee;
}

.tm-shop-search > label,
.tm-browse-products > h2,
.tm-refine-title {
    display: block;
    margin: 0 0 10px;
    color: #5c777c;
    font-size: 15px;
    font-weight: 800;
}

.tm-shop-search__box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    overflow: hidden;
    border: 1px solid #d9e8ea;
    border-radius: 11px;
    background: #fff;
}

.tm-shop-search__box:focus-within {
    border-color: #73cdd7;
    box-shadow: 0 0 0 3px rgba(115, 205, 215, .13);
}

.tm-shop-search__box input {
    min-width: 0;
    height: 39px;
    border: 0;
    padding: 0 11px;
    outline: none;
    background: transparent;
    color: #536c70;
    font: inherit;
    font-size: 13px;
}

.tm-shop-search__box input::placeholder {
    color: #a0adaf;
}

.tm-shop-search__box button {
    border: 0;
    border-left: 1px solid #e4eeee;
    background: #73cdd7;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.tm-browse-products {
    padding: 17px 0 14px;
    border-bottom: 1px solid #e4eeee;
}

.tm-browse-group {
    border-top: 1px solid #edf3f4;
}

.tm-browse-group:first-of-type {
    border-top: 0;
}

.tm-browse-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 0;
    color: #60777b;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.tm-browse-group summary::-webkit-details-marker {
    display: none;
}

.tm-browse-group summary::after {
    content: "+";
    margin-left: auto;
    color: #8ca0a3;
    font-size: 16px;
    font-weight: 600;
}

.tm-browse-group[open] summary::after {
    content: "−";
}

.tm-browse-group summary .tm-browse-count {
    margin-left: auto;
}

.tm-browse-links {
    display: grid;
    gap: 3px;
    padding: 0 0 9px;
}

.tm-browse-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 8px;
    color: #748689;
    text-decoration: none;
    font-size: 12.5px;
    line-height: 1.3;
}

.tm-browse-links a:hover {
    background: #eef9fa;
    color: #52777c;
}

.tm-browse-links a.is-active {
    background: #dff4f7;
    color: #4f7479;
    font-weight: 800;
}

.tm-browse-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #edf5f6;
    color: #829396;
    font-size: 10px;
    font-weight: 800;
}

.tm-browse-links a.is-active .tm-browse-count {
    background: #fff;
    color: #5d8d93;
}

.tm-refine-title {
    margin: 0;
    padding: 17px 0 0;
}

.tm-filter-group {
    border: 0;
    margin: 0;
    padding: 17px 0 15px;
    border-bottom: 1px solid #e4eeee;
}

.tm-filter-group legend {
    width: 100%;
    margin: 0 0 10px;
    color: #5c777c;
    font-size: 15px;
    font-weight: 800;
}

.tm-filter-check {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    margin: 8px 0;
    color: #6b7d80;
    font-size: 13px;
    line-height: 1.35;
    cursor: pointer;
}

.tm-filter-check input {
    width: 16px;
    height: 16px;
    margin: 1px 0 0;
    accent-color: #73cdd7;
    flex: 0 0 auto;
}

.tm-filter-actions {
    display: grid;
    gap: 8px;
    padding-top: 16px;
}

.tm-filter-actions .tm-button {
    min-height: 42px;
    padding: 9px 14px;
    font-size: 13px;
}

.tm-shop-results {
    min-width: 0;
}

.tm-shop-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 44px;
    margin-bottom: 20px;
}

.tm-filter-open {
    display: none;
}

.tm-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tm-sort label {
    color: #849396;
    font-size: 12px;
    font-weight: 700;
}

.tm-sort select {
    min-height: 40px;
    border: 1px solid #dfeaec;
    border-radius: 11px;
    padding: 0 34px 0 12px;
    background: #fff;
    color: #596f73;
    font: inherit;
    font-size: 13px;
}

.tm-shop-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 34px 22px;
}

.tm-add-button--link {
    text-decoration: none;
}

.tm-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-top: 38px;
    padding-top: 24px;
    border-top: 1px solid #edf2f3;
}

.tm-pagination a,
.tm-pagination strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    border-radius: 10px;
    color: #60777b;
    text-decoration: none;
    font-size: 13px;
}

.tm-pagination > a {
    padding: 0 12px;
    border: 1px solid #e0eaec;
}

.tm-pagination a:hover {
    border-color: #bde3e7;
    background: #f4fbfc;
}

.tm-pagination__pages {
    display: flex;
    gap: 5px;
}

.tm-pagination__pages strong {
    background: #73cdd7;
    color: #fff;
}

.tm-shop-empty {
    border: 1px solid #e4eeee;
    border-radius: 22px;
    padding: 54px 28px;
    text-align: center;
    background: #fbfdfd;
}

.tm-shop-empty h2 {
    margin: 8px 0 8px;
    color: #5c777c;
    font-size: 28px;
}

.tm-shop-empty p {
    margin: 0 auto 22px;
    max-width: 440px;
    color: #839194;
}

.tm-filter-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(45, 65, 68, .28);
    opacity: 0;
    visibility: hidden;
    transition: .2s ease;
}

.tm-shop-not-found {
    max-width: 720px;
    margin: 90px auto;
    padding: 20px;
    text-align: center;
}

@media (max-width: 1050px) {
    .tm-shop-layout {
        grid-template-columns: 235px minmax(0, 1fr);
        gap: 24px;
    }

    .tm-shop-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 30px 18px;
    }
}

@media (max-width: 760px) {
    .tm-shop-page {
        padding-top: 22px;
    }

    .tm-shop-heading {
        padding-bottom: 20px;
    }

    .tm-shop-layout {
        display: block;
    }

    .tm-shop-toolbar {
        justify-content: space-between;
        gap: 12px;
    }

    .tm-filter-open {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        min-height: 40px;
        border: 1px solid #cfe8eb;
        border-radius: 11px;
        padding: 0 13px;
        background: #f3fbfc;
        color: #5c777c;
        font: inherit;
        font-size: 13px;
        font-weight: 800;
    }

    .tm-filter-open span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 20px;
        height: 20px;
        border-radius: 999px;
        background: #73cdd7;
        color: #fff;
        font-size: 11px;
    }

    .tm-shop-filters {
        position: fixed;
        z-index: 90;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(88vw, 340px);
        overflow-y: auto;
        border: 0;
        border-radius: 0 20px 20px 0;
        padding: 16px 20px 24px;
        background: #fff;
        box-shadow: 12px 0 35px rgba(58, 78, 82, .16);
        transform: translateX(-105%);
        transition: transform .22s ease;
    }

    .tm-shop-filters__mobile-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 2px 0 8px;
    }

    .tm-shop-filters__mobile-head strong {
        color: #5f777c;
        font-size: 20px;
    }

    .tm-shop-filters__mobile-head button {
        width: 38px;
        height: 38px;
        border: 0;
        border-radius: 50%;
        background: #f0f7f8;
        color: #60777b;
        font-size: 25px;
    }

    body.tm-filters-open {
        overflow: hidden;
    }

    body.tm-filters-open .tm-shop-filters {
        transform: translateX(0);
    }

    body.tm-filters-open .tm-filter-overlay {
        opacity: 1;
        visibility: visible;
    }

    .tm-shop-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 14px;
    }
}

@media (max-width: 520px) {
    .tm-shop-products {
        gap: 14px;
    }

    .tm-sort label {
        display: none;
    }

    .tm-sort select {
        max-width: 185px;
    }

    .tm-pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .tm-pagination__pages {
        order: -1;
        width: 100%;
        justify-content: center;
    }
}


.tm-browse-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 7px;
    padding: 8px 9px;
    border-radius: 9px;
    background: #F5FAFB;
    color: #5C777C;
    font-size: 12.5px;
    font-weight: 850;
    text-decoration: none;
}
.tm-browse-all:hover { background: #EEF9FA; color: #4F7479; }
.tm-browse-all.is-active { background: #DFF4F7; color: #4F7479; }
