/* ==========================================================================
   Pet Shop BOOBY — Ultra-Luxury Native-Grade Filters & Brands Hub
   Version: 2.0.0 (Clean Mobile-First App Architecture)
   ========================================================================== */

:root {
    --fl-bg-deep: #070811;
    --fl-bg-surface: #0e1122;
    --fl-bg-card: rgba(20, 24, 44, 0.75);
    --fl-bg-card-hover: rgba(28, 34, 62, 0.95);
    --fl-border: rgba(255, 255, 255, 0.08);
    --fl-border-active: #ffd500;
    --fl-gold: #ffd500;
    --fl-gold-glow: rgba(255, 213, 0, 0.28);
    --fl-pink: #ff6584;
    --fl-salmon: #ff5a36;
    --fl-teal: #06b6d4;
    --fl-emerald: #10b981;
    --fl-text-main: #f8fafc;
    --fl-text-muted: #94a3b8;
}

body[data-world="filters"] {
    background-color: var(--fl-bg-deep) !important;
    color: var(--fl-text-main);
    font-family: 'Cairo', 'Outfit', sans-serif;
    min-height: 100vh;
    position: relative;
    padding-bottom: 90px !important; /* Safe room for sticky bottom action dock */
    overflow-x: hidden;
}

/* Hide conflicting site-wide floating widgets on the dedicated filters page */
body[data-world="filters"] .hc-spin-wheel-float-btn,
body[data-world="filters"] .hc-mobile-bottom-dock,
body[data-world="filters"] .hc-compare-floating-bar,
body[data-world="filters"] #hcCompareFloatingBar {
    display: none !important;
}

/* Ambient Aurora Glow Orbs */
.fl-aurora-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.16;
}
.fl-aurora-gold {
    width: 440px;
    height: 440px;
    top: 5%;
    right: -100px;
    background: radial-gradient(circle, #ffd500 0%, transparent 70%);
}
.fl-aurora-rose {
    width: 480px;
    height: 480px;
    top: 40%;
    left: -120px;
    background: radial-gradient(circle, #ff6584 0%, transparent 70%);
}
.fl-aurora-cyan {
    width: 380px;
    height: 380px;
    bottom: 10%;
    right: 15%;
    background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
}

/* Container */
.fl-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   1. Dedicated Mobile App-Style Header
   ========================================================================== */
.fl-mobile-app-header {
    display: none;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 56px;
    background: rgba(11, 13, 26, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
}
.fl-app-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 7px 12px;
    color: #f8fafc;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}
.fl-app-nav-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}
.fl-app-nav-title {
    font-size: 1.05rem;
    font-weight: 900;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.fl-app-reset-btn {
    background: transparent;
    border: none;
    color: #ffd500;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
}
.fl-app-reset-btn:hover {
    background: rgba(255, 213, 0, 0.1);
}

/* ==========================================================================
   2. Desktop Hero & Navigation
   ========================================================================== */
.fl-hero-hub {
    margin: 20px 0 24px;
}
.fl-hero-card {
    background: linear-gradient(135deg, rgba(17, 20, 38, 0.85) 0%, rgba(13, 16, 30, 0.95) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.09);
    border-radius: 24px;
    padding: 28px 26px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}
.fl-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffd500, #ff6584, #06b6d4, #ffd500);
    background-size: 300% 100%;
    animation: flRainbowSweep 8s linear infinite;
}
@keyframes flRainbowSweep {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.fl-hero-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}
.fl-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 213, 0, 0.12);
    border: 1px solid rgba(255, 213, 0, 0.32);
    border-radius: 99px;
    padding: 5px 14px;
    color: #ffd500;
    font-size: 0.82rem;
    font-weight: 800;
}
.fl-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffd500;
    box-shadow: 0 0 8px #ffd500;
    animation: flPulse 1.8s infinite;
}
@keyframes flPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

