.gf-widget-filter,
.gf-widget-filter *,
.gf-widget-products,
.gf-widget-products *,
.gf-pagination,
.gf-pagination *,
.gf-widget-pagination,
.gf-widget-pagination *,
.gf-active-filters,
.gf-active-filters *,
.gf-mobile-filter-toggle * {
    font-family: 'iransansxv', sans-serif;
}

.gf-widget-products {
    display: grid;
    grid-template-columns: repeat(var(--gf-columns-desktop, 4), minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.gf-widget-products > * {
    height: 100%;
}

.gf-widget-products ul.products {
    display: grid;
    grid-template-columns: inherit;
    gap: inherit;
    margin: 0;
    padding: 0;
}

.gf-widget-products ul.products > li.product {
    float: none;
    width: auto;
    margin: 0;
    height: 100%;
}

.gf-widget-products ul.products > li.product,
.gf-widget-products .e-loop-item,
.gf-widget-products .elementor-loop-item {
    display: flex;
    flex-direction: column;
}

.gf-widget-products ul.products > li.product > *,
.gf-widget-products .e-loop-item > *,
.gf-widget-products .elementor-loop-item > * {
    flex: 1 1 auto;
    min-height: 100%;
}

.gf-widget-products,
.gf-loading {
    position: relative;
}

.gf-loader-layer {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 20;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(1px);
    align-items: flex-start;
    justify-content: center;
    padding-top: 22%;
}

.gf-loading > .gf-loader-layer {
    display: flex;
}

.gf-loader-coin {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #8f6a16;
    background:
        radial-gradient(circle at 35% 30%, #fff4c6 0 12%, transparent 13%),
        radial-gradient(circle at 50% 50%, #f4d078 0 42%, #c89424 65%, #9e7214 100%);
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.7) inset,
        0 5px 14px rgba(133, 95, 17, 0.28);
    animation: gfSpin .95s linear infinite;
}

@keyframes gfSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.gf-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    direction: rtl;
}

.gf-pagination:empty {
    display: none;
}

.gf-pagination button {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    background: #fff;
    color: #2d2d2d;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.gf-pagination button:hover:not(:disabled) {
    border-color: #c89b36;
    color: #9c741a;
    box-shadow: 0 6px 16px rgba(181, 133, 29, 0.14);
}

.gf-pagination button:disabled {
    opacity: .45;
    cursor: not-allowed;
    box-shadow: none;
}

.gf-pagination span {
    color: #5c5c5c;
    font-size: 14px;
    font-weight: 600;
}

.gf-widget-pagination {
    display: flex;
    justify-content: center;
    margin-top: 18px;
    direction: rtl;
}

.gf-widget-pagination:empty {
    display: none;
}

.gf-widget-pagination .gf-pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gf-widget-pagination .gf-page-item {
    margin: 0;
    padding: 0;
    display: inline-flex;
}

.gf-widget-pagination button,
.gf-widget-pagination a,
.gf-widget-pagination span {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    background: #fff;
    color: #2d2d2d;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(18, 18, 18, 0.04);
    transition: border-color .18s ease, box-shadow .18s ease, color .18s ease, transform .15s ease, background-color .18s ease;
}

.gf-widget-pagination button:hover:not(:disabled),
.gf-widget-pagination a:hover {
    border-color: #c89b36;
    color: #9c741a;
    box-shadow: 0 6px 16px rgba(181, 133, 29, 0.14);
    transform: translateY(-1px);
}

.gf-widget-pagination button:active:not(:disabled),
.gf-widget-pagination a:active {
    transform: translateY(0);
}

.gf-widget-pagination button:disabled,
.gf-widget-pagination .is-disabled {
    opacity: .48;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.gf-widget-pagination .is-active,
.gf-widget-pagination [aria-current="page"] {
    border-color: #b98721;
    background: linear-gradient(135deg, #cfa03a, #ae7d1a);
    color: #fff;
    box-shadow: 0 8px 18px rgba(170, 121, 20, 0.28);
}

.gf-widget-pagination .gf-page-ellipsis {
    min-width: 30px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #969696;
    font-weight: 700;
    letter-spacing: 1px;
    user-select: none;
}

.gf-widget-pagination .gf-page-prev,
.gf-widget-pagination .gf-page-next {
    min-width: 58px;
}

.gf-widget-filter {
    display: grid;
    gap: 10px;
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 10px 26px rgba(24, 24, 24, 0.05);
}

.gf-widget-filter .gf-row {
    display: grid;
    gap: 10px;
    padding: 12px;
    background: linear-gradient(180deg, #fcfcfc, #f7f7f7);
    border: 1px solid #ececec;
    border-radius: 12px;
}

.gf-widget-filter label {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    color: #262626;
}

.gf-widget-filter strong {
    font-size: 15px;
    font-weight: 700;
    color: #171717;
    margin-bottom: 2px;
}

.gf-widget-filter .gf-row-sort > label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    line-height: 1;
}

.gf-widget-filter .gf-row-sort > label > select[name="orderby"] {
    width: 150px;
    min-width: 130px;
    margin-top: 0;
}

.gf-widget-filter input[type="number"],
.gf-widget-filter input[type="text"],
.gf-widget-filter select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d4d4d4;
    border-radius: 10px;
    background: #fff;
    padding: 0 12px;
    margin-top: 6px;
    outline: none;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.gf-widget-filter select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23666666' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    background-size: 12px 8px;
    padding-left: 34px;
}

.gf-widget-filter input[type="number"]:focus,
.gf-widget-filter input[type="text"]:focus,
.gf-widget-filter select:focus {
    border-color: #b88b2a;
    box-shadow: 0 0 0 3px rgba(184, 139, 42, 0.15);
}

.gf-widget-filter .gf-cats {
    display: grid;
    gap: 2px;
    max-height: min(42vh, 320px);
    overflow: auto;
    padding-inline-end: 6px;
}

.gf-widget-filter .gf-cats label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background-color .15s ease;
}

.gf-widget-filter .gf-cats .gf-cat-name {
    flex: 1 1 auto;
}

.gf-widget-filter .gf-cats .gf-facet-count {
    color: #8a8a8a;
    font-size: 12px;
    font-weight: 600;
    direction: ltr;
    white-space: nowrap;
}

.gf-widget-filter .gf-cats label.gf-facet-zero {
    opacity: .6;
}

.gf-widget-filter .gf-row-flags .gf-flag-name {
    flex: 1 1 auto;
}

.gf-widget-filter .gf-row-flags .gf-flag-count {
    color: #8a8a8a;
    font-size: 12px;
    font-weight: 600;
    direction: ltr;
    white-space: nowrap;
}

.gf-widget-filter .gf-cats label:hover {
    background: #f1f1f1;
}

.gf-widget-filter .gf-cats-tree .gf-cat-level {
    display: grid;
    gap: 2px;
}

.gf-widget-filter .gf-cats-tree .gf-cat-level[hidden] {
    display: none !important;
}

.gf-widget-filter .gf-cats-tree .gf-cat-level[data-parent-term] {
    margin-inline-start: 18px;
    padding-inline-start: 8px;
    border-inline-start: 1px dashed #dddddd;
}

.gf-widget-filter .gf-cats-tree .gf-cat-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background-color .15s ease;
}

.gf-widget-filter .gf-row > label input[type="checkbox"] {
    margin-inline-end: 10px;
    vertical-align: middle;
}

.gf-widget-filter .gf-row > label {
    display: flex;
    align-items: center;
    min-height: 36px;
}

.gf-widget-filter .gf-row-flags {
    gap: 2px;
}

.gf-widget-filter input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #b88b2a;
    margin: 0;
    flex-shrink: 0;
}

