.shop-wrapper {
    display: grid;
    gap: var(--desktop-gap);
    width: var(--desktop-shop-content);
    margin: var(--desktop-gap) auto;
    padding: 0 var(--default-content-padding);
    @media (width>=48em) {
        grid-template-columns: 18rem auto
    }
}

.shop-wrapper .woocommerce .products {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(min(21rem, 100%),1fr));
    margin-block-start:2rem}

.product-box {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #ddd;
    padding: 1rem;
    height: 100%;
    gap: 8px;
    
    

    .shop-wrapper &:not([data-ff-post-id]) {

        & > * {
            visibility: hidden;
        }
    }
}

.product-box .product-price span.amount {
    color: var(--main-accent);
    font-weight: 600;
}

.product-box li.fibofilters-product-placeholder {
    border: 1px solid #000;
    padding: 1rem;
    height: 407px
}

.shop-wrapper .woocommerce.columns-4 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    &>* {
        grid-column: span 2
    }

    &>.cyb-btn-filters-toggle {
        grid-column: 1;
        @media (width>=48em) {
            display: none
        }
    }

    &>.woocommerce-ordering {
        grid-column: 2;
        margin-block-end:0}
}

.cyb-btn-filters-toggle {
    align-items: center;
    border: 1px solid #ccc;
    display: flex;
    justify-content: center;
    padding-block:.5em;padding-inline:1em}

.product-box .img-box {
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home .product-box .img-box,
.home .product-box {
    border-radius: 120px;
}

.product-icons {
    margin: auto;
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    width: 150px;
    padding: 4px 2rem;
    background-color: #fff;
    order: 2;
} 

.product-icons .icon.bg {
    width: 24px;
    height: 24px;
    display: block;
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
    display: flex
}

.product-icons .icon.bg.loader {
    animation: spin 1s linear infinite;
}
.product-icons .icon.bg { 
    transition: background-image 0.2s ease;
}

.product-icons .icon.bg.loader,
button.close-modal-btn.icon.bg {
    width: 1.45rem;
    height: 1.45rem
}

.shop-wrapper .products-wrapper .woocommerce-notices-wrapper {
    display: none
}
/* .woocommerce-notices-wrapper .woocommerce-message {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 1rem;
} */
.product-box.out-of-stock a.icon.add-to-cart {
    display: none
}

.product-box a.icon.check-product {
    display: none
}

.product-box.out-of-stock a.icon.check-product {
    display: flex
}

.shop-wrapper .pagination {
    display: flex;
    gap: 4px;
    width: 100%;
    justify-content: center;
    align-items: center
}

.shop-wrapper .woocommerce.berocket_aapf_true {
    width: 100%
}

.product-price {
    display: flex;
    justify-content: center;
    align-items: center
}

.product-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-self: stretch;
    justify-content: stretch
}

.shop-wrapper aside.filters {
    &:not([data-visible]) {
        @media (width < 48em) {
            display: none
        }
    }
}

.shop-wrapper aside.filters {
    position: relative
}

.shop-wrapper aside.filters .box {
    position: sticky;
    top: 6rem;
    display: block;
    max-height: 78vh;
    overflow-y: scroll;
    padding-right: 8px
}

.shop-wrapper .products h3.product-title a {
    font-family: var(--font-secondary-regular-family);
    text-align: center;
    display: block;
    font-size: 1.15rem;
    font-weight: var(--font-secondary-bold-weight);
    transition: .4s
}

.shop-wrapper .products h3.product-title:hover a {
    color: var(--main-accent)
}

.shop-wrapper form.woocommerce-ordering {
    display: flex;
    justify-content: right;
    margin-bottom: 1rem;
    &>select {
        border: 1px solid #ccc;
        padding: .5em;
        @media (width < 48em) {
            width: 100%
        }
    }
}

.shop-wrapper nav.woocommerce-pagination ul {
    border: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    &>li {
        border: 0;
        &>a,&>span {
            align-items: center;
            block-size: 3em;
            border-radius: 999999rem;
            display: flex;
            inline-size: 3em;
            justify-content: center
        }
    }
}

.shop-wrapper nav.woocommerce-pagination ul span.page-numbers.current {
    font-weight: var(--font-secondary-bold-weight)
}

section.archive-category-desc {
    max-inline-size: var(--layout-max-inline-size);

    & h3 {
        font-size: 2rem;
        line-height: 1.25;
        margin-block-end: 1em;
        text-wrap: balance;
    }

    & p {
        font-size: 1rem;
        line-height: 1.5;
        margin-block: 1em;
        text-wrap: pretty;
    }

    .page-content & {
        margin-block-end: 4rem;
    }
}

