/* General Navbar Styling */
.navbar {
  display: flex;
  /* justify-content: space-between; */
  align-items: center;
  padding: 10px 30px;
  background-color: #fffaf0;
  position: relative;
}

/* Container for Menu Items and Logo */
.nav-left {
  display: flex;
  align-items: center;
  gap: 20px;  /* Add spacing between items */
}

/* Logo Container */
.logo-container {
  display: flex;
  justify-content: center;  /* Center the logo horizontally */
  flex-grow: 0;  /* Prevent the logo from growing */
  margin-left: auto;  /* Align the logo container to the center */
  margin-right: auto;
}

/* Logo Styling */
.logo {
  max-width: 220px;
  height: auto;
  transition: max-width 0.3s ease;
  padding: 10px;
  /* margin-left: 66px;  */

}

/* Menu Styling */
.menu {
  list-style: none;
  display: flex;
  gap: 20px; /* Space between items */
}

.menu li a {
  text-decoration: none;
  color: #513d2e ;
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  padding: 5px 15px;
  transition: color 0.3s ease;
}

.menu li a:hover {
  color: #c3b06c; /* Gold color on hover */
  transform: scale(1.1); /* Slight zoom effect on hover */
}

/* Dropdown Menu Styling */
.nav-item.dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 65px;
  list-style: none;  /* This removes the markers from the lists */
  left: 0;
  top: 88px;
  background-color: #fffaf0;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  width: 300px;
  min-height: calc(150vh - 88px);


}

.nav-item.dropdown .dropdown-menu.show {
  display: flex;
  flex-direction: column; /* Show dropdown on hover */
}

.dropdown-menu li {
  padding: 10px;
}

.dropdown-menu a {
  color: #513d2e; 
  font-size: 18px !important;
}

.dropdown-menu a:hover {
  color: #c3b06c;
}

/* Hamburger Icon for Mobile */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 25px;
  cursor: pointer;
}

.hamburger .bar {
  height: 4px;
  background-color: #a1866f;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
}

.hamburger.open .bar:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.open .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -8px);
}

/* Search Box and Cart */
.search-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px; /* Add spacing between search and cart */
  list-style: none;  /* This removes the markers from the lists */
  font-size: 20px;
  text-transform: uppercase; /* This will force any text inside the logo to be capitalized */
}

/* Search Button Styling */
.search-button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  color: #666666;
  font-weight: bold;
  padding: 6px 12px;
  font-size: 16px;
  transition: color 0.2s;
  /* font-family: 'Cormorant Garamond', serif; */
  margin-top: 3px;
}

/* Search Button Hover Effect */
.search-button:hover {
  color: #333333;
}


/* Input field in search bar */
.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  padding: 4px 6px;
  background: transparent;
  color: #333333;
  /* font-family: 'Cormorant Garamond', serif; */
}

/* Responsive Layout for Smaller Screens */
@media screen and (max-width: 768px) {
  /* Stack items vertically on small screens */
  .nav-left {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  /* Center the logo in mobile view */
  .logo-container {
    justify-content: center;
    flex-grow: 0;
    margin-left: 0;
    margin-right: 0;
  }

  /* Adjust logo size for smaller screens */
  .logo {
    max-width: 100px;
    margin-left: 66px
  }

  /* Hide the menu and show hamburger on mobile */
  .menu {
    display: none;
    flex-direction: column;
    gap: 10px;
  }

  .menu.show {
    display: flex;
    padding:0;
    padding-top: 5px;
  }

  /* Show the hamburger icon for small screens */
  .hamburger {
    display: flex;
  }

  /* Adjust dropdown for mobile */
  .dropdown-menu {
    position: relative;
    box-shadow: none;
  }

  /* Hide the search box and cart on mobile */
  .search-box {
    display: none;
  }
}

/* Media Query for Search Bar on Smaller Screens */
@media screen and (max-width: 768px) {
  /* Adjust search bar container for mobile */
  .search-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }

  /* Adjust search button and input field padding */
  .search-button {
    padding: 4px 8px;
  }

  .search-input {
    padding: 6px 10px;
  }
}

