/* ==== BASE STYLES ==== */
body {
    font-family: "Segoe UI", sans-serif;
    margin: 0;
    background: #f9f9f9;
    color: #222;
    overflow-x: hidden;
}
/* ==== TOP NAVIGATION (Fixed + Clean) ==== */
.topnav {
  background: #fff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  border-bottom: 1px solid #ccc;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 30px;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: limegreen; /* was #0073e6 */
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 4px;
  transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: limegreen; /* was green */
  color: white;
}

/* ==== SEARCH BAR SECTION (Inline) ==== */
.nav-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.nav-search select,
.nav-search input[type="text"] {
  height: 44px;
  padding: 0 12px;
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-sizing: border-box;
}


.nav-search select {
  min-width: 140px;
  background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px; /* extra room for the dropdown arrow */
}


.nav-search select:focus {
  border-color: limegreen;
  outline: none;
  box-shadow: 0 0 5px rgba(50, 205, 50, 0.3);
}

.nav-search button {
  background: white;
  color: white;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease;
}

.nav-search button:hover {
  background: white;
}



.container {
    max-width: 1200px;
    margin: auto;
    padding: 30px 20px;
}

main {
    min-height: 80vh;
}

footer {
    background: #f1f1f1;
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
}

footer a {
    color: green;
    text-decoration: none;
}

/* ==== BUTTONS ==== */
.btn {
    background: green;
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
    transition: 0.3s ease;
}

.btn:hover {
    background: #006400;
}

/* ==== NAVIGATION ==== */
nav {
    background: #fff;
    padding: 15px;
    border-bottom: 1px solid #ccc;
    text-align: center;
}

nav a {
    color: #000;
    text-decoration: none;
    margin: 0 10px;
    padding: 8px 12px;
    border-radius: 5px;
    transition: 0.3s;
}

nav a:hover,
nav a.active {
    background-color: green;
    color: white;
}

/* ==== PRODUCT GRID ==== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.product-card {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 12px;
    background: white;
    transition: 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 12px;
}

.product-card h3 {
    margin: 10px 0 5px;
    font-size: 18px;
}

.product-card .price {
    font-size: 16px;
    color: #1a8917;
    font-weight: bold;
}

/* ==== PRODUCT VIEW PAGE ==== */
.product-view {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 30px;
    flex-wrap: wrap;
}

.product-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    border: 1px solid #ccc;
}

.product-details {
    flex: 1;
}

.product-details h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.product-details .price {
    font-size: 22px;
    color: green;
    margin-bottom: 15px;
}

