* {
    margin: 0;
    font-family: arial;
    border: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    overflow-x: hidden;
}

.nav {
    height: 40px;
    background-color: #0f1111;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.border {
    border: 2px solid transparent;
}

.border:hover {
    border: 2px solid white;
}

.nav-logo {
    height: 36px;
    width: 100px;

}

.logo {
    height: 36px;
    width: 100%;
    background-image: url("assets/amazon_logo.png");
    background-size: cover;
    padding-top: 5px;
}

#d1 {
    margin-left: 13px;
}

#d2 {
    margin-left: 2px;
}

.addres {
    color: #cccccc;
    font-size: 0.85rem;
    margin: 5px 2px 5px 0px;
    padding: 0px 9px;
}

.loc {
    color: #ffffff;
    font-size: 1rem;
    display: flex;
}

.ser {
    flex: 1;
    max-width: 620px;
    height: 40px;
    align-items: center;
    display: flex;
    border-radius: 4px;
    justify-content: space-between;
}


.s1 {
    width: 50px;
    height: 35px;
    text-align: center;
    background-color: #f3f3f3;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    border: none;
}

.s2 {
    height: 35px;
    width: 535px;
}

#m {
    height: 35px;
    width: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom-right-radius: 2px;
    border-top-right-radius: 2px;
    background-color: rgb(255, 200, 0);
}



.hello {
    height: 35px;
    display: flex;
    flex-direction: column;
    margin-left: 0px 1px;
    padding: 0px 4px 0px 9px;
}

#h1 {
    font-size: 12px;
    padding-left: 4px;
}

#h3 {
    border: none;
    background-color: #0f1111;
    color: white;
}

#h2 {
    font-size: 14px;
    ;
}

#ret1 {
    font-size: 12px;
    padding-left: 4px;
}

#ret2 {
    font-size: 14px;

}

.cart {
    height: 35px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-right: 5px;
    ;
}

#cart1 {
    padding-left: 2px;
    ;
    font-size: 12px;
}

.box1 {
    display: flex;
    height: 40px;
    justify-content: flex-start;
    align-items: center;
    background-color: #222f3d;
}

#box1a {
    padding: 8px 5px;
    margin: 5px 0px 6px;
    color: white;
    font-size: 14px;
}

#hem {
    margin-right: 10px;
}

#box1b {
    padding: 8px 5px;
    margin: 5px 0px 6px;
    color: white;
    font-size: 14px;
}

#box1c {
    padding: 8px 5px;
    margin: 5px 0px 6px;
    color: white;
    font-size: 14px;
}

#box1d {
    padding: 8px 5px;
    margin: 5px 0px 6px;
    color: white;
    font-size: 14px;
}

#box1e {
    padding: 8px 5px;
    margin: 5px 0px 6px;
    color: white;
    font-size: 14px;
}

#box1f {
    padding: 8px 5px;
    margin: 5px 0px 6px;
    color: white;
    font-size: 14px;
}

.box1a {
    color: white;
    height: 35px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 5px;
}

.hero {
    background-image: url("assets/hero.jpg");
    height: 600px;
    width: 100%;
    background-size: cover;
    z-index: -4;

}

.box {
    width: 100%;
    height: 700px;
    position: absolute;
    top: 480px;
    background-color: rgba(184, 189, 211, 0.45);
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;

}

#box2a {
    width: 23%;
    height: 280px;

    background-color: white;
    font-size: 0.85rem;
    padding: 20px 0px 15px;

}

.bx2a {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

#box2a1 {
    width: 40%;
    height: 116px;
    background-image: url("assets/b2.1.jpg");
    background-size: cover;
    margin-bottom: 10px;
    ;
}

#box2a2 {
    width: 40%;
    height: 116px;
    background-image: url("assets/b2.2.jpg");
    background-size: cover;
}

#box2a3 {
    width: 40%;
    height: 116px;
    background-image: url("assets/b2.3.jpg");
    background-size: cover;
}

