/* General page layout */
html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: Arial, sans-serif;
}

header {
  background-color: #222;
  padding: 10px 0;
  color: white;
}

header nav ul {
  list-style-type: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 30px;
  margin: 0;
  padding: 0 50px; /* reduced padding for better layout */
}

header nav ul li img {
  height: 40px;
  margin-right: 20px; /* space between logo and links */
}


header nav ul li a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 10px 15px;
  font-size: 18px;
  font-weight: 500;
  margin-left: 0; /* reset negative margin */
  transition: background-color 0.3s ease;
}


header nav ul li a:hover {
  background-color: #444;
  border-radius: 4px;
}

main {
  max-width: 900px;
  margin: 20px auto;
  padding: 0 20px;
}

h1, h2 {
  color: #007bff;
}

/* Product List Styling */
ul.product-list {
  list-style-type: none;
  padding: 0;
}

ul.product-list li {
  margin-bottom: 1em;
  font-size: 1.1rem;
  background-color: #fff;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-price {
  color: #28a745;
}

/* Discount styles */
ul.product-list li span[style*="line-through"] {
  color: #999;
}

ul.product-list li span[style*="font-weight: bold"] {
  font-weight: bold;
  color: #e74c3c;
}

ul.product-list li span[style*="background"] {
  background: #e74c3c;
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8em;
  margin-left: 10px;
}

/* Button styles */
.pay-now {
  padding: 6px 14px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.pay-now:hover {
  background-color: #0056b3;
}

/* Footer Styling */
body > footer {
  margin-top: auto;
}

footer {
  background-color: #222;
  color: white;
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 15px 0;
  margin-top: 40px;
  flex-wrap: wrap;
}

footer a {
  color: #ccc;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #fff;
  text-decoration: underline;
}


/* Responsive adjustments */
@media (max-width: 768px) {
  header nav ul {
    flex-direction: column;
    padding: 0 20px;
    gap: 15px;
  }

   header nav ul li img {
    margin-right: 0;
    margin-bottom: 10px;
  }  

  ul.product-list li {
 display: block;
}

  footer {
    gap: 20px;
  }
}