* {
    margin: 0;
    font-family: Arial;
    box-sizing: border-box;
}
.navbar {
    height: 60px;
    background-color: #0f1111;
    color: #fff;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}
.nav-logo {
    height: 50px;
    width: 114px;
}
.logo {
    background-image: url("amazon_logo.png");
    height: 50px;
    width: 114px;
    background-size: cover;
}
.border {
    border: 1.5px solid transparent;
}
.border:hover {
    border: 1.5px solid #fff;
}
.add-icon {
    display: flex;
    align-items: center;
}
/* .nav-loc {

} */

.add-first {
    color: #cccccc;
    font-size: 0.8rem;
    margin: 0 0 0 20px;
}
.add-sec {
    font-size: 1rem;
}
.nav-search {
    display: flex;
    justify-content: space-evenly;
    background-color: aqua;
    width: 620px;
    height: 40px;
    border-radius: 4px;
}
.nav-search:hover {
    border: 2px #f8af50 solid;
}
.search-select {
    background-color: #f3f3f3;
    border: 1px solid #d4cdcd;
    width: 50px;
    text-align: center;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}
.search-input {
    width: 100%;
    font-size: 1rem;
    border: none;
    padding-left: 10px;
}
.search-icon {
    width: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    background-color: #f5b460;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    color: #0f1111;
}
span {
    font-size: 0.7rem;
}
.nav-sec {
    font-size: 0.85rem;
    font-weight: 600;
}

.nav-cart i {
    font-size: 28px;
}
.nav-cart {
   font-size: 0.85rem;
    font-weight: 600;
}

/* panel */

.panel {
    background-color: #232f3e;
    height: 38px;
    color: #fff;
    display: flex;
    padding-left: 11px;
    align-items: center;

}
.panel-opt p{
    display: inline;
    margin-right: 15px;
}
.panel-opt{    
    font-size: 0.85rem;
}
.panel-all span{
    margin-right: 20px;
    font-size: 0.85rem;
}

/* hero section */

.hero-section {
    background-image: url(hero_image.jpg);
    height: 350px;
   background-size: cover;
   display: flex;
   justify-content: center;
   align-items: flex-end;  
}
.hero-box {
    background-color: #fff;
    color: #000;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    width: 90%;
    margin: 0 0 25px 0;
}

.hero-box a{
    color: #2162a1;
    text-decoration: none;
}
.hero-box a:hover {
    text-decoration: underline;
}

/* shop section */

.shop-section{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    background-color: #d2dddf; 
    row-gap: 24px;
    padding: 24px 0px;
}
.box {
    height: 400px;
    width: 23%;
    background-color: #fff;
    padding: 20px 0px 15px;
}
.box-img {
    height: 300px;
    background-size: cover;
}
.box-content{
    margin: 0px 16px;
}
.box-content h2 {
    font-size: 21px;
    padding: 0px 0px 5px 0px;
    font-weight: 600;
}
.box-content p {
    padding-top: 18px;
    font-size: 0.85rem;
}
.box-content a{
    text-decoration: none;
    color: #2162a1;
}

/* footer */

.foot-panel1{
    background-color: #374758;
    color: #fff;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
}
.foot-panel2{
    background-color: #222f3d;
    color: #fff;
    display: flex;
    justify-content: space-evenly;
}
ul {
    margin: 20px 0px;
}
ul a {
    display: block;
    font-size: 0.85rem;
    margin-top: 10px;
    color: #dddddd;
}
.foot-panel3{
    background-color: #222f3d ;
    border-top: #dddddd 0.5px solid;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.foot-logo {
    background-image: url("amazon_logo.png");
    background-size: cover;
    height: 50px;
    width: 100px;
}
.foot-panel4 {
    background-color: #0f1111;
    color: #fff;
    font-size: 0.7rem;
    text-align: center;
    height: 80px;
}
.pages{
    padding-top: 25px;
}
.pages a {
    padding: 0px 6px;
}
.copyright {
    padding-top: 5px;
}


/* Tablet */
@media (max-width: 768px) {

    .navbar {
        flex-wrap: wrap;
        height: auto;
        padding: 10px;
        gap: 8px;
    }

    .nav-search {
        width: 100%;
        order: 3;
        margin-top: 5px;
    }

    .panel {
        overflow-x: auto;
        white-space: nowrap;
    }

    .hero-section {
        height: 280px;
    }

    .hero-box {
        width: 94%;
        font-size: 0.8rem;
        text-align: center;
    }

    .shop-section {
        padding: 20px 10px;
        gap: 20px;
    }

    .box {
        width: 45%;
        height: auto;
        min-height: 380px;
    }

    .box-img {
        height: 260px;
    }

    .foot-panel2 {
        flex-wrap: wrap;
        justify-content: space-around;
    }
}


/* Mobile */
@media (max-width: 480px) {

    .navbar {
        padding: 8px;
    }

    .nav-logo {
        width: 100px;
    }

    .logo {
        width: 100px;
    }

    .nav-search {
        height: 38px;
    }

    .search-select {
        width: 45px;
        font-size: 0.75rem;
    }

    .search-input {
        font-size: 0.9rem;
    }

    .search-icon {
        width: 40px;
    }

    .nav-signin,
    .nav-loc {
        display: none;
    }

    .panel {
        height: 38px;
        padding-left: 8px;
    }

    .panel-opt p {
        font-size: 0.75rem;
        margin-right: 8px;
    }

    .panel-all span {
        font-size: 0.75rem;
        margin-right: 12px;
    }

    .hero-section {
        height: 200px;
    }

    .hero-box {
        height: auto;
        min-height: 40px;
        width: 94%;
        padding: 8px;
        margin-bottom: 15px;
        font-size: 0.7rem;
    }

    .shop-section {
        padding: 15px 0;
        gap: 15px;
    }

    .box {
        width: 90%;
        min-height: auto;
        padding: 15px 0;
    }

    .box-img {
        height: 250px;
    }

    .box-content h2 {
        font-size: 19px;
    }

    .box-content p {
        font-size: 0.8rem;
    }

    .foot-panel2 {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    ul {
        margin: 15px 0;
        padding: 0;
    }

    .foot-panel3 {
        height: 60px;
    }

    .foot-logo {
        height: 40px;
        width: 85px;
    }

    .foot-panel4 {
        height: auto;
        padding-bottom: 20px;
    }
}