/* WooCommerce AJAX Filter - Modern Public Styles */

/* Full Width Outer Container - Break out of theme container */
.waf-container-fullwidth {
    width: 100vw !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    max-width: 100vw !important;
    padding: 30px 40px;
    box-sizing: border-box;
    background-color: #f5f5f5;
}

/* Force Full Width */
body .waf-container,
.waf-container {
    max-width: 1400px !important;
    width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    background-color: transparent;
}

/* Force Override WooCommerce Default Columns - Enhanced Specificity */
body .waf-container ul.products,
body .waf-products-wrapper ul.products,
body .waf-products-list ul.products,
.waf-container ul.products,
.waf-container ul.products.columns-1,
.waf-container ul.products.columns-2,
.waf-container ul.products.columns-3,
.waf-container ul.products.columns-4,
.waf-container ul.products.columns-5,
.waf-container ul.products.columns-6,
.waf-products-wrapper ul.products,
.waf-products-list ul.products,
body.woocommerce .waf-container ul.products,
body.woocommerce-page .waf-container ul.products,
.waf-container-fullwidth ul.products,
body.woocommerce .waf-container-fullwidth ul.products,
body.woocommerce-page .waf-container-fullwidth ul.products,
body .woocommerce .waf-container ul.products,
body .woocommerce-page .waf-container ul.products {
    display: grid !important;
    grid-template-columns: repeat(var(--waf-columns, 4), 1fr) !important;
    gap: 25px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
    float: none !important;
    flex-direction: initial !important;
    flex-wrap: initial !important;
    -webkit-box-sizing: border-box !important;
    -moz-box-sizing: border-box !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
}

/* Force Product Item Styles - Enhanced Specificity */
body .waf-container ul.products li.product,
body .waf-products-wrapper ul.products li.product,
body .waf-products-list ul.products li.product,
.waf-container ul.products li.product,
.waf-products-wrapper ul.products li.product,
.waf-products-list ul.products li.product,
body.woocommerce .waf-container ul.products li.product,
body.woocommerce-page .waf-container ul.products li.product,
.waf-container-fullwidth ul.products li.product,
body.woocommerce .waf-container-fullwidth ul.products li.product,
body.woocommerce-page .waf-container-fullwidth ul.products li.product,
body .woocommerce ul.products li.product.waf-product,
ul.products.waf-products li.product {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    clear: none !important;
    position: relative !important;
    overflow: visible !important;
    min-height: auto !important;
    box-sizing: border-box !important;
}

/* Container */
.waf-container {
    display: flex;
    gap: 30px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    max-width: 100%;
    width: 100%;
}

.waf-container.waf-filter-position-left {
    flex-direction: row;
}

.waf-container.waf-filter-position-right {
    flex-direction: row-reverse;
}

.waf-container.waf-filter-position-top {
    flex-direction: column;
}

/* Filters Wrapper */
.waf-filters-wrapper {
    flex: 0 0 260px;
    position: sticky;
    top: 30px;
    align-self: flex-start;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #00b4d8 #f0f0f0;
    width: 260px;
    max-width: 260px;
    box-sizing: border-box;
}

/* Custom Scrollbar for Sidebar */
.waf-filters-wrapper::-webkit-scrollbar {
    width: 6px;
}

.waf-filters-wrapper::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 0;
}

.waf-filters-wrapper::-webkit-scrollbar-thumb {
    background: #00b4d8;
    border-radius: 0;
}

.waf-filters-wrapper::-webkit-scrollbar-thumb:hover {
    background: #0096b8;
}

.waf-container.waf-filter-position-top .waf-filters-wrapper {
    flex: 1;
    position: relative;
    max-height: none;
    overflow-y: visible;
}

