:root {
  --bs-primary: #28a745;
}

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


* {
  font-family: "Poppins", "sans-serif";
}

.hero-section {
  background: #166534;
}

.card .price {
  font-weight: 700;
}

.badge-category {
  background: #f7f2f2;
  color: #025f19;
  border: 1px solid #05fc05;
}


.product-img {
  height: 180px;
  object-fit: cover;
}

.quantity-input {
  width: 80px;
}


.cart .count {
  position: absolute;
  top: -8px;
  right: -15px;
  background: red;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
}

footer {
  margin-top: 3rem;
  position: relative;
  background: #14532d;
  color: #fff;
  text-align: center;
  padding: 1.5rem 1rem;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

footer p {
  font-size: 0.95rem;
  opacity: 0.85;
}


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

body {
  font-family: "Poppins", "sans-serif";
}

.popular-medicines {
  background: #14532d;
  padding: 60px 0;
  border-radius: 12px;
}

.popular-medicines h2 {
  color: #fdfffe;
  font-weight: 700;
  margin-bottom: 10px;
}

.popular-medicines p {
  color: #fffdfd;
  font-size: 1rem;
  margin-bottom: 40px;
}

.feature-section {
  background: linear-gradient(135deg, #f6fdf9, #f0f7f4);
  padding: 60px 0;
}

.feature-section .card {
  border: none;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease-in-out;
}

.feature-section .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);

}

.feature-section .card-title {
  color: #14532d;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-section .card-text {
  color: #070707;
  font-size: 0.95rem;
}

#storeProducts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  padding: 10px;
}

@media (max-width: 576px) {
  #storeProducts {
    grid-template-columns: repeat(1.5, 1fr);
  }
}

@media (min-width: 577px) and (max-width: 992px) {
  #storeProducts  {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 993px) {
  #storeProducts  {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card img {
  width: 100%;
  display: block;
  margin: 0 auto;
  height: 200px;
  align-items: center;
  object-fit: contain;
  background: #f9f9f9;
  padding: 10px;
}

.card-title {
  font-size: 15px;
}

.product-card .card-body {
  flex: 1;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  padding: 15px;
}

.product-card p {
  font-size: 1.2rem;
  font-weight: 700;
  color: #050505;
  margin-bottom: 15px;
}

.product-card button {
  background: #28a745;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.product-card button:hover {
  background: #0e3e21;
}

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

.btn-cart {
  background: #28a745;
  color: #fff;
  font-weight: 500;
  border-radius: 8px;
  transition: 0.3s ease;
}

.btn-cart:hover {
  background: #080808;
  color: #fff;
}

.logout-btn {
  background-color: #f9fcf9;
  color: rgb(18, 83, 32);
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  font-weight: bold;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}


nav {
  display: flex;
  top: 0;
  left: 0;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #fff;
  position: sticky;
  box-sizing: border-box;
  z-index: 1000;
  border-bottom: 1px solid #ddd;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}

.brand-big {
  font-size: 28px;
  font-weight: 800;
  color: #14532d;
  letter-spacing: 2px;
}

.brand-small {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-top: -5px;
}

/* Hide checkbox */
#menu-toggle {
  display: none;
}

/* Hamburger */
.hamburger {
  font-size: 26px;
  cursor: pointer;
  display: none;
  user-select: none;
  z-index: 1001;
  /* clickable */
}

.nav-links {
  display: flex;
  gap: 20px;
}

.menu {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu li a {
  text-decoration: none;
  color: #050505;
}

.menu li :hover {
  color: #166534;
}

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    margin-left: auto;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    /* below navbar */
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;

    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  /* ✅ Checkbox toggle */
  #menu-toggle:checked+.hamburger+.nav-links {
    max-height: 600px;
    padding: 15px 0;
  }

  .menu {
    flex-direction: column;
    gap: 12px;
    background: white;
    border-radius: 5px;
  }

}