.product-details p {
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ==== SHOP LAYOUT ==== */
.shop-layout {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.sidebar {
    width: 220px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #fff;
}

.sidebar h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar a {
    text-decoration: none;
    color: black;
    font-size: 16px;
}

.sidebar a:hover {
    color: green;
    text-decoration: underline;
}

.products {
    flex: 1;
}



.hero-slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 10px;
}

.slides {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  display: none;
  object-fit: contain; /* ⭐ this shows full image even if it shrinks */
  height: 350px;
  border-radius: 10px;
  background: #fff;
}


.slide.active {
    display: block;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
}

.arrow.left {
    left: 10px;
}

.arrow.right {
    right: 10px;
}

.dots {
    text-align: center;
    margin-top: 10px;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.dot.active {
    background-color: green;
}


.product-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 100px; /* leave space for button to appear */
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.product-card .hover-btn {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.product-card:hover .hover-btn {
  opacity: 1;
  pointer-events: auto;
}

.product-card .hover-btn a {
  width: 50%;
  font-size: 13px;
  white-space: nowrap;
  text-align: center;
  padding: 14px 0;
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: 0.2s ease;
}


/* Left: Add to Cart */
.product-card .hover-btn a:first-child {
  background: #007bff;
  border-bottom-left-radius: 16px;
}

/* Right: View */
.product-card .hover-btn a:last-child {
  background: green;
  border-bottom-right-radius: 16px;
}

.product-card .hover-btn a:hover {
  opacity: 0.9;
}



.search-dropdown {
  position: absolute;
  background: white;
  width: 250px;
  top: 100%;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.search-dropdown .item {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.search-dropdown .item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-right: 10px;
}

.search-dropdown .item:last-child {
  border-bottom: none;
}

.search-dropdown .no-result {
  padding: 10px;
  text-align: center;
  color: #666;
}













.show-more-container {
  text-align: center;
  margin: 40px 0 20px;
}

.show-more-btn {
  background: white;
  color: black;
  border: 1px solid #ccc;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
}

.show-more-btn:hover {
  background: white;
  color: black;
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}




.category-section {
  transition: all 0.4s ease;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
}
.category-section.show {
  opacity: 1;
  max-height: 1000px;
  transform: translateY(0);
  animation: fadeSlideIn 0.4s ease forwards;
}
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.category-section.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  height: 0;
  overflow: hidden;
}


.category-section h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
  color: #222;
}

.category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  padding: 20px 0;
}

.category-box {
  background: white;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 12px 20px;
  min-width: 140px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-box:hover {
  background: #f9f9f9;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}



.category-card {
  background: white;
  border-radius: 12px;
  padding: 12px 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}


.category-card .emoji-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.category-card h3 {
  font-size: 16px;
  color: #333;
  font-weight: 500;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}



#category-results {
  transition: opacity 0.4s ease;
}






.category-toggle-wrapper {
  margin: 50px auto;
  text-align: center;
  max-width: 1000px;
  padding: 0 20px;
}





#toggleButton {
  display: inline-block;
  background: white;
  border: 1px solid #ccc;
  color: black;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  margin-bottom: 20px;
}

#toggleButton:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}




.new-footer {
  background: #f9f9f9;
  border-top: 1px solid #ddd;
  font-size: 14px;
  color: #333;
  margin-top: 50px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
}

.footer-column {
  flex: 1;
  min-width: 200px;
  margin-bottom: 30px;
}

.footer-column h4 {
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: bold;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 10px;
}

.footer-column a {
  color: #444;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: green;
}

.footer-column i {
  margin-right: 8px;
  color: limegreen;
}

.footer-bottom {
  border-top: 1px solid #ccc;
  padding: 20px;
  text-align: center;
  background: #fff;
}

.footer-bottom p {
  margin: 0;
  color: #666;
}

.footer-socials {
  margin-top: 10px;
}

.footer-socials a {
  margin: 0 10px;
  display: inline-block;
}

.footer-socials i {
  font-size: 20px;
  color: #444;
  transition: color 0.3s ease;
}

.footer-socials i:hover {
  color: green;
}









.search-group-wrapper {
  position: relative; /* 👈 KEY */
  width: 100%;
}

.search-group {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  width: 100%;
}

#search-results {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-width: 350px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  z-index: 2000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: none;
}


.hero-slider .shop-now-btn {
  position: absolute;
  bottom: 20px;
  left: 30px;
  padding: 12px 28px;
  font-size: 18px;
  font-weight: bold;
  color: white;
  background-color: rgba(0, 128, 0, 0.9); /* green button */
  border: none;
  border-radius: 8px;
  text-decoration: none;
  z-index: 5;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.hero-slider .shop-now-btn:hover {
  background-color: rgba(0, 100, 0, 1);
  transform: scale(1.05);
  backdrop-filter: blur(8px);
}







/* ✅ BURGER MENU STYLE */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 30px;
  gap: 6px;
  z-index: 1000;
}
.burger span {
  height: 3px;
  background: #000;
  border-radius: 2px;
  transition: all 0.3s;
}
.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 60px;
    right: 20px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .nav-links.show {
    display: flex;
  }
}




.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}



/* 🔥 Burger Button Styles */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 30px;
  gap: 6px;
  z-index: 1000;
}
.burger span {
  display: block;
  height: 3px;
  background: black;
  border-radius: 2px;
  transition: 0.3s ease;
  transform-origin: center;
}

/* Active Animation */
.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7.1px, 7.1px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    right: 20px;
    top: 60px;
    background: white;
    padding: 10px 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 100;
  }

  .nav-links.show {
    display: flex;
  }
}


