@media (min-width: 721px) and (max-width: 1100px) {
  .site-header .header-row > .menu-toggle {
    order: -1;
    margin-inline: 0;
  }

  .home-discovery .home-picks-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(6px, 1.2vw, 12px);
  }

  .home-discovery .home-pick-photo {
    inline-size: min(100%, clamp(68px, 10vw, 108px));
  }
}

@media (max-width: 720px) {
  body.trast-modern .product-card--modern .product-card__visual {
    container-type: inline-size;
    container-name: trast-card-visual;
    --card-buy-height: 40px;
  }

  body.trast-modern .product-card--modern .product-card__visual > .product-card__quick-buy button {
    height: var(--card-buy-height);
    min-height: var(--card-buy-height);
  }

  body.trast-modern .product-card--modern .product-card__visual > .product-card__tools {
    /* Fit three touch targets into the image area above the purchase strip. */
    --card-tool-size: clamp(28px, calc((103cqw - var(--card-buy-height) - 19px) / 3), 38px);
    grid-template-columns: var(--card-tool-size);
    grid-auto-rows: var(--card-tool-size);
    gap: 0 !important;
    padding: 2px !important;
    border-radius: 10px;
    box-shadow: none;
  }

  body.trast-modern .product-card--modern .product-card__visual > .product-card__tools > form,
  body.trast-modern .product-card--modern .product-card__visual > .product-card__tools :is(.product-card__tool, .heart-container) {
    width: var(--card-tool-size) !important;
    height: var(--card-tool-size) !important;
    min-width: var(--card-tool-size) !important;
    min-height: var(--card-tool-size) !important;
  }

  body.trast-modern .shop-section .product-card--modern .product-card__tools > [data-quick-view] {
    display: grid !important;
  }
  body.trast-modern .shop-section .product-card--modern .product-card__tools > .product-card__compare {
    display: block !important;
  }

  body.trast-modern .product-card--modern .product-card__visual > .product-card__tools .product-card__tool > .ui-icon,
  body.trast-modern .product-card--modern .product-card__visual > .product-card__tools .heart-container :is(.svg-container, svg:not(.svg-celebrate)) {
    width: 17px !important;
    height: 17px !important;
  }

  @container trast-card-visual (max-width: 140px) {
    body.trast-modern .product-card--modern .product-card__visual > .product-card__tools {
      grid-auto-flow: column;
      grid-auto-columns: var(--card-tool-size);
    }

    body.trast-modern .product-card--modern .product-card__visual:has(> .product-card__quick-buy) > .product-card__tools {
      inset-block-start: auto !important;
      inset-block-end: calc(var(--card-buy-height) + 6px) !important;
    }
  }
}

@media (max-width: 400px) {
  body.trast-modern .product-card--modern .product-card__visual {
    --card-buy-height: 36px;
  }
}
