:root {
    --arso-growth-primary: var(--arso-primary, #ef5aa8);
    --arso-growth-soft: var(--arso-soft, #fff3f9);
    --arso-growth-text: var(--arso-text, #3f3340);
    --arso-growth-success: var(--arso-success, #22a06b);
    --arso-growth-border: #ece7eb;
    --arso-growth-shadow: 0 14px 38px rgba(49, 35, 47, .09);
}

.arso-smart-discovery,
.arso-wishlist-page,
.arso-beauty-party,
.arso-club,
.arso-growth-toast,
.arso-beauty-party-mobile-button {
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
}

.arso-smart-discovery *,
.arso-wishlist-page *,
.arso-beauty-party *,
.arso-club * {
    box-sizing: border-box;
}

.arso-smart-discovery {
    position: relative;
    z-index: 5;
    width: 100%;
    margin: 0 0 24px;
    padding: 18px;
    border: 1px solid var(--arso-growth-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--arso-growth-shadow);
}

.arso-discovery-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.arso-discovery-search-wrap {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-height: 52px;
    padding: 5px 6px 5px 5px;
    border: 1px solid #e9e4e8;
    border-radius: 16px;
    background: #faf9fa;
}

.arso-discovery-search-wrap > span {
    padding: 0 8px;
    color: var(--arso-growth-primary);
    font-size: 24px;
}

.arso-discovery-search {
    width: 100%;
    height: 40px !important;
    padding: 0 4px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 13px !important;
}

.arso-discovery-search-button,
.arso-open-filters {
    min-height: 42px;
    padding: 0 17px;
    border: 0;
    border-radius: 12px;
    background: var(--arso-growth-primary);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.arso-open-filters {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.arso-suggested-filters {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--arso-growth-soft), #fff 72%);
}

.arso-suggested-filters__head {
    min-width: 170px;
}

.arso-suggested-filters__head strong,
.arso-suggested-filters__head small {
    display: block;
}

.arso-suggested-filters__head strong {
    color: var(--arso-growth-text);
    font-size: 13px;
}

.arso-suggested-filters__head small {
    margin-top: 3px;
    color: #817780;
    font-size: 10px;
    line-height: 1.7;
}

.arso-filter-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.arso-filter-chips::-webkit-scrollbar {
    display: none;
}

.arso-smart-chip,
.arso-active-filters button {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid rgba(239, 90, 168, .22);
    border-radius: 999px;
    background: #fff;
    color: var(--arso-growth-primary);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.arso-active-filters {
    display: none;
    gap: 7px;
    margin-top: 12px;
    overflow-x: auto;
}

.arso-active-filters.has-items {
    display: flex;
}

.arso-active-filters button {
    border-color: #e8e1e6;
    color: #625860;
    font-weight: 600;
}

.arso-filter-panel {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee9ed;
}

.arso-filter-panel__mobile-head,
.arso-filter-backdrop {
    display: none;
}

.arso-filter-group {
    min-width: 0;
    padding: 11px;
    border: 1px solid #eee9ed;
    border-radius: 14px;
    background: #fff;
}

.arso-filter-group__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 0 9px;
    border: 0;
    border-bottom: 1px solid #f2eef1;
    background: transparent;
    color: var(--arso-growth-text);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.arso-filter-group.is-collapsed .arso-filter-group__body {
    display: none;
}

.arso-filter-group__body {
    padding-top: 9px;
}

.arso-filter-options {
    display: grid;
    gap: 7px;
    max-height: 190px;
    overflow: auto;
    padding-left: 3px;
}

.arso-filter-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 7px;
    align-items: center;
    color: #5f555d;
    font-size: 11px;
    cursor: pointer;
}

.arso-filter-option input {
    accent-color: var(--arso-growth-primary);
}

.arso-filter-option small {
    color: #a0979f;
    font-size: 9px;
}

.arso-filter-option-search {
    width: 100%;
    height: 34px !important;
    margin-bottom: 8px;
    border-radius: 9px !important;
    font-size: 10px !important;
}

.arso-price-filter {
    display: grid;
    gap: 8px;
}

.arso-price-filter label {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 6px;
    align-items: center;
    color: #746a72;
    font-size: 10px;
}

.arso-price-filter input {
    width: 100%;
    height: 34px !important;
    border-radius: 9px !important;
    font-size: 10px !important;
}

.arso-switch-filter-group {
    display: grid;
    align-content: start;
    gap: 12px;
    font-size: 11px;
}

.arso-switch-filter-group label {
    display: flex;
    gap: 7px;
    align-items: center;
}

.arso-filter-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-end;
    gap: 9px;
}

.arso-filter-actions .button {
    min-height: 40px;
    border-radius: 11px;
}

.arso-filter-actions .button.alt {
    border-color: var(--arso-growth-primary);
    background: var(--arso-growth-primary);
    color: #fff;
}

.arso-discovery-guide {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 11px 13px;
    border-radius: 13px;
    background: #faf7f9;
    color: #6f646c;
    font-size: 11px;
}

.arso-discovery-guide p {
    margin: 0;
}

.arso-discovery-results-wrap {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #eee9ed;
}

.arso-discovery-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.arso-discovery-results-head strong {
    color: var(--arso-growth-text);
    font-size: 15px;
}

.arso-discovery-results-head label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #71676f;
    font-size: 11px;
}

.arso-discovery-results-head select {
    min-width: 170px;
    height: 38px;
    border-radius: 10px;
}

.arso-discovery-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 60px;
    color: #766c74;
    font-size: 11px;
}

.arso-discovery-loading[hidden] {
    display: none;
}

.arso-discovery-loading span {
    width: 20px;
    height: 20px;
    border: 2px solid #f1d6e4;
    border-top-color: var(--arso-growth-primary);
    border-radius: 50%;
    animation: arso-spin .7s linear infinite;
}

@keyframes arso-spin {
    to { transform: rotate(360deg); }
}

.arso-discovery-results.is-loading {
    opacity: .45;
    pointer-events: none;
}

.arso-discovery-summary {
    margin-bottom: 10px;
    color: #837981;
    font-size: 10px;
}

.arso-growth-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.arso-growth-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--arso-growth-border);
    border-radius: 17px;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.arso-growth-product-card:hover {
    transform: translateY(-2px);
    border-color: rgba(239, 90, 168, .34);
    box-shadow: 0 10px 26px rgba(48, 34, 46, .09);
}

.arso-growth-product-card__image {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    padding: 12px;
    background: #fff;
}

.arso-growth-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.arso-growth-sale-badge,
.arso-growth-context-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--arso-growth-primary);
    color: #fff;
    font-size: 8px;
    font-weight: 800;
}

