/* SteriTex - style.css */

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f7f7f7;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 2rem auto;
}

header {
  background: #fff;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  color: #c6004e;
  font-weight: bold;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-menu li {
  position: relative;
}

.nav-menu li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.nav-menu li a:hover {
  color: #c6004e;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 220px;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  border-radius: 5px;
  padding: 0;
  margin: 0;
  list-style: none;
  top: 100%;
  left: 0;
}

.dropdown-content li a {
  color: #333;
  padding: 12px 16px;
  display: block;
  text-decoration: none;
  font-weight: 500;
}

.dropdown-content li a:hover {
  background-color: #fce4ec;
  color: #c6004e;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content::-webkit-scrollbar {
  width: 6px;
}

.dropdown-content::-webkit-scrollbar-thumb {
  background-color: #c6004e;
  border-radius: 3px;
}

.dropdown-content::-webkit-scrollbar-track {
  background-color: #eee;
}

.dropdown.open .dropdown-content {
  display: block !important;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #333;
  margin-left: auto;
}

.hero {
  background: linear-gradient(to right, #fce4ec, #fff);
  text-align: center;
  padding: 5rem 1rem;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 3rem;
}

.btn {
  background: #c6004e;
  color: #fff;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1rem;
  transition: background 0.3s ease;
  display: inline-block;
}

.btn:hover {
  background: #a0003b;
}

.products {
  padding: 3rem 0;
  background: #fff;
}

.products h3 {
  text-align: center;
  margin-bottom: 2rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: #fafafa;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card a {
  color: inherit;
  text-decoration: none;
  display: block;
  padding: 1rem;
}

.product-card img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin: 0 auto;
  display: block;
}

.product-card h4 {
  padding-top: 0.5rem;
}

.contact {
  padding: 3rem 1rem;
  background-color: #fce4ec;
  text-align: center;
}

.contact h3 {
  margin-bottom: 1rem;
}

.social-link {
  font-size: 1.1rem;
  color: #c6004e;
  text-decoration: none;
}

.social-link i {
  margin-right: 8px;
}

footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
    position: relative;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    background-color: #fff;
    position: absolute;
    top: 60px;
    right: 0;
    width: 220px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    max-height: 90vh;
    overflow-y: auto;
  }

  .nav-menu.active {
    display: flex;
  }

  .dropdown .dropdown-content {
    display: none;
    position: relative;
    max-height: 300px;
    overflow-y: auto;
    transition: max-height 0.3s ease;
  }

  .dropdown.open .dropdown-content {
    display: block;
  }
}