* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #eaeded;
    color: #0f1111;
}


/* ================= NAVBAR ================= */

.navbar {
    min-height: 60px;
    width: 100%;
    background: #131921;
    color: white;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 0 10px;
}


/* Logo */

.nav-logo {
    width: 105px;
    min-width: 105px;
    height: 60px;

    display: flex;
    align-items: center;
}

.logo {
    width: 100px;
    height: 55px;

    background-image: url("images/amazonelogo.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    border: 1px solid transparent;
}

.logo:hover {
    border-color: white;
}


/* Navbar items */

.nav-item {
    border: 1px solid transparent;
    cursor: pointer;
}

.nav-item:hover {
    border-color: white;
}


/* Deliver */

.deliver {
    min-width: 90px;
    padding: 7px 5px;
}

.deliver p {
    color: #ccc;
    font-size: 12px;
    margin: 0;
}

.deliver div {
    font-size: 14px;
}


/* ================= SEARCH ================= */

.search-box {
    height: 40px;
    display: flex;
    flex: 1;
    max-width: 700px;
}

.search-box select {
    width: 65px;
    border: none;
    background: #f3f3f3;
    padding: 0 5px;
    cursor: pointer;
}

.search-box input {
    flex: 1;
    min-width: 0;

    height: 40px;

    border: none;
    outline: none;

    padding: 0 12px;
    font-size: 16px;
}

.search-icon {
    width: 50px;
    height: 40px;

    border: none;

    background: #febd69;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 20px;
    cursor: pointer;
}

.search-icon:hover {
    background: #f3a847;
}


/* Language */

.language {
    padding: 15px 8px;
}


/* Account */

.account {
    min-width: 120px;
    padding: 7px;
}

.account span,
.account strong,
.returns span,
.returns strong {
    display: block;
}

.account span,
.returns span {
    font-size: 12px;
}

.account strong,
.returns strong {
    font-size: 14px;
}


/* Returns */

.returns {
    min-width: 70px;
    padding: 7px;
}


/* Cart */

.cart {
    min-width: 65px;
    padding: 7px;

    display: flex;
    align-items: center;
    gap: 5px;
}

.cart i {
    font-size: 25px;
}

.cart strong {
    font-size: 14px;
}

#cartCount {
    color: #febd69;
}


/* ================= SECOND NAVBAR ================= */

.panel {
    min-height: 40px;

    background: #232f3e;
    color: white;

    display: flex;
    align-items: center;

    gap: 20px;
    padding: 0 15px;

    font-size: 14px;
    overflow-x: auto;
}

.panel > div {
    padding: 8px 5px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.panel > div:hover {
    border-color: white;
    cursor: pointer;
}

.panel-all {
    display: flex;
    align-items: center;
    gap: 5px;
}


/* ================= CAROUSEL ================= */

.carousel {
    position: relative;
}

.carousel img {
    width: 100%;
    height: 430px;
    object-fit: cover;
}


/* ================= SHOP ================= */

.shop {
    background: #eaeded;
    padding: 20px 0;
}

.shop-section {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;

    gap: 20px;

    padding: 0 20px;

    position: relative;
    z-index: 2;
}


/* Product Box */

.box {
    width: calc(25% - 20px);
    min-height: 400px;

    background: #fff;

    padding: 20px;

    overflow: hidden;
}

.box h2 {
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;

    margin-bottom: 20px;
}


/* Single image */

.single-image {
    width: 100%;
    height: 245px;

    object-fit: cover;

    display: block;
}

.student-image {
    height: 245px;
}


/* Blue buttons */

.blue {
    color: #2162a1;

    background: transparent;
    border: none;

    font-size: 13px;

    padding: 0;
    margin-top: 15px;

    cursor: pointer;

    text-align: left;
}

.blue:hover {
    color: #c7511f;
    text-decoration: underline;
}


/* Image grid */

.image-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px 10px;
}

.image-grid div {
    min-width: 0;
}

.image-grid img {
    width: 100%;
    height: 105px;

    object-fit: cover;

    display: block;
}

.image-grid p {
    font-size: 12px;
    margin-top: 6px;
    line-height: 1.2;
}


/* Second shop */

.second-shop {
    padding-top: 0;
}


/* Kitchen */

.kitchen-main {
    width: 100%;
    height: 150px;

    object-fit: contain;

    display: block;
}

.product-name {
    font-size: 12px;
    margin: 5px 0 15px;
}

.kitchen-items {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 8px;
}

.kitchen-items img {
    width: 100%;
    height: 75px;

    object-fit: cover;
}

.kitchen-items p {
    font-size: 11px;
    margin-top: 4px;
}


/* ================= FOOTER ================= */

footer {
    background: #232f3e;
    color: white;
}


/* Sign in */

.sign {
    background: white;
    color: #000;

    text-align: center;

    padding: 40px 20px;
}

.recommendation-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.sign-btn {
    background: #ffd814;

    border: 1px solid #fcd200;

    border-radius: 7px;

    padding: 7px 35px;

    font-weight: 600;

    cursor: pointer;
}

.sign-btn:hover {
    background: #f7ca00;
}

.new-customer {
    font-size: 11px;
    margin-top: 10px;
}

.new-customer span {
    color: #2162a1;
    cursor: pointer;
}


/* Back to top */

.back {
    width: 100%;

    border: none;

    background: #37475a;
    color: white;

    padding: 15px;

    font-size: 14px;

    cursor: pointer;
}

.back:hover {
    background: #485769;
}


/* Footer columns */

.footer-links {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 30px;

    padding: 50px 8%;
}

.footer-column h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-column p {
    color: #ddd;

    font-size: 14px;
    line-height: 1.9;
}


/* Footer bottom */

.footer-bottom {
    border-top: 1px solid #3a4553;

    min-height: 100px;

    display: flex;

    justify-content: center;
    align-items: center;

    gap: 30px;
}

.footer-bottom img {
    width: 100px;
    height: auto;
}

.footer-bottom button {
    background: transparent;

    color: #ddd;

    border: 1px solid #848688;

    padding: 8px 20px;

    border-radius: 3px;

    cursor: pointer;
}

.footer-bottom button:hover {
    border-color: white;
}


/* ================= RESPONSIVE ================= */

@media (max-width: 1100px) {

    .language {
        display: none;
    }

    .box {
        width: calc(50% - 20px);
    }

}


@media (max-width: 768px) {

    .navbar {
        flex-wrap: wrap;
        height: auto;
        padding: 5px;
    }

    .nav-logo {
        width: 90px;
        min-width: 90px;
    }

    .deliver {
        display: none;
    }

    .account,
    .returns {
        display: none;
    }

    .search-box {
        order: 5;
        flex-basis: 100%;
        max-width: 100%;

        margin: 5px 0;
    }

    .cart {
        margin-left: auto;
    }

    .panel {
        gap: 10px;
    }

    .carousel img {
        height: 250px;
    }

    .shop-section {
        flex-direction: column;
        align-items: center;
        padding: 0 15px;
    }

    .box {
        width: 100%;
        max-width: 500px;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
        padding: 40px 25px;
    }

}


@media (max-width: 500px) {

    .nav-logo {
        width: 75px;
        min-width: 75px;
    }

    .logo {
        width: 75px;
    }

    .carousel img {
        height: 190px;
    }

    .box {
        min-height: auto;
    }

    .single-image {
        height: 220px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .recommendation-title {
        font-size: 19px;
    }

    .footer-bottom {
        flex-direction: column;
        padding: 25px;
    }

}