#woosq-popup.woosq-custom-layout-v3 {
  width: min(920px, calc(100vw - 32px)) !important;
  max-width: 920px !important;
  max-height: min(90vh, 840px) !important;
  height: auto !important;
  overflow: hidden !important;
  padding: 0 !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15), 0 10px 30px rgba(0, 0, 0, 0.1);
}




#woosq-popup.woosq-custom-layout-v3,
#woosq-popup.woosq-custom-layout-v3 * {
  box-sizing: border-box;
}

#woosq-popup.woosq-custom-layout-v3 .woosqv3-shell,
#woosq-popup.woosq-custom-layout-v3 .woosqv3-product-card {
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
}

#woosq-popup.woosq-custom-layout-v3 .woosqv3-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 50%) minmax(0, 50%) !important;
  align-items: start;
  min-height: 0;
}

#woosq-popup.woosq-custom-layout-v3 .woosqv3-gallery {
  padding: 32px 32px 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-right: 1px solid #f0f0f0;
  overflow-y: auto;
  max-height: min(90vh, 840px);
}

#woosq-popup.woosq-custom-layout-v3 .woosqv3-main-image-frame {
  background: #f7f7f7;
  border-radius: 12px;
  overflow: hidden;
}

#woosq-popup.woosq-custom-layout-v3 .woosqv3-main-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#woosq-popup.woosq-custom-layout-v3 .woosqv3-main-image img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 84%;
  max-height: 92%;
  object-fit: contain;
  margin: 0 auto;
  transform: scale(1.12);
  transform-origin: center center;
}

#woosq-popup.woosq-custom-layout-v3 .woosqv3-thumbs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

#woosq-popup.woosq-custom-layout-v3 .woosqv3-thumb {
  width: 64px;
  height: 64px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#woosq-popup.woosq-custom-layout-v3 .woosqv3-thumb.is-active {
  border-color: #1a1a1a;
}

#woosq-popup.woosq-custom-layout-v3 .woosqv3-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

#woosq-popup.woosq-custom-layout-v3 .woosqv3-info {
  padding: 38px 36px 32px;
  overflow-y: auto;
  max-height: min(90vh, 840px);
}

#woosq-popup.woosq-custom-layout-v3 .woosqv3-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #6b6b6b;
  margin-bottom: 14px;
}

#woosq-popup.woosq-custom-layout-v3 .woosqv3-title,
#woosq-popup.woosq-custom-layout-v3 .product_title.entry-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.15;
  color: #1a1a1a;
  margin: 0 0 18px !important;
  max-width: 420px;
}

#woosq-popup.woosq-custom-layout-v3 .woosqv3-price,
#woosq-popup.woosq-custom-layout-v3 .woosqv3-price .price {
  margin: 0 0 18px !important;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
}

#woosq-popup.woosq-custom-layout-v3 .woosqv3-excerpt {
  margin: 0 0 20px;
  color: #555;
  font-size: 14px;
  line-height: 1.7;
  max-width: 470px;
}

#woosq-popup.woosq-custom-layout-v3 .woosqv3-purchase {
  max-width: 415px;
}

#woosq-popup.woosq-custom-layout-v3 .woosqv3-purchase form.cart,
#woosq-popup.woosq-custom-layout-v3 .woosqv3-purchase form.variations_form {
  margin: 0;
}

#woosq-popup.woosq-custom-layout-v3 table.variations,
#woosq-popup.woosq-custom-layout-v3 table.variations tbody,
#woosq-popup.woosq-custom-layout-v3 table.variations tr,
#woosq-popup.woosq-custom-layout-v3 table.variations th,
#woosq-popup.woosq-custom-layout-v3 table.variations td {
  display: block;
  width: 100% !important;
  border: 0;
  padding: 0;
}

#woosq-popup.woosq-custom-layout-v3 table.variations tr + tr {
  margin-top: 14px;
}

