.entry-hero-container-inner .entry-header {
    min-height: 10px !important;
}

.product-archive-hero-section .hero-container {
    padding-top: 32px;
    padding-bottom: 32px;

    h1 {
        width: 100%;
        text-align: center;
    }
}

.product-archive-hero-section .hero-container .archive-description {
    font-size: 13px;
    line-height: 130%;
    max-height: 150px;
    overflow: hidden;
    position: relative;
}

.product-archive-hero-section .hero-container .archive-description.collapsed::after {
    display: block;
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, transparent, var(--global-palette8));
}

.product-archive-hero-section .hero-container .archive-description.show {
    max-height: none;
    -webkit-line-clamp: unset;
}

.product-archive-hero-section .hero-container .archive-description.show::after {
    display: none;
}

.show-more-btn {
    padding: 8px 16px;
    text-transform: none;
    margin-top: 12px;
}

.product-archive-hero-section .hero-container .archive-description h2,
.product-archive-hero-section .hero-container .archive-description h3,
.product-archive-hero-section .hero-container .archive-description h4 {
    font-size: 18px;
    margin-top: 24px;
    margin-bottom: -10px;
}

.product-archive-hero-section #kadence-breadcrumbs {
    padding-top: 12px;
    margin-top: 0px;
    margin-bottom: 5px;
}

@media screen and (min-width: 1025px) {
    .grid-lg-col-3 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.woocommerce ul.products.woo-archive-btn-button .product-action-wrap .button:not(.kb-button),
.woocommerce ul.products li.woo-archive-btn-button .button:not(.kb-button),
.wc-block-grid__product.woo-archive-btn-button .product-details .wc-block-grid__product-add-to-cart .wp-block-button__link {
    padding: 10px !important;
    font-size: 12px;
    text-transform: none;
    width: 100%;
}

.woocommerce ul.products.woo-archive-btn-button .product-action-wrap .button.added {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px !important;
    height: auto !important;
    transform: translateY(-100px);
    opacity: 0;
    transition: transform 0.5s ease 0.5s, opacity 0.5s ease 0.5s;
}

.content-style-unboxed .content-bg.loop-entry:hover .content-bg:not(.loop-entry) {
    box-shadow: 0px 1px 5px 0px #0000001f
}

.wc-block-grid__product-price del,
.woocommerce ul.products li.product .price del {
    font-size: 80%;
}

.loop-entry.product .product-price-wrap {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 10px;
}

.loop-entry.product .product-discount-percentage {
    display: none;
}

.woocommerce ul.products li.product h3,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-category__title {
    padding-top: 0px;
    margin-top: -6px;
    line-height: 120%
}

.woocommerce ul.products li.product {
    box-shadow: unset !important;
}

button.categories-back {
    width: 100%;
    padding: 14px 10px;
    font-size: 14px;
    text-transform: none;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

button.categories-back svg {
    transform: rotate(90deg);
}

.wc-block-product-categories-list {
    list-style: none;
    padding: 0px;
    margin: 0px;
}

.wc-block-product-categories-list li {
    display: inline-block;
    width: 100%;
    gap: 5px;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    padding: 10px 40px 10px 0px;
    line-height: 130%;
    font-weight: 500;
    font-size: 14px;
    border-bottom: 1px solid var(--global-palette8);
}

.wc-block-product-categories-list li span.wc-block-product-categories-list-item-count {
    display: flex;
    opacity: .7;
    position: absolute;
    right: 0px;
    top: 10px;
    background: var(--global-palette8);
    aspect-ratio: 1 / 1;
    width: 20px;
    border-radius: 40px;
    font-size: 10px;
    align-items: center;
    justify-content: center;
    font-weight: 400;
}

.wc-block-product-categories-list li span.wc-block-product-categories-list-item-count:before,
.wc-block-product-categories-list li span.wc-block-product-categories-list-item-count:after {
    display: none
}

.wc-block-product-categories-list li ul {
    padding: 10px 0px 10px 20px;
    width: calc(100% + 40px);
}

.wc-block-product-categories-list--depth-1,
.wc-block-product-categories-list--depth-2,
.wc-block-product-categories-list--depth-3 {
    margin-bottom: -21px;
}

.wc-block-product-categories-list li a:hover {
    text-decoration: none;
}

.term-description {
    font-size: 12px;
    margin-top: 42px;
    margin-bottom: -42px;
}

.term-description h1,
.term-description h2,
.term-description h3,
.term-description h4 {
    font-size: 16px;
}


.woocommerce ul.products li.product a img {
    aspect-ratio: 1 / 1;
    height: auto;
    max-height: 324px;
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid var(--global-palette8) !important;
}

@media screen and (min-width: 1025px) {
    .has-left-sidebar .content-container {
        grid-template-columns: 1fr 3fr !important;
    }
}

.slider-remove ul.product-archive {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
}

.slider-remove ul.product-archive li {
    margin-right: 0px !important;
}

/* ------------ Product list END ------------ */

/* ------------ Product go to cart after added START ------------ */

a.added_to_cart.wc-forward {
    padding: 10px !important;
    font-size: 12px;
    text-transform: none;
    width: 100%;
    color: var(--global-palette-btn) !important;
    background: var(--global-palette-btn-bg);
    text-align: center;
    width: 100%;
    display: block;
    transition: color 0.2s ease, background 0.2s ease, border 0.2s ease;
    border-radius: 5px;
}

a.added_to_cart.wc-forward:hover {
    color: var(--global-palette9, #ffffff);
    background: var(--global-palette3, #1A202C);
}

/* ------------ Product go to cart after added END ------------ */

/* Produkt niedostępny na stanie – szary przycisk na listingu */
ul.products li.product.outofstock .button,
ul.products li.product.outofstock .button:visited {
    background: #9ca3af !important;
    border-color: #9ca3af !important;
    color: #fff !important;
}

ul.products li.product.outofstock .button:hover,
ul.products li.product.outofstock .button:focus {
    background: #6b7280 !important;
    border-color: #6b7280 !important;
    color: #fff !important;
}
