body{background:
          linear-gradient(rgba(0, 0, 0, 0.603), rgba(0, 0, 0, 0.603)),
          url(./arpad-czapp-tvP6pCnq9iI-unsplash.jpg) no-repeat center center
            fixed;
        background-size: cover;}
header {
      background: rgba(21, 101, 192, 0.9);
      color: white;
      padding: 20px;
      text-align: center;
      width: 100%;
    }
    nav {
      background: rgba(13, 71, 161, 0.9);
      padding:30px 10px;
      text-align: center;
      width: 100%;
    }
    nav a {
      color: white;
      margin: 0 15px;
      text-decoration: none;
      font-weight: bold;
    }
    nav a:hover { text-decoration: underline; }


.pharmacy-catalog {
  background-color: #f9f9f9;
  padding: 30px 20px;
  text-align: center;
}

.pharmacy-catalog h2 {
  font-size: 2em;
  color: #1565C0;
  margin-bottom: 40px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.medicine-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.medicine-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.medicine-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.medicine-info h3 {
  color: #c05415;
  margin-bottom: 10px;
}

.medicine-info p {
  color: #555;
  font-size: 0.95em;
  margin: 5px 0;
}

.provider {
  display: flex;
  align-items: center;
  margin: 10px 0;
}

.pharmacy-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-right: 10px;
  border-radius: 50%;
}

.view-link {
  display: inline-block;
  margin-top: 10px;
  background-color: #1565C0;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.view-link:hover {
  background-color: #0d47a1;
}

/* ---------------- Responsive Design ---------------- */

/* Default: hamburger hidden, nav links visible */
.hamburger {
  display: none;
  font-size: 1.8em;
  cursor: pointer;
  color: white;
}

/* Tablet screens */
@media (max-width: 992px) {
  
  header {
    padding: 15px;
    font-size: 1.2em;
  }

  .pharmacy-catalog h2 {
    font-size: 1.6em;
    margin-bottom: 25px;
  }

  .catalog-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
  }

  .medicine-img {
    height: 150px;
  }
}

/* Mobile screens */
@media (max-width: 600px) {
  header h1 {
    font-size: 1.4em;
    line-height: 1.2;
  }

  nav {
    position: relative;
    text-align: left;
  }

  /* Show hamburger only on small screens */
  .hamburger {
    display: block;
    position: absolute;
    right: 20px;
    top: 10px;
    z-index: 1000;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: rgba(13, 71, 161, 0.95);
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    padding: 10px 0;
    text-align: center;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    display: block;
    margin: 10px 0;
    font-size: 1.1em;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .medicine-card {
    text-align: center;
    padding: 15px;
  }

  .provider {
    flex-direction: column;
    align-items: center;
  }

  .pharmacy-logo {
    margin-bottom: 10px;
  }

  .view-link {
    width: 80%;
    text-align: center;
  }
}
