/* Lumisil — WooCommerce catalogue and product archives
 * Loaded only on shop, product category and product tag archives.
 */

/* Step 7 — WooCommerce shop and category archives
 * Canonical catalogue stylesheet.
 * Keep this section singular: previous iterative overrides were removed
 * because they created conflicting widths, column counts and floats.
 */

body.woocommerce-shop,
body.tax-product_cat,
body.tax-product_tag {
    background: #fff;
    overflow-x: clip;
}

body.woocommerce-shop .site-content,
body.tax-product_cat .site-content,
body.tax-product_tag .site-content,
body.woocommerce-shop .site-content > .container,
body.tax-product_cat .site-content > .container,
body.tax-product_tag .site-content > .container,
body.woocommerce-shop .site-content > .site-container,
body.tax-product_cat .site-content > .site-container,
body.tax-product_tag .site-content > .site-container,
body.woocommerce-shop .content-container,
body.tax-product_cat .content-container,
body.tax-product_tag .content-container,
body.woocommerce-shop .content-wrap,
body.tax-product_cat .content-wrap,
body.tax-product_tag .content-wrap,
body.woocommerce-shop #primary,
body.tax-product_cat #primary,
body.tax-product_tag #primary,
body.woocommerce-shop .content-area,
body.tax-product_cat .content-area,
body.tax-product_tag .content-area {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.woocommerce-shop #secondary,
body.tax-product_cat #secondary,
body.tax-product_tag #secondary,
body.woocommerce-shop .widget-area,
body.tax-product_cat .widget-area,
body.tax-product_tag .widget-area {
    display: none !important;
}

body.woocommerce-shop #inner-wrap.lumisil-shop-inner-wrap,
body.tax-product_cat #inner-wrap.lumisil-shop-inner-wrap,
body.tax-product_tag #inner-wrap.lumisil-shop-inner-wrap {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.woocommerce-shop .content-container.site-container,
body.tax-product_cat .content-container.site-container,
body.tax-product_tag .content-container.site-container {
    display: block !important;
    grid-template-columns: none !important;
    grid-template-areas: none !important;
}

body.woocommerce-shop #primary,
body.tax-product_cat #primary,
body.tax-product_tag #primary {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
}


body.woocommerce-shop .site-main,
body.tax-product_cat .site-main,
body.tax-product_tag .site-main {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 0 68px !important;
}

body.woocommerce-shop .woocommerce-products-header,
body.tax-product_cat .woocommerce-products-header,
body.tax-product_tag .woocommerce-products-header,
body.woocommerce-shop .entry-hero,
body.tax-product_cat .entry-hero,
body.tax-product_tag .entry-hero,
body.woocommerce-shop .page-title-wrap,
body.tax-product_cat .page-title-wrap,
body.tax-product_tag .page-title-wrap,
body.woocommerce-shop .page-header:not(.lumisil-site-header),
body.tax-product_cat .page-header:not(.lumisil-site-header),
body.tax-product_tag .page-header:not(.lumisil-site-header),
body.woocommerce-shop .archive-header,
body.tax-product_cat .archive-header,
body.tax-product_tag .archive-header,
body.woocommerce-shop .entry-header.archive-entry-header,
body.tax-product_cat .entry-header.archive-entry-header,
body.tax-product_tag .entry-header.archive-entry-header {
    display: none !important;
}

.lumisil-shop-inner-wrap {
    width: 100%;
    max-width: none;
    margin: 0;
}

.lumisil-shop-intro,
.lumisil-catalog-layout {
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}


.lumisil-shop-category-chips {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}

.lumisil-shop-category-chips::-webkit-scrollbar {
    display: none;
}

.lumisil-shop-category-chips a {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--lumisil-line);
    border-radius: 999px;
    background: #fff;
    color: var(--lumisil-ink);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    scroll-snap-align: start;
}

.lumisil-shop-category-chips a:hover,
.lumisil-shop-category-chips a.is-active {
    border-color: var(--lumisil-orange);
    background: #fff7df;
    color: #9a5d00;
}

/* Main catalogue: filters left + exactly three products on desktop. */
.lumisil-catalog-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.lumisil-catalog-sidebar,
.lumisil-catalog-products {
    min-width: 0;
    box-sizing: border-box;
}

.lumisil-catalog-sidebar {
    width: 240px;
}

