.new-arrival-tabs-section {
  .new-arrival__heading {
    margin: 0 0 8px;
    text-transform: uppercase;
    text-align: left;
    font-size: 35px;
    line-height: normal;

    @media screen and (max-width: 798px) {
      font-size: 26px;
      margin: 0 0 16px;
    }
  }

  .new-arrival__subheading {
    text-align: left;
    font-size: 18px;
    line-height: 24px;
    margin: -12px 0 12px;

    p {
      margin: 0;
    }

    @media screen and (max-width: 798px) {

      font-size: 14px;

    }
  }

  .new-arrival__footer {
    display: flex;
    justify-content: center;
    margin-top: 32px;

    .action_button {
      width: auto;
      margin: 0;
    }

    @media screen and (max-width: 798px) {
      margin-top: 24px;
    }
  }

  .new-arrival__inner {
    padding: 0;

    @media screen and (min-width: 1025px) and (max-width: 1279px) {
      padding: 0 32px;
    }
  }

  .new-arrival__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;

    @media screen and (max-width: 798px) {
      margin-bottom: 20px;
    }
  }

  .new-arrival__tabs {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0;
    padding: 0 0 8px;
    list-style: none;


    &::-webkit-scrollbar {
      display: none;
    }

    @media screen and (max-width: 798px) {
      gap: 18px;
    }
  }

  .new-arrival__tab {
    position: relative;
    background: none;
    border: 0;
    box-shadow: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
    margin: 0;
    font-size: 16px;
    height: auto;
    min-height: auto;


    text-transform: uppercase;
    white-space: nowrap;
    opacity: .75;
    cursor: pointer;
    transition: opacity .2s, border-color .2s;

    &:hover,
    &:focus,
    &:active {
      background: none;
      box-shadow: none;
      outline: none;
    }

    &:hover,
    &.is-active {
      opacity: 1;
    }

    /* Underline grows from the centre */
    &::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -8px;
      width: 100%;
      height: 2px;
      background: currentColor;
      transform: scaleX(0);
      transform-origin: center;
      transition: transform .3s ease;
    }

    &.is-active::after {
      transform: scaleX(1);
    }

    @media screen and (max-width: 798px) {
      font-size: 15px;
    }
  }

  .new-arrival__arrows {
    display: flex;
    gap: 12px;
    flex-shrink: 0;

    @media screen and (max-width: 798px) {
      display: none;
    }
  }

  .new-arrival__arrow {
    background: none;
    border: 0;
    padding: 4px;
    margin: 0;
    line-height: 0;
    cursor: pointer;
    transition: opacity .2s;

    &[disabled] {
      opacity: .3;
      cursor: default;
    }

    @media screen and (max-width: 798px) {
      svg {
        width: 26px;
      }
    }
  }

  .new-arrival__panel[hidden] {
    display: none;
  }

  .new-arrival__track {
    --gap: 25px;
    display: flex;
    gap: var(--gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;

    &::-webkit-scrollbar {
      display: none;
    }

    @media screen and (max-width: 798px) {
      --gap: 12px;
    }
  }

  .new-arrival__slide {
    flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
    min-width: 0;
    scroll-snap-align: start;

    /* Neutralise grid column sizing from the shared card */
    >.thumbnail {
      width: 100% !important;
      float: none !important;
      margin: 0 !important;
      left: auto !important;
    }
  }

  .new-arrival__empty {
    margin: 0;
  }


  .new-arrival__slide .product-wrap .product-info__caption .product-details .title_add-to-wishlist-btn {
    margin-top: 10px;
  }

  /* Same as the theme's "Product card alignment issue fix" (styles.scss): every image the same shape */
  .new-arrival__slide .product_image .image-element__wrap img,
  .new-arrival__slide .product_image .image__container .secondary {
    object-fit: cover;
    aspect-ratio: 270 / 435;
  }

  /* Same as the Featured collection cards (product-form-featured-collection.liquid): old price crossed out */
  .new-arrival__slide .current_price-new .compare_price.money {
    text-decoration: line-through;
  }

  .quick-add-btn {
    margin-top: 8px;
  }
}