/* Base styles and layout */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #e0e7ff 0%, #ffffff 100%);
  color: #334;
}

.custom-navbar {
  background: #fff;
  box-shadow: 0 2px 10px rgba(50,50,93,0.08);
}

.navbar-content {
  display: flex;
  flex-wrap: wrap;
  max-width: 1150px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
}

.navbar-brand img {
  vertical-align: middle;
  margin-bottom: 0;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.navbar-links a {
  text-decoration: none;
  color: #223;
  font-weight: 500;
  transition: color 0.2s;
  padding: 0.3rem 0.8rem;
  border-radius: 5px;
}

.navbar-links a.active,
.navbar-links a:hover,
.navbar-links a:focus {
  color: #007bff;
  background: #e0e7ff;
}

.search-form {
  display: flex;
  align-items: center;
  margin-left: 1.5rem;
  gap: 0.1rem;
}

.search-form input {
  padding: 0.3rem 0.7rem;
  border: 1.5px solid #ccc;
  border-radius: 6px 0 0 6px;
  outline: none;
  font-size: 1rem;
}

.search-form button {
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  padding: 0.3rem 0.57rem;
  font-size: 1rem;
  transition: background 0.2s;
}

.search-form button:hover {
  background: #0056b3;
}

.navbar-toggler {
  display: none;
  background: #f7f7f7;
  border: none;
  font-size: 1.7rem;
  margin-left: 12px;
  padding: 0.2rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
}

.section-header {
  font-weight: 700;
  font-size: 2rem;
  margin: 2rem auto 0.8rem;
  color: #007bff;
  text-align: center;
}

.section-description {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.25rem;
  color: #666;
}

.main-container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.product-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 26px rgba(0,123,255,0.08);
  padding: 1.5rem 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s;
  min-height: 420px;
  position: relative;
}

.product-card:hover {
  box-shadow: 0 14px 44px rgba(0,123,255,0.15);
}

.product-img {
  width: 100%;
  max-width: 230px;
  height: auto;
  border-radius: 12px;
  margin-bottom: 1.2rem;
}

.product-card h5 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #223;
  text-align: center;
}

.calendar-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #007bff;
  font-size: 1.07rem;
  margin-bottom: 0.5rem;
}

.product-card p {
  font-size: 1rem;
  color: #545;
  text-align: center;
  margin-bottom: 1.1rem;
}

.btn-notify {
  background: #007bff;
  color: #fff;
  border: none;
  font-weight: 600;
  border-radius: 9px;
  padding: 0.65rem 1.4rem;
  font-size: 1.08rem;
  box-shadow: 0 2px 14px rgba(0,123,255,0.08);
  cursor: pointer;
  transition: background 0.2s;
  margin-top: auto;
}

.btn-notify:hover,
.btn-notify:focus {
  background: #0056b3;
}

.custom-footer {
  background: #f7f8fa;
  margin-top: 2rem;
  border-top: 1px solid #dde1e5;
  padding: 2.2rem 0 1.4rem 0;
  color: #454545;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-section {
  flex: 1 1 220px;
  min-width: 210px;
  margin-bottom: 1.2rem;
}

.footer-section h6 {
  color: #007bff;
  font-size: 1.09rem;
  margin-bottom: 0.8rem;
}

.footer-section a {
  color: #007bff;
  text-decoration: none;
  margin-right: 0.6rem;
}

.footer-social {
  font-size: 1.5rem;
}

.footer-social a {
  color: #007bff;
  margin-right: 0.5rem;
  transition: color 0.2s;
}

.footer-social a:hover {
  color: #0056b3;
}

.footer-copyright {
  text-align: center;
  font-size: 0.98rem;
  color: #888;
  margin: 0;
  padding-top: 1.3rem;
}

/* Responsive Styles */
@media (max-width: 980px) {
  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .navbar-content {
    padding: 0.8rem 0.6rem;
  }
  .main-container {
    padding: 1rem 0.5rem 2rem;
  }
}

@media (max-width: 699px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .footer-content {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  .footer-section {
    min-width: unset;
  }
}

/* Mobile Navbar */
@media (max-width: 800px) {
  .navbar-links {
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    left: 0;
    background: #fff;
    z-index: 10;
    box-shadow: 0 10px 34px rgba(90,90,110,0.10);
    gap: 0.4rem;
    padding: 1.2rem 0.7rem;
    display: none;
  }
  .navbar-links.show {
    display: flex;
  }
  .navbar-content {
    flex-direction: row;
    position: relative;
  }
  .navbar-toggler {
    display: block;
  }
}

/* Small screens adjustments */
@media (max-width: 490px) {
  .main-container {
    padding: 1rem 0.15rem;
  }
  .section-header {
    font-size: 1.4rem;
  }
  .product-card {
    min-height: 280px;
    padding: 1rem 0.3rem 0.6rem;
  }
}