.lumisil-filter-card {
    position: sticky;
    top: 138px;
}

.lumisil-filter-form {
    display: grid;
    gap: 18px;
}

.lumisil-filter-section {
    padding: 18px 17px;
    border: 1px solid var(--lumisil-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15,34,54,.035);
}

.lumisil-filter-section h3 {
    position: relative;
    margin: 0 0 16px;
    padding-bottom: 10px;
    color: var(--lumisil-ink);
    font-size: 15px;
    line-height: 1.2;
}

.lumisil-filter-section h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    border-radius: 99px;
    background: var(--lumisil-orange);
}

.lumisil-filter-list,
.lumisil-price-ranges,
.lumisil-rating-filter,
.lumisil-highlight-links {
    display: grid;
    gap: 10px;
}

.lumisil-filter-option {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    color: var(--lumisil-ink);
    font-size: 12.5px;
    line-height: 1.45;
    cursor: pointer;
}

.lumisil-filter-option-main {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

.lumisil-filter-option input,
.lumisil-filter-radio input {
    margin-top: 2px;
    accent-color: var(--lumisil-orange);
}

.lumisil-filter-option small {
    flex: 0 0 auto;
    color: var(--lumisil-muted);
    font-size: 11px;
    font-weight: 700;
}

.lumisil-highlight-links a {
    color: var(--lumisil-ink);
    font-size: 12.5px;
    line-height: 1.35;
    text-decoration: none;
}

.lumisil-highlight-links a:hover,
.lumisil-highlight-links a.is-active {
    color: var(--lumisil-orange-strong);
}

.lumisil-filter-radio {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--lumisil-ink);
    font-size: 12.5px;
    cursor: pointer;
}

.lumisil-rating-option {
    align-items: flex-start;
    flex-wrap: wrap;
}

.lumisil-stars {
    color: #f5a400;
    letter-spacing: .04em;
    line-height: 1;
}

.lumisil-rating-option small {
    color: var(--lumisil-muted);
    font-size: 10.5px;
}

.lumisil-filter-actions {
    display: grid;
    gap: 9px;
}

.lumisil-filter-actions button {
    min-height: 42px;
    border: 0;
    border-radius: 9px;
    background: var(--lumisil-orange);
    color: #111;
    font-size: 12.5px;
    font-weight: 900;
    cursor: pointer;
}

.lumisil-filter-clear {
    color: var(--lumisil-muted);
    font-size: 11.5px;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
}

/* Toolbar uses grid instead of WooCommerce floats.
 * This is what prevents the order dropdown from escaping to the right.
 */
.lumisil-catalog-products {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: center;
    column-gap: 18px;
    row-gap: 0;
}

body.woocommerce-shop .woocommerce-result-count,
body.tax-product_cat .woocommerce-result-count,
body.tax-product_tag .woocommerce-result-count {
    grid-column: 1;
    float: none !important;
    width: auto !important;
    margin: 0 0 20px !important;
    color: var(--lumisil-muted);
    font-size: 12.5px;
}

body.woocommerce-shop .woocommerce-ordering,
body.tax-product_cat .woocommerce-ordering,
body.tax-product_tag .woocommerce-ordering {
    grid-column: 2;
    justify-self: end;
    float: none !important;
    width: 300px !important;
    max-width: 100% !important;
    margin: 0 0 20px !important;
}

body.woocommerce-shop .woocommerce-ordering select,
body.tax-product_cat .woocommerce-ordering select,
body.tax-product_tag .woocommerce-ordering select {
    width: 100% !important;
    min-height: 42px;
    padding: 0 38px 0 14px;
    border: 1px solid var(--lumisil-line);
    border-radius: 9px;
    background-color: #fff;
    color: var(--lumisil-ink);
    font-size: 12.5px;
    font-weight: 750;
}