.product-content .main span.label,.product-box span.label {
    color: var(--tlo-background);
    text-transform: uppercase;
    font-size: .75rem;
    padding: 4px 12px;
    border-radius: var(--default-radius);
    display: block
}

.attribute-label,.labels-box {
    display: flex;
    gap: 6px;
    position: absolute;
    top: 0;
    flex-wrap: wrap;
    max-width: fit-content;
    align-items: center;
    justify-content: flex-start
}

.attribute-label {
    top: 2rem;
    margin: auto;
    text-align: center;
    left: 0;
    right: 0;
    display: block
}

.product-box span.label.attribute {
    word-wrap: break-word;
    overflow-wrap: break-word
}

.shop-wrapper p.search-not-found {
    margin: auto;
    font-weight: var(--font-secondary-bold-weight)
}

.slider.products h3.product-title {
    line-height: 0;
    text-align: center;
    font-weight: var(--font-secondary-bold-weight)
}

.product-box.out-of-stock span.label.sold-out {
    display: block;
    color: var(--text);
    z-index: 1;
    background: var(--tlo-background);
    white-space: nowrap
}

.product-box img {
    margin: auto
}

.product-box.out-of-stock {
    opacity: .65
}

.product-box .product-icons a.icon:before {
    color: var(--tlo-background);
    background: var(--text);
    display: none;
    z-index: 2;
    position: absolute;
    top: -2.45rem;
    left: 0;
    right: 0;
    text-align: center;
    font-size: .75rem;
    padding: 3px 12px;
    width: 100%;
    margin: auto;
    height: 2rem;
    justify-content: center;
    align-items: center
}

.product-box .product-icons a.icon.add-to-cart:hover:before {
    display: flex;
    content: 'Dodaj do koszyka'
}

.product-box .product-icons a.icon.check-product:hover:before {
    display: flex;
    content: 'Zobacz produkt'
}

.product-box .product-icons a.icon.add-to-wishlist:hover:before {
    display: flex;
    content: 'Dodaj do ulubionych';
    line-height: 1.15em
}

.woocommerce-notices-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    align-items: center;
    justify-content: flex-start;
    margin: auto
}

.woocommerce-notices-wrapper ul {
    display: flex;
    flex-direction: column;
    gap: 2rem
}

.woocommerce-notices-wrapper a.button {
    color: var(--tlo-background);
    border-radius: var(--default-radius);
    text-transform: uppercase;
    padding: 8px 1rem;
    width: fit-content;
    margin: auto;
    min-width: unset;
    text-align: center;
    text-align: center;
    transition: transform 0.4s ease-in-out;
    will-change: transform;
    background-color: var(--main-accent);
    font-size: 1rem
}

.woocommerce-notices-wrapper a.button:hover {
    transform: scale(1.1)
}

.woocommerce-notices-wrapper div {
    display: flex;
    gap: 8px;
    /* align-items: center; */
    flex-direction: column;
    width: 100%;
    margin-bottom: 2rem;
}

abbr.required {
    text-decoration: none;
    font-weight: var(--font-secondary-bold-weight);
    color: var(--accent-red)
}

fieldset.shipping-methods-group {
    border: 1px solid #ccc;
    padding: 1rem
}

fieldset legend {
    width: fit-content;
    white-space: nowrap;
    padding: 6px 1rem;
    margin-left: -17px
}

fieldset .shipping-option label {
    display: flex;
    align-items: center;
    gap: 1rem
}

fieldset .shipping-option {
    padding: 8px 0
}

.product-box a.icon svg {
    width: 1.45rem;
    height: 1.45rem;
    transition: .4s
}

.product-box a.icon {
    display: flex;
    justify-content: center;
    align-items: center
}

.product-box svg#shopping-cart {
    transform: scaleX(-1)
}

.product-box a.icon:hover svg {
    fill: var(--main-accent);
    color: var(--main-accent)
}

@keyframes spin {
    from {
        transform: rotate(0deg)
    }

    to {
        transform: rotate(360deg)
    }
}

a.remove-product svg {
    width: 1.15rem;
    height: 1.15rem;
    display: flex;
    justify-content: center;
    align-items: center
}

a.remove-product svg path {
    stroke: var(--text);
    transition: .4s
}

a.remove-product:hover svg path {
    stroke: var(--accent-red)
}

p.stock.in-stock {
    display: none
}

