a{
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color:#FFEB99;
}
a:hover,
a:active{
    color:#FFEB99;
}
p{
    font-size: 14px;
    line-height: 1.5;
    color:#98989A;
}
#content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: #141414;
    padding:0;
}

.category-page {
    display: flex;
    flex-direction: column;
    gap:16px;
    position: relative;
    background-color: #1a1a1a;
    border: 1px solid #262626;
    border-radius: 10px;
    padding: 16px;
}
.category-page .breadcrumbs{
    display: flex;
    gap:4px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.category-page .breadcrumbs li:first-of-type a{
    font-size: 12px;
    line-height: 1.3;
    color:#98989A;
}
.category-page .breadcrumbs li:last-of-type a{
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    color:#E4E4E7;
    pointer-events: none;
}
.category-page .breadcrumbs>li+li:before {
    padding: 0;
    font-size: 12px;
    color: #98989A;
    content: "/\00a0";
}

/* Titles */
.category-page .page-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    margin: 0;
}



.cat-ui {
  display: flex;
  flex-direction: column;
  gap:16px;
}
/* SUBCATEGORIES */
.cat-ui__subcats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px,1fr));
  gap: 8px;
  overflow: hidden;
  max-height: 62px;
  padding-bottom: 0;
  opacity: .98;
  transition:
      max-height .4s ease,
      padding-bottom .3s ease,
      opacity .25s ease;
  }
.cat-ui__subcats.is-open {
  max-height: 12000px;
  opacity: 1;
}
.cat-ui__toggle svg {
  transition: transform 0.3s ease;
}

.cat-ui__toggle.is-open svg {
  transform: rotate(180deg); 
}
.cat-ui__subcat {
  background: #262626;
  border-radius: 6px;
  padding: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
}
.cat-ui__subcat img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: contain;
}
.cat-ui__subcat span{
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color:#fff;
}
/* TOGGLE */
.cat-ui__toggle {
  width: 100%;
  padding: 8px 16px;
  margin-top:-8px;
  border-radius: 6px;
  background: #262626;
  border: 1px solid #262626;
  cursor: pointer;
  text-align: center;
  display: flex;
  gap:8px;
  justify-content: center;
  align-items: center;
}
.toggle-text{
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: #F1F1F3;
}
/* TABS */
.cat-ui__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background-color: #141414;
  border: 1px solid #262626;
  border-radius: 6px;
  padding: 8px;
}
.cat-ui__tab {
  padding: 16px;
  border-radius: 6px;
  background: #1a1a1a;
  border: 1px solid #262626;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: #98989A;
  cursor: pointer;
}
.cat-ui__tab.is-active{
  color: #fff;
}

.cat-ui__description {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 184px;
  align-items: start;
  gap: 24px;
  padding: 24px;
  background: #1f1f1f;
  border: 1px solid #262626;
  border-radius: 10px;
}

.cat-ui__description-text {
  grid-column: 1 / 2;
  grid-row: 1;
  min-width: 0;
  font-family: 'Montserrat', sans-serif;
  color: #e4e4e7;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cat-ui__description-text > * {
  margin-bottom: 16px;
}

.cat-ui__description-text > *:first-child {
  margin-top: 0;
}

.cat-ui__description-text > *:last-child {
  margin-bottom: 0;
}

.cat-ui__description-text p,
.cat-ui__description-text li {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.58;
  color: #98989A;
}

.cat-ui__description-text ul,
.cat-ui__description-text ol {
  margin: 0 0 16px;
  padding-left: 20px;
}

.cat-ui__description-text li + li {
  margin-top: 8px;
}

.cat-ui__description-text h1 {
  margin: 0 0 24px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.34;
  letter-spacing: -0.01em;
  color: #f5f5f5;
}

.cat-ui__description-text h2 {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: #f1f1f3;
}

.cat-ui__description-text h3,
.cat-ui__description-text h4 {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
  color: #e4e4e7;
}

.cat-ui__description-text h5,
.cat-ui__description-text h6 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: #e4e4e7;
}

.cat-ui__description-text strong,
.cat-ui__description-text b {
  font-weight: 500;
  color: #f5f5f5;
}

.cat-ui__description-text a {
  color: #FFD11A;
}

.cat-ui__description-text img,
.cat-ui__description-text svg,
.cat-ui__description-text iframe,
.cat-ui__description-text table {
  max-width: 100%;
}

.cat-ui__description-text img,
.cat-ui__description-text iframe {
  height: auto;
}

.cat-ui__description-media {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  width: 184px;
  height: 184px;
  min-width: 184px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #262626;
  border: 1px solid #2f2f2f;
  border-radius: 10px;
}

