/**
 * COMPLETE Advanced Search Styles for QuarkCodeAI B2B Commerce Suite
 * File: qb2b-advanced-search-complete.css
 * Version: 2.0.0
 * All 129 classes + 35 IDs included
 */

/* ============================================================================
   GLOBAL RESET & BASE STYLES
   ========================================================================= */

.qb2b-shortcode-wrapper * {
    box-sizing: border-box;
}

.qb2b-shortcode-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

.qb2b-advanced-search-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================================
   HEADER SECTION
   ========================================================================= */

.search-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 15px;
    color: #fff;
    line-height: 1.2;
}

.page-description {
    font-size: 16px;
    margin: 0;
    opacity: 0.95;
    color: #fff;
    line-height: 1.6;
}

/* ============================================================================
   SEARCH FORM
   ========================================================================= */

#qb2b-advanced-search-form,
.advanced-search-form {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 35px;
    margin-bottom: 30px;
}

.search-form-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ============================================================================
   MAIN SEARCH INPUT
   ========================================================================= */

.main-search-section {
    width: 100%;
}

.search-input-group {
    display: flex;
    gap: 12px;
    align-items: stretch;
    position: relative;
}

#main-search-input,
.search-input {
    flex: 1;
    padding: 16px 50px 16px 20px;
    font-size: 16px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #fff;
}

