/* Dense browsing cards. Full galleries, descriptions and buying controls remain
   in the item dialog; size charts also keep their direct catalog shortcut. */
.shop-grid,
.outfit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 10px;
  align-items: stretch;
}
.shop-grid .shop-card { transform: none; }
.shop-grid .shop-card .shop-card__image {
  width: 100%;
  height: auto !important;
  min-height: 0;
  aspect-ratio: 1 / 1 !important;
  background: #151515;
}
.shop-grid .shop-card .shop-card__image img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}
.shop-grid .shop-card > .product-views,
.shop-grid .shop-card > .model-build-controls,
.shop-grid .shop-card__image > span,
.shop-grid .shop-card__image > [data-quick-open],
.shop-grid .shop-card__mode,
.shop-grid .shop-card__fit,
.shop-grid .model-caption,
.shop-grid .shop-card__description,
.shop-grid .shop-card__color,
.shop-grid .shop-card__body > .youth-size-note,
.shop-grid .shop-card__actions { display: none !important; }
.shop-grid .shop-card__body { padding: 8px; gap: 4px; }
.shop-grid .shop-card h4 {
  min-height: 2.6em;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.shop-grid .shop-card h4 button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  text-transform: inherit;
  cursor: pointer;
}
.shop-grid .shop-card .product-price { font-size: 16px; line-height: 1.3; }
.shop-grid .product-price > span { font-size: 10px; }
.shop-grid .shop-card .swatch-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  height: 36px;
  min-height: 36px;
  padding: 2px;
  margin: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}
.shop-grid .shop-card .color-swatch.colorway-option {
  width: 30px;
  height: 30px;
  min-height: 30px;
  flex: 0 0 30px;
  padding: 2px;
  gap: 0;
  border-radius: 4px;
}
.shop-grid .shop-card .colorway-option img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}
.shop-grid .shop-card .colorway-option span { display: none; }
.shop-grid .shop-card__browse { display: flex; gap: 4px; margin-top: auto; }
.shop-grid .shop-card__browse button {
  min-width: 0;
  min-height: 32px;
  flex: 1;
  padding: 4px 0;
  margin: 0;
  border: 0;
  background: none;
  color: var(--gold-soft);
  font: inherit;
  font-size: 12px;
  line-height: 1.3;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
}
.shop-grid .shop-card__browse .size-guide-link { text-align: right; align-self: auto; }
.shop-grid button:focus-visible,
.shop-grid [data-card-image]:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: -2px;
}

/* Sets use the same compact overview, with the complete pair and price visible.
   Native details keeps all color, size and add-to-bag controls reachable. */
