.product-color-variants {
  margin: 22px 0 30px;
}
.product-color-variants .product-card-info__color-label {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 14px;
}
.product-color-variants .product-card-info__color-label span {
  font-size: inherit;
  line-height: inherit;
}
.product-color-variants__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.product-color-variants__slider { min-width: 0; }
.product-color-variants__arrow { display: none; }
@media (min-width: 761px) {
  .product-color-variants__list {
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 4px;
    padding: 4px;
  }
  .product-color-variants__list::-webkit-scrollbar { display: none; }
  .product-color-variants__list > .product-color-variant {
    flex: 0 0 76px;
    scroll-snap-align: start;
  }
  .product-color-variants.has-overflow .product-color-variants__slider {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 8px;
  }
  .product-color-variants.has-overflow .product-color-variants__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 30px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(208, 109, 22, .55);
    border-radius: 9px;
    background: rgba(208, 109, 22, .2);
    color: #ffcf98;
    font-size: 0;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
  }
  .product-color-variants__arrow span {
    display: block;
    box-sizing: border-box;
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    font-size: 0;
  }
  .product-color-variants__arrow--prev span { transform: rotate(135deg); margin-left: 4px; }
  .product-color-variants__arrow--next span { transform: rotate(-45deg); margin-right: 4px; }
  .product-color-variants__arrow:not(:disabled):hover {
    background: #d06d16;
    border-color: #d06d16;
    color: #fff;
  }
  .product-color-variants__arrow:disabled {
    background: rgba(255, 255, 255, .025);
    border-color: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .22);
    cursor: default;
  }
  .product-color-variants__arrow:focus-visible { outline: 2px solid #ffcf98; outline-offset: 2px; }
}
.product-color-variant {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 76px;
  height: 100px;
  padding: 5px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #fff;
  color: #231712;
  text-decoration: none;
  overflow: hidden;
  transition: border-color .2s ease;
}
.product-color-variant img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-color-variant:hover,
.product-color-variant.is-active {
  border-color: #d06d16;
}
.product-color-variant:focus-visible {
  outline: 3px solid #ffcf98;
  outline-offset: 3px;
}
.product-color-variant__fallback {
  font-size: 11px;
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
}
/* Center the gallery thumbnails in the remaining space below the main photo. */
.product-page .product-gallery {
  display: flex;
  flex-direction: column;
}
.product-page .product-gallery__main {
  flex: 0 0 auto;
}
.product-page .product-gallery__thumbs {
  flex: 1 0 auto;
  align-content: center;
}
@media (max-width: 760px) {
  .product-color-variants { margin: 18px 0 20px; }
  .product-color-variants__list { gap: 10px; }
  .product-color-variant { width: 64px; height: 84px; }
  .product-page .product-gallery__thumbs { padding-block: 14px; }
}
