/* Truckworkz Canada - Unified Catalog Filters & Fitment Styles */
.tw-catalog-filters {
    --tw-ink: #171b1e;
    --tw-border: #e2e8f0;
    --tw-surface: #ffffff;
    --tw-surface-subtle: #f8fafc;
    --tw-accent: #d32f2f;
    color: var(--tw-ink);
    border: 1px solid var(--tw-border);
    border-radius: 8px;
    background: var(--tw-surface);
    padding: 18px 20px;
    margin: 18px 0;
    text-align: left;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.tw-catalog-filters *, .tw-bed-dialog * { box-sizing: border-box; }

/* Filter Top Toolbar Header */
.tw-filter-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--tw-border);
}
.tw-filter-top__title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}
.tw-eyebrow {
    font-size: 10px;
    letter-spacing: .14em;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}
.tw-catalog-filters h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--tw-ink);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.tw-filter-count-badge {
    font-size: 11px;
    font-weight: 700;
    background: var(--tw-ink);
    color: #fff;
    border-radius: 12px;
    padding: 2px 7px;
}
.tw-filter-caption {
    font-size: 13px;
    color: #64748b;
}
.tw-quick-clear {
    background: transparent !important;
    border: 0 !important;
    color: #dc2626 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-decoration: underline !important;
    padding: 0 !important;
    box-shadow: none !important;
    transition: color .15s !important;
}
.tw-quick-clear:hover {
    background: transparent !important;
    color: #991b1b !important;
}

