/* Home runtime: lock top-sales geometry to the static mockup contract. */
@media (min-width: 1024px) {
  body[data-page-type='home'] .bento {
    grid-template-rows: repeat(2, 341px);
  }

  body[data-page-type='home'] .bento-featured {
    height: 702px;
    min-height: 0;
  }

  body[data-page-type='home'] .bento-featured__img-link {
    flex: 0 0 524px;
    width: 100%;
    min-height: 0;
  }

  body[data-page-type='home'] .bento-featured__img {
    width: 100%;
    height: 524px;
    min-height: 0;
    flex: none;
  }

  body[data-page-type='home'] .bento-featured__body {
    height: 176px;
    max-height: 176px;
    min-height: 0;
    overflow: hidden;
  }

  body[data-page-type='home'] .bento .prod-card {
    height: 341px;
    min-height: 0;
  }

  body[data-page-type='home'] .bento .prod-card__body {
    height: 159px;
    max-height: 159px;
    min-height: 0;
    overflow: hidden;
  }
}

/* Home runtime: mobile product cards must keep the mockup geometry. */
@media (max-width: 479px) {
  body[data-page-type='home'] .bento {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
}

@media (min-width: 480px) and (max-width: 1023px) {
  body[data-page-type='home'] .bento {
    grid-template-rows: auto;
  }
}

@media (max-width: 767px) {
  body[data-page-type='home'] .hero-cards {
    align-items: center;
  }

  body[data-page-type='home'] .hero-slider {
    margin-right: auto;
    margin-left: auto;
  }

  body[data-page-type='home'] .bento-featured__name,
  body[data-page-type='home'] .bento .prod-card__name,
  body[data-page-type='home'] .arrivals-grid .prod-card__name {
    display: block;
    min-height: 0;
    margin-block: 0;
    padding-block: 0;
  }

  body[data-page-type='home'] .bento-featured__cat,
  body[data-page-type='home'] .bento .prod-card__cat,
  body[data-page-type='home'] .arrivals-grid .prod-card__cat {
    align-self: flex-start;
    min-height: 0;
  }

  body[data-page-type='home'] .bento .prod-card__body,
  body[data-page-type='home'] .arrivals-grid .prod-card__body {
    padding: 12px;
  }

  body[data-page-type='home'] .bento-featured .cart-action .btn,
  body[data-page-type='home'] .bento .prod-card .cart-action .btn,
  body[data-page-type='home'] .arrivals-grid .prod-card .cart-action .btn {
    min-height: 44px;
  }
}