/* Product grid */
body.woocommerce-shop ul.products,
body.tax-product_cat ul.products,
body.tax-product_tag ul.products {
    grid-column: 1 / -1;
    clear: both;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

body.woocommerce-shop ul.products::before,
body.woocommerce-shop ul.products::after,
body.tax-product_cat ul.products::before,
body.tax-product_cat ul.products::after,
body.tax-product_tag ul.products::before,
body.tax-product_tag ul.products::after {
    display: none !important;
}

body.woocommerce-shop ul.products li.product,
body.tax-product_cat ul.products li.product,
body.tax-product_tag ul.products li.product {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    padding: 0 0 12px !important;
    overflow: visible;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff;
    box-shadow: none !important;
    box-sizing: border-box;
}

body.woocommerce-shop ul.products li.product:hover,
body.tax-product_cat ul.products li.product:hover,
body.tax-product_tag ul.products li.product:hover {
    transform: none !important;
    box-shadow: none !important;
}

body.woocommerce-shop ul.products li.product a.woocommerce-LoopProduct-link,
body.tax-product_cat ul.products li.product a.woocommerce-LoopProduct-link,
body.tax-product_tag ul.products li.product a.woocommerce-LoopProduct-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

body.woocommerce-shop ul.products li.product img,
body.tax-product_cat ul.products li.product img,
body.tax-product_tag ul.products li.product img {
    width: 100% !important;
    height: 245px !important;
    margin: 0 !important;
    padding: 14px !important;
    object-fit: contain;
    border: 1px solid #f0f2f4;
    background: #fafbfc;
    box-sizing: border-box;
}

body.woocommerce-shop ul.products li.product .woocommerce-loop-product__title,
body.tax-product_cat ul.products li.product .woocommerce-loop-product__title,
body.tax-product_tag ul.products li.product .woocommerce-loop-product__title {
    min-height: 48px;
    margin: 0 !important;
    padding: 12px 0 2px !important;
    color: var(--lumisil-ink);
    font-size: 13px !important;
    font-weight: 750 !important;
    line-height: 1.35;
}

body.woocommerce-shop ul.products li.product .star-rating,
body.tax-product_cat ul.products li.product .star-rating,
body.tax-product_tag ul.products li.product .star-rating {
    margin: 5px 0 0 !important;
    font-size: 10.5px !important;
}

body.woocommerce-shop ul.products li.product .price,
body.tax-product_cat ul.products li.product .price,
body.tax-product_tag ul.products li.product .price {
    min-height: 24px;
    margin: 7px 0 8px !important;
    display: block;
    color: #135db7 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.25;
}

body.woocommerce-shop ul.products li.product .price del,
body.tax-product_cat ul.products li.product .price del,
body.tax-product_tag ul.products li.product .price del {
    color: #9aa2aa !important;
    font-size: 10px !important;
    font-weight: 600;
}

body.woocommerce-shop ul.products li.product .price ins,
body.tax-product_cat ul.products li.product .price ins,
body.tax-product_tag ul.products li.product .price ins {
    color: #c97800 !important;
    text-decoration: none;
}

body.woocommerce-shop ul.products li.product .onsale,
body.tax-product_cat ul.products li.product .onsale,
body.tax-product_tag ul.products li.product .onsale {
    top: 12px !important;
    left: 12px !important;
    right: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 7px 10px !important;
    border-radius: 999px !important;
    background: var(--lumisil-orange) !important;
    color: #111 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

body.woocommerce-shop ul.products li.product .button,
body.tax-product_cat ul.products li.product .button,
body.tax-product_tag ul.products li.product .button {
    width: auto;
    margin: 4px 0 0 !important;
    align-items: center;
    justify-content: center;
    border-radius: 8px !important;
    background: var(--lumisil-orange) !important;
    color: #111 !important;
    font-size: 11.5px !important;
    font-weight: 900 !important;
}

body.woocommerce-shop .woocommerce-pagination,
body.tax-product_cat .woocommerce-pagination,
body.tax-product_tag .woocommerce-pagination {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 36px;
}

body.woocommerce-shop .woocommerce-pagination ul,
body.tax-product_cat .woocommerce-pagination ul,
body.tax-product_tag .woocommerce-pagination ul {
    border: 0 !important;
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 0 !important;
    padding: 0 !important;
}

body.woocommerce-shop .woocommerce-pagination ul li,
body.tax-product_cat .woocommerce-pagination ul li {
    border: 0 !important;
}

body.woocommerce-shop .woocommerce-pagination ul li a,
body.woocommerce-shop .woocommerce-pagination ul li span,
body.tax-product_cat .woocommerce-pagination ul li a,
body.tax-product_cat .woocommerce-pagination ul li span,
body.tax-product_tag .woocommerce-pagination ul li a,
body.tax-product_tag .woocommerce-pagination ul li span {
    min-width: 42px;
    height: 42px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--lumisil-line);
    border-radius: 50%;
    background: #fff;
    color: var(--lumisil-ink);
    font-weight: 800;
}

body.woocommerce-shop .woocommerce-pagination ul li span.current,
body.tax-product_cat .woocommerce-pagination ul li span.current,
body.tax-product_tag .woocommerce-pagination ul li span.current {
    border-color: var(--lumisil-orange);
    background: var(--lumisil-orange);
    color: #111;
}

/* Long category copy stays after products. */
.lumisil-category-seo-copy {
    width: min(900px, calc(100% - 48px));
    max-width: 900px;
    margin: 54px auto 0;
    padding: 34px 38px;
    border: 1px solid var(--lumisil-line);
    border-radius: 18px;
    background: #f8f9fa;
    box-sizing: border-box;
}

.lumisil-category-seo-text {
    color: var(--lumisil-muted);
    font-size: 15px;
    line-height: 1.7;
}

.lumisil-category-seo-text > *:first-child { margin-top: 0; }
.lumisil-category-seo-text > *:last-child { margin-bottom: 0; }

/* Avanam view switchers are intentionally removed. */
body.woocommerce-shop .gridlist-toggle,
body.tax-product_cat .gridlist-toggle,
body.tax-product_tag .gridlist-toggle,
body.woocommerce-shop .shop-view-switcher,
body.tax-product_cat .shop-view-switcher,
body.tax-product_tag .shop-view-switcher,
body.woocommerce-shop .product-view-switcher,
body.tax-product_cat .product-view-switcher,
body.tax-product_tag .product-view-switcher,
body.woocommerce-shop .products-filter-button,
body.tax-product_cat .products-filter-button,
body.tax-product_tag .products-filter-button,
body.woocommerce-shop .base-woo-offcanvas-filter-area,
body.tax-product_cat .base-woo-offcanvas-filter-area,
body.tax-product_tag .base-woo-offcanvas-filter-area,
body.woocommerce-shop .filter-toggle-open-container,
body.tax-product_cat .filter-toggle-open-container,
body.tax-product_tag .filter-toggle-open-container,
body.woocommerce-shop #filter-toggle,
body.tax-product_cat #filter-toggle,
body.tax-product_tag #filter-toggle,
body.woocommerce-shop #filter-drawer,
body.tax-product_cat #filter-drawer,
body.tax-product_tag #filter-drawer {
    display: none !important;
}


