.btn1 {
  padding: 15px 30px;
  text-align: center;
  text-transform: uppercase;
  transition: 0.5s;
  background-size: 200% auto;
  color: white;
  border-radius: 10px;
  display: block;
  border: 0px;
  font-weight: 700;
  box-shadow: 0px 0px 14px -7px #18509E;
  background-image: linear-gradient(45deg, #D92127 0%, #18509E  51%, #D92127  100%);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  width: fit-content;
}

.btn1:hover {
  background-position: right center;
  /* change the direction of the change here */
  color: #fff;
  text-decoration: none;
}

.btn1:active {
  transform: scale(0.95);
}

.btn-1 {
  padding: 0.5rem 2rem;
  text-align: center;
  border-radius: 50rem;
  display: inline-block;
  font-family: var(--body-font);
  background: var(--primary-color);
  font-size: 16px;
  font-weight: 500;
  position: relative;
  color: #fff;
  transition: all 0.3s;
  overflow: hidden;
  z-index: 1;
}
.btn-1::after {
  content: " ";
  width: 0%;
  height: 100%;
  background: var(--black-color);
  position: absolute;
  transition: all 0.4s ease-in-out;
  right: 0;
  top: 0;
  z-index: -3;
}
.btn-1 svg {
  fill: #fff;
  transition: all 0.5s;
}
.btn-1 span {
  margin-left: 8px;
  font-size: 1.5rem;
  width: 100%;
  z-index: 1;
  transition: all 0.4s ease-in-out;
}
.btn-1:hover {
  color: #fff;
  background-color: var(--primary-color);
}
.btn-1:hover::after {
  right: auto;
  left: 0;
  width: 100%;
}
.btn-1:hover svg {
  fill: currentColor;
  fill: #fff;
  transform: translate(5px);
}
.btn-1:hover span {
  color: #fff;
}






.add-to-cart-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0px 20px;
    border-radius: 5px;
    height: 50px;
  gap: 15px;
  background-color: var(--secondary-color);
  outline-offset: -3px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: 400ms;
}

.add-to-cart-btn .text {
  color: var(--white-color);
  font-weight: 700;
  font-size: 1em;
  transition: 400ms;
  margin: 0;
  display: block;
}

.add-to-cart-btn svg path {
  transition: 400ms;
}

.add-to-cart-btn:hover {
  background-color: var(--black-color);
}
