* {
    margin: 0px;
    font-family: Arial;
    border: border-box;
}

.Navbar {
    height: 65px;
    background-color: #0f1111;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.logo {
    background-image: url(Amazon-logo.png);
    background-size: cover;
    height: 60px;
    width: 100%;
    background-color: #0f1111;
}

.nav-logo {
    height: 60px;
    width: 150px;
}

.border {
    border: 1px solid transparent;
}
.border:hover {
    border: 2px solid white;
}
.add-icon {
    display: flex;
    align-items: center;
}

/**box2**/
.add-first {
    color: #cccccc;
    font: size 0.5rem; 
    margin-left: 15px;
}
#2 {
    font-size: 2rem;
    margin-left: 3px;
}

/**box3**/

.nav-search {
    display: flex;
    justify-content: space-evenly;
    background-color: pink;
    width: 620px;
    height: 40px;
     border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}
.nav-search:hover{
    border: 2px solid orange;
}
.search-select{
    background-color: #f3f3f3;
    width: 50px;
    text-align: center;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    border: none;
}

.search-input {
    width: 100%;
    font-size: 1rem;
    border: none;
}
.search-icon {
    width: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    background-color: #febd68;
    color: #0f1111;
}

/**  box 4  **/

span {
    font-size: 0.7rem;
}

.nav-signin {
    font-size: 0.85rem;
    font-weight: 700;
}

/**  box 5  **/


span {
    font-size: 0.7rem;
}

.nav-return {
    font-size: 0.85rem;
    font-weight: 700;
}

/**  box 6  **/

.nav-cart i {
    font-size: 30px;
}

.nav-cart {
    font-size: 0.85rem;
}

/**  Panel  **/

.panel{
    height: 40px;
    background-color: #222f3d;
    display: flex;
    color:white;
    align-items: center;
    justify-content: space-evenly;
}
.panel-ops p {
    display: inline;
    margin-left: 15px;
}
.panel-ops {
    width: 70%;
    font-size: 0.85rem;
}
.panel-deals {
    font-size: 0.9rem;
    font-weight: 700;
}

/**  hero section  **/
.hero-sec {
    background-image: url(hero-image.png);
    background-size: cover;
    height: 400px;
    display: flex;
    margin-bottom: 70px;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    z-index: 2;
    
    
}
.hero-msg {
    background-color: white;
    color: #0f1111;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
    width: 80%;
    
}

.hero-msg a {
    color: #007185;
}


/**  shopping section  **/

.shop-sec {
    display: flex;
    flex-wrap: wrap;
    background-color: #a35bf5;
    justify-content: space-evenly;
    position: relative;
    z-index: 1;
    margin-top: -70px;

    
     
}

.box {
    height: 400px;
    border: 2px solid black;
    width: 23%;
    background-color: white;
    position: relative;
    z-index: 0.5;
    padding: 20px 0px 15px;
    margin-top: 15px;
}
.box1-img {
    height: 300px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
    
}

.box-text {
    margin-left: 1rem;
    margin-right: 10px;
}

/** Footer  **/

footer {
    margin-top: 15px;
}

.foot-panel {
    background-color: #37475a;
    color: white;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
}

.foot-panel2 {
    background-color: #222f3d;
    color: white;
    height: 300px;
    display: flex;
    justify-content: space-evenly;
}

ul {
    margin-top: 15px;
}

ul a{
    display: block;
    font-size: 0.85rem;
    margin-top: 10px;
    color: #dddddd;
    
}

