/**
 * Healthcare24 Filter Sidebar - Clinical Elegance Design
 * Prefix: hc24f-* (isolated namespace)
 *
 * Design: Clean pharmacy aesthetic with confident teal accents
 */

/* ==========================================================================
   1. CSS VARIABLES & FONT
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Primary Teal */
    --hc24f-primary: #5BB5C5;
    --hc24f-primary-dark: #4AA3B3;
    --hc24f-primary-darker: #3991A1;
    --hc24f-primary-light: #E8F6F8;
    --hc24f-primary-lighter: #F0FAFB;

    /* Accent Orange */
    --hc24f-accent: #F5A623;
    --hc24f-accent-dark: #E09515;

    /* Neutrals */
    --hc24f-white: #FFFFFF;
    --hc24f-gray-50: #FAFBFC;
    --hc24f-gray-100: #F4F5F7;
    --hc24f-gray-200: #E8EAED;
    --hc24f-gray-300: #D4D7DD;
    --hc24f-gray-400: #9CA3AF;
    --hc24f-gray-500: #6B7280;
    --hc24f-gray-600: #4B5563;
    --hc24f-gray-700: #374151;
    --hc24f-gray-800: #1F2937;

    /* Shadows */
    --hc24f-shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --hc24f-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --hc24f-shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --hc24f-shadow-teal: 0 4px 14px rgba(91,181,197,0.35);

    /* Transitions */
    --hc24f-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --hc24f-transition: 200ms var(--hc24f-ease);
    --hc24f-transition-slow: 300ms var(--hc24f-ease);

    /* Border Radius */
    --hc24f-radius-sm: 6px;
    --hc24f-radius: 10px;
    --hc24f-radius-lg: 14px;
    --hc24f-radius-full: 100px;
}

/* ==========================================================================
   2. SIDEBAR CONTAINER
   ========================================================================== */

.hc24f-sidebar,
.catalog-filter.hc24f-sidebar,
aside.hc24f-sidebar {
    width: 100%;
    max-width: 300px;
    min-width: 0;
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1) !important;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.5;
    color: #374151;
}

.hc24f-sidebar *,
.hc24f-sidebar *::before,
.hc24f-sidebar *::after {
    box-sizing: border-box;
}

.hc24f-body {
    padding: 20px;
}

.hc24f-body form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ==========================================================================
   3. HEADER
   ========================================================================== */

/* Override healthcare24.css rule that hides headers:
   .catalog-filter > header:not(.filter-sidebar-header) { display: none; }
*/
.catalog-filter.hc24f-sidebar > header.hc24f-header,
.catalog-filter > header.hc24f-header,
.hc24f-sidebar > header.hc24f-header,
header.hc24f-header {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.hc24f-header {
    background: linear-gradient(90deg, #4AA4B4 0%, #5BB5C5 100%);
    padding: 16px 20px;
    position: relative;
    overflow: hidden;
}

/* Mobile close button - hidden on desktop, shown on mobile */
.hc24f-mobile-close {
    display: none;
}

/* Subtle pattern overlay */
.hc24f-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h20v20H0z' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hc24f-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.hc24f-filter-icon,
.hc24f-sidebar .hc24f-filter-icon,
.catalog-filter .hc24f-filter-icon,
svg.hc24f-filter-icon {
    width: 20px !important;
    height: 20px !important;
    color: #FFFFFF !important;
    stroke: #FFFFFF !important;
    opacity: 0.9;
    flex-shrink: 0;
}

.hc24f-header-title,
.hc24f-sidebar .hc24f-header-title,
.catalog-filter .hc24f-header-title,
.catalog-filter.hc24f-sidebar .hc24f-header-title,
h2.hc24f-header-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #FFFFFF !important;
    letter-spacing: 0.03em !important;
    text-transform: none !important;
    margin: 0 !important;
    flex: 1;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.hc24f-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 8px;
    background: var(--hc24f-accent);
    color: var(--hc24f-white);
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--hc24f-radius-full);
    box-shadow: 0 2px 8px rgba(245,166,35,0.4);
}

/* Active Filter Tags */
.hc24f-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    position: relative;
    z-index: 1;
}

.hc24f-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    color: var(--hc24f-white);
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--hc24f-radius-full);
    border: 1px solid rgba(255,255,255,0.25);
    animation: hc24f-fadeIn 0.2s var(--hc24f-ease);
}

.hc24f-tag-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--hc24f-white);
    transition: var(--hc24f-transition);
}

.hc24f-tag-remove:hover {
    background: transparent;
    color: var(--hc24f-accent);
}

.hc24f-tag-remove svg {
    width: 10px;
    height: 10px;
}

@keyframes hc24f-fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   4. SECTIONS & ACCORDION
   ========================================================================== */

.hc24f-section {
    border-top: none;
    padding-top: 16px;
}

.hc24f-section:first-of-type {
    border-top: none;
    padding-top: 0;
}

.hc24f-section:last-of-type {
    padding-bottom: 4px;
}

.hc24f-section-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background var(--hc24f-transition);
}

.hc24f-section-btn:hover {
    background: transparent;
}

.hc24f-section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--hc24f-gray-800);
    text-transform: none;
    letter-spacing: -0.01em;
}

