* {
    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, #0e0606 0%, #150404 100%);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 12px 32px rgba(0,0,0,0.55);
    border: 1px solid #2a0d0d;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.35s ease, border-color 0.3s;
    animation: fadeIn 0.45s ease backwards;
    display: flex;
    flex-direction: column;
}

.fav-time-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    color: #ddd;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.08);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    pointer-events: none;
}
.fav-time-badge i { color: #FF6B6B; font-size: 0.7rem; }

.fav-quality-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 3;
    background: rgba(15,15,15,0.92);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,215,0,0.25);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(6px);
}
.fav-quality-badge i { color: #FFD700; font-size: 0.7rem; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.favorite-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(230,0,0,0.22), 0 0 0 1px rgba(230,0,0,0.25);
    border-color: rgba(230,0,0,0.4);
}

.fav-like {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1rem;
    cursor: pointer;
    z-index: 4;
    transition: all 0.25s ease;
    color: #fff;
    padding: 0;
}

.fav-like.active {
    background: linear-gradient(135deg, #FF1A1A, #C4001D);
    box-shadow: 0 4px 14px rgba(255,26,26,0.5);
    border-color: rgba(255,77,77,0.4);
}

.fav-like.active:hover {
    background: linear-gradient(135deg, #555, #333);
    transform: scale(1.08) rotate(-8deg);
    box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}
.fav-like.active:hover i::before { content: "\f00d"; }

.fav-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #060606;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.fav-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.favorite-card:hover .fav-image img {
    transform: scale(1.06);
}

.fav-content {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.fav-category {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
}

.fav-content h3 {
    font-size: 0.98rem;
    font-weight: 600;
    color: #f5f5f5;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.fav-note-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    background: rgba(255,255,255,0.025);
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 4px;
}
.fav-note-box:hover { border-color: rgba(230,0,0,0.45); background: rgba(230,0,0,0.05); }
.fav-note-box i { color: #888; font-size: 0.78rem; flex-shrink: 0; }
.fav-note-box .fav-note-text {
    font-size: 0.75rem;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}
.fav-note-box.has-note {
    background: linear-gradient(135deg, rgba(255,215,0,0.08), rgba(255,215,0,0.02));
    border: 1px solid rgba(255,215,0,0.25);
    border-style: solid;
}
.fav-note-box.has-note i { color: #FFD700; }
.fav-note-box.has-note .fav-note-text { color: #ddd; font-style: italic; }

.fav-bottom {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.fav-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}
.fav-price small {
    font-size: 0.7rem;
    color: #FF1A1A;
    font-weight: 600;
    margin-left: 2px;
}

.fav-actions-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fav-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #aaa;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    flex-shrink: 0;
    font-size: 0.78rem;
    padding: 0;
}
.fav-icon-btn:hover {
    background: rgba(230,0,0,0.12);
    border-color: rgba(230,0,0,0.4);
    color: #fff;
    transform: translateY(-1px);
}
.fav-icon-btn img { width: 18px; height: 18px; object-fit: contain; border-radius: 3px; }
.fav-icon-btn.fav-kakobuy:hover {
    background: rgba(255,193,7,0.12);
    border-color: rgba(255,193,7,0.45);
    transform: translateY(-1px) scale(1.05);
}

.fav-btn {
    background: linear-gradient(135deg, #E60000, #8A0000);
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}
.fav-btn:hover {
    background: linear-gradient(135deg, #FF1A1A, #C4001D);
    box-shadow: 0 4px 14px rgba(255,26,26,0.45);
    transform: translateY(-1px);
}

.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); }

/* ==========================================
   FAVORITES - SUMMARY BAR
   ========================================== */
.fav-summary-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    padding: 18px 26px;
    margin-bottom: 28px;
    background: linear-gradient(135deg, #0e0606 0%, #1a0808 100%);
    border: 1px solid rgba(230,0,0,0.18);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.4), inset 0 0 30px rgba(230,0,0,0.04);
    position: relative;
    overflow: hidden;
}
.fav-summary-bar::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, #FF1A1A, transparent);
}

.fav-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 18px 6px 0;
    border-right: 1px solid rgba(255,255,255,0.06);
    flex: 1;
    min-width: 140px;
}
.fav-stat:last-of-type { border-right: none; }

.fav-stat > i {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(230,0,0,0.18), rgba(230,0,0,0.04));
    border: 1px solid rgba(230,0,0,0.25);
    display: grid;
    place-items: center;
    color: #FF4D4D;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.fav-stat-text { display: flex; flex-direction: column; line-height: 1.2; }
.fav-stat-num {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}
.fav-stat-num small {
    font-size: 0.75rem;
    color: #FF1A1A;
    font-weight: 600;
    margin-left: 2px;
}
.fav-stat-lbl {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 500;
    margin-top: 2px;
}

.fav-summary-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.fav-summary-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    color: #ccc;
    padding: 9px 16px;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}
.fav-summary-btn:hover {
    background: rgba(230,0,0,0.12);
    border-color: rgba(230,0,0,0.5);
    color: #fff;
    transform: translateY(-1px);
}

/* ==========================================
   FAVORITES - EMPTY STATE
   ========================================== */
