.home-showcase {
  background: rgb(var(--color-background));
  color: rgb(var(--color-text));
}
.home-showcase__heading {
  margin: 0 0 24px;
  text-align: center;
  font-size: var(--showcase-title-size, 24px);
  font-weight: 700;
  line-height: 1.25;
}
.home-showcase__groups {
  display: flex;
  flex-direction: column;
  gap: var(--showcase-group-gap, 48px);
}
.home-showcase__group {
  display: block;
  min-width: 0;
  --showcase-cols: var(--showcase-desktop-cols, 5);
  --showcase-rows: var(--showcase-desktop-rows, 2);
  --showcase-gap: 14px;
}
.home-showcase [hidden] { display: none !important; }
.home-showcase__group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.home-showcase__tag {
  margin: 0;
  padding: 9px 13px;
  border-radius: 4px;
  background: var(--showcase-tag-bg, #e5e7eb);
  color: var(--showcase-tag-color, #111);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.home-showcase__progress {
  position: relative;
  height: 3px;
  overflow: hidden;
  background: rgba(var(--color-text), .18);
  border-radius: 99px;
  margin-left: auto;
  width: min(30%, 240px);
}
.home-showcase__progress span {
  position: absolute;
  inset-block: 0;
  background: rgb(var(--color-text));
  border-radius: inherit;
}
.home-showcase__arrows {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.home-showcase__progress:not([hidden]) + .home-showcase__arrows { margin-left: 0; }
.home-showcase__arrows button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 4px;
  background: rgb(var(--color-button-background));
  color: rgb(var(--color-button-text));
  font: inherit;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}
.home-showcase__arrows button:disabled { opacity: .35; cursor: default; }
.home-showcase__grid {
  display: grid;
  grid-template-columns: repeat(var(--showcase-cols), minmax(0, 1fr));
  align-items: stretch;
  gap: 20px var(--showcase-gap);
  list-style: none;
  margin: 0;
  padding: 0;
}
.home-showcase__group.is-slider .home-showcase__grid {
  grid-template-columns: none;
  grid-template-rows: repeat(var(--showcase-rows), auto);
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--showcase-cols) - 1) * var(--showcase-gap)) / var(--showcase-cols));
  overflow-x: auto;
  padding-bottom: 3px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.home-showcase__group.is-slider .home-showcase__grid::-webkit-scrollbar { display: none; }
.home-showcase__group.is-slider .home-showcase__item { scroll-snap-align: start; }

.home-showcase__item { display: flex; flex-direction: column; min-width: 0; }
.home-showcase__item > * { flex: 1 1 auto; min-width: 0; }
.home-showcase__item .product-card-shadow-space {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}
.home-showcase__item .block-product-card,
.home-showcase__item .block-product-card-info:not(.block-product-card-info--layer) {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}
.home-showcase__item .block-product-title:not(.hidden-mobile):not(.hidden-desktop) { width: 100%; }
.home-showcase__item .block-product-title span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2 !important;
  overflow: hidden;
  overflow-wrap: anywhere;
  height: 2.8em;
  line-height: 1.4;
}
.home-showcase__item .block-product-price { min-height: 1.5em; }
.home-showcase__item .block-product-card-info > .block-product-buy-button-wrapper,
.home-showcase__item .block-product-card-info > .block-product-buy-button-group {
  margin-top: auto;
  width: 100%;
}
.home-showcase__item .block-product-buy-button { width: 100%; min-height: 40px; }
.home-showcase__group--hide-buy .block-product-buy-button-wrapper,
.home-showcase__group--hide-buy .block-product-buy-button-group { display: none !important; }

.home-showcase__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.home-showcase__more {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-top: 18px;
  padding: 10px 20px;
  min-height: 40px;
  border: 1px solid rgb(var(--color-button-background));
  border-radius: 4px;
  background: rgb(var(--color-button-background));
  color: rgb(var(--color-button-text));
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}
.home-showcase__more:focus-visible,
.home-showcase__arrows button:focus-visible {
  outline: 2px solid rgb(var(--color-text));
  outline-offset: 2px;
}
.home-showcase__empty {
  padding: 18px;
  border: 1px dashed rgba(var(--color-text), .25);
  border-radius: 6px;
  font-size: 14px;
}
@media (max-width: 959px) {
  .home-showcase__groups { gap: var(--showcase-mobile-gap, 32px); }
  .home-showcase__group {
    --showcase-cols: var(--showcase-mobile-cols, 2);
    --showcase-rows: var(--showcase-mobile-rows, 3);
    --showcase-gap: 10px;
  }
  .home-showcase__grid { row-gap: 16px; }
  .home-showcase__heading { font-size: min(var(--showcase-title-size, 24px), 22px); margin-bottom: 18px; }
  .home-showcase__group-header { margin-bottom: 12px; }
  .home-showcase__tag { font-size: 12px; padding: 8px 10px; }
  .home-showcase__arrows { display: none; }
  .home-showcase__more { min-height: 44px; }
}
