/* ============================
   Navigation Bar Styling
============================ */

/* Navbar container */
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap; /* Prevent wrapping */
}

.motto {
  font-style: italic;
  font-size: 1.2rem;
  color: #555;
  margin-top: 5px;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: row; /* Ensure links are in a row */
  gap: 25px;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap; /* Prevent wrapping to next line */
}

.nav-links li {
  white-space: nowrap; /* Prevent breaking link text */
}


/* Logo styling */
.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #222;
}

/* Hamburger menu icon (hidden by default) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #222;
}

/* Navigation links list */
.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

/* Individual link styling */
.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #0077cc;
}

/* ============================
   Responsive Styles
============================ */

@media (max-width: 768px) {
  /* Show hamburger menu */
  .nav-toggle {
    display: block;
    margin-left: auto; /* Push hamburger to the right */
  }

  /* Stack navigation links vertically and hide by default */
  .nav-links {
    display: none !important;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
    gap: 10px;
  }

  /* Show links when JS adds .active */
  .nav-links.active {
    display: flex !important;
  }

  /* Keep logo and hamburger horizontally aligned */
  .nav-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}


/* Body and heading styling */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f7f9;
  margin: 0;
  padding: 20px;
}

h1 {
  text-align: center;
  color: #222;
  margin-bottom: 30px;
}

/* Container to center content */
.container {
  max-width: 1200px;
  margin: auto;
}

/* Category section title */
.category-title {
  font-size: 1.5rem;
  margin: 30px 0 15px;
  color: #444;
  border-bottom: 2px solid #ddd;
  padding-bottom: 5px;
}

.product-name {
  font-weight: bold;
  font-size: 16px;
  margin-top: 10px;
  color: #222;
}

/* Grid layout */
.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Product card styling */
.product {
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  width: calc(25% - 20px);
  box-sizing: border-box;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
}

/*
.product img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 5px;
}
*/
.product img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  border-radius: 5px;
  background-color: #fff; /* Optional: adds background if image doesn't fill */
  padding: 5px; /* Optional: adds spacing if image is smaller */
}

.product p {
  font-size: 14px;
  color: #555;
  margin: 10px 0;
}

.price {
  font-weight: bold;
  color: #000;
  margin: 10px 0;
}

/* WhatsApp Button */
.whatsapp-btn {
  background-color: #add8e6;
  color: #000;
  font-weight: bold;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 6px;
  display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .product {
    width: calc(33.33% - 20px);
  }
}

@media (max-width: 768px) {
  .product {
    width: calc(50% - 20px);
  }
}

@media (max-width: 480px) {
  .product {
    width: 100%;
  }
}

/* ========== Footer Styling ========== */
.site-footer {
  background-color: #fff;
  color: #555;
  padding: 30px 0;
  font-size: 15px;
  border-top: 1px solid #ddd;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.03);
  margin-top: 50px; /* Provides space between content and footer */
}

.footer-container {
  max-width: 1200px; /* Max width of the footer content */
  margin: 0 auto; /* Centers the footer container */
  padding: 0 20px; /* Horizontal padding for smaller screens */
  display: flex; /* Enables flexbox layout */
  justify-content: space-between; /* Pushes .footer-left and .footer-right to opposite ends */
  align-items: flex-start; /* Aligns items to the top of the container */
  flex-wrap: wrap; /* Allows items to wrap onto the next line on smaller screens */
  gap: 20px; /* Space between flex items */
}

.footer-left {
  flex-grow: 1; /* Allows this item to grow and take available space */
  flex-shrink: 1; /* Allows it to shrink if needed */
  flex-basis: auto; /* Initial size is based on content */
  min-width: 250px; /* Minimum width for the left section before wrapping */
}

.footer-left h3 {
  margin: 0 0 10px 0;
  color: #222;
  font-size: 1.3rem;
}

.footer-left p {
  color: #777;
  font-size: 14px;
}

.footer-right {
  display: flex; /* Makes this a flex container for its links */
  justify-content: flex-end; /* **Crucial:** Aligns the content (footer-links UL) to the far right */
  align-items: flex-start; /* Aligns content to the top within this div */
  flex-grow: 0; /* Prevents this item from growing unnecessarily */
  flex-shrink: 0; /* Prevents it from shrinking below its content size */
  flex-basis: auto; /* Initial size is based on content */
  min-width: 150px; /* Minimum width for the right section (links) before general footer wrap */
}

.footer-links {
  list-style: none; /* Removes bullet points from list */
  padding: 0;
  margin: 0;
  display: flex; /* Makes the list items flex items */
  gap: 20px; /* Space between individual navigation links */
  flex-wrap: wrap; /* Allows individual links to wrap if there's not enough horizontal space */
  /* Do NOT add justify-content here, as .footer-right is already positioning the UL */
}

.footer-links li a {
  color: #333;
  text-decoration: none; /* Removes underline from links */
  font-weight: 500;
  transition: color 0.3s ease; /* Smooth transition for hover effect */
}

.footer-links li a:hover {
  color: #0077cc; /* Color change on hover */
}

/* Optional: Media query for very small screens if default flex-wrap isn't enough */
@media (max-width: 500px) {
  .footer-container {
    flex-direction: column; /* Stack items vertically on very small screens */
    align-items: center; /* Center items when stacked */
  }

  .footer-left,
  .footer-right {
    width: 100%; /* Take full width when stacked */
    text-align: center; /* Center text within left/right sections */
    min-width: unset; /* Remove min-width to allow full flexibility */
  }

  .footer-right {
    justify-content: center; /* Center the links when stacked */
  }

  .footer-links {
    justify-content: center; /* Center individual links when stacked */
  }
}
