.collection-row {
    position: relative; 
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    margin-top: 50px;
    margin-left: 77px;
    margin-right: 77px;
}

.collections {
    display: flex;
    overflow: hidden;
    display: flex;
    gap: 24px;
}

.collection {
    position: relative;
    width: 408px;
    height: 272px;
    overflow: hidden;
    border-radius: 12px;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
    background: rgb(33, 33, 33);
    flex: none;
    order: 0;
    flex-grow: 0 
}

.collections-title {
    color: rgb(255, 255, 255);
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    letter-spacing: 0px;
    text-align: left;
    text-transform: capitalize;
    margin-bottom: 20px;
}


/* Стили для кнопок слайдера */
.collection-slider-btn  {
    position: absolute;
    top: 62%; 
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgb(255, 255, 255);
    border: 1px solid rgb(255, 255, 255);
    border-radius: 50%;
    box-sizing: border-box;
    cursor: pointer;
    opacity: 0; 
    transition: opacity 0.3s; 
}

/* Положение кнопок */
.collection-slider-btn.left {
    left: calc(-1.2% + -4px);
    z-index: 3;
}

.collection-slider-btn.right {
    right: calc(-1.2% + -4px); 
    z-index: 3;
}

/* Стили для кнопок при наведении */
.collection-row:hover .collection-slider-btn {
    opacity: 1; /* При наведении на слайдер кнопки становятся видимыми */
}

.collection-slider-btn:hover {
    background: rgb(230, 230, 230);
}

/* Позиционирование кнопок и стрелок внутри них */
.collection-slider-btn img {
    position: absolute;
    width: 14px;
    height: 13px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.collection-content {
    bottom: 112px;
    position: relative;
    left: 24px;
    right: 24px;
    width: 360px;
    height: 266px;
}

.collection-name {
    position: absolute;
    width: 280px;
    height: 56px;
    margin: 0;
    padding: 32px 64px 0px 64px;
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    text-align: center;
    letter-spacing: 0px;
    white-space: normal;
    z-index: 3;
    display: -webkit-box;
  -webkit-line-clamp: 2; /* Ограничиваем количество строк до 2 */
  -webkit-box-orient: vertical;  
  overflow: hidden;
  text-overflow: ellipsis;
  }


/* Общий контейнер для всех постеров коллекции */
.collection-posters {
    position: absolute;
    top: 112px;
    transition: top 0.3s ease;
  }

  .collection-content {
    position: absolute;
    left: 0;
    right: 0;
  }
  
  /* Индивидуальные постеры внутри контейнера */
  .collection-poster {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: -198px;
    background-size: cover;
    border: 6px solid rgb(33, 33, 33); /* Изначальный цвет границы */
    border-radius: 12px;
    transition: border-color 0.3s ease; /* Добавляем плавность изменения цвета границы */
  }
  
  .collection-poster-1 {
    top: 111.06px;
    position: absolute;
    width: 144.39px;
    height: 203.87px;
    left: 35px;
    transform: rotate(-9.59deg);
  }
  
  .collection-poster-2 {
    top: 128.06px;
    position: absolute;
    width: 144.41px;
    height: 202.85px;
    left: 129.31px;
  }
  
  .collection-poster-3 {
    position: absolute;
    top: 153.05px;
    width: 144.39px;
    height: 203.87px;
    left: 219.61px;
    transform: rotate(9.55deg);
  }
  
  /* Анимируем весь контейнер постеров при наведении на коллекцию */
  .collection:hover .collection-posters {
    top: 108px; /* Поднимаем весь контейнер постеров при наведении */
  }
  
  
  .collection:hover {
    background-color: #292929; /* Меняем фон при наведении */
  }

  .collection:hover .collection-poster {
    border-color: #292929; /* Цвет границы становится таким же, как и фон */
  }

/* Заголовок коллекций */
.collections-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.create-collection-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 14px 24px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    background: rgb(255, 255, 255);
    color: rgb(18, 18, 18);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

/* Ховер эффект */
.create-collection-btn:hover {
    
}

.collec-title {
     font-size: 32px;
    font-weight: 700;
    line-height: 36px;
    color: #fff;
    text-transform: capitalize;
    letter-spacing: -1px;
    text-align: left;
}

/* Общий контейнер страницы коллекций */
.collections-page {
    padding: 123px 75px;
    padding-bottom: 0px;
}

/* Сетка для коллекций (4 в ряд) */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 колонки */
    gap: 24px; /* Отступ между карточками */
    justify-content: center;
}
/* Карточка коллекции */
.collection-card {
    position: relative;
    width: 100%;
    height: 272px;
    border-radius: 12px;
    transition: background-color 0.3s ease;
    background: rgb(33, 33, 33);
    padding: 16px;
}

