/**
 * DSIDE.CO.UK - Professional Design System v2.0
 * Modern, clean, professional UI/UX inspired by PriceRunner, Google Shopping, Idealo
 */

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

:root {
    /* Brand Colors - Black & Gold */
    --primary-black: #0f0f0f;
    --primary-dark: #1a1a1a;
    --primary-gray: #2d2d2d;

    --accent-yellow: #fbbf24;
    --accent-gold: #f59e0b;
    --accent-amber: #d97706;

    /* Functional Colors */
    --success-green: #059669;
    --success-light: #d1fae5;
    --success-bg: #ecfdf5;

    --danger-red: #dc2626;
    --danger-light: #fee2e2;

    --info-blue: #2563eb;
    --info-light: #dbeafe;

    --warning-orange: #ea580c;
    --warning-light: #ffedd5;

    /* Neutral Palette */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;

    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-full: 9999px;

    /* Shadows - refined, less aggressive */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-card-hover: 0 10px 30px rgba(0,0,0,0.12);
    --shadow-gold: 0 4px 14px rgba(251, 191, 36, 0.25);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

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

body {
    font-family: var(--font-primary);
    color: var(--gray-800);
    background-color: var(--gray-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: inherit;
    line-height: 1.3;
}

a {
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar-professional {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-xs);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand-logo {
    height: 45px;
    width: auto;
    transition: transform var(--transition-base);
}

.navbar-brand-logo:hover {
    transform: scale(1.03);
}

.nav-link-professional {
    color: var(--gray-700);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    font-size: 0.9rem;
}

.nav-link-professional:hover {
    color: var(--primary-black);
    background-color: var(--gray-100);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-professional {
    background: linear-gradient(135deg, #000000 0%, #0f0f0f 40%, #1a1a1a 100%);
    color: white;
    padding: 4rem 0 4.5rem;
    position: relative;
    overflow: hidden;
}

.hero-professional::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23fbbf24' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.85;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* ============================================
   SEARCH BOX
   ============================================ */

.search-box-professional {
    background: white;
    padding: 1.25rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    border: 2px solid var(--accent-yellow);
    max-width: 680px;
    margin: 0 auto;
}

.search-input-professional {
    border: 2px solid var(--gray-200);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.search-input-professional:focus {
    border-color: var(--accent-yellow);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
    outline: none;
}

.btn-search-professional {
    background: linear-gradient(135deg, var(--accent-yellow), var(--accent-gold));
    color: var(--primary-black);
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.btn-search-professional:hover {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-amber));
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold);
}

/* ============================================
   PRODUCT CARDS - Homepage
   ============================================ */

.product-card {
    background: white;
    border-radius: 14px;
    border: 1.5px solid var(--gray-200);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    height: 100%;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
}

.product-card:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 20px 40px rgba(0,0,0,0.10), 0 8px 16px rgba(0,0,0,0.06);
    border-color: var(--accent-yellow);
    z-index: 2;
}

.product-card-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: #fafafa;
    padding: 20px;
    border-bottom: 1.5px solid var(--gray-100);
    transition: background 0.3s;
}

.product-card:hover .product-card-img {
    background: white;
}

.product-card .card-body {
    padding: var(--space-4);
}

.product-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.4;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: var(--space-3);
}

/* Savings Badge */
.savings-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--danger-red);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    z-index: 2;
    letter-spacing: 0.01em;
}

/* Store Count Badge */
.store-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

.store-count-badge i {
    font-size: 0.65rem;
}

/* Price Comparison in Cards */
.price-comparison {
    padding: var(--space-3);
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
}

.seller-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 8px;
    border-radius: var(--radius-sm);
    margin-bottom: 3px;
    font-size: 0.82rem;
    background: white;
}

.seller-price-row:last-child {
    margin-bottom: 0;
}

.seller-price-row.best {
    background: var(--success-bg);
    border: 1px solid #a7f3d0;
}

.seller-name {
    font-weight: 500;
    color: var(--gray-700);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: var(--space-2);
}

.seller-price {
    font-weight: 700;
    color: var(--gray-900);
    white-space: nowrap;
}

.seller-price.best-price {
    color: var(--success-green);
}

/* ============================================
   FEATURE CARDS
   ============================================ */

