/* Shared two-column product browsing, including narrow phone screens. */
body :is(#sjProducts, #liveWheelGrid, #liveTireGrid, #grid.grid, .product-grid, .accessory-category-grid) {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px;
}
body :is(#tireRail, #tireModelRail) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  overflow: visible;
  scroll-snap-type: none;
  padding: 4px 0 20px;
}
body :is(.rail-buttons, .tire-slider-controls) { display: none; }
body :is(#sjProducts, #liveWheelGrid, #liveTireGrid, #grid.grid, .product-grid, #tireRail, #tireModelRail) > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}
body :is(#sjProducts, #grid.grid) > .card { display: flex; flex-direction: column; }
body :is(#sjProducts, #grid.grid) .price { margin-top: auto; padding-top: 14px; }
body :is(#sjProducts, #grid.grid) .meta { flex-wrap: wrap; }
body #liveWheelGrid .wheel-title-row-v3 { grid-template-columns: minmax(0, 1fr); }
body #liveWheelGrid .wheel-title-row-v3 .live-price { text-align: left; white-space: normal; }
body :is(#tireRail, #tireModelRail) > button { width: 100%; margin: 0; }
body :is(#tireRail, #tireModelRail) :is(.product-shot, .tire-model-image) {
  height: auto; aspect-ratio: 1;
}
body :is(#tireRail, #tireModelRail) :is(.product-shot, .tire-model-image) img {
  width: 100%; height: 100%; max-height: 100%; object-fit: contain;
}
@media (max-width: 800px) {
  body :is(#sjProducts, #grid.grid) > .card,
  body :is(#tireRail, #tireModelRail) > button,
  body #liveTireGrid .tire-size-choice { padding: 11px; }
  body :is(#sjProducts, #grid.grid) :is(h2, h3),
  body #tireModelRail .tire-model-slide strong,
  body #tireRail .tire-model strong { font-size: 13px; line-height: 1.4; }
  body :is(#sjProducts, #grid.grid) .price { font-size: 16px; white-space: normal; }
  body #liveWheelGrid .wheel-title-row-v3 h3 { font-size: 13px !important; line-height: 1.4 !important; }
  body #liveWheelGrid .wheel-title-row-v3 .live-price { font-size: 16px !important; }
  body #liveWheelGrid .wheel-image-fitment-v3 { right: 4px; top: 4px; padding: 0 5px; font-size: 6px; max-width: calc(100% - 8px); white-space: normal; }
  body :is(#sjProducts, #liveWheelGrid, #liveTireGrid, #grid.grid, .product-grid, .accessory-category-grid, #tireRail, #tireModelRail) { gap: 10px; }
}

/* Match accessory browsing gutters without nesting a second padded panel. */
@media (max-width: 800px) {
  body.shop-mobile-ready main .shell {
    width: calc(100% - 32px);
    margin-inline: auto;
  }
  body :is(#wheelStage, #liveTireSection, .tire-stage) > .shell > .panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
}
