/**
 * Homepage mobile polish — load last on page-home
 */

@media (max-width: 991px) {
  body.page-home.page-grocery-kit .hp-kit-page {
    background: #f5f5f5;
  }

  body.page-home .container {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  /* Hide duplicate full pincode bar — delivery check is in Offers section only */
  body.page-home .hp-pd-pincode--main {
    display: none !important;
  }

  /* Smaller service highlight chips */
  body.page-home .hp-kit-services {
    margin: 10px 0;
  }

  body.page-home .hp-kit-service-chip {
    min-width: 68px;
    padding: 8px 6px;
    gap: 5px;
    border-radius: 12px;
  }

  body.page-home .hp-kit-service-chip i {
    width: 30px;
    height: 30px;
    font-size: 0.78rem;
  }

  body.page-home .hp-kit-service-chip span {
    font-size: 0.5625rem;
    max-width: 62px;
    line-height: 1.25;
  }

  /* Category chips */
  body.page-home .hp-kit-cat-chip {
    flex: 0 0 72px;
  }

  body.page-home .hp-kit-cat-photo {
    width: 56px;
    height: 56px;
  }

  body.page-home .hp-kit-cat-name {
    font-size: 0.625rem;
  }

  /* Offers section — compact, right after categories */
  body.page-home .hp-kit-promos {
    padding-top: 4px;
    padding-bottom: 14px;
  }

  body.page-home .hp-kit-top-cats {
    padding-bottom: 4px;
  }

  /* SANJU10 strip compact */
  body.page-home .hp-kit-sanju-strip {
    padding: 12px 14px;
    border-radius: 14px;
    gap: 10px;
  }

  body.page-home .hp-kit-sanju-strip .hp-strip-text strong {
    font-size: 0.875rem;
  }

  body.page-home .hp-kit-sanju-strip .hp-strip-text span {
    font-size: 0.75rem;
  }

  body.page-home .hp-kit-sanju-strip .hp-strip-btn {
    padding: 8px 14px;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  /* Floating buttons — clear of bottom nav, no overlap */
  body.page-home .wa-float {
    left: 12px !important;
    right: auto !important;
    bottom: calc(var(--bottom-nav-h, 72px) + env(safe-area-inset-bottom, 0px) + 10px) !important;
    width: 46px !important;
    height: 46px !important;
    font-size: 1.35rem !important;
  }

  body.page-home .scroll-top-btn {
    left: auto !important;
    right: 12px !important;
    bottom: calc(var(--bottom-nav-h, 72px) + env(safe-area-inset-bottom, 0px) + 10px) !important;
    width: 38px !important;
    height: 38px !important;
    font-size: 0.85rem !important;
  }

  body.page-home .sp-theme-toggle {
    display: none !important;
  }

  /* Product rows */
  body.page-home .hp-pd-section {
    padding: 6px 0 18px;
  }

  body.page-home .hp-pd-section-head h2 {
    font-size: 1.05rem;
  }

  /* Product rows — horizontal scroll cards */
  body.page-home .hp-pd-row-wrap {
    margin: 0 -4px;
  }

  body.page-home .hp-pd-card {
    flex: 0 0 148px;
    max-width: 148px;
  }

  body.page-home .hp-pd-row-nav {
    display: none;
  }
}

@media (max-width: 575px) {
  body.page-home .hp-kit-section-head h2 {
    font-size: 1.1rem;
  }

  body.page-home .hp-kit-hero {
    padding: 8px 0 10px;
  }

  body.page-home .hp-kit-swiper {
    border-radius: 14px;
  }
}

@media (min-width: 992px) {
  body.page-home .hp-pd-pincode--main .hp-pd-pincode-form {
    padding: 10px 12px;
    gap: 8px 10px;
  }

  body.page-home .hp-pd-pincode--main .hp-pd-pincode-icon {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  body.page-home .hp-pd-pincode--main .hp-pd-pincode-copy span {
    font-size: 0.6875rem;
  }
}
