/* =========================
   V1 HOME
========================= */

.v1-home{
  padding:16px 0 30px;
}

.v1-home-shell{
  width:100%;
  max-width:1360px;
  margin:0 auto;
  padding:0 14px;
}

.v1-home-section{
  margin-bottom:22px;
}

.v1-surface{
  background:#fff;
  border:1px solid rgba(17,24,39,.08);
  border-radius:22px;
  box-shadow:0 10px 30px rgba(15,23,42,.05);
  overflow:hidden;
}

/* =========================
   HERO / TOP BANNERS
========================= */
.v1-hero{
  padding:14px;
}

.v1-hero-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}

.v1-hero-card{
  position:relative;
  display:block;
  width:100%;
  height:250px;
  border-radius:18px;
  overflow:hidden;
  background:#eef2f7;
  text-decoration:none;
}

.v1-hero-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}

.v1-hero-content{
  position:absolute;
  inset:auto 0 0 0;
  padding:16px;
  background:linear-gradient(180deg, rgba(17,24,39,0) 0%, rgba(17,24,39,.70) 100%);
  color:#fff;
}

.v1-hero-title{
  margin:0;
  font-size:20px;
  line-height:1.2;
  font-weight:600;
}

.v1-hero-sub{
  margin:6px 0 0;
  font-size:12.5px;
  line-height:1.5;
  opacity:.96;
  font-weight:400;
}

/* =========================
   SECTION HEADERS
========================= */
.v1-sec-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.v1-sec-head-left{
  min-width:0;
}

.v1-sec-title{
  margin:0;
  font-size:18px;
  line-height:1.2;
  font-weight:600;
  color:#111827;
}

.v1-sec-sub{
  margin:6px 0 0;
  font-size:12.5px;
  line-height:1.5;
  color:#6b7280;
  font-weight:400;
}

.v1-viewall{
  flex:0 0 auto;
  text-decoration:none;
  color:#15803d;
  font-size:13px;
  font-weight:600;
  white-space:nowrap;
  padding-top:2px;
}

/* =========================
   CATEGORIES
========================= */
.v1-categories-wrap{
  padding:16px;
}

.v1-category-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}

.v1-category-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  text-decoration:none;
  color:#111827;
  background:#fff;
  border:1px solid rgba(17,24,39,.08);
  border-radius:18px;
  padding:12px 10px 14px;
  box-shadow:0 8px 22px rgba(15,23,42,.04);
  transition:transform .15s ease, box-shadow .15s ease;
}

.v1-category-card:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 26px rgba(15,23,42,.08);
}

.v1-category-img{
  width:92px;
  height:92px;
  border-radius:20px;
  overflow:hidden;
  background:linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:10px;
  box-shadow:inset 0 0 0 1px rgba(17,24,39,.05);
}

.v1-category-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}

.v1-category-name{
  font-size:12.5px;
  line-height:1.35;
  font-weight:500;
  text-align:center;
  color:#111827;
}

.v1-fallback{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  font-weight:700;
  color:#111827;
  background:#eceff3;
}

/* =========================
   CATEGORY BADGES
========================= */
.mfh-delivery-badges{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:8px;
}

.mfh-delivery-badge{
  font-family:Inter,sans-serif;
  font-size:11px;
  line-height:1;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.08);
  background:rgba(0,0,0,.03);
  color:rgba(0,0,0,.72);
  white-space:nowrap;
  font-weight:600;
}

.mfh-delivery-badge.express{
  background:rgba(16,185,129,.10);
  border-color:rgba(16,185,129,.25);
  color:#0f766e;
}

.mfh-delivery-badge.slot{
  background:rgba(59,130,246,.10);
  border-color:rgba(59,130,246,.25);
  color:#1d4ed8;
}

/* =========================
   PRODUCT SECTION
========================= */
.v1-product-wrap{
  padding:16px;
}

.v1-home-products-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
  align-items:start;
}

/* keep cards compact but DO NOT move add button below image */
.v1-home-products-grid .mfh-card2{
  min-width:100%;
  border-radius:16px;
  box-shadow:0 8px 20px rgba(16,24,40,.05);
}

.v1-home-products-grid .mfh-card2-top{
  padding:8px;
  overflow:hidden;
}

.v1-home-products-grid .mfh-card2-imglink{
  border-radius:14px;
}

.v1-home-products-grid .mfh-card2-img,
.v1-home-products-grid .mfh-card2-fallback{
  aspect-ratio:1 / 1;
}

.v1-home-products-grid .mfh-card2-addwrap{
  right:16px;
  bottom:16px;
}

