 /* RESET */
    * {
       margin: 0;
       padding: 0;
        box-sizing: border-box;
       }
    html,body { font-family: Arial, sans-serif; 
      background: #f8f9fa;
       color: #333;
             max-width: 100%;
      overflow-x: hidden;
       }
   
    :root{
      --navbar-color:#07833D;/*it will change color of navbar*/
      --products-drop-down-color:#FDB813; /*it will change where drop-down is there*/
      --navbar-after-hover-color:#E63027;
      --products-item-color:#07833D;
      --background-color:#F5F5F5;
      --anchor-color:#fff; /*it will change all elements where only nav, a*/
      --price:#d6452f;/*it will change all elements where price is present*/
      --discount:#999;/*it will change all elements where discount is present*/
      --buy-btn-color:#bb9457;/*it will change the color of buy btn*/
      --buy-btn-color-hover:#99582a;/*it will change the color of buy btn on hover*/


      --font-base: 16px;
  --font-sm: 14px;
  --font-md: 18px;
  --font-lg: 24px;
  --font-xl:45px;

    }
    /* NAVBAR */
    nav {
      width: 100%;
      height: 69px;
      padding: 0px 40px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: var(--navbar-color);   /* Green */
      color: var(--anchor-color);
      position: relative;
      box-sizing: border-box;
    }
    nav img { height: 60px; width: auto;}
    .nav-part2 { display: flex; gap: 20px; align-items: center; }
        /* make links and the dropdown wrapper fill navbar height and center their contents */
.nav-part2 > a,
.nav-part2 > .dropdown {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 12px;               /* horizontal spacing inside nav */
  color: var(--anchor-color);
  text-decoration: none;
  font-size: var(--font-base);
  position: relative;
}
    .nav-part2 a:hover { color: var(--navbar-after-hover-color); }
    .nav-part2 a:hover::after { width: 100%; }

    /* DROPDOWN */
    .dropdown { position: relative; }
     /* small invisible bridge to avoid losing hover when moving cursor from link --> menu */
.dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 8px;                   /* tiny invisible area that keeps hover active */
  pointer-events: none;          /* does not block mouse events */
}
    .dropdown-menu {
        position: absolute;
  top: 100%;
  left: 0px; /* push it to start near logo */
  background: var(--navbar-color);
  display: flex; /* horizontal layout */
  flex-direction: column;
  gap: 10px;
  min-width: auto;
  /* box-shadow: var(--shadow-md); */
  /* border: 2px solid var(--color-yellow); */
  /* border-radius: var(--radius-md); */
  z-index: 1000;
  padding: 12px;    /*chatgpt changes*/
  opacity: 0;
  transform: translateY(5px);
  pointer-events: none;
  /* chatgpt changes */
   transition: opacity 0.18s ease, transform 0.18s ease;
  /* transition: all 0.3s ease; */
  /* padding: 20px 12px; */
    }
    /* keep open on hover or keyboard focus */
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
    /* optional hover bridge on the menu itself (extra insurance on flicker) */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -8px;                     /* extends hover area a bit upward */
  left: 0;
  width: 100%;
  height: 8px;
  pointer-events: auto;
}
    .dropdown-menu a {
      padding: 8px 12px;
      color: var(--anchor-color);
      text-decoration: none;
      font-size: var(--font-base);
      white-space: nowrap;
      display: block;
      transition: background 0.3s ease, color 0.3s ease;
    }
    .dropdown-menu a:hover {
      background: var(--navbar-color);
      color: var(--navbar-after-hover-color);
    }
    /* On mobile keep dropdown vertical */
