.variations {
  position: relative;
}
.reset_variations {
  position: absolute;
  right: 50%;
}
.variations select {
  display: none !important;
}

.smv-attr-swatches {
  display: flex;
  gap: 10px;
}

.smv-attr-item {
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  font-size: .75rem;
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 6px;
  padding: 0 25px 0 15px;
  cursor: pointer;
  box-shadow: -2px 2px rgba(0, 0, 0, .7);
  width: max-content;
}

/* حالت انتخاب شده برای سواچ‌های متنی */
.smv-attr-item.active {
  background-image: url("#");
  background-size: 15px;
  background-position: 95%;
  background-repeat: no-repeat;
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, .7);
}

/* سواچ رنگ */
.smv-color-item {
  width: 30px;
  padding: 0;
  border-radius: 20%;
}

/* حالت انتخاب شده برای رنگ‌ها */
.smv-color-item.active {
  background-image: url(https://new.darochi.com/wp-content/uploads/2025/12/checked.webp);
  background-size: 80%;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, .7);
}

/* تولتیپ اسم رنگ */
.smv-color-item .smv-attr-name {
  position: absolute;
  top: -35px;
  border: 1px solid rgba(0, 0, 0, .1);
  background-color: #fff;
  z-index: 2;
  border-radius: 20%;
  padding: 0 10px;
  font-size: .7rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: .3s ease;
}
.smv-color-item:hover .smv-attr-name {
  opacity: 1;
  transform: none;
}

.smv-attr-item.disabled {
  pointer-events: none;
  opacity: .6;
  box-shadow: none;
}

.variations th.label {
  text-align: right;
  padding: 10px 0;
}
.variations td {
  padding: 10px 0;
}
.variations th.label::after {
  content: ":";
}
