/* Keep the document itself fixed to the viewport while preserving intentional carousels. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

/* The SEO footer is a direct body child, so negative page-gutter margins widen the document. */
.seo-footer {
  margin-inline: 0;
}

.bag-drawer {
  max-width: 100vw;
  overflow-x: hidden;
}

.whatsapp-float {
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  max-width: calc(100vw - 28px);
}

.whatsapp-float span {
  flex: 0 0 30px;
  font-size: 0;
}

.whatsapp-float svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (max-width: 700px) {
  .product-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 12px;
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    padding-right: 0;
    overflow: visible;
    scroll-snap-type: none;
    overscroll-behavior: auto;
  }

  .product-rail .product {
    min-width: 0;
    scroll-snap-align: none;
  }

  .product-rail .product-info {
    display: block;
    padding-top: 14px;
  }

  .product-rail .product-info h3 {
    min-height: 44px;
    font-size: 13px;
    line-height: 1.55;
  }

  .product-rail .product-info p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-rail .product-buy {
    justify-content: space-between;
    margin-top: 12px;
  }

  .product-rail .product-buy strong {
    font-size: 13px;
  }

  .catalog-grid {
    max-width: 100%;
    overscroll-behavior-inline: contain;
  }

  .whatsapp-float {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    border-color: #fff;
    box-shadow: 0 10px 28px #0003;
  }

  .whatsapp-float span {
    width: auto;
    height: auto;
    flex-basis: auto;
    background: transparent;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}