/* Bed Size Selector - Compact RealTruck / AmericanTrucks Style */
.tw-bed-selector {
    border: 0;
    padding: 0;
    margin: 0 0 16px;
    min-width: 0;
}
.tw-bed-header {
    margin-bottom: 10px;
}
.tw-bed-header legend {
    font-size: 14px;
    font-weight: 700;
    color: var(--tw-ink);
    margin: 0 0 2px;
    padding: 0;
    float: none;
    width: auto;
}
.tw-bed-hint {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    display: block;
}
.tw-bed-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 10px;
}
.tw-bed-grid--many {
    max-height: 260px;
    overflow-y: auto;
    padding: 2px 4px;
    scrollbar-gutter: stable;
}
.tw-bed-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}
.tw-bed-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1.5px solid var(--tw-border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    position: relative;
    min-width: 190px;
    max-width: 270px;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
    margin: 0;
    user-select: none;
}
.tw-bed-card > input {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    z-index: 2;
    accent-color: var(--tw-ink);
    cursor: pointer;
    margin: 0;
}
.tw-bed-indicator {
    display: none;
}
.tw-bed-visual {
    width: 58px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tw-surface-subtle);
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 2px 4px;
    flex-shrink: 0;
}
.tw-bed-visual svg {
    width: 100%;
    height: 100%;
    max-height: 28px;
    display: block;
}
.tw-bed-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}
.tw-bed-meta strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--tw-ink);
    line-height: 1.3;
}
.tw-bed-meta .tw-option-count {
    font-size: 11px;
    color: #64748b;
    margin-top: 1px;
}
.tw-bed-indicator {
    width: 18px;
    height: 18px;
    border: 1.5px solid #cbd5e1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    flex-shrink: 0;
    transition: all .15s;
}
.tw-bed-indicator svg {
    display: block;
}
.tw-bed-card:hover {
    border-color: #94a3b8;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.tw-bed-card:has(input:checked), .tw-bed-card.is-selected {
    border-color: var(--tw-ink);
    background: #f8fafc;
    box-shadow: 0 0 0 1px var(--tw-ink);
}
.tw-bed-card:has(input:checked) .tw-bed-indicator, .tw-bed-card.is-selected .tw-bed-indicator {
    background: var(--tw-ink);
    border-color: var(--tw-ink);
    color: #fff;
}
.tw-bed-card:has(input:disabled) {
    opacity: .45;
    cursor: not-allowed;
}
.tw-bed-card:has(input:focus-visible) {
    outline: 2px solid #0284c7;
    outline-offset: 2px;
}
.tw-bed-preview,
.tw-catalog-filters .tw-bed-preview {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 3px 4px !important;
    font-size: 11px !important;
    color: #64748b !important;
    cursor: pointer !important;
    text-decoration: underline !important;
    text-underline-offset: 2px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    transition: color .15s !important;
}
.tw-bed-preview:hover,
.tw-catalog-filters .tw-bed-preview:hover {
    background: transparent !important;
    color: var(--tw-ink) !important;
}
.tw-bed-actions {
    margin: 8px 0 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.tw-catalog-filters .tw-bed-continue {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    width: auto !important;
    background: var(--tw-ink) !important;
    color: #ffffff !important;
    border: 1px solid var(--tw-ink) !important;
    border-radius: 6px;
    padding: 8px 18px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: .04em !important;
    cursor: pointer;
    margin: 0 !important;
    transition: all .2s;
}
.tw-catalog-filters .tw-bed-continue:hover {
    background: var(--tw-accent) !important;
    border-color: var(--tw-accent) !important;
    color: #ffffff !important;
}

/* Collapsible Filter Accordion */
.tw-filter-details {
    border-top: 1px solid var(--tw-border);
    margin-top: 12px;
    padding-top: 12px;
}
summary.tw-filter-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--tw-surface-subtle);
    border: 1px solid var(--tw-border);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background .15s;
}
summary.tw-filter-summary::-webkit-details-marker { display: none; }
summary.tw-filter-summary:after {
    content: '▾';
    font-size: 14px;
    font-weight: 700;
    transition: transform .2s;
}
.tw-filter-details[open] > summary.tw-filter-summary:after {
    transform: rotate(180deg);
}
.tw-filter-badge {
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    background: var(--tw-ink);
    color: #fff;
    padding: 2px 7px;
    margin-left: 6px;
}
.tw-filter-summary-hint {
    margin-left: auto;
    margin-right: 12px;
    font-size: 12px;
    font-weight: 400;
    color: #64748b;
}
.tw-filter-body {
    padding: 14px 2px 4px;
}
.tw-filter-basics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 18px;
}
.tw-filter-basics fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}
.tw-filter-basics legend {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    width: auto;
    float: none;
}
.tw-price-range {
    display: flex;
    align-items: center;
    gap: 10px;
}
.tw-price-range label {
    font-size: 12px;
    color: #64748b;
    flex: 1;
    margin: 0;
}
.tw-catalog-filters .tw-price-range input {
    width: 100%;
    min-width: 0;
    height: 38px;
    padding: 6px 10px;
    margin-top: 4px;
    border: 1px solid var(--tw-border);
    border-radius: 6px;
    background: #fff;
    color: #1e293b;
    font-size: 13px;
}
.tw-catalog-filters .tw-price-range input:focus {
    border-color: var(--tw-ink);
    outline: none;
    box-shadow: 0 0 0 1px var(--tw-ink);
}
.tw-catalog-filters .tw-filter-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
}
.tw-filter-check[hidden] { display: none !important; }
.tw-filter-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--tw-ink);
    cursor: pointer;
}
.tw-filter-check:has(input:disabled) {
    opacity: .45;
    cursor: not-allowed;
}
.tw-filter-check small {
    margin-left: auto;
    font-variant-numeric: tabular-nums;
    color: #64748b;
}