/* Hide menu by default on mobile */
.menu {
  display: flex;
}

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background-color: #333;
}

@media screen and (max-width: 768px) {
  .menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.95);
    display: none;
    z-index: 1000;
    padding: 2rem;
    overflow-y: auto;
  } */

  .mobile-menu-overlay.active {
    display: block;
  }

  .mobile-menu li {
    margin-bottom: 1rem;
  }

  .mobile-menu a {
    text-decoration: none;
    font-size: 1.2rem;
    color: #222;
  }
}

/* Base styles for menu */
#menu {
  position: absolute;
  top: 0;
  right: -100%; /* Hidden by default */
  height: calc(100vh - 88px);
  max-width: 300px;
  background-color: #fffaf0;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
  transition: right 0.3s ease;
  z-index: 1000;
  row-gap: 26px;
 
    padding: 30px;
}

/* Show menu when toggled */
#menu.show {
  right: 0;
  top:40px;
  left:0;
  
}

/* Backdrop overlay (optional) */
#menu::before {
  content: '';
  display: none;
}

@media (min-width: 769px) {
  #menu {
    position: static;
    width: auto;
    height: auto;
    background: none;
    box-shadow: none;
    right: 0 !important;
    transition: none;
  }

  #menu.show {
    right: 0;
  }
}
@media (min-width: 480px) {
  #menu {
    position: static;
    width: auto;
    height: auto;
    background: none;
    box-shadow: none;
    right: 0 !important;
    transition: none;
  }

  #menu.show {
    right: 0;
  }
}

/* Desktop styles */
@media (min-width: 769px) {
  #menu {
    position: static;
    height: auto;
    width: auto;
    background: none;
    box-shadow: none;
    right: 0 !important;
    transition: none;
    padding: 0;
  }

  #menu ul li {
    margin-bottom: 0; /* Reset spacing in desktop view */
    margin-right: 1.5rem; /* Optional: horizontal space in desktop */
    display: inline-block; /* Horizontal menu */
  }
}
/* Desktop styles */
@media (min-width: 480px) {
  #menu {
    position: static;
    height: auto;
    width: auto;
    background: none;
    box-shadow: none;
    right: 0 !important;
    transition: none;
    padding: 0;
  }

  #menu ul li {
    margin-bottom: 0; /* Reset spacing in desktop view */
    margin-right: 1.5rem; /* Optional: horizontal space in desktop */
    display: inline-block; /* Horizontal menu */
  }
}

/* ICON CONTAINER — always visible */
.mobile-icons {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

/* INDIVIDUAL ICONS */
.mobile-icons .icon-link {
  font-size: 1.4rem;
  color: #333;
}

.icon,
.icon-bag,
.icon-search {
  width: 24px;
  height: 24px;
  stroke: black;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.icon:hover,
.icon-search:hover,
.icon-bag:hover {
  transform: scale(1.1);
}

/* SEARCH INPUT — mobile default: hidden */
.search-input {
  display: none;
  position: absolute;
  top: 50px;
  right: 10px;
  background: #fffaf0;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  z-index: 1001;
  width: 180px;
}

/* SEARCH INPUT — visible when active */
.search-input.active {
  display: block;
}

/* DESKTOP: show search input always */
@media (min-width: 769px) {
    .search-input {
  width: 0px;
  opacity: 0px;
  transition: all 0.3s ease;
  pointer-events: none;
  }
.search-input.active {
  margin-top: 30px;
   width: 200px;
  opacity: 1;
  pointer-events: auto;
}


  /* Make sure icons are visible on desktop */
  .mobile-icons {
    display: flex;
  }
}


/* Social icon container */
.social-icons-desktop {
  display: flex;
  align-items: center;
  gap: 12px; /* space between icons */
}

/* Hide the entire group on mobile */
@media (max-width: 768px) {
  .social-icons-desktop {
    display: none;
  }
}

/* Individual icon links */
.nav-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.nav-icon-link:hover {
  transform: scale(1.1);
}

/* Icon sizes if needed */
.icon-facebook,
.icon-instagram {
  width: 24px;
  height: 24px;
  stroke: black;
  fill: none;
}
