.x1d3 {
  overflow: hidden;
  position: relative;
}
.x1-inner {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease-in-out;
  padding: 0 10px;
}
.x1d1 {
  border: 1px solid #e5e5e5;
  padding: 10px;
  width: calc((100% - (4 * 20px)) / 5);
  flex-shrink: 0;

  align-items: center;
  /* justify-content: flex-start; */
  justify-content: space-between;
  gap: 10px;

  position: relative;
  perspective: 1000px;
}
.x1i1 {
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease-in-out;
}
.x1a1 {
  font-size: 14px;
  color: var(--color5);
  font-weight: 600;
}
.x1s1 {
  font-size: 18px;
  color: var(--color3);
  font-weight: 600;
  display: inline-block;
  padding: 15px 0;
}
.x1a2 {
  width: 100%;
  height: 35px;
  font-size: 14px;
  color: var(--color4);
  background-color: var(--color5);
  display: flex;
  text-transform: uppercase;
  font-weight: 600;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}
.x1a2:hover {
  background-color: var(--color6);
  color: var(--color5);
}
.x1i2 {
  width: 28px;
  padding: 5px;
  border-radius: 50%;
  background-color: var(--color1);
  border: 1px solid black;
}
.x1d2 {
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
.x1d3:hover .x1d2 {
  visibility: visible;
  opacity: 1;
}
.x1d2 button {
  background: none;
  border: none;
  cursor: pointer;
}
.x1s2 {
  position: absolute;
  top: 5px;
  left: 12px;
  font-size: 14px;
  background-color: var(--color3);
  color: white;
  padding: 2px 10px;
  border-radius: 10px;
}
.x1s2.out-of-stock {
  background-color: #e53935 !important;
}
.x1d1:hover .x1i1 {
  transform: rotateX(5deg);
}

@media (max-width: 1240px) {
  .x1d1 {
    width: calc((100% - (3 * 20px)) / 4);
  }
}

@media (max-width: 992px) {
  .x1d1 {
    width: calc((100% - (2 * 20px)) / 3);
  }
}

@media (max-width: 650px) {
  .x1d1 {
    width: calc((100% - (1 * 20px)) / 2);
  }
}
@media (max-width: 480px) {
  .x1d1 {
    width: 100%;
    width: calc(100% - 0px);
  }
}
