/* आपके पहले वाले CSS को जस का तस रखा है */
    body { margin: 0; font-family: Arial, sans-serif; background: #f8f8f8; }
    .header, .search-bar {
      background: #fff;
      position: fixed;
      left: 0;
      width: 100%;
      transition: transform 0.3s ease;
      z-index: 1000;
    }
    
  .header {
    top: 0;
    padding: 10px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;  /* 👈 Fix: Spread content */
    background: #fff;
    width: 100%;
    box-sizing: border-box;
  }

  .header.hidden {
    transform: translateY(-100%);
  }

  .logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: block;
  }

  .delivery-info {
    margin-left: 10px;
    flex: 1;
  }

  .delivery-info h1 {
    font-size: 15px;
    margin: 0;
    font-weight: bold;
    color: #333;
  }

  .delivery-info span {
    font-size: 11px;
    color: #666;
  }

  .header-icons {
    display: flex;
    gap: 10px;
  }

  .header-icons div {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-icons img {
    width: 18px;
    height: 18px;
  }

  .search-bar {
    top: 60px;
    padding: 12px 15px;
    width: 92%;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.search-bar.sticky-top {
    top: 0;
}

.search-box {
    flex: 1;
    position: relative;
}

.search-box input {
    width: 100%;
    align-items: center;
    padding: 10px 40px 10px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
}
.search-box .mic-divider {
  position: absolute;
  right: 35px;      /* Adjust as per mic size */
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 18px;
  background-color: #ccc;
}
.search-box .mic-icon {
    position: absolute;
    right: 10px;  /* 5px se 10px kar diya to look balanced */
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 18px;       /* Slightly bigger icon */
    cursor: pointer;
    line-height: 1;         /* Prevent vertical misalignment */
    height: 16px;           /* Optional: Match icon height to divider */
    display: flex;          /* Perfect center using flex */
    align-items: center;
    justify-content: center;
}

    .cart-icon { margin-left: 60px; font-size: 20px; position: relative; color: #444; }
    .cart-icon::after { content: '0'; position: absolute; top: -6px; right: -6px; background: red; color: #fff; border-radius: 50%; font-size: 10px; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; }
    .page-content { padding-top: 120px; }
    .category-bar,


.category-bar {
  overflow-x: auto;
  white-space: nowrap;
  padding: 5px 8px;
  scrollbar-width: none;
}

.category-bar::-webkit-scrollbar {
  display: none;
}

.category-item {
  display: inline-block;
  width: 65px;
  text-align: center;
  margin: 0 8px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.category-item img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #eee;
  margin-bottom: 5px;
}

.category-item span {
  font-size: 11px;
  color: #333;
  display: block;
}

    .banner-slider { overflow: hidden; max-height: 200px; }
    .slides { display: flex; transition: transform 0.6s ease-in-out; }
    .slide { min-width: 100%; box-sizing: border-box; }
    .slide img { width: 100%; height: auto; display: block; }
    .home-sections { padding: 10px; }
    .home-grid { display: grid; gap: 12px; }
    .home-grid-item { text-align: center; cursor: pointer; }
    .home-grid-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 10px; border: 1px solid #eee; margin-bottom: 6px; }
    .home-grid-item span { font-size: 12px; color: #333; display: block; }
    .style1 .home-grid { grid-template-columns: repeat(4, 1fr); }
    .style2 .home-grid { grid-template-columns: repeat(3, 1fr); }
    .style3 .home-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-item { border: 1px solid #ddd; padding: 8px; border-radius: 6px; background: #fff; cursor: pointer; }
    .product-item img { width: 100%; height: 100px; object-fit: contain; }
    .product-item h5 { font-size: 14px; margin: 5px 0; height: 34px; overflow: hidden; }
    .product-item .price-row { font-size: 13px; margin: 5px 0; }
    .product-item .price-row span { color: #333; }
    .product-item .price-row .mrp { text-decoration: line-through; color: #999; margin-left: 5px; font-size: 12px; }
    .product-item .stars { font-size: 12px; color: #f5a623; margin-top: 4px; }
    .product-item button { background: #00c853; border: none; color: #fff; padding: 5px 10px; border-radius: 4px; font-size: 12px; cursor: pointer; margin-top: 6px; }
    .product-item button i { margin-right: 5px; }
    #popupOverlay { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:#fff; z-index:9999; overflow-y:auto; transition: transform 0.3s ease; }
    #popupOverlayHeader { padding:15px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid #eee; }
    #popupOverlay h2 { font-size:16px; margin:0; }
    #searchResults { margin:10px; }
    .account-popup {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      height: 100%;
      background: #fff;
      border-radius: 20px 20px 0 0;
      box-shadow: 0 -2px 15px rgba(0,0,0,0.15);
      transform: translateY(100%);
      transition: transform 0.3s ease-in-out;
      z-index: 10000;
    }

    .account-popup.open {
      transform: translateY(0);
    }

    .account-header {
      padding: 15px 20px;
      border-bottom: 1px solid #eee;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .account-header h2 {
      font-size: 18px;
      margin: 0;
      color: #333;
    }

    .close-btn {
      font-size: 24px;
      background: none;
      border: none;
      cursor: pointer;
      color: #555;
    }

    .account-content {
      padding: 15px 20px;
      overflow-y: auto;
      max-height: calc(80% - 60px);
    }

    .account-content p {
      margin: 0 0 10px;
      font-size: 15px;
      color: #555;
    }

    .account-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .account-list li {
      padding: 12px 0;
      border-bottom: 1px solid #f0f0f0;
      font-size: 15px;
      color: #333;
      display: flex;
      align-items: center;
      gap: 10px;
      cursor: pointer;
    }

    .account-list li:hover {
      background: #fafafa;
    }
    .cart-container {
  position: fixed;
  top: 20px;
  right: 20px;
  cursor: pointer;
  z-index: 1001;
}

.cart-badge {
  background: red;
  color: white;
  border-radius: 50%;
  padding: 3px 7px;
  font-size: 12px;
  position: absolute;
  top: -8px;
  right: -10px;
}
.cart-icon {
  position: relative;
  cursor: pointer;
}


.cart-popup {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: white;
  border-left: 1px solid #ccc;
  padding: 20px;
  transition: right 0.3s ease-in-out;
  box-shadow: -2px 0 5px rgba(0,0,0,0.2);
  z-index: 1000;
}

.cart-popup.open {
  right: 0;
}

.cart-popup ul {
  list-style: none;
  padding-left: 0;
}

.cart-popup li {
  padding: 5px 0;
  border-bottom: 1px solid #eee;
}
