/* Catalog Page Styles */

/* Breadcrumbs */
.breadcrumbs {
  padding: 20px 0;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 700;
  color: #666;
}

.breadcrumbs__link {
  color: #242424;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumbs__link:hover {
  color: var(--primary-red);
}

.breadcrumbs__separator {
  margin: 0;
  color: #666;
}

.breadcrumbs__current {
  color: #666;
}

/* Catalog Header */
.catalog-header {
  padding-top: 20px;
  position: relative;
}
.catalog-header::before {
  left: 0;
}

.catalog-header::after {
  right: 0;
}

.catalog-header__title {
  font-family: var(--font-primary);
  font-size: 34px;
  font-weight: 700;
  color: #000;
  margin-bottom: 20px;
}

.catalog-header__description {
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 500;
  line-height: 35px;
  color: #242424;
  max-width: 1174px;
  margin-bottom: 0;
}

/* Categories */
.categories {
  padding: 40px 0;
}

.categories__title {
  font-family: var(--font-primary);
  font-size: 27px;
  font-weight: 500;
  color: #696565;
  margin-bottom: 30px;
}

.categories__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
  background: transparent;
  border: 3px solid #000;
  border-radius: 15px;
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-red);
  transition: all 0.3s ease;
  text-transform: uppercase;

}

.category__btn--active {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: #fff;
}

.category__btn--active .category__arrow {
  filter: brightness(0) invert(1);
}

.category__arrow {
  width: 36px;
  height: 36px;
  transition: transform 0.3s ease;
}

.category__btn--active .category__arrow,
.category__submenu--open ~ .category__btn .category__arrow {
  transform: rotate(0deg);
}

.category__submenu {
  display: none; /* Скрыто по умолчанию */
  list-style: none;
  margin: 10px 0 0;
  padding-left: 20px; /* Отступ для вложенности */
}

/* Когда подменю открыто */
.category__submenu--open {
  display: block;
}


.category__submenu .category__submenu {
  display: block;
  margin-left: 45px;
  padding-left: 0;
  margin-top: 0;
}
.category__submenu .category__submenu a{
  font-family: var(--gray);
  font-size: 18px;
  font-weight: 500;
  color: var(--primary-red);
  text-decoration: none;
  line-height: 20px;
  transition: color 0.3s ease;
  padding: 4px 5px;
}
/* Стили для элементов подменю */
.category__submenu li {
  margin-bottom: 0;
  position: relative;
}

/* Стили для ссылок */
.category__submenu a {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 500;
  color: var(--primary-red);
  text-decoration: none;
  line-height: 33px;
  transition: color 0.3s ease;
  text-transform: uppercase;
  display: block;
  padding: 4px 8px;
}

.category__submenu a:hover {
  text-decoration: underline;
}

.category__submenu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.category__submenu--open {
  max-height: 1000px;
  opacity: 1;
}



.category__submenu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease-in-out, opacity 0.3s ease-in-out;
}

.category__submenu--open {
  max-height: 2000px;
  opacity: 1;
}

.category__submenu--open .category__submenu {
  max-height: none;
  overflow: visible;
  opacity: 1;
}

.category__submenu-item--active a.active {
  font-weight: 600;
  padding-left: 20px;
}
.category__submenu-item--active a.active::before {
  content: "•";
  margin-right: 5px;
  color: var(--primary-red);
  font-weight: 600;
}

/* Products Section */
.products {
  padding-top: 40px;
  background: var(--dark);
  border-radius: 15px 15px 0 0;
  margin-top: 30px;
  margin-bottom: 50px;
}

.products__header {
  display: flex;
  justify-content: end;
  align-items: center;
  padding: 5px 20px;
  background: #f4f5f5;
  border-radius: 5px;
  margin-bottom: 30px;
}

.products__title {
  font-family: var(--font-primary);
  font-size: 30px;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
}

.products__view {
  display: flex;
  align-items: center;
  gap: 10px;
}

.products__view span {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 500;
  color: var(--dark);
}

.view-btn {
  display: grid;
  grid-template-columns: repeat(3, 8px);
  gap: 3px;
  padding: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.view-btn span {
  width: 8px;
  height: 8px;
  background: #d9d9d9;
  border-radius: 2px;
  transition: background 0.3s ease;
}

.view-btn--active span {
  background: var(--dark);
}

.view-btn--list {
  grid-template-columns: 8px 20px;
}

.view-btn--list span:nth-child(2n) {
  width: 20px;
}

/* Products Grid */
.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px 20px;
  margin-bottom: 50px;
  padding-left: 15px;
  padding-right: 16px;
}

/* Product Card */
.product-card {
  background: #fff;
  border: 1px solid #a4a8ae;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  box-shadow: 2px 4px 23px 7px #C31625;

}

.product-card__link {
  display: block;
  text-decoration: none;
  padding: 16px 10px;
}

.product-card__image {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.product-card__image img {
  width: 150px;
  height: 120px;
  object-fit: contain;
}

.product-card__gallery {
  display: flex;
  gap: 9px;
  margin-top: 20px;
  opacity: 0;
}

.product-card__gallery span {
  width: 71px;
  height: 3px;
  background: #d9d9d9;
  border-radius: 2px;
}

.product-card__gallery span.active {
  background: #666;
}

.product-card__content {
  padding: 0 5px;
  margin-bottom: 20px;
}

.product-card__title {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 500;
  color: #000;
  line-height: 22px;
  margin-bottom: 16px;
  min-height: 44px;
}

.product-card--hover .product-card__title {
  color: var(--primary-red);
}

.product-card__sku {
  display: block;
  font-family: var(--font-primary);
  font-size: 17px;
  font-weight: 300;
  color: #666;
  text-align: center;
}

.product-card__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 10px 10px;
}