/* Stage 2 catalogue states */
.lumisil-filter-option:has(input:checked),
.lumisil-filter-radio:has(input:checked) {
    color: var(--lumisil-orange-strong);
    font-weight: 800;
}

.lumisil-filter-option:has(input:checked) small {
    color: var(--lumisil-orange-strong);
}

.lumisil-filter-count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--lumisil-orange);
    color: #111;
    font-size: 10.5px;
    font-weight: 900;
    line-height: 1;
}

.lumisil-mobile-filter-toggle.has-active-filters {
    border-color: var(--lumisil-orange);
    background: #fff7df;
}

body.woocommerce-shop .woocommerce-pagination ul li a:hover,
body.tax-product_cat .woocommerce-pagination ul li a:hover,
body.tax-product_tag .woocommerce-pagination ul li a:hover {
    border-color: var(--lumisil-orange);
    color: var(--lumisil-orange-strong);
}

body.woocommerce-shop .woocommerce-pagination .next,
body.woocommerce-shop .woocommerce-pagination .prev,
body.tax-product_cat .woocommerce-pagination .next,
body.tax-product_cat .woocommerce-pagination .prev,
body.tax-product_tag .woocommerce-pagination .next,
body.tax-product_tag .woocommerce-pagination .prev {
    padding: 0 14px !important;
    border-radius: 999px;
}

body.woocommerce-shop .woocommerce-no-products-found,
body.tax-product_cat .woocommerce-no-products-found,
body.tax-product_tag .woocommerce-no-products-found {
    grid-column: 1 / -1;
    margin: 12px 0 0;
}