.hc24f-section-btn:hover .hc24f-section-title {
    color: var(--hc24f-primary-dark);
}

.hc24f-section-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hc24f-clear-alpha {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--hc24f-gray-500);
    background: #FFFFFF;
    border: 1px solid var(--hc24f-gray-200);
    border-radius: 9999px;
    cursor: pointer;
    transition: all var(--hc24f-transition);
}

.hc24f-clear-alpha-icon {
    font-size: 14px;
    line-height: 1;
}

.hc24f-clear-alpha:hover {
    color: var(--hc24f-gray-800);
    border-color: var(--hc24f-gray-300);
    background: var(--hc24f-gray-50);
}

.hc24f-chevron {
    width: 18px;
    height: 18px;
    color: var(--hc24f-gray-400);
    transition: transform var(--hc24f-transition-slow);
    flex-shrink: 0;
}

.hc24f-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--hc24f-transition-slow);
}

.hc24f-section-content.open {
    max-height: 600px;
    padding-top: 0;
}

/* Rotate chevron when open */
.hc24f-section-content.open ~ .hc24f-section-btn .hc24f-chevron,
.hc24f-section-btn:has(+ .hc24f-section-content.open) .hc24f-chevron {
    transform: rotate(180deg);
}

/* Inner content padding */
.hc24f-section-inner {
    padding: 0 0 16px;
}

/* Divider - hidden by design, sections use border */
.hc24f-divider {
    display: none;
}

/* ==========================================================================
   5. CATEGORY TREE
   ========================================================================== */

.hc24f-tree {
    padding: 8px 0 0;
}

.hc24f-category-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hc24f-category-list.level-2,
.hc24f-category-list.level-3 {
    margin-left: 24px;
    padding-left: 12px;
    border-left: 2px solid var(--hc24f-gray-100);
}

.hc24f-category-item {
    width: 100%;
}

/* Parent category button */
.hc24f-category-parent {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px;
    background: transparent;
    border: none;
    border-radius: var(--hc24f-radius-sm);
    cursor: pointer;
    font-family: inherit;
    transition: background var(--hc24f-transition);
    text-align: left;
}

.hc24f-category-parent:hover {
    background: var(--hc24f-gray-50);
}

.hc24f-cat-chevron {
    width: 16px;
    height: 16px;
    color: var(--hc24f-gray-400);
    transition: transform var(--hc24f-transition), color var(--hc24f-transition);
    flex-shrink: 0;
}

.hc24f-category-parent.expanded .hc24f-cat-chevron {
    transform: rotate(90deg);
    color: var(--hc24f-primary);
}

.hc24f-cat-link {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.hc24f-cat-name {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    transition: color var(--hc24f-transition);
    white-space: normal;
    word-break: break-word;
    line-height: 1.3;
}

.hc24f-category-parent:hover .hc24f-cat-name {
    color: var(--hc24f-primary-dark);
}

.hc24f-cat-count {
    margin-left: auto;
    font-size: 12px;
    font-weight: 500;
    color: var(--hc24f-gray-400);
    background: var(--hc24f-gray-100);
    padding: 2px 6px;
    border-radius: var(--hc24f-radius-full);
}

/* Subcategories */
.hc24f-subcategories {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--hc24f-transition-slow);
}

.hc24f-subcategories.open {
    max-height: 500px;
}

/* Leaf category */
.hc24f-category-leaf {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 8px;
    border-radius: var(--hc24f-radius-sm);
    cursor: pointer;
    transition: background var(--hc24f-transition);
}

.hc24f-category-leaf:hover {
    background: var(--hc24f-primary-lighter);
}

.hc24f-category-leaf .hc24f-cat-name {
    font-weight: 500;
    color: #4B5563;
}

.hc24f-category-leaf:hover .hc24f-cat-name {
    color: var(--hc24f-primary-dark);
}

.hc24f-category-leaf.selected {
    background: var(--hc24f-primary-light);
}

.hc24f-category-leaf.selected .hc24f-cat-name {
    color: var(--hc24f-primary-dark);
    font-weight: 500;
}

.hc24f-leaf-count {
    margin-left: auto;
    font-size: 12px;
    color: #9CA3AF;
}

/* ==========================================================================
   6. CUSTOM CHECKBOX
   ========================================================================== */

.hc24f-checkbox {
    position: relative;
    width: 18px;
    height: 18px;
    min-width: 18px;
    background: var(--hc24f-white);
    border: 2px solid var(--hc24f-gray-300);
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--hc24f-transition);
    flex-shrink: 0;
}

.hc24f-checkbox:hover {
    border-color: var(--hc24f-primary);
}

.hc24f-checkbox.checked,
input[type="checkbox"]:checked + .hc24f-checkbox,
input.hc24f-checkbox:checked {
    background: linear-gradient(135deg, var(--hc24f-primary), var(--hc24f-primary-dark));
    border-color: var(--hc24f-primary);
}

