@font-face {
    font-family: "Exo2-Medium"; 
    src: url("/wp-content/themes/custom2/fonts/Exo2-Medium.ttf") format("truetype"); 
    font-style: normal; 
    font-weight: normal; 
  } 
  @font-face {
    font-family: "Exo2-Regular"; 
    src: url("/wp-content/themes/custom2/fonts/Exo2-Regular.ttf") format("truetype"); 
    font-style: normal; 
    font-weight: normal; 
  }   
  @font-face {
    font-family: "Exo2-Light"; 
    src: url("/wp-content/themes/custom2/fonts/Exo2-Light.ttf") format("truetype"); 
    font-style: normal; 
    font-weight: normal; 
  } 
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: "Exo2-Light"
  }
  
  .header, .footer {
    padding: 15px 0;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
  }
  

  .header {

    padding: 40px ;
    font-family: "Exo2-Regular";

  }
  
  .header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;

  }
  
 
  .logo {
    text-decoration: none;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    white-space: nowrap;
    display: flex;
    align-items: center;
    text-decoration: none;
  }

  .logo img {
    max-width: none; /* Запрещаем уменьшение */
    height: auto; /* Сохраняем пропорции */

}



.nav-list {
    list-style: none;
     margin: 0;
    padding: 0;
    display: flex; 
    justify-content: center; 
    gap: 70px;
    font-size: 17px;
    white-space: nowrap;
}
  
.nav-list .menu-item {
    position: relative; 
}

.nav-list a {
  text-decoration: none; 
  color: #0e1416;
  font-size: 20px; 
  padding: 10px 15px;
  border-radius: 5px; 
  transition: color 0.3s ease;  
  
  }

  .nav-list a:hover {

    color: #a3a3a3; 
}


.banner-slider {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.banner-slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.banner-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%; /* Фиксируем высоту */
}

.banner-slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Заполняет баннер без искажений */
}

.banner-prev, .banner-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 15px;
  cursor: pointer;
  z-index: 10;
  font-size: 24px;
}

.banner-prev {
  left: 15px;
}

.banner-next {
  right: 15px;
}

.manufacturers-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 4 колонки в ряд */
  justify-content: center;
  gap: 20px;
  max-width: 100%;
  margin-bottom: 100px;
}

.manufacturer-logo {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.manufacturer-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: scale-down; /* Сохраняем пропорции, без обрезки */
  object-position: center; /* Центрируем изображение */
  
}


.contacts {
  padding: 20px;
}

.contact-content {
  margin-bottom: 20px;
}



.about {
  padding: 20px;
}

.about-content {
  line-height: 1.6;
  color: #333;
}

.about-content img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
}



  
  .new-arrivals {
    margin-top: 120px;
  }
  
  .new-arrivals h2 {
    font-size: 36px;
    margin-bottom: 20px;
  }
  
  .products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 70px;
    margin-bottom: 100px;
}

.product-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 265px;
  height: 320px;
  background: white;
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none; /* Убираем стандартное подчёркивание ссылок */
  color: inherit; /* Оставляем стандартный цвет текста */
  transition: transform 0.3s ease-in-out;
}

.product-item a {
  text-decoration: none !important;
  color: black !important;
  display: block; /* Делаем всю область ссылки кликабельной */
}

.product-item img {
  width: 220px;
  height: 220px;
  object-fit: cover; /* Масштабируем и обрезаем, чтобы картинка всегда была квадратной */
}

/* Опционально: анимация при наведении */
.product-item:hover {
  transform: scale(1.05); /* Немного увеличиваем картинку при наведении */
}


.product-item h3 {
    font-size: 22px;
    margin: 5px 0;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgb(0, 0, 0); 
    text-decoration: none!important; 
    
}

.product-details {
  width: 80%;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-images {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  border-radius: 10px;
  width: 100%; /* Растягиваем блок на всю ширину родительского элемента */
  max-width: 1200px; /* Максимальная ширина 1200px */
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.25);
}


.main-image img {
  width: 100px;
  height: 100px;
  height: auto;
  border-radius: 10px;
}

.image-gallery {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  
  
}

.image-gallery img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
  border-radius: 5px;
}

.image-gallery img:hover {
  transform: scale(1.1);
}

.product-title {
  font-size: 3000px;
  margin-top: 20px;
  color: #000000;
}

.product-description {
  max-width: 1200px;
  
  margin-top: 20px;
  font-size: 18px;
  color: #000000;
}

.related-products {
  margin-top: 40px;
  width: 100%;
}

.related-products h2 {
  font-size: 24px;
  text-align: center;
  margin-bottom: 20px;
}

.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  justify-items: center;
}

.product-item {

  border-radius: 10px;
  padding: 10px;
  text-align: center;
}