.feature-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition-slow);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--accent-yellow);
}

.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--accent-yellow), var(--accent-gold));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-black);
    font-size: 1.25rem;
    box-shadow: var(--shadow-gold);
}

/* ============================================
   CATEGORY CARDS
   ============================================ */

.category-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition-slow);
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--accent-yellow);
}

/* ============================================
   TRUST BAR
   ============================================ */

.trust-bar {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: var(--space-4) 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    justify-content: center;
}

.trust-icon {
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-size: 1rem;
    flex-shrink: 0;
}

.trust-text strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

.trust-text span {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ============================================
   SECTION HEADINGS
   ============================================ */

.section-heading {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--space-1);
}

.section-subheading {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin-bottom: var(--space-8);
}

/* ============================================
   PRICE STATS CARDS (Product Detail)
   ============================================ */

.stats-card-professional {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid;
    transition: all var(--transition-base);
}

.stats-card-professional:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stats-card-professional.lowest { border-left-color: var(--success-green); }
.stats-card-professional.average { border-left-color: var(--accent-yellow); }
.stats-card-professional.highest { border-left-color: var(--danger-red); }

.stats-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-2);
}

.stats-value {
    font-size: 1.75rem;
    font-weight: 800;
    font-family: var(--font-display);
}

/* ============================================
   PRICE LIST (Product Detail)
   ============================================ */

.price-card-professional {
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--gray-100);
    transition: all var(--transition-base);
    border-left: 3px solid transparent;
}

.price-card-professional:hover {
    background: var(--gray-50);
    border-left-color: var(--accent-yellow);
}

.price-card-professional.best-price {
    background: var(--success-bg);
    border-left-color: var(--success-green);
}

.best-price-badge {
    background: var(--success-green);
    color: white;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   BADGES
   ============================================ */

.badge-professional {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-primary { background: var(--info-blue); color: white; }
.badge-accent { background: var(--accent-yellow); color: var(--gray-900); }
.badge-success { background: var(--success-green); color: white; }
.badge-danger { background: var(--danger-red); color: white; }

/* ============================================
   BUTTONS
   ============================================ */

.btn-professional {
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-professional-primary {
    background: var(--accent-yellow);
    color: var(--primary-black);
}

.btn-professional-primary:hover {
    background: var(--accent-gold);
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold);
}

.btn-professional-dark {
    background: var(--primary-black);
    color: white;
}

.btn-professional-dark:hover {
    background: var(--gray-800);
    transform: translateY(-1px);
}

.btn-professional-outline {
    background: white;
    color: var(--gray-700);
    border: 1.5px solid var(--gray-300);
}

.btn-professional-outline:hover {
    border-color: var(--accent-yellow);
    color: var(--primary-black);
    background: #fffbeb;
}

/* ============================================
   CARD SYSTEM
   ============================================ */

.card-professional {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-slow);
    overflow: hidden;
}

.card-professional:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
}

/* ============================================
   PRODUCT IMAGES
   ============================================ */

.product-image-professional {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    background: white;
    padding: 1rem;
}

.thumbnail-professional {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 2px solid var(--gray-200);
    cursor: pointer;
    transition: all var(--transition-base);
}

.thumbnail-professional:hover,
.thumbnail-professional.active {
    border-color: var(--accent-yellow);
    box-shadow: var(--shadow-gold);
}

/* ============================================
   FOOTER
   ============================================ */

.footer-professional {
    background: linear-gradient(180deg, var(--gray-900) 0%, #0a0a0a 100%);
    color: var(--gray-400);
    padding: var(--space-12) 0 var(--space-6);
    margin-top: 0;
}

.footer-professional h6 {
    color: var(--accent-yellow);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-5);
}

.footer-professional a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-size: 0.875rem;
}

.footer-professional a:hover {
    color: white;
}

.footer-professional .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: var(--space-6);
    margin-top: var(--space-8);
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ============================================
   SEARCH DROPDOWN
   ============================================ */

.search-dropdown-professional {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    margin-top: var(--space-2);
}

.search-result-item {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--gray-100);
    transition: all var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    border-left: 3px solid transparent;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--gray-50);
    border-left-color: var(--accent-yellow);
}

/* ============================================
   ALERTS
   ============================================ */

