/* מצב לא קיים כלל */
.variation-box.disabled,
.color-swatch.disabled {
  opacity: 0.3;
  pointer-events: none;
  text-decoration: line-through;
  position: relative;
}

/* מצב אזל מהמלאי */
.variation-box.out-of-stock {
  opacity: 0.5;
  pointer-events: none;
  border: 2px solid #6db17d;
  position: relative;
}
/* מצב כלל לא אפשרי או אזל */
.color-swatch.disabled,
.color-swatch.out-of-stock {
  position: relative;
  opacity: 0.4;
  pointer-events: none;
  filter: grayscale(100%);
  border: 2px solid #aaa;
  transition: all 0.2s ease-in-out;
}

/* האיקס תמיד קיים אבל מוסתר – נטען מראש */
.color-swatch::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

/* הצגת האיקס במצבים שאין בחירה חוקית */
.color-swatch.disabled::after,
.color-swatch.out-of-stock::after {
  background-image: 
    linear-gradient(45deg, transparent 48%, rgba(0,0,0,0.2) 50%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(0,0,0,0.2) 50%, transparent 52%);
  opacity: 1;
}

/* מצב מוסתר */
.unavailable-message:empty,
.woocommerce-variation-availability:empty {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.8s ease, max-height 0.8s ease, transform 0.8s ease !important;
  transform: translateY(-8px);
}

/* מוצג בעדינות */
.unavailable-message:not(:empty),
.woocommerce-variation-availability:not(:empty) {
  opacity: 1;
  max-height: 500px;
  transform: translateY(0);
  transition: opacity 0.8s ease, max-height 0.8s ease, transform 0.8s ease !important;
}

/* מצב לא קיים כלל - לתמונות */
.image-swatch.disabled {
    opacity: 0.3;
    pointer-events: none;
    position: relative;
}

/* מצב אזל מהמלאי - לתמונות */
.image-swatch.out-of-stock {
    opacity: 0.5;
    pointer-events: none;
    border: 2px solid #6db17d;
    position: relative;
}

/* מצב כלל לא אפשרי או אזל - לתמונות */
.image-swatch.disabled,
.image-swatch.out-of-stock {
    position: relative;
    opacity: 0.4;
    pointer-events: none;
    filter: grayscale(100%);
    border: 2px solid #aaa;
    transition: all 0.2s ease-in-out;
}

/* האיקס תמיד קיים אבל מוסתר – נטען מראש - לתמונות */
.image-swatch::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* הצגת האיקס במצבים שאין בחירה חוקית - לתמונות */
.image-swatch.disabled::after,
.image-swatch.out-of-stock::after {
    background-image: 
        linear-gradient(45deg, transparent 48%, rgba(0,0,0,0.4) 50%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(0,0,0,0.4) 50%, transparent 52%);
    opacity: 1;
}

/* סגנון בסיסי לתמונות */
.image-swatch {
    border: 2px solid transparent;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.image-swatch:hover:not(.disabled):not(.out-of-stock) {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.image-swatch.selected:not(.disabled):not(.out-of-stock) {
    border-color: #000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

/* מצב לא קיים כלל - לרשימות נפתחות */
.custom-option.disabled,
.custom-option.out-of-stock {
    pointer-events: none !important;
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    background-color: #f8f8f8 !important;
}

.stock-note {
    color: #d63384;
    font-style: italic;
    font-size: 0.9em;
    font-weight: normal;
}

/* שיפור העיצוב של סמל המטבע */
.woocommerce-Price-currencySymbol {
    margin-left: 4px;
}