/* STAGING ONLY: evita que el resumen del carrito se superponga a los productos. */
@media (max-width: 1180px) {
  .store-shell .cart-page {
    box-sizing: border-box;
    width: 100%;
    overflow-x: clip;
    padding: 36px clamp(18px, 5vw, 38px);
  }

  .store-shell .cart-page-heading,
  .store-shell .cart-layout {
    box-sizing: border-box;
    width: 100%;
    max-width: 760px;
  }

  .store-shell .cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start;
    gap: 22px;
  }

  .store-shell .cart-items,
  .store-shell .cart-summary {
    box-sizing: border-box;
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .store-shell .cart-summary {
    position: static !important;
  }

  .store-shell .cart-line {
    box-sizing: border-box;
    grid-template-columns: 96px minmax(0, 1fr) !important;
    width: 100%;
    min-width: 0;
    gap: 14px;
    padding: 18px;
  }

  .store-shell .cart-line-copy {
    min-width: 0;
  }

  .store-shell .cart-line-copy > a {
    overflow-wrap: anywhere;
  }

  .store-shell .cart-quantity {
    grid-area: 2 / 2;
    width: max-content;
  }

  .store-shell .cart-line > strong {
    grid-area: 3 / 2;
    justify-self: start;
    white-space: nowrap;
  }

  .store-shell .cart-line .cart-remove {
    grid-area: 3 / 2;
    justify-self: end;
  }
}

@media (max-width: 560px) {
  .store-shell .cart-page {
    padding: 28px 18px 36px;
  }

  .store-shell .cart-page-heading {
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
  }

  .store-shell .cart-page-heading h1 {
    font-size: clamp(30px, 9vw, 40px);
    line-height: 1.08;
  }

  .store-shell .cart-line {
    grid-template-columns: 74px minmax(0, 1fr) !important;
    gap: 12px;
    padding: 14px;
  }

  .store-shell .cart-line .product-image {
    height: 74px;
  }

  .store-shell .cart-quantity {
    grid-column: 1 / -1;
    width: max-content;
  }

  .store-shell .cart-line > strong {
    grid-area: auto;
    grid-column: 1 / -1;
    justify-self: start;
  }

  .store-shell .cart-line .cart-remove {
    grid-area: auto;
    grid-column: 2;
    justify-self: end;
  }

  .store-shell .cart-summary {
    padding: 22px 20px;
  }

  .store-shell .cart-coupon > div {
    align-items: stretch;
    flex-direction: column;
  }

  .store-shell .cart-coupon input,
  .store-shell .cart-coupon button {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
  }
}
