.shop_banner {
    margin-bottom: 52px;
}

.fab5-shop-hero {
    padding: 64px 24px 70px;
    color: #fff;
    text-align: center;
    background: linear-gradient(110deg, #ff6700 0%, #ef0012 100%);
}

.fab5-shop-hero h1 {
    margin: 14px 0 12px;
    color: #fff;
    font-size: clamp(36px, 5vw, 54px);
    line-height: 1.1;
}

.fab5-shop-hero p {
    margin: 0 auto 30px;
    max-width: 780px;
    font-size: 18px;
}

.fab5-shop-kicker {
    display: inline-block;
    padding: 8px 22px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
}

.fab5-shop-award {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.fab5-shop-award::before,
.fab5-shop-award::after {
    width: 70px;
    height: 2px;
    content: "";
    background: rgba(255, 255, 255, .4);
}

.shop-loop-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 8px 28px rgba(17, 24, 39, .08);
}

.shop-content-area.content-with-products {
    --fab5-category-column: clamp(220px, 25vw, 280px);
    display: grid;
    position: relative;
    grid-template-columns: var(--fab5-category-column) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.shop-content-area.content-with-products > :not(.fab5-category-filter) {
    grid-column: 2;
}

.woocommerce-shop .shop_banner,
.woocommerce-shop .shop-content-area,
.woocommerce-shop .shop-content-area button,
.woocommerce-shop .shop-content-area input,
.woocommerce-shop .shop-content-area select {
    font-family: Inter, Arial, sans-serif !important;
}

.fab5-category-filter {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    padding: 28px 24px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(17, 24, 39, .08);
}

.fab5-category-filter h2 {
    position: relative;
    margin: 0 0 24px;
    padding-bottom: 14px;
    color: #181818;
    font-size: 20px;
    line-height: 1.25;
    text-transform: uppercase;
}

.fab5-category-filter h2::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 42px;
    height: 3px;
    content: "";
    background: #ff5a00;
}

.fab5-category-filter ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fab5-category-filter li + li {
    margin-top: 4px;
}

.fab5-category-filter a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 9px;
    color: #202020;
    font-size: 15px;
    line-height: 1.35;
    transition: color .2s ease, background-color .2s ease;
}

.fab5-category-filter a:hover,
.fab5-category-filter a:focus-visible,
.fab5-category-filter .current-cat > a {
    color: #e53913;
    background: #fff4ef;
    text-decoration: none;
}

.fab5-category-filter a:focus-visible {
    outline: 2px solid #e53913;
    outline-offset: 2px;
}

.fab5-category-count {
    flex: 0 0 auto;
    color: #f01818;
}

.fab5-filter-drawer-toggle,
.fab5-filter-backdrop,
.fab5-filter-drawer {
    display: none;
}

.shop-loop-head .woocommerce-breadcrumb {
    width: 100%;
}

.fab5-live-search {
    position: relative;
    flex: 1 1 360px;
    min-width: 220px;
}

.fab5-live-search::before {
    position: absolute;
    top: 50%;
    left: 16px;
    color: #98a2b3;
    content: "⌕";
    font-size: 22px;
    transform: translateY(-50%);
    pointer-events: none;
}

#fab5-shop-search {
    box-sizing: border-box;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 16px 0 46px;
    border: 1px solid #e2e5e9;
    border-radius: 10px;
    background: #fff;
}

