.product-preview-popup {
  position: absolute;
  max-width: 100%;
  margin: 0px auto;
  padding: 20px;
  background: #fff;
  border: 1px solid #0000000A;
  border-radius: 6px;
  height:100%;
  z-index:999;
  top:100%;
  width:100%;
  transition: top 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

// Ensure the popup is visible when active
.product-preview-popup[style*="top: 0"] {
  z-index: 1000;
}

// Ensure parent container has proper positioning
.productgrid--item {
  position: relative !important;
  overflow: visible !important;
}

.preview-popup-header h3 {
    font-family: "Libre Franklin",sans-serif ;
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    margin: 0;
}

.product-preview-popup {
    padding: 14px;
}

.product-preview-popup .preview-swatches p {
    font-family: "Libre Franklin",sans-serif ;
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0%;
    text-transform: capitalize;
}

.product-preview-popup .productitem--swatches-swatch-wrapper {
    width: 64px;
    height: 64px;
    padding: 4px;
    border: 1px solid #00000038;
    border-radius: 6px !important;
    margin-right: 5px;
}
.product-preview-popup .productitem--swatches-swatch-wrapper:nth-child(3n) {
  margin-right: 0px;
}

.product-preview-popup .productitem--swatches-swatch-inner {
    width: 56px !important;
    height: 54px;
}

.preview-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    line-height: 20px;
}

.preview-popup-header h3 {
  font-family: "Libre Franklin",sans-serif ;
  font-weight: 600;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0%;
  margin: 0;
}
.product-preview-popup .productitem--swatches {
  height: auto;
  max-height: 136px;
  overflow-y: scroll;
  width: 100%;}
  .product-preview-popup form.productitem--swatches-container {
    padding-right: 0;
    justify-content: flex-start;

}
.preview-actions {
  display: inline-block;
  margin-right: 0;
}

.preview-actions > .button {
  min-width: 40% !important;
  width: 48%;
  display: inline-grid;
  font-family: Arimo, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 100%;
  letter-spacing: 0%;
  border: 1px solid #1771BA;
  padding: 10px 0;
}
.preview-actions .button-primary:not(.disabled):hover {
  background: #2a77f2;
  border: 1px solid #2a77f2;
}


.product-preview-popup {
  padding: 15px;
}
.productitem--swatches-input:checked + .productitem--swatches-swatch-wrapper {
  border: 1px solid #1771BA !Important;
  border-radius: 6px !important;
  box-shadow:none !important;
}
.preview-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.product-preview-popup .preview-content {
  display: grid;
  gap: 0px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.product-preview-popup .preview-details {
  border-bottom: 1px solid #0000001F;
  padding-bottom: 0px;
}

.product-preview-popup .price.productitem__price {
  width: 91%;
  height: 42px;
  margin-top: 10px;
}

.product-preview-popup .preview-actions {
  margin-top: 10px;
}
.preview-details h4 {
     padding-top: 15px;
    margin-bottom: 10px;
   
    margin-top: 0;
    font-family: "Libre Franklin",sans-serif ;
    font-weight: 600;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0;
    text-transform: capitalize;
    color: #000000;
}
ul.spec-grid-preview li span {
  font-family: "Libre Franklin",sans-serif ;
  font-weight: 400;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;
  color: #000;
}

span.spec-value-preview {
  opacity: .7;
}
.preview-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.preview-swatches {
    margin-bottom: 0px;
    border-bottom: 1px solid #0000001F;
    padding-bottom: 15px;
}

.preview-details ul {
  list-style: none;
  padding: 0;
  width: 100%;
}

.preview-details li {
  margin-bottom: 8px;
} 
.preview-details {
  border-bottom: 1px solid #0000001F;
  padding-bottom: 0px;
}
.template-cart .product-preview-popup .productitem--swatches{
  width: 100%; 
  padding: 0;
}
.product-preview-popup .price.productitem__price .price__current.price__current--on-sale span {
    font-weight: 700 !important;
}

