body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f7f7f7;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* Header */
.header {
  background: #004aad;
  color: #fff;
  text-align: center;
  padding: 40px 10px;
}

.header h1 {
  margin: 0;
  font-size: 32px;
}

/* Product list */
.product-list {
  margin-top: 30px;
}

.product-card {
  background: #fff;
  padding: 20px;
  margin-bottom: 25px;
  border-radius: 8px;
  display: flex;
  gap: 20px;
  border: 1px solid #e2e2e2;
  position: relative;
}

.product-img {
  width: 200px;
  border-radius: 6px;
}

.product-info {
  flex: 1;
}

.product-title {
  font-size: 22px;
  margin: 0;
}

.product-summary {
  color: #555;
  margin: 10px 0;
}

.product-benefits li {
  margin: 6px 0;
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff8700;
  color: #fff;
  padding: 5px 12px;
  border-radius: 6px;
  font-weight: bold;
}

.ratings {
  margin: 10px 0;
  font-size: 18px;
  color: #ff9800;
}

.btn-primary {
  display: inline-block;
  padding: 12px 20px;
  background: #0085ff;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

.btn-primary:hover {
  opacity: 0.9;
}

/* Footer */
.footer {
  text-align: center;
  padding: 30px 0;
  color: #777;
}

/* NAVIGATION BAR */
.top-nav {
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  color: #004aad;
}

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

.nav-menu li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.nav-menu li a:hover {
  color: #0077ff;
}

/* FOOTER LINKS */
.footer-links {
  margin-bottom: 10px;
  display: flex;
  gap: 25px;
  justify-content: center;
}

.footer-links a {
  color: #555;
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: #0085ff;
}


/* ============================
   MOBILE RESPONSIVE DESIGN
   ============================ */

@media (max-width: 768px) {

  /* container */
  .container {
    width: 94%;
  }

  /* Navigation */
  .nav-container {
    flex-direction: column;
    gap: 10px;
  }

  .nav-menu {
    gap: 15px;
  }

  /* Header */
  .header {
    padding: 30px 10px;
  }

  .header h1 {
    font-size: 24px;
  }

  /* Product Card */
  .product-card {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }

  .product-img {
    width: 100%;
    max-width: 260px;
    margin: auto;
    border-radius: 8px;
  }

  .product-title {
    font-size: 20px;
  }

  .product-summary {
    font-size: 14px;
  }

  .product-benefits {
    padding-left: 0;
    list-style: none;
  }

  .product-benefits li {
    font-size: 14px;
    margin: 4px 0;
  }

  .ratings {
    font-size: 16px;
  }

  /* Badge */
  .rank-badge {
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    font-size: 12px;
  }

  /* Buttons */
  .btn-primary {
    width: 90%;
    margin: 12px auto 0;
    font-size: 16px;
    padding: 12px 0;
    display: block;
            display: flex;
        align-items: center;
        justify-content: center;
  }

  /* Footer */
  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}

.productcon {
      display: flex;
    align-items: center;
}