@media (max-width: 768px) {
  .nav-part2 {
    display: none; /* existing mobile behavior */
  }
  .hamburger {
    display: block;
    color: var(--color-white);
  }
  .dropdown-menu {
    position: static;
    display: none;       /* hide inside navbar */
    flex-direction: column;
    border: none;
    box-shadow: none;
    padding: 0;
    background: transparent;
  }
  .dropdown:hover .dropdown-menu {
    display: none; /* prevent hover dropdown on mobile */
  }
}
.pro{
  color: white;
    text-decoration: none;
}
/* ============================
       Sub Dropdown Styles
    ============================= */
    .sub-dropdown {
      position: relative;
    }

    .sub-dropdown > a {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .sub-dropdown > a::after {
      content: "\f105"; /* Font Awesome right arrow */
      font-family: "Font Awesome 6 Free";
      font-weight: 900;
      margin-left: 8px;
    }

    .sub-dropdown-menu {
      display: none;
      position: absolute;
      top: 0;
      left: 100%;
      background: var(--navbar-color);
      min-width: 180px;
      /* box-shadow: 0 2px 8px rgba(0,0,0,0.15); */
      /* border-radius: 6px; */
      opacity: 0;
      transform: translateX(10px);
      transition: all 0.25s ease;
      z-index: 999;
    }

    .sub-dropdown-menu a {
      padding: 10px 15px;
      color: var(--anchor-color);
      display: block;
      text-decoration: none;
    }
    
    .sub-dropdown-menu a:hover {
      color: var(--navbar-after-hover-color);
      background: var(--navbar-color);
    }

    .sub-dropdown:hover .sub-dropdown-menu {
      display: block;
      opacity: 1;
      transform: translateX(0);
    }

.language-btn:hover{
  background: linear-gradient(to top,orangered,yellow);
  transition: all linear 0.3s;
}
    /* HAMBURGER */
    .hamburger { display: none; font-size: 24px; cursor: pointer; transition: transform 0.3s; }
    .hamburger:hover { transform: rotate(90deg); }

    /* SIDEBAR */
    .sidebar {
      position: fixed;
      top: 0; left: -260px;
      width: 260px; height: 100%;
      background: var(--navbar-color);
      color: var(--anchor-color);
      padding: 20px;
      transition: left 0.4s ease;
      z-index: 2000;
      overflow-y: auto;
    }
    .sidebar.active { left: 0; }
    .sidebar h4 a {
      display: block;
      color: var(--anchor-color);
      padding: 12px 0;
      text-decoration: none;
      border-bottom: 1px solid rgba(255,255,255,0.2);
      transition: color 0.3s ease, transform 0.3s ease;
    }
    .sidebar h4 a:hover {
      color: var(--products-drop-down-color);
      transform: translateX(5px);
    }
    .sidebar .submenu a {
      display: block;
      padding: 10px 20px;
      font-size: 14px;
      color: var(--products-drop-down-color);
      text-decoration: none;
      opacity: 0;
      transform: translateX(-20px);
      transition: opacity 0.3s ease, transform 0.3s ease;
    }
    .sidebar.active .submenu a {
      opacity: 1;
      transform: translateX(0);
    }
    .sidebar .submenu a:hover { color: var(--navbar-after-hover-color); }
    .sidebar .close-btn {
      font-size: 22px;
      cursor: pointer;
      margin-bottom: 20px;
      display: inline-block;
      color: var(--products-drop-down-color);
      transition: transform 0.3s;
    }
    .sidebar .close-btn:hover { transform: rotate(90deg); }

    /* RESPONSIVE */
    @media (max-width: 768px) {
      .nav-part2 { display: none; }
      .hamburger { display: block; color: #fff; }
    }
     /* Banner */
    .banner {
      width: 100%;
      height: 500px;
      background-image: url("../../images/homebanner.jpeg");
      background-position: center;
      background-repeat: no-repeat;
      background-size:cover;
      /* border: 2px solid black; */
      /* border-radius: 50px; */
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      margin-bottom: 40px;
    }

    /* Popular Brands slider */
.brand-slider { 
  overflow: hidden; 
  position: relative; 
  width: 100%; 
  margin-bottom: 40px; 
}
.brand-track { 
  display: flex; 
  gap: 20px; 
  animation: scroll 25s linear infinite; 
}
.brand-slider:hover .brand-track { 
  animation-play-state: paused; 
}
.brand-card {
  min-width: 160px; height: 100px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  padding: 15px; flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.brand-card img { 
  max-width: 100%; 
  max-height: 100%; 
  object-fit: contain; 
}
.brand-card:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
  z-index: 10;
}
@keyframes scroll { 
  from { transform: translateX(0); } 
  to { transform: translateX(-50%); } 
}

/* Popup styles */
.brand-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 999;
}
.brand-overlay.show { display: block; }

.brand-popup {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: var(--color-white);
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: none;
  z-index: 1000;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}
.brand-popup.show {
  display: block;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}
.brand-popup img {
  max-width: 400px;
  max-height: 400px;
  display: block;
}
.brand-popup .close-btn {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--color-red);
  color: var(--color-white);
  border: none;
  padding: 6px 10px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.3s ease;
}
.brand-popup .close-btn:hover {
  background: #c82323;
}

