/* =========================
      ROOT VARIABLES
   ========================= */
:root {
  --color-green: #07833d; /* Navbar / Brand green */
  --color-yellow: #fdb813; /* Highlight yellow */
  --color-red: #e63027; /* Accent red */
  --color-golden: #f6b500; /* Submenu / secondary */
  --color-dark: #432818; /* Footer brown */
  --color-light: #f8f9fa; /* Background */
  --color-white: #ffffff; /* Pure white */
  --color-text: #333; /* Base text */

  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 50px;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.15);

  --font-base: 16px;
  --font-sm: 14px;
  --font-md: 18px;
  --font-lg: 24px;
  --font-xl:45px;
  /*=================================== Root Variables========================================= */
  --primary: #6f1d1b;
  --secondary: #bb9457;
  --dark: #432818;
  --accent: #99582a;
  --light: #ffe6a7;
  --white: #fff;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  font-family: Arial, sans-serif;
  background: var(--color-light);
  color: var(--color-text);
  max-width: 100%;
  overflow-x: hidden;
}

/* NAVBAR */
nav {
  width: 100%;
  height: 69px;
  padding: 0px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-green);
  color: var(--color-white);
  position: relative;
  box-sizing: border-box;
}
nav img {
  width: 100px;
  height: auto;
}
.nav-part2 {
      display: flex;
      gap: 20px;
      align-items: stretch;
      height: 100%;
    }
.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 {
  color: var(--color-white);
  text-decoration: none;
  font-size: var(--font-base);
  padding: 5px;
  position: relative;
  transition: color 0.3s ease;
}

.nav-part2 a:hover {
  color: var(--color-red);
}
.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(--color-green);
  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(--color-white);
  text-decoration: none;
  font-size: var(--font-base);
  display: block;
  transition: background 0.3s ease, color 0.3s ease;
  border-radius: var(--radius-sm);
}
.dropdown-menu a:hover {
  background: var(--color-green);
  color: var(--color-red);
}
/* 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 */
  }
}

/* ============================
       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(--color-green);
      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(--color-light);
      display: block;
      text-decoration: none;
    }
    
    .sub-dropdown-menu a:hover {
      color: var(--color-red);
      background: var(--color-green);
    }

    .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(--color-green);
  color: var(--color-white);
  padding: 20px;
  transition: left 0.4s ease;
  z-index: 2000;
  overflow-y: auto;
}
.sidebar.active {
  left: 0;
}
.sidebar h4 a {
  display: block;
  color: var(--color-white);
  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(--color-yellow);
  transform: translateX(5px);
}
.sidebar .submenu a {
  display: block;
  padding: 10px 20px;
  font-size: var(--font-sm);
  color: var(--color-golden);
  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(--color-red);
}
.sidebar .close-btn {
  font-size: 22px;
  cursor: pointer;
  margin-bottom: 20px;
  display: inline-block;
  color: var(--color-yellow);
  transition: transform 0.3s;
}
.sidebar .close-btn:hover {
  transform: rotate(90deg);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-part2 {
    display: none;
  }
  .hamburger {
    display: block;
    color: var(--color-white);
  }
}

 /* 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: 130%;
  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;
}
/* Shop by category */
.category-slider {
  overflow-x: auto;
  white-space: nowrap;
  padding: 10px 0;
}
::-webkit-scrollbar {
  display: none;
}
.category-track {
  display: flex;
  gap: 20px;
}
.category-card {
  width: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.3s;
}
.category-card:hover {
  transform: scale(1.05);
}
.category-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.category-info {
  background: linear-gradient(180deg, var(--color-red), #f6d603d3);
  color: var(--color-white);
  text-align: center;
  padding: 12px;
}
.category-info h3 {
  font-size: var(--font-sm);
  margin-bottom: 5px;
}
.category-info .discount {
  font-size: var(--font-sm);
  font-weight: bold;
  margin-bottom: 5px;
}
.category-info a {
  color: var(--color-white);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
}

/* Footer */
.footer {
  background: var(--color-green);
  color: var(--color-white);
  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: var(--font-md);
  color: #ffe6a7;
  position: relative;
}
.footer-col h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: #bb9457;
  margin-top: 5px;
}
.footer-col p {
  font-size: var(--font-sm);
  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: #ddd;
  transition: color 0.3s ease;
}
.footer-col ul li a:hover {
  color: #ffe6a7;
}
.newsletter {
  display: flex;
  border: 1px solid var(--color-golden);
  border-radius: 30px;
  overflow: hidden;
  margin-bottom: 15px;
}
.newsletter input {
  flex: 1;
  border: none;
  padding: 12px 15px;
  font-size: var(--font-sm);
  border-radius: 0;
  outline: none;
  color: var(--color-text);
}
.newsletter .nsbtn {
  background: #bb9457;
  border: none;
  color: var(--color-white);
  padding: 10px 15px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.newsletter .nsbtn:hover {
  background: #99582a;
}
.social-icons a {
  display: inline-block;
  margin-right: 12px;
  color: var(--color-white);
  font-size: var(--font-md);
  transition: transform 0.3s, color 0.3s;
}
.social-icons a:hover {
  transform: scale(1.2);
  color: #ffe6a7;
}
.footer-bottom {
  text-align: center;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 10px;
  color: #bbb;
}

/*contact us form*/
/* Section Wrapper */
#contact-section {
  padding: 60px 20px;
  /* background: var(--light); */
  margin: 40px;
}

/* Info Cards */
.info-cards {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.info-card {
  flex: 1 1 250px;
  background: var(--white);
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeUp 2s ease-in-out;
}

.info-card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Contact Layout */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.map-container {
  min-height: 350px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-container {
  background: var(--white);
  padding: 25px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.form-container h2 {
  margin-bottom: 15px;
  color: var(--primary);
}

.form-container label {
  display: block;
  margin: 10px 0 5px;
  font-weight: 600;
  color: var(--dark);
}
 .form-container #state,#district,#city {
      width: 100%;
      padding: 10px 12px;
      margin-bottom: 10px;
      border-radius: var(--input-radius);
      border: 1px solid var(--input-border);
      background: var(--input-bg);
      font-size: 14px;
      color: var(--brand-dark);
      appearance: none; /* remove default arrow */
      background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236f1d1b' d='M6 8L0 0h12L6 8z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 12px center;
      background-size: 12px;
      transition: border-color 0.3s, box-shadow 0.3s;
    }

    .form-container #state,#district,#city:focus {
      border-color: var(--brand-primary);
      box-shadow: 0 0 6px rgba(111, 29, 27, 0.3);
      outline: none;
    }

    .form-container #state,#district,#city:disabled {
      background-color: #f2f2f2;
      cursor: not-allowed;
    }

.form-container #name,
.form-container #phone,
.form-container #pin,
.form-container #message {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--secondary);
  border-radius: 8px;
  outline: none;
  margin-bottom: 15px;
}

.form-container #name:focus,
.form-container #phone:focus,
.form-container #pin:focus,
.form-container #message:focus {
  border-color: var(--primary);
  box-shadow: 0 0 5px var(--primary);
}

#btncontact {
  background: var(--color-golden);
  color: var(--white);
  padding: 12px 22px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.4s;
}

#btncontact:hover {
  background: var(--color-green);
}

/* Animations */
@keyframes fadeUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}
