/* CSS Document */

/* Upper Nav */

* {
    box-sizing: border-box; 
	/* outline: 1px solid cyan;   */
}

#main-nav {
  position: sticky !important;
  top: 0 !important;
  /* background: red !important; */
  z-index: 9999 !important;
}




.nav {
  /* position: sticky;
  top: 20px !important; */
  width: 100%;
  transition: all 0.3s ease;
  z-index: 3000;
}

.nav.shrink {
  /* padding: 0.4rem 0; */
}

/* Clear any sticky blockers */
.nav * {
  transform: none !important;
}

/*
.nav,
.nav-container,
body,
html {
  overflow: visible !important;
  position: static !important;
  transform: none !important;
}*/


/* Connected nav. syntax */

.nav-container {
  	max-width: 1500px;
  margin: 0 auto;
  /*padding: 1rem 2rem;*/
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.3s ease, max-width 0.3s ease;
  background-color: rgba(25, 25, 25, 0);
}

/* 'Floating above' nav. styling */

.nav.shrink .nav-container {
  max-width: 1000px;
  /* padding: 1rem 2rem 1rem 1.4rem; */
  background-color: rgba(25, 25, 25, 0.9);
  /* Optional rounded corners and shadows: */
  /* border-radius: 50px; */
  /* box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); */
}


.nav-left {
  flex: 0 0 auto;
	opacity: 1 !important;
}

.nav-right {
	position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1 1 auto; /* allow it to grow */
  justify-content: flex-end;
}



.logo {
	position: relative;
	margin: 1rem;
  	display: flex;
  	align-items: center;
	opacity: 1 !important;
	pointer-events: auto !important;
	z-index: 3000;
}
.logo a {
  display: inline-block;
	
}
.logo img {
  	width: 180px;
  	height: auto;
  	display: block;
	opacity: 1 !important;
	pointer-events: auto !important;
}





.nav-links {
  display: flex;
  gap: 0.4rem;
	font-size: 1rem;
}

.nav-links a {
  text-decoration: none;
  color: #c4c6bd;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
	border: 1px solid #333;
  transition: background-color 1s ease, color 0.4s ease;
}

.nav-links a:hover {
  background-color: #dcdfd6;
	color: #191919;
	border: 1px solid #dcdfd6;
}

.nav-links a.this-page {
  background-color: #dcdfd6;
  color: #191919;
  border: 1px solid #dcdfd6;
}

.nav-links a.this-page:hover {
  background-color: #dcdfd6;
  color: #191919;
  border: 1px solid #dcdfd6;
}



.search-icon {
  background: none;
  border: none;
  cursor: pointer;
  margin: 1rem;
}

.search-icon img {
  width: 20px;
  height: auto;
  display: block;
  opacity: 1 !important;
  pointer-events: auto !important;
  transition: transform 0.2s ease; /* Smooth transition */
}

.search-icon:hover img {
  transform: scale(1.3); /* Grows by 30% */
}


.nav.search-mode .search-field-container {
  display: flex;
  position: relative;
  inset: 0; /* top: 0; right: 0; bottom: 0; left: 0 */
  /* padding: 1rem 2rem;  match nav padding */
  /* background-color: rgba(25, 25, 25, 0.95);  match or enhance nav look */
  align-items: right;
  justify-content: right;
  z-index: 1001; /* above nav content */
}



.search-field-container {
	/*
	position: absolute;
	top: 100%;
	right: 0;*/
	width: 100%;
	max-width: 400px;
  display: none;
  flex: 1;
  align-items: right;
  justify-content: right;
  gap: 0.4rem;
	padding-right: 80px;
}

/* Global */
.search-field {
  	width: 100%;      /* make it longer */
  	height: 40px;         /* less tall */
  	padding: 0 10px 0 20px;  
  	background-color: #333;
  	color: #dcdfd6;
	font-size: 1rem;
  	border: none;
	border-radius: 20px;
  	margin: 0 420px 0 0;	
}


.search-field::placeholder {
  color: #c4c6bd;
}

.search-field:focus {
  background-color: #dcdfd6;
  color: #191919;
  outline: none; /* Optional: removes the default blue outline */
}

.search-field:focus::placeholder {
  color: #aaa; /* Optional: lighter placeholder color on focus */
}

/* Hide the search icon in search mode */
.nav.search-mode .search-icon {
  display: none;
}

