.sgpf {
    --sgpf-primary: #fc8933;
    --sgpf-primary-dark: #e6761c;
    --sgpf-surface: #ffffff;
    --sgpf-heading: #1f2a37;
    --sgpf-text: #2a2f39;
    --sgpf-muted: #959cab;
    --sgpf-star: #fc8933;
    --sgpf-border: #edf0f7;
    --sgpf-search-btn: #fc8933;
    --sgpf-search-btn-hover: #e6761c;
    --sgpf-button-text: #ffffff;
    --sgpf-count-bg: #f5f7fb;
    --sgpf-count-text: #98a1af;
    --sgpf-heading-size: 17px;
    --sgpf-option-size: 13px;
    --sgpf-shadow: 0 16px 34px rgba(252, 137, 51, 0.08);
    --sgpf-success: #fc8933;
    --sgpf-success-dark: #e6761c;
    --sgpf-toggle-bg: #fff1e7;
    --sgpf-toggle-bg-hover: #ffe2cb;
    --sgpf-toggle-text: #1f1a00;
    --sgpf-sale-bg: #fc8933;
    --sgpf-sale-text: #1f1a00;
    color: var(--sgpf-text);
}

.sgpf__mobile-bar,
.sgpf__drawer-header,
.sgpf__overlay {
    display: none;
}

