/**

 * Product Popup Styles

 * Mobile: bottom panel (like Volt)

 * Desktop: centered popup

 */



:root {

  --popup-bg: #ffffff;

  --popup-overlay: rgba(0, 0, 0, 0.5);

  --popup-text: #000;

  --popup-border: #e0e0e0;

  --popup-primary: var(--color-primary,var(--main-site-text-color, #000));

  --popup-primary-hover: var(--color-primary-hover, #fff);

  --popup-secondary: var(--secondery-text-color, #6c757d);

  --popup-error: #dc3545;

  --popup-radius: 1rem;

  --popup-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);

  --popup-transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);

}



/* Popup Container */

.ed-product-popup {

  position: fixed;

  top: 0;

  left: 0;

  right: 0;

  bottom: 0;

  z-index: 99999999 !important;

  display: flex;

  align-items: flex-end;

  justify-content: center;

  opacity: 0;

  visibility: hidden;

  transition: opacity var(--popup-transition), visibility var(--popup-transition);

}



.ed-product-popup.is-open {

  opacity: 1;

  visibility: visible;

}



/* Ensure product popup is above checkout upsells popup */

body.ed-checkout-upsells-popup-open .ed-product-popup {

  z-index: 99999999 !important;

}



/* Overlay */

.ed-product-popup__overlay {

  position: absolute;

  top: 0;

  left: 0;

  right: 0;

  bottom: 0;

  background: var(--popup-overlay);

  cursor: pointer;

}



/* Container */

.ed-product-popup__container {

  position: relative;

  width: 100%;

  max-width: 100%;

  max-height: 90vh;

  background: var(--popup-bg);

  border-radius: var(--popup-radius) var(--popup-radius) 0 0;

  box-shadow: var(--popup-shadow);

  transform: translateY(100%);

  transition: transform var(--popup-transition);

  overflow: hidden;

  display: flex;

  flex-direction: column;

  z-index: 1;

}



.ed-product-popup.is-open .ed-product-popup__container {

  transform: translateY(0);

}



/* Close Button */

.ed-product-popup__close {

  position: absolute;

  top: 1rem;

  left: 1rem;

  z-index: 10;

  width: 2.5rem;

  height: 2.5rem;

  display: flex;

  align-items: center;

  justify-content: center;

  background: rgba(255, 255, 255, 0.9);

  border-radius: 50%;

  border: 1px solid var(--popup-border);

  cursor: pointer;

  transition: all 0.2s;

}


/* Admin: quick link to edit product in WP admin (pen icon) */

.ed-product-popup__admin-edit {

  position: absolute;

  top: 1rem;

  right: 1rem;

  z-index: 10;

  width: 2.5rem;

  height: 2.5rem;

  display: flex;

  align-items: center;

  justify-content: center;

  background: rgba(255, 255, 255, 0.9);

  border-radius: 50%;

  border: 1px solid var(--popup-border);

  color: #414141;

  cursor: pointer;

  transition: all 0.2s;

  text-decoration: none;

}

.ed-product-popup__admin-edit:hover {

  background: #ffffff;

  color: #1a1a1a;

  transform: scale(1.1);

}



.ed-product-popup__close .Icon {

  width: 15px;

  height: 15px;

}



/* Content */

.ed-product-popup__content {

  display: flex;

  flex-direction: column;

  flex: 1;

  overflow-y: auto;

  overflow-x: hidden;

  -webkit-overflow-scrolling: touch;

  padding-block-end: 65px;

}



/* Image */

.ed-product-popup__image {

  width: 100%;

  max-width: none;

  margin: 0 auto 1.5rem;

  aspect-ratio: 1;

  border-radius: var(--popup-radius);

  overflow: visible;

  background: transparent;

  height: 297px;
  position: relative;

}



.ed-product-popup__image img {

  width: 100%;

  height: 100%;

  object-fit: contain;

  position: relative;

  z-index: 0;

}

body.crop_images .ed-product-popup__image img {

  object-fit: cover;

}

/* ACF תגיות (חדש / רב מכר / קפוא) — יישור ללופ הקטלוג */
.ed-product-popup__image .product-top-acf-badges {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.ed-product-popup__image .product-top-acf-badges .product-top-acf-badge--frozen {
  pointer-events: auto;
}

.ed-product-popup__image .product-top-acf-badges .product-top-acf-badge--new {
    position: absolute;
    top: 10px;
    left: 7px;
    z-index: 1;
    background: #C5FF99;
    border: 1px solid #1B660C;
    color: #090909;
    font-size: 12px;
    width: 49px;
    font-weight: 600;
    height: 17px;
    text-align: center;
    border-radius: 6px 0 6px 6px;
    line-height: 17px;
}

.ed-product-popup__image .product-top-acf-badges .product-top-acf-badge--bestseller {
    position: absolute;
    top: 10px;
    left: 62px;
    z-index: 1;
    background: #FFF799;
    border: 1px solid #66630C;
    color: #090909;
    font-size: 12px;
    width: 49px;
    font-weight: 600;
    height: 19px;
    text-align: center;
    border-radius: 6px 0 6px 6px;
    line-height: 17px;
    box-sizing: border-box;
    padding: 0;
    display: block;
}

.ed-product-popup__image .product-top-acf-badges.no-new .product-top-acf-badge--bestseller {
  left: 7px;
}

.ed-product-popup__image .product-top-acf-badges.no-new .product-top-acf-badge--frozen,
.ed-product-popup__image .product-top-acf-badges.no-bestseller .product-top-acf-badge--frozen {
  left: 66px;
}

.ed-product-popup__image .product-top-acf-badges.no-new.no-bestseller .product-top-acf-badge--frozen {
  left: 7px;
}

.ed-product-popup__image .product-top-acf-badges .product-top-acf-badge--frozen {
    position: absolute;
    top: 11px;
    left: 117px;
    z-index: 1;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
    color: transparent;
    background: url(../images/frozen.svg) center no-repeat;
    width: 17px;
    height: 17px;
}

/* רב מכר (‎badge product-acf-badge--bestseller‎) — עיצוב זהה ל־.product-top-acf-badge--bestseller בקטלוג (main.css ~2768) */
.ed-product-popup__image .product-top-acf-badges .badge.product-acf-badge--bestseller {
position: absolute;
    top: 10px;
    left: 62px;
    z-index: 1;
    background: #FFF799;
    border: 1px solid #66630C;
    color: #090909;
    font-size: 12px;
    width: 49px;
    font-weight: 600;
    height: 19px;
    text-align: center;
    border-radius: 6px 0 6px 6px;
    line-height: 17px;
    box-sizing: border-box;
    padding: 0;
    display: block;
}

.ed-product-popup__image .product-top-acf-badges.no-new .badge.product-acf-badge--bestseller {
  left: 7px;
}

/* Info Section */

.ed-product-popup__info {

  flex: 1;

  margin-bottom: 1rem;

  padding-inline: 15px;

}

/* Shop loop parity: fixed OCWSU unit line + price per 100g/ml under title */

.ed-product-popup__after-title-loop {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  margin-block-end: 10px;
}

.ed-product-popup__after-title-loop .ed-loop-product-ocwsu-stack{
  float: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: row; /* משקל יחידה + מחיר לק״ג בשורה אחת — לא column */
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.ed-product-popup__after-title-loop .ed-loop-product-ocwsu-stack .ed-loop-product-ocwsu-unit,
.ed-product-popup__after-title-loop .ed-loop-product-ocwsu-stack .ed-loop-product-ocwsu-netkg {
  float: none;
  margin: 0;
  padding: 0;
  flex: 1 1 50%;
  min-width: 0;
  max-width: 50%;
  width: auto;
  box-sizing: border-box;
  color: #4d4d4d;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 300;
}

.ed-product-popup__after-title-loop .ed-loop-product-ocwsu-stack .ed-loop-product-ocwsu-unit:only-child {
  flex: 1 1 100%;
  max-width: 100%;
}

.ed-product-popup__after-title-loop .ed-loop-product-ocwsu-stack .ed-loop-product-ocwsu-unit {
  text-align: right;
}

.ed-product-popup__after-title-loop .ed-loop-product-ocwsu-stack .ed-loop-product-ocwsu-netkg {
  text-align: left;
}

.ed-product-popup__after-title-loop .ed-loop-product-ocwsu-stack .ed-loop-product-ocwsu-netkg .woocommerce-Price-amount,
.ed-product-popup__after-title-loop .ed-loop-product-ocwsu-stack .ed-loop-product-ocwsu-netkg .woocommerce-Price-currencySymbol {
  font-size: inherit;
  font-weight: inherit;
}

.ed-product-popup__after-title-loop .ed-loop-product-ocwsu-unit,
.ed-product-popup__after-title-loop .price_per {
  float: none;
  margin: 0;
  padding: 0;
  color: #4d4d4d;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 300;
  text-align: right;
}

.ed-product-popup__after-title-loop .price_per {
  text-align: left;
}


.ed-product-popup__brand {
  margin: 0 0 10px;
}

.ed-product-popup__brand-link {
  color: #4d4d4d;
  font-size: 13px;
  text-decoration: none;
}

.ed-product-popup__brand-link:hover {
  text-decoration: underline; 
}

.ed-product-popup__title-row {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-block-end: 10px;
}

.ed-product-popup__title-row .ed-product-popup__title {
  flex: 1;
  min-width: 0;
  margin: 0;
  margin-block-end: 0;
}

.ed-product-popup__brand-stack {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: 100px;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.ed-product-popup__brand-stack:hover .ed-product-popup__brand-name {
  text-decoration: underline;
}

.ed-product-popup__brand-thumb-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.ed-product-popup__brand-stack .ed-product-popup__brand-thumb-img {
  width: auto;
  max-width: 72px;
  max-height: 48px;
  height: auto;
  object-fit: contain;
}

.ed-product-popup__brand-stack .ed-product-popup__brand-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--main-site-text-color, #4d4d4d);
  line-height: 1.25;
  max-width: 100%;
}

/* לייבלי ACF מתחת לכותרת בלופ (‎.badge.product-acf-badge--*‎) */
.ed-product-popup__info .badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-block-end: 8px;
}

.ed-product-popup__info .badges span.badge {
  color: var(--main-site-text-color, #000);
  font-size: 12px;
  border-radius: var(--radius, 6px);
  background: #eeeeee;
  font-weight: 600;
  padding-inline: 10px;
  margin-block-end: 4px;
}

.ed-product-popup__title {

  font-size: 20px;

  font-weight: 600;

  margin: 0;

  text-align: right;

  color: var(--item-title-color, var(--main-site-text-color-general, #000));

  margin-block-end: 10px;

}



/* Price */

.ed-product-popup__price {

  display: flex;

  justify-content: flex-start;

  flex-direction: column;

  gap: 0;

  margin-bottom: 1rem;

  flex-wrap: wrap;

}



.ed-product-popup__price-label {

  font-size: 0.9rem;

  color: var(--item-price-color, var(--color-primary, #000));
  margin-block-end: 5px;

}



.ed-product-popup__price-sep {

  color: var(--item-price-color, var(--color-primary, #000));

  display: none;

}



.ed-product-popup__price-value {

  font-size: 16px;

  font-weight: 600;

  color: var(--item-price-color, var(--color-primary, #000));

  display: flex;

    gap: 5px;

  flex-wrap: nowrap;

  align-items: baseline;

}

/* WooCommerce wraps HTML in .price; keep amount + OCWSU .units on one line */
.ed-product-popup__price-value .price {

  display: inline-flex;

  flex-wrap: nowrap;

  align-items: baseline;

  gap: 0.35em;

}

.ed-product-popup__price-value .woocommerce-Price-amount {

  display: inline;

}

.ed-product-popup__price-value .price del,
.ed-product-popup__price-value .price ins {

  display: inline;

}

.ed-product-popup__price-value del{
  color: var(--item-sale-price-color, var(--color-primary, #000));
  font-weight: normal;
}



.ed-product-popup__price-value bdi{

  display: inline;


}



.ed-product-popup__price-value .per_100_g_label {

  font-size: 1rem;

}



.ed-product-popup__price-unit {

  font-size: 0.9rem;

  color: var(--popup-secondary);

  font-weight: normal;

}



/* Divider */

.ed-product-popup__divider {

  border: none;

  border-top: 1px solid var(--popup-border);

  margin: 1.5rem 0;

  display: none;

}



/* Description */

.ed-product-popup__description {

  font-size: 16px;

  line-height: 1.6;

  color: var(--popup-text);

}

.ed-product-popup__description h1,
.ed-product-popup__description h2,
.ed-product-popup__description h3,
.ed-product-popup__description h4,
.ed-product-popup__description li,
.ed-product-popup__description span{
      font-size: 16px;
    line-height: 1.6;
    color: var(--popup-text);
    margin: 0 0 0.75rem;
    font-weight: normal;
}

.ed-product-popup__description p {

  margin: 0 0 0.75rem;

}



.ed-product-popup__description p:last-child {

  margin-bottom: 0;

}



/* Options */

.ed-product-popup__options {


  border-top: 1px solid #e9ebee;

  padding-block-start: 15px;

  margin-block-start: 15px;

}



.ed-product-popup__options-title {

  font-size: 1.1rem;

  font-weight: 600;

  margin: 0 0 1rem;

  color: var(--popup-text);

}



.ed-product-popup__option-group {

  margin-bottom: 2rem;

}



.ed-product-popup__option-group:last-child {

  margin-bottom: 0;

}



.ed-product-popup__option-label {

  display: block;

  font-size: 18px;

  font-weight: 500;

  margin-bottom: 0.75rem;

  color: var(--popup-text);

}



/* Radio Group */

.ed-product-popup__radio-group {

  display: flex;

  flex-direction: column;

  gap: 0.75rem;

}





.ed-product-popup__radio {

  position: relative;

  display: flex;

  align-items: center;

  padding-right: 15px;

  cursor: pointer;

}

.ed-product-popup__radio.is-out-of-stock{
  opacity: 0.6;
}

.ed-product-popup__radio::before {

  content: '';

  position: absolute;

  right: 0;

  top: 50%;

  width: 14px;

  height: 14px;

  border: 2px solid #bdbdbd;

  border-radius: 50%;

  background: #fff;

  box-sizing: border-box;

  transform: translateY(-50%);

}



.ed-product-popup__radio::after {

  content: '';

  position: absolute;

  top: 50%;

  right: 3px;

  width: 8px;

  height: 8px;

  border-radius: 50%;

  background: var(--color-primary,var(--main-site-text-color, #000));

  transform: translateY(-50%) scale(0);

  transform-origin: center;

  transition: transform 0.2s ease;

}



.ed-product-popup__radio:has(input:checked)::before {

  border-color: var(--color-primary);

}



.ed-product-popup__radio:has(input:checked)::after {

  transform: translateY(-50%) scale(1);

}



.ed-product-popup__radio input[type="radio"] {

  margin: 0;

  margin-block-start: 1px;

  display: none;

}



.ed-product-popup__radio-label {

  display: flex;

  align-items: center;

  padding: 0;

  border: none;

  border-radius: 0;

  background: transparent;

  transition: all 0.2s;

  flex: 1;

  font-size: 16px;

  color: var(--popup-text);

  padding-inline-start: 5px;

}



.ed-product-popup__radio:hover .ed-product-popup__radio-label {

  border-color: var(--popup-primary);

}



/* Error Message */

.ed-product-popup__error {

  display: none;

  color: var(--popup-error);

  font-size: 0.9rem;

  margin-top: 0.5rem;

  padding: 0.5rem;

  background: rgba(220, 53, 69, 0.1);

  border-radius: var(--popup-radius);

  text-align: center;

}



.ed-product-popup__error-message {

  display: block;

  color: var(--popup-error, #d32f2f);

  font-size: 0.875rem;

  margin: 0.75rem 0;

  padding: 0.75rem 1rem;

  background: rgba(220, 53, 69, 0.1);

  border: 1px solid rgba(220, 53, 69, 0.3);

  border-radius: var(--popup-radius, 0.5rem);

  text-align: center;

  font-weight: 500;

  animation: errorShake 0.4s ease-out;

}



@keyframes errorShake {

  0%, 100% { transform: translateX(0); }

  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }

  20%, 40%, 60%, 80% { transform: translateX(5px); }

}



/* Related Products */

.ed-product-popup__related {

  margin-top: 2rem;

  padding-top: 1.5rem;

  border-top: 1px solid var(--popup-border);

}



.ed-product-popup__related-title {

  font-size: 1.1rem;

  font-weight: 600;

  margin: 0 0 1rem;

  color: var(--popup-text);

}



.ed-product-popup__related-list {

  display: flex;

  flex-direction: column;

  gap: 1rem;

}



.ed-product-popup__related-item {

  display: flex;

  align-items: center;

  gap: 1rem;

  padding: 0.75rem;

  border: 1px solid var(--popup-border);

  border-radius: var(--popup-radius);

  background: #ffffff;

}



.ed-product-popup__related-item img {

  width: 60px;

  height: 60px;

  object-fit: cover;

  border-radius: calc(var(--popup-radius) / 2);

}



.ed-product-popup__related-info {

  flex: 1;

  display: flex;

  flex-direction: column;

  gap: 0.25rem;

}



.ed-product-popup__related-name {

  font-size: 0.9rem;

  font-weight: 500;

  color: var(--popup-text);

}



.ed-product-popup__related-price {

  font-size: 0.85rem;

  color: var(--popup-primary);

  font-weight: 600;

}



.ed-product-popup__related-add {

  width: 2.5rem;

  height: 2.5rem;

  display: flex;

  align-items: center;

  justify-content: center;

  background: var(--popup-primary);

  color: #ffffff;

  border: none;

  border-radius: 50%;

  cursor: pointer;

  transition: all 0.2s;

  font-size: 1.5rem;

  line-height: 1;

  padding: 0;

}



.ed-product-popup__related-add:hover {

  background: var(--popup-primary-hover);

  transform: scale(1.1);

}



.ed-product-popup__related-add.is-added {

  background: #28a745;

}



/* Footer (Sticky) */

.ed-product-popup__footer {

  position: absolute;

  bottom: 0;

  border-top: none;

  box-shadow: none;

  display: flex;

  gap: 1rem;

  width: 100%;

  box-sizing: border-box;

  background: #fff;

  padding: 1rem;

}



/* Quantity Input */

.ed-product-popup__quantity {

  width: 125px;

}



.ed-product-popup__quantity .qty-wrap {

display: flex;

    align-items: center;

    position: relative;

    flex: 1 1 auto;

    min-width: 0;

    text-align: center;

}



/* Quantity Toggle Buttons */

.ed-product-popup__quantity-toggle {

  display: flex;

  gap: 0;

  margin-bottom: 0;

  padding: 0;

  background: rgba(0, 0, 0, 0.05);

  border-radius: var(--popup-radius, 8px);

}



.ed-product-popup__toggle-btn {

  flex: 1;

  padding: 0;

  border: 2px solid transparent;

  border-radius: var(--radius, 8px);

  background: transparent;

  color: var(--popup-text, #333);

  font-size: 0.95rem;

  font-weight: 500;

  cursor: pointer;
  width: 50%;
  padding-inline: 10px;

  transition: all 0.2s;

  text-align: center;

}
.ed-product-popup__option-label{
  font-weight:bold;
}


.ed-product-popup__toggle-btn:hover {

  background: rgba(0, 0, 0, 0.05);

}



.ed-product-popup__toggle-btn.is-active {

  background: var(--popup-primary, #007bff);

  color: #ffffff;

  border-color: var(--popup-primary, #007bff);

}



/* משקל משתנה ליחידה — אותו סגנון כפתורי toggle כמו יח'/ק"ג */

.ed-product-popup__unit-weight-toggle {

  display: inline-flex;

  flex-wrap: wrap;

  align-items: center;

  gap: 0.5rem;

  width: fit-content;

  max-width: 100%;

  box-sizing: border-box;

  margin-bottom: 0;

  padding: 0;

  background: transparent;

}



.ed-product-popup__unit-weight-toggle .ed-product-popup__toggle-btn {

  position: relative;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  flex: 0 0 auto;

  box-sizing: border-box;

  background: rgba(0, 0, 0, 0.05);

  border-color: transparent;
  width: auto;

}



.ed-product-popup__unit-weight-toggle .ed-product-popup__toggle-btn:hover:not(:has(input:checked)) {

  background: rgba(0, 0, 0, 0.08);

}



.ed-product-popup__unit-weight-toggle .ed-product-popup__toggle-btn input[type="radio"] {

  position: absolute;

  opacity: 0;

  width: 0;

  height: 0;

  margin: 0;

  pointer-events: none;

}



.ed-product-popup__unit-weight-toggle .ed-product-popup__toggle-btn:has(input:checked) {

  background: var(--popup-primary, #007bff);

  color: #ffffff;

  border-color: var(--popup-primary, #007bff);

}



.ed-product-popup__quantity-input {

display: flex;

    align-items: center;

    justify-content: center;

    gap: 0;

    padding-inline: 0;

    border: none;

    border-radius: inherit;

    background: #ffffff;

    height: 40px;

}



.ed-product-popup__qty-btn {

height: 30px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: transparent;

    border: none;

    border-radius: 50%;

    cursor: pointer;

    font-size: 1.25rem;

    font-weight: 600;

    transition: all 0.2s;

    padding: 0;

    background:var(--color-primary,var(--main-site-text-color, #000));
    color: var(--main-text-color,#fff);

    flex: 0 0 30px;

    min-width: 30px;

}



.ed-product-popup__qty-btn:hover {

    background: var(--color-primary-hover, var(--main-site-text-color, #000));
    color: var(--main-text-color-hover, #fff);

}



.ed-product-popup__qty-btn:disabled {

  opacity: 0.5;

  cursor: not-allowed;

}



.ed-product-popup__qty-input {

    flex: 1;

    font-size: 14px;

    font-weight: 500;

    border: none;

    background: transparent;

    padding: 0;

    min-width: 0;

    appearance: textfield;

    -moz-appearance: textfield;

    text-align: right;

    padding-inline: 5px;

}



.ed-product-popup__quantity-input.simple .ed-product-popup__qty-input {

  text-align: center;

  padding-inline-start: 0;

}



.ed-product-popup__qty-input::-webkit-outer-spin-button,

.ed-product-popup__qty-input::-webkit-inner-spin-button {

  -webkit-appearance: none;

  margin: 0;

}



.ed-product-popup__qty-label {

font-size: 14px;

    margin-right: 0;

    position: absolute;

    left: 9px;

        font-weight: 500;

}



/* Baker note — visible label + textarea */

.ed-product-popup__baker-note {

  position: relative;

  width: 100%;

  margin-top: 0.75rem;

  display: flex;

  flex-direction: column;

  gap: 0.35rem;

}

.ed-product-popup__baker-note-label {

  display: block;

  font-size: 0.9rem;

  font-weight: 500;

  color: var(--popup-text, #333);

}

.ed-product-popup__baker-note-input {

  width: 100%;

  padding: 0.65rem 0.75rem;

  border: 1px solid var(--popup-border, #e6e6e6);

  border-radius: var(--popup-radius, 12px);

  font-size: 0.95rem;

  font-family: inherit;

  line-height: 1.35;

  text-align: right;

  color: #333;

  background: #fff;

  box-sizing: border-box;

}

.ed-product-popup__baker-note-input:focus {

  outline: none;

  border-color: var(--popup-primary, var(--color-primary, #007bff));

  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);

}



/* Add to Cart Button */

.ed-product-popup__add-btn {

    width: 100%;

    padding: 0;

    background:var(--color-primary,var(--main-site-text-color, #000));
    color: var(--main-text-color,#fff);

    border: none;

    border-radius: var(--radius);

    font-size: 16px;

    font-weight: normal;

    cursor: pointer;

    transition: all 0.2s;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 0.5rem;

    font-family: inherit;

    height: 40px;

}



.ed-product-popup__add-btn:hover:not(:disabled) {

    background:var(--color-primary-hover, var(--main-site-text-color, #000));
    color: var(--main-text-color-hover,#fff);

  transform: translateY(-2px);

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

}



.ed-product-popup__add-btn:disabled,

.ed-product-popup__add-btn.is-disabled {

  opacity: 0.5;

  cursor: not-allowed;

  transform: none;

  
}



.ed-product-popup__add-btn.is-loading {

  position: relative;

  color: transparent;

}



.ed-product-popup__add-btn.is-loading::after {

  content: '';

  position: absolute;

  width: 1.5rem;

  height: 1.5rem;

  border: 2px solid #ffffff;

  border-top-color: transparent;

  border-radius: 50%;

  animation: spin 0.6s linear infinite;

}



@keyframes spin {

  to { transform: rotate(360deg); }

}



/* Body Lock */

body.popup-open {

  overflow: hidden;

}



/* Desktop Styles */

@media (min-width: 768px) {

  .ed-product-popup {

    align-items: center;

    padding: 2rem;

  }



  .ed-product-popup__container {

    max-width: 445px;

    width: 100%;

    max-height: 90vh;

    border-radius: var(--popup-radius);

    transform: translateY(30px);

    opacity: 0;

    display: flex;

    flex-direction: column;

    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),

                opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  }



  .ed-product-popup.is-open .ed-product-popup__container {

    transform: translateY(0);

    opacity: 1;

  }



  .ed-product-popup__image {

    width: 100%;

    margin: 0 auto 1.5rem;

  }



  .ed-product-popup__info {

    flex: 1;

    overflow-y: visible;

    overflow-x: hidden;

    display: flex;

    flex-direction: column;

    overflow: visible;

  }



  .ed-product-popup__options {

    flex: 1;

  }

}



.ed-product-popup__container button.default-close-btn {

  border-radius: 100%;
background: #E4E4E4 url(../images/pop-close-product.svg) center no-repeat;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-size: 11px;

  transition: background-color .12s ease-out;

  position: absolute;

  inset: 0;

  width: 40px;

  height: 40px;

  cursor: pointer;

  right: 10px;

  left: auto;

  top: 10px;

}

.ed-product-popup__container button.default-close-btn ~ .ed-product-popup__admin-edit {

  right: auto;

  left: 10px;

  top: 10px;

}



/* Product Quantity Badge */

.ed-product-quantity-badge {

  position: absolute;

  top: 0.5rem;

  right: 0.5rem;

  background: var(--popup-primary);

  color: #ffffff;

  padding: 0.25rem 0.5rem;

  border-radius: 1rem;

  font-size: 0.75rem;

  font-weight: 600;

  z-index: 10;

  animation: badgeAppear 0.3s ease-out;

}



@keyframes badgeAppear {

  from {

    opacity: 0;

    transform: scale(0.5);

  }



  to {

    opacity: 1;

    transform: scale(1);

  }

}



@media only screen and (max-width: 768px) {

  .ed-product-popup__container button.default-close-btn {

    left: 10px;

  }

}



@media only screen and (max-width: 650px) {



  .ed-product-popup__unit-weight-toggle {

    flex-direction: row;

    flex-wrap: wrap;

    gap: 0.5rem;

  }



  .ed-product-popup__quantity-toggle .ed-product-popup__toggle-btn {

    padding-inline: 5px;

  }

}