/* ==========================================================================
   Single product page — mobile refinements (phones only, 767px and below)
   Loaded after devhub-single.css. Visual/layout only: no markup or behaviour
   changes. Target: iPhone SE (375 x 667), fluid down to 360 and up to 390.
   Note: the root font-size is fluid (about 8.8px at 375px), so sizes here are
   in px on purpose to keep text readable.
   ========================================================================== */

@media (max-width: 767px) {
  /* ── Rhythm ───────────────────────────────────────────────────────────── */
  .devhub-single__layout {
    gap: 16px;
  }

  /* ── Gallery: shorter, so title and price show on the first screen ────── */
  .devhub-single__main-image {
    aspect-ratio: 4 / 3;
    max-height: 260px;
  }

  .devhub-single__main-image img {
    padding: 8px;
  }

  .devhub-single__thumbnails {
    gap: 8px;
    margin-top: 10px;
  }

  .devhub-single__thumb {
    width: 56px;
    height: 56px;
    padding: 4px;
    border-radius: 10px;
  }

  /* ── Title ────────────────────────────────────────────────────────────── */
  .devhub-single__title {
    font-size: 22px;
    line-height: 1.25;
    margin-bottom: 8px;
  }

  /* ── Option pickers: 44px tap targets ─────────────────────────────────── */
  .devhub-single__color-swatches,
  .devhub-single__storage-options {
    gap: 10px;
    padding: 4px 2px 6px;
    scroll-snap-type: x proximity;
  }

  .devhub-single__color-swatch {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    scroll-snap-align: start;
  }

  .devhub-single__storage-btn {
    min-height: 44px;
    min-width: 80px;
    padding: 10px 18px;
    font-size: 15px;
    scroll-snap-align: start;
  }
}

/* ── Bundle packages: smaller cards on phones (same design, less size) ───── */
@media (max-width: 767px) {
  .devhub-single__bundles {
    margin-bottom: 16px;
  }

  .devhub-single__bundle-help {
    font-size: 13px;
    margin: 2px 0 8px;
  }

  .devhub-single__bundles-track {
    gap: 8px;
  }

  .devhub-single__bundle-card {
    min-height: 0;
    padding: 10px;
    border-radius: 10px;
  }

  .devhub-single__bundle-top {
    gap: 8px;
    margin-bottom: 6px;
  }

  .devhub-single__bundle-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
  }

  .devhub-single__bundle-icon .fas {
    font-size: 12px;
  }

  .devhub-single__bundle-name {
    font-size: 14px;
    line-height: 1.3;
    min-height: calc(14px * 1.3 * 2);
  }

  .devhub-single__bundle-meta {
    margin-bottom: 6px;
    padding-bottom: 6px;
  }

  .devhub-single__bundle-desc {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 4px;
    -webkit-line-clamp: 2;
  }

  .devhub-single__bundle-meta-key,
  .devhub-single__bundle-meta-val,
  .devhub-single__bundle-plan-label,
  .devhub-single__bundle-link {
    font-size: 12px;
  }

  .devhub-single__bundle-price {
    font-size: 14px;
  }

  .devhub-single__bundle-card--active::after {
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    font-size: 12px;
  }
}