/* Адаптив для мобильных */
@media (max-width: 1024px) {
    .collections-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки */
    }
}

@media (max-width: 768px) {
    .collections-grid {
        grid-template-columns: repeat(1, 1fr); /* 1 колонка */
    }
}

/* Кнопка "Смотреть больше" */
.collection-load-more {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.modal-collection {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content-collection {
  background: rgb(18, 18, 18);
  padding: 18px 45px 48px 45px;
  margin: 10% auto;
  width: 360px; height: 516px;
  border-radius: 12px;
  position: relative;
  box-sizing: border-box;
  border: 2px solid rgb(33, 33, 33);
}

.modal-content-collection h2 {
    color: rgb(255, 255, 255);
    font-family: Inter;
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    letter-spacing: 0px;
    text-align: center;
    text-transform: capitalize;
}

.collec_close {
  position: absolute;
  right: 23px;
  top: 21px;
  cursor: pointer;
}

.collec_close-icon {
  width: 14px;
  height: 14px;
}

.collec_close:hover .collec_close-icon {
  opacity: 0.8;
}

.collectionF {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    margin: 32px 0px;
}

.collection_input {
  width: 100%;
  background-color: rgb(18, 18, 18) !important;
  color: #fff !important;
  border: 2px solid rgb(41, 41, 41);
  border-radius: 12px;
  font-weight: 400;
  font-size: 16px;
  text-align: left;
  box-sizing: border-box;
  height: 104px;
  padding: 14px 24px 16px 24px;
    -webkit-appearance: none;
  caret-color: #fff;
  resize: none;
    }
    
.collection_input::placeholder {
  color: rgb(128, 128, 128) !important;
}


.collection_input:-webkit-autofill,
.collection_input:-webkit-autofill:focus,
.collection_input:-webkit-autofill:hover,
.collection_input:-webkit-autofill:active {
  border: 2px solid rgb(41, 41, 41) !important;
  outline: none !important;
  -webkit-box-shadow: 0 0 0 1000px rgb(18, 18, 18) inset !important;
  box-shadow: 0 0 0 1000px rgb(18, 18, 18) inset !important;
  -webkit-text-fill-color: #fff !important;
  border-radius: 12px !important;
  background-clip: content-box !important;
}

.collection_input:focus {
  border: 2px solid rgb(51, 51, 51);
  outline: none !important;
}

.collection-btn {
  width: 100%;
  height: 54px;
  border: none;
  font-weight: 600;
  border-radius: 12px;
  background-color: #fff;
  cursor: pointer;
  font-size: 16px;
  padding: 14px 24px;
  margin-top: 0px;
}

.collection-custom-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 16px;
    color: rgb(128, 128, 128);
    font-family: Inter, sans-serif;
    font-weight: 400;
    line-height: 24px;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.collection-custom-checkbox .collection-checkbox-icon {
    width: 24px;
    height: 24px;
    background-image: url(/templates/kurosaw/img/checkbox-off.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: background-image 0.3s ease;
}

.checkbox-cont {
   margin-top: 16px;
    margin-bottom: 12px;
}

