* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  
}
header {
  background-color: white;
  padding: 15px 20px;
  border-bottom: 1px solid #ccc;
  font-family: 'ABeeZee', sans-serif;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: auto;
  margin-left: 5%;
}

/* Logo Section */
.logo-section {
  display: flex;
  align-items: center;
  gap: 20px;
}
span{
  font-weight: bold;
}

.logo {
  display: flex;
  align-items: center;
  width: 340px;
}

/* Navigation and Button */
.about-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

nav {
  display: flex;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
  
  align-items: center;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 1rem;
}
.sale{
  color: #E26D5A;
}

.shop-mattress {
  background-color: #E26D5A; /* Dark purple */
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.shop-mattress-list{
  display: none;
  background-color: #E26D5A; /* Dark purple */
  color: white;
  padding: auto;
  border-radius: 20px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.shop-mattress:hover {
  background-color: #C55646; /* Slightly darker shade on hover */
}
.cart-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px; /* Adjust size as needed */
  height: 40px;
  border: 2px solid black; /* Circle border */
  border-radius: 50%; /* Makes it circular */
  cursor: pointer;
}

.cart-container i {
  font-size: 18px; /* Size of the cart icon */
  color: black;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.cart-container:hover {
  background-color: #E26D5A; /* Add hover background */
  color: white; /* Change cart icon color on hover */
}


/* Hamburger Icon */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Responsive Styles */
@media (max-width: 930px){
  .logo {
    display: flex;
    align-items: center;
    width: 260px;
  }
  .nav-container{
    padding-left: 20px;
  }
  
}
@media (max-width: 900px) {
  .logo {
    display: flex;
    align-items: center;
    width: 260px;
  }
  

  .nav-list {
    display: none; /* Hidden by default */
    flex-direction: column;
    background-color: white;
    position: absolute;
    top: 70px;
    right: 0;
    width: 150px;
    height: 275px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 10px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 10;
    margin-right: 140px;
  }

  .nav-list.active {
    display: flex;
    transform: translateX(0); /* Slide into view */
  }

  .nav-list li {
    margin: 10px 0;
    margin-bottom: 2px;
  }
  
  

  .shop-mattress {
    display: block;
    margin: 10px 0;
    padding: 8px;
    text-align: center;
  }

  .hamburger {
    display: flex;
  }
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0; /* Hide middle bar */
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

/* Prevent body from scrolling when nav is open */
body.no-scroll {
  overflow: hidden;
}

@media (max-width: 550px) {
  .header-container{
    height: 50px;
  }
  
  .logo {
    width: 210px; /* Reduce the logo size even further */
    display: flex;
    align-items: center;
    
    margin-bottom: 5px; /* Adjust spacing for smaller screens */
    
  }
  .shop-mattress-list{
    padding: 10px;
    display: block;
  }

  .nav-list {
    top: 65px; /* Adjust top position for smaller screens */
    width: 165px;
    padding: 15px; 
    height: auto;
    margin-right: 20px;
    z-index: 12;
  }
  .logo-section{
    margin-right: 20px;
  }
  .nav-container{
    padding-left: 0%;
  }
  a.shop-mattress{
    font-size: 0.6rem;
    height: 30px;
    align-items: center;
    
  }
  .hamburger.active{
    padding: 10px;
  }
  .shop-mattress {
    display:none;
  }
  
}
@media (max-width:306px){
  .logo {
    width: 150px; /* Reduce the logo size even further */
    display: flex;
    align-items: center;
    padding: 0%;
}
header {
  background-color: white;
  padding: 10px 20px;
  border-bottom: 1px solid #ccc;
}

}


