/* General Reset and Base Styles */

/* 1. Use a more intuitive box-sizing model */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

body {
  /* 3. Add accessible line-height */
  line-height: 1.5;
  /* 4. Improve text rendering */
  -webkit-font-smoothing: antialiased;
  font-family: 'Poppins', sans-serif; /* Fixed typo in "sans-serif" */
}

/* 5. Improve media defaults */
picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* 6. Inherit fonts for form controls */
input, button, textarea, select {
  font: inherit;
}

/* 7. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* 8. Improve line wrapping */
p {
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/* 9. Create a root stacking context */
#root, #__next {
  isolation: isolate;
}

.bg-dark {
  background-color: #000 !important;
}

.bg-dark-8{
  background: #282829 !important;
}

/* End CSS Reset */

/* Custom Scroll bar */

/* WebKit Browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 8px; /* Width of the scrollbar */
}

::-webkit-scrollbar-track {
  background: #f1f1f1; /* Track color */
  border-radius: 10px; /* Rounded corners */
}

::-webkit-scrollbar-thumb {
  background: #4A9C2D; /* Scrollbar color */
  border-radius: 10px;
  transition: background 0.3s ease-in-out;
}

::-webkit-scrollbar-thumb:hover {
  background: #397922; /* Darker shade on hover */
}

/* Scrollbar for Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #499b2c #f1f1f1;
}

/* Ensure smooth scrolling */
html {
  scroll-behavior: smooth;
}



/* Mega Menu Styling */

.dropdown-menu {
  background-color: #000;
  border: none;
  color: #fff;
  width: 90%;
  position: absolute;
  left: 50%;
  top: -20px;
  transform: translate(-50%, 10%);
  border-radius: 1rem;
  min-height: 30rem !important;
  display: none;
}

.dropdown-menu h6 {
  color: #FFF !important;
  font-weight: 600;
  font-size: 0.844rem !important;
  text-transform: uppercase;
  text-decoration: underline;
}

.dropdown-menu .dropdown-item {
  color: #fff;
  transition: 0.3s ease;
  font-size: 0.844rem !important;  
  text-align: left;
  padding-left: 0 !important;
}

.dropdown-menu .dropdown-item:hover {
  color: #4A9C2D;
  background-color: transparent;
  text-decoration: underline !important;
}

.search-results {
  background-color: #FFF;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  position: absolute;
  top: 52px;
  left: 19.8%;
  width: 536px;
  z-index: 1050;
  display: none;
}

.search-results ul li img {
  border-radius: 4px;
  width: 50px;
  height: auto;
}

.search-results a {
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  color: #4A9C2D;
}

.search-results a:hover {
  text-decoration: underline;
}

.search-bar {
  display: none;
  flex-grow: 1;
  position: relative;
}

.search-bar.active {
  display: flex;
}

.search-bar input {
  flex-grow: 1;
  width:160px;
  height: 2.5rem;
  border-top-right-radius: 0px !important;
  border-bottom-right-radius: 0px !important;
}

.icon-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

#closeSearch{  
  top:0px;
  position: relative;      
  border-radius: unset;
  border-top-right-radius: 0.3rem;
  border-bottom-right-radius: 0.3rem;
}

#searchBar .btn-success{  
    top: 0px;
    position: relative;
    width: 40px;
    position: relative;
    height: 2.5rem;
    border-top-left-radius: 0rem !important;    
    border-bottom-left-radius: 0rem !important;
    background-color: #4A9C2D !important;
}


/* cart popup  */
.cart-popup {
  display: none;
  position: absolute;
  top: 60px;
  right: 20px;
  width: 350px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1050;
  padding: 15px;
}