/* Position the close (X) button exactly where the search icon was */
.nav.search-mode .close-search {
  position: absolute;
  top: 10px;
  right: 20px;
  transform: translateY(-50%);
  display: block;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  z-index: 1011;
}


.close-search {
  margin: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.close-search img {
  	width: 20px; /* or your preferred size */
  	height: auto;
  	display: block;
	opacity: 1 !important;
	pointer-events: auto !important;
	transition: transform 0.2s ease; /* Smooth transition */
}

.close-search:hover img {
  transform: scale(1.3); /* Grows by 30% */
}





/* When in search mode */
/* .nav.search-mode .logo, */
.nav.search-mode .nav-links,
.nav.search-mode .search-icon {
  display: none;
}

/* Base styles */
.hamburger-icon {
	position: absolute;
	top: 0;
  background: none;
  border: none;
  cursor: pointer;
  margin: 1rem;
	display:none;
	z-index: 3001;
}

.hamburger-icon img {
  width: 30px;
  height: auto;
  display: block;
  opacity: 1 !important;
  pointer-events: auto !important;
  transition: transform 0.2s ease; /* Smooth transition */
}

.hamburger-icon:hover img {
  transform: scale(1.3);
}



.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  background-color: rgba(0, 0, 0, 0.8); /* Darker overlay */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}



/* Show the overlay when nav is expanded */
.nav-container.expanded ~ .nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.menu-open {
  overflow: hidden;
}

body.no-scroll {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}


/* Mobile styles */

 

@media (max-width: 699px) {
	
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1010;
    }

	.nav-container.expanded .nav-links {
	  position: absolute; /* or try fixed if needed */
	  top: 100%; /* places it directly below the nav bar */
	  left: 0;
	  z-index: 1012;
		padding-top: 80px
	}

	.nav-container.expanded {
	  /* padding-bottom: 80px; if you want to move donwards */
	  background-color: #191919 !important;
	}

  	.nav-container {
    max-width: 100%;
    flex-direction: column;
    align-items: stretch;
	position: relative;
  	transition: none !important;
	}

	.nav.shrink .nav-container {
	background-color: rgba(25, 25, 25, 1);
	}
	
  	.search-icon { display: none; }
	.close-search { display: none; }
	.hamburger-icon { display: block; }
	
	.nav-container.expanded .nav-links,
	.nav-container.expanded .search-field-container {
	  display: flex;
		gap: 0;
	}
	
	.nav-container.expanded + .nav-overlay {
	  opacity: 1;
	  pointer-events: auto;
	}
	

  	.hamburger-icon { /* display: block;*/ top: -60px; }

	.search-field-container {
	  position: absolute;
	  top: 62px;
	  left: 0;
	  width: 100%;
	  background-color: #191919;
	  display: none; /* hidden by default */
	  padding: 10px;
	  flex-direction: column;
	  z-index: 1012;
	}
	

	/* Mobile */	
	.search-field {
	  width: 100%;   
	  height: 60px;        
	  padding: 1rem;  	/*  0 10px 0 20px; */
	  background-color: #333;
	  color: #dcdfd6;
	  border: none;
	  margin: 0;			/* 0 60px 0 0; */
		font-size: 2rem;
		border-radius: 4px;
	}

	.nav-links {
	  position: absolute;
	  top: 140px;
	  left: 0;
	  width: 100%;
	  background-color: #191919;
	  display: none; /* hidden by default */
	  padding: 1rem;
	  flex-direction: column;
	  z-index: 1000;
		font-size: 2rem;
	}

	.nav-links a {
	  text-decoration: none;
	  color: #c4c6bd;
	  padding: 0.8rem;
		border-radius: 0px;
			border-top: none;
		border-left: none;
		border-right: none;
	  border-bottom: 1px solid #c4c6bd;
	}

	.nav-links a:hover {
	  background-color: #dcdfd6;
		color: #191919;
		border-top: none;
		border-left: none;
		border-right: none;
	}
}

/* === Sticky normalization === */
#main-nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 3000 !important;
}

/* Prevent the .nav class from fighting the sticky */
.nav {
  position: static !important;
  top: auto !important;
}


/* iPad */
/* Tablet breakpoint — two-up layout but slightly tighter text */
@media (min-width: 700px) and (max-width: 1199px) {

  .nav-links a[href="/shop/index.php"] { display: none; }

}

@media (min-width: 1200px) {
  .nav-container {
    max-width: 1200px;
  }
}

/* End of nav syntax */