#main-search-input:focus,
.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.search-button {
    padding: 16px 32px;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-button:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.search-button:active {
    transform: translateY(0);
}

/* ============================================================================
   VOICE & QUICK ACTIONS
   ========================================================================= */

#voice-search,
.voice-search-btn {
    position: absolute;
    right: 120px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #667eea;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

#voice-search:hover,
.voice-search-btn:hover {
    background: #f0f4ff;
    color: #5568d3;
}

.search-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

#saved-searches,
#search-alerts,
.saved-searches-btn {
    padding: 10px 20px;
    background: #f7fafc;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

#saved-searches:hover,
#search-alerts:hover,
.saved-searches-btn:hover {
    background: #edf2f7;
    border-color: #a0aec0;
}

/* ============================================================================
   SEARCH SUGGESTIONS
   ========================================================================= */

#search-suggestions,
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 120px;
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

#search-suggestions.active,
.search-suggestions.active {
    display: block;
}

.suggestions-list {
    list-style: none;
    margin: 0;
    padding: 8px;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.suggestion-item:hover {
    background: #f7fafc;
}

.suggestion-icon {
    color: #718096;
    font-size: 16px;
}

.suggestion-text {
    flex: 1;
    color: #2d3748;
    font-size: 14px;
}

.suggestion-count {
    color: #a0aec0;
    font-size: 12px;
}

/* ============================================================================
   FILTERS SECTION
   ========================================================================= */

#toggle-filters,
.toggle-filters-btn {
    width: 100%;
    padding: 12px 20px;
    background: #f7fafc;
    border: 1px solid #cbd5e0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

#toggle-filters:hover,
.toggle-filters-btn:hover {
    background: #edf2f7;
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 20px;
}

.toggle-icon.active {
    transform: rotate(180deg);
}

#advanced-filters,
.advanced-filters-panel {
    background: #f8fafc;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e1e8ed;
    margin-bottom: 25px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.filter-group,
.form-group {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e1e8ed;
}

.filter-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #2d3748;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-content {
    margin-top: 12px;
}

/* ============================================================================
   CATEGORY TREE
   ========================================================================= */

#category-tree,
.category-tree {
    max-height: 320px;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    background: #fff;
}

#category-tree::-webkit-scrollbar,
.category-tree::-webkit-scrollbar {
    width: 8px;
}

#category-tree::-webkit-scrollbar-track,
.category-tree::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

#category-tree::-webkit-scrollbar-thumb,
.category-tree::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

#category-tree::-webkit-scrollbar-thumb:hover,
.category-tree::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.category-item {
    margin-bottom: 6px;
}

.category-option,
.checkbox-label {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.category-option:hover,
.checkbox-label:hover {
    background: #f7fafc;
}

.category-option input[type="checkbox"],
.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.category-name {
    flex: 1;
    font-size: 14px;
    color: #2d3748;
    font-weight: 500;
}

.product-count {
    font-size: 12px;
    color: #718096;
    background: #edf2f7;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
}

.category-toggle {
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    padding: 4px;
    font-size: 16px;
    transition: transform 0.2s ease;
}

.category-toggle.active {
    transform: rotate(90deg);
}

.subcategories {
    margin-left: 24px;
    padding-left: 12px;
    border-left: 2px solid #e1e8ed;
}

/* ============================================================================
   BRAND FILTER
   ========================================================================= */

#brand-list,
.brand-list {
    max-height: 280px;
    overflow-y: auto;
    padding: 10px;
}

.brand-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.brand-option:hover {
    background: #f7fafc;
}

.brand-option input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.brand-name {
    font-size: 14px;
    color: #2d3748;
}

.no-brands {
    padding: 20px;
    text-align: center;
    color: #a0aec0;
    font-size: 14px;
}

/* ============================================================================
   PRICE RANGE
   ========================================================================= */

#price-range-slider,
.price-range-slider {
    padding: 20px 15px;
}

.price-range-inputs {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 15px;
}

#price_min,
#price_max {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 15px;
}

.price-separator {
    color: #a0aec0;
    font-weight: 600;
}

.price-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.price-preset {
    padding: 6px 12px;
    background: #f7fafc;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.price-preset:hover,
.price-preset.active {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

/* ============================================================================
   STOCK OPTIONS
   ========================================================================= */

.stock-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stock-option {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stock-option:hover {
    background: #f7fafc;
}

.stock-option input[type="radio"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

/* ============================================================================
   ATTRIBUTES
   ========================================================================= */

#attributes-container,
.attributes-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.attribute-group {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 10px;
    padding: 20px;
}

.attribute-title {
    font-weight: 600;
    font-size: 14px;
    color: #2d3748;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.attribute-values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.attribute-option,
.attribute-value {
    padding: 8px 16px;
    background: #f7fafc;
    border: 1px solid #cbd5e0;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.attribute-option:hover,
.attribute-value:hover {
    background: #edf2f7;
    border-color: #a0aec0;
}

.attribute-option.selected,
.attribute-value.selected,
.attribute-option.active,
.attribute-value.active {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

/* ============================================================================
   ADDITIONAL OPTIONS
   ========================================================================= */

.additional-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.additional-option {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: #f7fafc;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.additional-option:hover {
    background: #edf2f7;
}

.additional-option input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

/* ============================================================================
   FILTER ACTIONS
   ========================================================================= */

.filter-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
}

#clear-filters,
.clear-all-filters {
    flex: 1;
    padding: 12px 20px;
    background: #f7fafc;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #e53e3e;
}

#clear-filters:hover,
.clear-all-filters:hover {
    background: #fed7d7;
    border-color: #fc8181;
}

/* ============================================================================
   ACTIVE FILTERS
   ========================================================================= */

#active-filters,
.active-filters {
    padding: 18px 22px;
    background: #edf2f7;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid #667eea;
}

.active-filters-label {
    font-weight: 600;
    font-size: 13px;
    color: #2d3748;
    margin-bottom: 12px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.active-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #cbd5e0;
    border-radius: 20px;
    font-size: 13px;
    color: #2d3748;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.remove-filter {
    background: none;
    border: none;
    color: #e53e3e;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin-left: 4px;
    transition: all 0.2s ease;
}

.remove-filter:hover {
    color: #c53030;
    transform: scale(1.1);
}

/* ============================================================================
   SEARCH RESULTS SECTION
   ========================================================================= */

#search-results-container,
.search-results-container,
.search-results-section {
    margin-top: 30px;
}

.search-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

#results-count,
.results-count,
.results-info {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

.search-term {
    color: #667eea;
    font-weight: 700;
}

.results-controls,
.search-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* ============================================================================
   VIEW MODE & SORTING
   ========================================================================= */

.view-mode-toggle {
    display: flex;
    gap: 6px;
    background: #f7fafc;
    padding: 4px;
    border-radius: 8px;
}

.view-mode-btn,
.view-grid {
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #718096;
    font-size: 18px;
}

.view-mode-btn:hover,
.view-grid:hover {
    color: #2d3748;
}

.view-mode-btn.active,
.view-grid.active {
    background: #fff;
    color: #667eea;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#sort-select,
.sort-options {
    padding: 10px 16px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

#sort-select:focus,
.sort-options:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#per-page-select,
.per-page-options {
    padding: 10px 16px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}

/* ============================================================================
   PRODUCTS GRID
   ========================================================================= */

#products-container,
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.product-card {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-6px);
    border-color: #667eea;
}

.product-card-header {
    position: relative;
    overflow: hidden;
    background: #f8fafc;
    aspect-ratio: 1;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.sale-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e53e3e;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
}

.tiered-pricing-indicator {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(102, 126, 234, 0.95);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    z-index: 10;
}

.product-select {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 10;
}

/* ============================================================================
   PRODUCT INFO
   ========================================================================= */

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.4;
}

.product-title a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-title a:hover {
    color: #667eea;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.product-sku {
    font-size: 13px;
    color: #718096;
}

.product-sku strong {
    color: #2d3748;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #f59e0b;
}

.product-pricing {
    margin-bottom: 12px;
}

.product-pricing .price {
    font-size: 22px;
    font-weight: 700;
    color: #2d3748;
}

.product-pricing del {
    color: #a0aec0;
    font-size: 16px;
    margin-right: 8px;
}

.product-stock {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
}

.product-stock.in-stock {
    background: #d1fae5;
    color: #065f46;
}

.product-stock.out-of-stock {
    background: #fee2e2;
    color: #991b1b;
}

.product-stock.low-stock {
    background: #fef3c7;
    color: #92400e;
}

/* ============================================================================
   PRODUCT ACTIONS
   ========================================================================= */

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.button,
.button-primary,
.button-secondary {
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.button-secondary {
    flex: 1;
    background: #f7fafc;
    color: #2d3748;
    border: 1px solid #cbd5e0;
}

.button-secondary:hover {
    background: #edf2f7;
    border-color: #a0aec0;
}

.button-primary,
.add-to-cart-btn,
.request-quote-btn {
    flex: 1;
    background: #667eea;
    color: #fff;
    border: none;
}

.button-primary:hover,
.add-to-cart-btn:hover,
.request-quote-btn:hover {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.add-to-favorites {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7fafc;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    cursor: pointer;
    color: #e53e3e;
    transition: all 0.2s ease;
}

.add-to-favorites:hover {
    background: #fed7d7;
    border-color: #fc8181;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.quantity-input {
    width: 60px;
    padding: 8px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
}

/* ============================================================================
   QUICK ACTIONS SIDEBAR
   ========================================================================= */

#quick-actions,
.quick-actions-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 12px 0 0 12px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 999;
    max-width: 300px;
    transition: all 0.3s ease;
}

.quick-actions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e8ed;
}

.quick-actions-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.close-sidebar {
    background: none;
    border: none;
    color: #718096;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
}

.quick-actions-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#selected-count,
.selected-items-count {
    font-size: 14px;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 10px;
}

.action-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#bulk-add-to-cart,
#bulk-add-to-favorites,
#bulk-request-quote,
.quick-action-btn {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
}

#bulk-add-to-cart {
    background: #667eea;
    color: #fff;
}

#bulk-add-to-cart:hover {
    background: #5568d3;
}

#bulk-add-to-favorites {
    background: #fef3c7;
    color: #92400e;
}

#bulk-add-to-favorites:hover {
    background: #fde68a;
}

#bulk-request-quote {
    background: #dbeafe;
    color: #1e40af;
}

#bulk-request-quote:hover {
    background: #bfdbfe;
}

/* ============================================================================
   EXPORT BUTTONS
   ========================================================================= */

#export-results-csv,
#export-results-pdf {
    padding: 10px 16px;
    background: #f7fafc;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

#export-results-csv:hover,
#export-results-pdf:hover {
    background: #edf2f7;
    border-color: #a0aec0;
}

/* ============================================================================
   NO RESULTS
   ========================================================================= */

.no-results-container {
    text-align: center;
    padding: 80px 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.no-results-content {
    max-width: 500px;
    margin: 0 auto;
}

.no-results-icon {
    font-size: 80px;
    color: #cbd5e0;
    margin-bottom: 25px;
}

.no-results-container h3 {
    font-size: 24px;
    color: #2d3748;
    margin: 0 0 15px;
}

.no-results-container p {
    font-size: 16px;
    color: #718096;
    margin: 0 0 25px;
    line-height: 1.6;
}

.no-results-suggestions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    margin-bottom: 30px;
}

.no-results-suggestions li {
    color: #718096;
    font-size: 14px;
}

.no-results-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ============================================================================
   PAGINATION
   ========================================================================= */

.search-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    padding: 30px 20px;
}

.search-pagination a,
.search-pagination button {
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    color: #2d3748;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    min-width: 42px;
    text-align: center;
}

.search-pagination a:hover,
.search-pagination button:hover {
    background: #f7fafc;
    border-color: #667eea;
    color: #667eea;
}

.search-pagination a.active,
.search-pagination button.active {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.search-pagination a.disabled,
.search-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================================================
   MODALS
   ========================================================================= */

#qb2b-save-search-modal,
.qb2b-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

#qb2b-save-search-modal.active,
.qb2b-modal.active {
    display: flex;
}

.qb2b-modal-content {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.qb2b-modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #e1e8ed;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qb2b-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #2d3748;
}

.qb2b-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #718096;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.qb2b-modal-close:hover {
    background: #f7fafc;
    color: #2d3748;
}

.qb2b-modal-body {
    padding: 30px;
}

#save-search-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#save-search-form label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #2d3748;
    margin-bottom: 8px;
}

#search-name,
#search-notes {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 14px;
}

#search-notes {
    min-height: 100px;
    resize: vertical;
}

.qb2b-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e1e8ed;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

#save-search-submit {
    padding: 12px 24px;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

#save-search-submit:hover {
    background: #5568d3;
}

