/* Sidebar */

.mw-shop-sidebar-group,
.mw-shop-sidebar-special {
    width: calc(100% - 16px);
    max-width: 180px;
}

.mw-shop-sidebar-group {
    margin: 0 0 0 auto;
    padding: 0;
    border: 0;
}


.mw-shop-sidebar-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 32px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    list-style: none;
}

.mw-shop-sidebar-title {
    color: var(--mw-color-ink);
    font-size: var(--mw-font-lg);
    font-weight: 500;
    line-height: 24px;
    letter-spacing: .7px;
    text-transform: uppercase;
}


/* Sidebar arrow */

.mw-shop-sidebar-title-arrow {
    width: 6px;
    height: 6px;
    margin-right: 5px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s ease;
}

/* Categories */

.mw-shop-sidebar-content {
    display: none;
    margin: 0;
    padding: 4px 0 0;
}

.mw-shop-category-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mw-shop-category-item {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mw-shop-category-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
}

.mw-shop-category-row > a {
    display: block;
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 8px 0;
    color: var(--mw-color-ink);
    font-size: var(--mw-font-sm);
    font-weight: 500;
    line-height: 18px;
    letter-spacing: .7px;
    overflow-wrap: anywhere;
    text-decoration: none;
    text-transform: uppercase;
    transition: color .2s ease;
}

.mw-shop-category-row > a:hover {
    color: var(--mw-color-text-faint);
}

.mw-shop-category-item.is-active > .mw-shop-category-row > a {
    font-weight: 600;
}


/* Category toggle */

.mw-shop-category-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--mw-color-ink);
    cursor: pointer;
}

.mw-shop-category-arrow {
    width: 6px;
    height: 6px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s ease;
}

.mw-shop-category-item.is-open > .mw-shop-category-row .mw-shop-category-arrow {
    transform: rotate(-135deg);
}


/* Child categories */

.mw-shop-category-item > .mw-shop-category-list {
    display: none;
    padding-left: 12px;
}

.mw-shop-category-item.is-open > .mw-shop-category-list {
    display: block;
}

.mw-shop-sidebar-content > .mw-shop-category-list {
    padding-left: 16px;
}

/* Special links */

.mw-shop-sidebar-special {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-left: auto;
}

.mw-shop-sidebar-special a {
    display: block;
    min-height: 32px;
    padding: 6px 0;
    color: var(--mw-color-ink);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: .7px;
    text-decoration: none;
    text-transform: uppercase;
    transition: color .2s ease;
}

.mw-shop-sidebar-special a:hover {
    color: var(--mw-color-text-faint);
}

/* Main category toggle */

.mw-shop-sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--mw-color-ink);
    cursor: pointer;
}

.mw-shop-sidebar-content.is-open {
    display: block;
}

.mw-shop-sidebar-toggle[aria-expanded="true"] .mw-shop-sidebar-title-arrow {
    transform: rotate(-135deg);
}

.mw-shop-sidebar-toggle[aria-expanded="false"] .mw-shop-sidebar-title-arrow {
    transform: rotate(45deg);
}

/* Title */

.mw-shop-title {
    margin: 0 0 12px;
    color: var(--mw-color-ink);
    font-size: 27px;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-transform: uppercase;
}


/* Toolbar */

.mw-shop-toolbar {
    display: flex;
    align-items: center;
    gap: 28px;

    /*margin-bottom: 22px;*/
    padding-top: 12px;
}


/* Filter */

.mw-shop-filter-button {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--mw-color-ink);
    font: inherit;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
}

.mw-shop-filter-arrow {
    position: relative;
    display: inline-block;

    width: 11px;
    height: 11px;

    border: 0;
    transform: none;
}

/* pozioma kreska + */
.mw-shop-filter-arrow::before {
    content: "";
    position: absolute;

    top: 50%;
    left: 0;

    width: 11px;
    height: 1px;

    background: currentColor;
    transform: translateY(-50%);
}

/* pionowa kreska + */
.mw-shop-filter-arrow::after {
    content: "";
    position: absolute;

    top: 0;
    left: 50%;

    width: 1px;
    height: 11px;

    background: currentColor;
    transform: translateX(-50%);
}

/* Sorting */

.mw-shop-ordering {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--mw-color-ink);
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
}

.mw-shop-ordering-label {
    color: var(--mw-color-ink);
}