.alert-professional {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-lg);
    border-left: 4px solid;
    margin-bottom: var(--space-4);
}

.alert-professional.info { background: var(--info-light); border-left-color: var(--info-blue); color: #1e40af; }
.alert-professional.success { background: var(--success-light); border-left-color: var(--success-green); color: #065f46; }

/* ============================================
   LOADING / SPINNER
   ============================================ */

.spinner-professional {
    width: 36px;
    height: 36px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--accent-yellow);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .hero-title { font-size: 1.75rem; }
    .hero-subtitle { font-size: 1rem; }
    .stats-value { font-size: 1.5rem; }
    .section-heading { font-size: 1.25rem; }
    .trust-bar .row { gap: 1rem; }
    .trust-text strong { font-size: 0.95rem; }
}

@media (max-width: 576px) {
    .hero-professional { padding: 2.5rem 0 3rem; }
    .search-box-professional { padding: 1rem; }
    .product-card-img { height: 140px; }
}

/* ============================================
   UTILITY OVERRIDES
   ============================================ */

.text-accent { color: var(--accent-yellow) !important; }
.text-success { color: var(--success-green) !important; }
.text-danger { color: var(--danger-red) !important; }
.bg-accent { background-color: var(--accent-yellow) !important; }

.section-padding { padding: var(--space-12) 0; }
.section-padding-sm { padding: var(--space-8) 0; }

/* ============================================
   FILTER SIDEBAR
   ============================================ */

.filter-sidebar {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.filter-sidebar::-webkit-scrollbar {
    width: 5px;
}
.filter-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.filter-sidebar::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 10px;
}

.filter-sidebar-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-sidebar-header h5 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--gray-900);
}

.filter-sidebar-body {
    padding: 0;
}

.filter-group-sidebar {
    border-bottom: 1px solid var(--gray-100);
}

.filter-group-header {
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-800);
    transition: background var(--transition-fast);
    user-select: none;
}

.filter-group-header:hover {
    background: var(--gray-50);
}

.filter-group-header .chevron-icon {
    transition: transform var(--transition-base);
    color: var(--gray-400);
    font-size: 0.75rem;
}

.filter-group-header.collapsed .chevron-icon {
    transform: rotate(-90deg);
}

.filter-group-content {
    padding: 0 1.25rem 1rem;
}

/* Brand Filter List */
.brand-filter-list {
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

.brand-filter-list::-webkit-scrollbar {
    width: 4px;
}
.brand-filter-list::-webkit-scrollbar-track {
    background: transparent;
}
.brand-filter-list::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 10px;
}

.brand-filter-item {
    display: flex;
    align-items: center;
    padding: 0.375rem 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition-fast);
    gap: 0.5rem;
}

.brand-filter-item:hover {
    background: var(--gray-50);
}

.brand-filter-item input[type="checkbox"] {
    accent-color: var(--accent-yellow);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
}

.brand-filter-item label {
    flex: 1;
    font-size: 0.85rem;
    color: var(--gray-700);
    cursor: pointer;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-product-count {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-400);
    background: var(--gray-100);
    padding: 1px 6px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

/* Brand Search in Sidebar */
.brand-search-input {
    width: 100%;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    transition: border-color var(--transition-fast);
}

.brand-search-input:focus {
    outline: none;
    border-color: var(--accent-yellow);
}

/* Price Range Slider (noUiSlider overrides) */
.price-slider-container {
    padding: 0.5rem 0.25rem;
}

.noUi-target {
    background: var(--gray-200) !important;
    border: none !important;
    box-shadow: none !important;
    height: 6px !important;
    border-radius: 3px !important;
}

.noUi-connect {
    background: linear-gradient(90deg, var(--accent-yellow), var(--accent-gold)) !important;
}

.noUi-handle {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    background: white !important;
    border: 2px solid var(--accent-yellow) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
    top: -8px !important;
    right: -10px !important;
    cursor: pointer !important;
}

.noUi-handle::before,
.noUi-handle::after {
    display: none !important;
}

.noUi-tooltip {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    background: var(--gray-900) !important;
    color: white !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    padding: 2px 6px !important;
}

.price-range-inputs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    align-items: center;
}

.price-range-inputs input {
    flex: 1;
    padding: 0.375rem 0.5rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    text-align: center;
    width: 0;
}

