/* Import base styles */
@import "./base.css";

.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-text {
  flex: 1;
}

.cookie-text p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-color);
  font-weight: 500;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.btn-primary.accept-cookies {
  background-color: var(--main-green-color);
  border-color: var(--main-green-color);
  color: var(--color-dark-gray);
}

.btn-primary.accept-cookies:hover {
  background-color: var(--light-green-color);
  border-color: var(--light-green-color);
}

.btn-outline-secondary.customize-cookies {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline-secondary.customize-cookies:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-white);
}

/* Layout Styles */
.sidebar-container {
  border-right: 1px solid var(--border-color);
  position: relative;
  min-height: 100vh;
  padding-top: 50px;
  display: flex;
  height: 100%;
}

.sidebar-toggle-btn {
  border-radius: 5px;
  background-color: var(--main-green-color);
  border: none;
  color: var(--color-white);
  font-size: 1.5rem;
  cursor: pointer;
}

.sidebar-toggle-btn:hover {
  background-color: var(--light-green-color);
}

.logo-img {
  position: absolute;
  top: 0;
  right: 10px;
  z-index: 100;
}

.sidebar-content {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  margin-top: 100px;
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    color-stop(0%, #9fd632),
    color-stop(100%, #79b40e)
  );
  z-index: 1;
  min-height: 100vh;
}

.header {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--border-color);
}

.content {
  padding: 2rem;
}

.langbar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.1);
}

.langbar img {
  width: 24px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease;
}

.langbar img:hover {
  transform: scale(1.1);
}

.main-nav {
  background-color: var(--light-green-color);
}

.main-container {
  min-height: 100vh;
}