.waf-products-wrapper {
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

/* Override WooCommerce Column Classes */
.waf-container .columns-1,
.waf-container .columns-2,
.waf-container .columns-3,
.waf-container .columns-4,
.waf-container .columns-5,
.waf-container .columns-6 {
    display: grid !important;
}

/* Filter Groups */
.waf-filter-group {
    margin-bottom: 12px;
    padding: 15px;
    background: var(--waf-background-color, #ffffff);
    border: 1px solid #e0e0e0;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.waf-filter-group:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transform: none;
}

.waf-filter-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #000000;
    text-transform: none;
    letter-spacing: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

/* Collapsible category group */
.waf-category-group .waf-filter-title {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.waf-category-group .waf-filter-title::after {
    content: '\25BE';
    font-size: 14px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.waf-category-group .waf-filter-title.waf-collapsed::after {
    transform: rotate(-90deg);
}

/* Selected category summary shown when collapsed */
.waf-selected-summary {
    font-size: 13px;
    font-weight: 600;
    color: var(--waf-summary-color, #00b4d8);
    padding: 6px 0 4px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0;
    line-height: 1.4;
    cursor: pointer;
}

.waf-category-group .waf-filter-options {
    margin-top: 10px;
    border-top: 1px solid #e0e0e0;
    padding-top: 8px;
}

.waf-filter-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
}

/* Columns layout for filter options */
.waf-filter-options.waf-cols-2,
.waf-filter-options.waf-cols-3,
.waf-filter-options.waf-cols-4,
.waf-filter-options.waf-cols-5,
.waf-filter-options.waf-cols-6 {
    display: grid;
    gap: 6px 10px;
}

.waf-filter-options.waf-cols-2 { grid-template-columns: repeat(2, 1fr); }
.waf-filter-options.waf-cols-3 { grid-template-columns: repeat(3, 1fr); }
.waf-filter-options.waf-cols-4 { grid-template-columns: repeat(4, 1fr); }
.waf-filter-options.waf-cols-5 { grid-template-columns: repeat(5, 1fr); }
.waf-filter-options.waf-cols-6 { grid-template-columns: repeat(6, 1fr); }

/* Select (dropdown) display type */
.waf-select-filter {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    color: #333;
    cursor: pointer;
    box-sizing: border-box;
    min-height: 36px;
}

.waf-select-filter[multiple] {
    min-height: 100px;
    padding: 4px;
}

.waf-select-filter:focus {
    border-color: var(--waf-primary-color, #00b4d8);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 180, 216, 0.15);
}

/* Checkboxes and Radios - Modern Custom Design */
.waf-checkbox,
.waf-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.waf-checkbox:hover,
.waf-radio:hover {
    background-color: rgba(0, 180, 216, 0.03);
}

.waf-checkbox input[type="checkbox"],
.waf-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.waf-checkbox label,
.waf-radio label {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    font-size: 15px;
    color: #555;
    font-weight: 500;
    position: relative;
    padding-left: 28px;
}

/* Custom Checkbox */
.waf-checkbox label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 1px solid #c0c0c0;
    border-radius: 2px;
    background-color: #fff;
    transition: all 0.2s ease;
}

.waf-checkbox input[type="checkbox"]:checked + label::before {
    background: #00b4d8;
    border-color: #00b4d8;
}

.waf-checkbox input[type="checkbox"]:checked + label::after {
    content: '✓';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

/* Custom Radio */
.waf-radio label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 1px solid #c0c0c0;
    border-radius: 50%;
    background-color: #fff;
    transition: all 0.2s ease;
}

.waf-radio input[type="radio"]:checked + label::before {
    border-color: #00b4d8;
}

.waf-radio input[type="radio"]:checked + label::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00b4d8;
}

.waf-count {
    margin-left: auto;
    color: #999;
    font-size: 11px;
    padding: 2px 6px;
    background-color: #f5f5f5;
    border-radius: 10px;
    font-weight: 600;
}

/* Search Input */
.waf-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    font-size: 11px;
    transition: all 0.2s ease;
    background-color: #fff;
    box-sizing: border-box;
    max-width: 100%;
}

.waf-search-input:focus {
    outline: none;
    border-color: #00b4d8;
    background-color: #fff;
    box-shadow: none;
}

.waf-search-input::placeholder {
    color: #aaa;
}

/* Price Filter */
.waf-price-slider-wrapper {
    padding: 15px 0;
    min-height: 80px;
    width: 100%;
    box-sizing: border-box;
}

#waf-price-slider {
    margin: 25px 0;
    height: 8px !important;
    background: #e8e8e8 !important;
    border-radius: 3px;
    border: none !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#waf-price-slider .ui-slider-range {
    background: #00b4d8 !important;
    border-radius: 3px;
    height: 100% !important;
}

#waf-price-slider .ui-slider-handle {
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    background: #fff !important;
    border: 3px solid #00b4d8 !important;
    cursor: pointer !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    transition: all 0.2s ease;
    margin-left: -9px !important;
}

#waf-price-slider .ui-slider-handle:hover,
#waf-price-slider .ui-slider-handle:focus {
    transform: translateY(-50%) scale(1.15) !important;
    box-shadow: 0 2px 8px rgba(0, 180, 216, 0.3) !important;
    outline: none !important;
}

.waf-price-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
}

.waf-price-input {
    flex: 1;
    min-width: 0;
    padding: 6px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
    background-color: #fff;
    box-sizing: border-box;
    max-width: 100%;
}

.waf-price-input:focus {
    outline: none;
    border-color: #00b4d8;
    background-color: #fff;
    box-shadow: none;
}

.waf-price-separator {
    color: #999;
    font-weight: 600;
    flex-shrink: 0;
}

/* Tags */
.waf-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.waf-tag {
    padding: 6px 12px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    font-weight: 500;
    color: #555;
    position: relative;
    overflow: hidden;
}

.waf-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #00b4d8;
    transition: left 0.2s ease;
    z-index: -1;
}

.waf-tag:hover::before,
.waf-tag.active::before {
    left: 0;
}

.waf-tag:hover,
.waf-tag.active {
    color: #fff;
    border-color: #00b4d8;
    transform: none;
    box-shadow: none;
}