.fl-stats-pill-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.fl-stat-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    padding: 4px 12px;
    font-size: 0.78rem;
    color: #cbd5e1;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.fl-stat-chip strong {
    color: #ffd500;
}

.fl-hero-title {
    font-size: 1.85rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.fl-hero-sub {
    font-size: 0.92rem;
    color: var(--fl-text-muted);
    line-height: 1.5;
    margin: 0 0 20px;
    max-width: 780px;
}

/* Universal Instant Search */
.fl-search-box {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
}
.fl-search-input {
    width: 100%;
    background: #090b16;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 13px 20px 13px 48px;
    font-size: 0.98rem;
    font-family: inherit;
    color: #ffffff;
    outline: none;
    transition: all 0.25s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}
.fl-search-input:focus {
    border-color: #ffd500;
    box-shadow: 0 0 0 3px rgba(255, 213, 0, 0.18), inset 0 2px 4px rgba(0, 0, 0, 0.5);
}
.fl-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.05rem;
    pointer-events: none;
}
.fl-search-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}
.fl-search-clear:hover {
    background: #ff5a36;
}

/* Pet Department Switcher Tabs */
.fl-animal-tabs-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.fl-animal-tabs-wrap::-webkit-scrollbar {
    display: none;
}
.fl-animal-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 8px 16px;
    color: #cbd5e1;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
    flex-shrink: 0;
}
.fl-animal-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}
.fl-animal-tab.active {
    background: linear-gradient(135deg, #ffd500 0%, #ff9800 100%);
    border-color: #ffd500;
    color: #0b0c16;
    box-shadow: 0 4px 16px rgba(255, 213, 0, 0.35);
    transform: translateY(-1px);
}
.fl-animal-tab .tab-icon {
    font-size: 1.1rem;
}
.fl-animal-tab .tab-count {
    background: rgba(0, 0, 0, 0.18);
    color: inherit;
    font-size: 0.74rem;
    padding: 1px 7px;
    border-radius: 99px;
    font-weight: 900;
}
.fl-animal-tab.active .tab-count {
    background: rgba(0, 0, 0, 0.25);
    color: #0b0c16;
}

/* Active Selected Chips Row */
.fl-active-chips-container {
    margin: 12px 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 8px 12px;
}
.fl-active-chips-container .chips-label {
    font-size: 0.78rem;
    color: #ffd500;
    font-weight: 800;
}
.fl-active-chips-strip {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.fl-active-chip {
    background: rgba(255, 213, 0, 0.14);
    border: 1px solid rgba(255, 213, 0, 0.3);
    border-radius: 99px;
    padding: 3px 10px;
    font-size: 0.78rem;
    color: #ffffff;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.fl-active-chip:hover {
    background: rgba(244, 63, 94, 0.25);
    border-color: #f43f5e;
}
.fl-active-chip i {
    font-size: 0.65rem;
    opacity: 0.8;
}

/* ==========================================================================
   3. Main Filter Sections
   ========================================================================== */
.fl-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.fl-section-card {
    background: var(--fl-bg-card);
    border: 1.5px solid var(--fl-border);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.fl-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding-bottom: 12px;
}
.fl-section-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.fl-section-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.fl-section-icon.gold { background: rgba(255, 213, 0, 0.14); color: #ffd500; }
.fl-section-icon.rose { background: rgba(255, 101, 132, 0.14); color: #ff6584; }
.fl-section-icon.cyan { background: rgba(6, 182, 212, 0.14); color: #06b6d4; }
.fl-section-icon.emerald { background: rgba(16, 185, 129, 0.14); color: #10b981; }

.fl-section-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
}
.fl-section-sub {
    font-size: 0.82rem;
    color: var(--fl-text-muted);
    font-weight: 600;
    margin: 0;
}

.fl-btn-reset-inline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 6px 12px;
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}
.fl-btn-reset-inline:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

/* 3A. Modern Compact Categories Grid */
.fl-cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
}
.fl-cat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid var(--fl-border);
    border-radius: 16px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
}
.fl-cat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 213, 0, 0.4);
    transform: translateY(-2px);
}
.fl-cat-card.active {
    background: linear-gradient(135deg, rgba(255, 213, 0, 0.15), rgba(244, 63, 94, 0.1));
    border-color: var(--fl-gold);
    box-shadow: 0 4px 16px rgba(255, 213, 0, 0.22);
}
.fl-cat-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    flex-shrink: 0;
}
.fl-cat-info {
    flex: 1;
    min-width: 0;
}
.fl-cat-name-ar {
    font-size: 0.94rem;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}
