.wap-shop { max-width: 1180px; margin: 0 auto; padding: 32px 18px; box-sizing: border-box; }
.wap-product { display: grid; grid-template-columns: minmax(280px, 44%) 1fr; gap: 32px; align-items: start; }
.wap-product-main-image img { width: 100%; height: auto; border-radius: 16px; display: block; }
.wap-product-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.wap-product-thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(0,0,0,.08); }
.wap-product-summary h1 { margin-top: 0; }
.wap-product-price { display: flex; gap: 10px; align-items: center; margin: 18px 0; font-size: 1.25rem; }
.wap-product-price strong { font-size: 1.5rem; }
.wap-product-stock { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.06); margin-bottom: 16px; }
.wap-stock-outofstock { background: rgba(220, 38, 38, .12); }
.wap-product-short-description { margin: 18px 0; line-height: 1.9; }
.wap-product-content { margin-top: 40px; line-height: 1.9; }
.wap-archive-header { margin-bottom: 24px; }
.wap-term-description { line-height: 1.9; }
.wap-child-categories { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.wap-child-category { display: inline-flex; padding: 8px 14px; border: 1px solid rgba(0,0,0,.12); border-radius: 999px; text-decoration: none; }
.wap-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.wap-product-card { border: 1px solid rgba(0,0,0,.08); border-radius: 16px; padding: 14px; background: #fff; }
.wap-product-card-image { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 12px; background: rgba(0,0,0,.04); }
.wap-product-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wap-product-card .wap-card-title { font-size: 1rem; margin: 12px 0 8px; }
.wap-product-card .wap-card-title a { color: inherit; text-decoration: none; }
.wap-card-price { font-weight: 700; }
.wap-pagination { margin-top: 28px; display: flex; gap: 8px; justify-content: center; }
@media (max-width: 960px) {
    .wap-product { grid-template-columns: 1fr; }
    .wap-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .wap-product-grid { grid-template-columns: 1fr; }
}

/* Widgets / shortcodes */
.wap-product-title-widget { margin: 0 0 12px; line-height: 1.5; }
.wap-product-title-widget a { text-decoration: none; color: inherit; }
.wap-product-price-widget { margin: 10px 0; }
.wap-product-stock-widget { margin: 8px 0 14px; }
.wap-product-image-widget img { width: 100%; height: auto; display: block; border-radius: 14px; }
.wap-product-image-placeholder { min-height: 180px; display: grid; place-items: center; border-radius: 14px; background: rgba(0,0,0,.06); color: rgba(0,0,0,.55); }
.wap-product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0; }
.wap-cart-toggle-button,
.wap-view-cart-button { appearance: none; border: 0; border-radius: 12px; padding: 12px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; cursor: pointer; text-decoration: none; font-weight: 700; line-height: 1.4; transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease; }
.wap-cart-toggle-button { background: #111827; color: #fff; }
.wap-cart-toggle-button:hover,
.wap-view-cart-button:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.wap-cart-toggle-button.is-in-cart { background: #dc2626; color: #fff; }
.wap-cart-toggle-button:disabled { cursor: not-allowed; opacity: .55; transform: none; box-shadow: none; }
.wap-view-cart-button { background: rgba(17,24,39,.08); color: #111827; }
.wap-cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: #111827; color: #fff; font-size: 12px; }
.widget .wap-cart-toggle-button,
.widget .wap-view-cart-button { width: 100%; }
.wap-cart-toggle-button.is-loading { opacity: .72; cursor: progress; }
.wap-cart-message { flex-basis: 100%; font-size: 13px; line-height: 1.7; padding: 6px 10px; border-radius: 10px; background: rgba(34,197,94,.10); color: #166534; }
.wap-cart-message.is-error { background: rgba(220,38,38,.10); color: #991b1b; }

/* Global toast messages v2.8.3 */
.wap-toast-container {
    position: fixed;
    top: max(16px, env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
    z-index: 1000000;
    display: grid;
    gap: 10px;
    width: min(380px, calc(100vw - 32px));
    direction: rtl;
    pointer-events: none;
}
.wap-toast-message {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 16px;
    background: #111827;
    color: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .22);
    font-size: 14px;
    line-height: 1.8;
    opacity: 0;
    transform: translateX(120%);
    transition: transform .28s ease, opacity .28s ease;
    overflow: hidden;
}
.wap-toast-message.is-visible {
    opacity: 1;
    transform: translateX(0);
}
.wap-toast-message.is-leaving {
    opacity: 0;
    transform: translateX(120%);
}
.wap-toast-message::before {
    content: '';
    flex: 0 0 8px;
    width: 8px;
    align-self: stretch;
    border-radius: 999px;
    background: rgba(255,255,255,.58);
}
.wap-toast-message.is-success { background: #166534; }
.wap-toast-message.is-error { background: #991b1b; }
.wap-toast-text { flex: 1 1 auto; }
.wap-toast-close {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    color: inherit;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.wap-toast-close:hover { background: rgba(255,255,255,.22); }
@media (max-width: 560px) {
    .wap-toast-container {
        top: max(10px, env(safe-area-inset-top));
        right: max(10px, env(safe-area-inset-right));
        left: max(10px, env(safe-area-inset-left));
        width: auto;
    }
    .wap-toast-message { border-radius: 14px; }
}

/* WordPress inline OTP login modal */
html.wap-auth-open { overflow: hidden; }
.wap-auth-modal[hidden] { display: none !important; }
.wap-auth-modal { position: fixed; inset: 0; z-index: var(--wap-auth-z-index, 999999); display: grid; place-items: center; padding: var(--wap-auth-modal-padding, 18px); direction: rtl; box-sizing: border-box; }
.wap-auth-backdrop { position: absolute; inset: 0; background: var(--wap-auth-backdrop-background, rgba(15,23,42,.58)); backdrop-filter: blur(var(--wap-auth-backdrop-blur, 8px)); }
.wap-auth-dialog { position: relative; width: min(var(--wap-auth-dialog-width, 420px), 100%); background: #fff; border-radius: 24px; box-shadow: 0 24px 80px rgba(0,0,0,.24); padding: 28px; box-sizing: border-box; color: #111827; }
.wap-auth-close { position: absolute; top: 14px; left: 14px; width: 34px; height: 34px; border: 0; border-radius: 999px; background: rgba(17,24,39,.08); color: #111827; cursor: pointer; font-size: 24px; line-height: 1; display: inline-grid; place-items: center; }
.wap-auth-dialog h2 { margin: 0 0 8px; font-size: 1.35rem; line-height: 1.5; }
.wap-auth-subtitle { margin: 0 0 20px; color: #6b7280; line-height: 1.8; }
.wap-auth-form { display: grid; gap: var(--wap-auth-form-gap, 10px); }
.wap-auth-form[hidden] { display: none !important; }
.wap-auth-form label { font-weight: 700; font-size: 14px; }
.wap-auth-form input { width: 100%; min-height: 48px; border: 1px solid rgba(17,24,39,.14); border-radius: 14px; padding: 0 14px; box-sizing: border-box; font-size: 16px; background: #fff; color: #111827; }
.wap-auth-form input:focus { outline: 2px solid var(--wap-auth-input-focus-outline, rgba(17,24,39,.16)); border-color: var(--wap-auth-input-focus-border, rgba(17,24,39,.34)); }
.wap-auth-submit,
.wap-auth-change { min-height: 48px; border: 0; border-radius: 14px; padding: 0 18px; cursor: pointer; font-weight: 800; }
.wap-auth-submit { background: #111827; color: #fff; margin-top: 6px; }
.wap-auth-submit:hover { color: var(--wap-auth-primary-hover-color, #fff); background: var(--wap-auth-primary-hover-bg, #111827); }
.wap-auth-form[data-wap-auth-phone-step] .wap-auth-submit:hover {
    color: var(--wap-auth-phone-submit-hover-color, var(--wap-auth-primary-hover-color, #fff)) !important;
    background: var(--wap-auth-phone-submit-hover-bg, var(--wap-auth-primary-hover-bg, #111827)) !important;
}
.wap-auth-form[data-wap-auth-code-step] .wap-auth-submit:hover {
    color: var(--wap-auth-code-submit-hover-color, var(--wap-auth-primary-hover-color, #fff)) !important;
    background: var(--wap-auth-code-submit-hover-bg, var(--wap-auth-primary-hover-bg, #111827)) !important;
}
.wap-auth-change { background: rgba(17,24,39,.08); color: #111827; }
.wap-auth-message[hidden] { display: none !important; }
.wap-auth-message { margin: 0 0 14px; padding: 10px 12px; border-radius: 14px; background: rgba(34,197,94,.10); color: #166534; line-height: 1.7; font-size: 14px; }
.wap-auth-message.is-error { background: rgba(220,38,38,.10); color: #991b1b; }
.wap-auth-phone-preview { direction: ltr; text-align: center; background: rgba(17,24,39,.06); border-radius: 14px; padding: 10px 12px; font-weight: 800; }
.wap-auth-timer { display: block; width: 100%; min-height: 48px; }
.wap-auth-resend { display: block; width: 100%; min-height: 48px; border: 1px solid currentColor; background: transparent; color: #111827; padding: 9px 12px; border-radius: 12px; cursor: pointer; font: inherit; font-weight: 800; font-variant-numeric: tabular-nums; }
.wap-auth-resend:hover:not(:disabled) { opacity: .82; }
.wap-auth-resend:disabled { color: #9ca3af; cursor: default; opacity: .9; }
.wap-auth-modal.is-loading .wap-auth-submit { opacity: .72; cursor: progress; }
@media (max-width: 560px) {
    .wap-auth-modal { align-items: end; padding: 0; }
    .wap-auth-dialog { width: 100%; border-radius: 24px 24px 0 0; padding: 26px 20px 22px; }
}

/* Quantity add-to-cart control v1.3.0 */
.wap-cart-quantity-control { display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; }
.wap-cart-quantity-control .wap-cart-add-button,
.wap-cart-quantity-control .wap-cart-qty-button { appearance: none; border: 0; cursor: pointer; font-weight: 800; line-height: 1; transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease; }
.wap-cart-quantity-control .wap-cart-add-button { min-height: 44px; border-radius: 12px; padding: 12px 18px; background: #111827; color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.wap-cart-quantity-control .wap-cart-custom-link-button { text-decoration: none; }
.wap-cart-quantity-control .wap-cart-add-button:hover,
.wap-cart-quantity-control .wap-cart-qty-button:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.wap-cart-quantity-control .wap-cart-stepper { min-height: 44px; border-radius: 14px; background: #111827; color: #fff; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; direction: ltr; }
.wap-cart-quantity-control .wap-cart-stepper[hidden],
.wap-cart-quantity-control .wap-cart-add-button[hidden] { display: none !important; }
.wap-cart-quantity-control .wap-cart-qty-button { width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; background: transparent; color: inherit; font-size: 20px; }
.wap-cart-quantity-control .wap-cart-qty-value { min-width: 36px; text-align: center; font-weight: 900; font-size: 15px; }
.wap-cart-quantity-control.is-loading { opacity: .72; cursor: progress; }
.wap-cart-quantity-control button:disabled { cursor: not-allowed; opacity: .55; transform: none; box-shadow: none; }
.widget .wap-cart-quantity-control,
.elementor-widget-wap_add_to_cart .wap-cart-quantity-control { width: 100%; }
.widget .wap-cart-quantity-control .wap-cart-add-button,
.elementor-widget-wap_add_to_cart .wap-cart-quantity-control .wap-cart-add-button,
.widget .wap-cart-quantity-control .wap-cart-stepper,
.elementor-widget-wap_add_to_cart .wap-cart-quantity-control .wap-cart-stepper { width: 100%; }

/* Elementor style-ready stock quantity widget v1.6.0 */
.wap-product-stock-quantity-widget {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(17,24,39,.06);
    line-height: 1.6;
}
.wap-product-stock-quantity-widget .wap-stock-quantity-number {
    font-weight: 900;
}
.elementor-widget-wap_view_cart .elementor-widget-container {
    display: flex;
}
.elementor-widget-wap_product_image .wap-product-image-widget img {
    max-width: 100%;
}
.elementor-widget-wap_add_to_cart .wap-cart-quantity-control,
.elementor-widget-wap_add_to_cart .wap-cart-add-button,
.elementor-widget-wap_add_to_cart .wap-cart-stepper,
.elementor-widget-wap_view_cart .wap-view-cart-button {
    box-sizing: border-box;
}


/* Elementor-auth-modal style sources v1.7.0 */
.wap-auth-style-source {
    position: absolute !important;
    inset-inline-start: -99999px !important;
    top: auto !important;
    width: auto !important;
    height: auto !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    z-index: -1 !important;
}
.wap-auth-style-source * { box-sizing: border-box; }
.wap-auth-style-dialog-source,
.wap-auth-style-title-source,
.wap-auth-style-subtitle-source,
.wap-auth-style-label-source,
.wap-auth-style-input-source,
.wap-auth-style-primary-source,
.wap-auth-style-secondary-source,
.wap-auth-style-close-source,
.wap-auth-style-message-source,
.wap-auth-style-error-source,
.wap-auth-style-preview-source {
    display: block;
}

/* v1.8.0 - Product attributes and variation selector */
.wap-product-attributes-widget { direction: rtl; width: 100%; }
.wap-product-attributes-table { width: 100%; border-collapse: collapse; }
.wap-product-attributes-table th,
.wap-product-attributes-table td { padding: 10px 12px; border-bottom: 1px solid rgba(0,0,0,.08); text-align: right; }
.wap-product-attributes-table th { width: 34%; font-weight: 700; }
.wap-product-attributes-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.wap-product-attribute-item { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.wap-attribute-label { font-weight: 700; }
.wap-attribute-values { color: inherit; opacity: .86; }
.wap-variation-selector-widget { direction: rtl; display: grid; gap: 14px; }
.wap-variation-field { display: grid; gap: 8px; }
.wap-variation-label { font-weight: 700; }
.wap-variation-select { width: 100%; min-height: 42px; border: 1px solid rgba(0,0,0,.16); border-radius: 10px; padding: 6px 12px; background: #fff; }
.wap-variation-options { display: flex; flex-wrap: wrap; gap: 8px; }
.wap-variation-option { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.wap-variation-option input { position: absolute; opacity: 0; pointer-events: none; }
.wap-variation-option span { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(0,0,0,.16); background: #fff; transition: .2s ease; }
.wap-variation-option input:checked + span { border-color: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.wap-variation-selector-empty,
.wap-product-attributes-empty { color: #666; }

/* WAP archive filter widgets */
.wap-archive-filter-widget {
    display: flex;
    flex-direction: column;
    gap: 16px;
    direction: rtl;
}
.wap-filter-title {
    margin: 0 0 4px;
}
.wap-filter-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.wap-filter-label {
    display: block;
    font-weight: 700;
}
.wap-filter-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.wap-filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.wap-filter-option input {
    margin: 0;
}
.wap-filter-price-inputs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.wap-filter-input,
.wap-filter-select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.wap-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.wap-filter-submit,
.wap-filter-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.wap-fallback-archive-filter {
    margin: 24px 0;
    padding: 16px;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px;
}
@media (max-width: 640px) {
    .wap-filter-price-inputs {
        grid-template-columns: 1fr;
    }
}

/* WAP v2.4.0 - Digikala-like archive/category filter */
.wap-filter-shell {
    direction: rtl;
    width: 100%;
    --wap-filter-accent: #ef4056;
    --wap-filter-border: rgba(0,0,0,.10);
    --wap-filter-muted: #81858b;
    --wap-filter-bg: #fff;
}
.wap-filter-shell,
.wap-filter-shell * { box-sizing: border-box; }
.wap-filter-mobile-trigger {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--wap-filter-border);
    border-radius: 12px;
    background: var(--wap-filter-bg);
    color: #3f4064;
    font-weight: 700;
    cursor: pointer;
}
.wap-filter-mobile-trigger-icon { font-size: 18px; line-height: 1; }
.wap-filter-active-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--wap-filter-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}
.wap-filter-mobile-backdrop { display: none; }
.wap-archive-filter-widget.wap-filter-digikala {
    background: var(--wap-filter-bg);
    border: 1px solid var(--wap-filter-border);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    box-shadow: none;
}
.wap-filter-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--wap-filter-border);
}
.wap-filter-title {
    font-size: 19px;
    font-weight: 800;
    color: #23254e;
    margin: 0;
}
.wap-filter-mobile-close {
    display: none;
    border: 0;
    background: transparent;
    color: var(--wap-filter-accent);
    font-weight: 700;
    cursor: pointer;
}
.wap-filter-section {
    position: relative;
    padding: 14px 18px;
    border-bottom: 1px solid var(--wap-filter-border);
    gap: 10px;
}
.wap-filter-section:last-of-type { border-bottom: 0; }
.wap-filter-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #3f4064;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    user-select: none;
}
.wap-filter-label::after {
    content: '⌄';
    color: var(--wap-filter-muted);
    font-size: 16px;
    transition: transform .18s ease;
}
.wap-filter-section.is-collapsed .wap-filter-label::after { transform: rotate(90deg); }
.wap-filter-section.is-collapsed .wap-filter-options,
.wap-filter-section.is-collapsed .wap-filter-price-inputs,
.wap-filter-section.is-collapsed .wap-filter-input,
.wap-filter-section.is-collapsed .wap-filter-select,
.wap-filter-section.is-collapsed .wap-filter-sale-option {
    display: none;
}
.wap-filter-options {
    max-height: 260px;
    overflow: auto;
    padding-left: 2px;
    scrollbar-width: thin;
}
.wap-filter-option {
    min-height: 34px;
    color: #3f4064;
    font-size: 14px;
}
.wap-filter-option span { line-height: 1.8; }
.wap-filter-option input { accent-color: var(--wap-filter-accent); }
.wap-filter-depth-1 { padding-right: 14px; }
.wap-filter-depth-2 { padding-right: 28px; }
.wap-filter-depth-3 { padding-right: 42px; }
.wap-filter-input,
.wap-filter-select {
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid var(--wap-filter-border);
    border-radius: 10px;
    background: #f8f8f8;
    color: #23254e;
    outline: none;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.wap-filter-input:focus,
.wap-filter-select:focus {
    border-color: var(--wap-filter-accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(239,64,86,.12);
}
.wap-filter-price-inputs { gap: 10px; }
.wap-filter-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    padding: 14px 18px;
    border-top: 1px solid var(--wap-filter-border);
    background: linear-gradient(180deg, rgba(255,255,255,.92), #fff);
    backdrop-filter: blur(8px);
}
.wap-filter-submit {
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    border-radius: 10px;
    background: var(--wap-filter-accent);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}
.wap-filter-submit:hover { filter: brightness(.96); color: #fff; }
.wap-filter-reset {
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--wap-filter-accent);
    font-weight: 700;
}
body.wap-filter-drawer-open { overflow: hidden; }
@media (max-width: 767px) {
    .wap-filter-mobile-trigger { display: inline-flex; }
    .wap-filter-mobile-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 999996;
        background: rgba(0,0,0,.48);
        opacity: 0;
        visibility: hidden;
        transition: .2s ease;
    }
    .wap-filter-shell.is-open .wap-filter-mobile-backdrop {
        opacity: 1;
        visibility: visible;
    }
    .wap-archive-filter-widget.wap-filter-digikala {
        position: fixed;
        inset: auto 0 0 0;
        z-index: 999997;
        max-height: 88vh;
        overflow: auto;
        border-radius: 18px 18px 0 0;
        transform: translateY(105%);
        transition: transform .24s ease;
        box-shadow: 0 -12px 40px rgba(0,0,0,.18);
    }
    .wap-filter-shell.is-open .wap-archive-filter-widget.wap-filter-digikala {
        transform: translateY(0);
    }
    .wap-filter-panel-header {
        position: sticky;
        top: 0;
        z-index: 3;
        background: #fff;
    }
    .wap-filter-mobile-close { display: inline-flex; }
    .wap-filter-actions { flex-wrap: nowrap; }
    .wap-filter-submit { flex: 1; }
    .wap-filter-reset { white-space: nowrap; }
}

/* WAP v2.4.1 - stronger Digikala-like auto filters */
.wap-filter-shell {
    max-width: 280px;
    width: 100%;
    --wap-filter-accent: #ef4056;
    --wap-filter-border: #e0e0e2;
    --wap-filter-soft-border: #f0f0f1;
    --wap-filter-text: #23254e;
    --wap-filter-muted: #81858b;
    --wap-filter-bg: #fff;
    --wap-filter-control-bg: #f8f8f8;
}
.wap-filter-shell .wap-filter-auto-submit .wap-filter-submit { display: none !important; }
.wap-filter-shell .wap-filter-digikala {
    background: var(--wap-filter-bg);
    border: 1px solid var(--wap-filter-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
}
@media (min-width: 768px) {
    .wap-filter-shell .wap-filter-digikala {
        position: sticky;
        top: 20px;
    }
}
.wap-filter-shell .wap-filter-panel-header {
    min-height: 56px;
    padding: 0 20px;
    border-bottom: 1px solid var(--wap-filter-soft-border);
}
.wap-filter-shell .wap-filter-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--wap-filter-text);
    letter-spacing: -.2px;
}
.wap-filter-shell .wap-filter-section {
    padding: 0;
    border-bottom: 1px solid var(--wap-filter-soft-border);
    gap: 0;
}
.wap-filter-shell .wap-filter-section:last-of-type { border-bottom: 1px solid var(--wap-filter-soft-border); }
.wap-filter-shell .wap-filter-label {
    min-height: 54px;
    padding: 0 20px;
    color: var(--wap-filter-text);
    font-size: 15px;
    font-weight: 800;
}
.wap-filter-shell .wap-filter-label::after {
    content: '';
    width: 8px;
    height: 8px;
    border: solid var(--wap-filter-muted);
    border-width: 0 0 2px 2px;
    transform: rotate(-45deg);
    transition: transform .18s ease;
    margin-inline-start: 8px;
}
.wap-filter-shell .wap-filter-section.is-collapsed .wap-filter-label::after {
    transform: rotate(135deg);
}
.wap-filter-shell .wap-filter-options,
.wap-filter-shell .wap-filter-price-inputs,
.wap-filter-shell .wap-filter-section > .wap-filter-input,
.wap-filter-shell .wap-filter-section > .wap-filter-select {
    padding: 0 20px 16px;
}
.wap-filter-shell .wap-filter-price-inputs { padding-top: 0; }
.wap-filter-shell .wap-filter-options {
    max-height: 250px;
    overflow-y: auto;
    scrollbar-width: thin;
}
.wap-filter-shell .wap-filter-option {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #3f4064;
    font-size: 14px;
    font-weight: 500;
}
.wap-filter-shell .wap-filter-option input[type="checkbox"],
.wap-filter-shell .wap-filter-option input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--wap-filter-accent);
}
.wap-filter-shell .wap-filter-input,
.wap-filter-shell .wap-filter-select {
    min-height: 44px;
    border-radius: 8px;
    border: 1px solid var(--wap-filter-border);
    background: var(--wap-filter-control-bg);
    color: var(--wap-filter-text);
    font-size: 14px;
}
.wap-filter-shell .wap-filter-input::placeholder { color: #a1a3a8; }
.wap-filter-shell .wap-filter-input:focus,
.wap-filter-shell .wap-filter-select:focus {
    background: #fff;
    border-color: var(--wap-filter-accent);
    box-shadow: 0 0 0 3px rgba(239,64,86,.10);
}
.wap-filter-shell .wap-filter-search .wap-filter-input {
    margin: 0 20px 16px;
    width: calc(100% - 40px);
    padding-inline-start: 42px;
    background-image: linear-gradient(transparent, transparent), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2381858b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 13px center;
}
.wap-filter-shell .wap-filter-sale .wap-filter-sale-option {
    min-height: 56px;
    padding: 0 20px 0;
    justify-content: space-between;
    flex-direction: row-reverse;
}
.wap-filter-shell .wap-filter-sale .wap-filter-sale-option input[type="checkbox"] {
    appearance: none;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: #c3c3ce;
    position: relative;
    transition: background-color .18s ease;
    border: 0;
}
.wap-filter-shell .wap-filter-sale .wap-filter-sale-option input[type="checkbox"]::before {
    content: '';
    position: absolute;
    top: 3px;
    right: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform .18s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.wap-filter-shell .wap-filter-sale .wap-filter-sale-option input[type="checkbox"]:checked { background: var(--wap-filter-accent); }
.wap-filter-shell .wap-filter-sale .wap-filter-sale-option input[type="checkbox"]:checked::before { transform: translateX(-18px); }
.wap-filter-shell .wap-filter-actions {
    position: static;
    padding: 12px 20px;
    border-top: 0;
    background: #fff;
    justify-content: center;
}
.wap-filter-shell .wap-filter-reset {
    display: none;
    min-height: 38px;
    padding: 8px 12px;
    color: var(--wap-filter-accent);
    font-weight: 800;
    border: 1px solid rgba(239,64,86,.22);
    border-radius: 8px;
    width: 100%;
}
.wap-filter-shell .wap-filter-reset.is-active { display: inline-flex; }
.wap-filter-shell .wap-filter-mobile-trigger {
    min-height: 46px;
    border-radius: 10px;
    border-color: var(--wap-filter-border);
    color: var(--wap-filter-text);
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
@media (max-width: 767px) {
    .wap-filter-shell { max-width: none; }
    .wap-filter-shell .wap-filter-digikala {
        border-radius: 18px 18px 0 0;
        border: 0;
    }
    .wap-filter-shell .wap-filter-panel-header {
        min-height: 58px;
        padding: 0 18px;
    }
    .wap-filter-shell .wap-filter-actions {
        position: sticky;
        bottom: 0;
        border-top: 1px solid var(--wap-filter-soft-border);
        padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    }
}

/* v2.6.0 AJAX filter + product cards widget */
.wap-filter-products-layout {
    display: grid;
    grid-template-columns: var(--wap-filter-products-sidebar-width, 280px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    direction: rtl;
}
.wap-filter-products-sidebar { min-width: 0; grid-column: 1; }
.wap-filter-products-main { min-width: 0; position: relative; grid-column: 2; }
.wap-filter-products-main > .wap-products-sort-bar { width: 100%; }
.wap-filter-products-results { position: relative; min-height: 160px; }
.wap-filter-products-layout.is-filter-loading .wap-filter-products-results::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(2px);
    border-radius: 18px;
}
.wap-filter-products-layout.is-filter-loading .wap-filter-products-results::after {
    content: 'در حال بروزرسانی...';
    position: absolute;
    /* Keep the loading message on top of the first product-card row instead
       of centering it vertically over the whole result list. */
    top: 18px;
    right: 50%;
    transform: translateX(50%);
    z-index: 3;
    padding: 10px 16px;
    border-radius: 999px;
    background: #fff;
    color: #23254e;
    box-shadow: 0 12px 36px rgba(0,0,0,.12);
    font-weight: 700;
    white-space: nowrap;
}
.wap-filter-products-results .wap-product-grid,
.wap-ajax-product-grid {
    grid-template-columns: repeat(var(--wap-filter-products-columns-current, var(--wap-filter-products-columns-desktop, var(--wap-products-columns, 3))), minmax(0, 1fr));
}
.wap-ajax-product-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.wap-ajax-product-card:hover { transform: translateY(-2px); border-color: rgba(0,0,0,.14); box-shadow: 0 14px 34px rgba(0,0,0,.08); }
.wap-product-card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.wap-product-card-actions { margin-top: auto; }
.wap-ajax-products-empty,
.wap-ajax-filter-error {
    padding: 18px;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 16px;
    background: #fff;
    color: #23254e;
    line-height: 1.8;
}
.wap-ajax-filter-error { border-color: rgba(220,38,38,.2); background: rgba(220,38,38,.06); color: #991b1b; margin-bottom: 14px; }
.wap-ajax-pagination { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.wap-ajax-pagination a,
.wap-ajax-pagination span {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 12px;
    background: #fff;
    color: #23254e;
    text-decoration: none;
    font-weight: 700;
}
.wap-ajax-pagination .current { background: var(--wap-filter-accent, #ef4056); color: #fff; border-color: var(--wap-filter-accent, #ef4056); }
@media (max-width: 960px) {
    .wap-filter-products-layout { grid-template-columns: minmax(0, 1fr); }
    .wap-filter-products-sidebar { grid-column: 1; grid-row: 1; order: 0; }
    .wap-filter-products-main { grid-column: 1; grid-row: 2; order: 1; }
    .wap-filter-products-results .wap-product-grid,
    .wap-ajax-product-grid {
        grid-template-columns: repeat(var(--wap-filter-products-columns-current, var(--wap-filter-products-columns-tablet, 2)), minmax(0, 1fr));
    }
}
@media (max-width: 767px) {
    .wap-filter-products-results .wap-product-grid,
    .wap-ajax-product-grid {
        grid-template-columns: repeat(var(--wap-filter-products-columns-current, var(--wap-filter-products-columns-mobile, 2)), minmax(0, 1fr));
    }
}

/* v2.6.1 - Digikala price range, closed accordions, correct desktop/mobile behaviour */
@media (min-width: 768px) {
    .wap-filter-shell .wap-filter-mobile-trigger,
    .wap-filter-shell .wap-filter-mobile-backdrop,
    .wap-filter-shell .wap-filter-mobile-close {
        display: none !important;
    }
    .wap-filter-shell .wap-archive-filter-widget.wap-filter-digikala {
        position: sticky;
        top: var(--wap-filter-sticky-top, 20px);
        transform: none !important;
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

.wap-filter-shell .wap-filter-section.is-collapsed .wap-filter-price-box,
.wap-filter-shell .wap-filter-section.is-collapsed .wap-filter-price-values,
.wap-filter-shell .wap-filter-section.is-collapsed .wap-price-range-wrap {
    display: none !important;
}

.wap-filter-shell .wap-filter-section.is-collapsed .wap-filter-label::after {
    transform: rotate(135deg);
}
.wap-filter-shell .wap-filter-section.is-open .wap-filter-label::after {
    transform: rotate(-45deg);
}

.wap-filter-shell .wap-filter-price-box {
    padding: 0 20px 18px;
}
.wap-filter-shell .wap-filter-price-values {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 18px;
}
.wap-filter-shell .wap-price-value-row {
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--wap-filter-muted);
    font-size: 13px;
}
.wap-filter-shell .wap-price-value-row strong {
    margin-inline-start: auto;
    color: var(--wap-filter-text);
    font-size: 15px;
    font-weight: 900;
    direction: ltr;
}
.wap-filter-shell .wap-price-value-row small {
    color: var(--wap-filter-muted);
    font-size: 12px;
}
.wap-filter-shell .wap-price-range-wrap {
    position: relative;
    height: 32px;
    margin: 6px 2px 18px;
}
.wap-filter-shell .wap-price-range-track {
    position: absolute;
    top: 14px;
    right: 0;
    left: 0;
    height: 4px;
    border-radius: 999px;
    background: #e0e0e2;
    overflow: hidden;
}
.wap-filter-shell .wap-price-range-track span {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background: var(--wap-filter-accent);
    border-radius: 999px;
}
.wap-filter-shell .wap-price-range {
    position: absolute;
    top: 5px;
    right: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: 22px;
    margin: 0;
    padding: 0;
    background: transparent;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
    z-index: 2;
}
.wap-filter-shell .wap-price-range::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
}
.wap-filter-shell .wap-price-range::-moz-range-track {
    height: 4px;
    background: transparent;
}
.wap-filter-shell .wap-price-range::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: var(--wap-filter-accent);
    box-shadow: 0 2px 8px rgba(0,0,0,.20);
    cursor: pointer;
    pointer-events: auto;
}
.wap-filter-shell .wap-price-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: var(--wap-filter-accent);
    box-shadow: 0 2px 8px rgba(0,0,0,.20);
    cursor: pointer;
    pointer-events: auto;
}
.wap-filter-shell .wap-price-range-max { z-index: 3; }
.wap-filter-shell .wap-filter-price .wap-filter-price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0;
}
.wap-filter-shell .wap-filter-price .wap-filter-input {
    width: 100%;
    text-align: center;
    direction: ltr;
    font-size: 13px;
}

@media (max-width: 767px) {
    .wap-filter-shell .wap-filter-mobile-trigger { display: inline-flex !important; }
    .wap-filter-shell .wap-filter-mobile-backdrop { display: block !important; }
    .wap-filter-shell .wap-archive-filter-widget.wap-filter-digikala {
        position: fixed !important;
        right: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        top: auto !important;
        z-index: 999997 !important;
        height: min(90vh, calc(100dvh - 18px));
        max-height: min(90vh, calc(100dvh - 18px));
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
        transform: translateY(105%);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .wap-filter-shell.is-open .wap-archive-filter-widget.wap-filter-digikala {
        transform: translateY(0);
    }
    .wap-filter-shell .wap-filter-panel-header {
        position: sticky;
        top: 0;
        z-index: 4;
        background: #fff;
    }
    .wap-filter-shell .wap-filter-actions {
        position: sticky;
        bottom: 0;
        z-index: 4;
        background: #fff;
    }
}


/* v2.6.2 - RTL price slider direction and stronger responsive product cards */
.wap-filter-shell .wap-price-range-wrap[dir="rtl"] .wap-price-range {
    direction: rtl;
}
.wap-filter-shell .wap-price-range-wrap[dir="rtl"] .wap-price-range::-webkit-slider-runnable-track {
    direction: rtl;
}
.wap-filter-shell .wap-price-range-wrap[dir="rtl"] .wap-price-range::-moz-range-track {
    direction: rtl;
}
.wap-filter-shell .wap-price-range-wrap[dir="rtl"] .wap-price-range-track {
    direction: rtl;
}
.wap-filter-shell .wap-filter-price .wap-filter-price-inputs {
    direction: rtl;
}
.wap-filter-shell .wap-filter-price .wap-filter-price-inputs [data-wap-price-min-input] {
    order: 1;
}
.wap-filter-shell .wap-filter-price .wap-filter-price-inputs [data-wap-price-max-input] {
    order: 2;
}

@media (max-width: 767px) {
    .wap-filter-products-widget.wap-filter-products-layout {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
    }
    .wap-filter-products-widget .wap-filter-products-sidebar,
    .wap-filter-products-widget .wap-filter-products-main,
    .wap-filter-products-widget .wap-filter-products-results {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    .wap-filter-products-widget .wap-filter-products-results .wap-product-grid,
    .wap-filter-products-widget .wap-filter-products-results .wap-ajax-product-grid,
    .wap-filter-products-results .wap-product-grid.wap-ajax-product-grid,
    .wap-ajax-product-grid {
        grid-template-columns: repeat(var(--wap-filter-products-columns-current, var(--wap-filter-products-columns-mobile, 2)), minmax(0, 1fr)) !important;
        gap: 10px !important;
        width: 100% !important;
    }
    .wap-filter-products-widget .wap-product-card,
    .wap-filter-products-widget .wap-ajax-product-card {
        min-width: 0 !important;
        width: 100% !important;
    }
    .wap-filter-products-widget .wap-product-card-image,
    .wap-filter-products-widget .wap-product-card-image img {
        width: 100% !important;
        max-width: 100% !important;
    }
    .wap-filter-products-widget .wap-product-title-widget,
    .wap-filter-products-widget .wap-product-title-widget a {
        font-size: 13px;
        line-height: 1.7;
        overflow-wrap: anywhere;
    }
}
@media (max-width: 480px) {
    .wap-filter-products-widget .wap-filter-products-results .wap-product-grid,
    .wap-filter-products-widget .wap-filter-products-results .wap-ajax-product-grid,
    .wap-filter-products-results .wap-product-grid.wap-ajax-product-grid,
    .wap-ajax-product-grid {
        grid-template-columns: repeat(var(--wap-filter-products-columns-current, var(--wap-filter-products-columns-mobile, 2)), minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
    .wap-filter-products-widget .wap-product-card,
    .wap-filter-products-widget .wap-ajax-product-card {
        padding: 10px !important;
        border-radius: 14px !important;
    }
    .wap-filter-products-widget .wap-product-card-actions .wap-add-to-cart,
    .wap-filter-products-widget .wap-product-card-actions .wap-cart-qty-control,
    .wap-filter-products-widget .wap-product-card-actions button {
        width: 100% !important;
        min-width: 0 !important;
        font-size: 12px !important;
    }
}

/* v2.6.3 - Product card element styling hooks */
.wap-filter-products-results .wap-product-card {
    position: relative;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.wap-filter-products-results .wap-product-card-image {
    position: relative;
}
.wap-filter-products-results .wap-product-card-sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 24px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #ef394e;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}
.wap-filter-products-results .wap-product-card-sale-badge-floating {
    top: 12px;
    right: 12px;
}
.wap-filter-products-results .wap-product-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.wap-filter-products-results .wap-product-price del {
    opacity: .65;
}
.wap-filter-products-results .wap-product-card-actions {
    display: flex;
    align-items: center;
}
.wap-filter-products-results .wap-cart-stepper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* Product image widget gallery v2.8.6 */
.wap-product-image-main img { width: 100%; height: auto; display: block; border-radius: 14px; }
.wap-product-image-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.wap-product-image-thumb { appearance: none; padding: 0; border: 1px solid rgba(17,24,39,.14); background: transparent; border-radius: 10px; overflow: hidden; cursor: pointer; line-height: 0; opacity: .78; transition: opacity .15s ease, transform .15s ease, border-color .15s ease; }
.wap-product-image-thumb:hover,
.wap-product-image-thumb.is-active { opacity: 1; transform: translateY(-1px); border-color: rgba(17,24,39,.45); }
.wap-product-image-thumb img { width: 72px; height: 72px; object-fit: cover; display: block; border-radius: 0; }

/* Product extra text widget v2.8.8 */
.wap-product-extra-text-widget { direction: rtl; }
.wap-product-extra-text-title { margin-top: 0; margin-bottom: 12px; }
.wap-product-extra-text-content { overflow-wrap: anywhere; }
.wap-product-extra-text-content > :first-child { margin-top: 0; }
.wap-product-extra-text-content > :last-child { margin-bottom: 0; }
.wap-product-extra-text-content p { margin-top: 0; }

/* Expanded Elementor style support v2.8.9 */
.elementor-widget-wap_product_image .wap-product-image-widget,
.elementor-widget-wap_product_extra_text .wap-product-extra-text-widget {
    box-sizing: border-box;
}
.elementor-widget-wap_product_image .wap-product-image-main,
.elementor-widget-wap_product_image .wap-product-image-main a,
.elementor-widget-wap_product_image .wap-product-image-main img,
.elementor-widget-wap_product_image .wap-product-image-thumbs,
.elementor-widget-wap_product_image .wap-product-image-thumb,
.elementor-widget-wap_product_image .wap-product-image-thumb img,
.elementor-widget-wap_product_extra_text .wap-product-extra-text-title,
.elementor-widget-wap_product_extra_text .wap-product-extra-text-content,
.elementor-widget-wap_product_extra_text .wap-product-extra-text-content *,
.elementor-widget-wap_product_extra_text .wap-product-extra-text-empty-text {
    box-sizing: border-box;
}
.elementor-widget-wap_product_image .wap-product-image-main img {
    transition-property: all;
}
.elementor-widget-wap_product_image .wap-product-image-thumb {
    transition-property: all;
}
.elementor-widget-wap_product_image .wap-product-image-thumbs {
    scrollbar-width: thin;
}
.elementor-widget-wap_product_extra_text .wap-product-extra-text-widget {
    transition-property: all;
}
.elementor-widget-wap_product_extra_text .wap-product-extra-text-content img {
    max-width: 100%;
    height: auto;
}
.elementor-widget-wap_product_extra_text .wap-product-extra-text-content table {
    max-width: 100%;
}
.elementor-widget-wap_product_extra_text .wap-product-extra-text-content pre {
    max-width: 100%;
    overflow: auto;
}

/* Media icon support for cart buttons v2.9.0 */
.wap-cart-button-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    flex: 0 0 auto;
}
.wap-media-button-icon {
    width: 20px;
    height: 20px;
    display: block;
    object-fit: contain;
    transition: transform .18s ease, opacity .18s ease, filter .18s ease;
}
.wap-cart-display-icon .wap-cart-button-label,
.wap-cart-display-text .wap-cart-button-icon-wrap {
    display: none !important;
}
.wap-view-cart-button .wap-view-cart-label,
.wap-cart-quantity-control .wap-cart-button-label {
    display: inline-flex;
    align-items: center;
}


/* WAP v2.9.7 - modern Digikala/Divar style filter UX */
.wap-filter-products-widget.wap-filter-products-layout {
    grid-template-columns: var(--wap-filter-products-sidebar-width, 316px) minmax(0, 1fr);
    gap: 20px;
}
.wap-filter-shell-modern {
    max-width: min(100%, 316px);
    --wap-filter-accent: #ef4056;
    --wap-filter-accent-soft: rgba(239,64,86,.10);
    --wap-filter-border: #e0e0e2;
    --wap-filter-soft-border: #f0f0f1;
    --wap-filter-text: #23254e;
    --wap-filter-muted: #81858b;
    --wap-filter-bg: #fff;
    --wap-filter-control-bg: #f7f7f8;
    --wap-filter-shadow: 0 12px 32px rgba(35,37,78,.08);
}
.wap-filter-shell-modern,
.wap-filter-shell-modern * { box-sizing: border-box; }
.wap-filter-shell-modern .wap-filter-modern {
    width: 100%;
    background: var(--wap-filter-bg);
    border: 1px solid var(--wap-filter-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(0,0,0,.02);
    color: var(--wap-filter-text);
}
.wap-filter-shell-modern .wap-filter-drawer-handle { display: none; }
.wap-filter-shell-modern .wap-filter-panel-header {
    min-height: 58px;
    padding: 0 18px;
    gap: 8px;
    background: #fff;
    border-bottom: 1px solid var(--wap-filter-soft-border);
}
.wap-filter-shell-modern .wap-filter-title {
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -.2px;
    color: var(--wap-filter-text);
}
.wap-filter-shell-modern .wap-filter-header-count {
    margin-inline-start: auto;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--wap-filter-accent-soft);
    color: var(--wap-filter-accent);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}
.wap-filter-shell-modern .wap-filter-scroll-area {
    display: block;
}
.wap-filter-shell-modern .wap-filter-active-chips {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--wap-filter-soft-border);
    background: linear-gradient(180deg, #fff, #fdfdfd);
}
.wap-filter-shell-modern .wap-filter-active-chips::-webkit-scrollbar { display: none; }
.wap-filter-shell-modern .wap-filter-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    max-width: 210px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f1f2f4;
    color: #3f4064;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.8;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wap-filter-shell-modern .wap-filter-chip-clear {
    background: var(--wap-filter-accent-soft);
    color: var(--wap-filter-accent);
}
.wap-filter-shell-modern .wap-filter-section {
    padding: 0;
    border-bottom: 1px solid var(--wap-filter-soft-border);
    gap: 0;
    background: #fff;
}
.wap-filter-shell-modern .wap-filter-section:last-of-type { border-bottom: 1px solid var(--wap-filter-soft-border); }
.wap-filter-shell-modern .wap-filter-label {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 18px;
    border: 0;
    background: transparent;
    color: var(--wap-filter-text);
    text-align: right;
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}
.wap-filter-shell-modern .wap-filter-label::after {
    content: '';
    width: 8px;
    height: 8px;
    border: solid var(--wap-filter-muted);
    border-width: 0 0 2px 2px;
    transform: rotate(-45deg);
    transition: transform .18s ease, border-color .18s ease;
    flex: 0 0 auto;
    margin-inline-start: 4px;
}
.wap-filter-shell-modern .wap-filter-section.is-collapsed .wap-filter-label::after { transform: rotate(135deg); }
.wap-filter-shell-modern .wap-filter-section.is-open .wap-filter-label::after { transform: rotate(-45deg); }
.wap-filter-shell-modern .wap-filter-label-text { flex: 1; min-width: 0; }
.wap-filter-shell-modern .wap-filter-section-count {
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--wap-filter-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}
.wap-filter-shell-modern .wap-filter-section.is-collapsed .wap-filter-options,
.wap-filter-shell-modern .wap-filter-section.is-collapsed .wap-filter-price-box,
.wap-filter-shell-modern .wap-filter-section.is-collapsed .wap-filter-search-box,
.wap-filter-shell-modern .wap-filter-section.is-collapsed .wap-filter-option-search-wrap,
.wap-filter-shell-modern .wap-filter-section.is-collapsed > .wap-filter-select,
.wap-filter-shell-modern .wap-filter-section.is-collapsed > .wap-filter-input { display: none !important; }
.wap-filter-shell-modern .wap-filter-search-box,
.wap-filter-shell-modern .wap-filter-option-search-wrap {
    position: relative;
    padding: 0 18px 16px;
}
.wap-filter-shell-modern .wap-filter-search-icon {
    position: absolute;
    top: 12px;
    right: 31px;
    width: 15px;
    height: 15px;
    border: 2px solid #a1a3a8;
    border-radius: 50%;
    pointer-events: none;
}
.wap-filter-shell-modern .wap-filter-search-icon::after {
    content: '';
    position: absolute;
    width: 7px;
    height: 2px;
    border-radius: 999px;
    background: #a1a3a8;
    transform: rotate(45deg);
    left: -5px;
    bottom: -3px;
}
.wap-filter-shell-modern .wap-filter-input,
.wap-filter-shell-modern .wap-filter-select,
.wap-filter-shell-modern .wap-filter-option-search {
    width: 100%;
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--wap-filter-control-bg);
    color: var(--wap-filter-text);
    outline: none;
    font-size: 13px;
    font-weight: 600;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.wap-filter-shell-modern .wap-filter-search-box .wap-filter-input,
.wap-filter-shell-modern .wap-filter-option-search { padding-right: 42px; }
.wap-filter-shell-modern .wap-filter-input:focus,
.wap-filter-shell-modern .wap-filter-select:focus,
.wap-filter-shell-modern .wap-filter-option-search:focus {
    background: #fff;
    border-color: var(--wap-filter-accent);
    box-shadow: 0 0 0 3px var(--wap-filter-accent-soft);
}
.wap-filter-shell-modern .wap-filter-options {
    max-height: 282px;
    padding: 0 12px 14px;
    gap: 4px;
    overflow: auto;
    scrollbar-width: thin;
}
.wap-filter-shell-modern .wap-filter-option {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 6px;
    border-radius: 10px;
    color: #3f4064;
    font-size: 13px;
    font-weight: 700;
    transition: background-color .18s ease, color .18s ease;
}
.wap-filter-shell-modern .wap-filter-option:hover,
.wap-filter-shell-modern .wap-filter-option.is-checked { background: #f5f5f6; }
.wap-filter-shell-modern .wap-filter-option.is-hidden-by-search { display: none !important; }
.wap-filter-shell-modern .wap-filter-option input[type="checkbox"],
.wap-filter-shell-modern .wap-filter-option input[type="radio"] {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin: 0;
    accent-color: var(--wap-filter-accent);
}
.wap-filter-shell-modern .wap-filter-option span {
    flex: 1;
    min-width: 0;
    line-height: 1.8;
}
.wap-filter-shell-modern .wap-filter-option small {
    flex: 0 0 auto;
    color: var(--wap-filter-muted);
    font-size: 11px;
    font-weight: 700;
}
.wap-filter-shell-modern .wap-filter-depth-1 { padding-right: 18px; }
.wap-filter-shell-modern .wap-filter-depth-2 { padding-right: 32px; }
.wap-filter-shell-modern .wap-filter-depth-3 { padding-right: 46px; }
.wap-filter-shell-modern .wap-filter-radio-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.wap-filter-shell-modern .wap-filter-radio-options .wap-filter-option {
    justify-content: center;
    border: 1px solid var(--wap-filter-soft-border);
    background: #fff;
}
.wap-filter-shell-modern .wap-filter-radio-options .wap-filter-option input { display: none; }
.wap-filter-shell-modern .wap-filter-radio-options .wap-filter-option.is-checked {
    border-color: var(--wap-filter-accent);
    background: var(--wap-filter-accent-soft);
    color: var(--wap-filter-accent);
}
.wap-filter-shell-modern .wap-filter-price-box { padding: 0 18px 18px; }
.wap-filter-shell-modern .wap-filter-price-values {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 14px;
    background: #fafafa;
}
.wap-filter-shell-modern .wap-price-value-row {
    min-height: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--wap-filter-muted);
    font-size: 12px;
}
.wap-filter-shell-modern .wap-price-value-row strong {
    margin-inline-start: auto;
    color: var(--wap-filter-text);
    font-size: 15px;
    font-weight: 900;
    direction: ltr;
}
.wap-filter-shell-modern .wap-filter-price .wap-filter-price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0;
}
.wap-filter-shell-modern .wap-filter-price .wap-filter-input { text-align: center; direction: ltr; }
.wap-filter-shell-modern .wap-filter-switch-section { padding: 12px 18px; }
.wap-filter-shell-modern .wap-filter-switch-option {
    min-height: 44px;
    padding: 0;
    justify-content: space-between;
}
.wap-filter-shell-modern .wap-filter-switch-option input { position: absolute; opacity: 0; pointer-events: none; }
.wap-filter-shell-modern .wap-filter-switch {
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: #c3c4c7;
    position: relative;
    transition: background-color .18s ease;
    flex: 0 0 auto;
}
.wap-filter-shell-modern .wap-filter-switch::before {
    content: '';
    position: absolute;
    top: 3px;
    right: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.20);
    transition: transform .18s ease;
}
.wap-filter-shell-modern .wap-filter-switch-option.is-checked .wap-filter-switch,
.wap-filter-shell-modern .wap-filter-switch-option input:checked ~ .wap-filter-switch { background: var(--wap-filter-accent); }
.wap-filter-shell-modern .wap-filter-switch-option.is-checked .wap-filter-switch::before,
.wap-filter-shell-modern .wap-filter-switch-option input:checked ~ .wap-filter-switch::before { transform: translateX(-18px); }
.wap-filter-shell-modern .wap-filter-sort .wap-filter-select { margin: 0 18px 16px; width: calc(100% - 36px); }
.wap-filter-shell-modern .wap-filter-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    gap: 10px;
    padding: 13px 14px;
    border-top: 1px solid var(--wap-filter-soft-border);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px);
}
.wap-filter-shell-modern .wap-filter-submit {
    flex: 1;
    min-height: 46px;
    border-radius: 12px;
    background: var(--wap-filter-accent);
    color: #fff;
    font-weight: 900;
}
.wap-filter-shell-modern .wap-filter-reset {
    min-height: 44px;
    padding: 0 10px;
    color: var(--wap-filter-muted);
    font-size: 13px;
    font-weight: 800;
}
.wap-filter-shell-modern .wap-filter-reset.is-active { color: var(--wap-filter-accent); }
.wap-filter-shell-modern .wap-filter-mobile-apply { display: none; }
.wap-filter-shell-modern .wap-filter-auto-submit .wap-filter-submit:not(.wap-filter-mobile-apply) { display: none !important; }

@media (min-width: 768px) {
    .wap-filter-shell-modern .wap-filter-modern {
        position: sticky !important;
        top: var(--wap-filter-sticky-top, 20px) !important;
        transform: none !important;
        max-height: calc(100vh - var(--wap-filter-sticky-top, 20px) - 20px) !important;
        overflow: auto !important;
    }
    .wap-filter-shell-modern .wap-filter-modern::-webkit-scrollbar { width: 6px; }
    .wap-filter-shell-modern .wap-filter-modern::-webkit-scrollbar-thumb { background: #d8d8da; border-radius: 999px; }
    .wap-filter-shell-modern .wap-filter-mobile-trigger,
    .wap-filter-shell-modern .wap-filter-mobile-backdrop,
    .wap-filter-shell-modern .wap-filter-mobile-close { display: none !important; }
}

@media (max-width: 767px) {
    .wap-filter-products-widget.wap-filter-products-layout { display: block !important; }
    .wap-filter-shell-modern {
        max-width: 100% !important;
        margin-bottom: 12px;
    }
    .wap-filter-shell-modern .wap-filter-mobile-trigger {
        display: inline-flex !important;
        width: 100%;
        min-height: 48px;
        justify-content: center;
        border-radius: 14px;
        border: 1px solid var(--wap-filter-border);
        background: #fff;
        box-shadow: 0 6px 18px rgba(35,37,78,.06);
        font-size: 14px;
    }
    .wap-filter-shell-modern .wap-filter-mobile-trigger-icon {
        width: 18px;
        height: 16px;
        position: relative;
        display: inline-flex;
    }
    .wap-filter-shell-modern .wap-filter-mobile-trigger-icon::before,
    .wap-filter-shell-modern .wap-filter-mobile-trigger-icon::after {
        content: '';
        position: absolute;
        right: 1px;
        left: 1px;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
        box-shadow: 0 7px 0 currentColor;
    }
    .wap-filter-shell-modern .wap-filter-mobile-trigger-icon::before { top: 1px; }
    .wap-filter-shell-modern .wap-filter-mobile-trigger-icon::after { bottom: 1px; box-shadow: none; width: 12px; }
    .wap-filter-shell-modern .wap-filter-mobile-backdrop {
        display: block !important;
        position: fixed;
        inset: 0;
        z-index: 999996;
        background: rgba(0,0,0,.50);
        opacity: 0;
        visibility: hidden;
        transition: opacity .22s ease, visibility .22s ease;
    }
    .wap-filter-shell-modern.is-open .wap-filter-mobile-backdrop {
        opacity: 1;
        visibility: visible;
    }
    .wap-filter-shell-modern .wap-filter-modern {
        position: fixed !important;
        right: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        top: auto !important;
        z-index: 999997 !important;
        height: min(88dvh, calc(100dvh - 18px));
        max-height: min(88dvh, calc(100dvh - 18px));
        display: flex;
        flex-direction: column;
        border: 0;
        border-radius: 24px 24px 0 0;
        box-shadow: 0 -18px 50px rgba(0,0,0,.24);
        transform: translateY(108%) !important;
        transition: transform .26s cubic-bezier(.2,.8,.2,1);
        overflow: hidden !important;
        padding-bottom: env(safe-area-inset-bottom);
    }
    .wap-filter-shell-modern.is-open .wap-filter-modern { transform: translateY(0) !important; }
    .wap-filter-shell-modern .wap-filter-drawer-handle {
        display: block;
        width: 42px;
        height: 4px;
        border-radius: 999px;
        background: #d9d9dc;
        margin: 10px auto 2px;
        flex: 0 0 auto;
    }
    .wap-filter-shell-modern .wap-filter-panel-header {
        flex: 0 0 auto;
        min-height: 54px;
        padding: 0 18px;
        position: relative;
        z-index: 4;
    }
    .wap-filter-shell-modern .wap-filter-mobile-close {
        display: inline-flex !important;
        min-height: 34px;
        align-items: center;
        justify-content: center;
        padding: 0 8px;
        border: 0;
        background: transparent;
        color: var(--wap-filter-accent);
        font-size: 13px;
        font-weight: 900;
    }
    .wap-filter-shell-modern .wap-filter-active-chips {
        flex: 0 0 auto;
        padding: 10px 14px;
    }
    .wap-filter-shell-modern .wap-filter-scroll-area {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    .wap-filter-shell-modern .wap-filter-actions {
        flex: 0 0 auto;
        padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    }
    .wap-filter-shell-modern .wap-filter-mobile-apply { display: inline-flex !important; }
    .wap-filter-shell-modern .wap-filter-reset { white-space: nowrap; }
    .wap-filter-shell-modern .wap-filter-options { max-height: none; }
    body.wap-filter-drawer-open { overflow: hidden !important; touch-action: none; }
}
@media (max-width: 767px) {
    .wap-filter-shell-modern .wap-filter-auto-submit .wap-filter-mobile-apply {
        display: inline-flex !important;
    }
}

/* WAP v2.9.7 - sort bar above products + removable mobile filter chips */
.wap-products-sort-bar {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    padding: 0 16px;
    border: 1px solid #e0e0e2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0,0,0,.02);
    color: #3f4064;
    box-sizing: border-box;
}
.wap-products-sort-title {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #23254e;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}
.wap-products-sort-title::before {
    content: '';
    width: 18px;
    height: 18px;
    display: inline-block;
    background: currentColor;
    opacity: .72;
    -webkit-mask: linear-gradient(#000 0 0) center 3px/16px 2px no-repeat, linear-gradient(#000 0 0) center 8px/12px 2px no-repeat, linear-gradient(#000 0 0) center 13px/8px 2px no-repeat;
    mask: linear-gradient(#000 0 0) center 3px/16px 2px no-repeat, linear-gradient(#000 0 0) center 8px/12px 2px no-repeat, linear-gradient(#000 0 0) center 13px/8px 2px no-repeat;
}
.wap-products-sort-options {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.wap-products-sort-options::-webkit-scrollbar { display: none; }
.wap-products-sort-option {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 11px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #62666d;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease;
}
.wap-products-sort-option:hover { color: #23254e; background: #f5f5f6; }
.wap-products-sort-option.is-active {
    color: #ef4056;
    background: rgba(239,64,86,.10);
}
.wap-filter-shell-modern .wap-filter-active-chips[hidden] { display: none !important; }
.wap-filter-shell-modern .wap-filter-chip-removable {
    gap: 7px;
    padding-inline-start: 10px;
    padding-inline-end: 8px;
}
.wap-filter-shell-modern .wap-filter-chip-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wap-filter-shell-modern .wap-filter-chip-remove-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(63,64,100,.10);
    color: #62666d;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}
.wap-filter-shell-modern .wap-filter-chip-removable:hover .wap-filter-chip-remove-icon {
    background: rgba(239,64,86,.12);
    color: #ef4056;
}
.wap-filter-shell-modern > .wap-filter-mobile-active-chips { display: none; }

@media (min-width: 768px) {
    .wap-filter-shell-modern > .wap-filter-mobile-active-chips { display: none !important; }
}

@media (max-width: 767px) {
    .wap-products-sort-bar {
        min-height: 48px;
        margin-bottom: 12px;
        padding: 8px 10px;
        border-radius: 14px;
        gap: 8px;
    }
    .wap-products-sort-title {
        font-size: 12px;
    }
    .wap-products-sort-title::before { display: none; }
    .wap-products-sort-option {
        min-height: 34px;
        padding: 0 10px;
        font-size: 12px;
    }
    .wap-filter-shell-modern > .wap-filter-mobile-active-chips {
        display: flex;
        width: 100%;
        max-width: 100%;
        margin: 10px 0 0;
        padding: 8px 2px 2px;
        border: 0;
        background: transparent;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .wap-filter-shell-modern > .wap-filter-mobile-active-chips::-webkit-scrollbar { display: none; }
    .wap-filter-shell-modern .wap-filter-panel-active-chips { display: none !important; }
    .wap-filter-shell-modern > .wap-filter-mobile-active-chips .wap-filter-chip {
        max-width: 76vw;
        border: 1px solid #e0e0e2;
        background: #fff;
        box-shadow: 0 3px 12px rgba(35,37,78,.05);
    }
    .wap-filter-shell-modern > .wap-filter-mobile-active-chips .wap-filter-chip-clear {
        border-color: rgba(239,64,86,.18);
        background: rgba(239,64,86,.08);
        color: #ef4056;
    }
}

/* Elementor product-card grids v2.10.13 */
.wap-products-widget {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.wap-products-widget-heading {
    margin: 0 0 18px;
}
.wap-products-widget-grid {
    display: grid;
    grid-template-columns: repeat(var(--wap-products-widget-columns-desktop, var(--wap-products-widget-columns, 4)), minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 18px;
    align-items: stretch;
}
@media (max-width: 1024px) {
    .wap-products-widget-grid {
        grid-template-columns: repeat(var(--wap-products-widget-columns-tablet, var(--wap-products-widget-columns, 2)), minmax(0, 1fr));
    }
}
@media (max-width: 767px) {
    .wap-products-widget-grid {
        grid-template-columns: repeat(var(--wap-products-widget-columns-mobile, var(--wap-products-widget-columns, 1)), minmax(0, 1fr));
    }
}
.wap-products-widget-grid .wap-product-card {
    position: relative;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition-property: background-color, border-color, box-shadow, transform;
    transition-timing-function: ease;
    transition-duration: .2s;
}
.wap-products-widget-grid .wap-product-card-body {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
}
.wap-products-widget-grid .wap-product-card-image {
    position: relative;
    display: block;
    max-width: 100%;
}
.wap-products-widget-grid .wap-product-card-image img {
    transition: opacity .2s ease, transform .2s ease;
}
.wap-products-widget-grid .wap-card-title {
    max-width: 100%;
    overflow-wrap: anywhere;
}
.wap-products-widget-grid .wap-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}
.wap-products-widget-grid .wap-card-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.wap-products-widget-grid .wap-card-price del {
    opacity: .65;
}
.wap-products-widget-grid .wap-product-card-actions {
    width: 100%;
    margin-top: auto;
    display: flex;
    align-items: center;
}
.wap-products-widget-grid .wap-product-card-actions .wap-product-actions {
    margin-bottom: 0;
}
.wap-products-widget-grid .wap-cart-quantity-control,
.wap-products-widget-grid .wap-cart-add-button,
.wap-products-widget-grid .wap-cart-stepper {
    max-width: 100%;
}
.wap-products-widget-grid .wap-product-card-sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 24px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #ef394e;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    box-sizing: border-box;
}
.wap-products-widget-grid .wap-product-card-sale-badge-floating {
    top: 12px;
    right: 12px;
}
.wap-products-widget-empty {
    padding: 16px;
    border: 1px dashed rgba(0,0,0,.18);
    border-radius: 12px;
    color: rgba(0,0,0,.62);
    text-align: center;
}

/* Product taxonomy widgets and AJAX product search v2.10.14 */
.wap-product-taxonomy-widget {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    box-sizing: border-box;
}
.wap-product-taxonomy-label {
    display: inline-block;
    font-weight: 700;
}
.wap-product-taxonomy-list {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.wap-product-taxonomy-item,
.wap-product-taxonomy-separator {
    display: inline-flex;
    align-items: center;
}
.wap-product-taxonomy-link {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.wap-product-search-form {
    width: 100%;
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 18px;
    box-sizing: border-box;
}
.wap-product-search-input-wrap {
    position: relative;
    min-width: 0;
    flex: 1 1 auto;
}
.wap-product-search-input {
    width: 100%;
    min-height: 48px;
    padding: 10px 16px;
    border: 1px solid rgba(0,0,0,.16);
    border-radius: 12px;
    background: #fff;
    color: #222;
    outline: none;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.wap-product-search-input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34,113,177,.12);
}
.wap-product-search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    z-index: 9999;
    width: 100%;
    max-height: 420px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(0,0,0,.14);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(0,0,0,.14);
    box-sizing: border-box;
    scrollbar-width: thin;
}
.wap-product-search-suggestions[hidden] {
    display: none !important;
}
.wap-product-search-suggestion-list {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.wap-product-search-suggestion-item {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(0,0,0,.09);
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color .18s ease, color .18s ease;
}
.wap-product-search-suggestion-item:hover,
.wap-product-search-suggestion-item:focus {
    background: #f7f7f8;
    color: inherit;
    outline: none;
}
.wap-product-search-suggestion-image {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
}
.wap-product-search-suggestion-image img,
.wap-product-search-suggestion-image .wap-product-image-placeholder,
.wap-product-search-suggestion-image .wap-product-image-wrap {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}
.wap-product-search-suggestion-content {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}
.wap-product-search-suggestion-title {
    width: 100%;
    color: #222;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.8;
    text-align: start;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wap-product-search-suggestion-price {
    color: #222;
    font-size: 13px;
    line-height: 1.7;
    text-align: start;
}
.wap-product-search-suggestion-price .wap-product-price {
    margin: 0;
}
.wap-product-search-suggestion-price del {
    opacity: .58;
}
.wap-product-search-suggestion-all {
    position: sticky;
    bottom: 0;
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 12px;
    border-top: 1px solid rgba(0,0,0,.1);
    background: #fff;
    color: #2271b1;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-sizing: border-box;
}
.wap-product-search-suggestion-count {
    min-width: 22px;
    min-height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(34,113,177,.1);
    font-size: 11px;
}
.wap-product-search-suggestion-message {
    width: 100%;
    padding: 18px 14px;
    color: rgba(0,0,0,.62);
    text-align: center;
    box-sizing: border-box;
}
.wap-product-search-suggestions.is-loading {
    cursor: progress;
}
.wap-product-search-submit {
    min-width: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: 0;
    border-radius: 12px;
    background: #2271b1;
    color: #fff;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease, transform .2s ease;
}
.wap-product-search-submit:hover {
    background: #135e96;
}
.wap-product-search-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}
.wap-product-search-status {
    min-height: 24px;
    margin: 0 0 14px;
    color: rgba(0,0,0,.62);
    text-align: center;
}
.wap-product-search-status:empty {
    min-height: 0;
    margin: 0;
}
.wap-product-search-widget.is-search-loading .wap-product-search-submit {
    opacity: .65;
    pointer-events: none;
}
.wap-product-search-widget.is-search-loading .wap-product-search-results {
    opacity: .62;
    pointer-events: none;
}
.wap-product-search-results {
    transition: opacity .2s ease;
}
.wap-product-search-result-section {
    width: 100%;
}
.wap-product-search-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}
.wap-product-search-pagination .page-numbers {
    min-width: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border: 1px solid rgba(0,0,0,.14);
    border-radius: 9px;
    color: inherit;
    text-decoration: none;
    box-sizing: border-box;
}
.wap-product-search-pagination .page-numbers.current {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}
.wap-product-search-page-main {
    width: 100%;
    min-height: 40vh;
    box-sizing: border-box;
}
.wap-product-search-page-elementor {
    width: 100%;
    box-sizing: border-box;
}
.wap-product-search-page-elementor > .elementor-widget-wap_product_ajax_search {
    width: 100%;
}
.wap-product-search-widget-results-page {
    margin-inline: auto;
}

@media (max-width: 767px) {
    .wap-product-search-form {
        gap: 8px;
    }
    .wap-product-search-submit {
        padding-inline: 13px;
    }
}

/* 2.10.18: mobile filter controls in search → filter → sort order */
.wap-filter-products-sidebar,
.wap-filter-shell-modern { width: 100%; min-width: 0; }
.wap-filter-external-search {
    position: relative;
    width: 100%;
    margin: 0 0 10px;
}
.wap-filter-external-search .wap-filter-input {
    width: 100%;
    min-height: 50px;
    padding-inline: 46px 14px;
    border: 1px solid var(--wap-filter-soft-border, #e5e7eb);
    border-radius: 14px;
    background: #fff;
    font: inherit;
}
.wap-filter-external-search .wap-filter-search-icon {
    position: absolute;
    inset-inline-start: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
}
.wap-filter-shell-modern .wap-filter-mobile-trigger {
    width: 100% !important;
    min-height: 50px;
    justify-content: center;
    border-radius: 14px;
}
.wap-filter-products-sidebar > .wap-products-sort-bar {
    width: 100%;
    margin: 10px 0 0;
    padding: 10px 12px;
    border: 1px solid var(--wap-filter-soft-border, #e5e7eb);
    border-radius: 14px;
    background: #fff;
}
.wap-filter-products-sidebar > .wap-products-sort-bar .wap-products-sort-options {
    width: 100%;
}
.wap-filter-label::after { display: none !important; content: none !important; }
.wap-filter-toggle-mark {
    width: 28px;
    height: 28px;
    margin-inline-start: auto;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--wap-filter-accent, #ef4056);
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
    flex: 0 0 28px;
}
.wap-filter-toggle-mark::before { content: '−'; }
.wap-filter-section.is-collapsed .wap-filter-toggle-mark::before { content: '+'; }
@media (max-width: 767px) {
    .wap-filter-products-layout { display: block !important; }
    .wap-filter-products-sidebar { width: 100% !important; max-width: none !important; }
    .wap-filter-products-sidebar > .wap-products-sort-bar {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 8px;
    }
    .wap-products-sort-options { overflow-x: auto; scrollbar-width: none; }
    .wap-products-sort-options::-webkit-scrollbar { display: none; }
}


/* Pagination remains available while the next product page can also load automatically on scroll. */
.wap-infinite-load-more {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 22px 0 4px;
}
.wap-infinite-load-more[hidden] { display: none !important; }
.wap-infinite-load-more-button {
    min-width: 190px;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid var(--wap-filter-accent, #ef4056);
    border-radius: 12px;
    background: #fff;
    color: var(--wap-filter-accent, #ef4056);
    font: inherit;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}
.wap-infinite-load-more-button:hover:not(:disabled) {
    opacity: .88;
    transform: translateY(-1px);
}
.wap-infinite-load-more-button:disabled { cursor: default; opacity: .72; }
.wap-infinite-load-more-loading { display: none; }
.wap-infinite-load-more-button.is-loading .wap-infinite-load-more-label { display: none; }
.wap-infinite-load-more-button.is-loading .wap-infinite-load-more-loading { display: inline; }

/* AJAX product search: fixed responsive columns */
.wap-product-search-widget .wap-products-widget-grid,
.wap-product-search-results-page .wap-products-widget-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

@media (max-width: 767px) {
    .wap-product-search-widget .wap-products-widget-grid,
    .wap-product-search-results-page .wap-products-widget-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* v2.14.14 - Reliable dropdown variation selection */
.wap-variation-selector-widget .wap-variation-select {
    appearance: auto;
    cursor: pointer;
}
.wap-variation-selector-widget.has-unmatched-variation .wap-variation-select {
    border-color: #d63638;
}
.wap-variation-needs-attention {
    border-radius: 14px;
    outline: 3px solid rgba(213, 97, 78, .25);
    outline-offset: 6px;
    animation: wapVariationAttention 1.1s ease-in-out 2;
}
@keyframes wapVariationAttention {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Variation live extra text v2.14.18 */
.wap-product-extra-text-widget[hidden] { display: none !important; }