.hc24f-checkbox.checked::after,
input[type="checkbox"]:checked + .hc24f-checkbox::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid var(--hc24f-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Style actual checkbox inputs */
input.hc24f-checkbox[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
}

input.hc24f-checkbox[type="checkbox"]:checked {
    background: var(--hc24f-primary);
    border-color: var(--hc24f-primary);
}

input.hc24f-checkbox[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid var(--hc24f-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ==========================================================================
   7. PRICE FILTER
   ========================================================================== */

.hc24f-price-section {
    padding: 16px 0 0;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}


.hc24f-price-display {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.hc24f-price-box {
    flex: 0 0 100px;
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 10px 12px;
    text-align: left;
}

.hc24f-price-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--hc24f-gray-500);
    text-transform: none;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}

.hc24f-price-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--hc24f-gray-800);
}

.hc24f-price-separator {
    width: 16px;
    height: 1px;
    background: var(--hc24f-gray-300);
    border-radius: 1px;
    flex-shrink: 0;
}

/* Slider Container */
.hc24f-slider-container {
    position: relative;
    padding: 8px 0;
    margin-bottom: 16px;
}

/* Range Slider */
.hc24f-price-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--hc24f-primary) 0%, var(--hc24f-accent) 100%);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.hc24f-price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--hc24f-white);
    border: 3px solid var(--hc24f-primary);
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform var(--hc24f-transition), border-color var(--hc24f-transition), box-shadow var(--hc24f-transition);
    margin-top: -7px;
}

.hc24f-price-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    border-color: var(--hc24f-accent);
    box-shadow: 0 3px 8px rgba(91,181,197,0.3);
}

.hc24f-price-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.05);
}

.hc24f-price-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--hc24f-white);
    border: 3px solid var(--hc24f-primary);
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.hc24f-price-slider::-moz-range-track {
    height: 6px;
    background: linear-gradient(90deg, var(--hc24f-primary) 0%, var(--hc24f-accent) 100%);
    border-radius: 3px;
}

/* Quick Price Buttons */
.hc24f-price-quick-btns {
    display: flex;
    gap: 8px;
}

.hc24f-price-quick-btn {
    flex: 1;
    padding: 6px 10px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: var(--hc24f-primary);
    background: transparent;
    border: 1px solid var(--hc24f-primary);
    border-radius: 9999px;
    cursor: pointer;
    transition: all var(--hc24f-transition);
}

.hc24f-price-quick-btn:hover {
    background: var(--hc24f-primary-lighter);
    color: var(--hc24f-primary-dark);
}

.hc24f-price-quick-btn.active,
.hc24f-price-quick-btn:active,
.hc24f-price-quick-btn[aria-pressed="true"] {
    background: linear-gradient(135deg, var(--hc24f-primary), var(--hc24f-primary-dark)) !important;
    border-color: var(--hc24f-primary) !important;
    color: var(--hc24f-white) !important;
}

/* ==========================================================================
   8. BRAND/SUPPLIER FILTER
   ========================================================================== */

.hc24f-brand-section {
    padding: 8px 0 0;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Search Input */
.hc24f-search-wrapper {
    position: relative;
    margin-bottom: 16px;
    width: 90%;
    border-radius: 12px;
    display: block;
    margin-left: -11px;
    margin-right: 6px;
}


.hc24f-search-icon,
.hc24f-search-wrapper svg {
    position: absolute;
    left: 12px;
    margin-left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #9CA3AF;
    pointer-events: none;
    z-index: 1;
    transition: color 0.2s ease;
}

.hc24f-brand-search,
.hc24f-search-wrapper input,
input.hc24f-brand-search,
input.supplier-search {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 12px 14px 12px 40px !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #374151 !important;
    background: #F9FAFB !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
    display: block !important;
    outline: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.04) !important;
}

.hc24f-brand-search::placeholder,
input.supplier-search::placeholder {
    color: #9CA3AF !important;
    font-weight: 400 !important;
}

.hc24f-brand-search:hover,
input.supplier-search:hover {
    border-color: #D1D5DB !important;
    background: #FFFFFF !important;
}

.hc24f-brand-search:focus,
input.supplier-search:focus {
    background: #FFFFFF !important;
    border-color: #5BB5C5 !important;
    box-shadow: 0 0 0 3px rgba(91,181,197,0.12), inset 0 1px 2px rgba(0,0,0,0.02) !important;
}

.hc24f-search-wrapper:focus-within .hc24f-search-icon,
.hc24f-search-wrapper:focus-within svg {
    color: #5BB5C5;
}

/* Alphabet Quick Jump */
.supplier-alphabet,
.hc24f-alphabet {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 14px;
}

.alphabet-btn,
.hc24f-alphabet-btn {
    width: 24px;
    height: 24px;
    min-width: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    color: var(--hc24f-gray-500);
    background: var(--hc24f-gray-100);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--hc24f-transition);
}

.alphabet-btn:hover,
.hc24f-alphabet-btn:hover {
    background: var(--hc24f-primary-light);
    color: var(--hc24f-primary-dark);
}

.alphabet-btn.active,
.hc24f-alphabet-btn.active,
.alphabet-btn[data-active="true"],
.hc24f-alphabet-btn[data-active="true"] {
    background: var(--hc24f-primary) !important;
    color: var(--hc24f-white) !important;
    box-shadow: 0 4px 10px rgba(91,181,197,0.35);
    transform: translateY(-1px);
}

