/* Takes care of all the anchor tags throught the html file */
html a {
  color: white;
  text-decoration: none;
  cursor: pointer;
}

body {
  margin: 0;
  padding: 0;
  background-color: rgb(236, 234, 234);
  font-family: "Montserrat", sans-serif;
  overflow-x: hidden;
}

.lower-header .lower-header-text {
  text-decoration: none;
  /* Removes underline */
  color: white;
  /* Matches text color of other spans */
  cursor: pointer;
  /* Changes cursor to pointer for links */
}

.lower-header .lower-header-text:hover {
  text-decoration: underline;
  /* Optional: Add underline on hover for all */
}

#navbar {
  background-color: #131a22;
  height: 70px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.amazon-logo {
  width: 110px;
  height: 35px;
  margin-left: 20px;
}

.amazon-logo:hover {
  outline: 0.5px solid white;
  outline-offset: 10px;
}

.location {
  color: white;
}

.location:hover {
  outline: 0.5px solid white;
  outline-offset: 10px;
}

.location-name {
  font-size: 0.85rem;
}

.update-location {
  font-size: 0.9rem;
  font-weight: bold;
}

.search-bar {
  display: flex;
  align-items: center;
}

.select-type {
  background-color: lightgrey;
  height: 2.6rem;
  width: 4rem;
  border-radius: 5px 0 0 5px;
  padding-left: 15px;
  padding-top: 3px;
  border: none;
  margin-right: 0px;
  margin-top: 0;
}

.select-type:hover {
  background-color: #cbcbcb;
  transition: background-color 0.3s ease;
}

.input-search {
  height: 2.5rem;
  width: 45vw;
  background-color: #ffffff;
  border-radius: 0;
  padding-left: 10px;
  border: none;
}

.input-search:hover {
  background-color: rgb(220, 220, 220);
  transition: background-color 0.3s ease;
}

.search-icon {
  margin-left: 0;
  margin-top: 0.4px;
  background-color: rgb(236, 147, 31);
  padding: 0.65rem 1rem;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  height: 1.4rem;
  display: flex;
  align-items: center;
}


.search-icon:hover {
  filter: brightness(80%);
}



.dropdown-button:hover {
  outline: 0.2px solid white;
  outline-offset: 8px;
}

.sign-in {
  position: relative;
  display: flex;
  flex-direction: column;
  color: white;
  font-family: Arial, sans-serif;
  cursor: pointer;
}

#bottom {
  display: flex;
  align-items: center;
  margin-top: 0.5rem;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-button {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background-color: #131A22;
  border: 1px solid #131A22;
  cursor: pointer;
  color: white;
  gap: 2px;
  font-weight: 600;
  margin-left: 15px;

}

.dropdown-button img {
  width: 20px;
  height: 15px;
  margin-right: 10px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  border: 1px solid #ccc;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1;
  border-radius: 4px;
  min-width: 200px;
}

.dropdown-content a {
  color: black;
  padding: 10px;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.dropdown-content a img {
  width: 20px;
  height: 15px;
  margin-right: 10px;
}

.dropdown-content a:hover {
  background-color: #f3f5f7;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  overflow: hidden;
  z-index: 1000;
  width: 200px;
}

.dropdown-item {
  display: block;
  padding: 10px 15px;
  color: #000;
  text-decoration: none;
  font-size: 14px;
}

.dropdown-item:hover {
  background-color: #ffffff;
  color: #000000;
}

.sign-in:hover .dropdown-menu {
  display: block;
}

.sign-in:hover {
  outline: 0.5px solid white;
  outline-offset: 8px;
}

.sign-head {
  font-size: 12px;
}

.sign-bottom {
  font-size: 14px;
  font-weight: bold;
}

.sign-in a {
  color: rgb(60, 60, 60);
}

.sign-in a:hover {
  color: rgb(0, 0, 0);
}

.sign-in .dropdown-item:hover {
  color: #000000;
}

.account {
  display: inline-block;
  margin-left: 2rem;
  color: white;
}

.account:hover {
  outline: 0.5px solid white;
  outline-offset: 10px;
}

.cart {
  height: 15px;
  width: 35px;

  color: white;

  :hover {
    outline: 0.5px solid white;
    outline-offset: 10px;
  }
}

.lower-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #2f3b4b;
  color: white;
  height: 40px;
  width: 100%;
}

.lower-header-text {
  margin-left: 1rem;
  margin-right: 1rem;
  font-size: 0.9rem;
  font-weight: bold;
}

