.tc-home-product-carousel {
  min-width: 0;
  margin: 0;
}

.tc-home-product-carousel__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.tc-home-product-carousel__header h2 {
  margin: 0;
  color: var(--ink, #0b1418);
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
}

.tc-home-product-carousel__all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--red, #0b8796);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid currentColor;
}

.tc-home-product-carousel__all:hover {
  color: #075b66;
}

.tc-home-product-carousel__all svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tc-home-product-carousel__shell {
  position: relative;
  min-width: 0;
}

.tc-home-product-carousel__viewport {
  width: 100%;
  overflow: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  touch-action: pan-y;
}

.tc-home-product-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.tc-home-product-carousel__viewport:focus-visible {
  outline: 2px solid var(--red, #0b8796);
  outline-offset: 4px;
}

.tc-home-product-carousel__track {
  display: flex;
  align-items: stretch;
  gap: 14px;
  width: max-content;
  min-width: 100%;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.tc-home-product-card {
  flex: 0 0 240px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line, #c9d2d0);
  border-radius: var(--radius, 3px);
  background: #fff;
  box-shadow: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.tc-home-product-card:hover,
.tc-home-product-card:focus-within {
  border-color: #0b8796;
  box-shadow: 0 10px 28px rgba(11, 20, 24, 0.08);
}

.tc-home-product-card__link {
  display: flex;
  height: 100%;
  min-width: 0;
  flex-direction: column;
  color: #111827;
  text-decoration: none;
}

.tc-home-product-card__link:focus-visible {
  outline: 2px solid var(--red, #0b8796);
  outline-offset: -2px;
}

.tc-home-product-card__media-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.tc-home-product-card__media {
  position: relative;
  display: flex;
  aspect-ratio: 1 / 1;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line, #c9d2d0);
  background: #f4f7f6;
}

.tc-home-product-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 180ms ease;
}

.tc-home-product-card:hover .tc-home-product-card__image {
  transform: scale(1.025);
}

.tc-home-product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 7px;
  border-radius: 3px;
  background: var(--red, #0b8796);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.tc-home-product-card__body {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
}

.tc-home-product-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}

.tc-home-product-card__sku,
.tc-home-product-card__brand,
.tc-home-product-card__category {
  overflow: hidden;
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.tc-home-product-card__sku {
  color: #5c6d73;
}

.tc-home-product-card__brand {
  color: var(--ink, #0b1418);
  font-weight: 700;
}

.tc-home-product-card__category {
  color: #0b8796;
}

.tc-home-product-card__title {
  display: -webkit-box;
  min-height: calc(1.4em * 2);
  overflow: hidden;
  color: var(--ink, #0b1418);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tc-home-product-card__title:hover {
  color: #0b8796;
}

.tc-home-product-card__link {
  display: flex;
  height: 100%;
  min-width: 0;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.tc-home-product-card__footer {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.tc-home-product-card__price {
  min-width: 0;
  color: var(--ink, #0b1418);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.tc-home-product-card__price del {
  display: inline;
  margin-right: 6px;
  color: #8a91a0;
  font-size: 12px;
  font-weight: 500;
}

.tc-home-product-card__price ins {
  text-decoration: none;
}

.tc-home-product-card__stock {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5c6d73;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: none;
}

.tc-home-product-card__stock::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.tc-home-product-card__stock.is-in-stock {
  color: #075b66;
}

.tc-home-product-card__stock.is-order {
  color: #52636a;
}

.tc-home-product-card__stock.is-unavailable {
  color: #747e83;
}

.tc-home-product-carousel__control {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #dfe3e8;
  border-radius: var(--radius, 3px);
  background: #fff;
  color: #111827;
  box-shadow: 0 5px 16px rgba(17, 24, 39, 0.12);
  cursor: pointer;
  transform: translateY(-50%);
}

.tc-home-product-carousel__control:hover {
  border-color: var(--red, #0b8796);
  color: var(--red, #0b8796);
}

.tc-home-product-carousel__control:focus-visible {
  outline: 2px solid var(--red, #0b8796);
  outline-offset: 2px;
}

.tc-home-product-carousel__control svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tc-home-product-carousel__control--prev {
  left: -19px;
}

.tc-home-product-carousel__control--next {
  right: -19px;
}

@media (max-width: 767px) {
  .tc-home-product-carousel__header {
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
  }

  .tc-home-product-carousel__header h2 {
    font-size: 19px;
  }

  .tc-home-product-carousel__all {
    max-width: 42%;
    font-size: 11px;
    line-height: 1.25;
    text-align: right;
    white-space: normal;
  }

  .tc-home-product-carousel__track {
    gap: 10px;
  }

  .tc-home-product-card {
    flex-basis: 220px;
  }

  .tc-home-product-card__media {
    aspect-ratio: 1 / 1;
  }

  .tc-home-product-card__body {
    padding: 13px;
  }

  .tc-home-product-card__footer {
    flex-wrap: wrap;
  }

  .tc-home-product-carousel__control {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tc-home-product-card,
  .tc-home-product-card__image {
    transition: none;
  }
}
