body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

header {
  background-color: #fff;
  color: #333;
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin: 0 1.5rem;
}

nav ul li a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #007bff;
}

.logo {
  font-size: 1.75rem;
  font-weight: bold;
  color: #007bff;
}

.search-bar {
  display: flex;
}

.search-bar input {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-right: 0.5rem;
}

.search-bar button {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.search-bar button:hover {
  background-color: #0056b3;
}

/* Cart Icon Styles */
.cart-icon-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cart-icon {
  font-size: 1.75rem;
  color: #007bff;
}

.cart-notification {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #dc3545;
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 50%;
}

/* Notification Popup Styles */
.notification-popup {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #28a745;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 7px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.notification-popup.show {
  opacity: 1;
  visibility: visible;
}

.hero {
  background-color: #f0f8ff;
  padding: 4rem 0;
  text-align: center;
}

.hero-content {
  width: 70%;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #222;
}

.hero p {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 2rem;
}

.cta-button {
  background-color: #28a745;
  color: #fff;
  padding: 1.25rem 2.5rem;
  text-decoration: none;
  border-radius: 7px;
  display: inline-block;
  margin-top: 1rem;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #218838;
}

.product-category {
  padding: 3rem 0;
  text-align: center;
}

.category-intro {
  width: 70%;
  margin: 0 auto 2rem;
  color: #555;
  font-size: 1.1rem;
}

.featured-products {
  padding: 3rem 0;
  text-align: center;
  background-color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  justify-content: space-around;
  gap: 2rem;
  width: 80%;
  margin: 0 auto;
}

.product-card {
  padding: 1.5rem;
  background-color: #fff;
  border-radius: 7px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.075);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-card img {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 5px;
}

.product-card h3 {
  margin-bottom: 0.75rem;
  color: #222;
}

.price {
  font-size: 1.3rem;
  font-weight: bold;
  color: #28a745;
  display: block;
  margin-bottom: 0.75rem;
}

.product-card button {
  background-color: #28a745;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  border-radius: 5px;
  margin-top: 0.75rem;
  transition: background-color 0.3s ease;
}

.product-card button:hover {
  background-color: #218838;
}

footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  width: 100%;
  box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1);
}

/* Cart Modal Styles */
.cart-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  overflow: auto; 
}

.cart-modal-content {
  position: relative;
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px; 
  border-radius: 10px; 
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #aaa;
}

.close-button:hover,
.close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.cart-items {
  margin-bottom: 20px;
}

.cart-item {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-summary {
  text-align: right;
}

.checkout-details {
  margin-top: 20px;
}

.checkout-details label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.checkout-details input[type="tel"],
.checkout-details select {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-sizing: border-box; /* Ensures padding doesn't affect width */
}

.checkout-details select {
  height: 40px; /* Match the height of the input for visual consistency */
}

.checkout-button {
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%; /* Make the button full width */
  margin-top: 10px;
}

.checkout-button:hover {
  background-color: #0056b3;
}