/* ============================================================================
   DASHICONS
   ========================================================================= */

.dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 1;
}

.dashicons-search,
.dashicons-filter,
.dashicons-grid-view,
.dashicons-list-view,
.dashicons-cart,
.dashicons-heart,
.dashicons-format-quote,
.dashicons-media-spreadsheet,
.dashicons-editor-table,
.dashicons-pdf,
.dashicons-microphone {
    display: inline-block;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ========================================================================= */

@media (max-width: 1200px) {
    #products-container,
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 1024px) {
    .page-title {
        font-size: 28px;
    }

    .filters-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    #quick-actions,
    .quick-actions-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .qb2b-advanced-search-container {
        padding: 0 15px;
    }

    .page-title {
        font-size: 24px;
    }

    .search-header {
        padding: 30px 20px;
    }

    #qb2b-advanced-search-form,
    .advanced-search-form {
        padding: 25px 20px;
    }

    .search-input-group {
        flex-direction: column;
    }

    #voice-search,
    .voice-search-btn {
        position: static;
        transform: none;
        align-self: flex-start;
    }

    .filters-grid {
        grid-template-columns: 1fr;
    }

    #products-container,
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .search-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .results-controls,
    .search-controls {
        width: 100%;
        justify-content: space-between;
    }

    .filter-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    #products-container,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-actions {
        flex-direction: column;
    }

    .active-filters-list {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-actions {
        flex-direction: column;
    }

    .qb2b-modal-content {
        width: 95%;
    }

    .qb2b-modal-header,
    .qb2b-modal-body,
    .qb2b-modal-footer {
        padding: 20px;
    }
}

/* ============================================================================
   UTILITY CLASSES
   ========================================================================= */

.hidden {
    display: none !important;
}

.active {
    display: block !important;
}

.text-center {
    text-align: center;
}

/* Loading spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}


/* ============================================================================
   PRODUCT CARD FIX - Matching Actual HTML Structure
   ========================================================================= */

/* Products Grid Container */
.search-results-container {
    margin-top: 30px;
}

.products-grid,
#products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Product Card */
.product-card {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-6px);
    border-color: #667eea;
}