.outfit-grid { align-items: start; }
.outfit-card { min-width: 0; display: flex; flex-direction: column; border-radius: 6px; }
.outfit-card .outfit-hero,
.outfit-card .outfit-hero.outfit-image,
.outfit-card .outfit-hero.outfit-image[data-model-image="true"] {
  order: -3;
  width: 100%;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  margin: 0;
  border-radius: 0;
  background: #151515 !important;
}
.outfit-card .outfit-hero.outfit-image img,
.outfit-card .outfit-hero.outfit-image[data-model-image="true"] img {
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}
.outfit-card .outfit-three-d { align-items: stretch; grid-template-rows: minmax(0, 1fr); }
.outfit-card .outfit-three-d figure { width: 100%; min-width: 0; min-height: 0; }
.outfit-card .outfit-three-d img { flex: 1; min-height: 0; height: 0 !important; aspect-ratio: auto !important; }
.outfit-card .outfit-three-d figcaption { font-size: 10px; line-height: 1.25; padding: 3px 4px 6px; }
.outfit-card .outfit-view-controls { order: -2; gap: 4px; padding: 4px 6px; }
.outfit-card .outfit-view-controls button { min-width: 0; min-height: 30px; padding: 4px 2px; font-size: 11px; }
.outfit-card__heading { padding: 6px 8px 0; }
.outfit-card__heading > p { display: none; }
.outfit-card__heading h3 { font-size: 14px; line-height: 1.3; margin: 0; min-height: 2.6em; overflow-wrap: anywhere; }
.outfit-card__price { margin: 5px 8px 7px; line-height: 1.3; }
.outfit-card__price strong { font-size: 16px; color: var(--gold-soft); }
.outfit-card__price del { margin-left: 6px; font-size: 11px; color: var(--muted); }
.outfit-card__price > span { display: block; font-size: 11px; margin-top: 2px; }
.outfit-options { border-top: 1px solid var(--line); }
.outfit-options > summary { min-height: 40px; padding: 10px 8px; color: var(--gold-soft); font-size: 12px; cursor: pointer; }
.outfit-options__note { padding: 0 8px; font-size: 12px; line-height: 1.4; }
.outfit-options .outfit-pieces { grid-template-columns: 1fr; padding: 0 8px; gap: 8px; }
.outfit-options .outfit-pieces > button { padding: 8px; }
.outfit-options .outfit-pieces strong { font-size: 13px; }
.outfit-options .outfit-pieces span { font-size: 12px; }
.outfit-options .outfit-card__footer { padding: 10px 8px; margin-top: 10px; flex-direction: column; gap: 10px; align-items: stretch; }
.outfit-options .outfit-card__footer p { text-align: left; }
.outfit-options .outfit-card__footer p strong { font-size: 18px; }
.outfit-options .outfit-size-row { grid-template-columns: 1fr; padding: 0 8px 10px; }
.outfit-options label { font-size: 12px; }
.outfit-options select { min-width: 0; max-width: 100%; font-size: 16px; }

/* Collection and featured-product tiles stay in pairs even on small phones. */
.homepage .collection-links,
.homepage .essential-grid,
.homepage #pump-cover-fleece-set .essential-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
.homepage #pump-cover-fleece-set .essential-grid { max-width: 640px; margin-inline: auto; }
.homepage .collection-links img,
.homepage .launch-essentials .essential-card img,
.homepage #pump-cover-fleece-set .essential-card img {
  height: clamp(140px, calc((100vw - 38px) / 2), 280px) !important;
  max-height: 280px !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}
.homepage .collection-links > a > div { padding: 10px; }
.homepage .collection-links h3 { font-size: 16px; margin: 0 0 5px; }
.homepage .collection-links p { font-size: 12px; line-height: 1.4; margin: 0 0 6px; }
.homepage .collection-links span { font-size: 12px; }
.homepage .launch-essentials .essential-card__body { padding: 8px; gap: 4px; }
.homepage .launch-essentials .essential-card__body strong { font-size: 14px; line-height: 1.3; min-height: 2.6em; }
.homepage .launch-essentials .essential-card__body > span { font-size: 13px; }
.homepage .launch-essentials .essential-card__action { font-size: 12px; }

@media (min-width: 700px) {
  .shop-grid, .outfit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 14px; }
  .shop-grid .shop-card .shop-card__image,
  .outfit-card .outfit-hero,
  .outfit-card .outfit-hero.outfit-image,
  .outfit-card .outfit-hero.outfit-image[data-model-image="true"] { aspect-ratio: 4 / 5 !important; }
  .shop-grid .shop-card h4, .outfit-card__heading h3 { font-size: 16px; }
  .shop-grid .shop-card__body { padding: 10px; }
  .homepage .collection-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .homepage .essential-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1050px) {
  .shop-grid, .outfit-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1360px) {
  .shop-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 699px) {
  .store-page .collection.shell, .store-page .outfits.shell,
  .homepage .shop-directory.shell, .homepage .launch-essentials.shell { width: calc(100% - 24px); }
  .store-page main { padding-top: 16px; }
  .store-page .page-intro { margin-bottom: 20px; padding-top: 0; }
  .page-intro nav { margin-bottom: 14px; }
  .page-intro h1 { margin: 8px 0 12px; }
  .catalog-controls { margin-bottom: 16px; }
  .homepage .shop-directory { padding-block: 32px; }
  .homepage .launch-essentials { padding-bottom: 32px; }
}
