/*
			Author:	Dale Wilson		
			Date:	11/17/2025			
			Last rev: 11/30/2025	
			Purpose:	Product Page
*/
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}
/* Ensure full height layout for sticky footer */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}
/* Make the main content area expand so footer stays at bottom */
.container {
  flex: 1;
}


/* Main page setup */
body {
  font-family: "Georgia", serif;
  background: #f8f5ef;
}

/* Nav bar setup - full width and sticks to the top */
.navbar {
  display: flex;
  justify-content: space-between; /* space between title and links */
  align-items: center;
  background-color: #5c614c;
  color: #fff;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  flex-wrap: wrap;
}


/* Style for nav links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

/* How the nav links look normally */
.nav-links a {
  color: #eaeaea;
  text-decoration: none;
  font-family: "Georgia", serif;
  font-weight: bold;
}


/* Change color and underline when active or hovered */
.nav-links a.active{
  text-decoration: underline;
} 
.nav-links a:hover {
  color: #d6d6FF;
}


/* Website title in the middle of the nav */
.website-title {
  font-family: "Brush Script MT", cursive;
  font-size: 2rem;
  text-align: center;
  position: relative;
}


/* Main content section - centers stuff on the page */
.container {
  display: flex;
  gap: 40px;
  max-width: 1100px; /* keeps it from getting too wide */
  margin: 30px auto 1.5rem; /* adds space above and near footer */
  padding: 0 16px; /* small side padding */
  align-items: flex-start;
  display: flex;
  justify-content: center;  /* Centers the whole section */
}


/* Main image box on the left */
#largeDisplay {
  border: 3px solid #b8b6b0;
  display: flex;
  justify-content: center;
  align-items: center;
}


/* Tea image inside the box */
#teaImage { 
  width: 250px; 
}


/* Description section in the middle */
#descriptionBox { 
  width: 300px; 
  padding: 10px; 
}


/* Tea name text */
#descriptionBox h2 { 
  font-size: 28px; 
}


/* Tea description text */
#descriptionBox p { 
  margin-top: 10px; 
  line-height: 1.4; 
}


/* Right section with tea options */
.rightMenu {
  width: 350px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}


/* Each tea box/card */
.teaCard {
    border: 2px solid #b8b8b8;
    padding: 20px;
    margin: 5px;
    cursor: pointer;
    text-align: center;        /* Centers the text horizontally */
    display: flex;             /* Required for perfect centering */
    justify-content: center;   /* Horizontal center */
    align-items: center;       /* Vertical center */
    font-size: 18px;
    background-color: #f7f7f7;
    height: 70px;              /* Ensures consistent card height */
}


/* Hover effect on tea boxes */
.teaCard:hover { 
  background: #e6e3dd;
  background-color: #d6d6FF 
}


/* Scroll container if needed elsewhere */
.scroll-container { 
  display: flex; 
  gap: 1rem; 
  overflow-x: auto; 
  scroll-behavior: smooth; 
}


/* Hides the scrollbar */
.scroll-container::-webkit-scrollbar { 
  display: none; 
}


/* Style for any product images inside scroll */
.product img { 
  width: 200px; 
  height: 200px; 
  object-fit: cover; 
  border: 2px solid #a6a58d; 
  border-radius: 10px; 
}


/* Text note under the scroll section */
.scroll-note { 
  text-align: center; 
  margin-top: 1rem; 
  color: #4e4e4e; 
}


/* Footer setup - full width and even padding */
/* Footer setup - naturally sits at bottom */
footer {
  background-color: #5c614c;
  color: #fff;
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
  width: 100%;
  margin-top: auto;
}

footer a {
  color: #d6d6FF;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
/* Base styles */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #fff;
}



/* Below is for phones/tablets and such */

/* Tablets & below (menu becomes hamburger) */
@media (max-width: 1024px) {
  .menu-toggle {
    display: block;
  }

  .navbar {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .nav-links {
    display: none;               /* Hidden until toggled */
    flex-direction: column;
    width: 100%;
    background-color: #4c5041;
    padding: 0;
    margin-top: 0.5rem;
    border-radius: 5px;
    overflow: hidden;
  }

  .nav-links.active {
    display: flex;               /* Shown when toggled */
    padding: 0.8rem 1rem;
    gap: 0.5rem;
  }

  .nav-links li {
    text-align: center;
    width: 100%;
  }

  .website-title {
    text-align: center;
    width: 100%;
    margin-top: 0.5rem 0;
  }
}

/* Phones */
@media (max-width: 780px) {
  .container {
    flex-direction: column;
    align-items: center;
  }

  .menu-toggle {
    align-self: flex-end;
  }

  .website-title {
    font-size: 1.6rem;
  }

  #largeDisplay,
  .rightMenu {
    width: 100%;
    max-width: 400px;
  }

  .nav-links.active {
    align-items: center;
  }
}

/* Smaller Phones */
@media (max-width: 768px) {
  .navbar {
    position: relative;
    width: 100%;
    padding-right: 2.5rem;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #fff;
    z-index: 999;
  }

  .nav-links {
    display: none;               /* Hidden until toggled */
    flex-direction: column;
    width: 100%;
    background-color: #4c5041;
    padding: 1rem 0;
    margin-top: 3.5rem;
    border-radius: 5px;
  }

  .website-title {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }

  .nav-links.active,
  .subscribe-form.active {
    align-items: center;
  }
}