.arso-growth-sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

.arso-growth-context-badge {
    margin-bottom: 6px;
    background: var(--arso-growth-soft);
    color: var(--arso-growth-primary);
}

.arso-growth-product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 12px;
    border-top: 1px solid #f2eef1;
}

.arso-growth-product-card h3 {
    min-height: 44px;
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.85;
}

.arso-growth-product-card h3 a {
    color: var(--arso-growth-text);
}

.arso-growth-product-price {
    margin-bottom: 5px;
    color: var(--arso-growth-primary);
    font-size: 12px;
    font-weight: 800;
}

.arso-growth-product-price del {
    color: #a69da4;
    font-size: 9px;
    font-weight: 400;
}

.arso-growth-stock {
    margin-bottom: 9px;
    font-size: 9px;
}

.arso-growth-stock.is-in {
    color: var(--arso-growth-success);
}

.arso-growth-stock.is-out {
    color: #bb3d4b;
}

.arso-growth-product-card .button {
    width: 100%;
    min-height: 38px;
    margin-top: auto;
    padding: 7px 9px;
    border: 0;
    border-radius: 11px;
    background: var(--arso-growth-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
}

.arso-growth-product-card .button.loading {
    opacity: .7;
}

.arso-wishlist-toggle {
    position: absolute;
    z-index: 4;
    top: 9px;
    left: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    border: 1px solid #eee7ec;
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    color: var(--arso-growth-primary);
    box-shadow: 0 5px 14px rgba(40, 28, 39, .08);
    cursor: pointer;
}

.arso-wishlist-toggle span {
    font-size: 19px;
    line-height: 1;
}

.arso-wishlist-toggle em {
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
}

.arso-wishlist-toggle.is-active {
    border-color: rgba(239, 90, 168, .3);
    background: var(--arso-growth-soft);
}

.arso-wishlist-toggle.is-loading {
    opacity: .55;
    pointer-events: none;
}

.arso-single-wishlist {
    position: relative;
    display: block;
    margin: 10px 0;
}

.arso-single-wishlist .arso-wishlist-toggle {
    position: static;
    min-width: 170px;
    padding: 0 14px;
}

.arso-hide-theme-wishlist .wd-wishlist-btn,
.arso-hide-theme-wishlist .woodmart-wishlist-btn,
.arso-hide-theme-wishlist .wd-wishlist-icon,
.arso-hide-theme-wishlist .wd-tools-element.wd-wishlist,
.arso-hide-theme-wishlist .woodmart-wishlist-info-widget {
    display: none !important;
}

.arso-discovery-pagination {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 18px;
}

.arso-discovery-pagination button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid #e8e2e6;
    border-radius: 10px;
    background: #fff;
    color: #665c64;
    cursor: pointer;
}

.arso-discovery-pagination button.is-active {
    border-color: var(--arso-growth-primary);
    background: var(--arso-growth-primary);
    color: #fff;
}

.arso-empty-state {
    grid-column: 1 / -1;
    padding: 30px 18px;
    border: 1px dashed #e3dce1;
    border-radius: 16px;
    background: #fbfafb;
    color: #746a72;
    text-align: center;
}

.arso-discovery-mounted.arso-replace-shop-loop .shop-loop-head,
.arso-discovery-mounted.arso-replace-shop-loop .woocommerce-result-count,
.arso-discovery-mounted.arso-replace-shop-loop .woocommerce-ordering,
.arso-discovery-mounted.arso-replace-shop-loop .products.wd-products,
.arso-discovery-mounted.arso-replace-shop-loop .products.elements-grid,
.arso-discovery-mounted.arso-replace-shop-loop nav.woocommerce-pagination,
.arso-discovery-mounted.arso-replace-shop-loop .wd-loop-footer,
.arso-discovery-mounted.arso-replace-shop-loop .area-sidebar-shop,
.arso-discovery-mounted.arso-replace-shop-loop .sidebar-container,
.arso-discovery-mounted.arso-replace-shop-loop .shop-sidebar,
.arso-discovery-mounted.arso-replace-shop-loop .wd-sidebar {
    display: none !important;
}

.arso-growth-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.arso-growth-section-head h1,
.arso-growth-section-head h2,
.arso-growth-section-head p {
    margin: 0;
}

.arso-growth-section-head h1,
.arso-growth-section-head h2 {
    color: var(--arso-growth-text);
}

.arso-growth-section-head h1 {
    font-size: 27px;
}

.arso-growth-section-head h2 {
    font-size: 20px;
}

.arso-growth-section-head p {
    margin-top: 5px;
    color: #7e747c;
    font-size: 11px;
}

.arso-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--arso-growth-primary);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .2px;
}

.arso-wishlist-page {
    padding: 22px;
    border: 1px solid var(--arso-growth-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--arso-growth-shadow);
}

.arso-wishlist-count {
    padding: 8px 11px;
    border-radius: 999px;
    background: var(--arso-growth-soft);
    color: var(--arso-growth-primary);
    font-size: 10px;
    font-weight: 800;
}

.arso-inventory-discount-note {
    display: block;
    width: fit-content;
    margin-top: 3px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #eefaf5;
    color: #168454;
    font-size: 8px;
    font-weight: 800;
}

.arso-beauty-party {
    max-width: 1320px;
    margin: 0 auto;
    padding: 18px 0 40px;
}

.arso-beauty-party-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    align-items: center;
    min-height: 340px;
    overflow: hidden;
    padding: 44px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.8), transparent 35%),
        linear-gradient(135deg, #fff0f7, #ffe1ee 46%, #ffd3e6);
    box-shadow: 0 20px 50px rgba(89, 38, 66, .13);
}

.arso-beauty-party-hero:after {
    content: '';
    position: absolute;
    inset: auto -80px -110px auto;
    width: 320px;
    height: 320px;
    border: 55px solid rgba(255,255,255,.38);
    border-radius: 50%;
}

