body.tax-product_cat .lurex-category-chips-wrap {
    position: relative;
    margin: 10px 0 10px;
    width: 100%;
    overflow: hidden;
}

body.tax-product_cat .lurex-category-chips-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 34px;
    height: 36px;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,0), #ffffff 82%);
    z-index: 2;
}

body.tax-product_cat .lurex-category-chips {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 42px 8px 0;
}

body.tax-product_cat .lurex-category-chips::-webkit-scrollbar {
    display: none;
}

body.tax-product_cat .lurex-category-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 16px;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    background: #ffffff;
    color: #111111;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    flex: 0 0 auto;
}

body.tax-product_cat .lurex-category-chip:hover,
body.tax-product_cat .lurex-category-chip:focus {
    border-color: #111111;
    color: #111111;
    text-decoration: none;
}

body.tax-product_cat .lurex-category-chip.is-active {
    border-color: #111111;
    background: #ffffff;
    color: #111111;
    font-weight: 700;
}

/* Lurex Smart Filter + rendezés – Notino-szerű arányok és forma */
body.tax-product_cat .lsf-toolbar {
    margin: 2px 0 10px !important;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 0 8px;
}

body.tax-product_cat .lsf-toolbar::-webkit-scrollbar {
    display: none;
}

body.tax-product_cat .lsf-quick-filters {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

body.tax-product_cat .lsf-open-button,
body.tax-product_cat .lsf-quick-filter,
body.tax-product_cat .lurex-sort-open {
    min-height: 44px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #f3f3f3 !important;
    color: #111111 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.1;
    white-space: nowrap;
    flex: 0 0 auto;
    box-shadow: none !important;
}

body.tax-product_cat .lsf-open-button {
    font-weight: 600 !important;
}

body.tax-product_cat .lsf-open-button::before {
    content: "☷";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    transform: rotate(90deg);
    margin-top: -1px;
}

body.tax-product_cat .lsf-open-button:hover,
body.tax-product_cat .lsf-open-button:focus,
body.tax-product_cat .lsf-quick-filter:hover,
body.tax-product_cat .lsf-quick-filter:focus,
body.tax-product_cat .lurex-sort-open:hover,
body.tax-product_cat .lurex-sort-open:focus {
    background: #ebebeb !important;
    color: #111111 !important;
    text-decoration: none;
}

body.tax-product_cat .woocommerce-ordering {
    float: none !important;
    width: auto !important;
    margin: 2px 0 10px !important;
    display: inline-flex !important;
    align-items: center;
    vertical-align: top;
}

body.tax-product_cat .woocommerce-ordering select.orderby {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

body.tax-product_cat .lurex-sort-open::after {
    content: "⌄";
    margin-left: 8px;
    font-size: 15px;
    line-height: 1;
}

body.tax-product_cat .woocommerce-result-count {
    clear: both;
    color: #777777;
    font-size: 14px;
    margin: 8px 0 12px !important;
}

body.tax-product_cat .elementor-widget-wc-categories {
    display: none !important;
}

/* Rendezés bottom sheet */
.lurex-sort-drawer {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
}

.lurex-sort-drawer.is-open {
    display: block;
}

.lurex-sort-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.lurex-sort-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 76vh;
    background: #ffffff;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.16);
    transform: translateY(100%);
    transition: transform 0.24s ease;
    overflow: hidden;
}

.lurex-sort-drawer.is-open .lurex-sort-panel {
    transform: translateY(0);
}

.lurex-sort-handle {
    width: 42px;
    height: 4px;
    border-radius: 999px !important;
    background: #d5d5d5;
    margin: 8px auto 0;
}

.lurex-sort-header {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid #eeeeee;
}

.lurex-sort-close {
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: #111111;
    font-size: 28px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.lurex-sort-title {
    font-size: 16px;
    font-weight: 700;
    color: #111111;
}

.lurex-sort-options {
    padding: 12px 0 18px;
}

.lurex-sort-option {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    border: 0;
    background: #ffffff;
    color: #111111;
    text-align: left;
    cursor: pointer;
    font-size: 15px;
    font-weight: 400;
}

.lurex-sort-option-dot {
    width: 16px;
    height: 16px;
    border: 1px solid #d5d5d5;
    border-radius: 50% !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 16px;
}

.lurex-sort-option.is-active .lurex-sort-option-dot {
    border-color: #111111;
}

.lurex-sort-option.is-active .lurex-sort-option-dot::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50% !important;
    background: #111111;
    display: block;
}

.lurex-sort-option.is-active {
    font-weight: 500;
}

body.lurex-sort-open {
    overflow: hidden;
}

@media (min-width: 768px) {
    body.tax-product_cat .lurex-category-chips-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 34px;
    height: 36px;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,0), #ffffff 82%);
    z-index: 2;
}

    body.tax-product_cat .lurex-category-chips {
        flex-wrap: wrap;
        overflow: visible;
        gap: 10px;
        padding: 2px 0 12px;
    }

    .lurex-sort-panel {
        left: 50%;
        right: auto;
        width: min(420px, 92vw);
        transform: translate(-50%, 100%);
    }

    .lurex-sort-drawer.is-open .lurex-sort-panel {
        transform: translate(-50%, 0);
    }
}