.lower-header-text:hover {
  outline: 0.5px solid white;
  outline-offset: 10px;
}

.carousel-container {
  width: 100vw;
  height: 45vh;
  overflow: hidden;
  position: relative;
}

.auto-carousel {
  display: flex;
  margin: 0;
  padding: 0;
  width: 100%;
  animation: slide 25s infinite;
  position: relative;
}

.slide {
  min-width: 100%;
  height: 45vh;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes slide {
  0% {
    transform: translateX(0%);
  }

  20% {
    transform: translateX(0%);
  }

  25% {
    transform: translateX(-100%);
  }

  45% {
    transform: translateX(-100%);
  }

  50% {
    transform: translateX(-200%);
  }

  70% {
    transform: translateX(-200%);
  }

  75% {
    transform: translateX(-300%);
  }

  95% {
    transform: translateX(-300%);
  }

  100% {
    transform: translateX(-400%);
  }
}

/* Electronics Section Styling */
.electronics-section {
  margin: 40px 20px;
  text-align: center;
}

.electronics-head {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
}

.electronics-items {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.electronics-item {
  width: 180px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 10px;
  background-color: #f9f9f9;
  transition: transform 0.3s, box-shadow 0.3s;
}

.electronics-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.electronics-img {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
  border-radius: 5px;
}

.electronics-item span {
  font-size: 16px;
  font-weight: 600;
  color: #555;
}


#image {
  border-radius: 5px;
}

.multi-img-sec {
  display: flex;
}

.multi-img {
  width: 30wv;
  border-radius: 10px;
  background-color: white;
  margin: 1rem;
}

.multi-head {
  font-size: 1.2rem;
  margin-left: 1rem;
}

.single-multi {
  width: 8vw;
  display: inline-block;
  margin: 1rem;
}

.single-multi img {
  width: 9vw;
  height: 6rem;
}

.carousel {
  width: 100%;
  background-color: white;
  padding: 2rem 0rem;
}

.carousel-head {
  font-size: 1.5rem;
  margin-left: 1.5rem;
}

.left-btn {
  height: 20vh;
  width: 20px;
  text-align: center;
  cursor: pointer;
  position: absolute;
}

.right-btn {
  height: 20vh;
  width: 50px;
  text-align: center;
  cursor: pointer;
  position: absolute;
  right: 10px;
}

.right-btn i,
.left-btn i {
  color: rgb(54, 54, 54);
  font-size: 30px;
  position: absolute;
  top: 50%;
}

.slide-carousel {
  display: flex;
  width: 100%;
  height: 100%;
  list-style: none;
  overflow-x: scroll;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.slide-img {
  height: 30vh;
  margin-right: 2rem;
}

.single-img-sec {
  display: flex;
  justify-content: space-around;
  width: 100vw;
  margin-right: 40px;
}

.single-img-box {
  display: inline-block;
  background-color: white;
  width: 20vw;
  height: 50vh;
  margin: 1rem;
  text-align: center;
  border-radius: 10px;
}

.single-img-head {
  font-size: 1.5rem;
}

.single-img {
  width: 15vw;
  height: 6rem;
}

.see-more {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  text-decoration: none;
  color: rgb(26, 165, 158);
}

.see-more:hover {
  color: orange;
}

.backtotop {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #37475a;
  width: 100vw;
  height: 3rem;
  text-align: center;
  margin-top: 1rem;
  cursor: pointer;
  color: white;
  transition: color 0.3s;
}

.backtotop:hover {
  background-color: #3a4d64;
}

.line-head {
  text-decoration: none;
  color: rgb(252, 240, 219);
  background-color: #37475A;
  font-size: 1rem;
  display: flex;
  text-align: center;
  align-items: center;
  font-weight: bold;
}

.footer {
  width: 100%;
  background-color: #131A22;
  color: white;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 20px 2rem;
  text-align: center;
}

.footer-head {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  border-bottom: 2px solid #ff9900;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.footer-column {
  margin: 10px;
  text-align: justify;
}

.footer-column h3 {
  margin-bottom: 10px;
  color: white;
}

.footer-column a {
  color: #ffffff;
  text-decoration: none;
  display: block;
  margin-bottom: 5px;
  transition: color 0.3s;
}

.footer-column a:hover {
  text-decoration: underline;
  color: #a5a5a5;
}

.footer-bottom {
  text-align: center;
  padding: 10px 0;
  background-color: #131A22;
}

.footer-bottom img {
  vertical-align: middle;
  filter: invert(1);
}

.footer-bottom select {
  background-color: #232F3E;
  color: #ffffff;
  border: 1px solid #ffffff;
  padding: 5px;
  margin-left: 10px;
}

.social-media-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  color: white;
  font-size: 1.5rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
  color: #ff9900;
  transform: scale(1.2);
}

.backtotop {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #232F3E;
  width: 100%;
  height: 50px;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.backtotop:hover {
  background-color: #37475A;
}

.info-footer {
  text-align: left;
}

.list-footer {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.8;
  text-align: left;
}

.list-footer li {
  margin-bottom: 0.5rem;
}


.error-message {
  font-size: 12px;
  margin-top: 5px;
  color: red;
}
.lower-header-text {
  display: inline-block; /* Ensures the transform works correctly */
  transition: transform 0.2s ease, color 0.2s ease; /* Smooth transition for the transform and color */
  cursor: pointer; /* Indicates it's clickable */
}

.lower-header-text:hover {
  color:rgb(255, 220, 156); /* Optional: Change text color on hover */
  transform: translateY(-2px); /* Move text upward slightly */
}

.lower-header-text:active {
  transform: translateY(-4px); /* Move text further up when pressed */
  color: #0056b3; /* Optional: Darker color when active */
}

 /* Chatbot Icon */
 .chatbot-icon {
  position: fixed;
  bottom: 10px;  
  right: 10px;   
  width: 60px;   
  height: 60px;  
  background-color: #000000; 
  border-radius: 50%;  
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); 
  z-index: 10000; 
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s ease;
}

.chatbot-icon img {
  width: 60%;  
  height: 60%;
  object-fit: contain;
}

.chatbot-icon:hover {
  transform: scale(1.1); 
}

/* Chatbot Window */
.chatbot-window {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  max-width: 500px;
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 40px;
  display: none;
  z-index: 9999;
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chatbot-window .chatbot-messages {
  max-height: px;
  overflow-y: auto;
  margin-bottom: 30px;
  padding-right: 20px;
}

.chatbot-window .user-input {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.chatbot-window .user-input input {
  width: 75%;
  padding: 15px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease;
}

.chatbot-window .user-input input:focus {
  border-color: #FF9900;
  /* Amazon's yellow */
}

.chatbot-window .user-input button {
  width: 22%;
  padding: 15px;
  background-color: #FF9900;
  /* Amazon's yellow */
  border: none;
  color: white;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.chatbot-window .user-input button:hover {
  background-color: #F76C00;
  /* Darker yellow on hover */
}

.chatbot-window .close-chat {
  background-color: #FF6347;
  /* Red for close button */
  color: white;
  border: none;
  padding: 15px;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 25px;
  font-size: 16px;
  width: 100%;
  transition: background-color 0.3s ease;
}

.chatbot-window .close-chat:hover {
  background-color: #e53e3e;
}

/* Blurred background */
.chatbot-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  z-index: 9998;
  display: none;
}

/* Chat bubbles styles */
.message {
  margin: 15px 0;
  padding: 15px;
  border-radius: 12px;
  max-width: 80%;
  word-wrap: break-word;
  font-size: 16px;
}

.message.user {
  background-color: #d1e7ff;
  align-self: flex-end;
  margin-left: auto;
}

.message.bot {
  background-color: #f1f1f1;
  align-self: flex-start;
  margin-right: auto;
}

/* Predefined questions */
.predefined-questions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 25px;
  margin-bottom: 15px;
}

.predefined-questions .question-btn {
  padding: 20px;
  background-color: #f4f4f4;
  border: 1px solid #ddd;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.predefined-questions .question-btn:hover {
  background-color: #e0e0e0;
}

/* Chatbot window responsiveness */
@media (max-width: 768px) {
  .chatbot-window {
    width: 80%;
    padding: 30px;
  }

  .chatbot-icon {
    bottom: 30px;
    right: 30px;
    padding: 18px;
  }
}

.suggestion-box {
  position: absolute;
  top: 4.8vw;
  left: 24vw;
  width: 46vw;
  background: #fff;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 5px 5px;
  max-height: 150px;
  overflow-y: auto;
  display: none; /* Initially hidden */
  z-index: 100000;
}
.suggestion-item {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}
.suggestion-item:hover {
  background-color: #f0f0f0;
}