.gf-range {
    display: grid;
    gap: 10px;
}

.gf-range-values {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: #4f4f4f;
    font-weight: 500;
    direction: ltr;
}

.gf-range-values span {
    white-space: nowrap;
    line-height: 1.35;
    unicode-bidi: plaintext;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    direction: rtl;
}

.gf-range-values bdi {
    direction: ltr;
    unicode-bidi: isolate;
}

.gf-range-sliders {
    position: relative;
    height: 28px;
    direction: ltr;
    z-index: 0;
}

.gf-range-sliders::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 50%;
    height: 5px;
    border-radius: 999px;
    transform: translateY(-50%);
    background: #e1e1e1;
    z-index: 1;
}

.gf-range-sliders::after {
    content: "";
    position: absolute;
    top: 50%;
    height: 5px;
    border-radius: 999px;
    transform: translateY(-50%);
    left: var(--gf-from, 0%);
    right: calc(100% - var(--gf-to, 100%));
    background: linear-gradient(90deg, #d2a33a, #bb8721);
    z-index: 2;
}

.gf-range input[type="range"] {
    position: absolute;
    inset: 0;
    width: 100%;
    margin: 0;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    direction: ltr;
    z-index: 3;
    height: 28px;
}

.gf-range input[type="range"]::-webkit-slider-runnable-track {
    height: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 999px;
}

.gf-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #b88b2a;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18), 0 3px 10px rgba(0, 0, 0, 0.12);
    margin-top: -9px;
    pointer-events: auto;
    position: relative;
    z-index: 5;
}