.mw-shop-ordering .woocommerce-ordering {
    margin: 0;
}

.mw-shop-ordering select {
    height: auto;
    margin: 0;
    padding: 0 24px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--mw-color-ink);
    font: inherit;
    font-size: 12px;
}


/* Products */

.mw-shop-main ul.products {
    display: grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap: 15px 5px;
    margin-top: 12px;
    padding: 0;
}

.mw-shop-main ul.products::before,
.mw-shop-main ul.products::after {
    display: none;
}

.mw-shop-main ul.products li.product .product-loop-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center;
}

.mw-shop-main ul.products li.product .product-loop-content {
    padding: 10px 2px;
    line-height: 15px;
}

.mw-shop-main ul.products li.product .product-loop-meta,
.mw-shop-main ul.products li.product .animated-meta {
    line-height: 15px;
}

.mw-shop-main ul.products li.product .woocommerce-loop-product__title {
    /* Reserve two lines without clipping longer product names. */
    max-width: 300px;
    min-height: 30px;
    margin: 0 auto 0;
    padding: 0;
    font-size: var(--mw-font-xs);
    font-weight: var(--mw-font-regular);
    line-height: 15px;
    letter-spacing: .7px;
}

.mw-shop-main ul.products li.product .woocommerce-loop-product__title a {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
}

.mw-shop-main ul.products li.product .price {
    display: block;
    margin: 0;
    font-size: var(--mw-font-xs);
    font-weight: 700;
    line-height: 15px;
    letter-spacing: .7px;
}

.mw-shop-main ul.products li.product .price .amount,
.mw-shop-main ul.products li.product .price bdi,
.mw-shop-main ul.products li.product .price .woocommerce-Price-currencySymbol {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
}

.mw-shop-main ul.products li.product .price del {
    color: #999 !important;
    font-size: var(--mw-font-xs);
    font-weight: var(--mw-font-regular);
    opacity: 1 !important;
}

.mw-shop-main ul.products li.product .price ins {
    color: #222 !important;
    font-size: var(--mw-font-xs);
    font-weight: 700 !important;
    text-decoration: none !important;
}

.mw-shop-main .mw-product-polish-badge {
    padding: 4px 7px;
    border-color: var(--mw-color-border-light);
}


/* Product card */

.mw-shop-main ul.products li.product {
    width: auto !important;
    margin: 0 0 0px;
    float: none !important;
    text-align: center;
}

/* ==========================================
   NO PRODUCTS FOUND
   ========================================== */

.mw-shop-main .woocommerce-no-products-found {
    margin-top: 36px;
}

.mw-shop-main .woocommerce-no-products-found .woocommerce-info {
    margin: 0;
    padding: 0;

    border: 0;
    background: transparent;

    color: var(--mw-color-text-muted);

    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;

    text-align: left;
}

/* Usuń domyślną ikonę WooCommerce */
.mw-shop-main .woocommerce-no-products-found .woocommerce-info::before {
    display: none;
}

/* Desktop catalog layout */

@media (min-width: 992px) {

    body #content > .woostify-container {
        max-width: 960px;
        margin-inline: auto;
        padding-inline: 24px;
    }

    .mw-shop-layout {
        grid-template-columns: 180px minmax(0, 1fr);
        column-gap: 24px;
    }

    .mw-shop-layout > .mw-shop-sidebar {
        width: auto;
        padding-inline: 0;
    }

    .mw-shop-sidebar > .mw-shop-sidebar-group,
    .mw-shop-sidebar > .mw-shop-sidebar-special {
        width: 100%;
        margin-left: 0;
    }

    .mw-shop-sidebar-content > .mw-shop-category-list {
        padding-left: 10px;
    }

    /* The main wrapper can be nested; reset only the grid's direct child. */
    .mw-shop-layout > .mw-shop-main {
        padding-inline: 0;
    }

    /* Align the product grid with its title and toolbar. */
    .mw-shop-layout > .mw-shop-main ul.products {
        width: auto;
        margin-left: 0;
        margin-right: 0;
    }
}

@media (min-width: 1200px) {

    body #content > .woostify-container {
        max-width: 1140px;
    }
}

@media (min-width: 1690px) {

    body #content > .woostify-container {
        max-width: var(--mw-container-max-narrow);
    }
}

/* Tablet */