/* Product Card Header (Image Container) */
.product-card-header {
    position: relative;
    overflow: hidden;
    background: #f8fafc;
    aspect-ratio: 1;
}

.product-card-header .product-image {
    display: block;
    width: 100%;
    height: 100%;
}

.product-card-header .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card-header .product-image img {
    transform: scale(1.08);
}

/* Product Card Body (Content Area) */
.product-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Product Title */
.product-card-body .product-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
    line-height: 1.4;
}

.product-card-body .product-title a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-card-body .product-title a:hover {
    color: #667eea;
}

/* Product SKU */
.product-card-body .product-sku {
    font-size: 13px;
    color: #718096;
    margin-bottom: 12px;
}

.product-card-body .product-sku strong {
    color: #2d3748;
    font-weight: 600;
}

/* Product Price */
.product-card-body .product-price {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 700;
}

.product-card-body .product-price .woocommerce-Price-amount {
    color: #2d3748;
}

.product-card-body .product-price del {
    opacity: 0.6;
    font-size: 16px;
    margin-right: 8px;
}

.product-card-body .product-price ins {
    text-decoration: none;
    color: #e53e3e;
}

.product-card-body .product-price .woocommerce-Price-currencySymbol {
    font-size: 0.85em;
}

/* Screen reader text (accessibility) */
.screen-reader-text {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Product Stock */
.product-card-body .product-stock {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
}

.product-card-body .product-stock.in-stock {
    background: #d1fae5;
    color: #065f46;
}

.product-card-body .product-stock.out-of-stock {
    background: #fee2e2;
    color: #991b1b;
}

/* If stock is empty, hide it */
.product-card-body .product-stock:empty {
    display: none;
}

/* Product Actions (Buttons) */
.product-card-body .product-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
}