body.woocommerce-shop .woocommerce-no-products-found .woocommerce-info,
body.tax-product_cat .woocommerce-no-products-found .woocommerce-info,
body.tax-product_tag .woocommerce-no-products-found .woocommerce-info {
    margin: 0;
    padding: 22px 24px;
    border: 1px solid var(--lumisil-line);
    border-top: 3px solid var(--lumisil-orange);
    border-radius: 12px;
    background: #fffaf0;
    color: var(--lumisil-ink);
}

/* Mobile filter drawer */
.lumisil-mobile-filter-toggle,
.lumisil-filter-drawer {
    display: none;
}

@media (max-width: 1050px) and (min-width: 821px) {
    .lumisil-shop-intro,
    .lumisil-catalog-layout {
        width: calc(100% - 36px);
    }

    .lumisil-catalog-products {
        grid-template-columns: minmax(0, 1fr) 250px;
    }

    body.woocommerce-shop .woocommerce-ordering,
    body.tax-product_cat .woocommerce-ordering,
    body.tax-product_tag .woocommerce-ordering {
        width: 250px !important;
    }

    body.woocommerce-shop ul.products,
    body.tax-product_cat ul.products,
    body.tax-product_tag ul.products {
        gap: 14px !important;
    }

    body.woocommerce-shop ul.products li.product img,
    body.tax-product_cat ul.products li.product img,
    body.tax-product_tag ul.products li.product img {
        height: 205px !important;
    }
}

@media (max-width: 900px) and (min-width: 821px) {
    .lumisil-catalog-layout {
        grid-template-columns: 210px minmax(0, 1fr);
        gap: 22px;
    }

    .lumisil-catalog-sidebar {
        width: 210px;
    }
}

@media (max-width: 820px) {
    body.woocommerce-shop .site-main,
    body.tax-product_cat .site-main,
    body.tax-product_tag .site-main {
        padding-bottom: 44px !important;
    }

    .lumisil-shop-intro,
    .lumisil-catalog-layout {
        width: calc(100% - 24px);
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .lumisil-shop-category-chips a {
        min-height: 38px;
        padding: 0 14px;
        font-size: 12px;
    }

    .lumisil-catalog-layout {
        display: block;
    }

    .lumisil-catalog-sidebar {
        display: none;
    }

    .lumisil-mobile-filter-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 40px;
        margin: 2px 0 14px;
        padding: 0 14px;
        border: 1px solid var(--lumisil-orange);
        border-radius: 999px;
        background: #fff7df;
        color: var(--lumisil-ink);
        font-size: 12.5px;
        font-weight: 850;
    }

    .lumisil-catalog-products {
        display: block;
    }

    body.woocommerce-shop .woocommerce-result-count,
    body.tax-product_cat .woocommerce-result-count,
    body.tax-product_tag .woocommerce-result-count {
        display: none;
    }

    body.woocommerce-shop .woocommerce-ordering,
    body.tax-product_cat .woocommerce-ordering,
    body.tax-product_tag .woocommerce-ordering {
        float: none !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 0 14px !important;
    }

    body.woocommerce-shop ul.products,
    body.tax-product_cat ul.products,
    body.tax-product_tag ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    body.woocommerce-shop ul.products li.product img,
    body.tax-product_cat ul.products li.product img,
    body.tax-product_tag ul.products li.product img {
        height: 150px !important;
        padding: 8px !important;
    }

    body.woocommerce-shop ul.products li.product .woocommerce-loop-product__title,
    body.tax-product_cat ul.products li.product .woocommerce-loop-product__title,
    body.tax-product_tag ul.products li.product .woocommerce-loop-product__title {
        min-height: 50px;
        padding: 10px 0 2px !important;
        font-size: 12px !important;
    }

    body.woocommerce-shop ul.products li.product .price,
    body.tax-product_cat ul.products li.product .price,
    body.tax-product_tag ul.products li.product .price {
        margin: 5px 0 7px !important;
        font-size: 13px !important;
    }

    body.woocommerce-shop ul.products li.product .button,
    body.tax-product_cat ul.products li.product .button,
    body.tax-product_tag ul.products li.product .button {
        font-size: 11px !important;
    }

    html.lumisil-filter-open,
    html.lumisil-filter-open body {
        overflow: hidden;
    }

    .lumisil-filter-drawer {
        position: fixed;
        inset: 0;
        z-index: 100000;
        display: block;
        visibility: hidden;
        pointer-events: none;
    }

    .lumisil-filter-drawer.is-open {
        visibility: visible;
        pointer-events: auto;
    }

    .lumisil-filter-backdrop {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
        background: rgba(15,34,54,.48);
        opacity: 0;
        transition: opacity .2s ease;
    }

    .lumisil-filter-drawer.is-open .lumisil-filter-backdrop {
        opacity: 1;
    }

    .lumisil-filter-panel {
        position: absolute;
        top: 0;
        right: 0;
        width: min(88vw, 390px);
        height: 100%;
        padding: 18px;
        overflow-y: auto;
        background: #fff;
        box-shadow: -18px 0 45px rgba(15,34,54,.14);
        transform: translateX(105%);
        transition: transform .24s ease;
        box-sizing: border-box;
    }

    .lumisil-filter-drawer.is-open .lumisil-filter-panel {
        transform: translateX(0);
    }

    .lumisil-filter-panel-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding-bottom: 16px;
        margin-bottom: 18px;
        border-bottom: 1px solid var(--lumisil-line);
    }

    .lumisil-filter-panel-head h2 {
        margin: 0;
        color: var(--lumisil-ink);
        font-size: 21px;
    }

    .lumisil-filter-panel-head button {
        width: 38px;
        height: 38px;
        border: 1px solid var(--lumisil-line);
        border-radius: 50%;
        background: #fff;
        color: var(--lumisil-ink);
        font-size: 26px;
        line-height: 1;
    }

    .lumisil-category-seo-copy {
        width: calc(100% - 24px);
        margin-top: 36px;
        padding: 24px 20px;
        border-radius: 14px;
    }

    .lumisil-category-seo-text {
        font-size: 14px;
        line-height: 1.65;
    }
}