.fav-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 30px;
    background: linear-gradient(180deg, rgba(230,0,0,0.04), transparent);
    border-radius: 20px;
    border: 1px dashed rgba(230,0,0,0.2);
}
.fav-empty-icon {
    width: 100px; height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230,0,0,0.18), transparent 70%);
    display: grid; place-items: center;
    margin: 0 auto 24px;
}
.fav-empty-icon i { font-size: 3rem; color: #FF1A1A; }
.fav-empty-state h2 { font-size: 1.6rem; color: #fff; margin: 0 0 10px; font-weight: 700; }
.fav-empty-state p { color: #aaa; max-width: 480px; margin: 0 auto 28px; line-height: 1.6; font-size: 0.95rem; }
.fav-empty-actions { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.fav-empty-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    font-size: 0.9rem;
}
.fav-empty-btn.primary {
    background: linear-gradient(135deg, #E60000, #8A0000);
    color: #fff;
    border: 1px solid #FF1A1A;
}
.fav-empty-btn.primary:hover { box-shadow: 0 6px 20px rgba(230,0,0,0.45); transform: translateY(-2px); }
.fav-empty-btn.outline {
    background: transparent;
    color: #ccc;
    border: 1px solid #333;
}
.fav-empty-btn.outline:hover { border-color: #FF1A1A; color: #fff; background: rgba(255,26,26,0.05); }

.fav-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 70px 20px;
    color: #888;
}
.fav-no-results i { font-size: 2.8rem; opacity: 0.45; margin-bottom: 15px; }
.fav-no-results h3 { color: #fff; font-size: 1.2rem; margin: 0 0 8px; }
.fav-no-results p { font-size: 0.9rem; }

/* ==========================================
   FAVORITES - NOTE MODAL
   ========================================== */
.fav-note-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    z-index: 20000;
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    padding: 20px;
}
.fav-note-overlay.show { opacity: 1; }
.fav-note-modal {
    background: linear-gradient(180deg, #110707, #1a0808);
    border: 1px solid rgba(230,0,0,0.3);
    border-radius: 18px;
    padding: 24px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 30px 80px rgba(0,0,0,0.7);
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fav-note-overlay.show .fav-note-modal { transform: scale(1); }

.fav-note-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.fav-note-modal-header h3 {
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}
.fav-note-modal-header h3 i { color: #FFD700; }
.fav-note-close {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.2s ease;
}
.fav-note-close:hover { background: rgba(230,0,0,0.15); border-color: rgba(230,0,0,0.5); color: #fff; }

.fav-note-product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255,255,255,0.025);
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}
.fav-note-product img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.fav-note-prod-cat { font-size: 0.7rem; color: #888; text-transform: uppercase; letter-spacing: 0.5px; }
.fav-note-prod-name { color: #fff; font-weight: 600; font-size: 0.92rem; line-height: 1.3; margin-top: 3px; }

.fav-note-textarea {
    width: 100%;
    min-height: 110px;
    background: #060202;
    border: 1px solid #2a0d0d;
    border-radius: 10px;
    color: #f1f1f1;
    padding: 12px 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s ease;
}
.fav-note-textarea:focus { border-color: #FF1A1A; box-shadow: 0 0 0 3px rgba(255,26,26,0.1); }

.fav-note-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}
.fav-note-btn {
    padding: 10px 18px;
    border-radius: 9px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}
.fav-note-btn.outline { background: transparent; border-color: #333; color: #ccc; }
.fav-note-btn.outline:hover { border-color: #555; color: #fff; }
.fav-note-btn.primary { background: linear-gradient(135deg, #E60000, #8A0000); color: #fff; border-color: #FF1A1A; }
.fav-note-btn.primary:hover { box-shadow: 0 4px 14px rgba(230,0,0,0.45); transform: translateY(-1px); }
.fav-note-btn.danger { background: transparent; border-color: rgba(230,0,0,0.4); color: #FF6B6B; }
.fav-note-btn.danger:hover { background: rgba(230,0,0,0.12); border-color: #FF1A1A; }

/* ==========================================
   FAVORITES - TOAST
   ========================================== */
.fav-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translate(-50%, 200%);
    background: linear-gradient(135deg, #1a0808, #0a0303);
    border: 1px solid rgba(230,0,0,0.4);
    color: #fff;
    padding: 12px 22px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 30000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 20px rgba(230,0,0,0.25);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}
.fav-toast.show { transform: translate(-50%, 0); }

/* Floating action bar - delete button */
.fab-btn.danger {
    background: rgba(230,0,0,0.12);
    border: 1px solid rgba(230,0,0,0.4);
    color: #FF6B6B;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.fab-btn.danger:hover {
    background: rgba(230,0,0,0.25);
    color: #fff;
    transform: translateY(-1px);
}

/* ==========================================
   FAVORITES - RESPONSIVE OVERRIDES
   ========================================== */
@media (max-width: 1024px) {
    .fav-summary-bar { padding: 16px 20px; gap: 14px; }
    .fav-stat { min-width: 120px; padding: 4px 14px 4px 0; }
    .fav-stat > i { width: 38px; height: 38px; font-size: 0.95rem; }
    .fav-stat-num { font-size: 1.15rem; }
    .fav-summary-actions { width: 100%; margin-left: 0; }
}
@media (max-width: 768px) {
    .fav-summary-bar { flex-direction: column; align-items: stretch; gap: 0; padding: 14px; }
    .fav-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); padding: 10px 0; min-width: 0; }
    .fav-stat:last-of-type { border-bottom: none; }
    .fav-summary-actions { display: flex; gap: 8px; padding-top: 12px; }
    .fav-summary-btn { flex: 1; justify-content: center; font-size: 0.78rem; padding: 9px 12px; }
    .fav-empty-state { padding: 50px 20px; }
    .fav-empty-state h2 { font-size: 1.3rem; }
    .fav-time-badge { font-size: 0.65rem; padding: 3px 7px; top: 10px; left: 10px; }
    .fav-quality-badge { font-size: 0.7rem; padding: 3px 8px; bottom: 8px; left: 8px; }
    .fav-bottom { flex-wrap: wrap; }
    .fav-actions-row { gap: 5px; }
    .fav-icon-btn { width: 30px; height: 30px; }
}
