/* سایدبار علاقه‌مندی‌ها */
.favorites-sidebar {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.favorites-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-btn);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(255, 78, 141, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.favorites-btn:hover {
    transform: scale(1.1);
}

.favorites-count {
    position: absolute;
    top: -5px;
    left: -5px;
    background: var(--primary-purple);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.favorites-container {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 20px;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.favorites-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.favorites-title {
    font-weight: 700;
    color: var(--primary-purple);
    margin: 0;
}

.close-favorites {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #6c757d;
    cursor: pointer;
}

.favorite-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
}

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

.favorite-image {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    overflow: hidden;
    margin-left: 15px;
}

.favorite-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.favorite-info {
    flex: 1;
}

.favorite-name {
    font-weight: 600;
    margin-bottom: 3px;
    font-size: 0.95rem;
}

.favorite-type {
    font-size: 0.8rem;
    color: #6c757d;
}

.remove-favorite {
    color: #dc3545;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

/* پشتیبانی آنلاین */
.support-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-bg);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(106, 48, 147, 0.4);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.support-btn:hover {
    transform: scale(1.1);
}

.chat-container {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 350px;
    height: 450px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

.chat-header {
    background: var(--gradient-bg);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-title {
    font-weight: 700;
    margin: 0;
    font-size: 1.1rem;
    text-align: center;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f9f9f9;
}

.message {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.message.support {
    align-items: flex-start;
}

.message.user {
    align-items: flex-end;
}

.message-content {
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 80%;
    font-size: 0.9rem;
}

.message.support .message-content {
    background: white;
    border: 1px solid #e1e1e1;
    border-bottom-right-radius: 5px;
}

.message.user .message-content {
    background: var(--gradient-btn);
    color: white;
    border-bottom-left-radius: 5px;
}

.message-time {
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 5px;
}

.chat-input {
    display: flex;
    padding: 15px;
    border-top: 1px solid #eee;
    background: white;
}

.chat-input input {
    flex: 1;
    border: 1px solid #e1e1e1;
    border-radius: 30px;
    padding: 10px 15px;
    margin-left: 10px;
    outline: none;
}

.chat-input button {
    background: var(--gradient-btn);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
}