.fl-cat-sub-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
}
.fl-cat-dept-tag {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 600;
}
.fl-cat-count-badge {
    background: rgba(255, 255, 255, 0.08);
    color: #ffd500;
    border-radius: 99px;
    padding: 1px 7px;
    font-size: 0.72rem;
    font-weight: 900;
    margin-inline-start: auto;
}
.fl-cat-card.active .fl-cat-count-badge {
    background: #ffd500;
    color: #0b0c16;
}
.fl-cat-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 0.65rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.fl-cat-card.active .fl-cat-check {
    background: #ffd500;
    border-color: #ffd500;
    color: #0b0c16;
}

/* 3B. Brands Arena */
.fl-brands-box {
    background: var(--fl-bg-card);
    border: 1.5px solid var(--fl-border);
    border-radius: 22px;
    padding: 22px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}
.fl-brands-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.fl-brands-search-mini {
    position: relative;
    flex: 1;
    min-width: 220px;
    max-width: 400px;
}
.fl-brands-search-mini input {
    width: 100%;
    background: #090b16;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 9px 16px 9px 38px;
    font-size: 0.88rem;
    color: #ffffff;
    font-family: inherit;
    outline: none;
}
.fl-brands-search-mini input:focus {
    border-color: #ffd500;
}
.fl-brands-search-mini i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.88rem;
}

.fl-alpha-strip {
    display: flex;
    align-items: center;
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin-bottom: 16px;
}
.fl-alpha-strip::-webkit-scrollbar {
    display: none;
}
.fl-alpha-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 0.8rem;
    color: #cbd5e1;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    font-family: 'Outfit', sans-serif;
    flex-shrink: 0;
}
.fl-alpha-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.fl-alpha-pill.active {
    background: #ffd500;
    border-color: #ffd500;
    color: #0b0c16;
}

/* World-Class Luxury Brands Showroom Grid (Sephora / Farfetch / Chewy Style) */
.fl-brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
    padding: 4px 0 6px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.fl-brand-tile {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.065) 0%, rgba(17, 20, 39, 0.92) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    position: relative;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.26);
}
.fl-brand-tile:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 213, 0, 0.48);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42), 0 0 18px rgba(255, 213, 0, 0.14);
    background: linear-gradient(165deg, rgba(255, 213, 0, 0.09) 0%, rgba(20, 24, 46, 0.96) 100%);
}
.fl-brand-tile.active {
    border-color: #ffd500;
    background: linear-gradient(165deg, rgba(255, 213, 0, 0.16) 0%, rgba(22, 24, 44, 0.98) 100%);
    box-shadow: 0 0 0 2px rgba(255, 213, 0, 0.35), 0 12px 28px rgba(255, 213, 0, 0.22);
}
.fl-brand-logo-stage {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: inset 0 1px 4px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(0, 0, 0, 0.18);
}
.fl-brand-logo-img {
    width: 100%;
    height: 100%;
    max-height: 52px;
    max-width: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.25s ease;
}
.fl-brand-tile:hover .fl-brand-logo-img {
    transform: scale(1.06);
}
.fl-brand-mono-badge {
    height: 44px;
    width: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e1b4b 0%, #3730a3 55%, #4f46e5 100%);
    color: #ffd500;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 4px 12px rgba(49, 46, 129, 0.35);
    flex-shrink: 0;
}
.fl-brand-meta {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
}
.fl-brand-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.25;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0.1px;
}
.fl-brand-tile.active .fl-brand-title {
    color: #ffd500;
}
.fl-brand-count-chip {
    font-size: 0.7rem;
    color: #cbd5e1;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 99px;
    padding: 2px 9px;
    line-height: 1.3;
}
.fl-brand-tile.active .fl-brand-count-chip {
    background: #ffd500;
    border-color: #ffd500;
    color: #0b0c16;
    font-weight: 900;
}
.fl-brand-tile-check {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffd500;
    color: #0b0c16;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    z-index: 3;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}
.fl-brand-tile.active .fl-brand-tile-check {
    display: flex;
}
.fl-brands-empty {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 28px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.14);
    color: #94a3b8;
    font-size: 0.92rem;
    font-weight: 700;
}
.fl-brands-expand-wrap {
    display: flex;
    justify-content: center;
    margin-top: 16px;
    padding-top: 6px;
}
.fl-brands-expand-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 213, 0, 0.14), rgba(255, 152, 0, 0.08));
    border: 1.5px solid rgba(255, 213, 0, 0.42);
    color: #ffd500;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.22s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}