#woosq-popup.woosq-custom-layout-v3 table.variations th.label {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
}

#woosq-popup.woosq-custom-layout-v3 .variable-items-wrapper,
#woosq-popup.woosq-custom-layout-v3 .woo-variation-items-wrapper,
#woosq-popup.woosq-custom-layout-v3 .button-variable-items-wrapper {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
}

#woosq-popup.woosq-custom-layout-v3 .variable-item,
#woosq-popup.woosq-custom-layout-v3 .button-variable-item,
#woosq-popup.woosq-custom-layout-v3 .button-variable-items-wrapper .variable-item {
  min-width: auto !important;
  min-height: 0 !important;
  padding: 10px 20px !important;
  border-radius: 999px !important;
  border: 1px solid #d9d9d9 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

#woosq-popup.woosq-custom-layout-v3 .variable-item.selected,
#woosq-popup.woosq-custom-layout-v3 .button-variable-item.selected,
#woosq-popup.woosq-custom-layout-v3 .variable-item.selected:hover,
#woosq-popup.woosq-custom-layout-v3 .button-variable-item.selected:hover {
  border-color: #1a1a1a !important;
  background: #1a1a1a !important;
  color: #fff !important;
}

#woosq-popup.woosq-custom-layout-v3 .variable-item:hover,
#woosq-popup.woosq-custom-layout-v3 .button-variable-item:hover {
  border-color: #1a1a1a !important;
  background: #fff !important;
  color: #1a1a1a !important;
}

#woosq-popup.woosq-custom-layout-v3 .reset_variations {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
}

#woosq-popup.woosq-custom-layout-v3 .single_variation_wrap {
  margin-top: 18px;
}

#woosq-popup.woosq-custom-layout-v3 .woocommerce-variation {
  margin-bottom: 8px;
}

#woosq-popup.woosq-custom-layout-v3 .quantity_wrap {
  width: 100%;
  margin-top: 6px;
}

#woosq-popup.woosq-custom-layout-v3 .quantity_label {
  display: block;
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}


#woosq-popup.woosq-custom-layout-v3 .quantity.buttons_added {
  display: flex;
  align-items: center;
  width: 100%;
  border: 1px solid #d9d9d9;
  border-radius: 999px;
  overflow: hidden;
}

#woosq-popup.woosq-custom-layout-v3 .quantity.buttons_added .minus,
#woosq-popup.woosq-custom-layout-v3 .quantity.buttons_added .plus {
  width: 52px;
  min-width: 52px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#woosq-popup.woosq-custom-layout-v3 .quantity.buttons_added .qty {
  flex: 1;
  width: auto;
  min-width: 0;
  height: 48px;
  border: 0;
  text-align: center;
  background: transparent;
  box-shadow: none;
}

#woosq-popup.woosq-custom-layout-v3 .single_add_to_cart_button,
#woosq-popup.woosq-custom-layout-v3 .woosqv3-buy-now {
  width: 100%;
  min-height: 52px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  margin-top: 12px;
  box-shadow: none;
}

#woosq-popup.woosq-custom-layout-v3 .single_add_to_cart_button {
  background: #1a1a1a !important;
  border: 1px solid #1a1a1a !important;
  color: #fff !important;
}

#woosq-popup.woosq-custom-layout-v3 .single_add_to_cart_button:hover {
  background: #333333 !important;
  border: 1px solid #333333 !important;
  color: #fff !important;
}

#woosq-popup.woosq-custom-layout-v3 .woosqv3-buy-now {
  background: #BD9E5E !important;
  border: 1px solid #BD9E5E !important;
  color: #fff !important;
}

#woosq-popup.woosq-custom-layout-v3 .woosqv3-buy-now:hover {
  background: #000000 !important;
  border: 1px solid #000000 !important;
  color: #fff !important;
}

#woosq-popup.woosq-custom-layout-v3 .product_button,
#woosq-popup.woosq-custom-layout-v3 .product_meta {
  display: none !important;
}

