/* MatchUp shop pages: /shop and every /shop/<shoe> page.
   Follows the site's existing look: Inter, IBM Plex Mono labels, slate inks,
   1px hairlines, square corners, white and #F1F5F9 sections. */

.shop-wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); box-sizing: border-box; }
.shop-sec { padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 4vw, 2.5rem); }
.shop-sec > .shop-wrap { padding: 0; }
.shop-gray { background: #F1F5F9; }

.shop-label { margin: 0; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: #64748B; }
.shop-h1 { margin: 1.25rem 0 0; font-size: clamp(2.25rem, 6vw, 4.5rem); font-weight: 800; color: #0F172A; letter-spacing: -0.02em; line-height: 1.03; }
.shop-h2 { margin: 0; font-size: clamp(1.625rem, 3.4vw, 2.25rem); font-weight: 800; color: #0F172A; letter-spacing: -0.02em; line-height: 1.12; }
.shop-lead { margin: 1.25rem 0 0; font-size: 1.0625rem; line-height: 1.6; color: #64748B; max-width: 54ch; }
.shop-note { margin: 0.75rem 0 0; font-size: 0.875rem; line-height: 1.6; color: #64748B; }

/* ---- /shop: shoe list ---- */
.shop-grid { margin-top: clamp(1.75rem, 4vw, 2.75rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(0.75rem, 2vw, 1.5rem); }
/* Two per row on phones and tablets, three per row on desktops */
@media (min-width: 1024px) { .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.shop-card { display: block; border: 1px solid #E2E8F0; background: #FFFFFF; text-decoration: none; transition: border-color 120ms ease; }
.shop-card:hover { border-color: #334155; }
.shop-card-photo { aspect-ratio: 1 / 1; background: #FFFFFF; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.shop-card-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.shop-card-text { padding: 0.875rem 1rem 1.125rem; border-top: 1px solid #E2E8F0; }
.shop-card-text .shop-label { font-size: 10px; }
.shop-card-name { margin: 0.375rem 0 0; font-size: 1rem; font-weight: 800; color: #0F172A; letter-spacing: -0.01em; line-height: 1.3; }
.shop-empty { margin-top: 1.5rem; font-size: 1rem; line-height: 1.6; color: #64748B; }

/* ---- /shop: the four fitting steps, one compact row in the intro ---- */
.shop-steps-mini { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem 1.5rem; max-width: 46rem; }
@media (min-width: 720px) { .shop-steps-mini { grid-template-columns: repeat(4, auto); justify-content: start; gap: 0 2rem; } }
.shop-steps-mini li { font-size: 0.9375rem; line-height: 1.4; font-weight: 500; color: #334155; }
.shop-steps-mini span { display: block; margin-bottom: 0.25rem; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; color: #94A3B8; }

/* ---- /shop: what the fitting shows you ---- */
/* Phone: a swipe carousel, the same as the scan steps on the How it works page
   (cards 76% of the screen wide, centered, with the next card peeking in).
   Tablet and desktop: three across. */
.shop-shows { margin: clamp(1.75rem, 4vw, 2.75rem) calc(-1 * clamp(1.25rem, 4vw, 2.5rem)) 0; display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 0 12vw; }
.shop-shows::-webkit-scrollbar { display: none; }
.shop-show { flex: 0 0 76vw; scroll-snap-align: center; }
@media (min-width: 720px) {
  .shop-shows { margin: clamp(1.75rem, 4vw, 2.75rem) 0 0; padding: 0; overflow: visible; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
  .shop-show { flex: none; }
}
.shop-show-img { border: 1px solid #E2E8F0; background: #FFFFFF; aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 1rem; box-sizing: border-box; }
.shop-show-img img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.shop-show h3 { margin: 1rem 0 0; font-size: 1.125rem; font-weight: 800; color: #0F172A; letter-spacing: -0.01em; }
.shop-show p { margin: 0.5rem 0 0; font-size: 0.9375rem; line-height: 1.6; color: #64748B; }

/* ---- Shoe page: top ---- */
.shoe-crumb { margin: 0; padding-top: 1.25rem; font-size: 0.875rem; color: #64748B; }
.shoe-crumb a { color: #334155; font-weight: 500; text-decoration: none; }
.shoe-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; padding: 1.5rem 0 clamp(2.5rem, 6vw, 4rem); }
@media (min-width: 720px) { .shoe-top { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; } }
.shoe-name { margin: 0.5rem 0 0; font-size: clamp(1.625rem, 3.4vw, 2.25rem); font-weight: 800; color: #0F172A; letter-spacing: -0.02em; line-height: 1.12; } /* same size as the section headings */
.shoe-fit { margin-top: 1.5rem; padding: 1.25rem; border: 1px solid #E2E8F0; background: #FFFFFF; }
.shoe-fit p { margin: 0.75rem 0 0; font-size: 0.875rem; line-height: 1.6; color: #64748B; }
.shoe-fit .shoe-fit-note { margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid #E2E8F0; font-size: 0.8125rem; }
/* Phone: name and Get fitted sit above the photos. Tablet and desktop: beside them. */
.shoe-head-phone { display: block; }
.shoe-head-wide { display: none; }
@media (min-width: 720px) { .shoe-head-phone { display: none; } .shoe-head-wide { display: block; } }

.shoe-buy { margin-top: 1.75rem; }
.shoe-buy-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.625rem; padding: 1rem 1.125rem; background: #FFFFFF; border: 1.5px solid #CBD5E1; border-radius: 2px; font-size: 1rem; font-weight: 500; color: #0F172A; text-decoration: none; transition: border-color 120ms ease; }
.shoe-buy-row:hover { border-color: #334155; color: #0F172A; }
.shoe-buy-row span { font-size: 0.8125rem; font-weight: 400; color: #64748B; }
.shoe-disclosure { margin: 0.875rem 0 0; font-size: 0.8125rem; line-height: 1.5; color: #64748B; }

/* ---- Shoe page: photo gallery ---- */
.shoe-gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: #FFFFFF; border: 1px solid #E2E8F0; }
.shoe-gallery-track::-webkit-scrollbar { display: none; }
.shoe-gallery-track img { flex: 0 0 100%; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; scroll-snap-align: start; display: block; }
.shoe-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.875rem; }
.shoe-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: #CBD5E1; cursor: pointer; }
.shoe-dots button[aria-current="true"] { background: #334155; }
.shoe-thumbs { display: none; gap: 0.625rem; margin-top: 0.75rem; flex-wrap: wrap; }
.shoe-thumbs button { width: 84px; height: 84px; padding: 0; border: 1px solid #E2E8F0; background: #FFFFFF; cursor: pointer; }
.shoe-thumbs button[aria-current="true"] { border: 1.5px solid #334155; }
.shoe-thumbs img { display: block; width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 1024px) {
  .shoe-dots { display: none; }
  .shoe-thumbs { display: flex; }
  .shoe-gallery-track { overflow: hidden; }
}
.shoe-gallery.single .shoe-dots, .shoe-gallery.single .shoe-thumbs { display: none; }

/* ---- Shoe page: write-up and specs ---- */
.shoe-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 1024px) {
  .shoe-body { grid-template-columns: minmax(0, 1fr) 300px; }
  .shoe-specs-col { order: 2; position: sticky; top: 2rem; align-self: start; }
  .shoe-article { order: 1; }
}
.shoe-specs { margin-top: 1.25rem; border-top: 1px solid #E2E8F0; }
.shoe-specs div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.875rem 0; border-bottom: 1px solid #E2E8F0; font-size: 0.9375rem; }
.shoe-specs dt { color: #64748B; }
.shoe-specs dd { margin: 0; font-weight: 500; color: #0F172A; text-align: right; }

.shoe-article { max-width: 68ch; }
.shoe-article h2 { margin: 3rem 0 0; font-size: clamp(1.625rem, 3.4vw, 2.25rem); font-weight: 800; color: #0F172A; letter-spacing: -0.02em; line-height: 1.12; }
.shoe-article h2:first-child { margin-top: 0; }
.shoe-article h3 { margin: 2.25rem 0 0; font-size: 1.25rem; font-weight: 800; color: #0F172A; letter-spacing: -0.01em; line-height: 1.25; }
.shoe-article p, .shoe-article li { font-size: 1.0625rem; line-height: 1.65; color: #334155; }
.shoe-article p { margin: 1rem 0 0; }
.shoe-article ul, .shoe-article ol { margin: 1rem 0 0; padding-left: 1.25rem; }
.shoe-article a { color: #334155; text-decoration: underline; }
.shoe-article figure { margin: 1.75rem 0 0; }
.shoe-article figure img { display: block; width: 100%; height: auto; border: 1px solid #E2E8F0; background: #FFFFFF; }
.shoe-article figcaption { margin: 0.625rem 0 0; font-size: 0.875rem; line-height: 1.5; color: #64748B; }
/* Several images side by side: two per row on phones, up to three per row on wider screens */
.shoe-figs { margin-top: 1.75rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.shoe-figs figure { margin: 0; }
@media (min-width: 720px) { .shoe-figs-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
