/* Home + Labs shop layout and product photo sizing */

.home-labs-section {
  background: var(--bg-alt);
}

.home-labs-promo {
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 1.5rem;
  max-width: 720px;
  padding: 1.25rem 1.5rem;
}

.home-labs-photo {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-labs-photo img {
  width: auto;
  height: auto;
  max-width: 180px;
  max-height: 150px;
  object-fit: contain;
  display: block;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  padding: 0.5rem;
}

.home-labs-copy {
  min-width: 0;
}

.labs-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
  justify-content: center;
  gap: 1.25rem;
  max-width: 860px;
  margin: 2rem auto 1.5rem;
}

.labs-catalog-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 1rem 1.5rem;
}

.labs-catalog-card h3 {
  font-size: 1.0625rem;
  line-height: 1.35;
  margin-bottom: 0;
}

.labs-catalog-photo {
  width: auto;
  height: auto;
  max-width: 130px;
  max-height: 130px;
  object-fit: contain;
  display: block;
  margin: 0 auto 0.75rem;
  border-radius: var(--radius);
  background: #fff;
  padding: 0.5rem;
}

.labs-catalog-coming {
  min-height: auto;
}

.shop-hero-catalog {
  padding-bottom: 2.5rem;
}

.shop-tier-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.shop-tier-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ai-blue);
  background: rgba(59, 130, 246, 0.08);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.shop-tier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 920px;
  margin: 0 auto;
}

.shop-tier-price .price-amount {
  font-size: 2.25rem;
}

.shop-tier-list {
  margin: 0 0 1.25rem 1.15rem;
  color: var(--grey);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.btn-venmo {
  background: #008cff;
  border-color: #008cff;
  color: #fff;
}

.btn-venmo:hover,
.btn-venmo:focus-visible {
  background: #0074d4;
  border-color: #0074d4;
  color: #fff;
}

.shop-tier-cta {
  width: 100%;
}

.margin-example {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.margin-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  text-align: center;
  font-size: 0.9375rem;
  padding: 0.5rem 0;
}

.margin-row-header {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--grey);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.25rem;
  padding-bottom: 0.5rem;
}

.margin-highlight {
  font-weight: 700;
  color: var(--ai-blue);
  font-size: 1.125rem;
}

.margin-footnote {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--grey);
  line-height: 1.55;
  text-align: center;
}

@media (max-width: 768px) {
  .home-labs-promo {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .home-labs-copy .btn {
    width: 100%;
    max-width: 240px;
  }

  .labs-catalog-grid {
    grid-template-columns: minmax(0, 280px);
    margin-left: auto;
    margin-right: auto;
  }

  .shop-tier-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 960px) {
  .labs-catalog-coming {
    grid-column: 1 / -1;
    max-width: 280px;
    margin: 0 auto;
    width: 100%;
  }
}

/* ── Mobile / QR scan landing ── */
@media (max-width: 768px) {
  .shop-hero {
    padding-top: 5.25rem;
    padding-bottom: 2rem;
  }

  .shop-hero-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .shop-hero-lead {
    font-size: 1rem;
    line-height: 1.65;
  }

  .shop-jump-links {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
  }

  .shop-jump-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.95rem;
    font-size: 0.875rem;
  }

  .labs-mix-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .labs-mix-banner .btn {
    width: 100%;
    min-height: 48px;
    font-size: 1rem;
  }

  .labs-catalog-grid {
    grid-template-columns: 1fr;
    max-width: none;
    width: 100%;
  }

  .labs-catalog-card {
    width: 100%;
    max-width: none;
  }

  .labs-product-page {
    padding: 5rem 0 2.5rem;
  }

  .labs-product-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Buy box above photo on phones (QR flow) */
  .labs-product-buy {
    order: -1;
  }

  .labs-product-buy.card {
    padding: 1.25rem;
  }

  .labs-product-photo-wrap img {
    max-width: 200px;
    max-height: 200px;
    margin: 0 auto;
  }

  .labs-product-buy .btn-commerce,
  .labs-product-alt-offer .btn {
    width: 100%;
    max-width: none;
    min-height: 48px;
    font-size: 1rem;
  }

  .labs-product-price .price-amount {
    font-size: 2rem;
  }

  .narrow-prose p {
    font-size: 1rem;
  }

  .shop-tier-cta {
    min-height: 48px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .labs-breadcrumb {
    font-size: 0.8125rem;
    margin-bottom: 1rem;
  }

  .home-labs-copy .btn {
    max-width: none;
    width: 100%;
    min-height: 48px;
  }
}