.gf-range input[type="range"]::-moz-range-track {
    height: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 999px;
}

.gf-range input[type="range"]::-moz-range-progress {
    height: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.gf-range input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #b88b2a;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18), 0 3px 10px rgba(0, 0, 0, 0.12);
    pointer-events: auto;
    position: relative;
    z-index: 5;
    transform: translateY(-15px);
}

.gf-widget-filter button[type="submit"] {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #c89b36, #a97914);
    color: #fff;
    font-weight: 700;
    letter-spacing: .2px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
    box-shadow: 0 8px 18px rgba(168, 121, 20, 0.25);
}

.gf-widget-filter button[type="submit"]:hover {
    transform: translateY(-1px);
}

.gf-widget-filter button[type="submit"]:active {
    transform: translateY(0);
    opacity: .95;
}

.gf-widget-filter .gf-row-submit {
    background: transparent;
    border: 0;
    padding: 6px 0 0;
    box-shadow: none;
    display: grid;
    gap: 8px;
}

.gf-widget-filter .gf-clear-filters {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d2d2d2;
    border-radius: 10px;
    background: #fff;
    color: #1f1f1f;
    font-weight: 600;
    cursor: pointer;
}

.gf-active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 14px;
}

.gf-active-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.gf-chip {
    -webkit-appearance: none !important;
    appearance: none !important;
    border: 1px solid #d7d7d7 !important;
    border-radius: 999px !important;
    min-height: 34px !important;
    padding: 0 12px !important;
    background: #fff !important;
    color: #212121 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.gf-chip b {
    font-size: 14px !important;
    line-height: 1 !important;
    color: #1f1f1f !important;
}

.gf-active-filters .gf-chip:hover {
    border-color: #c89b36 !important;
    background: #fffaf0 !important;
}

.gf-active-filters .gf-clear-filters {
    -webkit-appearance: none !important;
    appearance: none !important;
    border: 1px solid #cdb27a !important;
    border-radius: 10px !important;
    min-height: 34px !important;
    padding: 0 14px !important;
    background: #fff8e8 !important;
    color: #6f4d0e !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.gf-active-filters .gf-clear-filters:hover {
    border-color: #b88b2a !important;
    background: #f7e8c8 !important;
}

.gf-active-filters .gf-save-landing {
    -webkit-appearance: none !important;
    appearance: none !important;
    border: 1px solid #1f7a67 !important;
    border-radius: 10px !important;
    min-height: 34px !important;
    padding: 0 14px !important;
    background: #1f7a67 !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    text-decoration: none !important;
    margin: 0 !important;
    cursor: pointer;
}

.gf-active-filters [hidden],
.gf-widget-filter .gf-row-submit [hidden] {
    display: none !important;
}

.gf-landing-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .35);
    padding: 16px;
}

.gf-landing-dialog {
    width: min(520px, 100%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .18);
    padding: 16px;
    display: grid;
    gap: 10px;
}

.gf-landing-dialog h3 {
    margin: 0;
    font-size: 18px;
}

.gf-landing-dialog label {
    display: grid;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}