.cart-popup .cart-item {
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.cart-popup .cart-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.cart-popup .cart-item img {
  width: 50px;
  height: auto;
  border-radius: 5px;
}

.cart-popup .cart-item .item-details {
  flex-grow: 1;
  margin-left: 10px;
}

.cart-popup .cart-item .item-price {
  color: #4A9C2D;
  font-weight: 500;
}

.cart-popup .btn-checkout {
  background-color: #4A9C2D;
  border: none;
  color: #fff;
}

.cart-popup .btn-checkout:hover {
  background-color: #388f27;
}

.cart-popup .btn-view-cart {
  background-color: #fff;
  color: #4A9C2D;
  border: 1px solid #4A9C2D;
}

.cart-popup .btn-view-cart:hover {
  background-color: #4A9C2D;
  color: #fff;
}

#cartIcon .bi-cart2{
  color: #FFF !important;
}

.text-green{
  color: #4A9C2D !important;
}

/* Footer Styles */

footer {
  background-color: #000;
  color: #fff;
  padding: 40px 0;
}

.footer-margin {
  padding-left: 4rem !important;
  padding-right: 4rem !important;
}

.footer-logo {
  width: 100px;
  margin-bottom: 15px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px; /* Adjust spacing between columns */
}
.footer-container .footer-column {
  padding: 10px;
}

.footer-column a{
  color: #EDEDED;
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
  font-size: 15px !important;
}

.footer-column a:hover{
  color: #4A9C2D;
  text-decoration: underline;
}

.upline {
  border: 1px solid #464646 !important;
}

.social-icons{
  display: flex !important;
}

.social-icons a {
  color: #fff;
  margin-right: 15px;
  font-size: 18px;
  text-decoration: none;
}

.social-icons a:hover {
 color: #4A9C2D !important;
}
.footer-margin p{
  line-height: 1.5 !important;
  font-size: 15px !important;
  text-align: justify;
  letter-spacing: -0.35px;
  color: #EDEDED;
}

@media (max-width: 992px) {

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
}

  .footer-margin {
    padding-left: 3rem !important;
    padding-right: 3rem !important;
  }

  .footer-margin .col-lg-4 {
    order: 0 !important;
  }

  .footer-margin .col-lg-2 {
    width: 100% !important;
  }
}


@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
}

  .footer-margin {
    padding-left: 2.5rem !important;
    padding-right: 2.5rem !important;
  }
}

@media (max-width: 576px) {

  .cart-popup {
    top: 112px !important; 
    left: 0px;
    width: 100%;
}

  .footer-margin {
    padding-left: 2.5rem !important;
    padding-right: 2.5rem !important;
  }
}

.list-unstyled span{
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.25px;
}

/* menu 2 */
.amazon-logo {
  height: 40px;
}

.navbar-nav .nav-link {
  color: #FFF !important;
}

/* Search Container */
.search-container {
  flex-grow: 1;  
  display: flex;
  align-items: center;
}

.search-container input {
  width: 100%;
  border-radius: 5px 0 0 5px;
  padding: 0.4rem 1rem !important;
}

.search-container button {
  border-radius: 0 5px 5px 0;
}

/* Cart Count */
.cart-count {
  background-color: #4A9C2D;
  color: white;
  font-size: 12px;
  padding: 2px 6.5px;
  border-radius: 50%;
  position: relative;
  top: -8px;
 left: -2px;
}

/* Submenu */
.submenu {
  padding: 0.5rem 1rem;
    text-align: center;
    top: 4rem;
}

.submenu-item {
  margin-right: 56px;
  color: white;
  text-decoration: none !important;
  font-size: 1rem;
}

.submenu-item:hover {
  text-decoration: underline;
}

/* ===== RESPONSIVE DESIGN ===== */


@media (min-width:320px) and (max-width:515px){
  .submenu .col-lg-6:nth-child(2){
    flex-direction: column !important;
    margin-left: 8px !important;
  }

  .submenu .contact-info{
    margin:0 !important;
  }
}

/* Small Devices (Phones) */
@media (max-width: 576px) {
  .navbar {
      padding: 5px;
  }

  .amazon-logo {
      height: 30px;
  }

.about-us{
    padding-top:1rem !important;
    padding-bottom:1rem !important;
  }

  .bento-grid{
    margin-top:0rem !important;
  }
  .search-container {
      flex-grow: 1;
      margin: 0;
      width: 100%;
  }

  .search-container input {
      width: 100%;
  }

  .search-container button {
      width: 15%;
  }

  
  #searchResults{
    display: block;
  top: 86px;
  }

  .navbar-nav {
      text-align: center;
  }

  .navbar-nav .nav-link {
    font-size: 0;
}

