/* SmartShopper 10.22.92 — mobile viewport and balanced product cards */
html,
body {
  width: 100% !important;
  max-width: 100%;
  overflow-x: hidden !important;
  overscroll-behavior-x: none;
}

body,
.page-wrap,
.page-wrap > main,
main,
.container-xl,
.section,
.product-grid,
.ss-product-card {
  min-width: 0;
  box-sizing: border-box;
}

.page-wrap,
.page-wrap > main,
main {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.site-header,
.header-inner,
.hero-section,
.hero-banner,
.bottom-nav {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

@media (max-width: 699px) {
  html,
  body {
    position: relative;
    margin-inline: 0 !important;
  }

  .page-wrap,
  .page-wrap > main,
  main,
  .container-xl,
  .section {
    width: 100% !important;
    max-width: 100% !important;
  }

  .product-grid {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .product-grid > .ss-product-card {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
  }

  .ss-product-card .product-media {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1.18 / 1 !important;
    padding: 8px !important;
  }

  .ss-product-card .product-media-link {
    width: 100% !important;
    height: 100% !important;
  }

  .ss-product-card .product-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
  }

  .ss-product-card .product-body {
    min-height: 176px !important;
    padding: 10px 11px 11px !important;
    gap: 6px !important;
  }

  .ss-product-card .product-name {
    min-height: 42px !important;
    line-height: 1.55 !important;
  }

  .ss-product-card .product-price-row {
    min-height: 30px !important;
  }

  .ss-product-card .add-cart-btn {
    min-height: 42px !important;
  }
}

@media (max-width: 360px) {
  .product-grid {
    gap: 8px !important;
  }

  .ss-product-card .product-body {
    min-height: 168px !important;
    padding-inline: 9px !important;
  }
}
