*{
    margin: 0;
    font-family: Arial;
    border: border-box;
}

.navber {
    height: 60px;
    background-color:#0f1111;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
  
}



body.dark-mode {
  background-color: #121212;
  color: #ffffff;
}

.dark-mode .navber,
.dark-mode .panel,
.dark-mode .hero-section,
.dark-mode .shop-section,
.dark-mode .product-list,
.dark-mode footer {
  background-color: #1f1f1f;
  color: #ffffff;
}

.dark-mode a,
.dark-mode .panel-ops p,
.dark-mode .nav-second,
.dark-mode .nav-logo,
.dark-mode .box-content p {
  color: #dcdcdc;
}

.dark-mode .box {
  background-color: #2a2a2a;
  border-color: #444;
}

.dark-mode button {
  background-color: #444;
  color: white;
}


.nav-logo{
    height: 50px;
    width: 100px;
}

.logo{
    background-image: url(amazon.png);
    background-size: cover;
    height: 51px;
    width: 100%;
}

.border {
    border: 2px solid transparent;
}

.border:hover {
    border: 2px solid white;
}

.box {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.5s ease;
}

.box {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.5s ease;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.box.show {
  opacity: 1;
  transform: translateY(0);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}


/** box2 **/
.add-first {
    color: #cccccc;
    font-size: 0.85rem;
    margin-left: 15px;
}

.add-second{
    font-size: 1rem;
    margin-left: 3px;

}

.add-icon{
    display: flex;
    align-items: center;
}

/** box 3**/
.nav-search{
    display: flex;
    justify-content: space-evenly;
    background-color: pink;
    width: 620px;
    height: 40px;
    border-radius: 4px;
}

.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.2rem;
    background-color: #febd68;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    color: #0f1111;
}

.nav-search:hover{
    border: 2px solid orange;
}
  
/** box4 **/
span{
    font-size: 0.7rem;
}

.nav-second{
    font-size: 0.85rem;
    font-weight: 700;
}

/** box6 **/
.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 p{
    display: inline;
    margin-left: 15px;

}

.panel-ops{
    width: 70%;
    font-size: o.85rem;
}

.panel-deals {
    font-size: 0.9rem;
    font-weight: 700;
}

/** hero section **/
.hero-section {
    background-image: url(hero1.jpg);
    background-size: cover;
    height: 350px;
    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: 80%;
    margin-bottom: 25px;
}

.hero-msg a {
    color: #007185;
}

/** shop section **/
.shop-section {
    display: flex;
    flex-wrap: wrap;
    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;

}

.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;
}


/** help part**/

.special-item {
  background-color: #f3f3f3;
  padding: 30px 20px;
  margin: 30px auto;
  border-radius: 10px;
  max-width: 1000px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.special-title {
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
  color: #232f3e;
}

.special-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  background: white;
  border-radius: 10px;
  padding: 20px;
}

.special-card img {
  width: 250px;
  height: auto;
  border-radius: 8px;
}

.special-details {
  flex: 1;
}

.special-details h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.special-details .price {
  color: #B12704;
  font-weight: bold;
  margin-bottom: 10px;
}

.special-details .desc {
  margin-bottom: 15px;
  color: #555;
}

.special-details .buy-button {
  background-color: #ff9900;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}
 
.product-list {
    padding: 40px 20px;
    background-color: #f3f3f3;
} 
 
.product-list-title {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    color: #111;
}

.product-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 200px;
    text-align: center;
    padding: 15px;
    transition: transform 0.2s;
}

.product-card:hover {
    transform: scale(1.03);
}

.product-card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.product-card h3 {
    font-size: 16px;
    margin: 10px 0 5px;
}

.product-card .price {
    font-size: 14px;
    color: #b12704;
    margin: 5px 0;
}

.buy-button {
    background-color: #ffd814;
    border: 1px solid #fcd200;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
    margin-top: 10px;
}

.buy-button:hover {
    background-color: #f7ca00;
}

/** footer **/
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;
}

ul a {
    display:  block;
    font-size: 0.85rem;
    margin-top: 10px;
    color: #dddddd;

}

.foot-panel3 {
    background-color: #222f3d;
    color: white;
    border-top: 0.5px solid white;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
     background-image: url(amazon.png);
    background-size: cover;
    height: 50px;
    width: 100px;
}

.foot-panel4 {
    background-color: #0f1111;
    color: white;
    height: 80px;
    text-align: center;
    justify-content: space-evenly;
}

.pages {
    padding-top: 25px;
}

