/* Reset and Base */
.b2b-store-helper-container {
    max-width: 100%;
    margin: 0;
    padding: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Compact Filters */
.b2b-filters-section {
    background: #f8f9fb;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #e1e5e9;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filters-header h3 {
    margin: 0;
    color: #1a1a1a;
}

.quick-stats {
    color: #666;
    font-size: 14px;
}

.b2b-filters-compact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filters-row-1, .filters-row-2 {
    display: flex;
    align-items: end;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group-inline {
    display: flex;
    flex-direction: column;
    min-width: 140px;
}

.filter-group-inline label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-inputs-compact {
    display: flex;
    align-items: center;
    gap: 5px;
}

.price-inputs-compact input {
    width: 70px;
    padding: 8px 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.compact-select, .search-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.search-input {
    min-width: 200px;
}

/* Quick Filters */
.quick-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    flex: 1;
}

.filter-tag {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tag:hover {
    background: #f0f0f0;
}

.filter-tag input[type="checkbox"] {
    margin-right: 6px;
}

.filter-tag input[type="checkbox"]:checked + .filter-tag {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

/* Sort and Actions */
.sort-and-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Styling for the special "My Recent Orders" button */
.filter-tag-special {
    background-color: #e6f7ff;
    border-color: #91d5ff;
}

.filter-tag-special:hover {
    background-color: #bae7ff;
}

.view-density {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.density-btn {
    padding: 6px 12px;
   
    border: none;
    cursor: pointer;
    font-size: 12px;
}

.density-btn.active {
    background: #007cba;
    color: white;
}

.btn-filter-compact, .btn-reset-compact {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}

.btn-filter-compact {
    background: #007cba;
    color: white;
}

.btn-reset-compact {
    background: #6c757d;
    color: white;
}

/* Results Header */
.results-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.results-info {
    font-size: 14px;
    color: #666;
}

.results-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.per-page-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.bulk-actions {
    display: flex;
    gap: 10px;
}

.btn-select-all, .btn-bulk-action {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    font-size: 13px;
}

.btn-bulk-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Compact Product Grid */
.products-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.products-grid-compact.density-compact {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.product-card-compact {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 12px;
    position: relative;
    transition: all 0.2s ease;
    height: fit-content;
}

.product-card-compact:hover {
    border-color: #007cba;
    box-shadow: 0 2px 8px rgba(0,124,186,0.1);
}

.product-select-area {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
}

.product-select-area input[type="checkbox"] {
    transform: scale(1.1);
}

.product-image-compact {
    position: relative;
    text-align: center;
    margin-bottom: 10px;
}

.product-image-compact img {
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

.product-badges {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.badge {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.sale-badge {
    background: #dc3545;
    color: white;
}

.group-badge {
    background: #17a2b8;
    color: white;
}

.low-stock-badge {
    background: #ffc107;
    color: #212529;
}

.out-stock-badge {
    background: #6c757d;
    color: white;
}

/* Product Info */
.product-info-compact {
    text-align: left;
}

.product-title-compact {
    margin-bottom: 5px;
}

.product-title-compact a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    display: block;
}

.product-title-compact a:hover {
    color: #007cba;
}

.product-sku {
    margin-bottom: 5px;
}

.product-sku small {
    color: #666;
    font-size: 11px;
}

.product-price-compact {
    font-weight: bold;
    color: #007cba;
    margin-bottom: 8px;
    font-size: 15px;
}

.stock-info {
    margin-bottom: 8px;
}

.stock-info small {
    color: #28a745;
    font-size: 11px;
}

/* Product Actions */
.product-actions-compact {
    margin-top: 10px;
}

.btn-view-options {
    display: block;
    width: 100%;
    padding: 8px;
    background: #f8f9fa;
    color: #007cba;
    text-decoration: none;
    text-align: center;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #e9ecef;
}

.btn-view-options:hover {
    background: #e9ecef;
    color: #0056b3;
}

.quick-add-section {
    display: flex;
    gap: 5px;
    align-items: center;
}

.qty-wrapper {
    flex: 1;
}

.qty-input-compact {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.btn-quick-add {
    padding: 6px 12px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.btn-quick-add:hover {
    background: #0056b3;
}

.rating-compact {
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stars {
    color: #ffc107;
    font-size: 12px;
}

.rating-compact small {
    color: #666;
    font-size: 11px;
}

/* Selection Summary */
.selection-summary {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
}

.summary-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-view-selected, .btn-clear-selection {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: black !important;
    cursor: pointer;
    border-radius: 4px;
    font-size: 13px;
}

.btn-view-selected {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

/* Enhanced Pagination */
.pagination-container {
    margin-top: 30px;
    text-align: center;
}

.pagination {
    display: inline-flex;
    gap: 5px;
    align-items: center;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
}

.page-btn.active {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.page-btn:hover:not(.active) {
    background: #f8f9fa;
}

/* Loading States */
.loading-indicator {
    color: #007cba;
    font-weight: 500;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .products-grid-compact {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .filters-row-1, .filters-row-2 {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .quick-filters {
        justify-content: center;
    }
    
    .results-header-compact {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .products-grid-compact {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .selection-summary {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
}

@media (max-width: 480px) {
    .products-grid-compact {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .product-card-compact {
        padding: 8px;
    }
}
/* Filter Button State Styles */
.btn-filter-compact.has-filters {
    background: #28a745 !important;
    position: relative;
}

.btn-filter-compact.has-filters:after {
    content: " ✓";
    font-weight: bold;
}

/* Visual feedback for changed inputs */
.filter-changed {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.25) !important;
}

/* No products found styling */
.no-products-found {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-products-found p {
    margin-bottom: 15px;
}

.btn-reset-filters {
    background: #007cba;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-reset-filters:hover {
    background: #0056b3;
}
/* Enhanced Selection Summary */
.selection-summary {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border: 2px solid #007cba;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 280px;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.summary-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.summary-total {
    font-size: 14px;
    color: #007cba;
    font-weight: bold;
}

.summary-actions {
    display: flex;
    gap: 8px;
}

.btn-view-selected, .btn-add-selected-mobile, .btn-clear-selection {
    padding: 6px 10px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
}

.btn-view-selected {
    background: #f8f9fa;
}

.btn-add-selected-mobile {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.btn-clear-selection {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
}

.modal-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.selected-product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 10px;
}

.selected-product-info strong {
    display: block;
    margin-bottom: 5px;
}

.selected-product-details {
    font-size: 14px;
    color: #666;
}

.selected-product-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

.modal-qty-input {
    width: 60px;
    padding: 4px 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.subtotal {
    font-weight: bold;
    color: #007cba;
    min-width: 80px;
    text-align: right;
}

.btn-remove-item {
    padding: 4px 8px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-total {
    font-size: 18px;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.btn-clear-all, .btn-add-all-to-cart {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.btn-clear-all {
    background: #6c757d;
    color: white;
}

.btn-add-all-to-cart {
    background: #28a745;
    color: white;
}

/* Improved bulk action button */
.btn-bulk-action {
    background: #28a745 !important;
    color: white !important;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 5px;
    border: none;
}

.btn-bulk-action:disabled {
    background: #ccc !important;
    cursor: not-allowed;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .selection-summary {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
    
    .summary-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .selected-product-item {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .selected-product-controls {
        justify-content: space-between;
    }
}/* Multiple Selection Styles */
.filter-group-multi {
    position: relative;
    min-width: 200px;
}

.multi-select-wrapper {
    position: relative;
}

.multi-select-trigger {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    text-align: left;
}

.multi-select-trigger:hover {
    border-color: #007cba;
}

.multi-select-trigger.active {
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0,124,186,0.25);
}

.selected-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.arrow {
    transition: transform 0.2s ease;
    color: #666;
}

.multi-select-trigger.active .arrow {
    transform: rotate(180deg);
}

.selected-count {
    background: #007cba;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 5px;
}

/* Dropdown Styles */
.multi-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow: hidden;
}

.multi-select-dropdown.active {
    display: block;
}

.dropdown-header {
    padding: 10px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.filter-search {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
    margin-bottom: 8px;
}

.dropdown-actions {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

/*.select-all-btn, .clear-all-btn {*/
/*    padding: 4px 8px;*/
/*    border: 1px solid #ddd;*/
/*    background: black;*/
/*    cursor: pointer;*/
/*    border-radius: 3px;*/
/*    font-size: 12px;*/
/*    flex: 1;*/
/*}*/
.select-all-btn, .clear-all-btn {
    padding: 4px 8px;
    border: 1px solid #ddd;
    background: #000000 !important;
    cursor: pointer;
    border-radius: 3px;
    font-size: 12px;
    flex: 1;
}

/*.select-all-btn:hover {*/
/*    background: #f8d7da !important;*/
/*    border-color: #dc3545 !important;*/
    
/*}*/
.select-all-btn:hover {
    background: #f8d7da !important;
    border-color: #dc3545 !important;
    color: black !important;
    
}


/*.clear-all-btn:hover {*/
/*    background: #f8d7da;*/
/*    border-color: #dc3545;*/
/*    color: #721c24;*/
/*}*/
.clear-all-btn:hover {
    background: #f8d7da;
    border-color: #ffffff;
    color: #ffffff;
}
.dropdown-options {
    max-height: 200px;
    overflow-y: auto;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f1f1f1;
    margin: 0;
    font-weight: normal;
}

.option-item:hover {
    background: #f8f9fa;
}

.option-item input[type="checkbox"] {
    margin-right: 8px;
    margin-bottom: 0;
}

.option-text {
    flex: 1;
    font-size: 13px;
}

.no-options {
    padding: 15px;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Active Filters */
.active-filters {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.active-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 600;
}

.clear-all-filters {
    padding: 4px 8px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.active-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag-active {
    display: inline-flex;
    align-items: center;
    background: #007cba;
    color: white;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.filter-tag-active .remove-filter {
    margin-left: 6px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    line-height: 1;
}

.filter-tag-active .remove-filter:hover {
    color: #ffcccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .filters-row-1 {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group-multi {
        min-width: auto;
    }
    
    .multi-select-dropdown {
        max-height: 250px;
    }
    
    .dropdown-options {
        max-height: 150px;
    }
}
/*.btn, .button, form #qna-ask-input button, form button, input[type=button], input[type=submit] {*/
    
/*    color: #000000 !important;*/
    
/*}*/
/*.btn:hover, .button:hover, form #qna-ask-input button:hover, form button:hover, input[type=button]:hover, input[type=submit]:hover {*/
    
/*    background-color: #22222200 !important;*/
    
/*}*/
/* Color Changes - Black text, no hover effects for multi-select */

/* 1. Multi-select dropdown options - Black text, no hover */
.option-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f1f1f1;
    margin: 0;
    font-weight: normal;
    color: black !important; /* Force black text */
}

.option-item:hover {
    background: transparent !important; /* Disable hover background */
    color: black !important; /* Keep black text on hover */
}

.option-text {
    flex: 1;
    font-size: 13px;
    color: black !important; /* Force black text */
}

/* 2. Multi-select trigger text - Black text, no hover */
.selected-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: black !important; /* Force black text */
}

.multi-select-trigger {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    text-align: left;
    color: black !important; /* Force black text */
}

.multi-select-trigger:hover {
    border-color: #ddd !important; /* Keep same border color on hover */
    background: white !important; /* Keep white background on hover */
    color: black !important; /* Keep black text on hover */
}

.multi-select-trigger.active {
    border-color: #ddd !important; /* Keep same border color when active */
    box-shadow: none !important; /* Remove blue shadow */
    background: white !important; /* Keep white background */
    color: black !important; /* Keep black text */
}