#box2a4 {
    width: 40%;
    height: 116px;
    background-image: url("assets/b2.4.jpg");
    background-size: cover;
}

#box2b {
    width: 23%;
    height: 280px;
    background-color: white;
    font-size: 0.85rem;
    padding: 20px 0px 15px;
    /* display: flex;
    justify-content: flex-start;
    flex-wrap: wrap; */

}

.bx2b {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

#box2b1 {
    width: 40%;
    height: 120px;
    background-image: url("assets/b1.1.jpg");
    background-size: contain;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

#box2b2 {
    width: 40%;
    height: 120px;
    background-image: url("assets/b1.2.jpg");
    background-size: contain;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

#box2b3 {
    width: 40%;
    height: 120px;
    background-image: url("assets/b1.3.jpg");
    background-size: contain;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

#box2b4 {
    width: 40%;
    height: 120px;
    background-image: url("assets/b1.4.jpg");
    background-size: contain;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

#box2c {
    width: 23%;
    height: 280px;
    background-color: white;
    font-size: 0.85rem;
    padding: 20px 0px 15px;


}

.bx2c {
    width: 90%;
    height: 248px;
    margin-left: 10px;
    display: flex;
    justify-content: center;
}

#box2c1 {
    width: 100%;
    height: 100%;
    background-image: url("assets/b2.jpg");
    background-size: cover;
}


#box2d {
    width: 23%;
    height: 280px;

    background-color: white;
    font-size: 0.85rem;
    padding: 20px 0px 15px;

}

.bx2d {
    width: 90%;
    height: 230px;
    margin-left: 10px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

#box2d1 {
    width: 100%;
    height: 60%;
    background-image: url("assets/b4.1.jpg");
    background-size: cover;
    margin-bottom: 10px;
    ;
}

#box2d2 {
    width: 30%;
    height: 30%;
    background-image: url("assets/b4.2.jpg");
    background-size: cover;
}

#box2d3 {
    width: 30%;
    height: 30%;
    background-image: url("assets/b4.3.jpg");
    background-size: cover;
    margin-left: 5px;
    margin-right: 5px;
}

#box2d4 {
    width: 30%;
    height: 30%;
    background-image: url("assets/b4.4.jpg");
    background-size: cover;
}

#text {
    margin-left: 10px;
}


.ham {
    height: 10px;
    width: 10px;
}

#box2e {
    width: 23%;
    height: 280px;

    background-color: white;
    font-size: 0.85rem;
    padding: 20px 0px 15px;

}

.bx2e {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

#box2e1 {
    width: 40%;
    height: 106px;
    background-image: url("assets/b3.1.jpg");
    background-size: cover;
    margin-bottom: 10px;
    ;
}

#box2e2 {
    width: 40%;
    height: 106px;
    background-image: url("assets/b3.2.jpg");
    background-size: cover;
}

#box2e3 {
    width: 40%;
    height: 106px;
    background-image: url("assets/b3.3.jpg");
    background-size: cover;
}

#box2e4 {
    width: 40%;
    height: 106px;
    background-image: url("assets/b3.4.jpg");
    background-size: cover;
}

#box2f {
    width: 23%;
    height: 280px;
    background-color: white;
    font-size: 0.85rem;
    padding: 20px 0px 15px;

}

.bx2f {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

#box2f1 {
    width: 40%;
    height: 117px;
    background-image: url("assets/b5.1.jpg");
    background-size: cover;
    margin-bottom: 10px;
    ;
}

#box2f2 {
    width: 40%;
    height: 117px;
    background-image: url("assets/b5.2.jpg");
    background-size: cover;
}

#box2f3 {
    width: 40%;
    height: 117px;
    background-image: url("assets/b5.3.jpg");
    background-size: cover;
}

#box2f4 {
    width: 40%;
    height: 117px;
    background-image: url("assets/b5.4.jpg");
    background-size: cover;
}

