/* Alhamd improvements (Oct 2026): kids-first, phone home page, size guide, image sizing.
   Loaded after the main stylesheet. Remove the <link> in index.html to switch these styles off. */
:where(img[width][height]) { max-width: 100%; height: auto; }

.featured__head { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 1.2rem; }
.featured__head .eyebrow { flex-basis: 100%; }
.featured__head h2 { margin-bottom: 0; }
.featured__all {
  display: inline-flex; align-items: center; gap: 0.35rem; margin-left: auto;
  font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep);
}
.featured__all .icon { width: 1rem; height: 1rem; }
.featured__all:hover { color: var(--ink); }

.size-guide { margin: 0.9rem 0 0; max-width: 26rem; border: 1px solid var(--line); background: var(--surface, transparent); }
.size-guide summary {
  cursor: pointer; padding: 0.65rem 0.85rem; font-size: 0.74rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold-deep); list-style-position: inside;
}
.size-guide[open] summary { border-bottom: 1px solid var(--line); }
.size-guide p { margin: 0.7rem 0.85rem; color: var(--ink-soft); font-size: 0.92rem; }
.size-guide table { width: calc(100% - 1.7rem); margin: 0 0.85rem; border-collapse: collapse; font-size: 0.92rem; }
.size-guide th, .size-guide td { text-align: left; padding: 0.38rem 0; border-bottom: 1px solid var(--line); }
.size-guide th { font-weight: 600; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.size-guide__note a { text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 900px) {
  .hero-stage { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { order: -1; }
  .split { grid-template-columns: 1fr; }
}

/* Phones: short hero, then products straight away (2 per row). */
@media (max-width: 640px) {
  .page--home { display: flex; flex-direction: column; padding-top: 1.6rem; }
  .page--home .hero-stage { order: 0; padding-top: 0; padding-bottom: 0; gap: 0; }
  .page--home .hero-mosaic { display: none; }
  .page--home .hero-copy .eyebrow { margin-bottom: 0.5rem; }
  .page--home .hero-copy h1 { font-size: 2.35rem; line-height: 1.05; margin-bottom: 0.6rem; }
  .page--home .hero-copy .lede { font-size: 0.98rem; }
  .page--home .hero__actions { margin-top: 1rem; }
  .page--home .featured { order: 1; margin-top: 2rem; }
  .page--home .shop-lanes { order: 2; }
  .page--home .split { order: 3; margin-top: 2.6rem; }
  .page--home .cta { order: 4; margin-top: 2.6rem; }
  .featured__grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .product-card { padding: 0.4rem 0.4rem 0.75rem; }
  .product-card__meta { padding-top: 0.6rem; }
  .product-card__meta h2 { font-size: 1.12rem; }
  .product-card__sku { font-size: 0.62rem; letter-spacing: 0.1em; }
  .product-card__foot { gap: 0.4rem; margin-top: 0.4rem; }
  .product-card__view { font-size: 0.66rem; }
  .product-card__sizes span:not(.visually-hidden) { font-size: 0.62rem; padding: 0.08rem 0.3rem; }
  .shop-page .shop-head { margin-bottom: 1rem; }
}

/* Headings on the dark panels were dark-on-dark (invisible). */
.split__panel--ink h2, .cta h2 { color: var(--on-ink); }

/* Product page: grid items default to min-width:auto, so the photo strip (5 thumbnails) made the
   page ~429px wide on a 390px phone. Let the columns shrink; the thumbnail strip scrolls inside itself. */
.product-layout > * { min-width: 0; }
/* Photo swipe: with the default touch-action the browser cancelled the pointer on a sideways swipe
   (pointercancel), so swiping never changed the photo. pan-y keeps vertical page scrolling. */
.product-hero-img { touch-action: pan-y; }
