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

.navbar{
    height: 60px;
    background-color: #0f1111;
    color: aliceblue;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.nav-logo{
    height: 50px;
    width: 100px;
}

.logo{
    background-image: url(realamazon.png);
    background-size: cover;
    height: 50px;
    width: 108%;
}

.border{
    border: 2px solid transparent;
}

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

/* box2 */

.add-first{
    color: #cccccc;
    font-size: 1rem;
    margin-left: 15px;
}

.add-sec{
    color: #ffffff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    margin-left: 12px;
}

/* box3 */

.nav-search{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background-color: #ef8e00f7;
    width: 620px;
    height: 40px;
    border-radius: 4px;
}
.nav-search:hover{
    background-color: 2px solid orange;
}

.search-select{
    width: 45px;
    height: 40px;
    background-color: #f3f3f3;
    color: #0f1111;
    font-family: sans-serif;
    text-align: center;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    border: none;
}

.search-input{
    width: 100%;
    height: 38px;
    font-size: 1rem;
    border: none;
}

.search-icon{
    width: 45px;
    text-align: center;
}

#icon-color{
    color: black;
}

/* box4 */

span{
    font-size: 0.8rem;
}

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

/* box5 */

span{
    font-size: 0.8rem;
}

.nav-orders{
    font-size: 0.96rem;
    font-weight: 700;
}

/* box6 */

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

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

/* panel start */

.panel{
    height: 39px;
    background-color: #222f3d;
    display: flex;   
    align-items: center;
    justify-content: space-evenly;
    color: white;
}

.panel-ops p{
    display: inline;
    margin-left: 15px;
}

.panel-ops{
    width: 70%;
    font-size: 0.85rem;
    font-weight: 700;
}

.panel-deals{
    font-size: 0.9rem;
    font-weight: 700;
}

/* hero section start */

.hero-section{
    background-image: url(hero_image\ \(1\).jpg);
    background-size: cover;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.hero-msg{
    background-color: #cccccc;
    color: black;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    width: 80%;
    margin-bottom: 25px;
}

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

/* shop-section starts from here */

.shop-section{
    display: flex;
    justify-content: space-evenly;
    background-color: #e2e7e6;
}

.box{
    border: 2px solid black;
    height: 400px;
    width: 23%;
    background-color: white;
    padding: 20px 0px 15px;
    margin-top: 15px;
    border: none;
}

.box-img{
    height: 300px;
    background-size: cover;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.box-content{
    margin-left: 1rem;
    margin-right: 1rem;
}

.box-content p{
    color: #007185;
}

/* footer starts from here */

footer{
    margin-top: 15px;
}

.foot-panel1{
    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: 20px;
    font-weight: 700;
}

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

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

.logo{
    background-image: url(realamazon.png);
    background-size: cover;
    background-color: #222f3d;
    height: 50px;
    width: 100px;
}

.my-info{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #222f3d;
    color: white;
    border-top: 0px solid white;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.my-info a{
    color: rgb(50, 155, 155);
    text-decoration: none;
}

/* ========================================= */
/* Responsive Design - Media Queries */
/* ========================================= */

/* Large Tablet (Max Width: 1024px) */
@media screen and (max-width: 1024px) {
    /* Navbar Adjustments */
    .navbar {
        height: auto; /* Allow height to adjust */
        flex-wrap: wrap; /* Allow items to wrap */
        padding: 5px 0;
        justify-content: space-around;
    }

    .nav-search {
        width: 95%; /* Take up more width */
        order: 5; /* Push to the next line */
        margin: 10px 0;
    }

    .nav-address, .nav-signin, .nav-orders, .nav-cart {
        margin: 5px 10px;
    }

    /* Panel Adjustments */
    .panel {
        justify-content: flex-start;
    }

    .panel-ops {
        width: auto;
        flex-grow: 1; /* Allow panel-ops to take remaining space */
        overflow-x: auto; /* Enable horizontal scrolling for too many links */
        white-space: nowrap;
    }

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

    .panel-deals {
        display: none; /* Hide deals link to save space */
    }

    /* Shop Section - 2 boxes per row */
    .shop-section {
        flex-wrap: wrap;
    }

    .box {
        width: 47%; /* Roughly half, allowing for space-evenly */
    }

    /* Footer Adjustments - Make columns narrower, but not stacking yet */
    .foot-panel2 {
        height: auto;
        padding: 20px 0;
        justify-content: space-around;
        /* flex-wrap: wrap; */
    }
}

/* Tablet (Max Width: 768px) */
@media screen and (max-width: 768px) {
    /* Navbar Adjustments */
    .nav-address, .nav-signin, .nav-orders {
        display: none; /* Hide secondary/less critical items for space */
    }

    .nav-logo {
        width: 80px;
    }

    .nav-cart {
        margin: 0;
    }

    /* Hero Section Adjustments */
    .hero-section {
        height: 250px; /* Make it shorter */
    }

    .hero-msg {
        width: 90%;
        margin-bottom: 15px;
        padding: 5px;
        font-size: 0.9rem;
    }

    /* Shop Section - 2 boxes per row maintained, but ensure better wrapping */
    .shop-section {
        justify-content: space-between; /* Change to space-between for 2 columns */
        padding: 0 10px;
    }

    .box {
        width: 48%; /* Adjusting width for 2 columns with space-between */
        margin-top: 10px;
    }

    /* Footer Adjustments - Columns Start Stacking */
    .foot-panel2 ul {
        width: 45%; /* Two columns per row */
        margin-top: 15px;
    }

    .foot-panel3 .logo {
        /* Ensure logo is centered and sized correctly */
        width: 100px;
    }
}

/* Mobile (Max Width: 480px) */
@media screen and (max-width: 480px) {
    /* Navbar Adjustments */
    .navbar {
        justify-content: space-between;
    }

    .nav-logo {
        width: 70px;
    }

    .nav-search {
        border-radius: 4px; /* Ensure border radius is set correctly after scaling */
        width: 100%;
    }

    /* Panel Adjustments */
    .panel-ops {
        font-size: 0.75rem; /* Smaller font for ops */
        white-space: normal; /* Allow text to wrap if necessary */
        overflow-x: hidden;
        width: 80%;
        display: none;
    }

    .panel-ops p {
        display: block; /* Make links stack vertically */
        margin-left: 0;
        text-align: center;
    }

    .pabel-all { /* Use the spelling from your HTML: pabel-all */
        margin-left: 10px;
    }

    /* Hero Section */
    .hero-section {
        height: 180px; /* Even shorter */
    }

    .hero-msg {
        font-size: 0.75rem;
        height: auto;
        text-align: center;
        padding: 5px;
    }

    /* Shop Section - 1 box per row */
    .shop-section {
        justify-content: center;
        flex-direction: column; /* Stack boxes */
        padding: 0 0px 0px 15px;
        /* width: 100%; */
    }

    .box {
        width: 95%; /* Full width */
        margin-top: 10px;
        height: auto; /* Allow height to adjust */
    }

    .box-content {
        /* Reduce padding inside box content */
        padding-bottom: 10px;
    }

    /* Footer Adjustments - All columns stack */
    .foot-panel2 {
        flex-direction: column; /* Stack columns vertically */
        /* align-items: center; */
        height: auto;
    }

    .foot-panel2 ul {
        width: 80%; /* Almost full width */
        text-align: center;
        border-bottom: 1px solid #37475a;
        padding-bottom: 15px;
        margin-bottom: 15px;
    }

    .foot-panel2 ul:last-child {
        border-bottom: none;
    }
}