.header-right {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.favorite-header-actions {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.favorite-header-btn {
    align-items: center;
    background: #f8fbff;
    border: 1px solid #dbe8f5;
    border-radius: 999px;
    color: #0f172a;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    gap: 7px;
    height: 36px;
    justify-content: center;
    line-height: 1;
    padding: 0 10px;
    position: relative;
    transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
    white-space: nowrap;
}

.favorite-header-btn i {
    color: #0f7cc2;
    font-size: 14px;
}

.favorite-header-btn:hover,
.favorite-header-btn:focus {
    background: #0f7cc2;
    border-color: #0f7cc2;
    box-shadow: 0 10px 22px rgba(15, 124, 194, .2);
    color: #fff;
    outline: 0;
    transform: translateY(-1px);
}

.favorite-header-btn:hover i,
.favorite-header-btn:focus i {
    color: #fff;
}

.favorite-header-count {
    align-items: center;
    background: #ef4444;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    height: 20px;
    justify-content: center;
    min-width: 20px;
    padding: 0 5px;
}

.favorite-viewer {
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity .2s ease;
    z-index: 1000000;
}

.favorite-viewer.is-open {
    opacity: 1;
    pointer-events: auto;
}

.favorite-viewer-backdrop {
    background: rgba(15, 23, 42, .46);
    inset: 0;
    position: absolute;
}

.favorite-viewer-panel {
    background: #fff;
    border-left: 1px solid #dbe8f5;
    box-shadow: -22px 0 50px rgba(15, 23, 42, .2);
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 430px;
    position: absolute;
    right: 0;
    top: 0;
    transform: translateX(100%);
    transition: transform .24s ease;
    width: min(430px, 100%);
}

.favorite-viewer.is-open .favorite-viewer-panel {
    transform: translateX(0);
}

.favorite-viewer-head {
    align-items: center;
    border-bottom: 1px solid #e5edf5;
    display: flex;
    justify-content: space-between;
    padding: 18px 18px 16px;
}

.favorite-viewer-eyebrow {
    color: #0f7cc2;
    display: block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    line-height: 1;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.favorite-viewer-head h3 {
    color: #0f172a;
    font-size: 21px;
    font-weight: 900;
    line-height: 1.25;
    margin: 0;
}

.favorite-viewer-close {
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #dbe8f5;
    border-radius: 50%;
    color: #0f172a;
    cursor: pointer;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.favorite-viewer-close:hover {
    background: #0f172a;
    color: #fff;
}

.favorite-viewer-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 18px 20px;
}

.favorite-viewer-empty {
    align-items: center;
    background: #f8fbff;
    border: 1px dashed #bfd6ea;
    border-radius: 8px;
    color: #64748b;
    display: flex;
    font-size: 14px;
    font-weight: 800;
    justify-content: center;
    min-height: 150px;
    padding: 20px;
    text-align: center;
}

.favorite-viewer-list {
    display: grid;
    gap: 12px;
}

.favorite-viewer-item {
    align-items: center;
    background: #fff;
    border: 1px solid #e2edf7;
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: 82px minmax(0, 1fr);
    padding: 10px;
}

.favorite-viewer-item-image {
    align-items: center;
    background: #f8fbff;
    border: 1px solid #e5edf5;
    border-radius: 7px;
    display: flex;
    height: 82px;
    justify-content: center;
    overflow: hidden;
    width: 82px;
}

.favorite-viewer-item-image img {
    height: 100%;
    object-fit: contain;
    padding: 5px;
    width: 100%;
}

.favorite-viewer-item-title {
    color: #0f172a;
    display: block;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 6px;
    text-decoration: none;
}

.favorite-viewer-item-title:hover {
    color: #0f7cc2;
}

.favorite-viewer-item-price {
    color: #0f7cc2;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 9px;
}

.favorite-viewer-actions {
    display: flex;
    gap: 8px;
}

.favorite-viewer-detail,
.favorite-viewer-remove {
    align-items: center;
    border-radius: 6px;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    height: 32px;
    justify-content: center;
    line-height: 1;
    padding: 0 10px;
    text-decoration: none;
}

.favorite-viewer-detail {
    background: #0f7cc2;
    color: #fff;
}

.favorite-viewer-detail:hover {
    background: #111827;
    color: #fff;
}

.favorite-viewer-remove {
    background: #fff5f5;
    border: 1px solid #fecaca;
    color: #dc2626;
    cursor: pointer;
}

.favorite-viewer-remove:hover {
    background: #dc2626;
    color: #fff;
}

body.favorite-viewer-open {
    overflow: hidden;
}

@media (max-width: 1399px) {
    .favorite-header-label {
        display: none;
    }

    .favorite-header-btn {
        border-radius: 50%;
        height: 36px;
        padding: 0;
        width: 36px;
    }

    .favorite-header-count {
        position: absolute;
        right: -6px;
        top: -7px;
    }
}

@media (max-width: 991px) {
    .header-right {
        gap: 8px;
    }
}

@media (max-width: 575px) {
    .favorite-viewer-panel {
        max-width: none;
        width: 100%;
    }
}
