// NewCard.scss
.new-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  .usps {
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: $accent-color;
    width: auto;
    color: white;
    letter-spacing: 1px;
    font-size: 11px;
    padding: 3px 9px 3px 9px;
    border-radius: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 210px;
  }
  .usps1 {
    background-color: #7b0323;
    top: 30px;
  }
  &__image {
    width: 100%;
    height: 190px;
    object-fit: cover;
  }

  &__content {
    padding: 0px 12px 10px 12px;
  }

  &__header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    .updated {
      font-size: 14px;
      font-weight: bold;
      color: var(--accent-color1);
      //   color: gray;
    }
  }

  &__title {
    font-size: 18px;
    font-weight: 500;
    margin-top: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  &__details {
    font-size: 14px;
    color: gray;
    margin-bottom: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
    svg {
      font-size: 16;
    }
  }
  .price {
    font-size: 16px;
    font-weight: 500;
  }
  &__button-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap; /* Prevent the buttons from wrapping */
    gap: 8px; /* Spacing between buttons */

    button {
      flex: 1; /* Allow buttons to take up equal space */
      margin: 2px; /* Ensure consistent margins between buttons */
      font-size: 12px;
      padding: 10px;
      border: none;
      border-radius: 4px;
      background-color: #e5f0f5;
      color: black !important;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 2px;
      justify-content: center;

      svg {
        color: $accent-color;
        font-size: 16px;
      }

      &:hover {
        background-color: $accent-color;
        color: white !important;
        svg {
          color: white !important;
        }
      }
    }
  }
}
