:root {
    --white: #fff;
    --orange: #FE6A0F;
    --gray: #979797;
    --dark-gray: #5F5F5F;
    --gray-black: #1F1F1F;
    --black: #141414;
}

* {
    padding: 0;
    margin: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    font-family: 'Inter';
    color: var(--white);
    background-color: var(--black);
    font-size: 18px;
}

.container {
    width: 100%;
    margin: auto;
    /*entre 1200 e 1240*/
    max-width: 1200px;
    padding: 0 20px;
}

/*  ===================== LOGO =====================  */

.logo a {
    color: var(--white);
    font-family: 'Calistoga';
    font-size: 36px;
    text-decoration: none;
}

.logo a span {
    color: var(--orange);
}

/*  ===================== HEADER =====================  */

header .container {
    display: flex;
    align-items: center;
    padding-top: 45px;
    padding-bottom: 45px;
    gap: 50px;
}

header nav {
    /*define o quanto os elementso filhos irão crescer até ocuparem o tamanho do pai. Quanto mairo o número, maior será o espaço que o elemento irá ocupar.*/
    /*flex-grow: 1;*/
    /*determina o máximo que um elemento poderá ser diminuido na tela*/
    /*flex-shrink: 1;*/
    /*determina qual será a largura miníma que um elemento terá*/
    /*flex-basis: 200px;*/
    /*é a abreviação (short) do flex-grow:1, flex-shrink:1 e flex-basis:0.*/
    flex: 1;
    display: flex;
    align-items: center;
}

header nav .leftside {
    display: flex;
    flex: 1;
    color: var(--white);
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 400;
    line-height: 33.6px; /* 186.667% */
}

header nav li {
    /*poderia ter sido no flexbox, mas é uma outra forma.*/
    margin: 0 30px;
}

header nav li a {
    color: var(--white);
    text-decoration: none;
}

header nav li a:hover {
    color: #999;
}

header nav .button {
    color: var(--white);
    border: 1px solid var(--white); 
    text-decoration: none;
    border-radius: 5px;
    padding: 15px 30px;
    cursor: pointer;
    text-align: center;
}

header nav .button:hover {
    color: #999;
    border-color: #999;
}

header .menu {
    display: none;
    flex: 1;
    justify-content: flex-end;
}

header .menu-icon {
    width: 32px;
    height: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

header .menu-icon div {
    height: 6px;
    background-color: var(--white);
}

/*  ===================== MENU =====================  */

.hero .container {
    display: flex;
}

.hero .leftside, .hero .rightside {
    flex: 1;
}

.hero .leftside {
    padding-bottom: 150px;
}

.hero .rightside {
    text-align: center;
}

.hero .rightside img {
    width: auto;
    height: 600px;
}

h1 {
    font-family: 'Calistoga';
    font-size: 72px;
    line-height: 74px;
    margin-top: 50px;
}

.hero p {
    font-size: 20px;
    line-height: 26px;
    margin: 40px 0;
}

.hero .button {
    background: var(--orange);
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    padding: 15px 80px;
}

.hero .button:hover {
    opacity: 0.8;
}

/*  ===================== PESQUISA =====================  */

.search {
    background: var(--gray-black);
    padding: 80px 0;
    margin-top: -100px;
}

.search .title {
    font-size: 32px;
    font-weight: 500;
}


.search .sides {
    display: flex;
    margin-top: 30px;
    gap: 100px;
}

.search .leftside,
.search .rightside {
    flex: 1;
}

.search input,
.search select {
    width: 100%;
    background-color: #2B2B2B;
    color: var(--white);
    font-size: 24px;
    /*retira o comprotamento padrão do navegador de adicionar uma borda ao elemento quando for selecionado*/
    outline: none;
    padding: 20px;
    border: 0;
    border-radius: 5px;
}

.search input {
    background-image: url(../assets/photos/searchIcon.png);
    background-repeat: no-repeat;
    background-position: 20px center;
    padding-left: 60px;
}

.search select {
    border-right: 20px solid transparent;
}

/*  ===================== BURGUERS =====================  */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.product-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    position: relative;
}

.product-item:hover {
    opacity: 0.8;
}

.product-item .warning {
    position: absolute;
    top: 30px;
    left: 30px;
    background-color: var(--orange);
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
    padding: 10px 15px;
    border-radius: 4px;
}

.product-item .photo {
    text-align: center;
    background-color: #2B2B2B;
    padding-top: 30px;
}

.product-item .photo img {
    max-width: 100%;
}

.product-item .info {
    background-color: #1F1F1F;
    padding: 60px 30px 30px 30px;
    margin-top: -50px;
}

.product-item .product-category {
    color: var(--white);
    font-size: 18px;
    font-weight: 500;
}

.product-item .product-name {
    color:var(--white);
    font-family: "Calistoga";
    font-size: 32px;
    margin: 10px 0;
}

.product-price {
    color: var(--orange);
    font-size: 32px;
    font-weight: bold;
}

/*  ===================== FOOTER =====================  */

footer {
    background: var(--gray-black);
}

footer .container {
   padding-top: 80px;
   padding-bottom: 80px;
   display: flex;
   justify-content: space-between;
   align-items: center;
}

footer .copyrights {
    font-size: 24px;
    color: #5F5F5F;
}

footer .copyrights {
    color: #5F5F5F;
    text-decoration: none;
}

footer .copyrights a:hover {
    text-decoration: underline;
}