@media (max-width: 900px) {

    .mw-shop-layout {
        grid-template-columns:190px minmax(0, 1fr);
        column-gap: 35px;
    }

    .mw-shop-sidebar {
        width: 190px;
    }

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

/* Mobile subcategories */

.mw-mobile-subcategories {
    display: none;
}

/* Mobile */

@media (max-width: 700px) {

    .mw-shop-layout {
        display: block;
        /*padding: 20px 0 40px;*/
    }

    .mw-shop-sidebar {
        display: none;
    }

    .mw-shop-breadcrumbs {
        margin: 0;
    }

    .mw-shop-title {
        display: none;
    }

    .mw-shop-toolbar {
        justify-content: space-between;
        gap: 15px;
        margin-bottom: 22px;
    }

    .mw-shop-ordering-label {
        display: none;
    }

    .mw-shop-ordering select {
        min-width: 120px;
        max-width: 160px;
    }

    .mw-shop-main ul.products {
        grid-template-columns:repeat(2, minmax(0, 1fr));
        width: auto;
        margin-left: 8px;
        margin-right: 8px;
        padding-left: 2.5px;
        padding-right: 2.5px;
    }

    .mw-mobile-subcategories {
        display: block;
        width: 100%;
        margin-bottom: 0px;
    }

    .mw-mobile-subcategories-trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;

        width: 100%;
        min-height: 52px;
        margin: 0;
        padding: 0 4px;

        border: 0;
        border-bottom: 1px solid var(--mw-color-border-light);

        background: transparent;
        color: var(--mw-color-ink);

        font-family: var(--mw-font-primary);
        font-size: var(--mw-font-sm);
        font-weight: var(--mw-font-medium);
        letter-spacing: .04em;

        cursor: pointer;
    }

    .mw-mobile-subcategories-arrow {
        width: 7px;
        height: 7px;

        margin-right: 4px;

        border-right: 1px solid currentColor;
        border-bottom: 1px solid currentColor;

        transform: rotate(45deg);
    }

    .mw-subcategories-modal {
        position: fixed;
        inset: 0;

        display: none;

        z-index: 9999;
    }

    .mw-subcategories-modal.is-open {
        display: block;
    }

    .mw-subcategories-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, .15);
    }

    .mw-subcategories-dialog {
        position: absolute;
        top: 140px;
        left: 50%;

        width: calc(100% - 32px);
        max-width: 390px;
        min-height: 340px;

        padding: 18px 28px 30px;

        transform: translateX(-50%);

        background: var(--mw-color-background);
    }

    .mw-subcategories-dialog h2 {
        margin: 0 0 28px;

        color: var(--mw-color-ink);

        font-size: var(--mw-font-lg);
        font-weight: var(--mw-font-medium);
        letter-spacing: .04em;

        text-align: center;
    }

    .mw-subcategories-close {
        position: absolute;
        top: 16px;
        right: 16px;

        width: 34px;
        height: 34px;
        padding: 0;

        border: 0;
        background: transparent;

        cursor: pointer;
    }

    .mw-subcategories-close::before,
    .mw-subcategories-close::after {
        content: "";

        position: absolute;
        top: 50%;
        left: 50%;

        width: 24px;
        height: 1px;

        background: var(--mw-color-ink);
    }

    .mw-subcategories-close::before {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .mw-subcategories-close::after {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    .mw-subcategories-list {
        display: flex;
        flex-direction: column;
    }

    .mw-subcategories-list a {
        display: flex;
        align-items: center;

        min-height: 44px;

        color: var(--mw-color-text-muted);

        font-size: var(--mw-font-base);
        font-weight: var(--mw-font-regular);
        letter-spacing: .04em;

        text-decoration: none;
    }

    .mw-subcategories-list a {
        display: flex;
        align-items: center;
        justify-content: space-between;

        min-height: 44px;

        color: var(--mw-color-text-muted);

        font-size: var(--mw-font-base);
        font-weight: var(--mw-font-regular);
        letter-spacing: .04em;

        text-decoration: none;
    }

    .mw-subcategories-list a::after {
        content: "";

        width: 7px;
        height: 7px;

        margin-left: 16px;
        margin-right: 4px;

        border-right: 1px solid currentColor;
        border-bottom: 1px solid currentColor;

        transform: rotate(-45deg);

        flex: 0 0 auto;
    }

    body.mw-modal-open {
        overflow: hidden;
    }
}
