@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap');

:root {
  --header-height: 3rem;
  --nav-width: 68px;
  --first-color: #333333;
  --first-color-light: #98ff98;
  --white-color: #d3d3d3;
  --body-font: 'Nunito', sans-serif;
  --normal-font-size: 1rem;
  --z-fixed: 100;
}

/* Box Sizing */
*,
::before,
::after {
  box-sizing: border-box;
}

/* Body Styles */
body {
  position: relative;
  margin: 4rem 0 0;
  padding: 1rem 1rem 0 1rem;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  transition:
    padding-left 0.5s ease,
    padding-top 0.5s ease;
}

/* Link Styles */
a {
  text-decoration: none;
  color: inherit; /* Ensure links inherit color by default */
}

/* Header Styles */
.header {
  width: 100%;
  height: calc(var(--header-height) + 1rem);
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  background-color: var(--first-color);
  z-index: var(--z-fixed);
  transition:
    padding-left 0.5s ease,
    padding-top 0.5s ease;
}

/* Header Toggle Button */
.header_toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header_toggle i {
  font-size: 1.5rem;
  color: var(--first-color-light);
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

/* Rotate the toggle icon when menu is open */
.bx-x {
  transform: rotate(180deg);
}

/* Header Image */
.header_img {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
}

.header_img img {
  width: 100%; /* Ensures responsiveness */
  height: auto;
}

/* Navigation Bar */
.l-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--nav-width);
  height: 100vh;
  background-color: var(--first-color);
  padding: 0.5rem 1rem 0 0;
  transition: transform 0.5s ease;
  z-index: var(--z-fixed);
  transform: translateX(-100%); /* Hidden by default */
}

.l-navbar.show {
  transform: translateX(0); /* Shown when 'show' class is added */
}

/* Navbar Column */
.nav-column {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* Navbar Logo */
.nav_logo {
  display: grid;
  grid-template-columns: max-content max-content;
  align-items: center;
  column-gap: 1rem;
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin-bottom: 2rem;
  padding-left: 1.35rem; /* Removed unnecessary !important */
}

.nav_logo-icon {
  font-size: 1.25rem;
  color: var(--white-color);
}

.nav_logo-name {
  color: var(--first-color-light);
  font-weight: 700;
}

/* Navbar Links */
.nav_list {
  display: flex;
  flex-direction: column;
}

.nav_link,
.nav_link_profile {
  display: grid;
  grid-template-columns: max-content max-content;
  align-items: center;
  column-gap: 1rem;
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  transition: color 0.3s;
}

.nav_link {
  color: var(--first-color-light);
  margin-bottom: 1.5rem;
}

.nav_link_profile {
  color: var(--white-color);
  margin: -1rem 0;
  font-size: 12.5px;
}

.nav_link:hover {
  color: var(--white-color);
}

.nav_icon {
  font-size: 1.25rem;
}

/* Active Link */
.active {
  color: var(--white-color);
}

.active::before {
  content: '';
  position: absolute;
  left: 0;
  width: 2px;
  height: 32px;
  background-color: var(--white-color);
}

/* Body Padding */
.body-pd {
  padding-left: calc(var(--nav-width) + 1rem);
  transition: padding-left 0.5s ease;
}

/* Header Padding when menu is open */
.header.body-pd {
  padding-left: calc(var(--nav-width) + 1rem);
}

/* Height Adjustment */
.height-100 {
  /* height: calc(100vh - 80px); Simplified calculation */
  height: calc(100vh - (79px + 1.5rem)); /*Adjusted for consistency*/

  transition: height 0.5s;
}

/* Media Queries for Responsive Design */
@media screen and (min-width: 576px) {
  body {
    margin-top: calc(var(--header-height) + 1rem);
    padding-left: calc(var(--nav-width) + 1rem);
  }

  .header {
    padding: 0 2rem 0 calc(var(--nav-width) + 1rem);
  }

  .header_img {
    width: 40px;
    height: 40px;
  }

  .header_img img {
    width: 100%;
    height: auto;
  }

  .l-navbar {
    left: 0;
    padding: 1rem 1rem 0 0;
  }

  .l-navbar.show {
    width: calc(var(--nav-width) + 156px);
  }

  .body-pd {
    padding-left: calc(var(--nav-width) + 174px);
  }

  .height-100 {
    height: calc(100vh - (79px + 1.5rem)); /*Adjusted for consistency*/
  }
}

/* Footer Styles */
.footer {
  padding-top: 0.5rem;
  font-size: 10px;
  color: var(--first-color); /* Assuming you want to keep text color */
}

/* Text Styles */
.bold {
  font-weight: bold;
}

.small-font {
  font-size: 0.5rem;
}

.medium-font {
  font-size: 0.75rem;
}

.large-font {
  font-size: 1.25rem;
}

.label-left {
  display: inline-block;
  margin-left: 10px;
  font-size: 0.85rem;
  color: gray;
}

/* Card Styles */
.card-title {
  color: gray;
  padding-top: 10px;
}

.card-body {
  border: 1px solid #98ff98;
  border-radius: 10px;
}

.card-text,
.card-link {
  color: gray;
  font-size: 0.75rem;
}

.card-img {
  border-radius: 5px;
}

.card-content {
  margin-top: 5px;
  border-radius: 5px;
}

/* Detail Styles */
.detail-img {
  border-radius: 10px;
  width: 70%;
  border: 1px solid var(--first-color-light);
}

.detail-scientificName {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--first-color);
}

