/**
 * Multi-Search CSS
 * 
 * Styles for advanced multi-search functionality
 */

/* Main Container */
.mts-multi-search-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

/* Multi-search is now only available via shortcode, no need to hide WooCommerce products */

/* Header Section */
.mts-multi-search-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 20px;
    margin-bottom: 40px;
    border-radius: 16px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mts-multi-search-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.mts-breadcrumbs {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.mts-page-title {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 30px 0;
    letter-spacing: -0.02em;
}

.mts-search-bar {
    position: relative;
    max-width: 600px;
    margin: 0 auto 20px auto;
    z-index: 1;
}

.mts-search-bar input {
    width: 100%;
    padding: 18px 70px 18px 24px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-sizing: border-box;
    color: #1a1a1a;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.mts-search-bar input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.mts-search-bar input::placeholder {
    color: #666;
    opacity: 0.8;
}

.mts-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.mts-search-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateY(-50%) scale(1.1);
}

.mts-search-btn svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.mts-search-btn:hover svg {
    transform: scale(1.1);
}

.mts-search-results-info {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    z-index: 1;
    position: relative;
}

.mts-search-results-info span {
    font-weight: 600;
    color: white;
}

/* Content Layout */
.mts-multi-search-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Filters Sidebar */
/* Modern Filters Sidebar */
.mts-filters-sidebar {
    width: 320px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 20px;
    overflow: hidden;
}

/* Selected Filters Section */
.mts-selected-filters {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 20px 24px;
}

.mts-selected-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.mts-selected-filters-title {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mts-clear-all-filters-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mts-clear-all-filters-btn:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-1px);
}

/* Clear All Button in Header - Modern Design */
.mts-clear-all-btn {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
}

.mts-clear-all-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.mts-clear-all-btn:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.mts-clear-all-btn:hover::before {
    left: 100%;
}

.mts-clear-all-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.mts-clear-all-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.mts-clear-all-btn::after {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0) invert(1);
}

.mts-selected-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mts-selected-filter-pill {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    border: 2px solid transparent;
    margin: 4px;
}

.mts-selected-filter-pill:hover {
    background: linear-gradient(135deg, #e55a2b 0%, #e67e22 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.mts-selected-filter-pill .mts-remove-filter {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0;
    transition: all 0.3s ease;
    margin-left: 6px;
    line-height: 1;
    position: relative;
    padding: 0;
}

.mts-selected-filter-pill .mts-remove-filter::before {
    content: '';
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.mts-selected-filter-pill .mts-remove-filter:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mts-selected-filter-pill .mts-remove-filter:active {
    transform: scale(0.95);
}

.mts-no-filters-selected {
    color: #6c757d;
    font-size: 14px;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.mts-filter-section {
    background: #fff;
    margin: 0;
    border-bottom: 1px solid #e9ecef;
    padding: 20px 24px;
}

.mts-filter-section:last-child {
    border-bottom: none;
}

.mts-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.mts-filter-header:hover {
    color: #3b82f6;
}

.mts-filter-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0.5px;
}

.mts-filter-toggle {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
}

.mts-filter-section:not(.expanded) .mts-filter-toggle {
    transform: rotate(180deg);
}

.mts-filter-content {
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mts-filter-section:not(.expanded) .mts-filter-content {
    max-height: 0;
}

.mts-filter-options {
    padding-top: 15px;
}

.mts-filter-option {
    display: flex;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 6px;
    margin: 2px 0;
}

.mts-filter-option:hover {
    background-color: #f8fafc;
}

.mts-filter-option input[type="checkbox"] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
}

.mts-filter-option-text {
    font-size: 14px;
    color: #374151;
    flex: 1;
}

.mts-filter-loading,
.mts-filter-error,
.mts-filter-empty {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Products Main Area */
.mts-products-main {
    flex: 1;
    min-width: 0;
}

.mts-products-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mts-controls-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mts-control-label {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

.mts-products-controls select {
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.mts-products-controls select:hover {
    border-color: #94a3b8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mts-products-controls select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Main Content Area */
.mts-main-content {
    flex: 1;
    min-height: 400px;
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

/* Products Grid */
.mts-products-grid {
    display: grid;
    gap: 24px;
    margin-bottom: 40px;
    min-height: 300px;
}

/* Grid Column Layouts - Default to 3x3 */
.mts-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.mts-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, auto);
}

.mts-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.mts-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mts-sale-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    z-index: 10;
    animation: mts-badge-pulse 2s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

@keyframes mts-badge-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(239, 68, 68, 0.6);
    }
}

.mts-product-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.mts-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.mts-product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mts-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mts-product-card:hover .mts-product-image img {
    transform: scale(1.05);
}

.mts-product-placeholder {
    font-size: 48px;
    color: #d1d5db;
}

.mts-product-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mts-product-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em; /* Ensure consistent height for 2 lines */
}

.mts-product-rating {
    margin-bottom: 10px;
}

.mts-product-rating .star {
    color: #d1d5db;
    font-size: 14px;
    margin-right: 2px;
}

.mts-product-rating .star.filled {
    color: #fbbf24;
}

.mts-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #059669;
    margin-bottom: 15px;
    flex: 1;
}

.mts-product-price del {
    color: #9ca3af;
    font-weight: 400;
    margin-right: 8px;
}

.mts-product-price ins {
    text-decoration: none;
    color: #dc2626;
}

.mts-product-actions {
    text-align: center;
    margin-top: auto;
    padding: 0 20px 20px 20px;
}

.mts-add-to-cart-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.mts-add-to-cart-btn:hover {
    background: #374151;
    transform: translateY(-1px);
}

.mts-add-to-cart-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
}