.fab5-product-tags {
    position: absolute;
    z-index: 4;
    top: 16px;
    left: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fab5-tag,
.fab5-title-tag {
    display: inline-block;
    margin-left: 7px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #fff;
    background: #ff5a00;
    font-size: 11px;
    line-height: 1;
}

.fab5-off-badge {
    position: absolute;
    z-index: 4;
    top: 16px;
    left: 16px;
    right: auto;
    width: fit-content;
    padding: 6px 11px;
    border-radius: 999px;
    color: #fff;
    background: #08c965;
    font-size: 11px;
    font-weight: 700;
}

.fab5-title-badge {
    display: inline-block;
    margin-left: 7px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #fff;
    background: #08c965;
    font-size: 11px;
    line-height: 1;
}

.fab5-shop-desc {
    margin: 7px 0 9px;
    color: #667085;
    font-size: 13px;
}

.products-grid .product-grid-item,
.products.elements-grid .product-grid-item {
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(17, 24, 39, .08);
    cursor: pointer;
}

.products-footer {
    min-height: 0 !important;
    margin: 24px 0 32px !important;
    padding: 0 !important;
}

.basel-products-load-more,
.products-load-more {
    margin-bottom: 0 !important;
}

.sidebar-container .widget-area {
    padding: 26px;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(17, 24, 39, .08);
}

.sidebar-container .widget-title {
    margin-bottom: 18px;
}

.products-list .fab5-product-tags,
.products-list .fab5-off-badge {
    display: none;
}

.products-grid .fab5-title-tag,
.products-grid .fab5-title-badge,
.products.elements-grid .fab5-title-tag,
.products.elements-grid .fab5-title-badge {
    display: none;
}

.fab5-shop-cart {
    display: flex;
    width: min(100%, 276px);
    min-height: 48px;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
}

.fab5-shop-cart button,
.fab5-shop-cart input {
    font: inherit;
}

.fab5-shop-cart__add {
    width: 100%;
    min-height: 48px;
    padding: 10px 24px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(110deg, #ff6700 0%, #ef0012 100%);
    box-shadow: 0 7px 18px rgba(239, 0, 18, .18);
    cursor: pointer;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.fab5-shop-cart__quantity {
    display: grid;
    width: 100%;
    min-height: 48px;
    grid-template-columns: 48px 40px 48px;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    border: 2px solid #ff5a00;
    border-radius: 999px;
    background: #fff;
}

.fab5-shop-cart__quantity[hidden],
.fab5-shop-cart__add[hidden] {
    display: none;
}

.fab5-shop-cart__minus,
.fab5-shop-cart__plus {
    height: 44px;
    padding: 0;
    border: 0;
    color: #f24416;
    background: transparent;
    cursor: pointer;
    font-size: 30px;
    font-weight: 600;
    line-height: 1;
}

.fab5-shop-cart__minus:focus-visible,
.fab5-shop-cart__plus:focus-visible,
.fab5-shop-cart__add:focus-visible,
.fab5-shop-cart__count:focus-visible {
    outline: 3px solid rgba(239, 0, 18, .35);
    outline-offset: 2px;
}

.fab5-shop-cart__count {
    width: 40px;
    min-width: 40px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    color: #181818;
    background: transparent;
    font-weight: 700;
    text-align: center;
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
    appearance: auto !important;
}

.fab5-shop-cart__count::-webkit-inner-spin-button,
.fab5-shop-cart__count::-webkit-outer-spin-button {
    margin: 0;
    appearance: auto;
}

.fab5-shop-cart__trash-symbol,
.fab5-shop-cart__minus.is-remove .fab5-shop-cart__minus-symbol {
    display: none;
}

.fab5-shop-cart__minus.is-remove .fab5-shop-cart__trash-symbol {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
}

.fab5-shop-cart__trash-symbol svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.fab5-shop-cart__minus.is-remove::before,
.fab5-shop-cart__minus.is-remove::after {
    display: none !important;
    content: none !important;
}

.fab5-shop-cart.is-loading {
    opacity: .62;
    pointer-events: none;
}

.fab5-home-celebration {
    position: fixed;
    z-index: 90;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.fab5-home-fireworks,
.fab5-home-sparks {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
}

.fab5-home-rocket {
    position: absolute;
    bottom: 0;
    left: var(--rocket-start-x, 50vw);
    width: 8px;
    height: 36px;
    opacity: 0;
    will-change: transform, opacity;
}

.fab5-home-rocket--launch {
    animation: fab5-rocket-flight 1.5s ease-out forwards;
}

.fab5-home-rocket::after {
    position: absolute;
    top: 0;
    left: 2px;
    width: 4px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(to bottom, #f97316, transparent);
    box-shadow: 0 0 10px #f97316, 0 0 20px #f97316;
    content: '';
}

.fab5-home-spark {
    position: absolute;
    top: var(--spark-y);
    left: var(--spark-x);
    width: var(--spark-size);
    height: var(--spark-size);
    border-radius: 50%;
    background: var(--spark-color);
    box-shadow: 0 0 12px var(--spark-color);
    opacity: 0;
    animation: fab5-spark-twinkle var(--spark-duration) ease-in-out var(--spark-delay) infinite;
}

@keyframes fab5-rocket-flight {
    from { transform: translate(0, 0); opacity: 1; }
    to { transform: translate(var(--rocket-end-x, 0), calc(-1 * var(--rocket-end-y, 70vh))); opacity: 0; }
}

@keyframes fab5-spark-twinkle {
    0%, 100% { transform: scale(.25); opacity: 0; }
    45% { opacity: .95; }
    60% { transform: scale(1); opacity: .7; }
}

@media (min-width: 1025px) {
    .fab5-category-filter {
        position: absolute;
        top: 0;
        left: 0;
        width: var(--fab5-category-column);
    }
}

@media (max-width: 767px) {
    .shop_banner {
        margin-bottom: 28px;
    }

    .fab5-shop-hero {
        padding: 44px 18px 48px;
    }

    .shop-loop-head {
        align-items: stretch;
        flex-wrap: wrap;
        gap: 12px;
        overflow: hidden;
        padding: 16px;
    }

    .fab5-live-search {
        width: 100%;
        min-width: 0;
        flex-basis: 100%;
        order: 1;
    }

    .shop-loop-head .woocommerce-ordering {
        width: 100%;
        min-width: 0;
        flex: 1 0 100%;
        margin: 0;
        order: 2;
    }

    .shop-loop-head .woocommerce-ordering select {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .shop-loop-head .woocommerce-result-count {
        min-width: 0;
        flex: 1 1 auto;
        margin: 0;
        order: 3;
    }

    .shop-loop-head .basel-products-shop-view,
    .shop-loop-head .view-mode-switcher {
        flex: 0 0 auto;
        margin: 0 0 0 auto;
        order: 4;
    }

}

@media (max-width: 1024px) {
    body.fab5-filter-drawer-open {
        overflow: hidden;
    }

    .shop-content-area.content-with-products {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .shop-content-area.content-with-products > :not(.fab5-category-filter),
    .fab5-category-filter {
        grid-column: 1;
    }

    .fab5-category-filter {
        grid-row: auto;
        padding: 0;
        border-radius: 16px;
        background: transparent;
        box-shadow: none;
    }

    .fab5-category-filter > h2,
    .fab5-category-list-desktop {
        display: none;
    }

    .fab5-filter-drawer-toggle {
        display: flex;
        width: 100%;
        min-height: 58px;
        align-items: center;
        gap: 14px;
        padding: 15px 22px;
        border: 0;
        border-radius: 16px;
        color: #181818;
        background: #fff;
        box-shadow: 0 8px 28px rgba(17, 24, 39, .08);
        cursor: pointer;
        font-size: 18px;
        font-weight: 700;
        text-align: left;
        text-transform: uppercase;
    }

    .fab5-filter-drawer-toggle:focus-visible,
    .fab5-filter-drawer-close:focus-visible,
    .fab5-clear-filters:focus-visible {
        outline: 2px solid #e53913;
        outline-offset: 3px;
    }

    .fab5-filter-current {
        overflow: hidden;
        margin-left: auto;
        padding: 5px 10px;
        border-radius: 999px;
        color: #e53913;
        background: #fff4ef;
        font-size: 13px;
        font-weight: 600;
        text-overflow: ellipsis;
        text-transform: none;
        white-space: nowrap;
    }

    .fab5-filter-toggle-icon {
        display: grid;
        width: 32px;
        height: 32px;
        flex: 0 0 32px;
        place-items: center;
        border-radius: 50%;
        color: #fff;
        background: linear-gradient(110deg, #ff6700 0%, #ef0012 100%);
        font-size: 15px;
    }

    .fab5-filter-backdrop {
        position: fixed;
        z-index: 100000;
        inset: 0;
        display: block;
        visibility: hidden;
        background: rgba(13, 16, 22, .72);
        opacity: 0;
        transition: opacity .25s ease, visibility .25s ease;
        pointer-events: none;
    }

    .fab5-filter-backdrop.is-open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    .fab5-filter-drawer {
        position: fixed;
        z-index: 100001;
        top: 0;
        bottom: 0;
        left: 0;
        display: flex;
        width: min(430px, calc(100vw - 28px));
        flex-direction: column;
        background: #fff;
        box-shadow: 14px 0 38px rgba(0, 0, 0, .24);
        transform: translateX(-105%);
        transition: transform .28s ease;
        visibility: hidden;
    }

    .fab5-filter-drawer.is-open {
        visibility: visible;
        transform: translateX(0);
    }

    .fab5-filter-drawer-header {
        display: flex;
        min-height: 74px;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        padding: 18px 24px;
        color: #fff;
        background: #111;
    }

    .fab5-filter-drawer-header strong {
        font-size: 17px;
        letter-spacing: .04em;
        text-transform: uppercase;
    }

    .fab5-filter-drawer-close {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 10px 0;
        border: 0;
        color: #fff;
        background: transparent;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: .06em;
        text-transform: uppercase;
    }

    .fab5-filter-drawer-close span {
        font-size: 24px;
        font-weight: 300;
        line-height: .5;
    }

    .fab5-filter-drawer-body {
        flex: 1 1 auto;
        overflow-y: auto;
        padding: 26px 24px 34px;
        overscroll-behavior: contain;
    }

    .fab5-filter-section + .fab5-filter-section,
    .fab5-clear-filters {
        margin-top: 30px;
        padding-top: 30px;
        border-top: 1px solid #e9eaec;
    }

    .fab5-filter-section h2 {
        position: relative;
        margin: 0 0 20px;
        padding-bottom: 12px;
        color: #181818;
        font-size: 20px;
        line-height: 1.25;
        text-transform: uppercase;
    }

    .fab5-filter-section h2::after {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 42px;
        height: 3px;
        content: "";
        background: #ff5a00;
    }

    .fab5-category-filter .fab5-category-list-responsive {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 14px;
    }

    .fab5-category-list-responsive li + li {
        margin-top: 0;
    }

    .fab5-price-filter .price_slider_wrapper {
        margin-top: 8px;
    }

    .fab5-price-filter .price_slider {
        margin: 0 8px 24px;
    }

    .fab5-price-filter .price_slider_amount {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
    }

    .fab5-price-filter .price_label {
        color: #202020;
        font-weight: 600;
    }

    .fab5-price-filter button,
    .fab5-clear-filters {
        border-radius: 8px;
        color: #fff;
        background: linear-gradient(110deg, #ff6700 0%, #ef0012 100%);
    }

    .fab5-price-filter button {
        min-height: 42px;
        padding: 0 20px;
        border: 0;
    }

    .fab5-clear-filters {
        display: block;
        width: 100%;
        padding: 13px 18px;
        text-align: center;
        text-decoration: none;
    }
}

@media (max-width: 767px) {
    .fab5-filter-drawer-toggle {
        min-height: 56px;
        gap: 10px;
        padding: 13px 16px;
        font-size: 16px;
    }

    .fab5-filter-current {
        max-width: 36%;
        font-size: 12px;
    }

    .fab5-filter-drawer {
        width: min(390px, calc(100vw - 18px));
    }

    .fab5-filter-drawer-header {
        min-height: 68px;
        padding: 15px 18px;
    }

    .fab5-filter-drawer-body {
        padding: 22px 18px 30px;
    }

    .fab5-category-filter .fab5-category-list-responsive {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }

    .fab5-shop-cart {
        width: 100%;
    }

    .fab5-home-rocket {
        width: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fab5-filter-backdrop,
    .fab5-filter-drawer {
        transition: none;
    }

    .fab5-home-celebration {
        display: none;
    }
}
