/* Desktop styles */
@media screen and (min-width: 750px) {
  .products .product-card-block-item {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .tabs-title {
    font-size: var(--tabs-title-size);
  }

  .litabs:hover {
    box-shadow:
      0 2px 4px rgba(0, 0, 0, 0.12),
      0 0 6px rgba(0, 0, 0, 0.04);
    border-radius: 7px;
  }

  .litabs .product__title,
  .litabs h3,
  .litabs .price {
    padding: 0 12px;
  }

  .tab:hover {
    background-color: var(--background-color);
    color: var(--active-color);
  }

  .litabs .card-wrapper-tag {
    margin-bottom: 15px;
    padding: 0 2px;
  }
}

/* Tabs container */
.tabs {
  list-style: none;
  margin: 0 0 20px;
  position: relative;
  padding: 0;
  border-radius: 4px;
  max-height: 60px;
  transition: all 0.2s;
  display: grid;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Tabs title */
.tabs-title {
  text-align: center;
  color: var(--tabs-title-color);
  font-size: 40px;
  margin-bottom: var(--tabs-title-mb);
}

/* Tab items */
.tab {
  padding: 10px 20px;
  cursor: pointer;
  background-color: var(--label-bg);
  color: var(--label-color);
  flex: 1;
  font-size: 18px;
  text-align: center;
}

.tab.active {
  background-color: var(--active-bg);
  color: var(--active-color);
}

/* Tab content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Products grid */
.products {
  list-style: none;
  padding: 0;
  gap: 15px;
  display: grid;
}

.litabs {
  transition: all 0.3s;
}

.product {
  flex: 1 1 calc(33.333% - 10px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 10px;
  text-align: center;
}

.products .animation-delay-show-container .product__title {
  margin-top: 8px;
}

.products .product-card-block-item {
  background: initial;
  text-decoration: none;
  margin-top: 0px;
  padding: 0 2px;
}

.products .product-card-block-item .price-item--sale,
.products .product-card-block-item .price-item--regular {
  color: #ce2226;
}

.products .product-card-block-item .price__sale .price-item--regular {
  color: #0006;
  text-decoration: line-through;
}

@media screen and (max-width: 750px) {
  .tabs-title {
    font-size: var(--tabs-title-m-size);
  }

  .litabs {
    border-radius: 6px;
    overflow: hidden;
  }

  .tab {
    flex: 1;
    display: inline-block;
    padding: 10px 15px;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
  }

  .tabs-title {
    font-size: 20px;
  }

  .tabs {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .products .product-card-block-item {
    padding: 0;
    margin: 2px 0px;
    line-height: 19px;
  }

  .products .product-card-block-item {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box !important;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
  }
}
