.base-table {
  margin-bottom: 40px;
}

.base-table__header-text {
    margin-bottom: 16px;
    
    .wishlist-button {
        display: none;
    }
    
    .form-submit {
          padding: 8px 16px;
        border: 1px solid #3a19a8;
        border-radius: 12px;
        background-color: #fff;
        color: #3a19a8;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        min-width: 100px;
        text-align: center;
         background-color: transparent;
        color: #3a19a8;
        border-color: #3a19a8;
    }
    
    .form-submit:hover {
        background-color: #3a19a8;
        color: #fff;
      }
}

.base-table__row {
  display: grid;
  grid-template-columns: minmax(auto, 1310px) 108px 110px 20px;
  gap: 16px;
  padding: 12px 8px;
  align-items: center;
  border-bottom: 1px solid #eee;
}

.base-table__row_grey {
  border-bottom: unset;
  background-color: #eee;
  grid-template-columns: repeat(2, 1fr);
  align-items: baseline;
}
.base-table__info-link {
  font-weight: 500;
  transition: color 0.3s ease;
}

.base-table__info-link:hover {
  color: #3a19a8;
}

.base-table__header {
  background-color: #3a19a8;
  color: #fff;
  border-radius: 12px 12px 0 0;
  font-weight: 600;
}

.base-table__counter {
  display: grid;
  grid-template-columns: 26px 1fr 26px;
  gap: 6px;
  padding: 5px 6px;
  align-items: center;
  border: 1px solid #3c1baa;
  border-radius: 12px;
  height: 36px;
}

.base-table__counter-icon-inner {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100%;
  cursor: pointer;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.base-table__counter-icon-decrease {
  background-color: #e4e7eb;
  color: #3c1baa;
}
.base-table__counter-icon-decrease:hover {
      background-color: #3c1baa;
  color: #fff;
}


.base-table__counter-icon-increase {
  background-color: #3c1baa;
  color: #fff;
}
.base-table__counter-icon-increase:hover {
      background-color: #e4e7eb;
  color: #3c1baa;
}

.base-table__counter-unit {
  text-align: center;
  font-size: 16px;
  line-height: 1;
}

.base-table__price {
  display: grid;
  gap: 6px;
}

.base-table__price-total {
  line-height: 1;
}

.base-table__price-unit {
  font-size: 12px;
  line-height: 1;
  color: #919eab;
}

.base-table__row-icon {
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.base-table__row-icon:hover {
  transform: scale(1.02);
}

.base-table__row_total {
  .base-table__price-total {
    font-weight: 500;
    font-size: 20px;
    line-height: 1;
    letter-spacing: 0px;

    grid-area: 2 / 3 / 3 / 5;
  }
  .base-table__price-total:first-child {
    grid-area: 2 / 1 / 3 / 3;
    text-align: end;
  }
}

.base-table__form-title {
  font-weight: 500;

  font-size: 20px;
  margin-bottom: 16px;
}

.base-tabel__btn {
  margin-top: 24px;
  padding: 11px 22px;
  background-color: #3a19a8;
  border-radius: 16px;
  color: #fff;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.base-tabel__btn:hover {
  background-color: #fff;
  color: #3a19a8;
}

@media (max-width: 767px) {
  .base-table__header {
    display: none;
  }
  .base-table_secondary {
    .base-table__header {
      display: block;
    }

    .base-table__row {
      margin-bottom: 0;
    }
  }
  .base-table__row {
    grid-template-columns: 1fr;
    gap: 12px;

    margin-bottom: 12px;
  }

  .base-table__text,
  .base-table__counter,
  .base-table__price {
    position: relative;
    padding-left: 100px;
  }

  .base-table__text::before,
  .base-table__counter::before,
  .base-table__price::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #888;
    font-weight: 500;
  }

  .base-table__row-icon {
    justify-self: end;
  }

  .base-table__counter {
    border: unset;
  }

  .base-table__row_total {
    .base-table__price-total {
      font-size: 16px;

      grid-area: unset;
    }
    .base-table__price-total:first-child {
      grid-area: unset;
      text-align: left;
    }
  }
}

.base-table__actions {
    .form-wrapper {
         display: flex;
        gap: 8px;
        align-items: center;
        flex-wrap: wrap;
    }

}

.base-table__actions .button {
  padding: 8px 16px;
  border: 1px solid #3a19a8;
  border-radius: 12px;
  background-color: #fff;
  color: #3a19a8;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 100px;
  text-align: center;
}

.base-table__actions .button:hover {
  background-color: #3a19a8;
  color: #fff;
  transform: translateY(-1px);
}

.base-table__actions .button:active {
  transform: translateY(0);
}

/* Специфичные стили для кнопки "В корзину" */
.base-table__actions input[value="В корзину"] {
  background-color: #3a19a8;
  color: #fff;
}

.base-table__actions input[value="В корзину"]:hover {
  background-color: #2d1380;
  border-color: #2d1380;
}

/* Специфичные стили для кнопки "Удалить" */
.base-table__actions input[value="Удалить"] {
  background-color: transparent;
  color: #3a19a8;
  border-color: #3a19a8;
}

.base-table__actions input[value="Удалить"]:hover {
  background-color: #3a19a8;
  color: #fff;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 767px) {
  .base-table__actions {
    flex-direction: column;
    gap: 6px;
    padding-left: 100px;
    position: relative;
  }
  
  .base-table__actions::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #888;
    font-weight: 500;
  }
  
  .base-table__actions .button {
    width: 100%;
    min-width: unset;
  }
}
