@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Montserrat', sans-serif;
  background-color: #fdf7f0;
  color: #4a4a4a; 
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

header, footer {
  width: 100%;
  background: #fff;
  color: #4a4a4a;
  padding: 1.5rem 3rem;
  text-align: center;
  border-bottom: 1px solid #f0e6d2;
  font-weight: 600;
  letter-spacing: 0.05em;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: transform 0.5s ease;
}

header.hidden {
  transform: translateY(-100%);
}

footer {
  border-top: 1px solid #f0e6d2;
  border-bottom: none;
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1;
}

nav .logo-link {
  flex-shrink: 0;
}

nav a {
  color: #7a5c58;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

nav a:hover {
  color: #bfa16a; 
}

.search-container {
  flex-shrink: 0;
  margin-left: auto;
}

nav input[type="text"] {
  padding: 0.4rem 0.8rem;
  font-size: 1rem;
  border-radius: 20px;
  border: 1.5px solid #d8cfc4;
  max-width: 220px;
  color: #7a5c58;
  background-color: #f6eadd;
  transition: border-color 0.3s ease;
}

nav input[type="text"]:focus {
  border-color: #bfa16a;
  outline: none;
}

main {
  flex: 1;
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  width: 100%;
  padding-top: 150px;
}

h1, h2, h3 {
  font-weight: 700;
  color: #4a4a4a;
  letter-spacing: 0.05em;
}

h2 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
  text-align: center;
  font-weight: 600;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.product-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 6px 14px rgba(191, 161, 106, 0.2);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  padding-bottom: 1rem;
  border: 1px solid #f0e6d2;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 25px rgba(191, 161, 106, 0.4);
}

.product-card img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid #f0e6d2;
}

.product-card h3 {
  margin: 1rem 0 0.6rem;
  font-size: 1.3rem;
  color: #7a5c58;
}

.product-card a {
  display: inline-block;
  margin-bottom: 1rem;
  color: #bfa16a;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  letter-spacing: 0.05em;
}

.product-card a:hover {
  color: #7a5c58;
}

.logo {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.contact-info h3 {
  text-align: center;
  margin: 0.5rem 0;
}

@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  header {
    padding: 0.8rem 1.5rem;
  }

  header nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  .logo {
    height: 35px;
  }

  nav a {
    font-size: 0.9rem;
  }

  .nav-links {
    order: 2;
    width: 100%;
    gap: 1.2rem;
    justify-content: center;
  }

  .search-container {
    order: 3;
    margin-top: 0.5rem;
    width: 100%;
    margin-left: 0;
  }

  .search-container input[type="text"] {
    max-width: 100%;
    width: 100%;
    padding: 0.4rem;
  }

  main {
    padding-top: 150px; 
  }
}

@media (max-width: 600px) {
  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .product-card {
    padding-bottom: 0.5rem;
    border-radius: 10px;
  }

  .product-card h3 {
    font-size: 1rem;
  }

  .product-card a {
    font-size: 0.9rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 600px) {
  body.home .product-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