.foot-panel3 {
    background-color: #222f3d;
    color: white;
    border-top: 0.3px solid white;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.foot-logo {
    background-image: url(Amazon-logo.png);
    background-color: #222f3d;
    background-size: cover;
    height: 70px;
    width: 200px;
}

.foot-panel4 {
    background-color: #0f1111;
    color: white;
    display: flex;
    justify-content: center;
    height: 76px;
    text-align: center;

}
.pages {
    font-size: 0.7rem;
    padding-top: 25px;
}
.copy-right {
    font-size: 0.7rem;
    margin-top: 6px;
}



/* ==========================================================
   AMAZON CLONE - RESPONSIVE DESIGN
   ========================================================== */


/* ==========================================================
   SMALL LAPTOP / TABLET LANDSCAPE
   ========================================================== */

@media (max-width: 1100px){

    /* NAVBAR */

    .Navbar{
        padding: 0 10px;
        gap: 10px;
        justify-content: space-between;
    }

    .nav-logo{
        width: 120px;
        min-width: 120px;
    }

    .nav-search{
        flex: 1;
        width: auto;
        min-width: 250px;
    }

    .nav-signin,
    .nav-return{
        font-size: 0.75rem;
    }

    .nav-cart{
        white-space: nowrap;
    }


    /* PANEL */

    .panel{
        padding: 0 12px;
        justify-content: space-between;
    }

    .panel-ops{
        width: auto;
        flex: 1;
    }

    .panel-deals{
        margin-left: 15px;
        white-space: nowrap;
    }


    /* HERO */

    .hero-sec{
        height: 330px;
    }

    .hero-msg{
        width: 90%;
        padding: 0 15px;
        text-align: center;
    }


    /* PRODUCTS */

    .shop-sec{
        justify-content: center;
        gap: 18px;
        padding: 0 18px 25px;
    }

    .box{
        width: calc(50% - 20px);
        height: 410px;
        margin-top: 15px;
    }


    /* FOOTER */

    .foot-panel2{
        padding: 0 20px;
    }
}



/* ==========================================================
   IPAD / TABLET
   ========================================================== */

@media (max-width: 850px){

    /* =========================================
       NAVBAR
       ========================================= */

    .Navbar{
        height: auto;
        min-height: 118px;

        display: flex;
        flex-wrap: wrap;

        justify-content: space-between;

        padding: 8px 14px 10px;

        gap: 8px;
    }


    /* Logo */

    .nav-logo{
        width: 115px;
        height: 48px;

        order: 1;
    }

    .logo{
        height: 48px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }


    /* Address */

    .nav-address{
        order: 2;
    }


    /* Sign in */

    .nav-signin{
        order: 3;
    }


    /* Returns */

    .nav-return{
        display: none;
    }


    /* Cart */

    .nav-cart{
        order: 4;

        display: flex;
        align-items: center;

        gap: 5px;
    }


    /* Search becomes second row */

    .nav-search{
        order: 5;

        width: 100%;
        height: 42px;

        flex-basis: 100%;

        margin-top: 2px;
    }


    /* =========================================
       PANEL
       ========================================= */

    .panel{
        height: 42px;

        padding: 0 12px;

        justify-content: flex-start;

        overflow-x: auto;

        white-space: nowrap;
    }


    .panel-all{
        margin-right: 15px;

        flex-shrink: 0;
    }


    .panel-ops{
        width: auto;

        display: flex;

        flex-shrink: 0;
    }


    .panel-ops p{
        margin-left: 18px;
    }


    .panel-deals{
        display: none;
    }


    /* =========================================
       HERO
       ========================================= */

    .hero-sec{
        height: 280px;

        background-position: center;
    }


    .hero-msg{
        width: 92%;
        height: auto;

        min-height: 42px;

        padding: 8px 14px;

        font-size: 0.78rem;

        line-height: 1.4;

        text-align: center;
    }


    /* =========================================
       SHOP
       ========================================= */

    .shop-sec{
        margin-top: -50px;

        padding:
            0 15px
            25px;

        gap: 15px;
    }


    .box{
        width: calc(50% - 10px);

        height: auto;
        min-height: 390px;

        border: none;

        padding:
            18px 0
            15px;
    }


    .box1-img{
        height: 270px;
    }


    .box-text h2{
        font-size: 1.2rem;
    }


    /* =========================================
       FOOTER
       ========================================= */

    .foot-panel2{
        height: auto;

        padding: 25px;

        display: grid;

        grid-template-columns:
            repeat(2, 1fr);

        gap: 30px;
    }


    .foot-panel2 ul{
        margin: 0;
    }


    .foot-panel3{
        height: 75px;
    }


    .foot-logo{
        height: 60px;
        width: 170px;

        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }


    .foot-panel4{
        height: auto;

        min-height: 80px;

        padding:
            18px 15px;
    }


    .pages{
        padding-top: 0;

        line-height: 1.8;
    }
}



/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 600px){

    /* =========================================
       NAVBAR
       ========================================= */

    .Navbar{
        min-height: 112px;

        padding:
            7px 10px
            10px;

        align-items: center;
    }


    /* logo */

    .nav-logo{
        width: 105px;
        min-width: 105px;

        height: 45px;

        order: 1;
    }


    .logo{
        width: 100%;

        height: 45px;

        background-size: contain;
    }


    /* Hide less important desktop items */

    .nav-address{
        display: none;
    }


    .nav-signin{
        display: none;
    }


    .nav-return{
        display: none;
    }


    /* Cart stays visible */

    .nav-cart{
        order: 2;

        margin-left: auto;

        font-size: 0.75rem;
    }


    .nav-cart i{
        font-size: 26px;
    }


    /* Search occupies full second row */

    .nav-search{
        width: 100%;

        flex-basis: 100%;

        order: 3;

        height: 43px;

        margin-top: 5px;
    }


    .search-select{
        width: 48px;
    }


    .search-input{
        min-width: 0;

        font-size: 0.9rem;

        padding-left: 8px;
    }


    .search-icon{
        width: 48px;

        min-width: 48px;

        font-size: 1.25rem;
    }


    /* =========================================
       PANEL
       ========================================= */

    .panel{
        height: 41px;

        overflow-x: auto;

        justify-content: flex-start;

        padding:
            0 10px;

        scrollbar-width: none;
    }


    .panel::-webkit-scrollbar{
        display: none;
    }


    .panel-all{
        margin-right: 10px;

        font-size: 0.85rem;
    }


    .panel-ops{
        display: flex;

        width: auto;

        font-size: 0.76rem;
    }


    .panel-ops p{
        margin-left: 14px;

        flex-shrink: 0;
    }


    .panel-deals{
        display: none;
    }


    /* =========================================
       HERO
       ========================================= */

    .hero-sec{
        height: 225px;

        margin-bottom: 45px;

        background-size: cover;

        background-position: center;
    }


    .hero-msg{
        width: calc(100% - 20px);

        min-height: 42px;
        height: auto;

        margin-bottom: 5px;

        padding: 8px 10px;

        display: block;

        font-size: 0.70rem;

        line-height: 1.35;

        text-align: center;
    }


    .hero-msg a{
        display: inline;
    }


    /* =========================================
       PRODUCTS
       ========================================= */

    .shop-sec{
        margin-top: -45px;

        padding:
            0 10px
            20px;

        display: grid;

        grid-template-columns: 1fr;

        gap: 14px;

        background-color: #a35bf5;
    }


    .box{
        width: 100%;

        height: auto;

        min-height: 0;

        margin: 0;

        padding:
            17px 0
            16px;

        border: none;
    }


    .box-text{
        margin:
            0 15px;
    }


    .box-text h2{
        font-size: 1.15rem;

        margin-bottom: 8px;
    }


    .box1-img{
        width: 100%;

        height: 280px;

        margin:
            10px 0;

        background-size: cover;

        background-position: center;
    }


    .box-text a{
        display: inline-block;

        margin-top: 5px;

        color: #007185;

        font-size: 0.85rem;
    }


    /* =========================================
       FOOTER
       ========================================= */

    footer{
        margin-top: 0;
    }


    .foot-panel{
        height: 45px;

        font-size: 0.78rem;
    }


    .foot-panel2{
        padding:
            25px 22px;

        grid-template-columns: 1fr;

        gap: 28px;
    }


    .foot-panel2 ul{
        margin: 0;
    }


    .foot-panel2 h5{
        font-size: 1rem;

        margin-bottom: 10px;
    }


    .foot-panel2 ul a{
        font-size: 0.78rem;

        margin-top: 8px;
    }


    .foot-panel3{
        height: 65px;
    }


    .foot-logo{
        width: 140px;

        height: 50px;
    }


    .foot-panel4{
        min-height: 95px;

        padding:
            17px 15px;
    }


    .pages{
        width: 100%;

        font-size: 0.65rem;

        line-height: 1.8;
    }


    .pages > a{
        display: inline-block;

        margin:
            0 5px;
    }


    .copy-right{
        margin-top: 8px;
    }
}



/* ==========================================================
   SMALL PHONES
   ========================================================== */

@media (max-width: 380px){

    .nav-logo{
        width: 95px;

        min-width: 95px;
    }


    .nav-cart{
        font-size: 0;
    }


    .nav-cart i{
        font-size: 25px;
    }


    .hero-sec{
        height: 200px;
    }


    .hero-msg{
        font-size: 0.65rem;
    }


    .box1-img{
        height: 235px;
    }


    .box-text h2{
        font-size: 1.05rem;
    }
}