#box2g {
    width: 23%;
    height: 280px;
    background-color: white;
    font-size: 0.85rem;
    padding: 20px 0px 15px;


}

.bx2g {
    width: 90%;
    height: 248px;
    margin-left: 10px;
    display: flex;
    justify-content: center;
}

#box2g1 {
    width: 100%;
    height: 100%;
    background-image: url("assets/b7.jpg");
    background-size: cover;
}

#box2h {
    width: 23%;
    height: 280px;
    background-color: white;
    font-size: 0.85rem;
    padding: 20px 0px 15px;


}

.bx2h {
    width: 90%;
    height: 248px;
    margin-left: 10px;
    display: flex;
    justify-content: center;
}

#box2h1 {
    width: 100%;
    height: 100%;
    background-image: url("assets/b8.jpg");
    background-size: cover;
}

.foot {
    /* height: 970px; */
    width: 100%;
    /* background-color: #222f3d; */
    position: absolute;
    top: 1150px;
    margin: 10px 0px 10px;
}

.foot1 {
    height: 50px;
    width: 100%;
    background-color: #37475a;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.35rem;
}

.foot2 {
    height: 300px;
    width: 100%;
    background-color: #222f3d;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    color: white;
}

ul {
    height: 200px;
    width: 150px;
    padding: 5px;
}

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

.foot3 {
    height: 60px;
    width: 100%;
    background-color: #222f3d;
    border-top: 3px solid #37475a;
    padding: 10px 0px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.f3a {
    width: 99px;
    height: 100%;
    background-image: url("assets/amazon_logo.png");
    background-size: cover;
    background-repeat: no-repeat;
    margin-right: 80px;
}

.f3b {
    height: 15px;
    color: white;
    background-color: #222f3d;
    padding: 6px 18px 6px 8px;
    border: 0.5px solid white;
    border-radius: 5%;
    font-size: 0.85rem;
    display: flex;
    justify-content: center;
    align-items: center;

}

.f3c {
    height: 15px;
    color: white;
    background-color: #222f3d;
    padding: 6px 18px 6px 8px;
    border: 0.5px solid white;
    border-radius: 5%;
    font-size: 0.85rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0px 10px 0px 10px;

}

.f3d {
    height: 15px;
    color: white;
    background-color: #222f3d;
    padding: 6px 18px 6px 8px;
    border: 0.5px solid white;
    border-radius: 5%;
    font-size: 0.85rem;
    display: flex;
    justify-content: center;
    align-items: center;

}

.f3d1 {
    height: 12px;
    width: 18px;
    background-image: url("assets/us.webp");
    background-size: cover;
    margin-right: 5px;
}

 
@media (max-width: 768px) {
    .addres, .hello, .return, .cart {
        display: none;
    }

    .nav {
        height: auto;
        padding: 8px;
        flex-wrap: nowrap; 
        overflow-x: auto; 
        -webkit-overflow-scrolling: touch;
    }
    
     .nav::-webkit-scrollbar {
        height: 6px;
    }

    .nav::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.5);
        border-radius: 3px;
    }

    .nav-logo {
        width: 80px;
        height: 30px;
    }
    
    .logo {
        height: 30px;
    }
    
    .addres {
        font-size: 0.7rem;
    }
    
    .ser {
        order: 3;
        width: 100%;
        margin-top: 8px;
        max-width: 100%;
        flex: 1 1 100%;
    }
    
    .s2 {
        width: calc(100% - 85px);
    }
    
    .hello {
        font-size: 0.8rem;
    }
    
    .box1 {
        flex-wrap: wrap;
        height: auto;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .hero {
        height: 300px;
    }
    
    .box {
        position: relative;
        top: auto;
        height: auto;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 20px 10px;
    }
    
    #box2a, #box2b, #box2c, #box2d, #box2e, #box2f, #box2g, #box2h {
        width: 90%;
        margin-bottom: 15px;
    }
    
    .foot {
        position: relative;
        top: auto;
        margin-top: 20px;
    }
    
    .foot2 {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
    }
    
    ul {
        width: 90%;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .foot3 {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
    }
    
    .f3a {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .f3b, .f3c, .f3d {
        margin: 5px;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 5px;
    }
    
    .nav-logo {
        width: 70px;
        height: 25px;
    }
    
    .logo {
        height: 25px;
    }
    
    .ser {
        height: 35px;
    }
    
    .s1 {
        width: 40px;
        height: 30px;
    }
    
    .s2 {
        height: 30px;
        width: calc(100% - 75px);
    }
    
    #m {
        height: 30px;
        width: 30px;
    }
    
    .hero {
        height: 200px;
    }
    
    #box2a, #box2b, #box2c, #box2d, #box2e, #box2f, #box2g, #box2h {
        width: 95%;
    }
    
    .bx2a, .bx2b, .bx2e, .bx2f {
        justify-content: center;
        gap: 10px;
    }
    
    #box2a1, #box2a2, #box2a3, #box2a4,
    #box2b1, #box2b2, #box2b3, #box2b4,
    #box2e1, #box2e2, #box2e3, #box2e4,
    #box2f1, #box2f2, #box2f3, #box2f4 {
        width: 45%;
        height: 100px;
    }
    
    .bx2c, .bx2g, .bx2h {
        margin-left: 5px;
    }
    
    .bx2d {
        margin-left: 5px;
        gap: 5px;
    }
    
    #box2d2, #box2d3, #box2d4 {
        width: 28%;
        height: 25%;
    }
    
    .foot1 {
        font-size: 0.7rem;
    }
    
    ul a {
        font-size: 0.7rem;
    }
}