.cat-ui__description-image {
  display: block;
  max-width: 100%;
  max-height: 152px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* PRODUCTS */
.cat-ui__products {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 8px;
}
.product-card {
    display: flex;
    flex-direction: column;
    gap:8px;
    background: #262626;
    border-radius: 8px;
    padding: 8px;
    position: relative;
    justify-content: space-between;
}
.wishlist-heart{
  position: absolute;
  right: 18px;
  top: 18px;
  cursor: pointer;
}
.product-card .overlay {
    display: none;
    position: absolute;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    background: #26262680; 
    border-radius: 8px;
    pointer-events: none; 
    z-index: 1; 
}
.product-card.out-of-stock .overlay {
    display: block;
}
.product-card img {
  width: 220px;
  height: 146px;
  border-radius: 6px;
  object-fit: cover;
}
.product-card__title {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color: #F1F1F3;
  height:auto;
  max-height: 60px;
  overflow: hidden;
  position: relative;
}
.product-card__title.is-truncated::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 45px;
    height: 1.2em;
    background: linear-gradient(
        to right,
        rgba(14,14,14,0),
        #262626
    );
}
.product-card__info{
    display: flex;
    justify-content: space-between;
}
.product-card__stock{
    font-size: 10px;
    line-height: 1.3;
    color: #1FC949;
}
.product-card__old-price{
    font-size: 10px;
    line-height: 1.3;
    color:#FFEB99;
    text-decoration: line-through;
}
.product-card__out-stock,
.product-card__price-out-stock{
    font-size: 10px;
    line-height: 1.3;
    color: #98989A;
}
.product-cart__btn-buy,
.product-cart__btn-preorder,
.product-cart__btn-preorder-sent{
    display: flex;
    justify-content: space-between;
    padding:8px;
    background-color: #333333;
    border-radius: 6px;
    border:none;
}
.product-cart__btn-preorder-sent{
  justify-content: center;
  gap:4px;
}
.product-cart__btn-preorder-sent .preorder-btn-sent{
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color:#FFD11A;
}
.product-cart__btn-preorder{
    justify-content: center;
    align-items: center;
    z-index: 10;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    color:#FFFEFA;
}
.product-cart__btn-buy span:first-child{
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    color:#ccc;
}
.product-cart__btn-buy span:last-child{
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    color:#FFFEFA;
}
.btn-buy__cart-has{
  display: flex;
  gap: 4px;
  align-items: center;
}
.btn-buy__cart-has span{
  color:#FFD11A !important;
}
.search-header{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.search-header h1{
  margin:0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.search-header span{
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  color:#fff;
}
.search-not-found{
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.h1-mobile{
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.h1-mobile h1{
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.h1-mobile span{
  font-size: 12px;
  line-height: 1.3;
}

.pagination{
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 0 24px 0;
  margin:0;
  max-width: 500px;
  width: 500px;
  align-self: center;
}
.show-more__btn{
  width: 100%;
  padding: 8px 16px;
  display: flex;
  gap:4px;
  align-items: center;
  justify-content: center;
  background-color: #262626;
  border: 1px solid #262626;
  border-radius: 6px;
}
.show-more__btn>span{
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color:#F1F1F3;
}
.pagination__pages-switcher{
  display: flex;
}
.switcher__buttons{
  display: flex;
  gap:4px;
  flex:0 0 100px;
}
.switcher__btn{
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #262626;
  padding:14px;
  width: 100%;
  border: 1px solid #262626;
  border-radius: 6px;
}
.pages-switcher__info{
  display: flex;
  flex: 1 1 0;
  justify-content: center;
  align-items: center;
}
.pages-switcher__info>span{
  font-size: 10px;
  line-height: 1.3;
  color:#F1F1F3;
}
.product-card__link-wrap{
  display: flex;
  flex-direction: column;
  gap:8px;
}

.video-wrapper-category {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
}

.video-wrapper-category iframe {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

@media(max-width: 1200px){
  .product-card img{
    width: 100%;
    height: auto;
  }
}

@media(max-width: 768px){
  .cat-ui__description {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }

  .cat-ui__description-media {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    width: 152px;
    height: 152px;
    min-width: 0;
    margin-left: auto;
  }

  .cat-ui__description-image {
    max-height: 120px;
    width: auto;
  }

  .cat-ui__products{
    grid-template-columns: repeat(2, 1fr);
  }
  .cat-ui__tab{
    padding:11px 16px;
  }
  .pagination{
    max-width: 100%;
    width: 100%;
  }
}

@media(max-width: 500px){
  .cat-ui__subcats{
    grid-template-columns: repeat(2, 1fr);
  }
}