/* Brand List */
.hc24f-brand-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 160px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Custom Scrollbar */
.hc24f-brand-list::-webkit-scrollbar {
    width: 4px;
}

.hc24f-brand-list::-webkit-scrollbar-track {
    background: var(--hc24f-gray-100);
    border-radius: 2px;
}

.hc24f-brand-list::-webkit-scrollbar-thumb {
    background: var(--hc24f-primary);
    border-radius: 2px;
}

.hc24f-brand-list::-webkit-scrollbar-thumb:hover {
    background: var(--hc24f-primary-dark);
}

/* Firefox scrollbar */
.hc24f-brand-list {
    scrollbar-width: thin;
    scrollbar-color: var(--hc24f-primary) var(--hc24f-gray-100);
}

/* Brand Item */
.hc24f-brand-item {
    list-style: none;
}

.hc24f-brand-item.prototype {
    display: none !important;
}

.hc24f-brand-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: var(--hc24f-radius-sm);
    cursor: pointer;
    transition: background var(--hc24f-transition);
}

.hc24f-brand-label:hover {
    background: var(--hc24f-primary-lighter);
}

/* Custom checkbox for brands - Override toggle switch styles */
.supplier-checkbox,
.hc24f-sidebar .supplier-checkbox,
.catalog-filter .supplier-checkbox,
.catalog-filter-supplier .supplier-checkbox,
.hc24f-brand-label .supplier-checkbox {
    position: relative !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    background: var(--hc24f-white) !important;
    border: 2px solid var(--hc24f-gray-300) !important;
    border-radius: 6px !important;
    transition: all var(--hc24f-transition);
    flex-shrink: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.hc24f-brand-label:hover .supplier-checkbox {
    border-color: var(--hc24f-primary);
}

.supplier-checkbox.checked,
.hc24f-sidebar .supplier-checkbox.checked,
.catalog-filter .supplier-checkbox.checked,
input[type="checkbox"]:checked ~ .supplier-checkbox,
input[type="checkbox"]:checked + .supplier-checkbox {
    background: linear-gradient(135deg, var(--hc24f-primary), var(--hc24f-primary-dark)) !important;
    border-color: var(--hc24f-primary) !important;
}

.supplier-checkbox.checked::after,
input[type="checkbox"]:checked ~ .supplier-checkbox::after,
input[type="checkbox"]:checked + .supplier-checkbox::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid var(--hc24f-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.hc24f-brand-name {
    flex: 1;
    font-size: 14px;
    color: var(--hc24f-gray-700);
    transition: color var(--hc24f-transition);
}

.hc24f-brand-label:hover .hc24f-brand-name {
    color: var(--hc24f-primary-dark);
}

.hc24f-brand-count,
.hc24f-brand-count.filter-count,
.supplier-count {
    font-size: 12px;
    font-weight: 500;
    color: var(--hc24f-gray-500);
    min-width: 24px;
    text-align: right;
}

/* Hide empty parentheses from Aimeos */
.hc24f-brand-count:empty,
.supplier-count:empty {
    display: none;
}

/* Hide actual checkbox */
.hc24f-brand-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* ==========================================================================
   9. ATTRIBUTES FILTER
   ========================================================================== */

.hc24f-attr-section {
    padding: 12px 0 0;
}

.hc24f-attr-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hc24f-attr-item {
    list-style: none;
}

.hc24f-attr-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: var(--hc24f-radius-sm);
    cursor: pointer;
    transition: background var(--hc24f-transition);
}

.hc24f-attr-label:hover {
    background: var(--hc24f-primary-lighter);
}

.hc24f-attr-checkbox {
    position: relative;
    width: 18px;
    height: 18px;
    min-width: 18px;
    background: var(--hc24f-white);
    border: 2px solid var(--hc24f-gray-300);
    border-radius: 4px;
    transition: all var(--hc24f-transition);
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    cursor: pointer;
}

.hc24f-attr-checkbox:hover {
    border-color: var(--hc24f-primary);
}

.hc24f-attr-checkbox:checked {
    background: linear-gradient(135deg, var(--hc24f-primary), var(--hc24f-primary-dark));
    border-color: var(--hc24f-primary);
}

.hc24f-attr-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid var(--hc24f-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.hc24f-attr-name {
    flex: 1;
    font-size: 14px;
    color: var(--hc24f-gray-700);
}

.hc24f-attr-count {
    font-size: 12px;
    color: var(--hc24f-gray-400);
}

/* ==========================================================================
   10. FOOTER BUTTONS
   ========================================================================== */

.hc24f-footer {
    display: flex;
    gap: 12px;
    margin: 0 -20px -20px;
    padding: 6px 20px 20px;
    background: linear-gradient(to top, var(--hc24f-gray-50) 0%, var(--hc24f-white) 100%);
    border-top: 1px solid var(--hc24f-gray-100);
}

.hc24f-btn-clear,
.hc24f-btn-apply {
    flex: 1;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--hc24f-transition);
    text-align: center;
    text-decoration: none;
}

.hc24f-btn-clear {
    color: var(--hc24f-gray-600);
    background: var(--hc24f-white);
    border: 2px solid var(--hc24f-gray-300);
}

.hc24f-btn-clear:hover {
    border-color: var(--hc24f-gray-400);
    color: var(--hc24f-gray-800);
    background: var(--hc24f-gray-50);
}

.hc24f-btn-apply {
    color: var(--hc24f-white);
    background: linear-gradient(135deg, var(--hc24f-primary), var(--hc24f-primary-dark));
    border: 2px solid transparent;
    box-shadow: var(--hc24f-shadow-teal);
    text-transform: none !important;
}

.hc24f-btn-apply:hover {
    background: linear-gradient(135deg, var(--hc24f-primary-dark), var(--hc24f-primary-darker));
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91,181,197,0.4);
}