.arso-beauty-party-hero__copy {
    position: relative;
    z-index: 2;
}

.arso-beauty-party-hero h1 {
    margin: 0 0 10px;
    color: #59384b;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.2;
}

.arso-beauty-party-hero p {
    max-width: 620px;
    margin: 0;
    color: #75576a;
    font-size: 14px;
    line-height: 2;
}

.arso-party-countdown {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-top: 22px;
    padding: 11px 14px;
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 16px;
    background: rgba(255,255,255,.58);
    backdrop-filter: blur(8px);
}

.arso-party-countdown b {
    color: #68465a;
    font-size: 10px;
}

.arso-party-countdown > div {
    display: flex;
    direction: ltr;
    align-items: center;
    gap: 5px;
}

.arso-party-countdown span {
    display: grid;
    place-items: center;
    min-width: 39px;
    height: 39px;
    border-radius: 11px;
    background: #fff;
    color: var(--arso-growth-primary);
    font-size: 15px;
    font-weight: 900;
}

.arso-party-countdown em {
    color: #8a6479;
    font-style: normal;
    font-weight: 900;
}

.arso-beauty-party-hero__visual {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    transform: rotate(-5deg);
    color: rgba(99, 47, 76, .9);
}

.arso-beauty-party-hero__visual span,
.arso-beauty-party-hero__visual strong {
    line-height: .9;
    letter-spacing: 5px;
}

.arso-beauty-party-hero__visual span {
    font-size: 44px;
    font-weight: 300;
}

.arso-beauty-party-hero__visual strong {
    font-size: 64px;
}

.arso-beauty-party-hero__visual i {
    margin-top: 16px;
    color: #fff;
    font-size: 50px;
    font-style: normal;
    text-shadow: 0 8px 18px rgba(116, 52, 87, .22);
}

.arso-party-featured,
.arso-party-daily-products {
    margin-top: 32px;
    padding: 24px;
    border: 1px solid var(--arso-growth-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--arso-growth-shadow);
}

.arso-party-featured-grid {
    grid-template-columns: minmax(0, 330px);
}

.arso-party-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.arso-party-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.arso-party-trust div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: 14px;
    background: #fff;
    color: #62575f;
    box-shadow: 0 6px 18px rgba(45, 32, 43, .05);
    font-size: 11px;
}

.arso-party-trust b {
    color: var(--arso-growth-success);
}

.arso-beauty-party-mobile-button {
    position: fixed;
    z-index: 9994;
    right: 50%;
    bottom: calc(8px + env(safe-area-inset-bottom));
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 64px;
    transform: translateX(50%);
    border: 5px solid #fff;
    border-radius: 24px 24px 18px 18px;
    background: linear-gradient(135deg, var(--arso-growth-primary), #ff86c1);
    color: #fff;
    box-shadow: 0 12px 28px rgba(239, 90, 168, .34);
    font-size: 9px;
    font-weight: 900;
    line-height: 1.2;
}

.arso-beauty-party-mobile-button__icon {
    margin-bottom: 2px;
    font-size: 19px;
}

.arso-club {
    display: grid;
    gap: 18px;
}

.arso-club-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 25px;
    border-radius: 24px;
    background: linear-gradient(135deg, #fff0f7, #fff 72%);
    box-shadow: var(--arso-growth-shadow);
}

.arso-club-hero h2,
.arso-club-hero p {
    margin: 0;
}

.arso-club-hero h2 {
    color: var(--arso-growth-text);
    font-size: 25px;
}

.arso-club-hero p {
    margin-top: 5px;
    color: #766b73;
    font-size: 11px;
}

.arso-club-balance {
    min-width: 150px;
    padding: 17px;
    border-radius: 18px;
    background: #fff;
    text-align: center;
}

.arso-club-balance strong,
.arso-club-balance span {
    display: block;
}

.arso-club-balance strong {
    color: var(--arso-growth-primary);
    font-size: 28px;
}

.arso-club-balance span {
    color: #827781;
    font-size: 9px;
}

.arso-club-progress,
.arso-club-redeem,
.arso-club-ledger {
    padding: 18px;
    border: 1px solid var(--arso-growth-border);
    border-radius: 18px;
    background: #fff;
}

.arso-club-progress > div {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #f0eaee;
}

.arso-club-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--arso-growth-primary), #ff8bc3);
}

.arso-club-progress p {
    margin: 8px 0 0;
    color: #756b73;
    font-size: 10px;
}