.product-card__price {
  font-family: 'Roboto', sans-serif;
  font-size: 30px;
  font-weight: 500;
  color: #000;
}

.product-card__btn {
  width: 100%;
  max-width: 210px;
  padding: 14px 20px;
  background: transparent;
  border: 1px solid #a4a8ae;
  border-radius: 10px;
  font-family: var(--font-primary);
  font-size: 17px;
  font-weight: 600;
  color: var(--primary-red);
  cursor: pointer;
  transition: all 0.3s ease;
}

.product-card__btn:hover,
.product-card__btn--red {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: #fff;
}

.product-card:hover .product-card__footer {
  display: block;
  text-align: center;
}
.product-card:hover .product-card__title {
  color: var(--primary-red);
}

.product-card:hover .product-card__gallery{
  opacity: 1;
}

.product-card {
  transition: box-shadow 0.3s ease;
}

.product-card:hover {
  box-shadow: 2px 4px 23px 7px #C31625;
}

.product-card {
  position: relative;
  overflow: visible;
}
.product-card {
  position: relative;
  overflow: visible;
}

.product-card__footer {
  position: relative;
  left: 0;
  right: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-card__footer {
  opacity: 1;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}

.pagination__btn {
  min-width: 33px;
  height: 30px;
  padding: 0 8px;
  background: #d9d9d9;
  border: none;
  border-radius: 10px;
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #000;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.pagination__btn--active {
  background: var(--primary-red);
  color: #fff;
}

.pagination__btn:hover:not(.pagination__btn--active) {
  background: #c5c5c5;
}

.pagination__dots {
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  color: #fff;
}

/* Catalog Banner */
.catalog-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 40px 0;
  background: var(--dark);
  border-radius: 10px;
  position: relative;
}

.catalog-banner__logo {
  max-width: 328px;
  position: relative;
  bottom: 0;
  left: -15px;
}

.catalog-banner__btn {
  display: inline-block;
  padding: 13px 50px;
  background: linear-gradient(90deg, var(--primary-red) 0%, #242424 100%);
  border-radius: 10px;
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.catalog-banner__btn:hover {
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 1200px) {
  .products__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .catalog-header__title {
    font-size: 28px;
  }
  
  .catalog-header__description {
    font-size: 18px;
  }
  
  .categories__title {
    font-size: 22px;
  }
  
  .category__btn {
    font-size: 22px;
  }
  
  .products__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .catalog-banner {
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .catalog-header__title {
    font-size: 24px;
  }
  
  .catalog-header__description {
    font-size: 16px;
  }
  
  .products__header {
    flex-direction: column;
    gap: 15px;
    align-items: end;
  }
  
  .products__title {
    font-size: 24px;
  }
  
  .category__btn {
    font-size: 18px;
  }
  
  .category__arrow {
    width: 28px;
    height: 28px;
  }
  
  .category__submenu a {
    font-size: 16px;
  }
  .catalog-banner__logo {
    max-width: 220px;
    left: -48px;
  }
}
@media(max-width: 620px){
  .catalog-banner__logo {
    display: none;
  }
  .catalog-banner{
    padding-bottom: 30px;
    justify-content: end;
  }
}

@media (max-width: 576px) {
  .products__grid {
    grid-template-columns: 1fr;
  }
  
  .product-card__btn {
    max-width: 100%;
  }
}

.show-table .products__grid{
  grid-template-columns:none;
  gap: 10px;
}
.show-table  .product-card:hover {
  box-shadow:none;
}
.show-table .product-card__footer{
  display: block;
  text-align: left;
}
.show-table .product-card:hover .product-card__footer{
  display: block;
  text-align: left;
}
.show-table  .product-card:hover{
  transform: none;
}
.show-table .product-card__gallery{
  display: none;
}
.show-table .product-card__gallery{
    display: none;
}
.show-table  .product-card__title {
  color: var(--primary-red);
  margin-bottom: 0;
}

.show-table  .product-card__gallery{
  display: flex;
}
.show-table .product-card__image{
  height: 84px;
  max-width: 100px;
  margin-bottom: 0;
  width: 100%;
}
.show-table .product-card__link{
  display: flex;
  text-decoration: none;
  padding: 16px 10px;
  justify-content: space-between;
  align-items: center;
  max-height: 120px;
}
.show-table .product-card__content{
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: start;
  padding-left: 100px;
}
.show-table  .product-card__image img{
  max-width: 100%;
  max-height: 100%;
}
.show-table .product-card__btn{
  width: 170px;
  height: 40px;
  padding: 0;
  max-width: 210px;
  background: transparent;
  border: 1px solid #a4a8ae;
  font-family: var(--font-primary);
  color: var(--primary-red);
  cursor: pointer;
  transition: all 0.3s ease;

}
.show-table .product-card__btn:hover{
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: #fff;
}
.show-table .product-card__gallery{
  display: none;
}
.show-table__content{
  display: none;
}
.show-table .show-table__content{
  display: flex;
}
.show-table .__show-table{
  display: none;
}
@media (max-width: 991px) {
  .show-table .product-card__content{
    padding-left: 50px;
  }
}
@media (max-width: 800px) {
  .show-table .product-card__content{
    padding-left: 25px;
  }
}
@media (max-width: 768px) {

}