/* =========================================================
   Global commerce desktop grid — same rhythm as homepage
   ========================================================= */
@media (min-width: 901px) {
    body.woocommerce-shop .lumisil-shop-category-chips a,
    body.tax-product_cat .lumisil-shop-category-chips a,
    body.tax-product_tag .lumisil-shop-category-chips a {
        min-height: 36px;
        padding-inline: 14px;
        font-size: 12px;
    }

    body.woocommerce-shop .lumisil-catalog-layout,
    body.tax-product_cat .lumisil-catalog-layout,
    body.tax-product_tag .lumisil-catalog-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 26px;
    }

    body.woocommerce-shop .lumisil-catalog-sidebar,
    body.tax-product_cat .lumisil-catalog-sidebar,
    body.tax-product_tag .lumisil-catalog-sidebar {
        width: 220px;
    }

}

/* Keep semantic catalogue H1 accessible without recreating a visual hero. */
.lumisil-shop-intro--compact {
    padding: 14px 0 8px !important;
}

.lumisil-shop-intro--compact .lumisil-shop-category-chips {
    margin-top: 0 !important;
    padding-bottom: 0 !important;
}

@media (max-width: 900px) {
    .lumisil-shop-intro--compact {
        padding: 10px 0 6px !important;
    }
}

/* Product-card CTA optical centering v2
 * Use an explicit height + matching line-height because the parent theme
 * applies button font metrics that make the label look too low on hover.
 */
body.woocommerce-shop ul.products li.product .button,
body.tax-product_cat ul.products li.product .button,
body.tax-product_tag ul.products li.product .button {
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 14px !important;
    display: inline-block !important;
    line-height: 38px !important;
    text-align: center !important;
    vertical-align: middle !important;
    white-space: nowrap;
}

body.woocommerce-shop ul.products li.product .button > *,
body.tax-product_cat ul.products li.product .button > *,
body.tax-product_tag ul.products li.product .button > * > * > * {
    line-height: inherit !important;
    vertical-align: middle !important;
}

@media (max-width: 900px) {
    body.woocommerce-shop ul.products li.product .button,
    body.tax-product_cat ul.products li.product .button,
    body.tax-product_tag ul.products li.product .button {
        height: 42px !important;
        min-height: 42px !important;
        padding: 0 12px !important;
        line-height: 42px !important;
    }
}

/* Desktop content width formerly shared globally. */
@media (min-width: 901px) {
    .lumisil-shop-intro,
    .lumisil-catalog-layout {
        width: min(var(--lumisil-desktop-content), calc(100% - var(--lumisil-desktop-gutter))) !important;
        max-width: var(--lumisil-desktop-content) !important;
    }
}