/* Sidebar navigation */
.sidebar-nav {
  padding: 1rem;

  a {
    text-wrap: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .dropdown-menu a {
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

.sidebar-nav .nav-link {
  color: var(--text-color);
  padding: 0.75rem 1rem;
  position: relative;
  font-size: 0.9rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-nav .nav-link:hover {
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    color-stop(0%, #9fd632),
    color-stop(100%, #79b40e)
  );
  color: var(--color-white);
}

/* Active styling for all navigation levels */
.sidebar-nav .nav-link.active,
.sidebar-nav .dropdown-item.active {
  color: var(--color-white);
  background-color: inherit;
  font-weight: 500;
}

/* Parent items of active links */
.sidebar-nav .dropdown-hover:has(> .dropdown-menu .active) > a {
  color: var(--color-white);
  opacity: 0.8;
}

.sidebar-nav .dropdown-hover.active-dropdown > a {
  border-left: 3px solid #7fae2e;
  background: none;
  color: #222;
}

/* ===== VISUAL HIERARCHY IMPROVEMENTS ===== */

/* Main category items (top level) - subtle darker green */
.sidebar-nav .dropdown-hover > a {
  background: linear-gradient(135deg, #9fd632 0%, #79b40e 100%);
  color: #ffffff;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  border-left: 4px solid #7fae2e;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Subcategory items (second level) - lighter green */
.sidebar-nav .dropdown-menu .dropdown-item {
  background: linear-gradient(135deg, #b8e6a3 0%, #9fd632 100%);
  color: #2d5016;
  font-weight: 500;
  border-left: 3px solid #8ac718;
  margin: 2px 0;
  border-radius: 0 4px 4px 0;
}

/* Third level items (if any) - very light green */
.sidebar-nav .dropdown-menu .dropdown-menu .dropdown-item {
  background: linear-gradient(135deg, #d4f0c4 0%, #b8e6a3 100%);
  color: #1e3a0f;
  font-weight: 400;
  border-left: 2px solid #9fd632;
  margin: 1px 0;
  padding-left: 1.5rem;
}

/* Hover states for better visual feedback */
.sidebar-nav .dropdown-hover > a:hover {
  background: linear-gradient(135deg, #8ac718 0%, #6ba00c 100%);
  color: #ffffff;
  transform: translateX(2px);
  transition: all 0.3s ease;
}

.sidebar-nav .dropdown-menu .dropdown-item:hover {
  background: linear-gradient(135deg, #9fd632 0%, #8ac718 100%);
  color: #1e3a0f;
  transform: translateX(2px);
  transition: all 0.3s ease;
}

.sidebar-nav .dropdown-menu .dropdown-menu .dropdown-item:hover {
  background: linear-gradient(135deg, #b8e6a3 0%, #9fd632 100%);
  color: #2d5016;
  transform: translateX(2px);
  transition: all 0.3s ease;
}

.sidebar-nav .dropdown-menu .dropdown-item {
  font-size: 0.97em;
  /* Color and background now handled by hierarchy rules above */
  font-weight: 400;
}

.dropdown-hover {
  position: relative;
}

.dropdown-hover .dropdown-item {
  /* Color and background now handled by hierarchy rules above */
  padding: 0.75rem 1rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
}

/* Hover styles now handled by hierarchy rules above */

.dropdown-hover:hover > .submenu {
  display: none !important;
}

.sidebar-nav .dropdown-toggle {
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  margin-right: -5px;
  margin-left: 8px;
}

.sidebar-nav .dropdown-toggle.open {
  transform: rotate(180deg);
}

.sidebar-nav .dropdown-hover > .dropdown-menu {
  display: none !important;
  position: static;
  float: none;
  width: 100%;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.sidebar-nav .dropdown-hover > .dropdown-menu.show {
  display: block !important;
}

.sidebar-nav .dropdown-menu {
  margin-left: 1rem;
  border-left: 2px solid #7fae2e; /* darker green for clarity */
  padding-left: 0.75rem;
  background: none;
}

/* Update for width to be flexible */
.sidebar-nav .dropdown-menu a {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.additional-link {
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.8rem 1.6rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 8px;
  display: inline-block;
  text-align: center;
  min-width: 120px;
}

.additional-link:hover {
  color: var(--color-white);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Button-style additional links */
.sidebar-content .additional-link {
  background: linear-gradient(to bottom, #9fd632 0%, #79b40e 100%);
  border: 2px solid #7fae2e;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  margin-bottom: 0.5rem;
}

.sidebar-content .additional-link:hover {
  background: linear-gradient(to bottom, #8ac718 0%, #6ba00c 100%);
  border-color: #6ba00c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sidebar-content .text-white {
  margin-bottom: 0.5rem;
}
/* Cart button specific styling */
.additional-link-container {
  text-align: center;
}
.additional-link-container .additional-link {
  max-width: 90%;
}

.sidebar-content h2 {
  font-size: 2rem;
  font-weight: 600;
  padding: 0.8rem 1.6rem;
  margin-bottom: 1rem;
  color: var(--color-white);
  text-shadow: #000 1px 2px 8px;
}

.sidebar-form {
  padding: 0.8rem 1.6rem;
}

.sidebar-form input {
  width: 100%;
  margin: 5px;
  border-radius: 5px;
  border: solid 1px #455f42;
  margin-left: -3px;
}

.sidebar-form input:focus {
  border: solid 1px #455f42;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar-form input[type="submit"] {
  padding: 5px;
  margin: 3px;
  margin-left: 0px;
  color: var(--color-white);
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    color-stop(0%, #9fd632),
    color-stop(100%, #79b40e)
  );
}

.sidebar-form input[type="submit"]:hover {
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    color-stop(0%, #9fd632),
    color-stop(100%, #8ac718)
  );
}

.d-flex .additional-link {
  padding: 0;
}

#reviews {
  width: 95%;
  background-color: #fff;
  padding: 10px;
  border: 1px solid #ddd;
  margin: 0 auto;
}

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

.review-date {
  color: #666;
  font-size: 0.9em;
  margin-bottom: 5px;
  text-align: center;
}

.review-section {
  margin: 5px 0;
}

.review-label {
  color: var(--text-color);
  font-weight: bold;
}

.review-text {
  color: #0066cc; /* Blue color for links */
}

.stars {
  color: #ffd700; /* Gold color for stars */
  letter-spacing: 2px;
}

/* Last review item shouldn't have a border */
.review-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.image-links img {
  width: 200px;
  height: 144px;
}

/* Main Content Area */

/* Preheader */
.preheader-text {
  font-size: large;
  font-weight: 600;
  max-width: 100%;
  color: var(--color-text);
}

/* main navigation */
.main-nav {
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    color-stop(0%, #ffffff),
    color-stop(100%, #c6c6c6)
  );
  border-bottom: 1px solid #ddd;
  padding: 0.5rem;
}

/* Sticky navigation for desktop (1280px and up) - Only on non-product pages */
@media (min-width: 1280px) {
  /* Only apply sticky to pages without .models-table */
  body:not(:has(.models-table)) .main-nav {
    position: sticky;
    top: 0;
    z-index: 1001;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  body:not(:has(.models-table)) .search-container {
    position: sticky;
    top: 52px; /* Position below main-nav (adjust based on actual nav height) */
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
}

.navbar-nav {
  gap: 1rem;
  flex-direction: row; /* Added for check */
  margin: 0 auto;
}

.navbar-nav .nav-link {
  text-transform: uppercase;
  font-weight: bold;
  color: #000000;
  text-decoration: none;
  padding: 8px 20px;
  margin: 0;
  border-radius: 1.6em;
  -webkit-border-radius: 1.6em;
  -moz-border-radius: 1.6em;
  transition: all 0.3s ease;
}

/* Hover state */
.navbar-nav .nav-link:hover {
  color: #fff;
}

/* Active and hover state with gradient */
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  background: linear-gradient(to bottom, #ffffff 0%, #eeeeee 47%, #e6e6e6 100%);
  color: var(--text-color);
  -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 1);
}

/* Override Bootstrap's default hover behavior */
.navbar-nav .nav-item:hover .nav-link {
  color: #444;
}

.search-form {
  max-width: 600px;
  margin: 0;
}

.search-button {
  background: linear-gradient(to bottom, #9fd632 0%, #79b40e 100%);
  color: white;
  padding: 0.5rem 2rem;
  font-weight: bold;
}

.search-button:hover {
  color: white;
  opacity: 0.9;
}

/* Home page content sytles */

.main-content {
  margin: 0 auto;
  text-align: center;

  h1,
  h2 {
    font-size: 5rem;
    font-weight: bold;
    color: var(--color-blue);
  }
  h3 {
    font-size: 2rem;
    color: var(--color-blue);
    font-family: "Ubuntu", "PT sans", sans-serif;
  }
  .home-page-paragraph {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-blue);
    font-family: "Ubuntu", "PT sans", sans-serif;
  }

  /* Common button styles */
  .custom-btn {
    text-transform: uppercase;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 15px 25px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--color-white);
    text-align: center;
    line-height: 1.4;
    transition: opacity 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }

  .custom-btn:hover {
    opacity: 0.9;
    color: var(--color-white);
  }

  /* Specific variations */
  .btn-orange {
    background-color: #ff9900;
  }

  .btn-green {
    background-color: var(--main-green-color);
  }

  /* Size variations */
  .btn-wide {
    min-width: 200px;
  }

  .quick-contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    padding: 15px;
  }

  .most-requested-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 20px 15px;
  }

  .request-btn {
    background-color: var(--main-green-color);
    color: var(--color-white);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    line-height: 1.4;
    min-width: 200px;
    transition: opacity 0.3s ease;
  }

  .request-btn:hover {
    opacity: 0.9;
    color: white;
  }

  /* Style for the heading */
  h2 {
    font-size: 2.5rem;
    text-transform: lowercase; /* To match the design */
  }

  .product-section {
    padding: 2rem 0;
  }

  .product-link {
    display: block;
    transition: transform 0.3s ease;
  }

  .product-link:hover {
    transform: scale(1.05);
  }

  .video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    height: 350px;
    overflow: hidden;
  }

  .responsive-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }
  .vertical-links-container {
    a {
      color: #0000ff;
      font-size: 1.2rem;
      font-weight: 500;
    }
    a:first-child {
      font-size: 1.5rem;
      font-weight: 600;
      color: #0000ff;
      text-decoration-color: var(--text-color);
    }
    a:first-child:hover {
      text-decoration: none;
    }
  }
}

/* Footer */
.footer {
  background-color: #f8f9fa;
  border-top: 1px solid #e7e7e7;
  padding: 2rem 0;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
}

.footer p {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.footer a {
  color: #0099cc;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.legal-info {
  font-weight: bold;
}

.footer-links,
.partner-brands {
  color: #666;
}

.disclaimer {
  font-style: italic;
  color: #999;
}

.copyright {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid #e7e7e7;
  text-align: center;
}

/* Product page styles */

.youtube-video-container {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
}

.responsive-iframe-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.responsive-iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Breadcrumb styling */
.breadcrumb {
  background-color: #f8f9fa;
  border-radius: 0.25rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: #6c757d;
}

.breadcrumb-item a {
  color: var(--main-green-color);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

.breadcrumb-item.active a {
  color: #6c757d;
  font-weight: 500;
}

/* Media Queries */

@media (min-width: 992px) {
  /* Ensure proper spacing in navbar */
  .navbar-expand-lg .navbar-nav .nav-link {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (min-width: 768px) {
  .search-container {
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
  }
}

@media (max-width: 991.98px) {
  .sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    width: 80%;
    /*  max-width: 300px; */
    height: 100vh;
    background: white;
    transition: left 0.3s ease-in-out;
    z-index: 1020;
    overflow-y: auto;
    /* Custom scrollbar styling for better UX while maintaining minimal visibility */
    &::-webkit-scrollbar {
      width: 8px;
    }

    &::-webkit-scrollbar-track {
      background: transparent;
    }

    &::-webkit-scrollbar-thumb {
      background-color: rgba(0, 0, 0, 0.1);
      border-radius: 4px;
    }

    &::-webkit-scrollbar-thumb:hover {
      background-color: rgba(0, 0, 0, 0.2);
    }

    /* Firefox scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
  }

  .sidebar.show {
    left: 0;
  }

  .sidebar-container {
    padding-top: 0;
    height: auto;
  }

  .logo-img {
    display: block;
    margin: 0 auto;
    max-width: 200px;
  }

  .sidebar-content {
    margin-top: 130px;
  }

  .langbar {
    background-color: rgba(0, 0, 0, 0.05);
  }

  .dropdown-hover .dropdown-menu {
    position: static;
    background-color: rgba(0, 0, 0, 0.05);
    margin-left: 1rem;
    width: auto;
  }

  /* HIDE DESKTOP DROPDOWN FUNCTIONALITY ON MOBILE */
  .sidebar-nav .dropdown-hover > .dropdown-menu {
    display: none !important;
  }

  .sidebar-nav .dropdown-hover > .dropdown-menu.show {
    display: none !important;
  }

  .sidebar-nav .sidebar-dropdown-toggle {
    display: none !important;
  }

  /* Remove dropdown hover effects on mobile */
  .sidebar-nav .dropdown-hover:hover > .dropdown-menu {
    display: none !important;
  }

  /* Mobile dropdown toggle styling */
  .mobile-dropdown-toggle {
    font-size: 1.2rem;
    color: var(--color-white);
    margin-left: auto;
    transition: transform 0.2s ease;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    pointer-events: auto;
    display: inline-block;
    opacity: 1;
    visibility: visible;
    min-width: 20px;
    text-align: center;
    background-color: rgb(121, 180, 14);
    border-radius: 5px;
    color: rgb(255, 255, 255);
  }

  .mobile-dropdown-toggle:hover {
    transform: translateX(3px);
    background: rgba(255, 255, 255, 0.3) !important;
  }

  .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
  }

  /* Main Content Area */
  .main-container {
    width: 100%;
  }

  .preheader-text {
    margin-left: 140px;
  }

  .nav-list {
    justify-content: center;
  }

  .navbar .navbar-toggler {
    margin-bottom: 0.5rem;
    margin-left: auto;
  }

  .navbar-nav .nav-item {
    margin: 0 auto;
  }

  .navbar-nav .nav-link {
    border-radius: 0.8em;
    margin: 2px 10px;
    /*  width: 300px;  Commented out for check */
    text-align: center;
    /*  max-width: 80%; */
  }

  .search-form {
    padding: 0 1rem;
  }

  .sidebar-nav .dropdown-menu a {
    width: 100%;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
  .additional-link {
    padding: 0.5rem;
  }

  .sidebar-content h2 {
    padding: 0.5rem;
  }

  .preheader-text {
    margin-left: 0px;
  }

  /* Main content sytles */

  .main-content {
    h1 {
      font-size: 2.5rem;
      font-weight: bold;
      color: var(--color-blue);
    }
    .hero-image {
      width: 80%;
      height: 100%;
      object-fit: cover;
    }
    .contact-btn {
      font-size: 1.2rem;
      padding: 10px 20px;
    }
    .request-btn {
      width: 300px;
      font-size: 1.2rem;
      padding: 10px 20px;
    }
  }

  .footer {
    text-align: center;
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .input-group-text {
    display: none;
  }
  /* This code is used to make the sidebar links smaller on mobile devices and can be removed if not needed */
  .sidebar-nav .nav-link,
  .sidebar-nav .dropdown-menu a {
    font-size: 0.8rem;
  }
}

@media (max-width: 420px) {
  .sidebar {
    width: 90%;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .custom-btn {
    font-size: 1.2rem;
    padding: 10px 20px;
  }
}

/* Modern header bar styles */
.header-bar {
  width: 100%;
  gap: 1.5rem;
}

.header-icons {
  gap: 2rem;
}

.header-icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-color);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}

.header-icon-link:hover {
  color: var(--main-green-color);
}

.header-icon-label {
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 2px;
  color: inherit;
}

.cart-badge {
  font-size: 0.85rem;
  padding: 0.2em 0.5em;
  background: #8ac718;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  z-index: 2;
  top: 10px;
}

@media (max-width: 768px) {
  .header-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .header-icons {
    justify-content: flex-end;
    gap: 1.2rem;
  }
  .header-icon-label {
    font-size: 0.85rem;
  }
  .cart-badge {
    font-size: 0.75rem;
    padding: 0.15em 0.4em;
  }
}

/* Mobile header bar styles */
.mobile-header-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-header-bar {
    position: fixed;
    bottom: 0;
    background: #fff;
    border-bottom: 1px solid #eee;
    z-index: 1050;
    width: 100%;
    min-height: 56px;
  }
  .mobile-header-icon {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: color 0.2s;
    background: none;
    border: none;
  }
  .mobile-header-icon:active,
  .mobile-header-icon:focus,
  .mobile-header-icon:hover {
    color: var(--main-green-color);
    background: none;
  }
  .mobile-header-icon .cart-badge {
    top: 6px !important;
    right: -15px;
    left: auto;
    font-size: 0.75rem;
    padding: 0.15em 0.4em;
  }
  .header-bar {
    display: none !important;
  }
}
/* Mobile search overlay styles */
.mobile-search-overlay {
  display: none;
  background: rgba(255, 255, 255, 0.98);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 2000;
}

/* ========== OFFCANVAS NAVIGATION STYLES ========== */
.offcanvas-overlays {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  pointer-events: none;
}

.offcanvas-level {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-white);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.15);
}

.offcanvas-level.active {
  transform: translateX(0);
  pointer-events: auto;
}

.offcanvas-level.slide-in {
  transform: translateX(0);
}

.offcanvas-level.slide-out {
  transform: translateX(-100%);
}

/* Z-index for different offcanvas levels */
.offcanvas-level-2 {
  z-index: 1051;
}

.offcanvas-level-3 {
  z-index: 1052;
}

.offcanvas-level-4 {
  z-index: 1053;
}

.offcanvas-level-5 {
  z-index: 1054;
}

.offcanvas-level-6 {
  z-index: 1055;
}

/* Offcanvas Header */
.offcanvas-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.2rem 1rem;
  background: linear-gradient(135deg, #9fd632 0%, #79b40e 50%, #6ba00c 100%);
  border-bottom: 2px solid #7fae2e;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.offcanvas-back-btn,
.offcanvas-main-nav-btn,
.offcanvas-close-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--color-white);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.offcanvas-back-btn:hover,
.offcanvas-main-nav-btn:hover,
.offcanvas-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--color-white);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.offcanvas-back-btn:active,
.offcanvas-main-nav-btn:active,
.offcanvas-close-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.offcanvas-back-btn i,
.offcanvas-main-nav-btn i,
.offcanvas-close-btn i {
  font-size: 1.3rem;
}

/* Offcanvas Breadcrumb */
.offcanvas-breadcrumb {
  padding: 1rem;
  background: linear-gradient(to right, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 1px solid #dee2e6;
  font-size: 0.95rem;
  color: var(--main-green-color);
  font-weight: 600;
  flex-shrink: 0;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Offcanvas Content */
.offcanvas-content {
  flex: 1;
  padding: 0;
  overflow-y: auto;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.offcanvas-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid #e9ecef;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
  background: var(--color-white);
  font-weight: 500;
  font-size: 1.05rem;
  position: relative;
  overflow: hidden;
}

.offcanvas-nav-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(159, 214, 50, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.offcanvas-nav-item:hover::before {
  left: 100%;
}

.offcanvas-nav-item:hover {
  background: linear-gradient(135deg, #9fd632 0%, #79b40e 100%);
  color: var(--color-white);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Removed pseudo-element arrows since we now use proper <i> elements */

/* Chevron icons in offcanvas items */
.offcanvas-nav-item i.bi-chevron-right,
.offcanvas-nav-item i.offcanvas-chevron {
  position: absolute;
  right: 1px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.875rem;
  color: var(--text-color);
  transition: color 0.2s ease;
  cursor: pointer;
  z-index: 10;
  padding: 0.5rem;
}

.offcanvas-nav-item:hover i.bi-chevron-right,
.offcanvas-nav-item:hover i.offcanvas-chevron {
  color: var(--main-green-color);
}

/* Active state for offcanvas items */
.offcanvas-nav-item.active {
  background: linear-gradient(135deg, #8ac718 0%, #6ba00c 100%);
  color: var(--color-white);
  border-left: 4px solid #5a8a0a;
  font-weight: 600;
}

/* Desktop styles - hide offcanvas on desktop */
@media (min-width: 992px) {
  .offcanvas-overlays {
    display: none !important;
  }

  .mobile-dropdown-toggle {
    display: none !important;
  }
}

/* Mobile/Tablet specific offcanvas styles */
@media (max-width: 991.98px) {
  .offcanvas-level {
    width: 100%;
  }

  .offcanvas-nav-item {
    font-size: 1.15rem;
    padding: 1.3rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
  }

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

  .offcanvas-header {
    padding: 1.3rem 1.5rem;
  }

  .offcanvas-back-btn,
  .offcanvas-home-btn {
    padding: 0.7rem 1.3rem;
    font-size: 1.05rem;
    min-width: 80px;
  }

  .offcanvas-breadcrumb {
    padding: 1.2rem 1.5rem;
    font-size: 1rem;
  }

  .offcanvas-content {
    padding-bottom: 2rem;
  }
}

/* Extra small devices */
@media (max-width: 576px) {
  .offcanvas-nav-item {
    font-size: 1.1rem;
    padding: 1.1rem 1.2rem;
  }

  .offcanvas-header {
    padding: 1.1rem 1.2rem;
  }

  .offcanvas-back-btn,
  .offcanvas-home-btn {
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    min-width: 70px;
  }

  .offcanvas-breadcrumb {
    padding: 1rem 1.2rem;
    font-size: 0.9rem;
  }
}
#mobileSearchSubmit {
  color: var(--color-white);
  background-color: var(--main-green-color);
  height: 48px;
  padding: 0.8rem 1rem;
}

#mobileSearchSubmit:hover {
  background-color: var(--light-green-color);
}

.mobile-search-overlay.active {
  display: flex !important;
}
.mobile-search-form {
  max-width: 90vw;
}
