/* Quick-view modal layout (loaded once; markup comes via AJAX) */
.variants-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.variant-size.d-flex.flex-wrap.gap-2 {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
}

.variant-size .size-btn,
.variant-size .size-btn-disabled {
  min-width: 80px;
  text-align: center;
}

.size-btn-disabled {
  max-width: 90px;
}

.size-btn.btn.btn-outline-primary.btn-sm {
  margin-bottom: 8px;
}

.variant-size {
  flex: 1 1 250px;
  box-sizing: border-box;
}

.variant-size .size-btn,
.variant-size .size-btn-disabled {
  width: 100%;
  text-align: center;
  min-height: 36px;
  box-sizing: border-box;
}

.variant-item.color-selection {
  flex: 1 1 250px;
  max-width: calc(4 * 60px + 3 * 8px);
  box-sizing: border-box;
}

.variant-item.color-selection .d-flex.flex-wrap.gap-2 {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 8px;
}

.full-price {
  font-size: clamp(1.25rem, 1.1rem + 1vw, 1.75rem) !important;
  line-height: 1.2;
}

.modal-dialog.modal-xl.fast-look {
  margin-top: 80px;
}

.variant-size .d-flex.flex-wrap.gap-2 {
  gap: 4px;
}

.fast-look .ss-product-gallery {
  width: 100%;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 10px;
}

.fast-look .ss-product-gallery__main {
  min-height: 220px;
  max-height: 360px;
  padding: 8px;
  cursor: default;
}

.fast-look .ss-product-gallery__main-img {
  max-height: 340px;
}

.fast-look .ss-product-gallery__thumbs,
.fast-look .ss-product-gallery:not(.ss-product-gallery--single) .ss-product-gallery__thumbs:not(.ss-product-gallery__thumbs--hidden) {
  order: 0 !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  max-height: none !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 2px 2px 4px !important;
  justify-content: flex-start;
}

.fast-look .ss-product-gallery__thumb {
  width: 56px;
  height: 56px;
}

.fast-look .ss-product-gallery__stage {
  flex: none;
  width: 100%;
}

.js-quick-view.is-loading {
  opacity: 0.65;
  pointer-events: none;
}
