* {
  margin: 0;
  font-family: Arial;
  border: border-box;
}
.navbar {
  height: 60px;
  background-color: #0f1111;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

.nav-logo {
  height: 50px;
  width: 100px;
}
.logo {
  background-image: url("White-Amazon-Logo-PNG-HD-Quality.png");
  background-size: cover;
  height: 36px;
  width: 100px;
  align-items: center;
}

.border {
  border: 1.5px solid transparent;
}
.border:hover {
  border: 1.5px solid white;
}

/** box2 **/

.add-first {
  color: #cccccc;
  font-size: 0.85rem;
  margin-left: 15px;
}
.add-sec {
  font-size: lrem;
  margin: 3px;
}
.add-icon {
  display: flex;
  align-items: center;
}

/* box 3 */

.nav-search {
  display: flex;
  justify-content: space-evenly;

  width: 620px;
  height: 48px;
}
.search-select {
  background-color: #f3f3f3;
  width: 50px;
  text-align: center;
  border-bottom-left-radius: 4px;
  border-top-left-radius: 4px;
  border: none;
}
.search-input {
  width: 100%;
  font-size: 1rem;
  border: none;
  outline: none;
}

.search-icon {
  width: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  background-color: rgb(255, 145, 0);
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  color: #0f1111;
}

.nav-search:hover {
  border: 2px solid orange;
}

/* box 4 */

span {
  font-size: 0.7rem;
}

.sec-line {
  font-size: 0.85rem;
  font-weight: 700;
}
/* BOx 6 */

.nav-cart i {
  font-size: 30px;
}
.nav-cart {
  font-size: 0.85rem;
  font-weight: 700;
}

/* Panel */

.panel {
  height: 40px;
  background-color: #222f3d;
  display: flex;
  color: white;
  align-items: center;
  justify-content: space-evenly;
}

.panel-ops {
  width: 70%;
  font-size: 0.85rem;
  display: flex;
}

a {
  margin-left: 30px;
  color: white;
  text-decoration: none;
}

.panel-deals {
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

/* hero section */

.hero-section {
  background-image: url('hero image.jpg');
  background-size: cover;
  height: 340px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-msg {
  background-color: white;
  color: black;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  width: 90%;
  margin-bottom: 25px;
}

.hero-msg a {
  color: #007185;
}

/** shop-section **/

.shop-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  background-color: #e2e7e6;
}

/* border: 2px solid black; */

.box {
  height: 380px;
  width: 23%;
  background-color: white;
  padding: 20px 0px 35px;
  margin-top: 15px;
}

.box-img {
  height: 320px;
  background-size: cover;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.box-content {
  margin-left: 10px;
  margin-right: 10px;
}

.box-content p {
  color: #007185;
  padding: 3px;
}

.child-shop {
  display: flex;
  flex-wrap: wrap;
  padding: 5px 0px 48px;
  justify-content: space-evenly;
  background-color: white;
}

.child {
  height: 126px;
  width: 135px;
  margin-top: 25px;
  background-color: white;
}

.child-img {
  height: 110px;
  width: 135px;
  background-size: cover;
}

/** footer **/
footer {
  margin: 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;
}

ul a {
  display: block;
  font-size: 0.85rem;
  margin-top: 10px;
  color: #dddd;
}

.foot-panel3 {
  background-color: #222f3d;
  border-top: 0.5px solid white;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.foot-panel4 {
  background-color: #0f1111;
  color: white;
  height: 80px;
  font-size: 0.7rem;
  text-align: center;
}

.pages {
  font-size: 0.7rem;
  text-align: center;
  padding-top: 25px;
}

.copyright {
  padding-top: 5px;
}


/* --- MOBILE RESPONSIVE FIX (No Design Change) --- */

@media (max-width: 900px) {
    /* 1. Navbar ko adjust kiya taaki items niche shift ho sakein */
    .navbar {
        flex-wrap: wrap;
        height: auto;
        padding: 10px;
    }

    /* 2. Search bar ko fixed width (620px) se hatakar flexible banaya */
    .nav-search {
        width: 100%;
        order: 3; /* Search bar ko mobile par niche shift kar diya */
        margin-top: 10px;
    }

    /* 3. Panel (Below Navbar) ko mobile par scrollable banaya */
    .panel-ops {
        width: 100%;
        overflow-x: auto; /* Agar menu bada ho toh side scroll hoga, layout break nahi hoga */
        white-space: nowrap;
        padding: 10px 0;
    }

    /* 4. Shop Section ke boxes ko 23% ki jagah full width ya 45% kiya */
    .box {
        width: 45%; /* Ek line mein 2 box aayenge */
        margin-bottom: 20px;
    }

    /* 5. Hero Section ki height kam ki mobile ke liye */
    .hero-section {
        height: 250px;
    }

    /* 6. Footer panels ko column mein kiya taaki text na katte */
    .foot-panel2 {
        flex-wrap: wrap;
        height: auto;
        padding-bottom: 20px;
    }

    ul {
        width: 45%; /* Footer links 2 columns mein dikhenge */
        margin-left: 10px;
    }
}

@media (max-width: 500px) {
    /* Bahut chote phones ke liye ek line mein 1 hi box dikhega */
    .box {
        width: 95%;
    }
    
    .nav-logo, .nav-cart, .add-icon {
        margin-bottom: 5px;
    }

}



