/* Product Quick View — modenza */

.bsp-quick-view {
  position: fixed;
  inset: 0;
  z-index: 100010;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.3s ease-in-out;
}

.bsp-quick-view.is-open {
  pointer-events: auto;
  visibility: visible;
}

.bsp-quick-view__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.bsp-quick-view.is-open .bsp-quick-view__overlay {
  opacity: 1;
}

.bsp-quick-view__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  max-height: min(72vh, 720px);
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.33, 1, 0.68, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  will-change: transform;
}

.bsp-quick-view.is-open .bsp-quick-view__dialog {
  transform: translateY(0);
}

.bsp-quick-view__container {
  position: relative;
  width: min(100% - 32px, var(--bsp-container, 1320px));
  max-width: var(--bsp-container, 1320px);
  margin: 0 auto;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.bsp-quick-view__close {
  position: absolute;
  top: 16px;
  right: 0;
  z-index: 5;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #000;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.bsp-quick-view__close:hover {
  opacity: 0.65;
}

.bsp-quick-view__body {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.bsp-quick-view__layout {
  display: flex;
  align-items: stretch;
  min-height: min(72vh, 620px);
  max-height: min(72vh, 720px);
}

.bsp-quick-view__gallery {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 32px 24px 32px 0;
}

.bsp-quick-view__gallery-inner {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  max-width: 440px;
  height: min(58vh, 540px);
  min-height: 380px;
}

.bsp-quick-view__progress {
  width: 1px;
  flex-shrink: 0;
  background: #ddd;
  position: relative;
  align-self: stretch;
  margin-bottom: 32px;
}

.bsp-quick-view__progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #000;
  transform-origin: top center;
  transform: scaleY(0.25);
  transition: transform 0.8s ease;
  will-change: transform;
}

.bsp-quick-view__main-image {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  height: 100%;
}

.bsp-quick-view__main-stack {
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}

.bsp-quick-view__main-stack::-webkit-scrollbar {
  display: none;
}

.bsp-quick-view__slide {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  height: 100%;
}

.bsp-quick-view__slide-media {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: #f4f4f4;
  overflow: hidden;
}

.bsp-quick-view__main-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bsp-quick-view__thumbs {
  width: 48px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  max-height: 100%;
  scrollbar-width: none;
}

.bsp-quick-view__thumbs::-webkit-scrollbar {
  display: none;
}

.bsp-quick-view__thumb {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.2s ease;
}

.bsp-quick-view__thumb.is-active,
.bsp-quick-view__thumb:hover {
  opacity: 1;
}

.bsp-quick-view__thumb-media {
  position: relative;
  width: 100%;
  padding-bottom: 131.7%;
  overflow: hidden;
  background: #f4f4f4;
}

.bsp-quick-view__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bsp-quick-view__details {
  flex: 0 0 min(100%, 460px);
  max-width: 460px;
  padding: 40px 0 40px 24px;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  font-family: var(--bsp-font-body, inherit);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #000;
}

.bsp-quick-view__title {
  margin: 0;
  padding-right: 40px;
  font-family: var(--bsp-font-body, inherit);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.32px;
  color: #000;
}

.bsp-quick-view__brand {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color: #646464;
}

.bsp-quick-view__price {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  color: #000;
}

.bsp-quick-view__price del {
  color: #646464;
  font-size: 14px;
  font-weight: 500;
  margin-right: 8px;
}

.bsp-quick-view__price ins {
  text-decoration: none;
  color: #000;
}

.bsp-quick-view__description {
  margin-top: 24px;
  color: #646464;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.bsp-quick-view__description p {
  margin: 0;
}

.bsp-quick-view__stock-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 500;
  color: #000;
}

.bsp-quick-view__stock-indicator.is-out-of-stock {
  color: #646464;
}

.bsp-quick-view__stock-dots {
  display: flex;
  align-items: center;
  gap: 3px;
}

.bsp-quick-view__stock-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
}

.bsp-quick-view__stock-dot.is-active {
  background: #000;
}

