/* Reset Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #f3f4f6;
  color: #333;
  line-height: 1.5;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #28a745; /* Green background */
  padding: 1rem 2rem;
  color: white;
}

.nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  background-color: #28a745; /* Green background */
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

.menu li a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
}

.menu li a:hover {
  color: #ffcc00;
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  margin-right: 1rem;
}

/* Cart Icon */
.cart-icon {
  position: relative;
}

#cartButton {
  background: none;
  border: none;
  color: white; /* Make the icon white */
  font-size: 1.5rem; /* Adjust size if needed */
  cursor: pointer;
  position: relative;
}

#cartCount {
  background-color: red; /* Red background for item count */
  color: white; /* White text for the item count */
  font-size: 0.8rem;
  font-weight: bold;
  border-radius: 50%;
  padding: 0.2rem 0.5rem;
  position: absolute;
  top: -10px;
  right: -10px;
}

/* Cart dropdown styling (to ensure it's visible when opened) */
.cart-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  padding: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 250px;
  z-index: 10;
  display: none; /* Initially hidden */
  color: black; /* Cart text color is now black */
}

.cart-dropdown.show {
  display: block; /* Display when toggled */
}

.cart-dropdown ul {
  list-style: none;
  margin-bottom: 1rem;
  padding: 0;
}

.cart-dropdown li {
  margin-bottom: 0.5rem;
}

.cart-dropdown p {
  font-size: 1.1rem;
  font-weight: bold;
  text-align: right;
}

/* Remove Button Styling */
.remove-button {
  background: none;
  border: none;
  color: red;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  margin-left: 10px;
  padding: 0;
}

.remove-button:hover {
  color: #dc3545; /* Darker red when hovered */
  text-decoration: underline;
}

/* Cart Item Styling */
.cart-dropdown .cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #ddd;
  font-size: 1rem;
}

.cart-dropdown .cart-item span {
  flex: 1;
  text-align: left;
}

.cart-dropdown .cart-item button {
  margin-left: 10px;
}

/* Welcome Section */
.welcome-text {
  text-align: center;
  padding: 2rem;
  background-color: white; /* White background */
  color: #333; /* Text color changed to match body text */
}

.welcome-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.welcome-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.welcome-text button {
  background-color: #ffcc00;
  color: #28a745;
  border: none;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.welcome-text button:hover {
  background-color: #ffc107;
}

/* Items Section */
.items-section {
  padding: 2rem;
}

.items-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #28a745;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 0 2rem;
}

.item {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.item:hover {
  transform: translateY(-5px);
}

.item img {
  max-width: 100%;
  border-radius: 8px;
}

.item h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.2rem;
}

.item p {
  font-size: 1rem;
  font-weight: bold;
  color: #28a745;
}

.item button {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.item button:hover {
  background-color: #218838;
}

/* Checkout Button */
#checkoutButton {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 1rem;
  transition: background-color 0.3s;
}

#checkoutButton:hover {
  background-color: #218838;
}
.login-container {
  width: 100%;
  max-width: 400px;
  margin: 5rem auto;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.login-container h2 {
  margin-bottom: 1rem;
  color: #28a745;
}

.login-container input {
  width: 100%;
  padding: 0.8rem;
  margin: 0.5rem 0;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.login-container button {
  width: 100%;
  background-color: #28a745;
  color: white;
  border: none;
  padding: 0.8rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.login-container button:hover {
  background-color: #218838;
}

.login-container p {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.login-container a {
  color: #28a745;
  text-decoration: none;
}

.login-container a:hover {
  text-decoration: underline;
}
.phone-container {
  display: flex;
  align-items: center;
  position: relative;
}
.phone-container input {
  flex: 1;
  padding-left: 50px; /* Space for country flag */
}
#phone {
  width: 132%;
}
.signup-container {
  width: 100%;
  max-width: 400px;
  margin: 5rem auto;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.signup-container h2 {
  margin-bottom: 1rem;
  color: #28a745;
}

.signup-container input {
  width: 100%;
  padding: 0.8rem;
  margin: 0.5rem 0;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.signup-container button {
  width: 100%;
  background-color: #28a745;
  color: white;
  border: none;
  padding: 0.8rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.signup-container button:hover {
  background-color: #218838;
}

.signup-container p {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.signup-container a {
  color: #28a745;
  text-decoration: none;
}

.signup-container a:hover {
  text-decoration: underline;
}
.footer {
  background-color: #9b6e50;
  color: white;
  padding: 20px 0;
  font-family: Arial, sans-serif;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-section {
  width: 30%;
}

.footer-section h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.footer-section p, .footer-section ul {
  font-size: 14px;
  line-height: 1.6;
}

.footer-section ul {
  list-style-type: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section a {
  color: white;
  text-decoration: none;
}

.footer-section a:hover {
  text-decoration: underline;
}

.social-media-links {
  display: flex;
  gap: 10px;
}

.social-media-links img {
  width: 30px;
  height: 30px;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
}
/* Responsive Design */
@media (max-width: 768px) {
  .menu {
      display: none;
      flex-direction: column;
      gap: 0.5rem;
      background-color: #28a745; /* Green background for mobile menu */
      padding: 1rem;
      position: absolute;
      top: 60px;
      left: 0;
      width: 200px;
      z-index: 1000;
  }

  .menu.show {
      display: flex;
  }

  .menu-toggle {
      display: block;
  }

  .cart-dropdown {
    position: fixed;
    top: 70px;
    right: 0;
    width: 90%;
    max-width: 300px;
    z-index: 100;
  }
  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .footer-section {
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
  }

  .social-media-links {
    justify-content: center;
    margin-top: 10px;
  }

  .footer-bottom {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
    /* Mobile Menu */
    .menu {
      display: none;
      flex-direction: column;
      gap: 0.5rem;
      background-color: #28a745; /* Green background for mobile menu */
      padding: 1rem;
      position: absolute;
      top: 60px;
      left: 0;
      width: 100%; /* Full width on very small screens */
      z-index: 1000;
  }

  .menu.show {
      display: flex;
  }

  .menu-toggle {
      display: block;
  }

  /* Cart Dropdown */
  .cart-dropdown {
    position: fixed;
    top: 80px; /* Adjusted top position */
    right: 0;
    width: 90%; /* Make the cart dropdown take most of the screen width */
    max-width: 250px; /* Slightly narrower max width */
    z-index: 100;
  }
  .footer-section h4 {
    font-size: 16px;
  }

  .footer-section p, .footer-section ul {
    font-size: 12px;
  }

  .social-media-links img {
    width: 25px;
    height: 25px;
  }

  .footer-bottom {
    font-size: 12px;
  }
}