.v1-home-products-grid .qty-box{
  min-width:74px;
  min-height:40px;
}

.v1-home-products-grid .mfh-card2-add.btn-add-cart{
  min-width:74px;
  height:38px;
  font-size:12px;
  padding:0 12px;
}

.v1-home-products-grid .mfh-card2-qty.qty-controls{
  min-width:74px;
  min-height:38px;
  padding:6px 10px;
  gap:8px;
}

.v1-home-products-grid .mfh-options-hint{
  font-size:9.5px;
  bottom:4px;
}

.v1-home-products-grid .mfh-card2-body{
  padding:10px 10px 10px;
  gap:5px;
}

.v1-home-products-grid .mfh-card2-meta{
  gap:6px;
  min-height:16px;
}

.v1-home-products-grid .mfh-food{
  width:13px;
  height:13px;
}

.v1-home-products-grid .mfh-pill2{
  font-size:11px;
  padding:5px 8px;
}

.v1-home-products-grid .mfh-card2-title{
  font-size:13px;
  line-height:1.25;
  min-height:32px;
}

.v1-home-products-grid .mfh-card2-now{
  font-size:14px;
}

.v1-home-products-grid .mfh-card2-mrp{
  font-size:11px;
}

.v1-home-products-grid .mfh-card2-unit{
  font-size:11px;
}

/* =========================
   INLINE BANNERS
========================= */
.v1-inline-banner{
  display:block;
  position:relative;
  min-height:150px;
  border-radius:20px;
  overflow:hidden;
  background:#eef2f7;
  text-decoration:none;
}

.v1-inline-banner img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}

.v1-inline-banner .mfh-banner-overlay{
  position:absolute;
  inset:auto 0 0 0;
  padding:16px;
  background:linear-gradient(180deg, rgba(17,24,39,0) 0%, rgba(17,24,39,.70) 100%);
  color:#fff;
}

.v1-inline-banner .mfh-banner-title{
  font-size:18px;
  line-height:1.2;
  font-weight:600;
  margin:0;
}

.v1-inline-banner .mfh-banner-sub{
  margin-top:6px;
  font-size:12.5px;
  line-height:1.5;
  font-weight:400;
  opacity:.96;
}

/* keep current add/options spacing compatible */
.mfh-options-hint{
  margin-top:6px;
  font-size:11px;
  font-weight:700;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:rgba(100,116,139,.95);
  text-align:center;
  line-height:1;
  user-select:none;
  white-space:nowrap;
}

.mfh-card2-addwrap .qty-box{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:0;
}

/* =========================
   TABLET
========================= */
@media (min-width: 768px){
  .v1-home{
    padding:20px 0 36px;
  }

  .v1-home-shell{
    padding:0 18px;
  }

  .v1-hero{
    padding:16px;
  }

  .v1-hero-grid{
    grid-template-columns:1fr;
    gap:14px;
  }

  .v1-hero-card{
    min-height:220px;
  }

  .v1-category-grid{
    grid-template-columns:repeat(4, minmax(0, 1fr));
  }

  .v1-category-img{
    width:96px;
    height:96px;
  }

  .v1-home-products-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:14px;
  }
}

/* =========================
   DESKTOP
========================= */
@media (min-width: 1024px){
  .v1-home-shell{
    padding:0 20px;
  }

  .v1-home-section{
    margin-bottom:26px;
  }

  .v1-hero{
    padding:18px;
  }

  .v1-hero-grid{
    gap:16px;
  }

  .v1-hero-card{
    min-height:250px;
  }

  .v1-categories-wrap,
  .v1-product-wrap{
    padding:18px;
  }

  .v1-category-grid{
    grid-template-columns:repeat(6, minmax(0, 1fr));
    gap:14px;
  }

  .v1-category-img{
    width:100px;
    height:100px;
    border-radius:22px;
  }

  .v1-home-products-grid{
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:14px;
  }

  .v1-home-products-grid .mfh-card2{
    border-radius:15px;
  }

  .v1-home-products-grid .mfh-card2-top{
    padding:8px;
  }

  .v1-home-products-grid .mfh-card2-addwrap{
    right:16px;
    bottom:16px;
  }

  .v1-home-products-grid .mfh-card2-body{
    padding:10px 10px 10px;
  }

  .v1-home-products-grid .mfh-card2-title{
    font-size:13px;
    min-height:34px;
  }

  .v1-inline-banner{
    min-height:180px;
  }
}

/* =========================
   LARGE DESKTOP
========================= */
@media (min-width: 1280px){
  .v1-home-shell{
    max-width:1380px;
  }

  .v1-home-products-grid{
    gap:16px;
  }
}