.bsp-quick-view__parameters {
  margin-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.bsp-quick-view__param + .bsp-quick-view__param,
.bsp-quick-view__size-guide {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.bsp-quick-view__param-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  gap: 16px;
}

.bsp-quick-view__param-label {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.28px;
  color: #000;
}

.bsp-quick-view__param-value-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.bsp-quick-view__param-value {
  font-size: 12px;
  font-weight: 500;
  color: #000;
}

.bsp-quick-view__param-change {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.28px;
  color: #000;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.bsp-quick-view__param-change:hover {
  opacity: 0.65;
}

.bsp-quick-view__param-change svg {
  flex-shrink: 0;
}

.bsp-quick-view__param-panel {
  padding: 0 0 12px;
}

.bsp-quick-view__param-panel[hidden] {
  display: none !important;
}

.bsp-quick-view__size-guide {
  display: flex;
  align-items: center;
  min-height: 48px;
}

.bsp-quick-view__size-guide a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.28px;
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bsp-quick-view__size-guide a:hover {
  opacity: 0.65;
}

.bsp-quick-view__size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bsp-quick-view__size-btn {
  min-width: 44px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0;
  background: #fff;
  color: #000;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.bsp-quick-view__size-btn.is-active {
  border-color: #000;
}

.bsp-quick-view__size-btn.bsp-quick-view__color-swatch {
  min-width: 32px;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 0;
  background: var(--bsp-qv-swatch-color, #d1d5db);
}

.bsp-quick-view__size-btn.bsp-quick-view__color-swatch.is-active {
  box-shadow: inset 0 0 0 1px #000;
}

.bsp-quick-view__buy {
  margin-top: 24px;
}

.bsp-quick-view__buy-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bsp-quick-view__qty-control {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.bsp-quick-view__qty-btn {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #000;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bsp-quick-view__qty-btn:hover {
  opacity: 0.65;
}

.bsp-quick-view__qty-input {
  width: 36px;
  height: 26px;
  border: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #000;
  background: transparent;
  -moz-appearance: textfield;
}

.bsp-quick-view__qty-input::-webkit-outer-spin-button,
.bsp-quick-view__qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.bsp-quick-view__share {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: #000;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.bsp-quick-view__share:hover {
  opacity: 0.65;
}

.bsp-quick-view__add-cart {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 33px;
  border: 0;
  border-radius: 0;
  background: #000;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.28px;
  text-decoration: none;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 8px 8px 16px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.bsp-quick-view__add-cart:hover {
  opacity: 0.85;
  color: #fff;
}

.bsp-quick-view__add-cart:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.bsp-quick-view__full-details {
  display: inline-flex;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.28px;
  color: #000;
  text-decoration: none;
}

.bsp-quick-view__full-details span {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 1px;
}

.bsp-quick-view__full-details:hover {
  opacity: 0.65;
}

body.bsp-quick-view-open {
  overflow: hidden;
}

@media (max-width: 991px) {
  .bsp-quick-view__dialog {
    max-height: 88vh;
  }

  .bsp-quick-view__container {
    width: min(100% - 24px, var(--bsp-container, 1320px));
  }

  .bsp-quick-view__layout {
    flex-direction: column;
    min-height: 0;
    max-height: none;
  }

  .bsp-quick-view__gallery {
    justify-content: center;
    padding: 48px 0 0;
  }

  .bsp-quick-view__gallery-inner {
    max-width: min(100%, 360px);
    height: min(42vh, 420px);
    min-height: 280px;
  }

  .bsp-quick-view__details {
    flex: 1 1 auto;
    max-width: none;
    padding: 24px 0 32px;
    margin-left: 0;
  }

  .bsp-quick-view__title {
    padding-right: 32px;
  }

  .bsp-quick-view__buy-row {
    flex-wrap: wrap;
  }

  .bsp-quick-view__add-cart {
    width: 100%;
    flex: 1 1 100%;
    order: 3;
  }
}

@media (max-width: 767px) {
  .bsp-quick-view__gallery-inner {
    min-height: 260px;
  }

  .bsp-quick-view__thumbs {
    width: 40px;
  }
}