.navbar-nav .nav-link i {
  font-size: 18px;
}

  .submenu {
      display: flex;
      flex-wrap: wrap;      
      justify-content: center;
  }

  .submenu .container-fluid{
    flex-direction: column;
  }

  .submenu-item {
      font-size: 12px;
      margin: 5px;
  }

.submenu .col-lg-6, .submenu .col-lg-6{
  width:100% !important;
}
}

@media (min-width: 576.9px) and (max-width: 991.9px) {
  .submenu .col-lg-6:nth-child(2){
    justify-content: end !important;
  }
}

/* Medium Devices (Tablets) */
@media (max-width: 768px) {
  .search-container input {
      width: 100%;
  }

  #closeSearch{
    width: 24px;
  display: flex;
  align-items: center;
  padding-right: 1.5rem;
  height:38.6px;
  }

  .navbar-nav {
      flex-direction: column;
      align-items: center;
  }

  .submenu {
      flex-direction: column;
      text-align: center;
  }

  .submenu .container-fluid{
    justify-content: space-between;
  }

  .search-container input {    
    border-radius: 5px 0 0 5px;
    padding: 0.2rem 1rem;
}

#searchResults{
  display: block;
top: 52px;
left: 0;
width: 100% !important;
}

.cart-popup {
  top: 106px;
}
}

/* Large Devices (Desktops) */
@media (max-width: 992px) {
  .search-container input {
      width: 100%;
  }

  .navbar-nav {
      flex-direction: row;
      justify-content: flex-end;
  }
}


@media (min-width:992px) and (max-width: 1168px){
  .search-container input {
    width: 100%;   
}

}

@media (min-width: 993px) and (max-width: 1399px){
  #searchResults{
    display: block;
    top: 71px;
    left: 5%;
    width: 90% !important;
  }  
}

@media (min-width:991.9px) and (max-width:1062.9px){
  .submenu-item {
    margin-right: 39px !important;   
  }
  
}
/* extra large devices */

@media (min-width: 1400px) and (max-width: 2560px) {
  .submenu .col-lg-4{
  flex-direction: row !important;    
  justify-content: end;
}

.submenu .contact-info{
  margin-right:0.5rem;
}

}





.submenu {
  background: #222;
  padding: 10px;
}
.submenu a {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  display: inline-block;
}
.submenu .dropdown-menu {
  display: none; /* Hide dropdown by default */
  background: #333;
  padding: 15px;
}
.submenu .dropdown-menu.show {
  display: block; /* Show dropdown when toggled */
}
.hamburger-menu {
  display: none; /* Hide on larger screens */
}
@media (max-width: 992px) {
  .submenu {
      flex-direction: column;
  }
  .submenu .container-fluid {
      flex-direction: column;
      align-items: flex-start;
  }
  .hamburger-menu {
      display: block;
      border: none;
      background: none;
      color: white;
      font-size: 24px;
  }
  .submenu-links {
      display: none; /* Hide submenu items */
  }
  .submenu-links.show {
      display: block; /* Show submenu on toggle */
  }
}




.video-player ,.video-slide {
  width: 100%; /* Full width of the container */
  height: auto; /* Maintain aspect ratio */
  max-width: 1024px; /* Set a max width */
  display: block; /* Prevent inline spacing issues */
  margin: 0 auto; /* Center the video */
}

/* Responsive adjustments */

@media (max-width:2560px) {
  .video-player ,.video-slide{
    max-width: 100%;
  }
}
@media (max-width: 1024px) {
  .video-player ,.video-slide {
      max-width: 100%;
  }
}

@media (max-width: 768px) {
  .video-player ,.video-slide {
      max-width: 100%; /* Full width for tablets */
  }
}

@media (max-width: 480px) {
  .video-player ,.video-slide {
      max-width: 100%; /* Full width for small screens */
  }
}
