.favorites-container {
    max-width: 1200px;
    margin: 120px auto 60px;
    padding: 0 20px;
}

.favorites-header {
    display: block;
    margin-bottom: 30px;
}

html body .tab-content.active, .tab-button.active {
    transform: none;
  }

.favorites-header h1 {
    font-size: 32px;
    margin: 0;
    color: #333;
    font-family: "Ubuntu", sans-serif;
    font-weight: 700;
}

.tab-container {
    display: block;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tab-button {
    padding: 12px 24px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    transition: all 0.3s;
    display: inline-block;
    vertical-align: top;
}

.tab-button.active, .tab-button.active:hover {
    color: #000;
    background:  #ffcc29;
}

.tab-button:hover {
    background-color: #f9f9f9;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.favorites-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.favorite-card {
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.favorite-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.favorite-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    padding: 10px;
}

.favorite-content {
    padding: 15px;
}

.favorite-name {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.favorite-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.favorite-actions button {
    padding: 8px 16px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.favorite-actions button:hover {
    background-color: #f0f0f0;
}

.favorite-actions button.view {
    background-color: #ffcc29;
    border-color: #ffcc29;
    color: #333;
}

.favorite-actions button.view:hover {
    background-color: #e6b800;
}

.favorite-actions button.remove {
    color: #ff4757;
    border-color: #ff4757;
}

.favorite-actions button.remove:hover {
    background-color: #ff4757;
    color: #fff;
}

.favorite-date {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state p {
    margin-top: 10px;
    font-size: 16px;
}

.empty-state img {
    width: 160px;
    height: auto;
    opacity: 0.5;
}

/* Badge indicating item type */
.favorite-type {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    color: #fff;
    font-weight: 500;
}

.favorite-type.product {
    background-color: #1693A5;
}

.favorite-type.shop {
    background-color: #FF0066;
}

.favorite-type.real-estate {
    background-color: #28a745;
}

@media screen and (max-width: 768px) {
    .favorites-container {
        margin-top: 100px;
    }
    
    .favorites-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .favorites-list {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media screen and (max-width: 480px) {
    .favorites-list {
        grid-template-columns: 1fr;
    }
    
    .tab-button {
        padding: 10px 15px;
        font-size: 14px;
    }
}
