@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0,500;0,800;1,500;1,600;1,800&display=swap');
*{
    margin: 0%;
    padding: 0%;
    border: none;
    outline: none;
    box-sizing: border-box;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    list-style: none;
    text-decoration: none;
}
body {
    /*background: #fafafa;*/
  background: linear-gradient(135deg, rgba(11, 26, 11, 0.8), rgba(0, 204, 255, 0.8), rgba(255, 193, 7, 0.8));
  /*background-image: url(images/bg1.jpg);
  background-repeat: no-repeat;
  background-size: cover;         Scales image to cover entire element */
  /*background-position: center;    Centers the image */
  /*background-attachment: fixed;   Optional: keeps background fixed while scrolling */
  color: #333; /* Dark gray text color for good contrast */
  font-family: 'Arial', sans-serif; /* Clean, sans-serif font */
  line-height: 1.6; /* Improved readability */ /* Ensure the body is at least the full height of the viewport */
  font-size: 16px; /* Base font size */
}

@media (max-width: 768px) {
  body {
    background-color: #fafafa;
  }
}

.header {
  position: sticky;
  width: 100%;
  height: 80px;
  top: 0;
  right: 0;
  z-index: 1000;
  text-align: center;
  display: flex;
  align-items: center;
  align-content: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 0.6rem;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 12px 2.5rem;
  transition: all 0.3s ease;
  overflow: hidden;
  border-bottom: 1px solid rgba(143, 121, 223, 0.1);
}

.header.scrolled {
  height: 70px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.98);
}

.header .name{
  width: 45%;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.header .name h2 {
  color: rgb(143, 121, 223);
  text-align: center;
  font-family: 'Montserrat', 'Poppins', sans-serif;
  letter-spacing: 3px;
  font-size: 32px;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, rgb(143, 121, 223) 0%, rgb(113, 95, 199) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.header.scrolled .name h2 {
  font-size: 28px;
}

.header .name .logo{
  width: auto;
  display: flex;
  align-items: center;
}

.header .name .logo img{
  width: 55px;
  height: 55px;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(143, 121, 223, 0.2));
}

.header .name .logo img:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Top navigation */
.topnav {
  display: flex;
  justify-content: space-around;
  width: 50%;
  gap: 4px;
  align-items: center;
}

.topnav a {
  color: #333;
  text-align: center;
  padding: 12px 18px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.topnav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, rgb(143, 121, 223), rgb(113, 95, 199));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
  border-radius: 3px 3px 0 0;
}

.topnav a:hover::before,
.topnav a.active::before {
  width: 80%;
}

.topnav a i {
  margin-right: 6px;
  font-size: 18px;
  color: rgb(143, 121, 223);
  transition: all 0.3s ease;
}

.topnav a:hover {
  color: rgb(143, 121, 223);
  background: rgba(143, 121, 223, 0.08);
  transform: translateY(-2px);
}

.topnav a:hover i {
  color: rgb(113, 95, 199);
  transform: scale(1.15);
}

.topnav a.active {
  color: rgb(143, 121, 223);
  background: rgba(143, 121, 223, 0.1);
  font-weight: 600;
}

.topnav a.active i {
  color: rgb(113, 95, 199);
}

@media screen and (max-width: 1024px) {
  .header .topnav{
    width: 65%;
  }
}

@media screen and (max-width: 768px) {
  .header {
    height: 70px;
    padding: 10px 1rem;
  }
  
  .header .name {
      width: 100%;
      gap: 8px;
  }
  
  .header .name h2 {
    font-size: 24px;
    letter-spacing: 2px;
  }
  
  .header .name .logo img {
    width: 45px;
    height: 45px;
  }
  
  .topnav {
      display: none;
  }
  
  .search {
    width: 95%;
    padding: 12px 15px;
    border-radius: 12px;
  }
  
  .search form {
    width: 100%;
    gap: 8px;
  }
  
  .search form button {
    min-width: 80px;
    padding: 10px 16px;
    font-size: 14px;
  }
  
  input[type=text] {
    min-width: 0;
    padding: 10px 15px 10px 45px;
    font-size: 14px;
  }
  
  .search .tools {
    display: none;
  }
  
  .promo-banner.free-delivery {
    width: 95%;
    padding: 20px;
    border-radius: 12px;
  }
  
  .free-delivery .promo-content h3 {
    font-size: 20px;
  }
  
  .free-delivery .promo-content p {
    font-size: 14px;
  }
}

/* footer */
.bottom-nav {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 70px;
    background: white;
    display: none;
    justify-content: space-between;
    box-shadow: 0 5px 15px rgba(14, 55, 54, 0.3), 0 2px 5px rgba(14, 55, 54, 0.2), 0 -2px 2px rgba(14, 55, 54, 0.1);
    }
    
    .bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgb(1, 12, 12);
    width: 25%;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
    }
    
    .bottom-nav a i {
    font-size: 24px;
    margin-bottom: 4px;
    color: rgb(8, 240, 20);
    }
    
    .bottom-nav a:hover {
    color: rgb(190, 157, 157);
    border-bottom: 2px solid rgb(170, 223, 24);
    }
    
    .bottom-nav .active {
    color: rgb(34, 216, 74);
    border-bottom: 4px solid rgb(10, 107, 18);
    }
    
    .bottom-nav .active i {
    color: rgb(0, 0, 0);
    }
    
    @media (max-width: 768px) {
    .bottom-nav {
      display: flex;
    }
    }
    