.copyright {
    padding-top: 0px;
    font-size: small;
}

.makername {
    padding: 0px;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: smaller;
}

#chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 150px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  font-family: Arial, sans-serif;
  z-index: 9999;
  overflow: hidden;
}

#chatbot-container {
  width: 90%;
  max-width: 300px;
  bottom: 20px;
  right: 13%;
}
#chatbot-container {
  position: fixed;
}
#chatbot-container {
  width: 90%;
}

#chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 13%;
  width: 90%;
  max-width: 300px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  font-family: Arial, sans-serif;
  z-index: 9999;
  overflow: hidden;
}


#chat-header {
  background-color: #232f3e;
  color: white;
  padding: 10px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
}

#chat-body {
  max-height: 250px;
  overflow-y: auto;
  padding: 8px;
  background: #f6f6f6;
}

#chat-input-area {
  display: flex;
  border-top: 1px solid #ccc;
}

#chat-input {
  flex: 1;
  padding: 8px;
  border: none;
  outline: none;
}

#chat-send {
  padding: 8px 10px;
  background-color: #febd69;
  border: none;
  cursor: pointer;
  font-weight: bold;
}


@media screen and (max-width: 600px) {
  /* General adjustments */
  body {
    font-size: 14px;
  }

  .navber {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 10px;
    gap: 10px;
  }

  .nav-logo, 
  .nav-address, 
  .nav-singin, 
  .nav-return, 
  .nav-cart,
  .nav-darkmode {
    width: 100%;
    display: block;
    text-align: left;
    padding: 6px 0;
  }

  .nav-logo .logo {
    margin: 0 auto;
  }

  /* Search bar vertical layout */
  .nav-search {
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
    height: auto;
    
  }

  .search-select,
  .search-input,
  .search-icon {
    width: 100%;
    height: 40px;
    box-sizing: border-box;
  }

  .search-input {
    padding: 0 10px;
  }

  .search-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-radius: 6px;
    background-color: #febd68;
    cursor: pointer;
  }
.nav-address,
.nav-return,
.nav-cart,
.nav-darkmode {
  margin-top: 8px;
}

  
  .nav-return span {
    display: inline-block;
    margin-right: 5px;
  }

 @media screen and (max-width: 600px) {
  .nav-signin {
    width: 100%;
    display: block;
    text-align: left;
    padding: 10px;
    background: transparent;
    margin-top: 10px;
    z-index: 10;
  }

  .nav-signin p {
    margin: 0;
    line-height: 1.4;
    color: white;
  }

  .nav-signin span {
    display: block;
    font-size: 0.75rem;
    color: #ccc;
  }

  .nav-signin .nav-second {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
  }

  /* Extra spacing from the search bar */
  .nav-search {
    margin-bottom: 10px;
    z-index: 1;
  }
}

  /* Panel collapses */
  .panel {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    gap: 6px;
    padding: 10px;
  }

  .panel-ops {
    width: 100%;
    font-size: 0.85rem;
  }

  .panel-ops p {
    margin: 4px 0;
    display: block;
  }

  .panel-deals {
    font-size: 0.8rem;
    font-weight: bold;
    margin-top: 6px;
  }

  /* Hero Section Text */
  .hero-msg {
    font-size: 0.8rem;
    text-align: center;
    padding: 8px;
  }

  /* Fix chat and cart spacing */
  .nav-cart i {
    font-size: 24px;
  }

  .nav-cart {
    gap: 6px;
    padding: 8px 0;
  }

  .nav-darkmode button {
    width: 100%;
    font-size: 14px;
  }

  /* Fix shop section box width */
  
  .shop-section .box {
    width: 100%;
  }

  .product-grid {
    flex-direction: column;
    align-items: center;
  }

  .product-card {
    width: 90%;
  }

  .foot-panel2 {
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: auto;
  }

  .foot-panel2 ul {
    margin-bottom: 20px;
  }

  #chatbot-container {
    right: 5%;
    width: 90%;
  }
}

/** new add **/

.login-container {
  max-width: 400px;
  margin: 100px auto;
  padding: 30px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  border-radius: 10px;
  background: white;
  text-align: center;
  
}

.login-container h2 {
  margin-bottom: 20px;
}

.login-container input {
  width: 90%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.login-container button {
  padding: 10px 20px;
  background-color: #232f3e;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#login-message {
  margin-top: 15px;
  color: red;
}


/** new add **/
#bgVideo {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 1;
}



#bgVideo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
}
