.quick-view-overlay,
.quick-view-overlay * {
  box-sizing: border-box;
}

.quick-view-overlay {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
}

.quick-view-overlay.active {
  display: flex;
}

.quick-view-modal {
  position: relative;
  width: min(920px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 34px;
  color: #fff;
  background: radial-gradient(circle at top center, rgba(255,255,255,.055), transparent 45%), #181818;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 24px 70px rgba(0,0,0,.72), 0 0 0 18px rgba(255,255,255,.025);
  font-family: "Farhang", Tahoma, sans-serif;
}

.quick-view-close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: #ed0000;
  color: #fff;
  font-size: 30px;
  line-height: 30px;
  cursor: pointer;
}

.quick-view-loading {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: rgba(255,255,255,.75);
}

.quick-view-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255,255,255,.16);
  border-top-color: #c9ad64;
  border-radius: 50%;
  animation: quick-view-spin .75s linear infinite;
}

@keyframes quick-view-spin {
  to { transform: rotate(360deg); }
}

.quick-view-content {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  gap: 38px;
}

.quick-view-main-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #222;
}

.quick-view-main-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.quick-view-thumbs {
  display: flex;
  gap: 9px;
  margin-top: 10px;
  overflow-x: auto;
}

.quick-view-thumb {
  width: 58px;
  height: 70px;
  flex: 0 0 58px;
  padding: 0;
  border: 1px solid #3b3b3b;
  background: #222;
  cursor: pointer;
}

.quick-view-thumb.active {
  border-color: #c9ad64;
}

.quick-view-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quick-view-details {
  align-self: center;
}

.quick-view-brand {
  margin-bottom: 8px;
  color: #c9ad64;
  font-size: 13px;
  letter-spacing: 3px;
}

.quick-view-details h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 3vw, 31px);
  line-height: 1.55;
}

.quick-view-category {
  margin: 8px 0 0;
  color: rgba(255,255,255,.58);
  font-size: 14px;
}

.quick-view-divider {
  height: 1px;
  margin: 22px 0;
  background: rgba(255,255,255,.09);
}

.quick-view-option {
  margin-bottom: 20px;
}

.quick-view-option__title {
  margin-bottom: 10px;
  color: #fff;
  font-weight: 700;
}

.quick-view-colors,
.quick-view-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.quick-view-color,
.quick-view-size {
  min-height: 40px;
  padding: 7px 12px;
  border: 1px solid #4b4b4b;
  background: #222;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.quick-view-color {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.quick-view-color img {
  width: 27px;
  height: 32px;
  object-fit: cover;
}

.quick-view-color.active,
.quick-view-size.active {
  border-color: #c9ad64;
  color: #c9ad64;
}

.quick-view-color:disabled,
.quick-view-size:disabled {
  opacity: .42;
  cursor: not-allowed;
}

.quick-view-price {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 25px 0 12px;
}

.quick-view-price strong {
  color: #c9ad64;
  font-size: 24px;
}

.quick-view-price del {
  color: rgba(255,255,255,.48);
  font-size: 15px;
}

.quick-view-message {
  min-height: 24px;
  margin-bottom: 10px;
  color: #c9ad64;
  font-size: 14px;
}

.quick-view-message.error {
  color: #ff7777;
}

.quick-view-share-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 5px 0 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f5f5f5;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.quick-view-share-button img {
  width: 20px;
  height: 20px;
}

.quick-view-share-button:hover {
  color: #c9ad64;
}

.quick-view-share-modal[hidden] {
  display: none;
}

.quick-view-share-modal {
  position: fixed;
  inset: 0;
  z-index: 10030;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,.64);
}

.quick-view-share-dialog {
  position: relative;
  width: min(430px, 100%);
  padding: 24px;
  background: #171717;
  border: 1px solid rgba(199,168,103,.34);
  box-shadow: 0 28px 80px rgba(0,0,0,.55);
  color: #fff;
}

.quick-view-share-close {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.quick-view-share-title {
  margin: 18px 0 24px;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.8;
  text-align: center;
}

.quick-view-share-items {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.quick-view-share-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: .82rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.quick-view-share-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-view-share-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.quick-view-share-item:hover {
  color: #c7a867;
}

.quick-view-actions {
  display: grid;
  gap: 10px;
}

.quick-view-add-cart,
.quick-view-details-link {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.quick-view-add-cart {
  border: 0;
  background: #c9ad64;
  color: #fff;
  cursor: pointer;
}

.quick-view-add-cart img {
  width: 20px;
  height: 20px;
}

.quick-view-add-cart:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.quick-view-details-link {
  border: 1px solid rgba(201,173,100,.55);
  color: #c9ad64;
}

.quick-view-details-link:hover {
  color: #fff;
  border-color: #c9ad64;
}

body.quick-view-open {
  overflow: hidden;
}

.tab-product-actions [data-quick-view] {
  padding: 0;
}

.tab-product-actions [data-quick-view] > img {
  width: 32px;
  height: 32px;
}

.tab-product-actions [data-quick-view]:hover > img {
  transform: scale(.8);
}

@media (max-width: 760px) {
  .products .product-card__img .product-actions,
  .products-tab-section .product-card__img .product-actions,
  .collection-slider-section .product-card__img .product-actions,
  .favorites-products .product-card__img .product-actions,
  .product-related-card .product-related-actions,
  .collection-slider-section .products-slider-container .product-related-actions,
  .tab-product-card .tab-product-actions {
    display: none !important;
  }

  .quick-view-overlay {
    padding: 12px;
  }

  .quick-view-modal {
    padding: 42px 16px 20px;
  }

  .quick-view-content {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .quick-view-main-image {
    max-height: 48vh;
  }

  .quick-view-share-modal {
    align-items: flex-end;
    padding: 12px;
  }

  .quick-view-share-dialog {
    padding: 22px 16px 18px;
  }

  .quick-view-share-items {
    gap: 8px;
  }

  .quick-view-share-icon {
    width: 48px;
    height: 48px;
  }

  .quick-view-share-item {
    font-size: .74rem;
  }
}
