/* Product-page intro only; listings and desktop layouts keep their own styles. */
@media (max-width: 640px) {
  .aq-item > .aq-crumbs {
    padding: 16px 0 6px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .aq-item > .aq-hero {
    padding: 12px 0 36px;
  }

  .aq-item .aq-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "badge"
      "title"
      "image"
      "price"
      "actions"
      "lead"
      "specs";
    gap: 12px;
    align-items: start;
  }

  /* The existing anonymous text wrapper has no semantic role. Flatten only
     its layout so the heading can precede the image without duplicating it. */
  .aq-item .aq-hero-grid > div:not(.aq-img) {
    display: contents;
  }

  .aq-item .aq-hero-grid .aq-badge {
    grid-area: badge;
    justify-self: start;
    max-width: 100%;
    margin: 0;
    padding: 6px 10px;
    font-size: 0.8125rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .aq-item .aq-hero-grid h1 {
    grid-area: title;
    min-width: 0;
    margin: 0;
    font-size: clamp(1.75rem, 7vw, 2rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .aq-item .aq-hero-grid > .aq-img {
    grid-area: image;
    min-width: 0;
    min-height: 0;
    height: 180px;
    padding: 12px;
    border-radius: 20px;
  }

  .aq-item .aq-hero-grid > .aq-img img {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .aq-item .aq-hero-grid .aq-price {
    grid-area: price;
    min-width: 0;
    margin: 0;
    padding: 14px 16px;
    border-radius: 16px;
  }

  .aq-item .aq-hero-grid .aq-price small {
    font-size: 0.875rem;
    line-height: 1.4;
  }

  .aq-item .aq-hero-grid .aq-price strong {
    font-size: 1.875rem;
    line-height: 1.2;
  }

  .aq-item .aq-hero-grid .aq-price p {
    margin-top: 6px;
    font-size: 0.875rem;
    line-height: 1.4;
  }

  .aq-item .aq-hero-grid .aq-actions {
    grid-area: actions;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
  }

  .aq-item .aq-hero-grid .aq-actions .aq-btn {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 14px 16px;
    font-size: 1rem;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .aq-item .aq-hero-grid .aq-lead {
    grid-area: lead;
    min-width: 0;
    margin: 4px 0 0;
    font-size: 1rem;
    line-height: 1.55;
  }

  .aq-item .aq-hero-grid .aq-fast {
    grid-area: specs;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
  }

  .aq-item .aq-hero-grid .aq-fast > div {
    min-width: 0;
    padding: 12px;
    overflow-wrap: anywhere;
  }

  .aq-item .aq-hero-grid .aq-fast strong {
    font-size: 1rem;
    line-height: 1.35;
  }

  .aq-item .aq-hero-grid .aq-fast span {
    font-size: 0.875rem;
    line-height: 1.4;
  }
}