@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    right: 20px;
    top: 60px;
    background: white;
    padding: 10px 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 100;
  }

  .nav-links.show {
    display: flex;
  }
}

@media (max-width: 642px) {
  .burger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    right: 20px;
    top: 60px;
    background: white;
    padding: 10px 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 100;
  }

  .nav-links.show {
    display: flex;
  }
}


@media (max-width: 640px) {
  .burger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    right: 20px;
    top: 60px;
    background: white;
    padding: 10px 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 100;
  }

  .nav-links.show {
    display: flex;
  }
}


@media (max-width: 812px) {
  .burger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    right: 20px;
    top: 60px;
    background: white;
    padding: 10px 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 100;
  }

  .nav-links.show {
    display: flex;
  }
}



@media (max-width: 1000px) {
  .burger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    right: 20px;
    top: 60px;
    background: white;
    padding: 10px 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 100;
  }

  .nav-links.show {
    display: flex;
  }
}




/* Global overflow fix */
body {
  overflow-x: hidden;
}




.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  background-color: #25D366;
  padding: 12px;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.whatsapp-float img {
  width: 40px;
  height: 40px;
  display: block;
  filter: invert(1); /* because it's white on transparent background */
}

.whatsapp-float:hover {
  transform: scale(1.1);
}


@media (max-width: 768px) {
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100vw;
    background-color: white;
    overflow: hidden;
    max-height: 0;
    padding: 0;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 999;
    border-radius: 0 0 12px 12px;
  }

  .nav-links.show {
    max-height: 500px;
    opacity: 1;
    padding: 10px 0;
  }

  .nav-links a {
    padding: 14px 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #f1f1f1;
    font-size: 18px;
  }
}



.new-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #007bff;
  color: white;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 4px;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-transform: uppercase;
}





/* === ADDITION TO MAKE PRODUCT GRID NARROWER ON SMALL SCREENS === */
@media (max-width: 600px) {
  .product-card {
    padding: 10px;
  }
  .product-card img {
    height: 150px;
  }
  .product-card h3 {
    font-size: 16px;
  }
  .product-card .price {
    font-size: 14px;
  }
  .product-card .hover-btn a {
    font-size: 12px;
    padding: 12px 0;
  }
}



.sidebar-filter a {
  text-decoration: none;
  color: #222;
  font-size: 15px;
  transition: 0.2s;
}

.sidebar-filter a:hover {
  color: limegreen;
  text-decoration: underline;
}

.products-area {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px;
}



@media (max-width: 992px) {
  .products-area {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .products-area {
    grid-template-columns: 1fr;
  }
}





/* === Sidebar Filter Panel === */
.sidebar-filter {
  width: 220px;
  padding: 15px;
  background-color: #f4f4f4;
  border-radius: 10px;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
  height: fit-content;
}

.sidebar-filter h3 {
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

/* Category List */
.sidebar-filter ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-filter ul li a {
  text-decoration: none;
  font-size: 15px;
  color: #444;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  display: block;
}

.sidebar-filter ul li a:hover,
.sidebar-filter ul li a.active {
  background-color: #00a86b;
  color: white;
}

/* === Responsive Adjustment === */
@media (max-width: 768px) {
  .shop-layout-with-sidebar {
    flex-direction: column;
    align-items: center;
  }

  .sidebar-filter {
    width: 100%;
    margin-bottom: 20px;
    padding: 10px;
  }

  .sidebar-filter ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .sidebar-filter ul li a {
    font-size: 14px;
    padding: 6px 10px;
    min-width: 100px;
    text-align: center;
  }
}





.sidebar-heading {
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #111;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(to right, #f0f0f0, #ffffff);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-bottom: 12px;
  transition: all 0.2s ease-in-out;
}

.sidebar-heading i {
  font-size: 1.1rem;
  color: #00b894; /* teal/aqua modern touch */
}

.sidebar-heading:hover {
  background: #eafaf7;
  color: #00b894;
}

