* {
  box-sizing: border-box;
}

html,
body {
  font-family: 'Montserrat', sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #1a1a1a;
}

header {
  background-color: #344648;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  border-bottom: 1px solid #fbe0c3;
}

.header-right {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-img {
  height: auto;
  max-width: 180px;
  object-fit: contain;
  padding: 0.5rem 1rem;
}

@media (max-width: 600px) {
  /*mobile view*/
  .logo-img {
    max-width: 140px;
    padding: 0.25rem 0.5rem;
  }
}

main {
  min-height: calc(100vh - 200px);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 80vh;
  padding: 2rem;
  padding-top: 5vh;
  background-image: url('/photos/carousel1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid #fbe0c3;
  border-radius: 1rem;
  transition: all 4s ease-in-out;
}

.overlay {
  background: rgba(255, 255, 255, 0.9);
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 1rem;
  border-color: #fbe0c3;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

  width: clamp(300px, 40vw, 600px); /* responsive & capped */
  min-height: 250px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  margin-top: 5vh;
}

.overlay h1 {
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
}

.overlay input {
  padding: 0.75rem;
  font-size: 1rem;
  width: 85%;
  max-width: 500px;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  border: 1px solid #fbe0c3;
}

.overlay button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background-color: #8aa191;
  color: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
}

.overlay button:hover {
  background-color: #7aa191;
}

.greeting {
  font-weight: 500;
  font-size: 0.95rem;
  color: #344648;
  margin-bottom: 1rem;
}

h1 {
  font-family: 'Montserrat', sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-weight: 400;
}

p {
  text-align: center;
}

nav a {
  font-weight: 400;
  font-size: 1.2rem;
  margin-right: 1.5rem;
  white-space: nowrap;
  color: #ffffff;
  text-decoration: none;
  text-shadow: 0.5px 0.5px #ffd5c0;
}
@media (max-width: 768px) {
  /*mobile view*/
  nav a {
    font-size: 0.95rem;
    margin-right: 0.8rem;
  }
}

.nav-auth-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-button {
  background-color: #8aa191; /* match your branding */
  color: #fff;
  border: none;
  border-radius: 1rem;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

nav a:hover {
  text-decoration: underline;
  color: #fff;
}

nav button {
  margin-left: 1rem;
}

.product-preview {
  margin-top: 4rem;
  text-align: center;
}

.product-preview h2 {
  margin-bottom: 2rem;
  font-weight: 400;
  text-shadow: 1px 1px 2px #fbe0c3;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 0 2rem;
}

.product-card {
  background-color: #ffffff;
  border: 1px solid #b3c1b7;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.product-card button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #8aa191;
  color: #ffffff;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
}

.product-card button:hover {
  background-color: #5e6c6d;
}

.view-link button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #8aa191;
  color: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
}

.view-link button:hover {
  background-color: #5e6c6d;
}

footer {
  background-color: #344648;
  margin-top: 4rem;
  text-align: center;
  font-size: 0.85rem;
  color: #ffffff;
  padding: 2rem;
  border-top: 1px solid #fbe0c3;
}

footer nav a {
  font-size: 0.85rem;
  color: #ffffff;
  text-decoration: none;
  font-weight: 300;
  text-shadow: none;
}
