/* Shop / category / filter UI */
.sa-wpf-toggle {
    margin: 0 0 16px;
}

.sa-wpf-toggle__btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    background: #3f4256;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.sa-wpf-toggle__icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 15px;
    line-height: 1;
}

.sa-wpf-toggle__panel {
    margin-top: 12px;
    padding: 16px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    background: #fff;
}

button.sa-wpf-toggle__btn:hover {
    color: #fff;
}

body.post-type-archive-product #primary,
body.tax-product_cat #primary,
body.post-type-archive-product main#zak-primary,
body.tax-product_cat main#zak-primary,
body.post-type-archive-product #zak-primary,
body.tax-product_cat #zak-primary,
body.post-type-archive-product #content,
body.tax-product_cat #content,
body.post-type-archive-product .site-content,
body.tax-product_cat .site-content,
body.post-type-archive-product .zak-container,
body.tax-product_cat .zak-container,
body.post-type-archive-product .woocommerce-products-header,
body.tax-product_cat .woocommerce-products-header,
body.post-type-archive-product .page-header,
body.tax-product_cat .page-header,
body.post-type-archive-product .zak-row,
body.tax-product_cat .zak-row {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.zak-wc-filter {
    margin-bottom: 0;
}

@media (min-width: 769px) {
    body.post-type-archive-product.woocommerce ul.products,
    body.tax-product_cat.woocommerce ul.products {
        display: grid !important;
        gap: 18px !important;
        align-items: stretch !important;
    }

    body.post-type-archive-product.woocommerce ul.products.columns-1,
    body.tax-product_cat.woocommerce ul.products.columns-1 {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }

    body.post-type-archive-product.woocommerce ul.products.columns-2,
    body.tax-product_cat.woocommerce ul.products.columns-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.post-type-archive-product.woocommerce ul.products.columns-3,
    body.tax-product_cat.woocommerce ul.products.columns-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    body.post-type-archive-product.woocommerce ul.products.columns-4,
    body.tax-product_cat.woocommerce ul.products.columns-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    body.post-type-archive-product.woocommerce ul.products.columns-5,
    body.tax-product_cat.woocommerce ul.products.columns-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }

    body.post-type-archive-product.woocommerce ul.products.columns-6,
    body.tax-product_cat.woocommerce ul.products.columns-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    }

    body.post-type-archive-product.woocommerce ul.products li.product,
    body.tax-product_cat.woocommerce ul.products li.product {
        float: none !important;
        width: auto !important;
        margin: 0 !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }

    body.post-type-archive-product.woocommerce ul.products li.product a.button,
    body.tax-product_cat.woocommerce ul.products li.product a.button {
        margin-top: auto !important;
    }
}

@media (max-width: 768px) {
    body.post-type-archive-product.woocommerce ul.products li.product a.button,
    body.post-type-archive-product.woocommerce ul.products li.product .button.add_to_cart_button,
    body.post-type-archive-product.woocommerce ul.products li.product a.add_to_cart_button,
    body.tax-product_cat.woocommerce ul.products li.product a.button,
    body.tax-product_cat.woocommerce ul.products li.product .button.add_to_cart_button,
    body.tax-product_cat.woocommerce ul.products li.product a.add_to_cart_button {
        width: auto !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        border-radius: 999px !important;
        padding: 10px 14px !important;
        font-size: 13px !important;
        line-height: 1.1 !important;
        margin: 0 !important;
        max-width: 90% !important;
        white-space: nowrap;
    }

    body.post-type-archive-product.woocommerce ul.products li.product a.button::before,
    body.tax-product_cat.woocommerce ul.products li.product a.button::before {
        margin-right: 8px;
        font-size: 14px;
    }

    body.post-type-archive-product .sa-loop-card,
    body.tax-product_cat .sa-loop-card,
    body.tax-product_tag .sa-loop-card {
        align-items: stretch !important;
    }

    body.post-type-archive-product .sa-loop-card__img img,
    body.tax-product_cat .sa-loop-card__img img,
    body.tax-product_tag .sa-loop-card__img img {
        height: 100% !important;
        object-fit: cover;
        display: block;
        margin: 0 !important;
    }

    .elementor-224 .elementor-element.elementor-element-d9c4742 {
        margin-top: 0;
    }
}