.fl-brands-expand-btn:hover {
    background: #ffd500;
    color: #0b0c16;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(255, 213, 0, 0.32);
}

/* 3C. Advanced Facets (Pricing, Stock, Offers) */
.fl-advanced-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}
.fl-advanced-card {
    background: var(--fl-bg-card);
    border: 1.5px solid var(--fl-border);
    border-radius: 20px;
    padding: 18px;
}
.fl-card-header-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.98rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 8px;
}
.fl-price-pills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.fl-price-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 12px;
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    font-family: inherit;
}
.fl-price-pill:hover {
    background: rgba(255, 255, 255, 0.09);
}
.fl-price-pill.active {
    background: rgba(255, 213, 0, 0.14);
    border-color: #ffd500;
    color: #ffd500;
}
.fl-price-pill .price-count {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 6px;
    border-radius: 99px;
    color: #fff;
}
.fl-price-pill.active .price-count {
    background: #ffd500;
    color: #0b0c16;
}

.fl-toggles-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.fl-toggle-row {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
}
.fl-toggle-row.active {
    background: rgba(16, 185, 129, 0.12);
    border-color: #10b981;
}
.fl-toggle-row.active.deals {
    background: rgba(255, 90, 54, 0.14);
    border-color: #ff5a36;
}
.fl-toggle-switch {
    width: 40px;
    height: 22px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.15);
    position: relative;
    transition: all 0.25s ease;
    flex-shrink: 0;
}
.fl-toggle-switch::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    top: 3px;
    right: 3px;
    transition: transform 0.25s ease;
}
.fl-toggle-row.active .fl-toggle-switch {
    background: #10b981;
}
.fl-toggle-row.active.deals .fl-toggle-switch {
    background: #ff5a36;
}
.fl-toggle-row.active .fl-toggle-switch::after {
    transform: translateX(-18px);
}

/* 3D. Preview Grid */
.fl-preview-box {
    margin-top: 10px;
    background: var(--fl-bg-card);
    border: 1.5px solid var(--fl-border);
    border-radius: 22px;
    padding: 22px;
}
.fl-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

/* ==========================================================================
   4. Sticky Bottom Action Dock (Clean Single-Row Architecture)
   ========================================================================== */
