* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f2f2f2;
}

/* Header */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* padding: 15px 25px; */
 background-color: white ;

  color: white;
  flex-wrap: wrap;
  /* padding-left: 15px; or 20px */
}

.logo {
  font-size: 24px;
  font-weight: bold;
}

.search-login-container {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: flex-end; /* keep buttons right aligned */
  flex: 1;
  min-width: 250px;
  flex-wrap: nowrap;
}

.search-wrapper {
  margin-right: auto; /* push search bar left */
  margin-left: 35%; /* shift left but less */
  max-width: 780px; /* control width */
  min-width: 150px; /* prevent it from shrinking too small */
}

#search-bar {
  width: 100%; /* fill wrapper */
  padding: 8px 12px;
  border-radius: 5px;
  border: none;
  min-width: 150px;
  max-width: 100%;
  margin-left: -20%;
  max-width: 300px;
}

.auth-buttons button {
  margin-left: 5px;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background-color: white;
  color: #4caf50;
  font-weight: bold;
  white-space: nowrap;
}

.cart-container {
  font-size: 20px;
  cursor: pointer;
  white-space: nowrap;
}

#cart-count {
  background: red;
  border-radius: 50%;
  padding: 2px 8px;
  margin-left: 5px;
  font-size: 14px;
}

/* Navigation and Categories Container */
.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #3e8e41;
  padding: 10px 25px;
  gap: 40px;
  flex-wrap: wrap;
}

/* Nav Links */
.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  white-space: nowrap;
  padding: 5px 8px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.nav-links a:hover {
  background-color: #2f6f2a;
}

/* Categories Bar inside nav-links */
.categories-bar {
  position: relative;
}

.dropdown {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.category-title {
  font-weight: bold;
  font-size: 18px;
  color: white;
  user-select: none;
}

.category-list {
  display: none;
  position: absolute;
  background-color: white;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  padding: 10px;
  margin-top: 5px;
  z-index: 10;
  flex-direction: column;
  gap: 10px;
  min-width: 250px;
  border-radius: 5px;
}

.category-list span {
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 15px;
  cursor: pointer;
  background-color: #e6e6e6;
  color: #333;
  white-space: nowrap;
  transition: background-color 0.3s;
}

.category-list span:hover {
  background-color: #c4c4c4;
}

.category-list .offer {
  background-color: #ff9800;
  color: white;
  font-weight: bold;
}

.dropdown.show .category-list {
  display: flex;
}

/* Responsive Styles */
@media (max-width: 900px) {
  .main-header {
    justify-content: center;
    /* gap: 15px; */
  }

  .search-login-container {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  #search-bar {
    width: 100%;
    max-width: 400px;
    margin-bottom: 8px;
  }

  .auth-buttons {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
  }

  .cart-container {
    position: absolute;
    top: 15px;
    right: 25px;
  }

  .nav-links {
    flex-direction: column;
    padding: 10px 10px;
    gap: 15px;
  }

  .nav-links a {
    font-size: 16px;
    padding: 8px 12px;
  }

  .categories-bar {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }

  .dropdown {
    display: inline-block;
    width: 100%;
  }

  .category-title {
    color: #333;
    font-weight: bold;
    font-size: 16px;
  }

  .category-list {
    position: static;
    box-shadow: none;
    background-color: transparent;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0;
    margin-top: 8px;
    min-width: auto;
  }

  .category-list span {
    background-color: #e6e6e6;
    color: #333;
    padding: 6px 10px;
    font-size: 14px;
  }

  .category-list .offer {
    background-color: #ff9800;
    color: white;
  }
}
/* <<!-- cursorol --> */
/* Default (mobile first) */

.carousel-item img {
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

/* For larger screens */
@media (min-width: 768px) {
  .carousel-item img {
    height: 400px;
    border-radius: 15px;
  }
}
.offer-card {
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.offer-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.heading {
  font-size: 2rem;
  font-weight: 700;
  color: #000000; /* Dark black */
  margin-top: 2rem; /* Add space on top */
  margin-bottom: 0.1rem; /* Slightly reduce space on bottom */
  text-align: center;
  align-items: center;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: 1px;
}

/* //cards */
.product-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
}

.card {
  transition: box-shadow 0.3s ease;
  /* Optional: subtle shadow by default */
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), 0 1.5px 6px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.tooltip-container:focus .tooltip-text,
.tooltip-container:hover .tooltip-text {
  display: block;
  z-index: 1000;
}

.qty-number {
  min-width: 25px;
  text-align: center;
  display: inline-block;
}
/* Tooltip show on hover/focus */
.tooltip-container:focus .tooltip-text,
.tooltip-container:hover .tooltip-text {
  display: block !important;
  z-index: 1000;
}
#cart-toast {
  min-width: 220px;
  max-width: 90vw;
  text-align: center;
  transition: opacity 0.3s;
}

#cart-toast-container {
  position: fixed !important;
  bottom: 20px;
  left: 50% !important; 
  top: - 200% !important;
  transform: translateX(-80%) !important; 
  z-index: 9999;  
  transition: opacity 0.3s;
}