.sgpf__layout {
    display: grid;
    grid-template-columns: minmax(270px, 310px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.sgpf__sidebar,
.sgpf__results {
    min-width: 0;
}

.sgpf__drawer-header {
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.sgpf__drawer-title {
    margin: 0;
    color: var(--sgpf-heading);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.sgpf__drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--sgpf-heading);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.sgpf__form {
    position: sticky;
    top: 24px;
    padding: 22px 18px 18px;
    border: 1px solid var(--sgpf-border);
    border-radius: 18px;
    background: linear-gradient(180deg, var(--sgpf-surface) 0%, var(--sgpf-surface) 100%);
    box-shadow:
        0 24px 42px rgba(252, 137, 51, 0.06),
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.sgpf__section + .sgpf__section {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--sgpf-border);
}

.sgpf__section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sgpf__title {
    margin: 0 0 14px;
    color: var(--sgpf-heading);
    font-size: var(--sgpf-heading-size);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.sgpf__section-head .sgpf__title {
    margin-bottom: 0;
}

.sgpf__section-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0 !important;
    border-radius: 999px;
    background: var(--sgpf-toggle-bg) !important;
    background-image: none !important;
    color: var(--sgpf-toggle-text) !important;
    box-shadow: none !important;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.sgpf__section-toggle:hover,
.sgpf__section-toggle:focus {
    background: var(--sgpf-toggle-bg-hover) !important;
    background-image: none !important;
    color: var(--sgpf-toggle-text) !important;
    transform: translateY(-1px);
}

.sgpf__section-toggle-plus,
.sgpf__section-toggle-minus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    color: inherit !important;
}

.sgpf__section-toggle-plus {
    display: none;
}

.sgpf__section-body {
    margin-top: 14px;
}

.sgpf__section--collapsible.is-collapsed .sgpf__section-body {
    display: none;
}

.sgpf__section--collapsible.is-collapsed .sgpf__section-toggle-plus {
    display: inline-flex;
}

.sgpf__section--collapsible.is-collapsed .sgpf__section-toggle-minus {
    display: none;
}

.sgpf__search {
    display: grid;
    grid-template-columns: 1fr 44px;
    gap: 6px;
    align-items: center;
    padding: 4px;
    border: 1px solid var(--sgpf-border);
    border-radius: 10px;
    background: var(--sgpf-surface);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

.sgpf__search input,
.sgpf__field input {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid var(--sgpf-border);
    border-radius: 10px;
    background: var(--sgpf-surface);
    color: var(--sgpf-text);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.sgpf__search input::placeholder,
.sgpf__field input::placeholder {
    color: var(--sgpf-muted);
}

.sgpf__search input:focus,
.sgpf__field input:focus {
    outline: 0;
    border-color: var(--sgpf-primary);
    box-shadow: 0 0 0 4px rgba(252, 137, 51, 0.09);
}

.sgpf__search input {
    min-height: 40px;
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
}

.sgpf__search input:focus {
    border-color: transparent;
    box-shadow: none;
}

.sgpf__search-button,
.sgpf__button {
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.sgpf__search-button {
    min-height: 40px;
    min-width: 40px;
    padding: 0;
    border: 0 !important;
    border-radius: 5px !important;
    background: var(--sgpf-search-btn) !important;
    background-image: none !important;
    color: var(--sgpf-button-text) !important;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    clip-path: inset(0 round 5px);
    appearance: none;
    -webkit-appearance: none;
}

.sgpf__search-button:hover,
.sgpf__search-button:focus {
    border-radius: 5px !important;
    background: var(--sgpf-search-btn-hover) !important;
    background-image: none !important;
    color: var(--sgpf-button-text) !important;
    transform: translateY(-1px);
}

.sgpf .sgpf__search .sgpf__search-button,
.sgpf .sgpf__search .sgpf__search-button:hover,
.sgpf .sgpf__search .sgpf__search-button:focus,
.sgpf .sgpf__search .sgpf__search-button:active {
    border-radius: 5px !important;
}

.sgpf__search-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: var(--sgpf-button-text);
}

.sgpf__search-glyph svg {
    display: block;
    width: 100%;
    height: 100%;
}

.sgpf__option-list {
    display: grid;
    gap: 6px;
}

.sgpf__option-list--scroll {
    max-height: 298px;
    padding-right: 6px;
    overflow-y: auto;
}

.sgpf__option-list--scroll::-webkit-scrollbar {
    width: 5px;
}

.sgpf__option-list--scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #d9deeb;
}

.sgpf__option-list--scroll::-webkit-scrollbar-track {
    background: #f7f8fb;
}

.sgpf__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 6px;
    border-radius: 10px;
    color: var(--sgpf-text);
    font-size: var(--sgpf-option-size);
    line-height: 1.35;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.sgpf__option:hover {
    background: #f7f9fd;
}

.sgpf__option-main {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.sgpf__section .sgpf__option-main .sgpf__stars + .sgpf__muted {
    margin-left: 2px;
}

.sgpf__option input {
    width: 18px;
    height: 18px;
    margin: 0;
    border: 1px solid #dfe4ee;
    border-radius: 5px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
    accent-color: var(--sgpf-primary);
}

.sgpf__count,
.sgpf__muted {
    font-size: 12px;
}

.sgpf__muted {
    color: var(--sgpf-muted);
}

.sgpf__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 24px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--sgpf-count-bg);
    color: var(--sgpf-count-text);
    font-weight: 600;
}

.sgpf__stars {
    color: var(--sgpf-star);
    display: inline-flex;
    align-items: center;
    letter-spacing: 1px;
    white-space: nowrap;
    font-size: 18px;
    line-height: 1;
}

.sgpf__price-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.sgpf__price-grid--boxed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

.sgpf__price-box {
    display: grid;
    gap: 6px;
}

.sgpf__price-label {
    color: var(--sgpf-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

.sgpf__field {
    position: relative;
}

.sgpf__field--range input {
    min-height: 44px;
    padding: 10px 14px;
}

.sgpf__field--price input {
    padding-left: 32px;
    border-radius: 12px;
}

.sgpf__currency {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: var(--sgpf-muted);
    font-size: 14px;
    font-weight: 700;
}

.sgpf__actions {
    display: grid;
    gap: 10px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--sgpf-border);
}

.sgpf__button {
    min-height: 40px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.sgpf__button--primary {
    background: var(--sgpf-primary);
    color: var(--sgpf-button-text);
    border-radius: 9px;
    box-shadow: 0 10px 18px rgba(252, 137, 51, 0.16);
}

.sgpf__button--secondary {
    min-height: auto;
    justify-self: center;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    color: var(--sgpf-text) !important;
    box-shadow: none !important;
    text-shadow: none !important;
    font-size: 12px;
    letter-spacing: 0.01em;
    appearance: none !important;
    -webkit-appearance: none !important;
    outline: 0 !important;
}

.sgpf__button--primary:hover,
.sgpf__button--primary:focus {
    background: var(--sgpf-primary-dark);
    color: var(--sgpf-button-text);
    transform: translateY(-1px);
}

.sgpf__button--secondary:hover {
    background: transparent !important;
    background-image: none !important;
    color: var(--sgpf-text) !important;
    box-shadow: none !important;
}

.sgpf__button--secondary:focus,
.sgpf__button--secondary:active,
.sgpf__button--secondary:visited {
    background: transparent !important;
    background-image: none !important;
    color: var(--sgpf-text) !important;
    box-shadow: none !important;
    border: 0 !important;
}

.sgpf__results-shell {
    min-height: 100%;
    width: 100%;
}

.sgpf__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.sgpf__result-count {
    margin: 0;
    color: var(--sgpf-text);
    font-size: 15px;
    font-weight: 700;
}

.sgpf__grid-wrap {
    position: relative;
    width: 100%;
}

.sgpf__catalog {
    width: 100%;
}

.sgpf__grid-wrap .products {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 24px;
    padding: 0;
    list-style: none;
}

.sgpf__grid-wrap .products::before,
.sgpf__grid-wrap .products::after {
    content: none !important;
    display: none !important;
}

.sgpf__grid-wrap .products[class*="columns-"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sgpf__grid-wrap .products > li.product {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
}

.sgpf__grid-wrap .products > li.product > a.woocommerce-loop-product__link {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
}

.sgpf__grid-wrap .products > li.product > a.woocommerce-loop-product__link .woocommerce-loop-product__title,
.sgpf__grid-wrap .products > li.product > a.woocommerce-loop-product__link .price {
    margin: 0 !important;
}

.sgpf__grid-wrap .products > li.product > a.woocommerce-loop-product__link .woocommerce-loop-product__title {
    display: block !important;
    width: 100% !important;
    margin: 0 0 var(--sgpf-title-spacing-bottom, 4px) !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: clip !important;
}

.sgpf__grid-wrap .products > li.product > .button,
.sgpf__grid-wrap .products > li.product > .added_to_cart {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 48px !important;
    margin: 12px 0 0 !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    background: var(--sgpf-primary) !important;
    border-color: var(--sgpf-primary) !important;
    color: var(--sgpf-button-text) !important;
    float: none !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    flex: 0 0 auto !important;
    align-self: stretch !important;
}

.sgpf__grid-wrap .products > li.product > .button:hover,
.sgpf__grid-wrap .products > li.product > .added_to_cart:hover {
    background: var(--sgpf-primary-dark) !important;
    border-color: var(--sgpf-primary-dark) !important;
    color: var(--sgpf-button-text) !important;
}

.sgpf__catalog .products li.product .woocommerce-loop-product__title {
    font-size: 16px !important;
    line-height: 1.35 !important;
}

.sgpf__catalog .products li.product .onsale {
    background: var(--sgpf-sale-bg) !important;
    color: var(--sgpf-sale-text) !important;
}

.sgpf__empty {
    padding: 48px 24px;
    border: 1px solid var(--sgpf-border);
    border-radius: 24px;
    background: var(--sgpf-surface);
    box-shadow: var(--sgpf-shadow);
    text-align: center;
}

.sgpf__empty h3 {
    margin: 0 0 10px;
    color: var(--sgpf-text);
    font-size: 22px;
}

.sgpf__empty p {
    margin: 0;
    color: var(--sgpf-muted);
}

.sgpf__infinite-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-top: 22px;
    text-align: center;
}

.sgpf__infinite-wrap.is-end {
    margin-top: 18px;
}

.sgpf__infinite-text {
    margin: 0;
    color: var(--sgpf-muted);
    font-size: 13px;
    font-weight: 500;
}

.sgpf__infinite-trigger {
    width: 1px;
    height: 1px;
}

.sgpf.is-loading .sgpf__results-shell {
    opacity: 0.55;
    pointer-events: none;
}

.sgpf.is-appending .sgpf__infinite-text {
    color: var(--sgpf-primary);
}

.sgpf.is-loading .sgpf__results-shell::after {
    content: "";
    position: absolute;
    inset: 0;
}

.sgpf.is-loading .sgpf__button,
.sgpf.is-loading .sgpf__search-button {
    opacity: 0.65;
}

@media (max-width: 1024px) {
    .sgpf__layout {
        grid-template-columns: 1fr;
    }

    .sgpf__form {
        position: static;
    }

    .sgpf__grid-wrap .products,
    .sgpf__grid-wrap .products[class*="columns-"] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 18px;
        row-gap: 22px;
    }
}

@media (max-width: 767px) {
    body.sgpf-drawer-open {
        overflow: hidden;
    }

    .sgpf__mobile-bar {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        margin-bottom: 14px;
    }

    .sgpf__mobile-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 38px;
        padding: 8px 14px;
        border: 1px solid #e7ebf2;
        border-radius: 10px;
        background: var(--sgpf-surface);
        color: var(--sgpf-heading);
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
    }

    .sgpf__mobile-toggle-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 16px;
        height: 16px;
    }

    .sgpf__mobile-toggle-icon svg {
        display: block;
        width: 100%;
        height: 100%;
    }

    .sgpf__overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(17, 24, 39, 0.52);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.24s ease, visibility 0.24s ease;
        z-index: 9998;
    }

    .sgpf__layout {
        grid-template-columns: 1fr;
    }

    .sgpf__sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 9999;
        width: min(320px, 86vw);
        padding: 14px 12px;
        background: var(--sgpf-surface);
        box-shadow: 18px 0 40px rgba(15, 23, 42, 0.18);
        transform: translateX(-102%);
        transition: transform 0.28s ease;
        overflow-y: auto;
    }

    .sgpf.is-open .sgpf__sidebar {
        transform: translateX(0);
    }

    .sgpf.is-open .sgpf__overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .sgpf__drawer-header {
        display: flex;
    }

    .sgpf__form {
        position: static;
        padding: 18px 14px;
        border-radius: 14px;
        box-shadow: none;
        border: 0;
        background: transparent;
    }

    .sgpf__search {
        grid-template-columns: 1fr 42px;
    }

    .sgpf__price-grid,
    .sgpf__price-grid--boxed {
        grid-template-columns: 1fr;
    }

    .sgpf__grid-wrap .products,
    .sgpf__grid-wrap .products[class*="columns-"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 12px;
        row-gap: 16px;
    }

    .sgpf__grid-wrap .products > li.product > .button,
    .sgpf__grid-wrap .products > li.product > .added_to_cart {
        min-height: 36px !important;
        padding: var(--sgpf-mobile-button-padding-y, 6px) 12px !important;
        font-size: 13px !important;
    }

    .sgpf__pagination .page-numbers {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .sgpf__grid-wrap .products,
    .sgpf__grid-wrap .products[class*="columns-"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 10px;
        row-gap: 14px;
    }

    .sgpf__grid-wrap .products > li.product > .button,
    .sgpf__grid-wrap .products > li.product > .added_to_cart {
        min-height: 34px !important;
        padding: var(--sgpf-mobile-button-padding-y, 6px) 12px !important;
        font-size: 13px !important;
    }
}
