.row-card {
  position: relative;
  display: grid;
  align-items: center;
  grid-template-columns: 9rem 35rem 17.5rem 15rem 1fr; }
  @media (max-width: 1023px) {
    .row-card {
      gap: 0 20px;
      grid-template-columns: 70px auto 110px 110px 160px; } }
  @media (max-width: 767px) {
    .row-card {
      align-items: start;
      grid-template-columns: 70px auto;
      grid-template-rows: repeat(3, auto);
      grid-template-areas: 'image content' 'image price' 'image control'; } }
  .row-card__image {
    height: 7.4rem;
    margin-right: 1.6rem; }
    @media (max-width: 1023px) {
      .row-card__image {
        height: 70px;
        margin-right: 0; } }
    @media (max-width: 767px) {
      .row-card__image {
        grid-area: image; } }
    .row-card__image img {
      width: 100%;
      height: 100%;
      object-fit: contain; }
  .row-card__content {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    margin-right: 3.2rem;
    gap: .8rem; }
    @media (max-width: 1023px) {
      .row-card__content {
        margin-right: 0; } }
    @media (max-width: 767px) {
      .row-card__content {
        margin-bottom: 12px;
        gap: 0;
        grid-area: content; } }
  .row-card__title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-align: center;
    -webkit-box-orient: vertical;
    transition: all ease .3s;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2; }
    @media (min-width: 1024px) {
      .row-card__title {
        cursor: pointer; }
        .row-card__title:hover {
          color: #FFC422; } }
    .row-card__title:active {
      transform: translateY(2px);
      color: #FFC422; }
    @media (max-width: 767px) {
      .row-card__title {
        margin-bottom: 5px; } }
  .row-card__row {
    display: flex; }
    @media (min-width: 768px) {
      .row-card__row .row-card__status {
        display: none; } }
    @media (max-width: 767px) {
      .row-card__row {
        margin-bottom: 8px;
        gap: 40px; } }
  .row-card__labels {
    display: flex;
    gap: 6px;
    pointer-events: none;
    color: #ffffff; }
    @media (min-width: 768px) {
      .row-card__labels {
        position: absolute;
        top: 0;
        left: 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 2px; }
        .row-card__labels .product-card__label {
          font-size: 10px;
          font-weight: 600; } }
    .row-card__labels .product-card__label {
      padding: 0 .4rem; }
      @media (max-width: 1023px) {
        .row-card__labels .product-card__label {
          padding: 0 4px; } }
  .row-card__code {
    color: #8B8B8B; }
  .row-card__price-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-right: 3rem; }
    @media (max-width: 1023px) {
      .row-card__price-wrap {
        margin-right: 0; } }
    @media (max-width: 767px) {
      .row-card__price-wrap {
        align-items: baseline;
        flex-direction: row;
        justify-content: flex-start;
        margin-bottom: 8px;
        gap: 10px;
        grid-area: price; } }
  .row-card__price--discount {
    color: #D90A2C; }
  .row-card__price-sale {
    text-decoration: line-through;
    color: #8B8B8B; }
  .row-card__status {
    margin-right: 2.5rem;
    white-space: nowrap; }
    @media (max-width: 1023px) {
      .row-card__status {
        margin-right: 0; } }
    .row-card__status span {
      position: relative;
      display: flex;
      align-items: center;
      gap: .6rem; }
      @media (max-width: 767px) {
        .row-card__status span {
          gap: 6px; } }
      .row-card__status span:before {
        width: 1rem;
        height: .2rem;
        display: inline-block;
        content: '';
        background-color: #FFC422;
        font-weight: 700; }
        @media (max-width: 1023px) {
          .row-card__status span:before {
            width: 10px;
            height: 2px; } }
  .row-card__control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem; }
    .row-card__control .btn {
      flex-grow: 1; }
    @media (max-width: 767px) {
      .row-card__control {
        grid-area: control; } }
  .row-card__counter {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center; }
    @media (max-width: 575px) {
      .row-card__counter {
        width: 100%; }
        .row-card__counter .basketData-msg,
        .row-card__counter .disabled-text {
          font-size: 12px; } }
    .row-card__counter .basketData-msg-wrap {
      position: absolute;
      top: calc(100%);
      right: 0;
      left: 0;
      text-align: center;
      white-space: nowrap; }
      .row-card__counter .basketData-msg-wrap sup {
        vertical-align: super; }
  .row-card__delete {
    flex-shrink: 0;
    margin-left: 2rem;
    fill: #8B8B8B; }
    @media (min-width: 1024px) {
      .row-card__delete {
        cursor: pointer; }
        .row-card__delete:hover {
          fill: #121219; } }
    .row-card__delete:active {
      fill: #FFC422; }
    @media (max-width: 767px) {
      .row-card__delete {
        display: none; } }
  .row-card__remove {
    display: none;
    transition: all ease .3s; }
    @media (max-width: 767px) {
      .row-card__remove {
        position: absolute;
        z-index: 2;
        top: -32px;
        right: 0;
        display: flex;
        align-items: center;
        justify-content: center; } }
    .row-card__remove:active {
      fill: #FFC422; }
  .row-card--basket {
    grid-template-columns: 9rem 31rem 14rem 1fr; }
    .row-card--basket:not(:last-child) {
      margin-bottom: 1.6rem;
      padding-bottom: 1rem;
      border-bottom: 1px solid #E4E4E4; }
    .row-card--basket .row-card__title {
      font-size: 1.4rem;
      line-height: 1.43; }
    .row-card--basket .row-card__content {
      align-items: normal;
      margin-right: 2rem; }
    .row-card--basket .row-card__row {
      justify-content: space-between; }
    .row-card--basket .row-card__status {
      display: block;
      margin-right: 0;
      margin-left: auto; }
    .row-card--basket .row-card__price-wrap {
      order: 2;
      margin-left: 1rem; }
    .row-card--basket .row-card__delete {
      position: absolute;
      top: 0;
      bottom: 0;
      right: 0;
      display: flex;
      align-items: center;
      margin: auto 0; }
    .row-card--basket .counter .counter-input {
      min-width: 6rem; }
  .row-card--search {
    padding: 1.4rem 0 1rem;
    grid-template-columns: 9rem 1fr 18rem 24rem; }
    @media (max-width: 1023px) {
      .row-card--search {
        grid-template-columns: 9rem 1fr 18rem 200px; } }
    @media (max-width: 767px) {
      .row-card--search {
        align-items: start;
        padding: 22px 0 20px;
        grid-template-columns: 70px auto;
        grid-template-rows: repeat(3, auto);
        grid-template-areas: 'image content' 'image price' 'image control'; } }
    .row-card--search .row-card__content {
      align-items: normal;
      margin-right: 4rem;
      gap: 0;
      text-align: left; }
      @media (max-width: 767px) {
        .row-card--search .row-card__content {
          max-width: 300px;
          margin-right: 0;
          margin-bottom: 0; } }
    .row-card--search .row-card__title {
      font-size: 1.9rem;
      line-height: 1.43; }
      @media (max-width: 1023px) {
        .row-card--search .row-card__title {
          font-size: 16px;
          line-height: 1.375; } }
    .row-card--search .row-card__row {
      justify-content: space-between; }
      @media (max-width: 767px) {
        .row-card--search .row-card__row {
          gap: 20px; } }
    .row-card--search .row-card__labels {
      position: static;
      flex-direction: row;
      margin-top: .8rem;
      gap: .6rem; }
      @media (max-width: 767px) {
        .row-card--search .row-card__labels {
          margin-top: 0; } }
    .row-card--search .row-card__status {
      display: block;
      margin-right: 0;
      margin-left: auto; }
    @media (max-width: 767px) {
      .row-card--search .row-card__price-wrap {
        flex-direction: row;
        justify-content: flex-start; } }
    .row-card--search .row-card__price-wrap .product-card__price-sale span {
      text-decoration: line-through; }
    .row-card--search .row-card__price-wrap .product-card__price-sale sup {
      vertical-align: super; }
    .row-card--search .row-card__price {
      font-size: 1.9rem;
      font-weight: 600; }
      @media (max-width: 1023px) {
        .row-card--search .row-card__price {
          font-size: 16px; } }
    .row-card--search .row-card__control .counter {
      display: none; }
    .row-card--search .row-card__control .btn {
      height: 4rem;
      font-size: 1.9rem; }
      @media (max-width: 1023px) {
        .row-card--search .row-card__control .btn {
          max-width: 240px;
          height: 40px;
          font-size: 16px; } }
      @media (max-width: 575px) {
        .row-card--search .row-card__control .btn {
          height: 32px; } }
      .row-card--search .row-card__control .btn:before {
        top: .2rem;
        bottom: .2rem;
        right: .2rem;
        left: .2rem; }
        @media (max-width: 575px) {
          .row-card--search .row-card__control .btn:before {
            top: 1px;
            bottom: 1px;
            right: 1px;
            left: 1px; } }
      @media (max-width: 1023px) {
        .row-card--search .row-card__control .btn {
          font-size: 14px; } }

@media print {
  .row-card__remove {
    display: none; } }