/* ==========================================================================
   11. MOBILE RESPONSIVE
   ========================================================================== */

@media (max-width: 991px) {
    /* CRITICAL: Override healthcare24-category.css wrapper positioning */
    /* The wrapper must be static so the inner .hc24f-sidebar can position itself */
    #filterSidebar.hc24f-wrapper,
    .filter-sidebar-col.hc24f-wrapper {
        position: static !important;
        transform: none !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        z-index: auto !important;
        overflow: visible !important;
        background: transparent !important;
        padding: 0 !important;
    }

    /* Also when wrapper has .active class from JS toggle */
    #filterSidebar.hc24f-wrapper.active {
        position: static !important;
        transform: none !important;
    }

    .hc24f-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 80% !important;
        max-width: 80vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        border-radius: 0 16px 16px 0 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 1000 !important;
        display: flex !important;
        flex-direction: column !important;
        box-shadow: 4px 0 24px rgba(0,0,0,0.15) !important;
        overflow: hidden !important;
        background: #FFFFFF !important;
        background-color: #FFFFFF !important;
    }

    .hc24f-sidebar.open {
        transform: translateX(0) !important;
    }

    /* Mobile Header - Teal gradient like superdesign */
    .hc24f-header {
        background: linear-gradient(135deg, #4AA4B4 0%, #5BB5C5 100%) !important;
        padding: 20px !important;
        flex-shrink: 0;
    }

    .hc24f-header-row {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .hc24f-filter-icon {
        width: 22px !important;
        height: 22px !important;
        color: #FFFFFF !important;
        stroke: #FFFFFF !important;
        opacity: 0.95;
    }

    .hc24f-header-title {
        font-size: 18px !important;
        font-weight: 600 !important;
        color: #FFFFFF !important;
        letter-spacing: 0.02em !important;
        flex: 1;
    }

    /* Active filter count badge - Orange accent */
    .hc24f-count-badge {
        background: #F5A623 !important;
        color: #FFFFFF !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        min-width: 24px;
        height: 24px;
        padding: 0 8px;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(245,166,35,0.4);
    }

    /* Active filter tags in header */
    .hc24f-filter-tags {
        margin-top: 14px !important;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .hc24f-filter-tag {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        background: rgba(255,255,255,0.2) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        color: #FFFFFF !important;
        font-size: 12px;
        font-weight: 500;
        border-radius: 20px;
        border: 1px solid rgba(255,255,255,0.3);
        transition: all 0.2s ease;
    }

    .hc24f-tag-remove {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
        padding: 0;
        background: rgba(255,255,255,0.25);
        border: none;
        border-radius: 50%;
        cursor: pointer;
        color: #FFFFFF;
        transition: all 0.2s ease;
    }

    .hc24f-tag-remove:hover {
        background: #F5A623;
        color: #FFFFFF;
    }

    /* Mobile Body - Scrollable */
    .hc24f-body {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 16px 20px !important;
        overscroll-behavior: contain;
    }

    /* Smooth scrollbar for mobile */
    .hc24f-body::-webkit-scrollbar {
        width: 4px;
    }

    .hc24f-body::-webkit-scrollbar-track {
        background: #F4F5F7;
    }

    .hc24f-body::-webkit-scrollbar-thumb {
        background: #5BB5C5;
        border-radius: 4px;
    }

    /* Mobile Sections - Compact spacing */
    .hc24f-section {
        padding: 12px 0 !important;
        border-bottom: 1px solid #F0F1F3;
    }

    .hc24f-section:last-of-type {
        border-bottom: none;
    }

    .hc24f-section-btn {
        padding: 8px 0 !important;
    }

    .hc24f-section-title {
        font-size: 15px !important;
        font-weight: 600 !important;
        color: #1F2937 !important;
    }

    .hc24f-chevron {
        width: 20px !important;
        height: 20px !important;
        color: #9CA3AF;
        transition: transform 0.3s ease;
    }

    .hc24f-section-content.open ~ .hc24f-section-btn .hc24f-chevron,
    .hc24f-section-btn:has(+ .hc24f-section-content.open) .hc24f-chevron {
        transform: rotate(180deg);
    }

    /* Mobile Category Tree */
    .hc24f-category-list {
        gap: 4px !important;
    }

    .hc24f-category-parent {
        padding: 10px 8px !important;
        border-radius: 8px;
    }

    .hc24f-category-leaf {
        padding: 8px 10px !important;
        border-radius: 8px;
    }

    .hc24f-cat-name {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }

    .hc24f-cat-count,
    .hc24f-leaf-count {
        font-size: 11px !important;
        background: #F4F5F7 !important;
        padding: 2px 8px !important;
        border-radius: 10px !important;
    }

    /* Mobile Price Filter */
    .hc24f-price-display {
        margin-bottom: 14px !important;
    }

    .hc24f-price-box {
        padding: 10px 14px !important;
        background: #F9FAFB !important;
        border: 1px solid #E5E7EB !important;
        border-radius: 10px !important;
    }

    .hc24f-price-label {
        font-size: 10px !important;
        color: #6B7280 !important;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .hc24f-price-value {
        font-size: 15px !important;
        font-weight: 600 !important;
        color: #1F2937 !important;
    }

    /* Mobile Price Slider */
    .hc24f-slider-container {
        padding: 10px 2px !important;
    }

    .hc24f-price-slider {
        height: 6px !important;
        background: linear-gradient(90deg, #5BB5C5 0%, #F5A623 100%) !important;
        border-radius: 3px !important;
    }

    .hc24f-price-slider::-webkit-slider-thumb {
        width: 22px !important;
        height: 22px !important;
        border: 3px solid #5BB5C5 !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    }

    /* Mobile Quick Price Buttons */
    .hc24f-price-quick-btns {
        gap: 8px !important;
        margin-top: 12px !important;
    }

    .hc24f-price-quick-btn {
        padding: 8px 12px !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        border-radius: 20px !important;
    }

    /* Mobile Brand Filter */
    .hc24f-search-wrapper {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 14px !important;
    }

    .hc24f-brand-search,
    input.hc24f-brand-search,
    input.supplier-search {
        padding: 12px 14px 12px 42px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
        background: #F9FAFB !important;
        border: 1px solid #E5E7EB !important;
    }

    .hc24f-search-icon,
    .hc24f-search-wrapper svg {
        left: 14px !important;
        margin-left: 0 !important;
        width: 18px !important;
        height: 18px !important;
    }

    /* Mobile Alphabet */
    .supplier-alphabet,
    .hc24f-alphabet {
        gap: 4px !important;
        margin-bottom: 12px !important;
    }

    .alphabet-btn,
    .hc24f-alphabet-btn {
        width: 26px !important;
        height: 26px !important;
        font-size: 11px !important;
        border-radius: 6px !important;
    }

    /* Mobile Brand List */
    .hc24f-brand-list {
        max-height: 180px !important;
        gap: 4px !important;
    }

    .hc24f-brand-label {
        padding: 8px 10px !important;
        border-radius: 8px !important;
    }

    .supplier-checkbox,
    .hc24f-brand-label .supplier-checkbox {
        width: 20px !important;
        height: 20px !important;
        border-radius: 6px !important;
    }

    .hc24f-brand-name {
        font-size: 14px !important;
    }

    .hc24f-brand-count,
    .supplier-count {
        font-size: 12px !important;
    }

    /* Mobile Footer - Sticky bottom */
    .hc24f-footer {
        flex-shrink: 0;
        display: flex !important;
        gap: 12px !important;
        padding: 16px 20px 20px !important;
        margin: 0 !important;
        background: linear-gradient(to top, #F9FAFB 0%, #FFFFFF 100%) !important;
        border-top: 1px solid #E5E7EB !important;
        /* Safe area for notched devices */
        padding-bottom: calc(20px + env(safe-area-inset-bottom)) !important;
    }

    .hc24f-btn-clear,
    .hc24f-btn-apply {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        padding: 14px 16px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        border-radius: 12px !important;
        height: auto !important;
    }

    .hc24f-btn-clear {
        background: #FFFFFF !important;
        color: #4B5563 !important;
        border: 2px solid #D4D7DD !important;
    }

    .hc24f-btn-clear:active {
        background: #F3F4F6 !important;
        border-color: #9CA3AF !important;
    }

    .hc24f-btn-apply {
        background: linear-gradient(135deg, #5BB5C5 0%, #4AA3B3 100%) !important;
        color: #FFFFFF !important;
        border: none !important;
        box-shadow: 0 4px 14px rgba(91,181,197,0.35) !important;
    }

    .hc24f-btn-apply:active {
        background: linear-gradient(135deg, #4AA3B3 0%, #3991A1 100%) !important;
        transform: translateY(1px) !important;
    }

    /* Mobile backdrop */
    .hc24f-backdrop,
    .filter-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .hc24f-backdrop.visible,
    .filter-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile toggle button */
    .hc24f-mobile-toggle {
        position: fixed;
        bottom: 24px;
        left: 24px;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 14px 20px;
        background: var(--hc24f-primary);
        color: var(--hc24f-white);
        font-family: inherit;
        font-size: 14px;
        font-weight: 600;
        border: none;
        border-radius: var(--hc24f-radius-full);
        box-shadow: var(--hc24f-shadow-teal);
        cursor: pointer;
        z-index: 998;
    }

    .hc24f-mobile-toggle svg {
        width: 18px;
        height: 18px;
    }

    /* Mobile close button - top right of sidebar */
    .hc24f-mobile-close {
        position: absolute !important;
        top: 16px !important;
        right: 16px !important;
        width: 36px !important;
        height: 36px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(255,255,255,0.15) !important;
        border: 1px solid rgba(255,255,255,0.25) !important;
        border-radius: 50% !important;
        cursor: pointer !important;
        color: #FFFFFF !important;
        transition: all 0.2s ease !important;
        z-index: 10 !important;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .hc24f-mobile-close:hover,
    .hc24f-mobile-close:active {
        background: rgba(255,255,255,0.25) !important;
        transform: scale(1.05);
    }

    .hc24f-mobile-close svg {
        width: 18px !important;
        height: 18px !important;
        stroke: #FFFFFF !important;
    }
}

@media (min-width: 992px) {
    .hc24f-mobile-toggle,
    .hc24f-backdrop,
    .hc24f-mobile-close {
        display: none !important;
    }
}

/* ==========================================================================
   12. AIMEOS COMPATIBILITY OVERRIDES
   ========================================================================== */

/* Reset Aimeos default styles within our sidebar */
.hc24f-sidebar .catalog-filter-tree,
.hc24f-sidebar .catalog-filter-supplier,
.hc24f-sidebar .catalog-filter-price,
.hc24f-sidebar .catalog-filter-attribute {
    margin: 0;
    padding: 0;
}

.hc24f-sidebar .filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hc24f-sidebar .attr-list {
    list-style: none;
}

/* Hide Aimeos default elements we're replacing */
.hc24f-sidebar .cat-item > .item-links:not(.hc24f-category-parent):not(.hc24f-category-leaf) {
    display: none;
}

/* Ensure our styles take precedence */
.catalog-filter.hc24f-sidebar {
    border: none !important;
    margin: 0 !important;
}

/* ==========================================================================
   13. HIGH SPECIFICITY OVERRIDES
   Override conflicting styles from healthcare24-filter-design3.css
   ========================================================================== */

/* Price Box - Match design light background */
.hc24f-sidebar .hc24f-price-box,
.catalog-filter .hc24f-price-box,
.hc24f-price-section .hc24f-price-box,
div.hc24f-price-box {
    background: #F9FAFB !important;
    background-color: #F9FAFB !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    text-align: left !important;
}

/* Price Value - Force dark color */
.hc24f-sidebar .hc24f-price-value,
.catalog-filter .hc24f-price-value,
.hc24f-price-box .hc24f-price-value,
div.hc24f-price-value {
    color: #1F2937 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* Price Label - Force gray color */
.hc24f-sidebar .hc24f-price-label,
.catalog-filter .hc24f-price-label,
.hc24f-price-box .hc24f-price-label,
span.hc24f-price-label {
    color: #6B7280 !important;
    font-size: 11px !important;
    text-transform: none !important;
}

/* Slider Thumb - Force round circle */
.hc24f-sidebar .hc24f-price-slider::-webkit-slider-thumb,
.hc24f-price-section .hc24f-price-slider::-webkit-slider-thumb,
input.hc24f-price-slider::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    background: #FFFFFF !important;
    border: 3px solid #5BB5C5 !important;
    border-radius: 50% !important;
    cursor: grab !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    margin-top: -7px !important;
}

.hc24f-sidebar .hc24f-price-slider::-moz-range-thumb,
.hc24f-price-section .hc24f-price-slider::-moz-range-thumb,
input.hc24f-price-slider::-moz-range-thumb {
    width: 20px !important;
    height: 20px !important;
    background: #FFFFFF !important;
    border: 3px solid #5BB5C5 !important;
    border-radius: 50% !important;
    cursor: grab !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

/* Footer Buttons - Force equal widths */
.hc24f-footer .hc24f-btn-clear,
.hc24f-footer .hc24f-btn-apply {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: auto !important;
}

/* Hide empty category counts showing "()" */
.hc24f-cat-count:empty,
.hc24f-leaf-count:empty,
.filter-count:empty,
.hc24f-brand-count:empty,
.hc24f-attr-count:empty {
    display: none !important;
}

/* Hide counts that only contain "()" or "(0)" */
.hc24f-cat-count[data-count="0"],
.hc24f-leaf-count[data-count="0"] {
    display: none !important;
}

/* Alphabet buttons - Force compact rounded styling with gray background */
.hc24f-sidebar .alphabet-btn,
.hc24f-sidebar .hc24f-alphabet-btn,
.catalog-filter .alphabet-btn,
.supplier-alphabet .alphabet-btn,
button.alphabet-btn {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #6B7280 !important;
    background: #F4F5F7 !important;
    background-color: #F4F5F7 !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 2px !important;
}

.hc24f-sidebar .alphabet-btn:hover,
.supplier-alphabet .alphabet-btn:hover,
button.alphabet-btn:hover {
    background: #E8F6F8 !important;
    background-color: #E8F6F8 !important;
    color: #4AA3B3 !important;
}

.hc24f-sidebar .alphabet-btn.active,
.supplier-alphabet .alphabet-btn.active,
button.alphabet-btn.active {
    background: #5BB5C5 !important;
    background-color: #5BB5C5 !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 10px rgba(91,181,197,0.35) !important;
    transform: translateY(-1px) !important;
}

.alphabet-btn.alphabet-clear {
    font-weight: 700 !important;
    color: #6B7280 !important;
    background: #FFFFFF !important;
    border: 1px solid #D1D5DB !important;
    font-size: 14px !important;
    line-height: 1 !important;
}

.alphabet-btn.alphabet-clear:hover {
    color: #111827 !important;
    background: #F9FAFB !important;
    border-color: #9CA3AF !important;
}

/* Footer buttons - Force exact equal widths */
.hc24f-footer {
    display: flex !important;
    gap: 12px !important;
}

/* ==========================================================================
   14. WRAPPER OVERRIDES (hc24f layout within #filterSidebar)
   ========================================================================== */

#filterSidebar.hc24f-wrapper {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

#filterSidebar.hc24f-wrapper .catalog-filter {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
}

#filterSidebar.hc24f-wrapper .hc24f-brand-label,
#filterSidebar.hc24f-wrapper .hc24f-attr-label,
#filterSidebar.hc24f-wrapper .hc24f-category-leaf {
    padding: 6px 8px !important;
    margin: 0 !important;
}

#filterSidebar.hc24f-wrapper .hc24f-brand-search {
    padding: 8px 12px 8px 36px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
}

#filterSidebar.hc24f-wrapper .hc24f-attr-checkbox {
    width: 18px !important;
    height: 18px !important;
    margin-right: 0 !important;
}

.hc24f-footer .hc24f-btn-clear,
.hc24f-footer .hc24f-btn-apply,
.hc24f-footer a.hc24f-btn-clear,
.hc24f-footer button.hc24f-btn-apply {
    flex: 1 1 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    height: 48px !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

/* Clear button specific */
.hc24f-footer .hc24f-btn-clear,
.hc24f-footer a.hc24f-btn-clear {
    color: #4B5563 !important;
    background: #FFFFFF !important;
    border: 2px solid #D4D7DD !important;
}

.hc24f-footer .hc24f-btn-clear:hover,
.hc24f-footer a.hc24f-btn-clear:hover {
    border-color: #9CA3AF !important;
    color: #1F2937 !important;
    background: #F9FAFB !important;
}

/* Apply button specific */
.hc24f-footer .hc24f-btn-apply,
.hc24f-footer button.hc24f-btn-apply {
    color: #FFFFFF !important;
    background: linear-gradient(135deg, #5BB5C5, #4AA3B3) !important;
    border: 2px solid transparent !important;
    box-shadow: 0 4px 14px rgba(91,181,197,0.35) !important;
}

.hc24f-footer .hc24f-btn-apply:hover,
.hc24f-footer button.hc24f-btn-apply:hover {
    background: linear-gradient(135deg, #4AA3B3, #3991A1) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(91,181,197,0.4) !important;
}

/* ==========================================================================
   15. SEARCH INPUT - HIGH SPECIFICITY OVERRIDES
   ========================================================================== */

/* Override all conflicting rules from healthcare24.css and healthcare24-category.css */
#filterSidebar .hc24f-search-wrapper input[type="text"],
#filterSidebar .hc24f-search-wrapper input[type="search"],
#filterSidebar input.hc24f-brand-search,
#filterSidebar input.supplier-search,
.catalog-filter.hc24f-sidebar input.hc24f-brand-search,
.catalog-filter.hc24f-sidebar input.supplier-search,
.catalog-filter input.hc24f-brand-search,
.catalog-filter input.supplier-search,
.hc24f-sidebar .hc24f-brand-search,
.hc24f-sidebar input.search {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 12px 14px 12px 40px !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #374151 !important;
    background: #F9FAFB !important;
    background-color: #F9FAFB !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
    display: block !important;
    outline: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.04) !important;
    height: auto !important;
    min-height: 44px !important;
}

#filterSidebar .hc24f-search-wrapper input::placeholder,
#filterSidebar input.hc24f-brand-search::placeholder,
.catalog-filter input.hc24f-brand-search::placeholder,
.hc24f-sidebar input.search::placeholder {
    color: #9CA3AF !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}

#filterSidebar .hc24f-search-wrapper input:hover,
#filterSidebar input.hc24f-brand-search:hover,
.catalog-filter input.hc24f-brand-search:hover,
.hc24f-sidebar input.search:hover {
    border-color: #D1D5DB !important;
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
}

#filterSidebar .hc24f-search-wrapper input:focus,
#filterSidebar input.hc24f-brand-search:focus,
.catalog-filter input.hc24f-brand-search:focus,
.hc24f-sidebar input.search:focus {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    border-color: #5BB5C5 !important;
    box-shadow: 0 0 0 3px rgba(91,181,197,0.15), inset 0 1px 2px rgba(0,0,0,0.02) !important;
}

/* Search icon styling */
#filterSidebar .hc24f-search-wrapper svg,
.hc24f-sidebar .hc24f-search-wrapper svg,
.catalog-filter .hc24f-search-wrapper svg {
    position: absolute !important;
    left: 12px !important;
    margin-left: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 18px !important;
    height: 18px !important;
    color: #9CA3AF !important;
    pointer-events: none !important;
    z-index: 1 !important;
    transition: color 0.2s ease !important;
}

#filterSidebar .hc24f-search-wrapper:focus-within svg,
.hc24f-sidebar .hc24f-search-wrapper:focus-within svg {
    color: #5BB5C5 !important;
}
