* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.favorites {
    padding: 130px 4vw 8vw;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 80vh;
}

.favorites-header {
    margin-bottom: 3vw;
}

.favorites-header h1 {
    font-size: 3.2vw;
    font-weight: 700;
}

.favorites-header h1 span {
    color: #FF1A1A;
}

.favorites-header p {
    margin-top: 0.8vw;
    font-size: 1vw;
    opacity: 0.7;
}

.quick-search {
    position: relative;
}

.quick-search input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #333;
    color: #fff;
    padding: 0.7vw 1vw 0.7vw 2.5vw;
    border-radius: 2vw;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9vw;
    outline: none;
    transition: 0.3s;
}

.quick-search input:focus {
    border-color: #E60000;
    background: #111;
}

.quick-search i {
    position: absolute;
    left: 1vw;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 0.9vw;
}

.filter-btn {
    background: transparent;
    border: 1px solid #333;
    color: #ccc;
    padding: 0.7vw 1.5vw;
    border-radius: 2vw;
    font-size: 0.9vw;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 0.5vw;
}

.filter-btn:hover {
    border-color: #FF1A1A;
    color: #fff;
    background: rgba(255,26,26,0.05);
}

.filter-btn.active {
    background: #FF1A1A;
    border-color: #FF1A1A;
    color: #fff;
    box-shadow: 0 0 1vw rgba(255, 26, 26, 0.4);
}

.custom-dropdown {
    position: relative;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9vw;
    font-weight: 500;
    cursor: pointer;
    z-index: 100;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    color: #cccccc;
    transition: 0.3s;
    border-radius: 2vw;
}

.dropdown-trigger:hover, .custom-dropdown.open .dropdown-trigger {
    border-color: #FF1A1A !important;
    color: white;
}

.arrow-icon {
    font-size: 0.7vw;
    transition: transform 0.3s ease;
}

.custom-dropdown.open .arrow-icon {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    background: #0d0000;
    border: 1px solid #8A0000;
    border-radius: 1vw;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.9);
}

.custom-dropdown.open .dropdown-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-option {
    padding: 0.8vw 1.2vw;
    color: #aaa;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(138, 0, 0, 0.2);
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background: #FF1A1A;
    color: white;
    padding-left: 1.5vw;
}

.dropdown-option.active {
    background: rgba(255, 26, 26, 0.15);
    color: #FF1A1A;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18vw, 1fr));
    gap: 2.5vw;
}