/* Pagination */
.mts-pagination {
    text-align: center;
    margin-top: 40px;
}

.mts-pagination-links {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.mts-pagination-link {
    display: inline-block;
    padding: 8px 12px;
    background: #fff;
    color: #374151;
    text-decoration: none;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.mts-pagination-link:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.mts-pagination-link.active {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

/* Loading and Error States */
.mts-loading,
.mts-error,
.mts-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}

.mts-error {
    color: #dc2626;
}

/* Responsive Design */
@media (max-width: 1024px) {
    /* Ensure search header appears first in responsive design */
    .mts-multi-search-header {
        order: 0;
        margin-bottom: 20px;
    }
    
    .mts-multi-search-content {
        flex-direction: column;
        gap: 20px;
        order: 1;
    }
    
    .mts-filters-sidebar {
        width: 100%;
        position: static;
        order: 1;
    }
    
    .mts-main-content {
        order: 2;
    }
    
    .mts-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .mts-multi-search-wrapper {
        padding: 15px;
    }
    
    /* Ensure search header appears first in mobile design */
    .mts-multi-search-header {
        order: 0;
        margin-bottom: 15px;
        padding: 20px 15px;
    }
    
    .mts-multi-search-content {
        order: 1;
    }
    
    .mts-filters-sidebar {
        order: 1;
    }
    
    .mts-main-content {
        order: 2;
    }
    
    .mts-page-title {
        font-size: 36px;
    }
    
    .mts-search-bar {
        max-width: 100%;
    }
    
    .mts-products-controls {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        padding: 15px;
    }
    
    .mts-controls-group {
        justify-content: space-between;
        width: 100%;
    }
    
    .mts-products-controls select {
        min-width: 120px;
        flex: 1;
    }
    
    .mts-main-content {
        min-height: 300px;
        padding: 15px;
    }
    
    .mts-products-grid {
        min-height: 200px;
    }
    
    .mts-loading-container {
        min-height: 200px;
    }
    
    .mts-loader {
        padding: 20px;
    }
    
    .mts-loader-spinner {
        width: 50px;
        height: 50px;
    }
    
    
    .mts-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
    
    .mts-product-content {
        padding: 15px;
    }
    
    .mts-product-title {
        font-size: 14px;
    }
    
    .mts-product-price {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .mts-multi-search-wrapper {
        padding: 10px;
    }
    
    /* Ensure search header appears first in small mobile design */
    .mts-multi-search-header {
        order: 0;
        margin-bottom: 10px;
        padding: 15px 10px;
    }
    
    .mts-multi-search-content {
        order: 1;
    }
    
    .mts-filters-sidebar {
        order: 1;
    }
    
    .mts-main-content {
        order: 2;
    }
    
    .mts-page-title {
        font-size: 28px;
    }
    
    .mts-search-bar input {
        padding: 12px 50px 12px 16px;
        font-size: 14px;
    }
    
    .mts-main-content {
        min-height: 250px;
        padding: 10px;
    }
    
    .mts-loading-container {
        min-height: 150px;
    }
    
    .mts-loader {
        padding: 15px;
    }
    
    .mts-loader-spinner {
        width: 40px;
        height: 40px;
    }
    
    .mts-loader-text {
        font-size: 14px;
    }
    
    
    .mts-filters-sidebar {
        padding: 15px;
    }
    
    .mts-products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .mts-product-image {
        height: 180px;
    }
    
    .mts-product-content {
        padding: 12px;
    }
    
    .mts-add-to-cart-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Admin Styles for Multi-Checkbox */
.mts-multi-checkbox-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-top: 8px;
}

.mts-checkbox-label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
    padding: 4px 0;
}

.mts-checkbox-label:last-child {
    margin-bottom: 0;
}

.mts-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
}

.mts-checkbox-text {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

/* Animation for smooth transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mts-product-card {
    animation: fadeIn 0.3s ease-out;
}

/* Focus states for accessibility */
.mts-filter-option:focus-within,
.mts-pagination-link:focus,
.mts-add-to-cart-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .mts-product-card {
        border: 2px solid #000;
    }
    
    .mts-filter-section {
        border-bottom: 2px solid #000;
    }
    
    .mts-pagination-link {
        border: 2px solid #000;
    }
}

/* Active Filters */
/* Old active filters CSS removed - now handled by selected filters in sidebar */

/* Enhanced Price Range Slider */
.mts-price-range-container {
    padding: 0;
}

.mts-price-range-slider-wrapper {
    margin: 20px 0;
}

.mts-price-range-slider {
    position: relative;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    margin: 20px 0;
}

.mts-price-range-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: #3b82f6;
    border-radius: 4px;
    pointer-events: none;
}

