/* Responsive product-only rails; category and customer-discovery carousels keep their own sizing. */

.collection-scroller--products .collection-scroller__track {
  gap: 12px;
}

.collection-scroller--products .collection-scroller__track > .product-card {
  flex: 0 0 clamp(184px, 15vw, 208px);
  align-self: stretch;
  height: auto;
  border-radius: 14px;
  scroll-snap-align: start;
}

.collection-scroller--products .product-card__media img {
  padding: 10px;
}

.collection-scroller--products .product-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
}

.collection-scroller--products .product-card__header {
  min-height: 20px;
  gap: 4px;
}

.collection-scroller--products .product-card__audience,
.collection-scroller--products .product-card__variant-group {
  display: none;
}

.collection-scroller--products .product-card__eyebrow {
  font-size: 0.68rem;
}

.collection-scroller--products .product-card__title {
  min-height: calc(1.3em * 2);
  font-size: 0.92rem;
  line-height: 1.3;
}

.collection-scroller--products .product-card__listing-variant-summary {
  display: -webkit-box;
  min-height: 1.3em;
  margin: 0;
  overflow: hidden;
  color: #526173;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.collection-scroller--products .product-card__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  margin-top: auto;
}

.collection-scroller--products .product-card__price {
  gap: 3px;
  font-size: 1.12rem;
}

.collection-scroller--products .product-card__category {
  min-height: 0;
  justify-self: start;
  font-size: 0.75rem;
  line-height: 1.25;
  text-align: left;
}

.collection-scroller--products .product-card__footer {
  display: grid;
  padding-top: 8px;
}

.collection-scroller--products .product-cart-control__add {
  padding-inline: 8px;
}

.collection-scroller--products .product-cart-control__add-label--full {
  display: none;
}

.collection-scroller--products .product-cart-control__add-label--compact {
  display: inline;
}

.collection-scroller--products .product-cart-control__stepper {
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  min-width: 0;
}

.collection-scroller--products .product-cart-control__quantity {
  overflow: hidden;
  padding-inline: 2px;
  text-overflow: ellipsis;
}

@media (max-width: 800px) {
  .collection-scroller--products .collection-scroller__track {
    gap: 10px;
  }

  .collection-scroller--products .collection-scroller__track > .product-card {
    flex-basis: clamp(148px, 25vw, 184px);
  }
}

@media (max-width: 535px) {
  .collection-scroller--products .collection-scroller__track > .product-card {
    flex-basis: clamp(128px, 40vw, 172px);
  }
}

@media (max-width: 520px) {
  .collection-scroller--products .collection-scroller__track {
    gap: 8px;
  }

  .collection-scroller--products .product-card__body {
    padding: 10px;
  }
}

@media (max-width: 370px) {
  .collection-scroller--products .product-card__body {
    padding: 8px;
  }
}