.product-item img {
  width: 100%;
  border-radius: 5px;
}

.product-item h3 {
  margin-top: 10px;
  font-size: 18px;
  color: #000000;
}



.product-images {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-image {
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
}

.main-image img {
  max-width: 100%;
  height: auto;

  border-radius: 8px;
}
.product-images .main-image img {
  width: 400px; /* Растягиваем изображение по ширине контейнера */
  height: 400px; /* Устанавливаем фиксированную высоту для основного изображения */
  object-fit: cover;
  margin-top: 30px
}
.product-images .image-gallery img {
  width: 100px; /* Ширина изображений в галерее */
  height: 100px; /* Высота изображений в галерее */
  object-fit: cover; /* Обрезаем изображения, чтобы они соответствовали заданным размерам */
  margin: 5px; /* Отступы между изображениями */
  cursor: pointer; /* Добавляем курсор в виде указателя */
  transition: border 0.3s; /* Плавное изменение границы при наведении */
  margin-bottom: 30px;
}

.product-images .image-gallery img.selected {
  border: 3px solid #434343; /* Добавляем синюю рамку на выбранное изображение */
}

.image-gallery {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.image-gallery img {
  width: 80px; /* Размер миниатюр */
  height: auto;
  cursor: pointer;
  border: 2px solid transparent; /* Без рамки по умолчанию */
  border-radius: 5px;
  transition: all 0.3s ease;
}

.image-gallery img:hover {
  border-color: #434343; /* Подсветка при наведении */
}

.image-gallery img.selected {
  border-color: #434343; /* Рамка для выбранной картинки */
}

.product-title {
  font-size: 30px;
  margin-top: 20px;
}

.product-description {
  margin-top: 20px;
  font-size: 18px;
}

.related-products {
  margin-top: 40px;
}


.pagination {
  display: flex;
  justify-content: center; /* Центрируем */
  align-items: center;
  flex-wrap: wrap; /* Чтобы элементы не выходили за пределы экрана */
  margin-top: 30px;
  gap: 8px;
  padding-bottom: 50px;
}

.pagination a, .pagination span {
  display: inline-block;
  padding: 8px 12px; 
  text-decoration: none;
  color: rgb(0, 0, 0);
  font-weight: bold;
  border-radius: 5px; /* Закругление краёв */
  min-width: 20px;
  text-align: center;
}

.pagination .current {
  background-color: #434343;
  color: white;
}

.pagination a:hover {
  background-color: #ddd;
}


.filters {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 200px;
  margin-top: 50px;
}

.filter-title {
  font-size: 22px;
  margin: 40px 0 40px;
  text-align: left;
}

.filter-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: space-between;
  gap: 15px;
  max-width: 1200px;
  padding-bottom: 30px;
}

.filter-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 360px;
  height: 320px;
  background: white;
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none; /* Убираем стандартное подчёркивание ссылок */
  color: inherit; /* Оставляем стандартный цвет текста */
  transition: transform 0.3s ease-in-out;
}

.filter-item:hover {
  transform: scale(1.05);
}

.filter-item img {
  width: 220px;
  height: 220px;
  object-fit: cover;
}

.filter-item h3{
  font-size: 20px;
  margin-top: 10px;
}


  .footer {
    background-color: #434343; 
    color: #fff;
    padding-top: 50px; 
  }
  
  .footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  


  .kontakt p {
    font-size: 20px; 
    margin-bottom: 15px; 
    line-height: 1.3; 
  }

  .kontakt a{
    text-decoration: none;
    color: #ffffff;
    transition: color 0.3s ease;  
  }

  .kontakt a:hover{
    color: #5f6667;
  }
  
  
  .footer-nav-list {
    list-style: none;
    display: flex;
    gap: 70px; 
  }
  
  .footer-nav-list a {
    text-decoration: none;
    font-size: 20px; 
    color: #fff; 
    transition: color 0.3s ease; 

  }
  
  .footer-nav-list a:hover {
    color: #5f6667;
  }
  

  @media (max-width: 1200px) {

    .container{
      max-width: 1000px;
    }
    .products {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      margin-top: 70px;
      margin-bottom: 100px;
      
  }

  .manufacturers-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 4 колонки в ряд */
    justify-content: center;
    gap: 20px;
    max-width: 100%;
    margin-bottom: 100px;
  }

  .filter-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: space-between;
    gap: 15px;
    max-width: 1200px;
  }

  
  }   

 @media (max-width: 1024px) {
    .header .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px; /* Добавляем больше расстояния между элементами */
    }

    .logo img {
        width: auto; /* Чтобы логотип не уменьшался */
        max-width: 300px; /* Ограничиваем максимальную ширину */
    }

    .nav-list {
        flex-direction: column;
        align-items: center; /* Центрируем */
        gap: 25px;
        margin-top: 30px;
    }

    .nav-list a {
        font-size: 22px;
        padding: 15px 20px;
        white-space: nowrap; /* Запрещаем перенос текста */
    }
    .banner-slider {
      max-height: 400px;
    }
  
    .banner-slide img {
      height: 400px; 
    }
  
    .banner-prev, .banner-next {
      padding: 10px;
    }

    .container h2{
      font-size: 30px;
    }
    
    .container{
      max-width: 600px;
    }


    .products {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
      margin-top: 70px;
      margin-bottom: 100px;
  }
    .footer .container {
      flex-direction: column;
      text-align: center;
    }
  
    .footer-nav-list {
      flex-direction: column;
      gap: 35px;
      margin-bottom: 40px;
      order: -1;
    }
  
    .kontakt {
      margin-top: 20px;
      order: 1;
    }
    .manufacturers-container {
      display: grid;
      grid-template-columns: repeat(2, 1fr); /* 4 колонки в ряд */
      justify-content: center;
      gap: 20px;
      max-width: 100%;
      margin-bottom: 100px;
    }
    .filter-group {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      justify-content: space-between;
      gap: 15px;
      max-width: 1200px;
    }
    .filter-item {
      width: 300px;
      height: 280px;
    }
    
    
}