.gf-landing-dialog input {
    min-height: 40px;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    padding: 0 10px;
}

.gf-landing-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.gf-landing-actions button {
    min-height: 38px;
    border-radius: 10px;
    border: 1px solid #d0d0d0;
    background: #fff;
    padding: 0 14px;
    cursor: pointer;
}

.gf-landing-actions button[data-l="save"] {
    border-color: #1f7a67;
    background: #1f7a67;
    color: #fff;
}

.gf-widget-filter .gf-cats::-webkit-scrollbar {
    width: 8px;
}

.gf-widget-filter .gf-cats::-webkit-scrollbar-track {
    background: #ececec;
    border-radius: 999px;
}

.gf-widget-filter .gf-cats::-webkit-scrollbar-thumb {
    background: #9d9d9d;
    border-radius: 999px;
}

.gf-widget-filter .gf-cats {
    scrollbar-color: #9d9d9d #ececec;
    scrollbar-width: thin;
}

.gf-mobile-filter-toggle,
.gf-mobile-filter-head,
.gf-mobile-filter-backdrop,
.gf-mobile-submit-close {
    display: none;
}

@media (max-width: 1024px) {
    .gf-widget-products {
        grid-template-columns: repeat(var(--gf-columns-tablet, 3), minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .gf-widget-products {
        grid-template-columns: repeat(var(--gf-columns-mobile, 2), minmax(0, 1fr));
    }

    .gf-widget-pagination {
        margin-top: 12px;
    }

    .gf-widget-pagination button,
    .gf-widget-pagination a {
        min-width: 34px;
        height: 34px;
        padding: 0 8px;
        border-radius: 9px;
        font-size: 13px;
    }

    .gf-widget-pagination .gf-page-prev,
    .gf-widget-pagination .gf-page-next {
        min-width: 50px;
    }

    .gf-mobile-filter-toggle {
        display: flex;
        width: 100%;
        min-height: 42px;
        align-items: center;
        justify-content: center;
        border: 1px solid #d3d3d3;
        border-radius: 10px;
        background: #fff;
        color: #1f1f1f;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .gf-loader-layer {
        padding-top: 30%;
    }

    .gf-mobile-filter-backdrop.is-open {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.36);
        z-index: 9998;
    }

    .gf-mobile-filterable {
        display: none;
    }

    .gf-mobile-filterable.is-mobile-open {
        display: grid;
        position: fixed;
        inset: 0;
        z-index: 9999;
        overflow: auto;
        background: #f6f6f6;
        border-radius: 0;
        border: 0;
        box-shadow: none;
        padding: 12px 12px calc(14px + env(safe-area-inset-bottom));
        max-height: 100dvh;
        align-content: start;
    }

    .gf-mobile-filter-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        position: sticky;
        top: 0;
        z-index: 5;
        background: #f6f6f6;
        padding: 2px 0 8px;
        border-bottom: 1px solid #e8e8e8;
        margin-bottom: 2px;
    }

    .gf-mobile-filter-close {
        min-height: 34px;
        padding: 0 14px;
        border: 1px solid #d0d0d0;
        border-radius: 8px;
        background: #fff;
        color: #222;
        font-weight: 600;
    }

    .gf-mobile-filterable.is-mobile-open .gf-row-submit {
        position: sticky;
        bottom: 0;
        z-index: 8;
        display: grid;
        grid-template-columns: 86px 1fr;
        gap: 8px;
        margin-top: 6px;
        padding: 10px 0 calc(8px + env(safe-area-inset-bottom));
        background: linear-gradient(180deg, rgba(246, 246, 246, 0), #f6f6f6 30%);
    }

    .gf-mobile-filterable.is-mobile-open .gf-row-submit .gf-mobile-submit-close {
        display: block;
        min-height: 46px;
        border: 1px solid #cfcfcf;
        border-radius: 12px;
        background: #fff;
        color: #222;
        font-weight: 700;
    }

    .gf-mobile-filterable.is-mobile-open .gf-row-submit button[type="submit"] {
        min-height: 46px;
        margin: 0;
    }

    body.gf-mobile-filter-open {
        overflow: hidden;
    }
}
