/* =========================================================
   SHOP / ARCHIVE
   This file owns ONLY archive-page layout.
   Product card base appearance = product-cards.css
   ========================================================= */

.th-shop-shell {
    width: 100%;

    padding:
        34px 20px
        72px;

    background: #fff;
}

.th-shop-container {
    width: 100%;
    max-width: 1140px;

    margin-inline: auto;
}


/* Archive title */

.th-shop-container
.woocommerce-products-header {
    margin-bottom: 22px;
}

.th-shop-container
.woocommerce-products-header__title {
    margin: 0 0 7px;

    color: var(--th-text);

    font-size: 36px;
    line-height: 1.3;
}

.th-shop-container
.term-description {
    max-width: 620px;

    color: var(--th-muted);

    font-size: 14px;
}


/* Result count + sorting */

.th-shop-container
.woocommerce-result-count {
    float: right;

    margin:
        0 0
        18px;

    color: var(--th-muted);

    font-size: 10px;
    line-height: 38px;
}

.th-shop-container
.woocommerce-ordering {
    float: left;

    margin:
        0 0
        18px;
}

.th-shop-container
.woocommerce-ordering
select {
    min-width: 155px;
    height: 38px;

    padding-inline: 10px;

    border:
        1px solid
        var(--th-border);

    border-radius: 8px;

    background: #fff;

    color: var(--th-text);

    font-size: 10px;
}


/* Clear Woo floats before product grid */

.th-shop-container
.woocommerce-notices-wrapper::after,
.th-shop-container
.woocommerce-products-header::after {
    content: "";
    display: table;
    clear: both;
}


/* Product grid */

.th-shop-container
ul.products {
    clear: both;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 13px;
}


/* Compact cards on archive only */

.th-shop-container
ul.products
li.product
a img {
    height: 155px;

    padding: 19px;
}

.th-shop-container
ul.products
li.product
.woocommerce-loop-product__title {
    min-height: 58px;

    padding:
        12px 12px
        4px;

    font-size: 14px;
    line-height: 1.55;
}

.th-shop-container
ul.products
li.product
.price {
    padding:
        0 12px
        11px;

    font-size: 18px;
}

.th-shop-container
ul.products
li.product
.button {
    min-height: 37px;

    margin:
        auto 12px
        12px;

    font-size: 12px;
}


/* Pagination */

.th-shop-container
.woocommerce-pagination {
    clear: both;

    padding-top: 30px;
}

.th-shop-container
.woocommerce-pagination
ul.page-numbers {
    margin: 0;
    padding: 0;

    display: flex;
    justify-content: center;
    gap: 6px;

    border: 0;
}

.th-shop-container
.woocommerce-pagination
ul.page-numbers
li {
    border: 0;
}

.th-shop-container
.woocommerce-pagination
.page-numbers
a,
.th-shop-container
.woocommerce-pagination
.page-numbers
span {
    width: 35px;
    height: 35px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid
        var(--th-border);

    border-radius: 8px;

    background: #fff;

    color: var(--th-text);

    font-size: 10px;
}

.th-shop-container
.woocommerce-pagination
.page-numbers
.current {
    border-color: var(--th-blue);

    background: var(--th-blue);
    color: #fff;
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 1024px) {

    .th-shop-container {
        max-width: 1040px;
    }

    .th-shop-container
    ul.products {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767px) {

    .th-shop-shell {
        padding:
            25px 12px
            50px;
    }

    .th-shop-container {
        max-width: none;
    }

    .th-shop-container
    .woocommerce-products-header__title {
        font-size: 27px;
    }

    .th-shop-container
    .woocommerce-result-count,
    .th-shop-container
    .woocommerce-ordering {
        float: none;

        width: 100%;

        margin-bottom: 10px;
    }

    .th-shop-container
    .woocommerce-result-count {
        line-height: 1.7;

        text-align: center;
    }

    .th-shop-container
    .woocommerce-ordering
    select {
        width: 100%;
    }

    .th-shop-container
    ul.products {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 9px;
    }

    .th-shop-container
    ul.products
    li.product
    a img {
        height: 126px;

        padding: 13px;
    }

    .th-shop-container
    ul.products
    li.product
    .woocommerce-loop-product__title {
        min-height: 52px;

        padding:
            9px 9px
            3px;

        font-size: 12px;
    }

    .th-shop-container
    ul.products
    li.product
    .price {
        padding:
            0 9px
            8px;

        font-size: 14px;
    }

    .th-shop-container
    ul.products
    li.product
    .button {
        min-height: 35px;

        margin:
            auto 9px
            9px;

        font-size: 10px;
    }
}