/* Facet Grid */
.tw-facet-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.tw-facet {
    border: 1px solid var(--tw-border);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.tw-facet summary {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    cursor: pointer !important;
    background: var(--tw-surface-subtle) !important;
    border-bottom: 1px solid transparent !important;
    list-style: none !important;
    user-select: none !important;
    transition: background-color .15s ease, border-color .15s ease !important;
}
.tw-facet summary::-webkit-details-marker {
    display: none !important;
}
.tw-facet summary::after {
    content: '' !important;
    display: inline-block !important;
    width: 6px !important;
    height: 6px !important;
    border-right: 2px solid #64748b !important;
    border-bottom: 2px solid #64748b !important;
    transform: rotate(45deg) !important;
    transition: transform .2s ease, border-color .2s ease !important;
    margin-left: 8px !important;
    margin-right: 2px !important;
    flex-shrink: 0 !important;
}
.tw-facet[open] > summary {
    background: #f1f5f9 !important;
    border-bottom: 1px solid var(--tw-border) !important;
}
.tw-facet[open] > summary::after {
    transform: rotate(-135deg) !important;
    border-color: #0f172a !important;
}
.tw-facet-options {
    max-height: 190px;
    overflow-y: auto;
    padding: 8px 12px;
}
.tw-facet-options--price {
    overflow: visible !important;
    max-height: none !important;
    padding: 12px !important;
    background: #ffffff !important;
}
.tw-facet-options--price .tw-price-range {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.tw-facet-options--price .tw-price-range label {
    flex: 1 1 0 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    margin: 0 !important;
}
.tw-facet-options--price .tw-price-range span {
    margin-top: 18px !important;
    color: #94a3b8 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}
.tw-facet-options--price .tw-price-range input {
    width: 100% !important;
    height: 36px !important;
    padding: 6px 10px !important;
    border: 1px solid var(--tw-border) !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    color: #0f172a !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}
.tw-facet-options--price .tw-price-range input:focus {
    border-color: var(--tw-ink) !important;
    outline: none !important;
    box-shadow: 0 0 0 1px var(--tw-ink) !important;
}
.tw-catalog-filters [data-tw-option-search] {
    display: block;
    width: calc(100% - 20px);
    margin: 8px 10px;
    height: 32px;
    padding: 4px 8px;
    background: var(--tw-surface-subtle);
    border: 1px solid var(--tw-border);
    border-radius: 4px;
    font-size: 12px;
}

/* Actions & Brand-Consistent Buttons */
.tw-filter-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--tw-border);
}
.tw-filter-actions button.tw-apply-btn,
.tw-filter-actions button[type="submit"] {
    background: var(--tw-ink) !important;
    color: #ffffff !important;
    border: 1px solid var(--tw-ink) !important;
    border-radius: 6px;
    padding: 9px 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: .04em !important;
    cursor: pointer;
    transition: all .2s;
}
.tw-filter-actions button.tw-apply-btn:hover,
.tw-filter-actions button[type="submit"]:hover {
    background: var(--tw-accent) !important;
    border-color: var(--tw-accent) !important;
    color: #ffffff !important;
}
.tw-catalog-filters .tw-clear-filters {
    background: transparent !important;
    color: #64748b !important;
    border: 1px solid var(--tw-border) !important;
    border-radius: 6px;
    padding: 8px 16px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    cursor: pointer;
    text-decoration: none !important;
    transition: all .2s;
}
.tw-catalog-filters .tw-clear-filters:hover {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #dc2626 !important;
}

/* Active Filter Chips */
.tw-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tw-active-filters:not(:empty) {
    border-top: 1px solid var(--tw-border);
    padding-top: 12px;
    margin-top: 12px;
}
.tw-catalog-filters .tw-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    color: #0f172a;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    text-transform: none;
    cursor: pointer;
    transition: all .15s;
}
.tw-catalog-filters .tw-filter-chip:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
}
.tw-filter-chip span[aria-hidden="true"] {
    font-weight: 700;
    font-size: 14px;
    margin-left: 2px;
    color: #94a3b8;
}
.tw-filter-chip:hover span[aria-hidden="true"] {
    color: #b91c1c;
}

/* Native Sorting & Product Header Toolbar */
.autozpro-sorting {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    padding: 12px 0 16px !important;
    margin-bottom: 24px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

/* Left Group */
.autozpro-sorting .gridlist-toggle {
    margin-right: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}
.autozpro-sorting .gridlist-toggle a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    color: #64748b !important;
    background: #fff !important;
    transition: all .15s ease !important;
}
.autozpro-sorting .gridlist-toggle a.active,
.autozpro-sorting .gridlist-toggle a:hover {
    background: #0f172a !important;
    color: #fff !important;
    border-color: #0f172a !important;
}
.autozpro-sorting .woocommerce-result-count {
    margin: 0 !important;
    padding: 0 !important;
    font-family: var(--e-global-typography-text-font-family, "Manrope", sans-serif) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    line-height: 1.4 !important;
}

/* Right Group: Sorting & Show per page */
.autozpro-sorting .woocommerce-ordering {
    margin: 0 0 0 auto !important;
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
}
.autozpro-sorting .woocommerce-ordering .tw-sort-label,
.tw-sort-label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
}
.autozpro-sorting .woocommerce-ordering .tw-sort-title,
.tw-sort-title {
    font-family: var(--e-global-typography-text-font-family, "Manrope", sans-serif) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}