@media (max-width: 768px) {

  
    .header {
        padding: 40px 0; /* Делаем больше отступ */
    }

    .logo img {
        max-width: 500px; /* Фиксируем размер для мобильных */
    }

    .nav-list {
        gap: 20px;
        margin-top: 40px;
    }

    .nav-list a {
        font-size: 22px;
        padding: 15px;
        white-space: nowrap; /* Запрещаем перенос текста */
    }
    .banner-slider {
      max-height: 300px;
    }
  
    .banner-slide img {
      height: 300px;
    }
  
    .banner-prev, .banner-next {
      padding: 8px;
    }

    .products {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
      margin-top: 70px;
      margin-bottom: 100px;
  }

  .filter-item {
    width: 160px; /* Уменьшаем блок */
    height: 180px;
  }

  .filter-item img {
    width: 140px; /* Уменьшаем изображение */
    height: 140px;
  }

  .filter-item h3 {
    font-size: 20px; /* Делаем текст немного меньше */
  }


.manufacturers-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 4 колонки в ряд */
  justify-content: center;
  gap: 20px;
  max-width: 100%;
  margin-bottom: 100px;
}
.manufacturer-logo {
  width: 120px; /* Уменьшаем блок */
  height: 120px;
}

.manufacturer-logo img {
  max-width: 100%;
  max-height: 100%;
}

.filters {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 200px;
  margin-top: 50px;
}
.filter-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-content: space-between;
  gap: 15px;
  max-width: auto;
}
.filter-item {
  width: 280px;
  height: 300px;
}
.footer {
  padding: 40px 0;
}

.footer-nav-list {
  gap: 25px;
  font-size: 18px;
  order: -1;
}

.kontakt{
  order: 1;
}
.kontakt p {
  font-size: 18px;
}
}



@media (max-width: 610px){
  .filter-item {
    width: 250px;
    height: 230px;
  }
  
}



@media (max-width: 560px) {
  .banner-slider {
    height: 300px;
  }

  .banner-prev, .banner-next {
    padding: 10px;
    font-size: 20px;
  }
  
  .products {
    grid-template-columns: repeat(2, 1fr); /* 2 колонки на мобильных */
    gap: 10px;
  }

  .product-item {
    width: 190px; /* Уменьшил карточки */
    height: 220px;
  }

  .product-item img {
    width: 140px;
    height: 140px;
  }

  .product-item h3 {
    font-size: 16px; /* Чуть уменьшил текст */
  }
  
  .filter-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: space-between;
    gap: 15px;
    max-width: 1200px;
  }
  .filter-item {
    width: 200px;
    height: 230px;
  }
  .product-images .image-gallery img {
    width: 80px; /* Ширина изображений в галерее */
    height: 80px; /* Высота изображений в галерее */
    object-fit: cover; /* Обрезаем изображения, чтобы они соответствовали заданным размерам */
    margin: 5px; /* Отступы между изображениями */
    cursor: pointer; /* Добавляем курсор в виде указателя */
    transition: border 0.3s; /* Плавное изменение границы при наведении */
    margin-bottom: 30px;
  }

  .product-images .image-gallery img.selected {
    border: 3px solid #434343; /* Добавляем синюю рамку на выбранное изображение */
  }
}

@media (max-width: 440px){
  .filter-item {
    width: 160px;
    height: 230px;
  }
  
}