@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body{
    background: #f7f4ee;
}

/* NAVBAR */

.navbar{
    width: 90%;
    margin: 25px auto;
    background: #0c4b16;
    border-radius: 20px;
    padding: 15px 30px;

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

.logo img{
    width: 150px;
}

.nav-links{
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-links a{
    color: white;
    text-decoration: none;
    transition: .2s;
}

.nav-links a:hover{
    color: #ff7724;
}

/* HERO */

.delivery-hero{
    width: 90%;
    margin: auto;
    margin-top: 30px;

    height: 300px;

    border-radius: 30px;

    background:
    linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)),
    url('https://images.unsplash.com/photo-1514933651103-005eec06c04b?q=80&w=1400');

    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;

    padding-left: 60px;

    color: white;
}

.hero-content h1{
    font-size: 55px;
    margin-bottom: 10px;
}

.hero-content p{
    font-size: 18px;
    max-width: 500px;
}

/* DELIVERY */

.delivery-container{
    width: 90%;
    margin: 60px auto;

    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* PRODUTOS */

.foods-area{
    flex: 3;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
    gap: 25px;
}

.food-card{
    background: white;
    border-radius: 25px;
    overflow: hidden;

    box-shadow: 0 5px 20px rgba(0,0,0,.08);

    transition: .3s;
}

.food-card:hover{
    transform: translateY(-8px);
}

.food-card img{
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.food-content{
    padding: 20px;
}

.food-content h3{
    margin-bottom: 10px;
}

.food-content p{
    color: #666;
    margin-bottom: 20px;
}

.food-bottom{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.food-bottom span{
    font-size: 22px;
    font-weight: bold;
}

.food-bottom button{
    background: #ff7724;
    color: white;

    border: none;

    padding: 10px 18px;

    border-radius: 30px;

    cursor: pointer;
}

/* CARRINHO */

.cart{
    flex: 1;

    background: white;

    padding: 30px;

    border-radius: 25px;

    box-shadow: 0 5px 20px rgba(0,0,0,.08);

    position: sticky;
    top: 30px;
}

.cart h2{
    margin-bottom: 25px;

    color: #0c4b16;
}

.cart-item{
    display: flex;
    justify-content: space-between;

    margin-bottom: 20px;
}

.total{
    display: flex;
    justify-content: space-between;

    margin-top: 30px;
    margin-bottom: 30px;

    font-size: 22px;
    font-weight: bold;
}

.finalizar-btn{
    width: 100%;

    background: #0c4b16;

    color: white;

    border: none;

    padding: 15px;

    border-radius: 30px;

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

    cursor: pointer;
}

/* RESPONSIVO */

@media(max-width: 900px){

    .delivery-container{
        flex-direction: column;
    }

    .cart{
        width: 100%;
    }

    .hero-content h1{
        font-size: 38px;
    }

}

.empty-cart {
  color: #777;
  font-size: 14px;
  padding: 10px 0;
}

.remove-item {
  border: none;
  background: transparent;
  color: #c0392b;
  font-size: 22px;
  cursor: pointer;
  margin-left: 8px;
}


.order-form {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.order-form h3 {
  color: #2d1609;
  font-size: 18px;
}

.order-form input,
.order-form textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 14px;
  outline: none;
  background: #fff;
}

.order-form textarea {
  min-height: 90px;
  resize: vertical;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
}

.cart-item small {
  color: #777;
}