.autozpro-sorting .woocommerce-ordering select.orderby,
.tw-native-sort select,
.tw-product-toolbar select {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 12px !important;
    padding: 0 32px 0 14px !important;
    height: 38px !important;
    line-height: 36px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    background-color: #ffffff !important;
    font-family: var(--e-global-typography-text-font-family, "Manrope", sans-serif) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    text-align: left !important;
    text-align-last: left !important;
    width: auto !important;
    min-width: 175px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    transition: border-color .15s, box-shadow .15s !important;
}
.autozpro-sorting .woocommerce-ordering select.orderby:hover,
.tw-native-sort select:hover,
.tw-product-toolbar select:hover {
    border-color: #94a3b8 !important;
}
.autozpro-sorting .woocommerce-ordering select.orderby:focus,
.tw-native-sort select:focus,
.tw-product-toolbar select:focus {
    border-color: #f59e0b !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15) !important;
}

/* Show per page */
.autozpro-sorting .autozpro-products-per-page {
    margin: 0 !important;
    margin-left: 20px !important;
    padding-left: 20px !important;
    border-left: 1px solid #e2e8f0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 13px !important;
}
.autozpro-sorting .autozpro-products-per-page .per-page-title {
    font-family: var(--e-global-typography-text-font-family, "Manrope", sans-serif) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    white-space: nowrap !important;
    margin: 0 !important;
}
.autozpro-sorting .autozpro-products-per-page select#per_page {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 12px !important;
    padding: 0 28px 0 12px !important;
    height: 38px !important;
    line-height: 36px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    background-color: #ffffff !important;
    font-family: var(--e-global-typography-text-font-family, "Manrope", sans-serif) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    cursor: pointer !important;
    transition: border-color .15s, box-shadow .15s !important;
}
.autozpro-sorting .autozpro-products-per-page select#per_page:hover {
    border-color: #94a3b8 !important;
}
.autozpro-sorting .autozpro-products-per-page select#per_page:focus {
    border-color: #f59e0b !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15) !important;
}

/* Sidebar Filters (#secondary) */
.tw-sidebar-filters {
    margin-top: 24px !important;
    margin-bottom: 24px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 18px 16px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    box-sizing: border-box !important;
}
.tw-sidebar-filters .tw-catalog-filters {
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    margin: 0 !important;
}
.tw-sidebar-filters .tw-filter-top {
    padding-bottom: 12px !important;
    margin-bottom: 14px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}