#woosq-popup.woosq-custom-layout-v3 .woosqv3-customize-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 18px;
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#woosq-popup.woosq-custom-layout-v3 .mfp-close.woosq-custom-close {
  top: 14px !important;
  right: 14px !important;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 999px;
  opacity: 1;
  background: transparent;
  color: #1a1a1a;
  font-size: 28px;
}

#woosq-popup.woosq-custom-layout-v3 .mfp-close.woosq-custom-close span {
  display: inline-block;
  line-height: 1;
}

@media (max-width: 768px) {
  #woosq-popup .single-product div.product table.variations td.value ul li.variable-item .variable-item-span {
	  font-size:12px
  }
  
  
  
  #woosq-popup.woosq-custom-layout-v3 {
    width: calc(100vw - 20px) !important;
    max-height: 95vh !important;
  }

  #woosq-popup.woosq-custom-layout-v3 .woosqv3-grid {
    grid-template-columns: 1fr !important;
  }

  #woosq-popup.woosq-custom-layout-v3 .woosqv3-gallery {
    padding: 20px 20px 12px;
    border-right: 0;
  }

  #woosq-popup.woosq-custom-layout-v3 .woosqv3-main-image {
    min-height: 320px!important;
    aspect-ratio: 1 / 1;
  }

  #woosq-popup.woosq-custom-layout-v3 .woosqv3-main-image img {
    transform: scale(1.06);
  }

  #woosq-popup.woosq-custom-layout-v3 .woosqv3-info {
    padding: 8px 20px 24px;
    max-height: none;
  }

  #woosq-popup.woosq-custom-layout-v3 .woosqv3-title,
  #woosq-popup.woosq-custom-layout-v3 .product_title.entry-title {
    font-size: 24px;
    max-width: none;
  }

  #woosq-popup.woosq-custom-layout-v3 .woosqv3-purchase {
    max-width: none;
  }
}

/* =========================
   IMAGE
========================= */


#woosq-popup.woosq-custom-layout-v3 .woosqv3-main-image-frame {
  background: #ffffff !important;
  border-radius: 12px !important;
}

#woosq-popup.woosq-custom-layout-v3 .woosqv3-main-image {
  aspect-ratio: unset !important;
  width: 100% !important;
  min-height: min(490px, calc(min(90vh, 840px) - 130px));
  max-height: calc(min(90vh, 840px) - 130px);
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

#woosq-popup.woosq-custom-layout-v3 .woosqv3-main-image > a,
#woosq-popup.woosq-custom-layout-v3 .woosqv3-main-image > picture,
#woosq-popup.woosq-custom-layout-v3 .woosqv3-main-image > img {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
}

#woosq-popup.woosq-custom-layout-v3 .woosqv3-main-image img {
  display: block !important;
  margin: 0 auto !important;
  max-width: 92% !important;
  max-height: 92% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
}

/* thumbnails */
#woosq-popup.woosq-custom-layout-v3 .woosqv3-thumbs {
  gap: 10px !important;
}

#woosq-popup.woosq-custom-layout-v3 .woosqv3-thumb {
  width: 64px !important;
  height: 64px !important;
  padding: 4px !important;
}


#woosq-popup .quantity_wrap .quantity {
	padding: 0px;
}


/* =========================
   1) Keep thumbnails clickable, but disable click on the main displayed image
========================= */
#woosq-popup.woosq-custom-layout-v3 .woosqv3-main-image,
#woosq-popup.woosq-custom-layout-v3 .woosqv3-main-image-frame {
  cursor: default !important;
}

#woosq-popup.woosq-custom-layout-v3 .woosqv3-main-image > a,
#woosq-popup.woosq-custom-layout-v3 .woosqv3-main-image img {
  pointer-events: none !important;
  cursor: default !important;
}