/*cards*/
.wrapper{
      display: flex;
    flex-wrap: wrap;
    row-gap: 1em; 
    column-gap: 2em;
    margin: auto 35px;
    /* justify-content: space-evenly; */
}
    .product-card {
      width: 390px;
      background: #fff;
      border-radius: 20px;
      /*box-shadow: 0 4px 15px #09b855;*/
      overflow: hidden;
          border: 0.5px solid grey;
      transition: transform 0.3s ease;
    }

    .product-card:hover {
      transform: translateY(-5px);
    }

    /* Image section */
    .image-box {
      padding: 20px;
      position: relative;
       height: auto;
      overflow: hidden;
      border-radius: 20px 20px 0 0;
    }

    .image-box img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.4s ease;
    }

    .image-box:hover img {
      transform: scale(1.1);
    }

    /* Zoom button */
    .zoom-btn {
      position: absolute;
      bottom: 10px;
      right: 10px;
      background: rgba(0,0,0,0.6);
      color: #fff;
      border: none;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      cursor: pointer;
      opacity: 0;
      transition: opacity 0.3s;
    }

    .image-box:hover .zoom-btn {
      opacity: 1;
    }

    /* Details */
    .details {
      padding: 15px;
    }

    .details h3 {
      font-size: 18px;
      margin-bottom: 8px;
    }

    .details p {
      font-size: 14px;
      color: #555;
      margin-bottom: 6px;
    }

    .price {
      font-size: 16px;
      font-weight: bold;
      color: #d6452f;
    }

    .discount {
      font-size: 13px;
      color: var(--discount);
      text-decoration: line-through;
      margin-left: 8px;
    }

    .buy-btn {
      display: inline-block;
      background: var(--buy-btn-color);
      color: var(--anchor-color);
      padding: 10px 20px;
      border-radius: 30px;
      text-decoration: none;
      margin-top: 10px;
      transition: background 0.3s;
    }

    .buy-btn:hover {
      background: var(--buy-btn-color-hover);
    }

    /* Image Modal */
    .modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.8);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 1000;
    }

   .modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}
 .modal-content img {
  max-width: 100%;
  max-height: 80vh;   /* Prevent image from overflowing screen height */
  object-fit: contain; /* Keep aspect ratio intact */
  border-radius: 10px;
}
    .close-modal {
      position: absolute;
      top: -30px;
      right: 0;
      color: var(--anchor-color);
      font-size: 28px;
      cursor: pointer;
    }

    @media(max-width: 500px) {
      .product-card {
        width: 90%;
      }
    }
    /* Variation buttons */
    .variations { display: flex; gap: 10px; margin: 10px 0; }
    .variation-btn { border: 1px solid #ccc; padding: 5px 12px; border-radius: 6px; font-size: 13px; cursor: pointer; background: #f9f9f9; }
    .variation-btn.active { border-color: var(--buy-btn-color-hover); background: var(--background-color); font-weight: bold; }
    /*footer*/
.footer {
  background: var(--navbar-color);
  color: #fff;
  padding: 50px 20px 20px;
  margin-top: 50px;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h3 {
  margin-bottom: 15px;
  font-size: 18px;
  color: var(--buy-btn-color);
  position: relative;
}

.footer-col h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--buy-btn-color);
  margin-top: 5px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  text-decoration: none;
  color: var(--background-color);
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--products-drop-down-color);
}

.newsletter {
  display: flex;
  border: 1px solid #bb9457;
  border-radius: 30px;
  overflow: hidden;
  margin-bottom: 15px;
}

.newsletter input {
  border: none;
  padding: 10px;
  flex: 1;
  outline: none;
}

.newsletter button {
  background: var(--buy-btn-color);
  border: none;
  color: var(--anchor-color);
  padding: 10px 15px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.newsletter button:hover {
  background: var(--buy-btn-color-hover);
}

.social-icons a {
  display: inline-block;
  margin-right: 12px;
  color: var(--anchor-color);
  font-size:var(--font-md);
  transition: transform 0.3s, color 0.3s;
}

.social-icons a:hover {
  transform: scale(1.2);
  color:var(--buy-btn-color);
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 10px;
  color: #eae6e6;
}