.detail-friendlyName {
  font-size: 0.75rem;
  color: var(--first-color);
}

/* Main Container */
.main-container {
  border-radius: 5px;
}

/* Paragraph Styles */
.style-firstParagraph,
.style-restOfParagraphs,
.style-heading {
  color: var(--first-color);
}

.style-firstParagraph {
  display: flex;
  justify-content: flex-end;
}

.style-heading {
  font-size: 1.25rem;
  font-weight: bold;
}

/* Nav Tabs */
.nav-tabs {
  border-bottom: none;
}

.nav-tabs .nav-link {
  background-color: var(--first-color);
  color: var(--white-color);
  border: none;
  margin-right: 2px;
  transition:
    background-color 0.3s,
    color 0.3s;
}

.nav-tabs .nav-link.active {
  color: var(--first-color-light);
  background-color: var(--first-color);
}

.nav-tabs .nav-link:focus {
  box-shadow: none;
}

/* Back Link Styling */
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  color: var(--first-color);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
  margin-right: 10px; /* Space between Back button and Menu icon */
  border-radius: 4px;
}

.back-link:hover {
  color: var(--first-color-light); /* Example hover effect */
}

.back-link .bx {
  font-size: 1.5em; /* Adjust size as needed */
}

/* Contact Section Styling */
.contact-section {
  padding: 60px 0;
  background-color: #f9f9f9; /* Light background */
}

/* Contact Item Styling */
.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px; /* Space between items */
}

/* Icon Styling */
.contact-icon {
  color: var(--first-color); /* Primary color */
  font-size: 2rem; /* Icon size */
  margin-right: 15px; /* Space between icon and text */
}

/* Text Styling */
.contact-text {
  font-size: 1.1rem;
  color: #333;
}

.input-group .form-control,
.input-group .btn {
  border: 1px solid var(--first-color-light);
  font-size: 0.75rem;
  border-radius: 5px;
  transition:
    background-color 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
}

.input-group {
  margin: 0 auto;
}

.input-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  width: 200px;
  flex: none;
}

.input-group .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: none;
  background-color: var(--second-color-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
}

.input-group .btn i {
  font-size: 1rem;
  color: var(--white-color);
}

.input-group .btn:hover {
  background-color: var(--second-color-dark);
  border-color: var(--second-color-dark);
}

.input-group .btn:hover i {
  color: var(--white-color);
}

.input-group .form-control:focus {
  border-color: var(--first-color-light);
  background-color: var(--white-color);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(10, 181, 25, 0.25);
}

.hero {
  background-image: url('/img/imagePath/lehmannii.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  height: 600px;
  position: relative;
  border-radius: 10px;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.5);
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 10px;
}

.hero-content {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
}

.featured-products img {
  height: 200px;
  object-fit: cover;
}

.btn-shop-now {
  color: var(--first-color-light);
}