.mts-range-input {
    position: absolute;
    top: -10px;
    width: 100%;
    height: 24px;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    outline: none;
    /*z-index: 2;
    pointer-events: auto;*/
}

/*.mts-range-input.mts-range-min {
    z-index: 3;
    pointer-events: auto;
}

.mts-range-input.mts-range-max {
    z-index: 4;
    pointer-events: auto;
}*/

.mts-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.mts-range-input.mts-range-min::-webkit-slider-thumb {
    background: #059669;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}

.mts-range-input.mts-range-max::-webkit-slider-thumb {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.mts-range-input::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.mts-range-input::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.mts-range-input.mts-range-min::-moz-range-thumb {
    background: #059669;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}

.mts-range-input.mts-range-max::-moz-range-thumb {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

/* Active slider state */
.mts-range-input.slider-active::-webkit-slider-thumb {
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.8);
}

.mts-range-input.mts-range-min.slider-active::-webkit-slider-thumb {
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.8);
}

.mts-range-input.mts-range-max.slider-active::-webkit-slider-thumb {
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.8);
}

.mts-range-input.slider-active::-moz-range-thumb {
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.8);
}

.mts-range-input.mts-range-min.slider-active::-moz-range-thumb {
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.8);
}

.mts-range-input.mts-range-max.slider-active::-moz-range-thumb {
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.8);
}

.mts-range-input::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.mts-price-range-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 20px 0;
}

.mts-price-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mts-price-input-group label {
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mts-price-input {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    background: #fff;
    transition: all 0.3s ease;
}

.mts-price-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.mts-price-range-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.mts-apply-price-btn {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mts-apply-price-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.mts-reset-price-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mts-reset-price-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .mts-product-card,
    .mts-product-image img,
    .mts-add-to-cart-btn,
    .mts-filter-toggle {
        transition: none;
    }
    
    .mts-product-card:hover {
        transform: none;
    }
}

/* Loading Spinner */
.mts-loading-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    z-index: 10;
}

.mts-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mts-loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #3b82f6;
    border-right: 4px solid #8b5cf6;
    border-radius: 50%;
    animation: mts-spin 1s linear infinite;
    position: relative;
}

.mts-loader-spinner::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid transparent;
    border-top: 2px solid #06b6d4;
    border-radius: 50%;
    animation: mts-spin 1.5s linear infinite reverse;
}

.mts-loader-text {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    text-align: center;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes mts-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