@media (max-width: 767px) {
    body.tax-product_cat .lurex-category-chips-wrap::after {
        top: 0;
        right: 0;
        width: 34px;
        height: 36px;
    }

    body.tax-product_cat .lurex-category-chips-wrap {
        margin: 8px -16px 8px;
        padding-left: 16px;
    }

    body.tax-product_cat .lurex-category-chips {
        padding-right: 54px;
    }

    body.tax-product_cat .lsf-open-button,
    body.tax-product_cat .lsf-quick-filter,
    body.tax-product_cat .lurex-sort-open {
        min-height: 42px;
        padding: 0 16px !important;
        font-size: 14px !important;
    }

    body.tax-product_cat .lurex-sort-open {
        max-width: 188px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Mobil kategóriafej tömörítés – Elementor/Shoptimizer által hagyott üres tér ellen */
@media (max-width: 767px) {
    body.tax-product_cat .site-main,
    body.tax-product_cat .content-area,
    body.tax-product_cat .shoptimizer-archive,
    body.tax-product_cat .woocommerce-products-header {
        padding-top: 0 !important;
    }

    body.tax-product_cat .woocommerce-breadcrumb,
    body.tax-product_cat .elementor-widget-woocommerce-breadcrumb,
    body.tax-product_cat .elementor-widget-theme-archive-title,
    body.tax-product_cat .woocommerce-products-header,
    body.tax-product_cat .woocommerce-products-header__title,
    body.tax-product_cat h1.page-title,
    body.tax-product_cat h1.woocommerce-products-header__title {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    body.tax-product_cat .woocommerce-products-header__title,
    body.tax-product_cat h1.page-title,
    body.tax-product_cat h1.woocommerce-products-header__title,
    body.tax-product_cat .elementor-widget-theme-archive-title h1 {
        margin-top: 0 !important;
        margin-bottom: 8px !important;
        line-height: 1.12 !important;
    }

    body.tax-product_cat .term-description,
    body.tax-product_cat .woocommerce-products-header .term-description,
    body.tax-product_cat .elementor-widget-archive-description {
        margin: 0 !important;
        padding: 0 !important;
    }

    /*
     * A törölt Elementor kategória-widget helyén / Shoptimizer archive blokkban maradhat
     * mobilon üres magasság. Ezt csak mobilon kompenzáljuk.
     */
    body.tax-product_cat .lurex-category-chips-wrap {
        margin-top: -42px !important;
        margin-bottom: 4px !important;
    }

    body.tax-product_cat .lurex-category-chips {
        padding-top: 0 !important;
        padding-bottom: 4px !important;
    }

    body.tax-product_cat .lsf-toolbar {
        margin-top: 0 !important;
        margin-bottom: 4px !important;
        padding-bottom: 4px !important;
    }

    body.tax-product_cat .woocommerce-ordering {
        margin-top: 0 !important;
        margin-bottom: 6px !important;
    }

    body.tax-product_cat .woocommerce-result-count {
        margin-top: 2px !important;
    }

    /*
     * Ha Elementor spacer maradt a kategória cím és a terméklista között,
     * mobilon ne foglaljon helyet.
     */
    body.tax-product_cat .elementor-widget-spacer,
    body.tax-product_cat .elementor-spacer,
    body.tax-product_cat .elementor-widget-divider {
        max-height: 0 !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
}

/* PageSpeed kontrasztjavítás – v116 alap megtartásával */
body.tax-product_cat ul.products li.product .price,
body.post-type-archive-product ul.products li.product .price,
body.single-product .price,
body.single-product p.price {
    color: #111111 !important;
}

body.tax-product_cat ul.products li.product .price del,
body.tax-product_cat ul.products li.product .price del .amount,
body.tax-product_cat ul.products li.product .price del bdi,
body.post-type-archive-product ul.products li.product .price del,
body.post-type-archive-product ul.products li.product .price del .amount,
body.post-type-archive-product ul.products li.product .price del bdi,
body.single-product .price del,
body.single-product .price del .amount,
body.single-product .price del bdi,
body.single-product p.price del,
body.single-product p.price del .amount,
body.single-product p.price del bdi {
    color: #666666 !important;
    opacity: 1 !important;
}

body.tax-product_cat ul.products li.product .price ins,
body.tax-product_cat ul.products li.product .price ins .amount,
body.tax-product_cat ul.products li.product .price ins bdi,
body.post-type-archive-product ul.products li.product .price ins,
body.post-type-archive-product ul.products li.product .price ins .amount,
body.post-type-archive-product ul.products li.product .price ins bdi,
body.single-product .price ins,
body.single-product .price ins .amount,
body.single-product .price ins bdi,
body.single-product p.price ins,
body.single-product p.price ins .amount,
body.single-product p.price ins bdi {
    color: #ff2939 !important;
    opacity: 1 !important;
    text-decoration: none !important;
}

/* Akciós ár sok helyen nem ins-ben, hanem sima amountként jön ki */
body.tax-product_cat ul.products li.product .price > .amount,
body.tax-product_cat ul.products li.product .price > bdi,
body.post-type-archive-product ul.products li.product .price > .amount,
body.post-type-archive-product ul.products li.product .price > bdi {
    color: #ff2939 !important;
}

/* Piros gombok/címkék: fehér szöveghez sötétebb piros kell, különben a PageSpeed kontrasztot dobhat */
body.tax-product_cat ul.products li.product .button,
body.tax-product_cat ul.products li.product .add_to_cart_button,
body.tax-product_cat ul.products li.product .ajax_add_to_cart,
body.post-type-archive-product ul.products li.product .button,
body.post-type-archive-product ul.products li.product .add_to_cart_button,
body.post-type-archive-product ul.products li.product .ajax_add_to_cart,
body.single-product .single_add_to_cart_button,
body.single-product button.single_add_to_cart_button {
    background-color: #ff2939 !important;
    border-color: #ff2939 !important;
    color: #ffffff !important;
}

body.tax-product_cat ul.products li.product .button:hover,
body.tax-product_cat ul.products li.product .add_to_cart_button:hover,
body.tax-product_cat ul.products li.product .ajax_add_to_cart:hover,
body.post-type-archive-product ul.products li.product .button:hover,
body.post-type-archive-product ul.products li.product .add_to_cart_button:hover,
body.post-type-archive-product ul.products li.product .ajax_add_to_cart:hover,
body.single-product .single_add_to_cart_button:hover,
body.single-product button.single_add_to_cart_button:hover {
    background-color: #e91f2f !important;
    border-color: #e91f2f !important;
    color: #ffffff !important;
}

body.tax-product_cat ul.products li.product .onsale,
body.tax-product_cat ul.products li.product .sale-item,
body.tax-product_cat ul.products li.product .product-label,
body.post-type-archive-product ul.products li.product .onsale,
body.post-type-archive-product ul.products li.product .sale-item,
body.post-type-archive-product ul.products li.product .product-label,
body.single-product .onsale,
body.single-product .sale-item,
body.single-product .product-label {
    background-color: #ff2939 !important;
    color: #ffffff !important;
}

/* Halvány szürke meta / leírás szövegek olvashatóbbra */
body.tax-product_cat .woocommerce-result-count,
body.post-type-archive-product .woocommerce-result-count,
body.single-product .sku_wrapper,
body.single-product .posted_in,
body.single-product .tagged_as,
body.single-product .product_meta,
body.single-product .woocommerce-product-details__short-description,
body.single-product .woocommerce-product-details__short-description li {
    color: #444444 !important;
}

/* Termékkártya kosárgomb felirat stabilizálás */
@media (max-width: 767px) {
    body.tax-product_cat ul.products li.product .button,
    body.tax-product_cat ul.products li.product .add_to_cart_button,
    body.tax-product_cat ul.products li.product .ajax_add_to_cart,
    body.post-type-archive-product ul.products li.product .button,
    body.post-type-archive-product ul.products li.product .add_to_cart_button,
    body.post-type-archive-product ul.products li.product .ajax_add_to_cart {
        white-space: nowrap !important;
    }
}

