#product #content{
    background-color: #141414;
}
.product-content{
    display: flex;
    gap:24px;
    min-width: 0;
}
.product-content__1-half,
.product-content__2-half{
    display: flex;
    flex-direction: column;
    flex: 1 1 0%;
    min-width: 0;
}
.product-content__1-half{
  gap:8px;
}

.product-content__description,
.product-content__attributes{
  display: flex;
  flex-direction: column;
  gap:24px;
  background-color: #1A1A1A;
  border: 1px solid #262626;
  border-radius: 10px;
  padding:16px 16px 56px 16px;
  position: relative;
}
.product-content__attributes{
  background-color: #141414;
  border: none;
  padding-top: 40px;
  margin-bottom: 24px;
}
.description,
.attributes{
  max-height: 169px;
  overflow: hidden;
  font-size: 14px;
  color: #e4e4e7 !important;
  transition: max-height 0.5s ease;
}
.attribute{
  display: flex;
  gap: 40px;
  padding: 12px 0;
  border-top: 1px dashed #4D4D4D;
}
.attribute:first-child{
  border-top: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.attribute span:first-child{
  width: 120px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  color:#98989A;
}
.attribute span:last-child{
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color:#ccc;
}
.product-content__description span{
  font-weight: 600;
  line-height: 1.3;
}
.show-more,
.show-more-attr {
  position: absolute;
  bottom:16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffcc00;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}
a.show-more:hover,
a.show-more:active,
.show-more-attr:hover,
.show-more-attr:active{
  color: #ffcc00;
}

.show-more.is-open svg,
.show-more-attr.is-open svg {
  transform: rotate(180deg);
}

.description::after,
.attributes::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 149px;
  pointer-events: none;
  transition: opacity 1s ease;
  background: linear-gradient(360deg, #141414 0%, rgba(26, 26, 26, 0) 100%);
}

/* когда раскрыто — убираем затемнение */
.description.is-open::after,
.attributes.is-open::after {
  background: unset;
}

.product-content__video{
  background-color: #1A1A1A;
  border: 1px solid #262626;
  border-radius: 10px;
  padding: 16px;
}
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}
.product-content__related-products,
.product-content__works{
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 40px 16px;
  background-color: #1A1A1A;
  border:1px solid #262626;
  border-radius: 10px;
}
.product-content__works{
  background-color: #141414;
  border:none;
  position: relative;
}
.product-content__works::after{
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 93px;
  background: linear-gradient(360deg, #141414 0%, rgba(20, 20, 20, 0) 100%);
  pointer-events: none;
  transition: opacity .3s ease; 
}
.product-content__related-products>img,
.product-content__works>img{
  width: 50px;
  height: 50px;
}
.product-content__related-products h3,
.product-content__works h3{
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}
.product-content__related-products .cat-ui__products{
  grid-template-columns: repeat(3, 1fr);
}
.product-content__related-products .product-card__title{
  height: 30px;
  max-height: 50px;
}
.product-content__related-products .product-card img{
  width: 100%;
  height: auto;
  aspect-ratio: 220 / 146;
  object-fit: cover;
  display: block;
}

.product-content__payment{
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  background-color: #1A1A1A;
  border: 1px solid #262626;
  border-radius: 10px;
}
.payment__header{
  display: flex;
  justify-content: space-between;
}
.payment__header h1{
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  margin:0;
  max-width: 400px;
}
.payment__header span,
.payment__stock span:last-child,
.actions__price .old-price{
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color:#B3B3B3;
}
.actions__price .old-price{
  text-decoration: line-through;
}
.payment__stock{
  display: flex;
  flex-direction: column;
  gap:8px;
  padding: 16px 0;
  border-top:1px solid #262626;
  border-bottom: 1px solid #262626;
}
.payment__actions{
  display: flex;
  flex-direction: column;
  gap:20px;
}
.actions__prices-block{
  display: flex;
  justify-content: space-between;
}
.actions__price{
  display: flex;
  justify-content: center;
  flex-direction: column;
}
.actions__price .price,
.actions__price .new-price{
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color:#FFFEFA;
}
.actions__price .new-price{
  color:#FFEB99;
}
.actions__submit{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.actions__submit .btn{
  display: flex;
  justify-content: center;
  align-items: center;
  gap:4px;
  width: 100%;
  padding: 8px 16px;
}
.btn.btn-primary.btn-preorder,
.btn.btn-primary.btn-preorder:is(:active, :focus, :hover),
.btn.btn-primary.btn-preorder-sent,
.btn.btn-primary.btn-preorder-sent:is(:active, :focus, :hover){
  background-color: #262626;
  border:1px solid #262626;
  color:#F1F1F3;
}

.submit__payment-method-icons{
  display: flex;
  gap:4px;
}
.payment-method-item{
  display: flex;
  flex: 1 1 0%;
  height: 32px;
  padding:9px;
  border-radius: 4px;
  background: #262626;
  justify-content: center;
  align-items: center;
}
.works{
  display: flex;
  flex-direction: column;
  gap:24px;
  max-height: 477px;
  overflow-y: scroll;
  box-sizing: border-box;
}
.works hr{
  border-top:1px solid #262626;
  margin:0;
  width: 60%;
}
.work-item{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.work-item__header{
  display: flex;
  gap:8px;
}
.work-item__header>img{
  width: 100px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
}
.work-item__title{
  display: flex;
  flex-direction: column;
  gap:8px;
  max-width: 273px;
}
.title__location{
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color:#FFEB99;
}
.title__work{
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color:#F1F1F3;
}
.work-item__desc{
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.work-item__desc span:first-child{
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color:#CCCCCC;
}
.work-item__desc .cat__svg{
  width:24px;
  min-width: 24px;
  height: 24px;
}

/* Quantity change block */
.qty-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #333333;
    border-radius:6px;
    background: #333333;
    color: #F1F1F3;
    font-size: 18px;
    cursor: pointer;
}

.qty-input {
    width: 40px;
    height: 40px;
    text-align: center;
    border: 1px solid #333333;
    border-radius: 6px;
    background: #262626;
    color: #F1F1F3;
    font-size: 16px;
    font-weight: 500;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Chrome, Safari, Edge */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

/* IE 10+ */
input[type=number]::-ms-clear,
input[type=number]::-ms-expand {
    display: none;
}
.cat__svg{
  display: flex;
  justify-content: center;
  align-items: center;
  width:40px;
  min-width: 40px;
  height: 40px;
  background: #FFD11A;
  border-radius:50%;
}


/* SWIPER ROOT */
.product-gallery,
.gallery-main,
.gallery-thumbs {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  position: relative;
}
.gallery-pagination {
  display: none;
}

/* SWIPER CORE */
.swiper,
.swiper-wrapper,
.swiper-slide {
  box-sizing: border-box;
}

/* IMAGES */
.gallery-main img,
.gallery-thumbs img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
.product-content__slider {
  display: block;
  width: 100%;
  min-width: 0;
}
.gallery-main {
  position: relative;
  margin-bottom: 8px;
}

.gallery-arrow,
.thumbs-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFFFFF80;
  border: 1px solid #FFFFFF80;
  box-shadow: 0px 0px 8px 0px #00000014;
  backdrop-filter: blur(4px);
  cursor: pointer;
  z-index: 10;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color:#141414;
}
.thumbs-arrow {
  top: 50%;
}

.gallery-arrow.prev {
  left: 16px;
}

.gallery-arrow.next {
  right: 16px;
}
.thumbs-wrapper {
  position: relative;
}
.gallery-arrow.swiper-button-disabled,
.thumbs-arrow.swiper-button-disabled {
  opacity: 0;
  pointer-events: none;
}
.thumbs-prev { left: 16px; }
.thumbs-next { right: 16px; }
.payment-stock-quantity{
  display: flex;
  flex-direction: column;
  gap:16px;
}




/* MEDIA 992px */
@media (max-width: 992px) {
  .payment-stock-quantity{
    flex-direction: row;
    border-top:1px solid #262626;
    justify-content: space-between;
  }
  .payment-stock-quantity .payment__stock{
    align-items: flex-end;
    border:none;
    order:2;
  }
  .payment-stock-quantity .actions__prices-block{
    flex-direction: column;
    gap:16px;
    padding-top:16px;
    order:1;
  }
  .product-content__description .description,
  .product-content__description .attributes{
    max-height: 200px;
  }
  .product-content__related-products .cat-ui__products{
    grid-template-columns: repeat(2, 1fr);
  }
  .product-content__video{
    padding:40px 16px;
  }
  .product-content__works{
    padding:40px 0;
  }
  .breadcrumbs,
  .product-content__works,
  .product-content__slider{
    padding-right: 16px;
    padding-left: 16px;
  }
  .breadcrumbs{
    flex-wrap: wrap;
  }
  .works{
    padding-right: 16px;
    margin-right: -16px;
  }
  .product-content__1-half{
    gap:0;
  }
  .thumbs-wrapper {
    display: none;
  }
  .gallery-arrow {
    display: none;
  }
  .gallery-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 12px;
  }

  .gallery-pagination .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: #B3B3B3;
    opacity: 1;
    margin: 0!important;
  }

  .gallery-pagination .swiper-pagination-bullet-active {
    background: #E4E4E7; 
  }
  .gallery-main{
    margin-bottom: 22px;
  }

  .product-content{
    flex-direction: column;
  }
  #product #content{
    padding: 16px 0;
  }
}


