[data-product-grid] .product-card__body {
  min-width: 0;
  text-align: center;
}

[data-product-grid] .product-meta__bottom {
  justify-content: center;
}

.catalog-colors {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 4px;
  min-width: 0;
  margin: 0 -12px 12px;
}

.catalog-colors__rail {
  display: flex;
  justify-content: safe center;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  padding: 2px;
}

.catalog-colors__rail::-webkit-scrollbar { display: none; }

.catalog-colors__chip,
.catalog-colors__arrow {
  height: 32px;
  color: #27282a;
  background: #fff;
  border: 1px solid #d4d3ce;
  border-radius: 2px;
  cursor: pointer;
}

.catalog-colors__chip {
  touch-action: manipulation;
  flex: 0 0 max(72px, calc((100% - 8px) / 3));
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0 4px;
  scroll-snap-align: start;
  font: 10.5px/1.2 Arial, sans-serif;
}

.catalog-colors__chip[aria-pressed="true"] {
  border-color: #282a2e;
  box-shadow: inset 0 0 0 1px #282a2e;
  background: #f7f6f3;
}

.catalog-colors__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-colors__dot {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px #0002;
}

.catalog-colors__arrow { padding: 0; font: 17px/1 Arial, sans-serif; }
.catalog-colors__arrow:disabled { color: #92918c; cursor: default; }
.catalog-colors__arrow[hidden] { display: block; visibility: hidden; }

[data-product-grid] .catalog-colors__summary {
  display: none;
  min-height: 0;
  margin: 0 0 5px;
  font: 12px/1.4 Arial, sans-serif;
  color: #54565c;
}

.catalog-photo-swipe { position: relative; }
.catalog-photo-status { display: none; }

@media (max-width: 760px) and (pointer: coarse) {
  .catalog-photo-swipe { touch-action: pan-y pinch-zoom; }
  .catalog-colors { grid-template-columns: minmax(0, 1fr); margin-inline: 0; }
  .catalog-colors .catalog-colors__arrow { display: none; }
  .catalog-colors__chip { height: 38px; }
  .catalog-colors__chip { flex-basis: max(74px, calc((100% - 26px) / 3)); }
  [data-product-grid] .catalog-colors__summary { display: block; }
  .catalog-photo-status {
    display: block;
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 1;
    padding: 4px 8px;
    background: #fff;
    border: 1px solid #d4d3ce;
    border-radius: 2px;
    color: #27282a;
    font: 12px/1.2 Arial, sans-serif;
    pointer-events: none;
  }
  .catalog-photo-status[hidden] { display: none; }
}