.favorite-card {
    background: linear-gradient(180deg, #0b0000, #140000);
    border-radius: 1.2vw;
    overflow: hidden;
    position: relative;
    box-shadow: 0 1vw 2vw rgba(0,0,0,0.6);
    border: 2px solid transparent;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.4s ease, border-color 0.3s;
    animation: fadeIn 0.5s ease backwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.favorite-card:hover {
    transform: translateY(-0.6vw);
    box-shadow: 0 2vw 4vw rgba(230,0,0,0.25);
}

.fav-like {
    position: absolute;
    top: 1vw;
    right: 1vw;
    width: 2.6vw;
    height: 2.6vw;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.2vw;
    cursor: pointer;
    z-index: 2;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.fav-like.active {
    background: linear-gradient(135deg, #FF1A1A, #FF4081);
    box-shadow: 0 0 1vw rgba(255,26,26,0.8);
}

.fav-like.active:hover{
    background: linear-gradient(135deg, #444444a2, #6e686a);
    transform: scale(1.1);
}

.fav-image {
    width: 100%;
    height: 20vw;
    background: #000;
}

.fav-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2vw;
}

.fav-content {
    padding: 1.6vw;
}

.fav-content h3 {
    font-size: 1.1vw;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fav-category {
    display: block;
    margin-top: 0.4vw;
    font-size: 0.75vw;
    opacity: 0.6;
}

.fav-bottom {
    margin-top: 1.5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fav-price {
    font-size: 1.2vw;
    font-weight: 700;
    color: #FF1A1A;
}

.fav-btn {
    background: linear-gradient(135deg, #E60000, #8A0000);
    border: none;
    color: #fff;
    padding: 0.6vw 1.4vw;
    border-radius: 2vw;
    font-size: 0.75vw;
    cursor: pointer;
    transition: 0.3s;
}

.fav-btn:hover {
    background: linear-gradient(135deg, #FF1A1A, #FF4081);
    box-shadow: 0 0 1vw rgba(255,26,26,0.6);
}

.fav-badges {
    display: flex;
    gap: 0.6vw;
    margin-top: 0.8vw;
    flex-wrap: wrap;
}

.badge {
    font-size: 0.65vw;
    padding: 0.35vw 0.8vw;
    border-radius: 1vw;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3vw;
}

.badge.quality {
    background: rgba(230, 0, 0, 0.15);
    color: #E60000;
    border: 1px solid rgba(230, 0, 0, 0.3);
}

.floating-action-bar {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 1vw 2vw;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 20px rgba(230,0,0,0.2);
    backdrop-filter: blur(15px);
    z-index: 10000;
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    width: auto;
    min-width: 40vw;
}

.floating-action-bar.visible {
    bottom: 3vw;
}

.fab-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 3vw;
}

.fab-info {
    font-size: 1.1vw;
    font-weight: 500;
    color: #ccc;
    white-space: nowrap;
}

.fab-info span {
    font-weight: 800;
    color: #FF1A1A;
    font-size: 1.4vw;
}

.fab-actions {
    display: flex;
    gap: 1vw;
}

.fab-btn {
    padding: 0.8vw 1.5vw;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9vw;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
}

.fab-btn.outline {
    background: transparent;
    border: 1px solid #555;
    color: #ccc;
}

.fab-btn.outline:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.fab-btn.primary {
    background: linear-gradient(135deg, #E60000, #8A0000);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5vw;
}

.fab-btn.primary:hover {
    box-shadow: 0 0 15px rgba(230,0,0,0.5);
    transform: translateY(-2px);
}

.favorites-grid.selection-mode .favorite-card {
    cursor: pointer;
    border: 2px solid transparent;
}

.favorites-grid.selection-mode .favorite-card::before {
    content: '';
    position: absolute;
    top: 1vw;
    left: 1vw;
    width: 2vw;
    height: 2vw;
    border: 2px solid #555;
    border-radius: 50%;
    z-index: 10;
    background: rgba(0,0,0,0.6);
    transition: 0.2s;
    backdrop-filter: blur(5px);
}

.favorites-grid.selection-mode .favorite-card.selected {
    border-color: #E60000;
    transform: scale(0.96);
    box-shadow: 0 0 30px rgba(230,0,0,0.2);
}

.favorites-grid.selection-mode .favorite-card.selected::before {
    background: #E60000;
    border-color: #E60000;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"/></svg>');
    background-size: 70%;
    background-position: center;
    background-repeat: no-repeat;
}

.favorites-grid.selection-mode .fav-like,
.favorites-grid.selection-mode .fav-btn {
    pointer-events: none;
    opacity: 0.5;
}

@media (max-width: 1024px) {
    .favorites { padding: 120px 4vw 80px; }
    .favorites-header h1 { font-size: 40px; }
    .favorites-header p { font-size: 16px; margin-top: 10px; }
    .favorites-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 25px; }
    .quick-search input { font-size: 14px; padding: 10px 15px 10px 35px; }
    .quick-search i { font-size: 14px; left: 15px; }
    .filter-btn { font-size: 14px; padding: 8px 18px; border-radius: 25px; }
    .custom-dropdown { font-size: 14px; min-width: 130px !important;}
    .dropdown-trigger { padding: 8px 12px; }
    .favorite-card { border-radius: 20px; }
    .fav-image { height: 220px; }
    .fav-content { padding: 18px; }
    .fav-content h3 { font-size: 16px; }
    .fav-category { font-size: 13px; margin-top: 5px; }
    .fav-price { font-size: 18px; }
    .fav-btn { font-size: 13px; padding: 10px 20px; border-radius: 20px; }
    .fav-like { width: 45px; height: 45px; top: 15px; right: 15px; font-size: 20px; }
    .badge { font-size: 11px; padding: 5px 12px; border-radius: 10px; }
    .floating-action-bar { width: 70vw; padding: 15px 25px; }
    .fab-info { font-size: 14px; }
    .fab-info span { font-size: 20px; }
    .fab-btn { font-size: 13px; padding: 10px 20px; }
}

@media (max-width: 768px) {
    .favorites { padding: 100px 20px 60px; }
    .favorites-header { margin-bottom: 30px; }
    .favorites-header h1 { font-size: 32px; }
    .favorites-header p { font-size: 14px; }
    .filter-bar-inner { flex-direction: column; align-items: stretch !important; gap: 15px !important;}
    .quick-filters { flex-direction: column; align-items: stretch !important; gap: 10px !important;}
    .quick-search { max-width: 100% !important; width: 100%;}
    .favorites-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .fav-image { height: 160px; }
    .fav-image img { padding: 15px; }
    .fav-content { padding: 12px; }
    .fav-content h3 { font-size: 13px; }
    .fav-category { font-size: 11px; }
    .fav-bottom { margin-top: 12px; flex-direction: column; align-items: flex-start; gap: 10px; }
    .fav-price { font-size: 16px; }
    .fav-btn { width: 100%; text-align: center; padding: 10px; font-size: 12px; border-radius: 8px; }
    .fav-like { width: 35px; height: 35px; font-size: 16px; top: 10px; right: 10px; }
    .fav-badges { gap: 5px; margin-top: 8px; }
    .badge { font-size: 9px; padding: 4px 8px; border-radius: 6px; }
    .floating-action-bar { width: 90vw; padding: 15px 20px; bottom: -150px; }
    .floating-action-bar.visible { bottom: 20px; }
    .fab-content { flex-direction: column; gap: 15px; }
    .fab-info { font-size: 14px; }
    .fab-info span { font-size: 18px; }
    .fab-actions { width: 100%; display: flex; flex-direction: column; }
    .fab-btn { width: 100%; text-align: center; padding: 12px; font-size: 14px; justify-content: center;}
    .favorites-grid.selection-mode .favorite-card::before { width: 30px; height: 30px; top: 10px; left: 10px; }
}

@media (max-width: 480px) {
    .favorites { padding: 90px 15px 50px; }
    .favorites-header h1 { font-size: 28px; }
    .favorites-grid { gap: 10px; }
    .fav-image { height: 140px; }
    .fav-image img { padding: 10px; }
    .fav-content { padding: 10px; }
    .fav-like { width: 30px; height: 30px; font-size: 14px; top: 8px; right: 8px; }
    .filter-btn { font-size: 12px; padding: 8px 14px; }
}

.sticky-filter-bar {
    background: #121212;
    padding: 1vw 2vw;
    border-radius: 1vw;
    border: 1px solid var(--border-color);
    margin-bottom: 3vw;
    position: relative;
    z-index: 100;
}

.mega-filter-toggle {
    background: transparent;
    border: 1px solid #333;
    color: #fff;
    padding: 0.7vw 1.5vw;
    border-radius: 2vw;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5vw;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9vw;
    transition: 0.3s;
}

.mega-filter-toggle:hover, .mega-filter-toggle.active {
    border-color: #E60000;
    color: #E60000;
}

.mega-filter-panel {
    position: absolute;
    top: 120%; 
    left: 0; 
    width: 100%;
    background: #0a0a0a; 
    border: 1px solid #333; 
    border-radius: 1vw;
    padding: 2vw; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.9);
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    z-index: 101;
}

.mega-filter-panel.active {
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0);
}

.mega-grid {
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 3vw;
}

.filter-section h3 {
    font-size: 1vw;
    color: #fff;
    margin-bottom: 1.2vw;
    display: flex;
    align-items: center;
    gap: 0.5vw;
    border-bottom: 1px solid #222;
    padding-bottom: 0.5vw;
}

.filter-section h3 i { color: #E60000; }
.mt-2 { margin-top: 2vw; }

.category-grid, .sellers-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6vw;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
}

.category-grid::-webkit-scrollbar, .sellers-grid::-webkit-scrollbar { width: 4px; }
.category-grid::-webkit-scrollbar-thumb, .sellers-grid::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }

.category-card, .seller-toggle {
    display: inline-flex;
    cursor: pointer;
}

.category-card input, .seller-toggle input { display: none; }

.cat-inner, .seller-box {
    background: #141414;
    border: 1px solid #333;
    padding: 0.5vw 1vw;
    border-radius: 0.5vw;
    font-size: 0.8vw;
    color: #ccc;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5vw;
}

.category-card input:checked + .cat-inner,
.seller-toggle input:checked + .seller-box {
    background: rgba(230,0,0,0.15);
    border-color: #E60000;
    color: #fff;
}

.price-range-inputs {
    display: flex; align-items: center; gap: 1vw;
}
.price-range-inputs input {
    flex: 1; background: #141414; border: 1px solid #333; color: #fff;
    padding: 0.8vw; border-radius: 0.5vw; outline: none; font-family: 'Poppins';
}
.price-range-inputs input:focus { border-color: #E60000; }

.custom-slider {
    width: 100%; appearance: none; background: #333; height: 4px; border-radius: 2px; outline: none;
}
.custom-slider::-webkit-slider-thumb {
    appearance: none; width: 16px; height: 16px; background: #E60000; border-radius: 50%; cursor: pointer;
}
.slider-labels { display: flex; justify-content: space-between; font-size: 0.75vw; color: #888; margin-top: 0.5vw; }

.custom-select select {
    width: 100%; background: #141414; border: 1px solid #333; color: #fff;
    padding: 0.8vw; border-radius: 0.5vw; outline: none; font-family: 'Poppins'; font-size: 0.85vw;
}

.mega-panel-footer {
    display: flex; justify-content: flex-end; gap: 1vw; margin-top: 2vw; border-top: 1px solid #222; padding-top: 1.5vw;
}
.clear-all-btn { background: transparent; border: 1px solid #555; color: #ccc; padding: 0.8vw 1.5vw; border-radius: 0.5vw; cursor: pointer; font-family: 'Poppins'; transition: 0.2s; }
.clear-all-btn:hover { background: #222; color: #fff; }
.apply-mega-btn { background: #E60000; border: none; color: #fff; padding: 0.8vw 2vw; border-radius: 0.5vw; cursor: pointer; font-family: 'Poppins'; font-weight: 600; transition: 0.2s; }
.apply-mega-btn:hover { background: #FF1A1A; transform: translateY(-2px); }