.fl-bottom-action-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 64px;
    background: rgba(10, 12, 24, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1.5px solid rgba(255, 213, 0, 0.35);
    z-index: 99999;
    padding: 9px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.7);
}
.fl-dock-inner {
    width: 100%;
    max-width: 900px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.fl-dock-reset-btn {
    height: 46px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    color: #cbd5e1;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
    transition: all 0.2s ease;
}
.fl-dock-reset-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}
.fl-dock-apply-btn {
    flex: 1;
    height: 46px;
    background: linear-gradient(135deg, #ffd500 0%, #ff9800 100%);
    border: none;
    border-radius: 12px;
    color: #0b0c16;
    font-size: 0.98rem;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(255, 213, 0, 0.4);
    font-family: inherit;
    transition: all 0.2s ease;
}
.fl-dock-apply-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 213, 0, 0.55);
}

#flApplyCountBubble {
    display: inline-block;
    background: #0b0c16;
    color: #ffd500;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 900;
    margin: 0 5px;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.4);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#flApplyCountBubble.bubble-pulse {
    animation: flBubblePop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes flBubblePop {
    0% { transform: scale(1); }
    40% { transform: scale(1.38); background: #ff3366; color: #ffffff; box-shadow: 0 0 14px rgba(255, 51, 102, 0.8); }
    100% { transform: scale(1); background: #0b0c16; color: #ffd500; }
}

/* ==========================================================================
   5. Mobile Screen Optimization (max-width: 992px)
   ========================================================================== */
@media (max-width: 992px) {
    /* Hide the cluttered desktop header and secondary bars */
    body[data-world="filters"] .hc-topbar,
    body[data-world="filters"] .hc-header,
    body[data-world="filters"] .hc-nav-bar,
    body[data-world="filters"] .cd-breadcrumb-bar {
        display: none !important;
    }

    /* Show the clean native-style app header */
    .fl-mobile-app-header {
        display: flex;
    }

    .fl-hero-hub {
        margin: 14px 0 16px;
    }
    .fl-hero-card {
        padding: 16px 14px;
        border-radius: 18px;
    }
    .fl-hero-title {
        font-size: 1.35rem;
    }
    .fl-hero-sub {
        font-size: 0.82rem;
        margin-bottom: 14px;
    }
    .fl-stats-pill-group {
        display: none; /* Hide bulky stat chips on mobile to save vertical height */
    }

    /* 2-column compact category cards */
    .fl-cats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .fl-cat-card {
        padding: 10px 10px;
        min-height: 56px;
        gap: 8px;
        border-radius: 14px;
    }
    .fl-cat-icon-box {
        width: 34px;
        height: 34px;
        font-size: 1.25rem;
        border-radius: 10px;
    }
    .fl-cat-name-ar {
        font-size: 0.84rem;
    }
    .fl-cat-dept-tag {
        display: none; /* Keep card clean and compact on small phones */
    }
    .fl-cat-count-badge {
        font-size: 0.68rem;
        padding: 1px 5px;
    }

    /* World-Class 3-Column Mobile Luxury Brand Showroom */
    .fl-brands-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }
    .fl-brand-tile {
        padding: 8px;
        border-radius: 15px;
        gap: 7px;
    }
    .fl-brand-logo-stage {
        aspect-ratio: 16 / 11;
        padding: 6px;
        border-radius: 10px;
    }
    .fl-brand-logo-img {
        max-height: 40px;
    }
    .fl-brand-mono-badge {
        height: 36px;
        width: 36px;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    .fl-brand-title {
        font-size: 0.74rem;
    }
    .fl-brand-count-chip {
        font-size: 0.62rem;
        padding: 1px 7px;
    }
    .fl-brands-expand-btn {
        width: 100%;
        padding: 11px 16px;
        font-size: 0.86rem;
    }

    .fl-price-pills-grid {
        grid-template-columns: 1fr;
    }
    .fl-section-card,
    .fl-brands-box,
    .fl-preview-box {
        padding: 16px 14px;
        border-radius: 18px;
    }
    .fl-section-title {
        font-size: 1.1rem;
    }

    .fl-preview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Fixed bottom dock with safe area support */
    .fl-bottom-action-dock {
        height: calc(60px + env(safe-area-inset-bottom, 0px));
        padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 360px) {
    .fl-brands-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
}