ul.product-attributes .info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid rgb(0 0 0 / .1);
    padding: 8px 0
}

ul.product-attributes .info-row:last-child {
    border: none
}

ul.product-attributes .info-row .attribute-name {
    font-weight: 700
}

ul.product-attributes {
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-direction: column
}

.product-content .product-gallery {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    &:has(.flex-viewport) {
        grid-template-columns: auto 1fr
    }
}

.fibofilters-items-search input[type=search] {
    cursor: auto
}

.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    margin: 2em auto;
    border-top: 3px solid var(--main-accent);
    width: var(--desktop-content);
}

/* Share Cart */
table.shop_table {
    margin-bottom: 35px;
    width: 100%;
    border-spacing: 0;
    border-collapse: collapse;
    line-height: 1.4;
}

table.shop_table thead,
table.shop_table tr,
table.shop_table th,
table.shop_table tbody {
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: baseline;
    font: inherit;
    font-size: 100%;
}

table.shop_table th {
    padding: 15px 10px;
    border-bottom: 2px solid rgba(0,0,0,0.075);
    color: #222;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: normal;
    font-family: "Satoshi Regular";
    vertical-align: middle;
    text-align: start;
}

table.shop_table label {
    display: block;
    margin-bottom: 5px;
    color: #222;
    font-weight: 400;
}

table.shop_table td {
    padding: 15px 12px;
    border-bottom: 1px solid rgba(0,0,0,0.105);
    vertical-align: middle;
    text-align: start;
}

table.shop_table td.product-price,
table.shop_table th.product-price {
    display: table-cell;
}

table.shop_table td.product-thumbnail img {
    max-height: 12rem;
    width: auto;
}

table.shop_table td,
table.shop_table a {
    color: var(--main-accent);
}

table.shop_table button[type="submit"],
.wpcss-copy-btn input {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    outline: none;
    vertical-align: middle;
    text-align: center;
    text-decoration: none;
    text-shadow: none;
    line-height: 1.2;
    cursor: pointer;
    transition: all .25s ease;
    color: #3E3E3E;
    border: 0px solid #E9E9E9;
    background-color:#F3F3F3;
    box-shadow: unset;
    text-transform: uppercase;
    font-weight: 600;
    padding: 5px 20px;
    min-height: 42px;
    font-size: 13px;
    border-radius: 35px;
}

table.shop_table button[type="submit"]:hover {
    transform: scale(1.1);
}

.page-content.page-share-cart {
    max-width: 1480px;
    width: 100%;
    padding: 0 1.45rem !important;
    margin: 0 auto !important;
}

.page-share-cart .wpcss-share {
    margin-bottom: 35px;
    padding: 0 12px;
    flex-wrap: wrap;
}

.page-share-cart #wpcss_copy_url {
    padding: 0 15px;
    max-width: 100%;
    width: 100%;
    height: 42px;
    border: 2px solid rgba(0,0,0,.1);
    border-radius: 5px;
    background-color: transparent;
    box-shadow: none;
    color: inherit;
    vertical-align: middle;
    font-size: 14px;
    transition: border-color .5s ease;
}

.page-share-cart .wpcss-copy-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wpcss-copy-btn input {
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0;
}

/* Lost password */
.woocommerce-lost-password main.page-content .my-account-wrapper .woocommerce {
    display: block;
    margin-bottom: 5rem;
}

.woocommerce-lost-password .woocommerce .lost_reset_password {
    margin-right: auto;
    margin-left: auto;
    padding-top: 40px;
    max-width: 470px;
    font-size: 110%;
}

.lost_reset_password p {
    margin-bottom: 20px;
}

.lost_reset_password .form-row-first {
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.105);
}

.lost_reset_password input {
    padding: 0 15px;
    max-width: 100%;
    width: 100%;
    height: 42px;
    border: 2px solid rgba(0,0,0,.1);
    border-radius: 5px;
    background-color: transparent;
    box-shadow: none;
    color: inherit;
    vertical-align: middle;
    font-size: 14px;
    transition: border-color .5s ease;
}

.woocommerce-lost-password main.page-content .my-account-wrapper .woocommerce-Button, main.page-content .my-account-wrapper .button {
    width: 100%;
}

main.page-content .my-account-wrapper .woocommerce-message {
    width: 100%;
}

main.page-content .my-account-wrapper .woocommerce-error {
    border-top-color: red;
    width: 100%;
}

@media (max-width: 520px) {
    .page-share-cart .wpcss-cart form {
        overflow-x: scroll;
    }
}


.static-products{
    display:none;
}