* {
  text-decoration: none;
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  background-color: #ffffffd0;
  padding: 0 5px;
  width: 100%;
  max-width: 1440px;
  margin: auto;
}

/* li {
  list-style-type: none;
}

h1,
h2,
h3 {
  font-family: Arial, Helvetica, sans-serif;
}

p,
a,
span {
  text-decoration: none;
  font-family: serif;
} */

.product-labels {
  display: block; /*flex*/
  flex-direction: row;
  gap: 0px;
  padding: 2px 0 0 0;
}

.label {
  padding: 4px 8px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 5px;
  color: #fff;
  width: fit-content;
}

.label.festive {
  background: #000dffd9;
}

.label.Holi {
  background: #4c00ffe5;
}

.label.Dewali {
  background: #1c5d92;
}

.label.discount {
  background: #e91e63;
}

.label.hot {
  background: #f44336;
}

.label-off {
  display: none;
}

.section-heading {
  max-width: 1440px;
}

.pagination {
  display: flex;
  padding: 5px 0;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination a {
  padding: 8px 14px;
  background-color: #3797fd;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
}

.pagination a:hover {
  background-color: #0056b3;
}

.pagination a.active {
  background-color: #0d3d70;
}

.page-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 100%;
}

/* Container styling */
#searchContainer {
  position: relative;
  width: 100%;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Input box */
#searchInput {
  width: 100%;
  padding: 10px 36px 10px 14px;
  font-size: 16px;
  border: 1.5px solid #000;
  border-radius: 6px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

#searchInput:focus {
  border-color: #0078d7;
  box-shadow: 0 0 6px rgba(0, 120, 215, 0.5);
}

/* ✖ Clear button */
#clearSearch {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #999;
  cursor: pointer;
  user-select: none;
  z-index: 1001;
}

/* Suggestion dropdown */
#suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 320px;
  overflow-y: auto;
  background-color: #fff;
  border: 1px solid #4e4e4e;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  font-size: 15px;
  color: #333;
}

/* Suggestions list */
.suggestion-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.suggestion-item:hover {
  background-color: #f0f7ff;
}

.suggestion-item img.thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: contain;
  margin-right: 12px;
  border: 1px solid #ddd;
  background-color: #fafafa;
}

.suggestion-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-name {
  font-weight: 600;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.price {
  font-weight: 700;
  color: #0078d7;
  margin-top: 4px;
}

.description {
  font-size: 13px;
  color: #666;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category {
  background-color: #e1ecff;
  color: #0050b3;
  font-weight: 700;
  padding: 8px 12px;
  border-bottom: 1px solid #b3d1ff;
  user-select: none;
}

.didyoumean {
  padding: 12px 15px;
  font-style: italic;
  color: #666;
  cursor: pointer;
  border-top: 1px solid #eee;
}

.didyoumean:hover {
  background-color: #f9f9f9;
  color: #0078d7;
  text-decoration: underline;
}

/* Footer overall styling */
footer {
  border-top: 2px solid white;
  background-color: #222;
  color: #fff;
  padding: 20px 20px 0px;
  font-family: Arial, sans-serif;
}

/* Container with flex columns */
.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 auto;
}

/* Each footer column */
.footer-column {
  flex: 1;
  min-width: 200px;
  margin: 0px;
}

.footer-column h4 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #f2f2f2;
  border-bottom: 2px solid #444;
  padding: 0 0 5px 10px;
}

.footer-column ul{
  padding: 0;
}

/* List inside columns */
.footer-list {
  list-style: none;
  margin: 8px 0;
}

.footerlink {
  text-decoration: none;
  color: #bbb;
  transition: color 0.3s ease;
}

.footerlink:hover {
  color: #2dea02;
}

/* Bottom footer text */
.footer-bottom {
  text-align: center;
  padding: 10px 0;
  border-top: 1px solid #444;
  font-size: 14px;
  color: #aaa;
}

.footerlink:before {
  content: "➜";
  position: relative;
  left: -20px;
  opacity: 0;
  color: rgb(50, 255, 13);
  transition: 0.3s;
}
.footerlink:hover:before {
  left: -5px;
  opacity: 1;
}

#logo a {
  font-weight: bold;
  font-size: 20px;
  color: black;
}

/* Your Navbar Styling */
#navbar {
  padding: 0px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #03030303;
  position: relative;
  z-index: 10;
  margin: -5px 0;
}
@media (max-width: 768px) {
  #navbar {
  padding: 5px 0;
  margin: 0px 0;
}
}
#nav_menu {
  list-style-type: none;
  display: flex;
  gap: 5px;
}

.nav_list a {
  padding: 5px 15px;
  margin: 0;
  color: #1e1f26;
  border-radius: 20px;
  text-decoration: none;
  font-size: 18px;
  font-family:'Times New Roman', Times, serif;
  transition: 0.2s;
}

.nav_list a:hover {
  color: rgb(50, 255, 13);
  font-weight: 500;
  background-color: #000000;
  border: 0px solid rgb(50, 255, 13);
  border-radius: 20px;
}

/* Hamburger Icon */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background-color: #1e1f26;
}

/* Mobile Sidebar */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  height: auto;
  width: 70%;
  background: #fff;
  padding: 60px 20px;
  transition: left 0.3s ease-in-out;
  z-index: 10000;
  height: 100vh;
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
}

.mobile-menu li {
  margin-bottom: 20px;
}

.mobile-menu a {
  text-decoration: none;
  color: #1e1f26;
  font-size: 18px;
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  transition: 0.2s;
}

.mobile-menu a:hover {
  color: rgb(50, 255, 13);
  background-color: #000000ec;
  border: 1px solid rgb(50, 255, 13);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #1e1f26;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(0, 0, 0, 0.4);
  z-index: 90;
  display: none;
}

.overlay.active {
  display: block;
}

/* Responsive Settings */
@media (max-width: 768px) {
  #nav_menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

#backToTopBtn {
  position: fixed;
  bottom: 40px;
  right: 30px;
  display: none;
  background-color: rgb(255, 255, 255);
  color: rgb(0, 0, 0);
  border: none;
  border: 1px solid black;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  transition: opacity 0.3s;
}

#backToTopBtn img {
  justify-content: center;
  align-content: center;
  text-align: center;
  width: 20px;
  height: 20px;
}

#backToTopBtn:hover {
  background-color: #66fc8b;
  border: 1px solid rgb(0, 0, 0);
}

#backToTopBtn:hover abbr[title="Go To Top"]{}

/* Responsive design */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align : center;
  }

  .footer-column {
    margin-bottom: 20px;
  }
}

.star-rating {
  padding: 2px 0;
  margin: 0 0 0 8px;
}
.star-rating span {
  display: inline-block;
  margin: 0;
  padding: 0;
}
.star-rating span img {
  padding: 5px 0;
  margin: 0 0 0 0px;
  border: 0;
  width: 20px;
  height: auto;
}