/* Rating Stars */
.waf-stars {
    display: inline-flex;
    gap: 3px;
    margin-right: 8px;
}

.waf-star {
    color: #ddd;
    font-size: 16px;
    transition: all 0.2s ease;
}

.waf-star.filled {
    color: #f39c12;
    text-shadow: 0 1px 2px rgba(243, 156, 18, 0.3);
}

/* Clear Filters Button */
.waf-filter-actions {
    margin-top: 20px;
}

.waf-clear-filters {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.waf-clear-filters::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.waf-clear-filters:hover::before {
    width: 300px;
    height: 300px;
}

.waf-clear-filters:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.waf-clear-filters:active {
    transform: translateY(0);
}

/* Products Container */
.waf-products-container {
    position: relative;
}

/* Toolbar */
.waf-toolbar {
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #e0e0e0;
}

.waf-results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.waf-product-count {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.waf-sorting {
    display: flex;
    align-items: center;
    gap: 12px;
}

.waf-sorting label {
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.waf-orderby {
    padding: 8px 30px 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    background-color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 200px;
    color: #333;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}

.waf-orderby:hover {
    border-color: #00b4d8;
}

.waf-orderby:focus {
    outline: none;
    border-color: #00b4d8;
    box-shadow: none;
}

/* Products List */
.waf-products-list {
    position: relative;
}

/* WooCommerce Product Grid - Dynamic Columns */
.waf-products-list ul.products,
.waf-products-wrapper ul.products,
.waf-container ul.products,
.waf-container-fullwidth ul.products {
    display: grid !important;
    grid-template-columns: repeat(var(--waf-columns, 4), 1fr) !important;
    gap: 25px;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100% !important;
    box-sizing: border-box !important;
    align-items: stretch !important;
    justify-items: stretch !important;
}

.waf-products-list ul.products li.product,
.waf-products-wrapper ul.products li.product,
.waf-container ul.products li.product,
.waf-container-fullwidth ul.products li.product {
    display: flex !important;
    flex-direction: column;
    background: #fff;
    border-radius: 0;
    overflow: visible !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
    position: relative;
    border: 1px solid #e0e0e0;
    z-index: auto;
    align-items: stretch !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
    padding: 0 !important;
}

/* WooCommerce Sale Badge */
.waf-products-list ul.products li.product .onsale,
.waf-products-wrapper ul.products li.product .onsale,
.waf-container ul.products li.product .onsale,
.waf-container-fullwidth ul.products li.product .onsale {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    margin: 0 !important;
    background: #4a2c2a !important;
    color: #fff !important;
    padding: 5px 10px !important;
    border-radius: 0 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    z-index: 2 !important;
    box-shadow: none !important;
    letter-spacing: 0.5px !important;
}

/* Compare Icon on Products */
.waf-compare-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e0e0e0;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10 !important;
    transition: all 0.3s ease;
    opacity: 0;
}

.waf-products-list ul.products li.product:hover .waf-compare-icon,
.waf-products-wrapper ul.products li.product:hover .waf-compare-icon,
.waf-container ul.products li.product:hover .waf-compare-icon,
.waf-container-fullwidth ul.products li.product:hover .waf-compare-icon {
    opacity: 1;
}

.waf-compare-icon:hover {
    background: #00b4d8;
    border-color: #00b4d8;
    transform: scale(1.1);
}

.waf-compare-icon svg {
    width: 16px;
    height: 16px;
    fill: #333;
    transition: fill 0.3s ease;
}

.waf-compare-icon:hover svg {
    fill: #fff;
}

.waf-compare-icon.active {
    background: #00b4d8;
    border-color: #00b4d8;
    opacity: 1;
    z-index: 10 !important;
}

.waf-compare-icon.active svg {
    fill: #fff;
}

/* Show compare icon on touch devices */
@media (hover: none) and (pointer: coarse) {
    .waf-compare-icon {
        opacity: 1;
        z-index: 10 !important;
    }
}

/* Compare Button (Fixed) */
.waf-compare-button {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: #000000;
    color: #fff;
    border: none;
    border-radius: 0;
    padding: 15px 12px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.waf-compare-button.has-items {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.waf-compare-button:hover {
    background: #00b4d8;
    box-shadow: -2px 2px 15px rgba(0, 180, 216, 0.4);
    transform: translateY(-50%) translateX(-5px);
}

.waf-compare-button .waf-compare-count {
    display: inline-block;
    background: #fff;
    color: #000000;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 11px;
    margin-top: 8px;
    font-weight: 700;
}

/* Compare Modal */
.waf-compare-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
}

.waf-compare-modal.active {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.waf-compare-modal-content {
    max-width: 1200px;
    width: 100%;
    margin: auto;
    background: #fff;
    border-radius: 0;
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.waf-compare-modal-header {
    background: #000000;
    color: #fff;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.waf-compare-modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
}

.waf-compare-header-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.waf-compare-clear-all {
    background: #ff4444;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 0;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.waf-compare-clear-all:hover {
    background: #cc0000;
}

.waf-compare-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.waf-compare-close:hover {
    color: #00b4d8;
    transform: rotate(90deg);
}

.waf-compare-modal-body {
    padding: 30px;
    overflow-x: auto;
    flex: 1;
}

#waf-compare-table-container {
    width: 100%;
}

.waf-compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.waf-compare-table th,
.waf-compare-table td {
    padding: 15px;
    text-align: left;
    border: 1px solid #e0e0e0;
}

.waf-compare-table thead th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.waf-compare-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.waf-compare-table .waf-compare-product-image,
.waf-compare-modal .waf-compare-product-image {
    width: 100px !important;
    height: auto !important;
    object-fit: cover !important;
    max-width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    display: block !important;
    background-color: transparent !important;
    transition: none !important;
    z-index: auto !important;
}

.waf-compare-table .waf-compare-product-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.waf-compare-table .waf-compare-product-price {
    color: #00b4d8;
    font-weight: 700;
    font-size: 16px;
}

.waf-compare-add-to-cart {
    background: #00b4d8;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 0;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    width: 100%;
}

.waf-compare-add-to-cart:hover {
    background: #0096b8;
}

.waf-compare-add-to-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.waf-compare-remove {
    background: #ff4444;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 0;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-top: 10px;
    width: 100%;
}

.waf-compare-remove:hover {
    background: #cc0000;
}

.waf-compare-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.waf-compare-empty svg {
    width: 80px;
    height: 80px;
    fill: #ddd;
    margin-bottom: 20px;
}

.waf-compare-empty p {
    font-size: 16px;
    margin: 0;
}

.waf-products-list ul.products li.product:hover {
    transform: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Image Container with overflow hidden */
.waf-products-list ul.products li.product .woocommerce-loop-product__link,
.waf-products-wrapper ul.products li.product .woocommerce-loop-product__link,
.waf-container ul.products li.product .woocommerce-loop-product__link,
.waf-container-fullwidth ul.products li.product .woocommerce-loop-product__link,
.waf-products-list ul.products li.product > a,
.waf-products-wrapper ul.products li.product > a,
.waf-container ul.products li.product > a,
.waf-container-fullwidth ul.products li.product > a {
    display: block !important;
    width: 100% !important;
    height: 220px !important;
    border-radius: 0;
    overflow: hidden !important;
    position: relative;
    z-index: 1;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    background: #ffffff !important;
}

/* All product images base style */
.waf-products-list ul.products li.product img,
.waf-products-wrapper ul.products li.product img,
.waf-container ul.products li.product img,
.waf-container-fullwidth ul.products li.product img {
    width: 100% !important;
    height: 180px !important;
    object-fit: contain !important;
    display: block !important;
    border-radius: 0;
    margin: 0 !important;
    padding: 12px 12px 8px 12px !important;
    max-width: 100% !important;
    transition: opacity 0.3s ease;
    box-sizing: border-box !important;
    background-color: #ffffff !important;
}

/* First image - always visible underneath, never hidden */
.waf-products-list ul.products li.product img:first-child,
.waf-products-wrapper ul.products li.product img:first-child,
.waf-container ul.products li.product img:first-child,
.waf-container-fullwidth ul.products li.product img:first-child,
.waf-products-list ul.products li.product > a > img:first-child,
.waf-products-wrapper ul.products li.product > a > img:first-child,
.waf-container ul.products li.product > a > img:first-child,
.waf-container-fullwidth ul.products li.product > a > img:first-child {
    position: relative !important;
    z-index: 1 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Second/alternate image - visible by default on top, fades out on hover to reveal first */
.waf-products-list ul.products li.product .woocommerce-loop-product__link img:nth-child(2),
.waf-products-wrapper ul.products li.product .woocommerce-loop-product__link img:nth-child(2),
.waf-container ul.products li.product .woocommerce-loop-product__link img:nth-child(2),
.waf-container-fullwidth ul.products li.product .woocommerce-loop-product__link img:nth-child(2),
.waf-products-list ul.products li.product > a img:nth-child(2),
.waf-products-wrapper ul.products li.product > a img:nth-child(2),
.waf-container ul.products li.product > a img:nth-child(2),
.waf-container-fullwidth ul.products li.product > a img:nth-child(2),
.waf-products-list ul.products li.product .product-image-alternate,
.waf-products-wrapper ul.products li.product .product-image-alternate,
.waf-container ul.products li.product .product-image-alternate,
.waf-container-fullwidth ul.products li.product .product-image-alternate {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 180px !important;
    object-fit: contain !important;
    opacity: 1 !important;
    z-index: 2 !important;
    transition: opacity 0.3s ease !important;
    margin: 0 !important;
    padding: 12px 12px 8px 12px !important;
    box-sizing: border-box !important;
    background-color: #ffffff !important;
}

/* Fade out second image on hover */
.waf-products-list ul.products li.product:hover .woocommerce-loop-product__link img:nth-child(2),
.waf-products-wrapper ul.products li.product:hover .woocommerce-loop-product__link img:nth-child(2),
.waf-container ul.products li.product:hover .woocommerce-loop-product__link img:nth-child(2),
.waf-container-fullwidth ul.products li.product:hover .woocommerce-loop-product__link img:nth-child(2),
.waf-products-list ul.products li.product:hover > a img:nth-child(2),
.waf-products-wrapper ul.products li.product:hover > a img:nth-child(2),
.waf-container ul.products li.product:hover > a img:nth-child(2),
.waf-container-fullwidth ul.products li.product:hover > a img:nth-child(2),
.waf-products-list ul.products li.product:hover .product-image-alternate,
.waf-products-wrapper ul.products li.product:hover .product-image-alternate,
.waf-container ul.products li.product:hover .product-image-alternate,
.waf-container-fullwidth ul.products li.product:hover .product-image-alternate {
    opacity: 0 !important;
}

/* Fix for all WooCommerce images to prevent shifting */
.waf-products-list ul.products li.product img.attachment-woocommerce_thumbnail,
.waf-products-wrapper ul.products li.product img.attachment-woocommerce_thumbnail,
.waf-container ul.products li.product img.attachment-woocommerce_thumbnail,
.waf-container-fullwidth ul.products li.product img.attachment-woocommerce_thumbnail,
.waf-products-list ul.products li.product img.wp-post-image,
.waf-products-wrapper ul.products li.product img.wp-post-image,
.waf-container ul.products li.product img.wp-post-image,
.waf-container-fullwidth ul.products li.product img.wp-post-image {
    width: 100% !important;
    height: 180px !important;
    object-fit: contain !important;
    margin: 0 !important;
    padding: 12px 12px 8px 12px !important;
    display: block !important;
    max-width: 100% !important;
    vertical-align: top !important;
    box-sizing: border-box !important;
    background-color: #ffffff !important;
}

/* First WooCommerce image - always visible underneath */
.waf-products-list ul.products li.product img.attachment-woocommerce_thumbnail:first-child,
.waf-products-wrapper ul.products li.product img.attachment-woocommerce_thumbnail:first-child,
.waf-container ul.products li.product img.attachment-woocommerce_thumbnail:first-child,
.waf-container-fullwidth ul.products li.product img.attachment-woocommerce_thumbnail:first-child,
.waf-products-list ul.products li.product img.wp-post-image:first-child,
.waf-products-wrapper ul.products li.product img.wp-post-image:first-child,
.waf-container ul.products li.product img.wp-post-image:first-child,
.waf-container-fullwidth ul.products li.product img.wp-post-image:first-child {
    position: relative !important;
    z-index: 1 !important;
    opacity: 1 !important;
}

/* Second WooCommerce image - absolute position on top, visible by default */
.waf-products-list ul.products li.product img.attachment-woocommerce_thumbnail:nth-child(2),
.waf-products-wrapper ul.products li.product img.attachment-woocommerce_thumbnail:nth-child(2),
.waf-container ul.products li.product img.attachment-woocommerce_thumbnail:nth-child(2),
.waf-container-fullwidth ul.products li.product img.attachment-woocommerce_thumbnail:nth-child(2),
.waf-products-list ul.products li.product img.wp-post-image:nth-child(2),
.waf-products-wrapper ul.products li.product img.wp-post-image:nth-child(2),
.waf-container ul.products li.product img.wp-post-image:nth-child(2),
.waf-container-fullwidth ul.products li.product img.wp-post-image:nth-child(2) {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    opacity: 1 !important;
    z-index: 2 !important;
    transition: opacity 0.3s ease !important;
}

/* Fade out second image on hover to reveal first image beneath */
.waf-products-list ul.products li.product:hover img.attachment-woocommerce_thumbnail:nth-child(2),
.waf-products-wrapper ul.products li.product:hover img.attachment-woocommerce_thumbnail:nth-child(2),
.waf-container ul.products li.product:hover img.attachment-woocommerce_thumbnail:nth-child(2),
.waf-container-fullwidth ul.products li.product:hover img.attachment-woocommerce_thumbnail:nth-child(2),
.waf-products-list ul.products li.product:hover img.wp-post-image:nth-child(2),
.waf-products-wrapper ul.products li.product:hover img.wp-post-image:nth-child(2),
.waf-container ul.products li.product:hover img.wp-post-image:nth-child(2),
.waf-container-fullwidth ul.products li.product:hover img.wp-post-image:nth-child(2) {
    opacity: 0 !important;
}

.waf-products-list ul.products li.product .woocommerce-loop-product__title,
.waf-products-list ul.products li.product .product-title,
.waf-products-list ul.products li.product div.product-title,
.waf-products-wrapper ul.products li.product .woocommerce-loop-product__title,
.waf-products-wrapper ul.products li.product .product-title,
.waf-products-wrapper ul.products li.product div.product-title,
.waf-container ul.products li.product .woocommerce-loop-product__title,
.waf-container ul.products li.product .product-title,
.waf-container ul.products li.product div.product-title,
.waf-container-fullwidth ul.products li.product .woocommerce-loop-product__title,
.waf-container-fullwidth ul.products li.product .product-title,
.waf-container-fullwidth ul.products li.product div.product-title {
    font-size: 14px !important;
    font-weight: 500;
    margin: 12px 12px 8px;
    line-height: 1.4;
    min-height: 50px;
    color: #333;
    width: auto !important;
    text-align: left !important;
    padding: 0 !important;
    display: block !important;
    order: 1;
}

.waf-products-list ul.products li.product .price,
.waf-products-wrapper ul.products li.product .price,
.waf-container ul.products li.product .price,
.waf-container-fullwidth ul.products li.product .price {
    margin: 0 12px 12px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    width: auto !important;
    text-align: left !important;
    display: block !important;
    order: 2;
}

.waf-products-list ul.products li.product .button,
.waf-products-wrapper ul.products li.product .button,
.waf-container ul.products li.product .button,
.waf-container-fullwidth ul.products li.product .button {
    margin: auto 12px 12px;
    margin-top: auto;
    padding: 8px 16px;
    background: #00b4d8;
    color: #fff;
    border: none;
    border-radius: 0;
    font-weight: 500;
    font-size: 13px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    width: auto !important;
    display: block !important;
    order: 99;
}

.waf-products-list ul.products li.product .button:hover,
.waf-products-wrapper ul.products li.product .button:hover,
.waf-container ul.products li.product .button:hover,
.waf-container-fullwidth ul.products li.product .button:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    background: #0096b8;
}

/* Responsive - Tablet */
@media (max-width: 992px) {
    :root {
        --waf-columns: min(var(--waf-columns, 4), 3);
    }
    .waf-products-list ul.products,
    .waf-products-wrapper ul.products,
    .waf-container ul.products,
    .waf-container-fullwidth ul.products {
        gap: 20px;
    }
}

/* Responsive - Mobile */
@media (max-width: 576px) {
    :root {
        --waf-columns: 1;
    }
    .waf-products-list ul.products,
    .waf-products-wrapper ul.products,
    .waf-container ul.products,
    .waf-container-fullwidth ul.products {
        gap: 15px;
    }
}

.waf-no-products {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 15px;
    font-weight: 500;
    background: #f5f5f5;
    border-radius: 0;
    border: 1px solid #e0e0e0;
}

/* Loading Overlay */
.waf-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    border-radius: 0;
}

.waf-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #00b4d8;
    border-radius: 50%;
    animation: waf-spin 0.8s linear infinite;
    box-shadow: none;
}

@keyframes waf-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pagination - Enhanced */
.waf-pagination,
#waf-pagination,
.waf-products-container .waf-pagination {
    margin-top: 40px !important;
    text-align: center !important;
    clear: both !important;
    width: 100% !important;
    display: block !important;
}

.waf-pagination ul,
#waf-pagination ul,
.waf-pagination .page-numbers {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    display: inline-flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}

.waf-pagination li,
#waf-pagination li {
    display: inline !important;
    margin: 0 !important;
}

.waf-pagination a,
.waf-pagination span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    text-decoration: none;
    color: #555;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 13px;
    background-color: #fff;
    min-width: 40px;
    text-align: center;
}

.waf-pagination a:hover {
    background: #00b4d8;
    color: #fff;
    border-color: #00b4d8;
    transform: none;
    box-shadow: none;
}

.waf-pagination .current {
    background: #00b4d8;
    color: #fff;
    border-color: #00b4d8;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 992px) {
    .waf-container-fullwidth {
        padding: 20px 15px;
        width: 100vw !important;
        left: 50% !important;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
        max-width: 100vw !important;
    }
    
    .waf-container {
        flex-direction: column !important;
        gap: 20px;
    }
    
    .waf-filters-wrapper {
        flex: 1 1 auto !important;
        position: relative !important;
        top: 0 !important;
        max-height: none !important;
        overflow-y: visible !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .waf-products-wrapper {
        width: 100%;
    }
    
    /* Compare button position adjustment */
    .waf-compare-button {
        right: 10px;
        top: auto !important;
        bottom: 70px;
        transform: none !important;
        padding: 12px 8px;
    }
    
    /* Compare modal adjustments */
    .waf-compare-modal {
        padding: 10px;
        align-items: stretch;
    }

    .waf-compare-modal-content {
        width: 100%;
        max-width: 100%;
        min-height: calc(100vh - 20px);
    }
    
    .waf-compare-modal-header {
        padding: 15px 20px;
    }
    
    .waf-compare-modal-header h2 {
        font-size: 16px;
    }
    
    .waf-compare-modal-body {
        padding: 20px 15px;
        flex: 1;
    }

    #waf-compare-table-container {
        width: 100%;
        min-height: 100%;
    }
    
    .waf-compare-table {
        font-size: 12px;
    }
    
    .waf-compare-table th,
    .waf-compare-table td {
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .waf-container-fullwidth {
        padding: 15px 10px;
        width: 100vw !important;
        left: 50% !important;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
        max-width: 100vw !important;
    }
    
    /* Force single column layout */
    .waf-container {
        flex-direction: column !important;
        gap: 15px;
    }
    
    .waf-filters-wrapper {
        flex: 1 1 auto !important;
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 15px;
    }
    
    .waf-products-wrapper {
        width: 100% !important;
    }
    
    body .waf-container ul.products,
    body .waf-products-wrapper ul.products,
    body .waf-products-list ul.products,
    .waf-container ul.products {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    /* Product items mobile - larger for better visibility */
    .waf-products-list ul.products li.product img {
        height: 240px;
    }
    
    .waf-products-list ul.products li.product .woocommerce-loop-product__title,
    .waf-products-list ul.products li.product .product-title,
    .waf-products-list ul.products li.product div.product-title {
        font-size: 14px;
        min-height: 50px;
        margin: 12px 12px 8px;
    }
    
    .waf-products-list ul.products li.product .price {
        font-size: 16px;
        margin: 0 12px 12px;
    }
    
    .waf-products-list ul.products li.product .button {
        margin: auto 12px 12px;
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .waf-results-bar {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .waf-sorting {
        width: 100%;
        flex-direction: row;
        align-items: center;
    }
    
    .waf-orderby {
        width: 100%;
        min-width: auto;
    }
    
    .waf-filter-group {
        padding: 14px;
    }
    
    .waf-filter-title {
        font-size: 17px;
    }
    
    .waf-pagination a,
    .waf-pagination span {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 38px;
    }
    
    /* Compare icon - always visible on touch */
    .waf-compare-icon {
        opacity: 1;
        width: 36px;
        height: 36px;
    }
    
    .waf-compare-icon svg {
        width: 18px;
        height: 18px;
    }
    
    /* Compare button */
    .waf-compare-button {
        right: 10px;
        top: auto !important;
        bottom: 80px;
        transform: none !important;
        padding: 12px 8px;
        font-size: 12px;
    }
    
    .waf-compare-count {
        width: 18px;
        height: 18px;
        font-size: 11px;
        top: 5px;
        right: 3px;
    }
    
    /* Compare modal */
    .waf-compare-modal {
        padding: 0;
        align-items: stretch;
    }

    .waf-compare-modal-content {
        width: 100%;
        max-width: 100%;
        min-height: 100vh;
        margin: 0;
    }
    
    .waf-compare-modal-header {
        padding: 10px 15px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .waf-compare-modal-header h2 {
        font-size: 14px;
        flex: 1;
    }
    
    .waf-compare-header-buttons {
        gap: 8px;
        flex-shrink: 0;
    }
    
    .waf-compare-clear-all {
        padding: 6px 10px;
        font-size: 10px;
        white-space: nowrap;
        max-width: 90px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .waf-compare-close {
        font-size: 24px;
        width: 26px;
        height: 26px;
        line-height: 26px;
    }
    
    .waf-compare-modal-body {
        padding: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex: 1;
    }
    
    .waf-compare-table {
        font-size: 10px;
        min-width: 100%;
        width: 100%;
        table-layout: fixed;
    }
    
    .waf-compare-table th:first-child,
    .waf-compare-table td:first-child {
        width: 80px;
        min-width: 80px;
        font-size: 9px;
        position: sticky;
        left: 0;
        background: #fff;
        z-index: 5;
    }
    
    .waf-compare-table thead th:first-child {
        background: #f5f5f5;
    }
    
    .waf-compare-table th,
    .waf-compare-table td {
        padding: 6px 4px;
        word-break: break-word;
    }
    
    .waf-compare-table thead th {
        font-size: 9px;
    }
    
    .waf-compare-table .waf-compare-product-image {
        width: 50px !important;
        height: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: static !important;
    }
    
    .waf-compare-table .waf-compare-product-price {
        font-size: 12px;
    }
    
    .waf-compare-add-to-cart,
    .waf-compare-remove {
        padding: 6px 8px;
        font-size: 9px;
        min-height: 32px;
        white-space: nowrap;
    }
}

@media (max-width: 576px) {
    .waf-container-fullwidth {
        padding: 12px 10px;
        width: 100vw !important;
        left: 50% !important;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
        max-width: 100vw !important;
    }
    
    /* Ensure single column */
    .waf-container {
        flex-direction: column !important;
        gap: 12px;
    }
    
    .waf-filters-wrapper {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    body .waf-container ul.products,
    body .waf-products-wrapper ul.products,
    body .waf-products-list ul.products,
    .waf-container ul.products {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    /* Product items single column - optimized */
    .waf-products-list ul.products li.product img {
        height: 260px;
    }
    
    .waf-products-list ul.products li.product .woocommerce-loop-product__title,
    .waf-products-list ul.products li.product .product-title,
    .waf-products-list ul.products li.product div.product-title {
        font-size: 14px;
        min-height: 50px;
        margin: 12px 14px 8px;
    }
    
    .waf-products-list ul.products li.product .price {
        font-size: 17px;
        margin: 0 14px 12px;
        font-weight: 700;
    }
    
    .waf-products-list ul.products li.product .button {
        margin: auto 14px 14px;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    /* Compare icon - always visible on mobile */
    .waf-compare-icon {
        opacity: 1;
        width: 40px;
        height: 40px;
    }
    
    .waf-compare-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .waf-filter-group {
        padding: 14px;
        margin-bottom: 10px;
    }
    
    .waf-filter-title {
        font-size: 18px;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }
    
    .waf-filter-options {
        gap: 10px;
    }
    
    .waf-checkbox label,
    .waf-radio label {
        font-size: 13px;
    }
    
    .waf-pagination a,
    .waf-pagination span {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 40px;
    }
    
    .waf-pagination ul {
        gap: 8px;
    }
    
    /* Price slider mobile */
    .waf-price-slider {
        margin: 20px 0;
    }
    
    .waf-price-inputs {
        gap: 8px;
    }
    
    .waf-price-input {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    /* Compare table mobile optimization */
    .waf-compare-modal {
        padding: 10px;
    }
    
    .waf-compare-modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 98vh;
        margin: 0;
    }
    
    .waf-compare-modal-header {
        padding: 8px 10px;
    }
    
    .waf-compare-modal-header h2 {
        font-size: 13px;
    }
    
    .waf-compare-header-buttons {
        gap: 6px;
    }
    
    .waf-compare-clear-all {
        padding: 5px 8px;
        font-size: 9px;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .waf-compare-close {
        font-size: 22px;
        width: 24px;
        height: 24px;
        line-height: 24px;
    }
    
    .waf-compare-modal-body {
        padding: 8px;
        flex: 1;
    }
    
    .waf-compare-table {
        min-width: 100%;
        font-size: 9px;
    }
    
    .waf-compare-table th:first-child,
    .waf-compare-table td:first-child {
        width: 70px;
        min-width: 70px;
        font-size: 8px;
    }
    
    .waf-compare-table thead th {
        font-size: 8px;
        padding: 5px 3px;
    }
    
    .waf-compare-table th,
    .waf-compare-table td {
        padding: 4px 3px;
    }
    
    .waf-compare-table .waf-compare-product-image {
        width: 40px !important;
        height: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: static !important;
    }
    
    .waf-compare-table .waf-compare-product-price {
        font-size: 11px;
    }
    
    /* Touch-friendly buttons */
    .waf-compare-add-to-cart,
    .waf-compare-remove {
        min-height: 34px;
        padding: 6px 6px;
        font-size: 8px;
    }
}

/* Scroll Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.waf-filter-group {
    animation: fadeInUp 0.4s ease backwards;
}

.waf-filter-group:nth-child(1) { animation-delay: 0.05s; }
.waf-filter-group:nth-child(2) { animation-delay: 0.1s; }
.waf-filter-group:nth-child(3) { animation-delay: 0.15s; }
.waf-filter-group:nth-child(4) { animation-delay: 0.2s; }
.waf-filter-group:nth-child(5) { animation-delay: 0.25s; }
.waf-filter-group:nth-child(6) { animation-delay: 0.3s; }
.waf-filter-group:nth-child(7) { animation-delay: 0.35s; }
.waf-filter-group:nth-child(8) { animation-delay: 0.4s; }

/* Smooth Scrollbar */
.waf-filter-options {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--waf-primary-color, #3498db) #f0f0f0;
}

.waf-filter-options::-webkit-scrollbar {
    width: 6px;
}

.waf-filter-options::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.waf-filter-options::-webkit-scrollbar-thumb {
    background: var(--waf-primary-color, #3498db);
    border-radius: 10px;
}

.waf-filter-options::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* Focus Styles for Accessibility */
*:focus-visible {
    outline: 2px solid var(--waf-primary-color, #3498db);
    outline-offset: 2px;
}

/* Dynamic Filter - Disabled Options */
.waf-checkbox.waf-disabled {
    opacity: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    transition: opacity 0.2s ease, height 0.2s ease;
}

.waf-filter-group.waf-disabled {
    opacity: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    transition: opacity 0.2s ease, height 0.2s ease;
}

/* Alternative styling if you prefer to show but gray out instead of hiding */
.waf-checkbox.waf-disabled-gray {
    opacity: 0.4;
}

.waf-checkbox.waf-disabled-gray label {
    color: #999;
    cursor: not-allowed;
}

.waf-checkbox.waf-disabled-gray input:disabled {
    cursor: not-allowed;
}

/* Product Details Container Styling */
.product-details-container .product-title {
    font-size: 14px !important;
}