.arso-club-redeem {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.arso-club-redeem h3,
.arso-club-redeem p {
    margin: 0;
}

.arso-club-redeem h3,
.arso-club-ledger h3 {
    color: var(--arso-growth-text);
    font-size: 16px;
}

.arso-club-redeem p {
    margin-top: 4px;
    color: #756b73;
    font-size: 10px;
}

.arso-redeem-result {
    color: var(--arso-growth-success);
    text-align: center;
}

.arso-ledger-list {
    display: grid;
    gap: 8px;
}

.arso-ledger-row {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
    background: #faf9fa;
}

.arso-ledger-row > span {
    font-size: 13px;
    font-weight: 900;
}

.arso-ledger-row > span.is-plus {
    color: var(--arso-growth-success);
}

.arso-ledger-row > span.is-minus {
    color: #bd4050;
}

.arso-ledger-row b,
.arso-ledger-row small {
    display: block;
}

.arso-ledger-row b {
    color: #5f555d;
    font-size: 10px;
}

.arso-ledger-row small {
    margin-top: 3px;
    color: #9a9198;
    font-size: 8px;
}

.arso-growth-toast {
    position: fixed;
    z-index: 100000;
    right: 50%;
    bottom: 24px;
    max-width: min(92vw, 420px);
    padding: 12px 17px;
    transform: translate(50%, 20px);
    border-radius: 13px;
    background: #29322f;
    color: #fff;
    box-shadow: 0 15px 35px rgba(0,0,0,.2);
    font-size: 11px;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transition: .25s ease;
}

.arso-growth-toast.is-visible {
    transform: translate(50%, 0);
    opacity: 1;
}

.arso-growth-toast.is-error {
    background: #b73c4c;
}

@media (max-width: 1100px) {
    .arso-filter-panel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .arso-growth-products,
    .arso-party-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    body.arso-filter-open {
        overflow: hidden;
    }

    .arso-smart-discovery {
        margin-bottom: 16px;
        padding: 12px;
        border-radius: 16px;
        box-shadow: 0 8px 20px rgba(49, 35, 47, .07);
    }

    .arso-discovery-topbar {
        grid-template-columns: minmax(0, 1fr) 46px;
        gap: 8px;
    }

    .arso-discovery-search-wrap {
        min-height: 46px;
        grid-template-columns: auto minmax(0, 1fr);
        border-radius: 13px;
    }

    .arso-discovery-search-wrap > span {
        padding: 0 5px;
        font-size: 21px;
    }

    .arso-discovery-search {
        height: 38px !important;
        font-size: 11px !important;
    }

    .arso-discovery-search-button {
        display: none;
    }

    .arso-open-filters {
        width: 46px;
        min-height: 46px;
        justify-content: center;
        padding: 0;
        font-size: 0;
        border-radius: 13px;
    }

    .arso-open-filters span {
        font-size: 18px;
    }

    .arso-suggested-filters {
        display: block;
        margin-top: 10px;
        padding: 10px;
        border-radius: 13px;
    }

    .arso-suggested-filters__head {
        min-width: 0;
        margin-bottom: 8px;
    }

    .arso-suggested-filters__head small {
        display: none;
    }

    .arso-smart-chip,
    .arso-active-filters button {
        padding: 7px 10px;
        font-size: 9px;
    }

    .arso-filter-backdrop {
        position: fixed;
        z-index: 99990;
        inset: 0;
        display: block;
        background: rgba(31, 22, 29, .48);
        opacity: 0;
        transition: opacity .22s ease;
    }

    .arso-filter-backdrop.is-visible {
        opacity: 1;
    }

    .arso-filter-panel {
        position: fixed;
        z-index: 99991;
        right: 0;
        bottom: 0;
        left: 0;
        display: block;
        max-height: 86vh;
        margin: 0;
        padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
        overflow-y: auto;
        transform: translateY(104%);
        border: 0;
        border-radius: 24px 24px 0 0;
        background: #fff;
        box-shadow: 0 -12px 35px rgba(0,0,0,.16);
        transition: transform .25s ease;
    }

    .arso-filter-panel.is-open {
        transform: translateY(0);
    }

    .arso-filter-panel__mobile-head {
        position: sticky;
        z-index: 2;
        top: -12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: -12px -12px 10px;
        padding: 14px 14px 10px;
        border-bottom: 1px solid #eee9ed;
        background: #fff;
    }

    .arso-filter-panel__mobile-head:before {
        content: '';
        position: absolute;
        top: 5px;
        right: 50%;
        width: 42px;
        height: 4px;
        transform: translateX(50%);
        border-radius: 999px;
        background: #ddd4da;
    }

    .arso-close-filters {
        width: 34px;
        height: 34px;
        border: 0;
        border-radius: 50%;
        background: #f5f2f4;
        color: #635860;
        font-size: 22px;
    }

    .arso-filter-group {
        margin-bottom: 9px;
        padding: 11px;
        border-radius: 13px;
    }

    .arso-filter-options {
        max-height: 220px;
    }

    .arso-filter-actions {
        position: sticky;
        z-index: 3;
        bottom: calc(-12px - env(safe-area-inset-bottom));
        display: grid;
        grid-template-columns: .7fr 1.3fr;
        margin: 14px -12px -12px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: #fff;
        box-shadow: 0 -8px 20px rgba(35, 24, 33, .08);
    }

    .arso-discovery-results-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .arso-discovery-results-head label,
    .arso-discovery-results-head select {
        width: 100%;
    }

    .arso-growth-products,
    .arso-party-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .arso-growth-product-card {
        border-radius: 14px;
    }

    .arso-growth-product-card__image {
        padding: 7px;
    }

    .arso-growth-product-card__body {
        padding: 9px;
    }

    .arso-growth-product-card h3 {
        min-height: 39px;
        margin-bottom: 5px;
        font-size: 9px;
        line-height: 1.8;
    }

    .arso-growth-product-price {
        font-size: 10px;
    }

    .arso-growth-product-card .button {
        min-height: 34px;
        border-radius: 9px;
        font-size: 8px;
    }

    .arso-growth-sale-badge {
        top: 6px;
        right: 6px;
        font-size: 7px;
    }

    .arso-wishlist-toggle {
        top: 5px;
        left: 5px;
        min-width: 30px;
        height: 30px;
        padding: 0 7px;
    }

    .arso-wishlist-toggle span {
        font-size: 17px;
    }

    .arso-growth-section-head {
        align-items: flex-start;
    }

    .arso-growth-section-head h1 {
        font-size: 21px;
    }

    .arso-growth-section-head h2 {
        font-size: 16px;
    }

    .arso-wishlist-page {
        padding: 13px;
        border-radius: 16px;
    }

    .arso-beauty-party {
        padding: 0 0 90px;
    }

    .arso-beauty-party-hero {
        display: block;
        min-height: 0;
        padding: 25px 17px;
        border-radius: 0 0 24px 24px;
    }

    .arso-beauty-party-hero h1 {
        font-size: 34px;
    }

    .arso-beauty-party-hero p {
        font-size: 11px;
    }

    .arso-party-countdown {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
        margin-top: 16px;
    }

    .arso-party-countdown b {
        font-size: 8px;
    }

    .arso-party-countdown span {
        min-width: 34px;
        height: 34px;
        font-size: 12px;
    }

    .arso-beauty-party-hero__visual {
        display: none;
    }

    .arso-party-featured,
    .arso-party-daily-products {
        margin: 15px 10px 0;
        padding: 13px;
        border-radius: 17px;
    }

    .arso-party-featured-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .arso-party-trust {
        display: flex;
        gap: 8px;
        margin: 12px 10px 0;
        overflow-x: auto;
    }

    .arso-party-trust div {
        flex: 0 0 auto;
        padding: 10px 12px;
        font-size: 9px;
    }

    .arso-beauty-party-mobile-button {
        display: flex;
    }

    .arso-club-hero {
        align-items: stretch;
        flex-direction: column;
        padding: 17px;
        border-radius: 17px;
    }

    .arso-club-balance {
        min-width: 0;
    }

    .arso-club-redeem {
        align-items: stretch;
        flex-direction: column;
    }

    .arso-growth-toast {
        bottom: calc(84px + env(safe-area-inset-bottom));
    }
}

.arso-inline-smart-promo {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px 14px;
    align-items: center;
    padding: 16px 18px;
    border: 1px solid rgba(239, 90, 168, .2);
    border-radius: 17px;
    background: linear-gradient(135deg, var(--arso-growth-soft), #fff);
}

.arso-inline-smart-promo > span {
    grid-row: 1 / 3;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--arso-growth-primary);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
}

.arso-inline-smart-promo strong {
    color: var(--arso-growth-text);
    font-size: 13px;
}

.arso-inline-smart-promo small {
    color: #7c727a;
    font-size: 9px;
}

.arso-inline-smart-promo .arso-smart-chip {
    grid-column: 3;
    grid-row: 1 / 3;
}

@media (max-width: 768px) {
    .arso-inline-smart-promo {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        padding: 12px;
    }

    .arso-inline-smart-promo > span {
        font-size: 8px;
    }

    .arso-inline-smart-promo strong {
        font-size: 11px;
    }

    .arso-inline-smart-promo .arso-smart-chip {
        width: 100%;
        text-align: center;
    }
}


/* Woodmart compatibility: only take over layout after the independent shop UI is mounted. */
.arso-discovery-fallback[hidden] { display: none !important; }
.arso-discovery-mounted.arso-replace-shop-loop .site-content,
.arso-discovery-mounted.arso-replace-shop-loop .content-area,
.arso-discovery-mounted.arso-replace-shop-loop .shop-content-area {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}
.arso-smart-discovery {
    width: 100%;
    max-width: 100%;
    clear: both;
}
[data-arso-hidden-legacy="1"] { display: none !important; }

/* Loyalty missions */
.arso-club-tasks {
    margin-top: 24px;
    padding: 22px;
    border: 1px solid #eadfe6;
    border-radius: 20px;
    background: #fff;
}
.arso-club-tasks__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.arso-club-tasks__head h3,
.arso-club-tasks__head small { margin: 0; }
.arso-task-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.arso-task-card {
    position: relative;
    padding: 18px;
    border: 1px solid #eadfe6;
    border-radius: 16px;
    background: #fff9fc;
}
.arso-task-card.is-complete {
    border-color: #bfe6c8;
    background: #f4fff6;
}
.arso-task-card__points {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #ffe3f1;
    color: #b7236b;
    font-size: 12px;
    font-weight: 800;
}
.arso-task-card h4 { margin: 0 0 8px; }
.arso-task-card p { margin: 0 0 14px; color: #6f6570; line-height: 1.8; }
.arso-task-card__action { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.arso-task-status {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 10px;
    background: #f1edf0;
    color: #625960;
    font-size: 12px;
    font-weight: 700;
}
.arso-task-status.is-approved { background: #e6f8ea; color: #187739; }
.arso-task-status.is-pending { background: #fff4d8; color: #8b6410; }

@media (max-width: 900px) {
    .arso-task-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .arso-club-tasks { padding: 15px; border-radius: 16px; }
    .arso-club-tasks__head { align-items: flex-start; flex-direction: column; }
    .arso-task-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 6px; }
    .arso-task-card { min-width: 82%; scroll-snap-align: start; }
}

/* ========================================================================
 * 3.0.2 — پایدارسازی فیلتر حرفه‌ای آرابیرا و جایگزینی کامل فیلتر Woodmart
 * ====================================================================== */

/* فیلتر قدیمی قالب در آرشیو محصول کاملاً کنار گذاشته می‌شود. */
body.arso-smart-discovery-enabled.post-type-archive-product .area-sidebar-shop,
body.arso-smart-discovery-enabled.post-type-archive-product .sidebar-container,
body.arso-smart-discovery-enabled.post-type-archive-product .shop-sidebar,
body.arso-smart-discovery-enabled.post-type-archive-product .wd-sidebar,
body.arso-smart-discovery-enabled.tax-product_cat .area-sidebar-shop,
body.arso-smart-discovery-enabled.tax-product_cat .sidebar-container,
body.arso-smart-discovery-enabled.tax-product_cat .shop-sidebar,
body.arso-smart-discovery-enabled.tax-product_cat .wd-sidebar,
body.arso-smart-discovery-enabled.tax-product_tag .area-sidebar-shop,
body.arso-smart-discovery-enabled.tax-product_tag .sidebar-container,
body.arso-smart-discovery-enabled.tax-product_tag .shop-sidebar,
body.arso-smart-discovery-enabled.tax-product_tag .wd-sidebar,
body.arso-smart-discovery-enabled .wd-show-sidebar-btn,
body.arso-smart-discovery-enabled .woodmart-show-sidebar-btn,
body.arso-smart-discovery-enabled .shop-loop-head .wd-sidebar-opener,
body.arso-smart-discovery-enabled .wd-shop-tools .wd-sidebar-opener {
    display: none !important;
}

body.arso-smart-discovery-enabled.post-type-archive-product .content-with-products,
body.arso-smart-discovery-enabled.post-type-archive-product .shop-content-area,
body.arso-smart-discovery-enabled.tax-product_cat .content-with-products,
body.arso-smart-discovery-enabled.tax-product_cat .shop-content-area,
body.arso-smart-discovery-enabled.tax-product_tag .content-with-products,
body.arso-smart-discovery-enabled.tax-product_tag .shop-content-area {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

.arso-discovery-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 286px;
    gap: 18px;
    align-items: start;
    margin-top: 16px;
}

.arso-discovery-main {
    grid-column: 1;
    min-width: 0;
}

.arso-filter-panel {
    grid-column: 2;
    position: sticky;
    top: 22px;
    display: block;
    max-height: calc(100vh - 44px);
    margin: 0;
    padding: 13px;
    overflow-y: auto;
    border: 1px solid #eee8ed;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff, #fffafd);
    box-shadow: 0 10px 28px rgba(55, 38, 51, .07);
    scrollbar-width: thin;
    scrollbar-color: #e8dce3 transparent;
}

.arso-filter-panel .arso-filter-group {
    margin: 0 0 10px;
    padding: 11px;
    border-color: #eee8ed;
    box-shadow: none;
}

.arso-filter-panel .arso-filter-group:last-of-type {
    margin-bottom: 0;
}

.arso-filter-panel .arso-filter-actions {
    position: sticky;
    z-index: 2;
    bottom: -13px;
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 8px;
    margin: 12px -13px -13px;
    padding: 11px 13px;
    border-top: 1px solid #eee8ed;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(8px);
}

.arso-filter-panel .arso-filter-actions .button {
    width: 100%;
    margin: 0;
    white-space: nowrap;
}

.arso-discovery-results-wrap {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.arso-discovery-pagination {
    flex-wrap: wrap;
    align-items: center;
}

.arso-discovery-pagination button:disabled {
    opacity: .35;
    cursor: default;
}

.arso-page-dots {
    display: inline-grid;
    place-items: center;
    width: 24px;
    color: #9d929a;
}

/* دکمه فیلتر نوار پایین که با JS به فیلتر آرابیرا متصل شده است. */
.arso-native-filter-trigger {
    color: var(--arso-growth-primary) !important;
}

.arso-native-filter-trigger svg,
.arso-native-filter-trigger i,
.arso-native-filter-trigger:before {
    color: var(--arso-growth-primary) !important;
}

@media (max-width: 1100px) and (min-width: 769px) {
    .arso-discovery-layout {
        grid-template-columns: minmax(0, 1fr) 245px;
        gap: 13px;
    }
}

@media (max-width: 768px) {
    .arso-smart-discovery {
        padding: 10px;
        overflow: visible;
    }

    .arso-discovery-layout {
        display: block;
        margin-top: 12px;
    }

    .arso-discovery-main {
        width: 100%;
    }

    .arso-discovery-topbar {
        grid-template-columns: minmax(0, 1fr);
    }

    /* روی موبایل فیلتر از نوار پایین باز می‌شود؛ دکمه تکراری بالای صفحه حذف می‌شود. */
    .arso-open-filters {
        display: none !important;
    }

    .arso-filter-panel {
        position: fixed !important;
        z-index: 100052 !important;
        top: auto !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: min(88dvh, 760px) !important;
        margin: 0 !important;
        padding: 14px 12px calc(86px + env(safe-area-inset-bottom)) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        transform: translate3d(0, 105%, 0) !important;
        border: 0 !important;
        border-radius: 24px 24px 0 0 !important;
        background: #fff !important;
        box-shadow: 0 -18px 45px rgba(20, 13, 18, .24) !important;
        visibility: hidden;
        pointer-events: none;
        transition: transform .28s cubic-bezier(.22,.8,.24,1), visibility 0s linear .28s !important;
    }

    .arso-filter-panel.is-open {
        transform: translate3d(0, 0, 0) !important;
        visibility: visible;
        pointer-events: auto;
        transition-delay: 0s !important;
    }

    .arso-filter-backdrop {
        z-index: 100051 !important;
    }

    .arso-filter-panel__mobile-head {
        top: -14px;
        margin: -14px -12px 12px;
        padding: 20px 15px 12px;
        border-radius: 24px 24px 0 0;
    }

    .arso-filter-panel__mobile-head strong {
        font-size: 14px;
    }

    .arso-filter-panel .arso-filter-group {
        margin-bottom: 9px;
        border-radius: 15px;
        background: #fff;
    }

    .arso-filter-panel .arso-filter-group__title {
        min-height: 34px;
        font-size: 12px;
    }

    .arso-filter-panel .arso-filter-options {
        max-height: 230px;
    }

    .arso-filter-panel .arso-filter-option {
        min-height: 34px;
        padding: 3px 0;
        font-size: 11px;
    }

    .arso-filter-panel .arso-filter-actions {
        position: fixed !important;
        z-index: 100053 !important;
        right: 0;
        bottom: 0;
        left: 0;
        margin: 0 !important;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) !important;
        border-top: 1px solid #eee8ed;
        background: rgba(255,255,255,.98);
        box-shadow: 0 -10px 25px rgba(40, 26, 36, .1);
    }

    .arso-filter-panel:not(.is-open) .arso-filter-actions {
        display: none !important;
    }

    .arso-discovery-results-head {
        gap: 8px;
        margin-bottom: 10px;
    }

    .arso-discovery-results-head strong {
        font-size: 13px;
    }

    .arso-discovery-pagination {
        gap: 5px;
        margin-top: 14px;
        padding-bottom: 8px;
    }

    .arso-discovery-pagination button {
        width: 34px;
        height: 34px;
        border-radius: 9px;
        font-size: 10px;
    }
}

/* ========================================================================
 * 3.0.3 — stable native WooCommerce loop + reliable Woodmart integration
 * ====================================================================== */

/* Cancel the former full-replacement rules. */
body.arso-native-shop-filter .site-content,
body.arso-native-shop-filter .content-area,
body.arso-native-shop-filter .shop-content-area,
body.arso-native-shop-filter .content-with-products {
    max-width: none;
}

/* The plugin UI stays light above the native product loop. */
.arso-native-discovery {
    z-index: 12;
    margin-bottom: 18px;
}
.arso-native-discovery .arso-discovery-panel-slot:empty {
    display: none;
}
.arso-native-discovery.is-sidebar-mounted {
    padding-bottom: 14px;
}
.arso-native-discovery.is-sidebar-mounted .arso-discovery-panel-slot {
    display: none;
}

/* Reuse the Woodmart sidebar column, but replace its old widgets with ours. */
body.arso-smart-discovery-enabled .area-sidebar-shop.arso-filter-sidebar-host,
body.arso-smart-discovery-enabled .sidebar-container.arso-filter-sidebar-host,
body.arso-smart-discovery-enabled .shop-sidebar.arso-filter-sidebar-host,
body.arso-smart-discovery-enabled .wd-sidebar.arso-filter-sidebar-host {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.arso-filter-sidebar-host > [data-arso-native-sidebar-child="1"] {
    display: none !important;
}
.arso-filter-sidebar-host > .arso-filter-panel {
    position: sticky;
    top: 18px;
    display: block !important;
    width: 100%;
    max-height: calc(100vh - 36px);
    margin: 0;
    padding: 13px;
    overflow: auto;
    transform: none !important;
    visibility: visible !important;
    pointer-events: auto !important;
    border: 1px solid #eee8ed;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(55, 38, 51, .07);
}
.arso-filter-sidebar-host .arso-filter-panel__mobile-head {
    display: none !important;
}
.arso-filter-sidebar-host .arso-filter-actions {
    position: sticky;
    bottom: -13px;
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 8px;
    margin: 12px -13px -13px;
    padding: 11px 13px;
    border-top: 1px solid #eee8ed;
    background: rgba(255,255,255,.98);
}
.arso-filter-orderby {
    display: grid;
    gap: 7px;
    margin-top: 10px;
    padding: 11px;
    border: 1px solid #eee9ed;
    border-radius: 14px;
    color: #5f555d;
    font-size: 11px;
    font-weight: 700;
}
.arso-filter-orderby select {
    width: 100%;
    height: 38px;
    border-radius: 10px;
}

/* Old Woodmart sidebar contents disappear even before JS finishes mounting. */
body.arso-smart-discovery-enabled .area-sidebar-shop:not(.arso-filter-sidebar-host) .widget,
body.arso-smart-discovery-enabled .sidebar-container:not(.arso-filter-sidebar-host) .widget,
body.arso-smart-discovery-enabled .shop-sidebar:not(.arso-filter-sidebar-host) .widget,
body.arso-smart-discovery-enabled .wd-sidebar:not(.arso-filter-sidebar-host) .widget {
    opacity: .18;
    pointer-events: none;
}

body.arso-shop-loading .products,
body.arso-shop-loading .shop-loop-head,
body.arso-shop-loading .wd-loop-footer,
body.arso-shop-loading nav.woocommerce-pagination {
    opacity: .48;
    pointer-events: none;
    transition: opacity .18s ease;
}
.arso-discovery-form.is-loading:after {
    content: 'در حال دریافت محصولات…';
    position: fixed;
    z-index: 100060;
    right: 50%;
    top: 50%;
    padding: 10px 16px;
    transform: translate(50%, -50%);
    border-radius: 12px;
    background: rgba(45,35,43,.94);
    color: #fff;
    box-shadow: 0 12px 35px rgba(0,0,0,.2);
    font-size: 11px;
    font-weight: 800;
}

/* Beauty Party becomes a real toolbar item instead of covering the toolbar. */
.arso-beauty-party-mobile-button.arso-in-toolbar {
    position: relative !important;
    z-index: auto !important;
    right: auto !important;
    bottom: auto !important;
    flex: 1 1 20%;
    width: auto !important;
    min-width: 56px;
    height: 54px !important;
    margin: 0 !important;
    padding: 4px 6px !important;
    transform: none !important;
    border: 0 !important;
    border-radius: 15px !important;
    box-shadow: none !important;
}
.arso-toolbar-enhanced {
    overflow: visible !important;
}

@media (max-width: 768px) {
    body.arso-smart-discovery-enabled .area-sidebar-shop,
    body.arso-smart-discovery-enabled .sidebar-container,
    body.arso-smart-discovery-enabled .shop-sidebar,
    body.arso-smart-discovery-enabled .wd-sidebar {
        display: none !important;
    }

    .arso-native-discovery {
        margin: 0 8px 13px;
        padding: 10px;
    }

    .arso-native-discovery .arso-discovery-topbar {
        grid-template-columns: minmax(0, 1fr);
    }

    /* A small visible button remains as a fallback when the theme toolbar cannot be detected. */
    .arso-native-discovery .arso-open-filters {
        display: none !important;
    }

    .arso-native-discovery .arso-filter-panel {
        position: fixed !important;
        z-index: 100052 !important;
        top: auto !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: min(86dvh, 720px) !important;
        margin: 0 !important;
        padding: 14px 12px calc(84px + env(safe-area-inset-bottom)) !important;
        overflow-y: auto !important;
        transform: translate3d(0, 105%, 0) !important;
        visibility: hidden !important;
        pointer-events: none !important;
        border: 0 !important;
        border-radius: 24px 24px 0 0 !important;
        background: #fff !important;
        box-shadow: 0 -18px 45px rgba(20,13,18,.24) !important;
        transition: transform .26s ease, visibility 0s linear .26s !important;
    }

    .arso-native-discovery .arso-filter-panel.is-open {
        transform: translate3d(0, 0, 0) !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transition-delay: 0s !important;
    }

    .arso-native-discovery .arso-filter-panel__mobile-head {
        display: flex !important;
    }

    .arso-native-discovery .arso-filter-actions {
        position: fixed !important;
        z-index: 100053 !important;
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        grid-template-columns: .8fr 1.2fr;
        margin: 0 !important;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) !important;
        background: #fff;
        box-shadow: 0 -10px 25px rgba(40,26,36,.1);
    }

    .arso-native-discovery .arso-filter-panel:not(.is-open) .arso-filter-actions {
        display: none !important;
    }

    .arso-beauty-party-mobile-button:not(.arso-in-toolbar) {
        width: 60px;
        height: 54px;
        bottom: calc(5px + env(safe-area-inset-bottom));
        border-width: 3px;
        border-radius: 18px;
        font-size: 8px;
    }

    .arso-beauty-party-mobile-button__icon {
        font-size: 16px;
    }
}

/* ========================================================================
 * 3.1.0 — native WooCommerce / WoodMart integration (safe mode)
 * ====================================================================== */

/* The old experimental discovery UI is no longer used. */
.arso-smart-discovery,
.arso-discovery-fallback,
.arso-beauty-party-mobile-button {
    display: none !important;
}

.arso-native-filters {
    direction: rtl;
    text-align: right;
    width: 100%;
    padding: 14px;
    border: 1px solid #ece7eb;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(49, 35, 47, .06);
}

.arso-native-filters__head {
    display: grid;
    gap: 3px;
    margin-bottom: 13px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0ebee;
}

.arso-native-filters__head strong {
    color: #3f3340;
    font-size: 15px;
}

.arso-native-filters__head small {
    color: #8a8087;
    font-size: 10px;
    line-height: 1.7;
}

.arso-native-filter-section {
    margin: 0 0 12px;
    padding: 12px;
    border: 1px solid #f0ebee;
    border-radius: 14px;
    background: #fff;
}

.arso-native-filter-section:last-child {
    margin-bottom: 0;
}

.arso-native-filter-title,
.arso-native-filter-section .widget-title {
    margin: 0 0 10px !important;
    padding: 0 0 8px !important;
    border-bottom: 1px solid #f3eef1;
    background: transparent !important;
    color: #413640;
    font-size: 12px !important;
    font-weight: 800 !important;
}

.arso-native-product-search .woocommerce-product-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
}

.arso-native-product-search input[type="search"] {
    width: 100%;
    min-width: 0;
    height: 40px;
    margin: 0;
    border: 1px solid #e9e2e7;
    border-radius: 11px;
    background: #fbfafb;
    font-size: 11px;
}

.arso-native-product-search button {
    min-height: 40px;
    padding: 0 13px;
    border: 0;
    border-radius: 11px;
    background: var(--arso-growth-primary, #ef5aa8);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.arso-native-filters ul,
.arso-native-filters .woocommerce-widget-layered-nav-list,
.arso-native-brand-list {
    max-height: 245px;
    margin: 0;
    padding: 0 0 0 3px;
    overflow: auto;
    list-style: none;
    scrollbar-width: thin;
}

.arso-native-filters li {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.arso-native-filters li a,
.arso-native-filters .woocommerce-widget-layered-nav-list__item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 34px;
    padding: 5px 2px;
    color: #5e555c;
    font-size: 11px;
    line-height: 1.6;
}

.arso-native-filters li.chosen a,
.arso-native-filters .chosen a {
    color: var(--arso-growth-primary, #ef5aa8);
    font-weight: 800;
}

.arso-native-filters .count,
.arso-native-brand-list small {
    color: #a0979f;
    font-size: 9px;
}

.arso-native-brand-search {
    width: 100%;
    height: 38px;
    margin: 0 0 8px;
    border: 1px solid #e9e2e7;
    border-radius: 10px;
    font-size: 10px;
}

.arso-native-brand-list a {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
}

.arso-native-filters .price_slider_wrapper .price_slider_amount {
    display: grid;
    gap: 8px;
}

.arso-native-filters .price_slider_wrapper .button {
    border-radius: 10px;
    background: var(--arso-growth-primary, #ef5aa8);
    color: #fff;
}

/* TorobPay strip: keep it below the product action instead of covering it. */
.product-grid-item .arso-torob-installment-strip,
.wd-product .arso-torob-installment-strip,
li.product .arso-torob-installment-strip {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    margin: 8px 0 0 !important;
    padding: 7px 6px 2px !important;
    transform: none !important;
    border-top: 1px solid #edf0e8 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #35622f !important;
    font-size: 9px !important;
    line-height: 1.65 !important;
    text-align: center !important;
    white-space: normal !important;
}

.arso-has-torob-installment .product-element-bottom,
.arso-has-torob-installment .product-information,
.arso-has-torob-installment .wd-product-content {
    padding-bottom: 4px !important;
}

/* Keep the native WoodMart toolbar clear and respect phone safe areas. */
@media (max-width: 1024px) {
    .wd-toolbar,
    .woodmart-toolbar {
        height: calc(55px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
    }

    .sticky-toolbar-on {
        padding-bottom: calc(55px + env(safe-area-inset-bottom));
    }

    .sticky-toolbar-on .scrollToTop {
        bottom: calc(67px + env(safe-area-inset-bottom));
    }

    .arso-native-filters {
        padding: 10px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .arso-native-filter-section {
        padding: 11px;
        border-radius: 13px;
    }
}

/* ========================================================================
 * 3.1.0 final safety refinements
 * ====================================================================== */

/* The composite widget is designed to live inside WoodMart's own shop
 * sidebar/off-canvas container; avoid double cards/padding from the theme. */
.widget_arso_native_filters,
.widget_arso_native_filters > .widget-title,
.area-sidebar-shop .widget_arso_native_filters,
.woodmart-sidebar-content .widget_arso_native_filters {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.arso-native-help {
    display: block;
    margin-top: 7px;
    color: #8f858d;
    font-size: 9px;
    line-height: 1.7;
}

.arso-native-filters .woocommerce-widget-layered-nav-list__item--chosen a:before,
.arso-native-filters .chosen a:before {
    color: var(--arso-growth-primary, #ef5aa8) !important;
}

/* Dynamic discounts must never visually claim a 100% reduction. The PHP
 * pricing filters provide the real sale value; this caps only a stale cached
 * label until WoodMart refreshes its product transient. */
.product-labels .onsale,
.product-label.onsale {
    white-space: nowrap;
}

/* TorobPay instalment row belongs after all product actions and may not cover
 * add-to-cart/wishlist controls. */
.product-grid-item .product-element-bottom,
.wd-product .product-element-bottom,
li.product .product-element-bottom,
.product-grid-item .product-information,
.wd-product .product-information {
    min-width: 0;
}

.product-grid-item .arso-torob-installment-strip,
.wd-product .arso-torob-installment-strip,
li.product .arso-torob-installment-strip {
    position: relative !important;
    order: 100 !important;
    flex: 0 0 auto !important;
    clear: both !important;
    pointer-events: auto !important;
}

.arso-has-torob-installment .wd-add-btn,
.arso-has-torob-installment .wd-add-cart-btn,
.arso-has-torob-installment .add-to-cart-loop {
    position: relative !important;
    z-index: 2 !important;
}

/* Native mobile toolbar owns the bottom safe area. The plugin does not create
 * any floating filter/Beauty Party button in v3.1. */
.arso-beauty-party-mobile-button,
.arso-open-filters,
.arso-filter-backdrop,
.arso-filter-panel {
    display: none !important;
}

@media (max-width: 1024px) {
    .widget_arso_native_filters .arso-native-filters {
        width: 100%;
        max-width: none;
        padding: 12px;
    }

    .arso-native-filters ul,
    .arso-native-filters .woocommerce-widget-layered-nav-list,
    .arso-native-brand-list {
        max-height: 34vh;
    }
}
