* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100vw;
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 32px;
  background: #fff;
  cursor: pointer;
  position: sticky;
  left: 0;
  top: 0;
  z-index: 99;
}

.dilv-detail h3 {
  font-size: 20px;
  font-weight: 600;
}

.dilv-detail p {
  font-size: 12px;
  color: #666;
}

.search-box {
  position: relative;
  flex: 1;
  border: 1px solid grey;
  border-radius: 10px;
  max-width: 900px;
}

.search-box .icon i {
  position: absolute;
  left: 15px;
  top: 45%;
  transform: translateY(-50%);
  font-size: 18px;
  pointer-events: none;
}

.search-box input {
  width: 100%;
  height: 44px;
  padding-left: 40px;
  border: none;
  border-radius: 8px;
  outline: none;
}
.search-box input::placeholder {
  font-size: large;
}

header a {
  font-size: larger;
  text-decoration: none;
  color: black;
  font-weight: 100;
}

header button {
  padding: 15px 16px;
  color: white;
  background: black;
  border-radius: 12px;
  border: none;
  opacity: 0.3;
  cursor: not-allowed;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* -----------main-container----------- */
.main-container {
  position: relative;
  max-width: 1250px;
  margin: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}
.main-container :hover {
  cursor: pointer;
}
.small-banners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.small-banners img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

/* ------------------------- */
.categories {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-direction: column;
  /* border: 2px solid red; */
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.category-card img {
  /* border: 2px solid red; */
  width: 6vw;
  cursor: pointer;
}

/* --------------DAIRY PRODUCTS--------------------- */

.section-header {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-header h2 {
  font-weight: 600;
  font-size: 24px;
}

.section-header span {
  font-size: 24px;
  color: green;
  cursor: pointer;
}

/* ----------------- */
.product-row {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  scroll-behavior: smooth;
  /* border: 2px solid red; */
}

.product-row::-webkit-scrollbar {
  width: 1px;
}

.product-card {
  margin: 10px;
  /* border: 2px solid red; */
  width: 180px;
  padding: 10px;
  line-height: 25px;
  display: flex;
  flex-direction: column;
}

.product-card :hover {
  cursor: pointer;
}

.product-card img {
  width: 8vw;
}
.delivery {
  opacity: 0.7;
  font-size: x-small;
  font-weight: 600;
}
.grams {
  font-size: x-small;
  font-weight: 400;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.price-row .price {
  font-size: small;
  font-weight: 600;
}
.price-row .add-btn {
  font-size: small;
  font-weight: 600;
  padding: 1vh 2vh;
  border-radius: 12px;
  color: green;
  border: 1px solid green;
}

/* -------------SNACKS & MUNCHIES------------ */
.old-price {
  font-size: 12px;
  color: #8c8c8c;
  text-decoration: line-through;
  margin-left: 6px;
}

/* ----------------FOOTER------------------------ */

.footer-container {
  max-width: 1200px;
  /* border: 1px solid red; */
  display: flex;
  justify-content: space-around;
  margin: auto;
}

@media (max-width: 900px ) {
  .footer-container{
    flex-wrap: wrap;
  }

}

.footer-container h3 {
  margin-bottom: 20px;
}

.footer-section {
  margin: 0;
  /* border: 1px solid red; */
}

.footer-columns {
  display: flex;
  gap: 60px;
}

.footer-columns ul {
  line-height: 25px;
  margin-right: 60px;
  list-style: none;
  padding: 0;
}

.footer-columns ul li {
  color: grey;
}

.footer-title {
  margin: 10px;
  display: flex;
}
.footer-title .see-all {
  margin-left: 30px;
  color: rgba(6, 172, 6, 0.872);
  cursor: pointer;
}

/* -------------foot-con------------ */
.icons {
  max-width: 1200px;
  padding: 20px;
  display: flex;
  margin: auto;
  align-items: center;
  justify-content: space-evenly;
  /* border: 1px solid red; */
}

.icons .foot-con {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.icons p {
  color: grey;
  font-size: small;
}
.icons .foot-con img {
  width: 150px;
}
.icons .foot-con i {
  color: black;
  font-size: 50px;
  margin-right: 12px;
  cursor: pointer;
}

.lastsec {
  max-width: 1200px;
  margin: auto;
  padding: 10px;
}
.lastsec p {
  font-size: 14px;
  color: grey;
}
