* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: "Inter", sans-serif;
    background-color: #ffffff;
    color: #222222;
}


/* 
   HEADER
 */

header {
    width: 100%;
    height: 85px;
    background-color: #eaded2;
    display: flex;
    align-items: center;
    padding: 0 18px;
}


/* Logo */

header .logo {
    width: 115px;
    height: auto;
    display: block;
}


/* Navigation */

.navbar {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 55px;
    margin-left: 50px;
}

.navbar a {
    text-decoration: none;
    color: #3D622C;
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.navbar a:hover {
    color: #3D622C;
}


/* Profile */

.profile {
    width: 45px;

    display: flex;
    justify-content: center;
    align-items: center;
}

.profile i {
    font-size: 32px;
    color: #3D622C;

    cursor: pointer;
}


/* =========================
   MAIN
========================= */

main {
    width: 100%;
    background-color: #ffffff;
}


/* =========================
   FAVORITES HEADER
========================= */

.favorites-header {
    width: 100%;

    padding: 28px 40px 11px;

    background-color: #ffffff;

    border-bottom: 1px solid #eeeeee;
}

.favorites-header h1 {
    margin: 0 0 7px;

    color: #111111;

    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}

.favorites-header p {
    margin: 0;

    color: #777777;

    font-size: 10px;
    line-height: 1.3;
    font-weight: 500;
}


/* =========================
   FOOD CARDS
========================= */

.food-card {
    width: 100%;
    min-height: 148px;

    background-color: #ffffff;

    display: flex;
    align-items: center;

    gap: 37px;

    padding: 17px 26px;

    border-bottom: 1px solid #eeeeee;
}


/* =========================
   FOOD IMAGE
========================= */

.food-card > img {
    width: 140px;
    height: 116px;

    object-fit: cover;

    border-radius: 10px;

    flex-shrink: 0;
}


/* =========================
   FOOD INFORMATION
========================= */

.food-info {
    flex: 1;
    min-width: 0;
}

.food-info h2 {
    margin: 0 0 6px;

    color: #111111;

    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
}

.restaurant {
    margin: 0 0 9px;

    color: #777777;

    font-size: 10px;
    line-height: 1.2;
    font-weight: 500;
}

.food-details {
    display: flex;
    align-items: center;

    gap: 17px;

    color: #777777;

    font-size: 10px;
    line-height: 1.2;
    font-weight: 500;
}

.food-details span:not(:first-child)::before {
    content: "•";

    margin-right: 17px;

    color: #777777;
}

.price {
    color: #3D622C;

    font-weight: 700;
}


/* =========================
   RATING
========================= */

.rating {
    display: flex;
    align-items: center;

    gap: 6px;

    margin-top: 10px;

    color: #777777;

    font-size: 10px;
    line-height: 1.2;
}

.rating i {
    color: #ffc107;

    font-size: 11px;
}


/* =========================
   VIEW DETAILS BUTTON
========================= */

.details-btn {
    width: 120px;
    height: 34px;

    flex-shrink: 0;

    padding: 0;

    border: none;
    border-radius: 7px;

    background-color: #e6ebe3;

    color: #3D622C;

    font-family: "Inter", sans-serif;

    font-size: 9px;
    font-weight: 600;

    cursor: pointer;

    transition: background-color 0.2s ease;
}

.details-btn:hover {
    background-color: #dce4d8;
}


/* =========================
   FAVORITE HEART
========================= */

.favorite-btn {
    width: 35px;

    display: flex;
    justify-content: center;
    align-items: center;

    flex-shrink: 0;
}

.favorite-btn i {
    color: #d6336c;

    font-size: 24px;

    cursor: pointer;

    transition: transform 0.2s ease;
}

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


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    header {
        height: auto;
        min-height: 75px;

        padding: 12px 18px;

        flex-wrap: wrap;
    }

    header .logo {
        width: 105px;
    }

    .navbar {
        order: 3;

        width: 100%;

        margin: 10px 0 0;

        gap: 20px;

        justify-content: center;

        flex-wrap: wrap;
    }

    .profile {
        margin-left: auto;
    }

    .favorites-header {
        padding: 25px 20px 12px;
    }

    .food-card {
        min-height: 140px;

        gap: 20px;

        padding: 15px 20px;
    }

    .food-card > img {
        width: 125px;
        height: 105px;
    }

    .food-info h2 {
        font-size: 13px;
    }

    .food-details {
        gap: 10px;
        flex-wrap: wrap;
    }

    .details-btn {
        width: 110px;
    }

    .favorite-btn {
        width: 30px;
    }

    .favorite-btn i {
        font-size: 22px;
    }
}
