.itemsContainer{
    grid-template-columns: repeat(4, 1fr);
    display: grid;
    gap: 30px;
}
.catalogItem{
    position: relative;
    cursor: pointer;
}
.itemPicture{
    height: 360px;
    cursor: pointer;
}
.itemPrices{
    margin-top: 15px;
    margin-bottom: 15px;
}
.itemColor{
    font-weight: 600;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0%;
    margin-top: 0px;
    margin-bottom: 14px;
    cursor: pointer;
    min-height: 40px;
}
.itemName{
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    margin-bottom: 5px;
    cursor: pointer;
}
.itemPrices{
    font-weight: 700;
    font-size: 24px;
    line-height: 100%;
    min-height: 30px;
    letter-spacing: 0%;
    display: grid;
    grid-template-columns: max-content max-content;
    gap: 10px;
    align-content: center;
    align-items: center;
}
.itemPrices span{
    display: inline-block;
}
.itemPrices .oldPrice{
    padding: 6px;
    padding-right: 15px;
    padding-left: 36px;
    border-radius: 32px;
    background-color: #F4F1E7;
    font-weight: 700;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0%;
    text-decoration: line-through;
    color: #EE6352;
}
.itemPrices .oldPrice::before{
    content: ' ';
    position: absolute;
    margin-left: -24px;
    margin-top: 2px;
    width: 16px;
    height:16px;
    background: url('/local/templates/main/images/time.png') no-repeat left;
    background-size: 16px;
}
.labelContainer{
    position: absolute;
    left: 15px;
    top: 15px;
    display: grid;
    grid-template-columns: max-content;
    gap: 8px;
    z-index: 3;
    
}

/* Картинка товара */

.itemPicture {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.itemPicture > a { display: block; width: 100%; height: 100%; }

.catalog-img {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .25s ease, transform .25s ease;
  backface-visibility: hidden;
}

.catalog-img.preview { z-index: 1; opacity: 1; }
.catalog-img.detail { z-index: 2; opacity: 0; }
.itemPicture:hover .catalog-img.detail { opacity: 1; }

@media (hover: none), (pointer: coarse) {
  .itemPicture:hover .catalog-img.detail,
  .itemPicture:hover .catalog-img.preview {
    transform: none;
  }
}

/* Выравнивания */

.itemsContainer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: stretch; /* все блоки ряда одинаковой высоты */
}

.catalogItem {
    display: flex;
    flex-direction: column;
    height: 100%; /* растягиваем блок на всю высоту ряда */
}

.itemPicture,
.itemColor,
.itemPrices {
    flex-shrink: 0; /* не тянутся */
}

.itemSize {
    margin-top: auto; /* прижимаем к низу блока */
}
/* @media(max-width: 968px) {
    .itemColor {
        min-height: 28px;
    }
} */

/* Стикеры */

.label{
    width: max-content;
    background-color: #FFFFFF;
    padding: 3px;
    padding-right: 15px;
    padding-left: 25px;
    border-radius: 16px;
    
}
/* .label::before{
    content: ' ';
    position: absolute;
    margin-left: -24px;
    margin-top: 0px;
    width: 18px;
    height:18px;
    background-size: 18px;
    background: url('/local/templates/main/images/star.svg') no-repeat left;
} */

/* Стикеры END */

@media(max-width: 968px) {
    .itemPicture{
        height: 202px;
    }
    .itemPrices {
        font-size: 16px;
        margin-top: 2px;
        margin-bottom: 0px;
    }
    .itemPrices .oldPrice {
        font-size: 12px;
        padding-right: 12px;
        padding-left: 20px;
    }
    .itemPrices .oldPrice::before {
        width: 10px;
        height: 10px;
        background-size: 10px;
        margin-left: -14px;
        margin-top: 1px;
    }
    .itemColor {
        font-size: 16px;
    }
    .itemName {
        font-size: 12px;
    }
    .itemSize {
        font-size: 12px;
    }
    .labelContainer {
        font-size: 12px;
        left: 8px;
        top: 8px;
    }
    .label {
        background-size: 16px;
    }
}
@media(max-width: 475px) {
    .itemsContainer {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Chips */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  margin-top: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  height: 32px;
  background: #EAE7DA;
  border-radius: 32px;
  font-size: 14px;
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1;
}

.chip .cross-icon {
	width: 18px !important;
	height: 18px !important;
	border-radius: 50%;
	transition: .3s;
}

.chip .cross-icon:hover {
	background-color: white;
}

@media(max-width: 968px) {
    .chip {
        height: 48px;
        padding: 0 16px;
    }
    .chip .cross-icon {
        width: 32px !important;
        height: 32px !important;
    }
    .chip-btn {
        height: 48px !important;
        padding: 0 16px !important;
    }
}

@media (max-width: 475px) {
  .chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chips > .chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60vw;
    box-sizing: border-box;
  }

  .chips > div > .chip-btn,
  .chips > .chip > .chip-btn {
    flex: 0 0 auto !important;
    display: inline-block !important;
    box-sizing: border-box !important;
    width: 120px;
  }
}