.price-range-inputs input:focus {
    outline: none;
    border-color: var(--accent-yellow);
}

.price-range-inputs .separator {
    color: var(--gray-400);
    font-weight: 600;
}

/* Stock Filter Toggle */
.stock-filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0;
}

.stock-filter-toggle input[type="checkbox"] {
    accent-color: var(--success-green);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.stock-filter-toggle label {
    font-size: 0.85rem;
    color: var(--gray-700);
    cursor: pointer;
    margin: 0;
}

/* Sidebar Search Input */
.sidebar-search-input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    transition: border-color var(--transition-fast);
}

.sidebar-search-input:focus {
    outline: none;
    border-color: var(--accent-yellow);
}

.sidebar-search-wrapper {
    position: relative;
}

.sidebar-search-wrapper .search-icon {
    position: absolute;
    left: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 0.8rem;
    pointer-events: none;
}

/* Filter Actions */
.filter-actions {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 0.5rem;
}

.filter-actions .btn-apply {
    flex: 1;
    background: linear-gradient(135deg, var(--accent-yellow), var(--accent-gold));
    color: var(--primary-black);
    border: none;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.filter-actions .btn-apply:hover {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-amber));
    transform: translateY(-1px);
}

.filter-actions .btn-clear {
    background: white;
    color: var(--gray-500);
    border: 1px solid var(--gray-200);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    text-align: center;
}

.filter-actions .btn-clear:hover {
    border-color: var(--danger-red);
    color: var(--danger-red);
}

/* Active Filter Chips */
.active-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    align-items: center;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid var(--accent-yellow);
    color: var(--gray-800);
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
}

.filter-chip .chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: rgba(0,0,0,0.1);
    border-radius: 50%;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.65rem;
    transition: all var(--transition-fast);
    line-height: 1;
}

.filter-chip .chip-remove:hover {
    background: var(--danger-red);
    color: white;
}

/* Product Card Brand Logo */
.product-card-brand-logo {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-brand-logo img {
    max-width: 56px;
    max-height: 28px;
    object-fit: contain;
}

.brand-logo-fallback {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Mobile Filter Toggle */
.filter-toggle-btn {
    display: none;
    width: 100%;
    padding: 0.625rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-700);
    cursor: pointer;
    margin-bottom: 1rem;
    transition: all var(--transition-base);
    text-align: center;
}

.filter-toggle-btn:hover {
    border-color: var(--accent-yellow);
    color: var(--primary-black);
}

.filter-toggle-btn i {
    margin-right: 0.5rem;
}

.filter-badge-count {
    background: var(--accent-yellow);
    color: var(--primary-black);
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: var(--radius-full);
    margin-left: 0.5rem;
    font-weight: 700;
}

/* Sort Toolbar (slim) */
.sort-toolbar-slim {
    background: white;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Category Filter (checkbox-based in sidebar) */
.category-filter-list {
    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) transparent;
}

.category-filter-list::-webkit-scrollbar {
    width: 5px;
}

.category-filter-list::-webkit-scrollbar-thumb {
    background-color: var(--gray-300);
    border-radius: 3px;
}

.category-filter-item-wrapper {
    margin-bottom: 0;
}

.category-filter-row {
    display: flex;
    align-items: center;
    gap: 0;
}

.category-expand-btn {
    background: none;
    border: none;
    padding: 0.35rem 0.5rem;
    cursor: pointer;
    color: var(--gray-400);
    font-size: 0.7rem;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.category-expand-btn:hover {
    color: var(--accent-yellow);
}

.category-expand-btn i {
    transition: transform 0.2s ease;
}

.category-children {
    display: none;
    padding-left: 1.25rem;
    border-left: 2px solid var(--gray-100);
    margin-left: 0.75rem;
    margin-bottom: 0.25rem;
}

.category-children.expanded {
    display: block;
}

.child-category-item {
    padding-left: 0.25rem;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .filter-sidebar {
        position: static;
        max-height: none;
    }

    .filter-toggle-btn {
        display: block;
    }

    .filter-sidebar-desktop {
        display: none;
    }

    .filter-sidebar-desktop.show {
        display: block;
    }
}

@media (min-width: 992px) {
    .filter-sidebar-desktop {
        display: block !important;
    }
}
