.single-product {
  background: var(--background);
  color: var(--color);
  display: block;
  overflow: hidden;

  .single-product__submit:disabled {
    opacity: 0.5;
    pointer-events: none;
  }

  .single-product__submit svg {
    color: #fff;
    height: auto;
    left: 50%;
    opacity: 0;
    position: absolute;
    top: 50%;
    translate: -50% -50%;
    width: 1.25em;
  }

  &[processing] .single-product__submit {
    opacity: 0.5;
    pointer-events: none;

    &::before,
    span {
      opacity: 0;
    }

    svg {
      opacity: 1;
    }
  }

  .single-product__container {
    --info-size: 59rem;
    --gap: 7rem;
    align-items: center;
    display: grid;
    gap: var(--gap);
    grid-template-columns: var(--info-size) calc(100% - (var(--info-size) + var(--gap)));
    padding-left: 8.75%;

    .single-product__title {
      font-size: 4.8rem;
      line-height: 1.2;
      margin-bottom: 6rem;
    }

    .single-product__description {
      display: flex;
      flex-direction: column;
      font-size: 1.6rem;
      gap: 2rem;
      line-height: 1.7;
    }

    .single-product__form {
      counter-reset: num;
      margin-top: 4rem;

      .single-product__field {
        position: relative;

        .price {
          margin-left: 20px;
          border-left: 1px solid white;
          padding-left: 10px;
          color: white;
          font-size: 1.6rem;
        }

        &:has(.single-product__variant)::after {
          --size: 0.5em;
          border: 0px solid currentColor;
          border-width: 0 0 2px 2px;
          border-radius: 2px;
          content: "";
          height: var(--size);
          pointer-events: none;
          position: absolute;
          right: 1em;
          rotate: -45deg;
          top: calc(50% - var(--size));
          width: var(--size);
        }

        &:has(.single-product__variant.hide-arrow__novariant)::after {
          display: none;
        }
      }



      .single-product__variant {
        appearance: none;
        -webkit-appearance: none;
        background: #fff;
        border-radius: 0.625em;
        border: 1px solid #d6d6d6;
        cursor: pointer;
        font-size: 1.6rem;
        font-weight: 300;
        height: 3.5em;
        line-height: 1.4;
        padding: 0.875em 2.75em 0.875em 1em;
        width: 100%;
      }

      .btn {
        align-items: center;
        background-color: #141b4d;
        border: none;
        border-radius: 1em;
        color: #fff;
        counter-increment: num;
        cursor: pointer;
        display: flex;
        font-size: 1.6rem;
        font-weight: 500;
        justify-content: center;
        line-height: 1;
        margin-top: 1.5625em;
        max-width: 18.125em;
        padding: 1.5em;
        position: relative;
        text-decoration: none;
        transition: all .2s ease;
        width: 100%;

        &:hover {
          background: #434971;
        }
      }

      .single-product__field>.btn::before {
        content: "Step " counter(num) ": ";
        margin-right: 0.3em;
      }
    }

    .single-product__gallery-swipper:not(.swiper-initialized) .swiper-wrapper {
      gap: 2.5rem;
    }

    .single-product__gallery-slide {
      border-radius: 1rem;
      overflow: hidden;
      width: var(--media-size);

      .single-product__gallery-image {
        height: var(--media-size);
        object-fit: contain;
        object-position: center;
        width: 100%;
      }
    }

    .single-product__gallery-nav {
      display: flex;
      gap: 1.5rem;
      justify-content: end;
      margin-top: 3rem;
      padding: 0 22%;

      .single-product__gallery-button {
        all: unset;
        color: var(--color);

        &:focus-visible {
          outline: -webkit-focus-ring-color auto 1px;
        }
      }
    }
  }

  @media (width <=1024px) {
    .single-product__container {
      --info-size: 37rem;
    }
  }

  @media (width <=1024px) {
    .single-product__container {
      --info-size: 37rem;
    }
  }

  @media (width <=991px) {

    .swiper,
    .swiper-wrapper {
      overflow: visible;
    }

    .single-product__container {
      --gap: 4rem;
      grid-template-columns: 100%;
      padding: 0 2rem;

      .single-product__info {
        order: 1;
      }

      .single-product__form .btn {
        max-width: 15.625em;
        flex-wrap: wrap;
        gap: 10px;
      }

      .single-product__gallery-nav {
        display: none;
      }
    }
  }
}