/* thumbnails stay clickable */
#woosq-popup.woosq-custom-layout-v3 .woosqv3-thumbs,
#woosq-popup.woosq-custom-layout-v3 .woosqv3-thumb,
#woosq-popup.woosq-custom-layout-v3 .woosqv3-thumb * {
  pointer-events: auto !important;
}

/* =========================
   2) Fix variation text color on hover
   Theme is coloring the inner span, so override the span directly
========================= */
#woosq-popup.woosq-custom-layout-v3 div.product table.variations td.value ul li.variable-item:hover .variable-item-span,
#woosq-popup.woosq-custom-layout-v3 div.product table.variations td.value ul li.variable-item.hover .variable-item-span,
#woosq-popup.woosq-custom-layout-v3 div.product table.variations td.value ul li.button-variable-item:hover .variable-item-span,
#woosq-popup.woosq-custom-layout-v3 div.product table.variations td.value ul li.button-variable-item.hover .variable-item-span {
  color: #1a1a1a !important;
}

/* keep selected state white */
#woosq-popup.woosq-custom-layout-v3 div.product table.variations td.value ul li.variable-item.selected .variable-item-span,
#woosq-popup.woosq-custom-layout-v3 div.product table.variations td.value ul li.button-variable-item.selected .variable-item-span {
  color: #ffffff !important;
}

/* optional: force base text color too */
#woosq-popup.woosq-custom-layout-v3 .variable-item .variable-item-span,
#woosq-popup.woosq-custom-layout-v3 .button-variable-item .variable-item-span {
  color: #1a1a1a !important;
}

/* Quantity buttons: replace arrow icons with - and + */
#woosq-popup.woosq-custom-layout-v3 .quantity.buttons_added .minus i,
#woosq-popup.woosq-custom-layout-v3 .quantity.buttons_added .plus i {
  display: none !important;
}

#woosq-popup.woosq-custom-layout-v3 .quantity.buttons_added .minus,
#woosq-popup.woosq-custom-layout-v3 .quantity.buttons_added .plus {
  position: relative !important;
  font-size: 0 !important;
}

#woosq-popup.woosq-custom-layout-v3 .quantity.buttons_added .minus::before,
#woosq-popup.woosq-custom-layout-v3 .quantity.buttons_added .plus::before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: inherit !important;
  font-size: 20px !important;
  line-height: 1 !important;
  font-weight: 400 !important;
  color: #1a1a1a !important;
}

#woosq-popup.woosq-custom-layout-v3 .quantity.buttons_added .minus::before {
  content: "−";
}

#woosq-popup.woosq-custom-layout-v3 .quantity.buttons_added .plus::before {
  content: "+";
}


#woosq-popup.woosq-custom-layout-v3 .mfp-close.woosq-custom-close span {
    display: none;
    
}

/* Mobile quick view scroll fix */
@media (max-width: 768px) {
  .mfp-wrap.mfp-woosq,
  .mfp-wrap.mfp-woosq .mfp-container,
  .mfp-wrap.mfp-woosq .mfp-content {
    height: 100dvh !important;
  }

  .mfp-wrap.mfp-woosq {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  #woosq-popup.woosq-custom-layout-v3 {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    margin: 16px auto !important;
  }

  #woosq-popup.woosq-custom-layout-v3 .woosqv3-grid {
    display: block !important;
  }

  #woosq-popup.woosq-custom-layout-v3 .woosqv3-gallery,
  #woosq-popup.woosq-custom-layout-v3 .woosqv3-info {
    width: 100% !important;
    max-width: 100% !important;
  }

  #woosq-popup.woosq-custom-layout-v3 .woosqv3-info {
    overflow: visible !important;
    max-height: none !important;
    padding: 8px 20px 24px !important;
  }

  #woosq-popup.woosq-custom-layout-v3 .woosqv3-main-image {
    min-height: 300px !important;
    aspect-ratio: 1 / 1 !important;
  }
}