.product-card-body .product-actions .button {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
}

.product-card-body .product-actions .view-details {
    background: #f7fafc;
    color: #2d3748;
    border: 1px solid #cbd5e0;
}

.product-card-body .product-actions .view-details:hover {
    background: #edf2f7;
    border-color: #a0aec0;
}

.product-card-body .product-actions .add-to-cart {
    background: #667eea;
    color: #fff;
}

.product-card-body .product-actions .add-to-cart:hover {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.product-card-body .product-actions .add-to-cart:active {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .products-grid,
    #products-container {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .products-grid,
    #products-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .product-card-body {
        padding: 15px;
    }

    .product-card-body .product-actions {
        flex-direction: column;
    }

    .product-card-body .product-actions .button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .products-grid,
    #products-container {
        grid-template-columns: 1fr;
    }
}

/* Make the search page full-width */
.qb2b-shortcode-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.qb2b-advanced-search-container {
    max-width: 1600px; /* Increase from 1400px to wider */
    width: 100%;
    margin: 0 auto;
    padding: 0 40px; /* Add horizontal padding */
}

/* Make the search header full-width */
.search-header {
    margin-left: -40px;
    margin-right: -40px;
    margin-bottom: 40px;
    padding: 40px;
    border-radius: 0; /* Remove border radius for full-width look */
}

/* Adjust filters and results to use full width */
.filters-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.products-grid,
#products-container {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .qb2b-advanced-search-container {
        max-width: 100%;
        padding: 0 30px;
    }
    
    .search-header {
        margin-left: -30px;
        margin-right: -30px;
    }
}

@media (max-width: 768px) {
    .qb2b-advanced-search-container {
        padding: 0 20px;
    }
    
    .search-header {
        margin-left: -20px;
        margin-right: -20px;
        padding: 30px 20px;
    }
}
/* ============================ 
    QUICK ACTION SIDEBAR
   ============================ */
/* Quick Actions Sidebar - Visibility */
#quick-actions,
.quick-actions-sidebar {
    position: fixed;
    right: -350px; /* Hidden by default */
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 12px 0 0 12px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 999;
    width: 320px;
    transition: right 0.3s ease;
}

#quick-actions.visible,
.quick-actions-sidebar.visible {
    right: 0; /* Slide in when visible */
}

.close-sidebar {
    background: none;
    border: none;
    color: #718096;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close-sidebar:hover {
    background: #f7fafc;
    color: #2d3748;
}

.quick-action-btn {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 8px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.quick-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================ 
    CHECKBOX
   ============================ */

   /* Product Checkbox for Bulk Selection */
.product-card-header {
    position: relative;
}

.product-card-header .product-select {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
    z-index: 10;
    cursor: pointer;
    accent-color: #667eea;
}

/* Prevent checkbox from triggering image link */
.product-card-header .product-select:hover {
    transform: scale(1.1);
}

/* Make sure image link doesn't cover checkbox */
.product-card-header .product-image {
    display: block;
    position: relative;
}

/* Quick Actions Panel - Only hide initially if no products selected */
#quick-actions,
.quick-actions-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 12px 0 0 12px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 999;
    width: 320px;
    max-height: 90vh;
    overflow-y: auto;
}

#quick-actions:not(.visible) {
    display: none; /* Hide if no products selected */
}

#quick-actions.visible {
    display: block;
}

/* Selected count display */
#selected-count {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 15px;
    padding: 10px;
    background: #f0f4ff;
    border-radius: 6px;
    text-align: center;
}

/* ============================ 
    PRODUCT SELECTION CHECKBOX
   ============================ */

   /* Product Selection Checkbox */
.product-card-header {
    position: relative;
}

.product-card-header .product-select {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    z-index: 100;
    cursor: pointer;
    accent-color: #667eea;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-card-header .product-select:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Prevent checkbox clicks from triggering product link */
.product-card-header .product-select {
    pointer-events: auto;
}

.product-card-header .product-image {
    pointer-events: auto;
}

/* ============================ 
   FORCE CHECKBOX
   ============================ */

/* FORCE Product Selection Checkbox to Display */
.product-card-header .product-select {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 24px !important;
    height: 24px !important;
    z-index: 999 !important;
    cursor: pointer !important;
    accent-color: #667eea !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid #667eea !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    pointer-events: auto !important;
}

.product-card-header .product-select:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4) !important;
}

.product-card-header .product-select:checked {
    background: #667eea !important;
}

/* Make sure header is positioned */
.product-card-header {
    position: relative !important;
}

