@import url('https://fonts.googleapis.com/css2?family=Calistoga&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    list-style: none;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}
body {
    font-family: 'Inter';
    font-size: 18px;
    background-color: #141414;
    color: #FFF;
}

.container {
    width: 100%;
    margin: auto;
    max-width: 1200px;
    padding: 0 20px;
}

.logo a {
    font-family: 'Calistoga';
    font-size: 36px;
    color: #FFF;
    text-decoration: none;
}
.logo a span {
    color: #FE6A0F;
}

/* HEADER */
header .container {
    display: flex;
    align-items: center;
    padding-top: 45px;
    padding-bottom: 45px;
    gap: 50px;
}
header nav {
    flex: 1;
    display: flex;
    align-items: center;
}
header nav .leftside {
    display: flex;
    flex: 1;
}
header nav li {
    margin: 0 30px;
}
header nav li a {
    color: #FFF;
    text-decoration: none;
}
header nav li a:hover {
    color: #999;
}

header nav .button {
    display: block;
    border: 1px solid #FFF;
    padding: 15px 30px;
    border-radius: 5px;
    color: #FFF;
    text-decoration: none;
}
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: #FFF;
}

/* HERO */
.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;
}

.hero 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 {
    display: inline-block;
    background-color: #FE6A0F;
    font-weight: 500;
    color: #FFF;
    padding: 15px 80px;
    border-radius: 5px;
    text-decoration: none;
}

.hero .button:hover {
    opacity: 0.8;
}

/* SEARCH */
.search {
    background-color: #1F1F1F;
    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: #FFF;
    font-size: 24px;
    outline: none;
    padding: 20px;
    border: 0;
    border-radius: 5px;
}
.search input {
    background-image: url(../searchIcon.png);
    background-repeat: no-repeat;
    background-position: 20px center;
    padding-left: 60px;
}
.search select {
    border-right: 20px solid transparent;
}

/* PRODUCTS */
.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: #FE6A0F;
    font-size: 16px;
    font-weight: 500;
    color: #FFF;
    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: #FFF;
    font-size: 18px;
    font-weight: 500;
}
.product-item .product-name {
    font-family: 'Calistoga';
    font-size: 32px;
    color: #FFF;
    margin: 10px 0;
}
.product-item .product-price {
    font-size: 32px;
    font-weight: bold;
    color: #FE6A0F;
}

/* FOOTER */
footer {
    background-color: #1F1F1F;
    color: #5F5F5F;
}

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 a {
    color: #5F5F5F;
    text-decoration: none;
}
footer .copyrights a:hover {
    text-decoration: underline;
}

@media (max-width: 820px) {
    header nav {
        display: none;
    }

    header .menu {
        display: flex;
    }
    
    .hero .container {
        flex-direction: column;
    }

    .hero .leftside {
        text-align: center;
        padding-bottom: 40px;
    }
    .hero .rightside {
        padding-bottom: 30px;
    }
    .hero .rightside img {
        height: 300px;
    }
    .hero h1 {
        font-size: 44px;
        line-height: 50px;
    }

    .search {
        padding-bottom: 30px;
    }
    .search .title {
        text-align: center;
    }
    .search .sides {
        flex-direction: column;
        gap: 20px;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    footer .container {
        flex-direction: column;
        gap: 20px;
    }
}