.mobile-nav {
            display: none;
        }

        .mobile-header {
            background-color: #232f3e;
            padding: 10px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .mobile-logo {
            height: 30px;
            width: 80px;
            background-image: url("assets/amazon_logo.png");
            background-size: cover;
        }

        .mobile-search {
            flex: 1;
            margin: 0 15px;
            display: flex;
            border-radius: 8px;
            overflow: hidden;
            height: 45px;
        }

        .mobile-search input {
            flex: 1;
            border: none;
            padding: 0 15px;
            font-size: 16px;
        }

        .mobile-search-btn {
            background-color: #ff9900;
            border: none;
            width: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #000;
        }

        .mobile-user-actions {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .mobile-sign-in {
            color: white;
            text-decoration: none;
            font-size: 14px;
        }

        .mobile-cart {
            color: white;
            font-size: 24px;
            position: relative;
        }

        .cart-count {
            position: absolute;
            top: -8px;
            right: -8px;
            background-color: #ff9900;
            color: black;
            border-radius: 50%;
            width: 18px;
            height: 18px;
            font-size: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }

        .mobile-categories {
            background-color: #37475a;
            padding: 0;
            overflow-x: auto;
            white-space: nowrap;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .mobile-categories::-webkit-scrollbar {
            display: none;
        }

        .categories-list {
            display: flex;
            padding: 0 10px;
            gap: 20px;
            min-width: max-content;
        }

        .category-item {
            color: white;
            text-decoration: none;
            padding: 15px 0;
            font-size: 14px;
            white-space: nowrap;
        }

        .mobile-location {
            background-color: #37475a;
            padding: 10px;
            color: white;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
        }

        /* Media Queries */
        @media (max-width: 768px) {
            header .nav {
                display: none;
            }

            .mobile-nav {
                display: block;
            }
        }

        @media (max-width: 480px) {
            .mobile-header {
                padding: 8px;
            }

            .mobile-search {
                margin: 0 10px;
                height: 40px;
            }

            .mobile-search input {
                font-size: 14px;
            }

            .categories-list {
                gap: 15px;
            }

            .category-item {
                font-size: 13px;
            }
        }