.tw-sidebar-filters .tw-filter-top__title h3 {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 2px 0 0 !important;
}
.tw-sidebar-filters .tw-filter-details {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}
.tw-sidebar-filters .tw-filter-summary {
    display: none !important; /* Filters open by default in sidebar */
}
.tw-sidebar-filters .tw-filter-body {
    padding: 0 !important;
    margin-top: 0 !important;
}
.tw-sidebar-filters .tw-facet-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
}
.tw-sidebar-filters .tw-facet {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    overflow: hidden !important;
    transition: border-color .15s ease, box-shadow .15s ease !important;
}
.tw-sidebar-filters .tw-facet summary {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 10px 12px !important;
    color: #0f172a !important;
    background: #f8fafc !important;
    cursor: pointer !important;
    list-style: none !important;
    user-select: none !important;
    border-bottom: 1px solid transparent !important;
    transition: background-color .15s ease, border-color .15s ease !important;
}
.tw-sidebar-filters .tw-facet summary::-webkit-details-marker {
    display: none !important;
}
.tw-sidebar-filters .tw-facet summary::after {
    content: '' !important;
    display: inline-block !important;
    width: 6px !important;
    height: 6px !important;
    border-right: 2px solid #64748b !important;
    border-bottom: 2px solid #64748b !important;
    transform: rotate(45deg) !important;
    transition: transform .2s ease, border-color .2s ease !important;
    margin-left: 8px !important;
    margin-right: 2px !important;
    flex-shrink: 0 !important;
}
.tw-sidebar-filters .tw-facet[open] summary {
    background: #f1f5f9 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
.tw-sidebar-filters .tw-facet[open] summary::after {
    transform: rotate(-135deg) !important;
    border-color: #0f172a !important;
}
.tw-sidebar-filters .tw-facet-options {
    max-height: 180px !important;
    overflow-y: auto !important;
    padding: 8px 12px !important;
    background: #ffffff !important;
}
.tw-sidebar-filters .tw-facet-options--price {
    overflow: visible !important;
    max-height: none !important;
    padding: 12px !important;
}
.tw-sidebar-filters .tw-facet-options--price .tw-price-range {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.tw-sidebar-filters .tw-facet-options--price .tw-price-range label {
    flex: 1 1 0 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    margin: 0 !important;
}
.tw-sidebar-filters .tw-facet-options--price .tw-price-range span {
    margin-top: 18px !important;
    color: #94a3b8 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}
.tw-sidebar-filters .tw-facet-options--price .tw-price-range input {
    width: 100% !important;
    height: 36px !important;
    padding: 6px 10px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    color: #0f172a !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}
.tw-sidebar-filters .tw-facet-options--price .tw-price-range input:focus {
    border-color: #0f172a !important;
    outline: none !important;
    box-shadow: 0 0 0 1px #0f172a !important;
}
.tw-sidebar-filters .tw-bed-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
}
.tw-sidebar-filters .tw-filter-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-top: 16px !important;
}
.tw-sidebar-filters .tw-apply-btn {
    width: 100% !important;
    height: 40px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    text-align: center !important;
}
.tw-sidebar-filters .tw-clear-filters {
    width: 100% !important;
    text-align: center !important;
    padding: 8px 0 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .autozpro-sorting {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
    }
    .autozpro-sorting .filter-toggle {
        order: 1 !important;
        width: 100% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 40px !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 6px !important;
        background: #ffffff !important;
        font-weight: 700 !important;
        font-size: 13px !important;
        color: #0f172a !important;
    }
    .autozpro-sorting .gridlist-toggle {
        order: 2 !important;
        margin: 0 !important;
    }
    .autozpro-sorting .woocommerce-result-count {
        order: 3 !important;
        margin: 0 !important;
        text-align: right !important;
        font-size: 13px !important;
    }
    .autozpro-sorting .woocommerce-ordering {
        order: 4 !important;
        margin: 0 !important;
        flex: 1 1 auto !important;
    }
    .autozpro-sorting .woocommerce-ordering .tw-sort-label {
        width: 100% !important;
    }
    .autozpro-sorting .woocommerce-ordering select.orderby {
        flex: 1 1 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
    .autozpro-sorting .autozpro-products-per-page {
        order: 5 !important;
        margin-left: 0 !important;
        padding-left: 12px !important;
        border-left: 1px solid #e2e8f0 !important;
        flex: 0 0 auto !important;
    }
}

/* Modal Preview Dialog */
.tw-bed-dialog {
    --tw-ink: #171b1e;
    --tw-border: #e2e8f0;
    --tw-surface: #ffffff;
    --tw-surface-subtle: #f8fafc;
    --tw-accent: #d32f2f;
    width: min(480px, calc(100% - 32px));
    max-height: 90vh;
    padding: 0 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: #171b1e !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35) !important;
    overflow: hidden;
    font-family: var(--e-global-typography-text-font-family, "Manrope", sans-serif);
    animation: twModalFadeIn .2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes twModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(6px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
.tw-bed-dialog::backdrop {
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Modal Header */
.tw-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}
.tw-modal-title-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.tw-modal-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #64748b;
}
.tw-bed-dialog h2,
#tw-bed-preview-title {
    font-size: 18px;
    font-weight: 800;
    color: #171b1e;
    margin: 0;
    line-height: 1.3;
}
.tw-modal-close,
.tw-bed-dialog .tw-modal-close {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 50% !important;
    color: #475569 !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
    font-size: 0 !important;
    transition: all .15s ease !important;
}
.tw-modal-close svg,
.tw-bed-dialog .tw-modal-close svg {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    display: block !important;
    margin: auto !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    fill: none !important;
    pointer-events: none !important;
}
.tw-modal-close svg path,
.tw-bed-dialog .tw-modal-close svg path {
    stroke: currentColor !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    fill: none !important;
}
.tw-modal-close:hover,
.tw-bed-dialog .tw-modal-close:hover {
    background: #171b1e !important;
    border-color: #171b1e !important;
    color: #ffffff !important;
}

/* Modal Body */
.tw-modal-body {
    padding: 16px 20px;
    overflow-y: auto;
    max-height: calc(90vh - 140px);
}
.tw-modal-showcase {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 18px 16px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
}
.tw-modal-showcase svg {
    width: 100%;
    max-width: 280px;
    height: auto;
    max-height: 110px;
    margin: 0;
    display: block;
}
.tw-modal-badge {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #334155;
    padding: 3px 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.tw-modal-guide {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 12px;
}
.tw-modal-guide-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    flex-shrink: 0;
    margin-top: 1px;
}
.tw-modal-guide-text {
    font-size: 12.5px;
    line-height: 1.45;
    color: #1e3a8a;
}
.tw-modal-guide-text strong {
    font-weight: 700;
    color: #1e40af;
}
.tw-modal-note {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
}

/* Modal Footer */
.tw-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px 18px;
    border-top: 1px solid #f1f5f9;
    background: #fafafa;
}
.tw-modal-btn-select,
.tw-bed-dialog .tw-modal-btn-select {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #171b1e !important;
    color: #ffffff !important;
    border: 1px solid #171b1e !important;
    border-radius: 6px !important;
    padding: 9px 20px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    letter-spacing: .03em !important;
    box-shadow: none !important;
    margin: 0 !important;
    transition: all .2s ease;
}
.tw-modal-btn-select:hover,
.tw-bed-dialog .tw-modal-btn-select:hover {
    background: #d32f2f !important;
    border-color: #d32f2f !important;
    color: #ffffff !important;
}
.tw-modal-btn-cancel,
.tw-bed-dialog .tw-modal-btn-cancel {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 9px 18px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    margin: 0 !important;
    transition: all .15s ease;
}
.tw-modal-btn-cancel:hover,
.tw-bed-dialog .tw-modal-btn-cancel:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

/* WooCommerce Native Hide Rules */
.tw-catalog-enabled .widget_price_filter,
.tw-catalog-enabled .widget_layered_nav,
.tw-catalog-enabled .widget_layered_nav_filters,
.tw-catalog-enabled .widget_rating_filter,
.tw-catalog-enabled .woocommerce-widget-layered-nav { display: none !important; }

/* Responsive Adjustments */
@media (max-width: 991px) {
    .tw-facet-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}
@media (max-width: 767px) {
    .tw-catalog-filters {
        padding: 14px;
        margin: 14px 0;
    }
    .tw-filter-top {
        gap: 10px;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
    .tw-catalog-filters h3 {
        font-size: 16px;
    }
    .tw-filter-caption,
    .tw-filter-summary-hint {
        display: none;
    }
    .tw-bed-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .tw-bed-card {
        min-width: 0;
        max-width: none;
        padding: 8px 10px;
        gap: 8px;
    }
    .tw-bed-visual {
        width: 44px;
        height: 26px;
    }
    .tw-bed-meta strong {
        font-size: 12px;
    }
    .tw-facet-grid {
        grid-template-columns: 1fr;
    }
    .tw-filter-basics {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .tw-filter-actions {
        position: sticky;
        bottom: 56px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        padding: 10px 0;
        border-top: 1px solid var(--tw-border);
        box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.05);
        z-index: 10;
        gap: 8px;
    }
    .tw-filter-actions button.tw-apply-btn,
    .tw-filter-actions button[type="submit"] {
        flex: 1;
        padding: 10px 14px !important;
        text-align: center;
        justify-content: center;
    }
    .tw-catalog-filters .tw-clear-filters {
        padding: 9px 12px !important;
    }
    .tw-native-sort,
    .tw-sort-label {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        margin-top: 12px;
        white-space: nowrap !important;
        flex-wrap: nowrap !important;
    }
    .tw-native-sort select,
    .tw-sort-label select {
        max-width: 65% !important;
        flex-shrink: 0 !important;
    }
    .tw-bed-actions {
        width: 100%;
    }
    .tw-catalog-filters .tw-bed-continue {
        width: 100% !important;
        justify-content: center;
        padding: 10px 16px !important;
    }
    .tw-modal-footer {
        flex-direction: column;
        gap: 8px;
        padding: 12px 16px 16px;
    }
    .tw-modal-btn-select,
    .tw-modal-btn-cancel {
        width: 100%;
        text-align: center;
        padding: 10px 14px;
    }
}
@media (max-width: 440px) {
    .tw-bed-grid {
        grid-template-columns: 1fr;
    }
    .tw-bed-card {
        padding: 10px 12px;
    }
}