/* #cart-toast {
  min-width: 220px;
  max-width: 90vw;
  text-align: center;
  transition: opacity 0.3s;
}
#cart-toast-container {
  position: fixed;
  bottom: 20px;
  left: 10%;
  transform: translateX(-10%);
  z-index: 9999;
} */
@media (min-width: 992px) {
  .offcanvas {
    display: none !important;
  }
}
@media (min-width: 992px) {
  .navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
  }
}
.nutras-footer {
  /* background: #0f4c3d; */
  color: #f5f5f5;
  font-family: "Montserrat", Arial, sans-serif;
  letter-spacing: 0.01em;
  font-size: 0.95rem;
  padding-top: 60px;
  padding-bottom: 0;
}


.nutras-footer .footer-title {
  color: #ffb300;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

.nutras-footer .footer-desc {
  font-size: 0.95rem;
  color: #e0e0e0;
  margin-bottom: 1.5rem;
}

.nutras-footer .footer-links,
.nutras-footer .footer-contact {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.nutras-footer .footer-links li,
.nutras-footer .footer-contact li {
  margin-bottom: 1.1rem;
  font-size: 0.92rem;
}

.nutras-footer .footer-links a {
  color: #f5f5f5;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}

.nutras-footer .footer-links a:hover {
  color: #ffb300;
}

.nutras-footer .footer-contact strong {
  color: #ffb300;
  font-weight: 600;
}

.nutras-footer .footer-newsletter input[type="email"] {
  border-radius: 30px;
  border: none;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  font-family: "Montserrat", Arial, sans-serif;
}
.main-header.sticky-top {
  z-index: 1030; /* Lower than Bootstrap's offcanvas */
}

.offcanvas {
  z-index: 1050 !important; /* Higher than header */
}

.nutras-footer .footer-newsletter button {
  border-radius: 30px;
  font-weight: 700;
  font-family: "Montserrat", Arial, sans-serif;
  background: #ffb300;
  color: #198754;
  border: none;
  transition: background 0.2s, color 0.2s;
  font-size: 0.95rem;
  margin-top: 0.2rem;
}
.nutras-footer .footer-newsletter button:hover {
  background: #198754;
  color: #ffb300;
  border: 1px solid #ffb300;
}

.nutras-footer .footer-social {
  margin-top: 0.5rem;
}

.nutras-footer .footer-social-icon {
  color: #ffb300;
  background: #184c39;
  border-radius: 50%;
  margin-right: 12px;
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  font-size: 1.2rem;
  transition: background 0.2s, color 0.2s;
}

.nutras-footer .footer-social-icon:hover {
  background: #ffb300;
  color: #198754;
}

.nutras-footer-bottom {
  /* background: #198754; */
  color: #cfcfcf;
  font-size: 0.93rem;
  border-top: 1px solid #198754;
  margin-top: 0;
  padding-top: 18px;
  padding-bottom: 18px;
}

.nutras-footer-bottom .footer-bottom-links a {
  color: #ffb300;
  text-decoration: none;
  margin: 0 6px;
  font-weight: 600;
  transition: color 0.2s;
  font-size: 0.93rem;
}

.nutras-footer-bottom .footer-bottom-links a:hover {
  color: #fff;
}
/* Header green background */
.main-header {
/*  background-color: #198754;*/
  color: white;
  z-index: 1040;
}

/* Hamburger button styling on mobile */
@media (max-width: 991.98px) {
  .navbar-toggler {
    border: 1px solid white;
    margin-right: 10px;
    color: white;
    z-index: 1100;
  }
  .navbar-toggler-icon {
    filter: invert(1); /* white icon */
  }

  /* Search input full width inside offcanvas */
  .offcanvas-body .search-wrapper input {
    width: 100%;
  }

  /* Make logo text white */
  .main-header .logo span {
    color: white;
  }

  /* Cart icon white */
  .cart-container {
    color: white;
  }
}

/* Offer cards colors */
.offer-card {
  min-height: 120px;
}

/* Heading style */
.heading {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
/* Make hamburger icon white on mobile */
@media (max-width: 991.98px) {
  .navbar-toggler {
    border: 1.5px solid #fff !important;
    color: #fff !important;
    z-index: 1101;
  }
  .navbar-toggler-icon {
    filter: invert(1) grayscale(100%) brightness(2);
    /* Makes icon white and visible on green */
  }
}
/* In your CSS file or <style> tag */
@media (min-width: 0) {
  .sticky-top + .navbar {
    margin-top: 56px; /* Adjust to your header's height */
  }
}
body,
html {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.container:last-child,
.row:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body {
  margin: 0;
  padding: 0;
}

.custom-navbar {
  background-color: #f8f9fa; /* Light background */
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.custom-navbar .nav-link {
  color: #000;
  padding: 0.5rem 1rem;
  text-decoration: none;
}

.custom-navbar .nav-link:hover {
  color: #0d6efd;
}

.custom-navbar .dropdown-menu {
  border: 1px solid #ddd;
}

.custom-navbar .dropdown-item:hover {
  background-color: #f0f0f0;
}

@media (max-width: 991px) {
  .custom-navbar {
    padding: 0.5rem 1rem;
  }
}
.custom-navbar .navbar-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem; /* optional spacing between links */
}
.custom-navbar {
  background-color: #f8f9fa;
  padding: 10px 20px;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1000;
}
/* Align offcanvas content to left on mobile */
#mobileSidebar .offcanvas-body {
  text-align: left;
}

#mobileSidebar .search-login-container,
#mobileSidebar .navbar-nav {
  align-items: flex-start !important; /* For flex containers, align left */
}

#mobileSidebar .auth-buttons {
  justify-content: flex-start !important; /* Align buttons to left */
}

#mobileSidebar .search-wrapper input {
  text-align: left;
}
