:root {
    --bg-color: rgb(249, 204, 115);
    --bg-shadow: rgb(255, 176, 19);
    --text-color: #202020;
    --description-color: #404040;
    --contrast-color: #888888;
    --green-color: #00a82d;
    --light-green-color: #96d446;
    --orange-color: #ee6e73;
    --blue-color: #6578fe;
    --violet-color: #d4b8f9;
}
html, body {
  overflow-x: hidden;
  touch-action: pan-y;
  background-color: var(--bg-color);
}
.px-1 {
    padding-right: 0.12em !important;
    padding-left: 0.12em !important;
    margin: 0 auto;
}
.error404 img {
  width: 100%; 
  height: 100%;
}



/* -- Наши стили для хедера -- */
.header {
    backdrop-filter: blur(5px);
    background: hsla(0, 0%, 100%, .5);
    -webkit-border-radius: 14px;
    border-radius: 14px;
    -webkit-box-shadow: 0 1.52px 8px 0 rgba(0, 0, 0, .12);
    box-shadow: 0 1.52px 8px 0 rgba(0, 0, 0, .12);
    display: flex;
    justify-content: space-between;
    left: 12px;
    position: fixed;
    right: 12px;
    top: 20px;
    z-index: 99999999;
}

.chavgav-logo img {
  max-width: 70px;
  height: auto;
  display: block;
  margin: 0.5em;
}

.catalog-wrapper {
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-nav {
backdrop-filter: blur(4px);
    background: var(--color-1);
    -webkit-border-radius: 15px;
    border-radius: 15px;
    -webkit-box-shadow: 0 5px 8px 0 rgba(0, 0, 0, .12);
    box-shadow: 0 5px 8px 0 rgba(0, 0, 0, .12);
    display: flex;
    flex-flow: column;
    height: calc(100vh - 200px);
    opacity: 0;
    overflow-y: auto;
    position: fixed;
    top: 100px;
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
    -webkit-transition: transform .2s 
ease;
    transition: transform .2s 
ease;
    visibility: hidden;
    width: 100%;
    z-index: 1;
}

@media screen and (min-width: 992px) {
    .header {
        margin-left: auto;
        margin-right: auto;
        max-width: 1074px;
    }
}
.button {
    cursor: pointer;
    border: 0px;
    padding: 0px;
    font: inherit;
    color: inherit;
    background-color: transparent;
    border-radius: 0px;
    text-align: left;
        appearance: none;
}

.LINK1.LINK2 {
    font-style: normal;
    font-size: 1.4rem;
    line-height: 80%;
    text-transform: uppercase;
    font-feature-settings: "calt" 0;
    font-family: bergen_monoregular;
    font-weight: 400;
}
.LINK1 {
      text-shadow: currentcolor 0px 0px 0px;
    min-height: 0vw;
    font-variation-settings: "slnt" 0;
    display: flex;
    justify-content: flex-start;
}





/* Стили кнопки "Каталог" */
.catalog-button  a {
  font-family: ObelixPro-Regular, sans-serif;
  color: var(--text-color);
  font-size: 1.5em; /* Размер  текста */
  font-weight: bold;
  
}

.catalog-button a:hover {

}

.catalog-section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5em;
  color: var(--blue-color);
}
/* Форма занимает всю доступную ширину */
.chavgav-search-form {
  display: flex;
  align-items: center;
  width: 45%;
  /* Если родительский контейнер ограничивает ширину, можно попробовать width: 100vw; */
}

/* Контейнер для поля ввода – гибкий элемент */
.chavgav-search-input-container {
  flex: 1;                   /* занимает все оставшееся пространство */
  border: 1px solid var(--text-color);
  border-radius: 7px;
  overflow: hidden;
  /* Убираем max-width, чтобы не ограничивать ширину */
}

/* Поле ввода растягивается на всю ширину контейнера */
.chavgav-search-input {
  width: 100%;
  padding: 10px;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: transparent;
  color: var(--description-color);
}

/* Кнопка – фиксированного размера, не влияющая на гибкий контейнер */
.chavgav-search-btn {
  flex: 0 0 auto;
  margin-left: 10px;  /* отступ между полем и кнопкой */
  padding: 12px 24px;
  background-color: var(--green-color);
  color: #fff;
  border: 1px solid var(--text-color);
  border-radius: 7px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  transition: transform 0.1s ease;
}

/* Псевдоэлемент для эффекта тени */
.chavgav-search-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  box-shadow: 5px 5px 0.1px var(--text-color);
  border-radius: 7px;
  z-index: -1;
  transition: box-shadow 0.1s ease;
}

/* Эффект при наведении */
.chavgav-search-btn:hover {
  transform: translate(-2px, -2px);
}

/* Меняем цвет фона и текста у выделенной подсказки */
.ui-widget.ui-widget-content {
  border-radius: 7px;
  padding: 10px;
}
.ui-widget {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.2em;
}  
/* Меняем цвет выделения для подсказок автодополнения */
.ui-menu .ui-menu-item-wrapper.ui-state-focus,
.ui-menu .ui-menu-item-wrapper.ui-state-active {
  background-color: var(--orange-color) !important; /* Бордовый цвет выделения */
  color: #fff !important;                /* Белый текст для контраста */
  border: none;
  border-radius: 7px;
  font-size: 1.1em;
}


 /* ============== Калькулятор Контакты ============== */
.header-extra-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto; /* если нужно выровнять по правой стороне */
}

.header-extra-item {
  display: inline-flex;
}

.header-extra-link {
  display: flex;
  flex-direction: column;  /* вертикальное расположение: иконка сверху, текст снизу */
  align-items: center;
  text-decoration: none;
  color: var(--contrast-color);
  transition: color 0.3s ease;
}

.header-extra-link i {
  font-size: 30px;    /* размер иконки */
  margin-bottom: 2px; /* отступ между иконкой и текстом */
}

.header-extra-text {
  font-size: 14px;  /* размер текста */
}

.header-extra-link:hover {
  color: var(--text-color);  /* цвет при наведении */
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 768px) {
  .chavgav-header-inner {
    flex-wrap: wrap;         /* Перенос элементов на несколько строк при нехватке места */
    justify-content: center; /* Центрирование элементов */
    padding: 10px 15px;
    gap: 10px;
  }
  
  /* Уменьшение логотипа */
  #chavgav-logo-svg {
    width: 150px;
  }
  
.catalog-button {
    padding: 10px 16px;
    font-size: 14px;
  }
  /* Адаптация поисковой формы */
  .chavgav-search-form {
    width: 100%;
    margin: 10px 0;
  }
  
  .chavgav-search-input-container {
    flex: 1;
    max-width: 100%;
  }
  
  .chavgav-search-input {
    font-size: 16px;
    padding: 8px;
  }
  
  .chavgav-search-btn {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  /* Стили для ссылок или других элементов */
  .chavgav-link {
    font-size: 14px;
    padding: 6px;
  }
}
/* ============================= Footer ============================ */
.footer {
    background: var(--bg-color);
    padding: 50px 0;
    color: var(--text-color);
    border-top: 1px solid var(--text-color);
}

.footer h6 {
    color: var(--blue-color);
}

.footer a {
    color: var(--text-color);
    text-decoration: none;
    transition: all .3s;
    
}

.footer a:hover {
  background-color: #fff;
  color: var(--description-color);
  text-decoration: none;
  
  border-radius: 7px;
}

.footer-icons {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    font-size: 20px;
}
#upbtn {
  position: fixed;
  bottom: 100px;
  right: -10px;
  background-color: #fff;
  color: var(--description-color);
  border: 3px solid var(--description-color);
  padding: 5px 10px 5px;
  border-radius: 10px;  /* можно изменить по вкусу */
  cursor: pointer;
  z-index: 10000;
  font-weight: bold;
  display: none;  /* скрыта по умолчанию */
  transition: opacity 0.3s ease;
  transform: rotate(-90deg);
}
#upbtn:hover {
  background-color: var(--contrast-color);
}
#upbtn i {
  font-size: 16px;  /* размер иконки */
}
/* ============================= Footer ============================ */

/* ============================= Каталог ============================ */
ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px; /* расстояние между товарами, измените по вкусу */
}

@media (max-width: 1024px) {
  ul.products {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  ul.products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  ul.products {
    grid-template-columns: 1fr;
  }
}

ul.products {
  padding: 0 20px; /* отступы по 20px слева и справа */
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.products-wrapper {
  max-width: 1200px; /* или другая подходящая максимальная ширина */
  margin: 0 auto;    /* центрирование блока */
  padding: 0 20px;   /* отступы от краёв браузера */
}


.catalog-title {
  margin: 35px 0; /* Отступы сверху и снизу */
  color: var(--text-color);
  font-weight: 600;
  
}

.catalog-description {
    font-family: 'Varela Round', sans-serif;
    font-weight: 500;
  position: relative;
  text-align: justify;
  color: var(--description-color);
  padding-block-end: 60px;
}

/* ============================= Каталог ============================ */



/* ============================= Product catalog ============================ */
.product-card {
  flex: 0 0 auto;
  margin-left: 0px;  /* отступ между полем и кнопкой */
  padding: 12px 24px;
  background-color: var(--bg-color);
  color: #fff;
  border: 1px solid var(--text-color);
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  transition: transform 0.1s ease;
}

.product-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  box-shadow: 5px 5px 0.1px var(--text-color);
  border-radius: 10px;
  z-index: -1;
  transition: box-shadow 0.1s ease;
}

.product-card:hover {
  transform: translate(-2px, -2px);
}



.product-image img {
  width: 100%;
  display: block;
}


.product-title {
  color: var(--text-color);
  font-size: 1.2rem;
  margin-bottom: -.5rem;
  margin-top: .5em;
  font-weight: 500;
  font-family: 'Varela Round', Gadget, sans-serif;  /* задайте шрифт */
    /* Дополнительно можно ограничить количество строк через -webkit-line-clamp, если нужно */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.product-price {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-color);
  padding-block-start: 10px;
  margin-block-end: 0px;
  display: flex;
  font-family: 'Varela Round', Gadget, sans-serif;  /* задайте шрифт */
}
.product-description {
    display: -webkit-box;
    line-height: 1.5;
    max-height: 4.5em;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
  /* Дополнительно можно ограничить количество строк через -webkit-line-clamp, если нужно */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 5px;
}
.product-separator {
  border: none;              /* Убираем стандартное оформление */
  border-top: 1px solid var(--description-color); /* 1px линия, можно изменить цвет */
  margin: 5px 0;            /* Отступ сверху и снизу */
}
.woocommerce-pagination-wrapper {
  text-align: center;
  margin: 40px 0;
}

.woocommerce-pagination ul.page-numbers {
  display: inline-flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 10px;
  flex-wrap: wrap;
}

.woocommerce-pagination li a,
.woocommerce-pagination li span {
  display: block;
  padding: 6px 12px;
  border: 1px solid #ddd;
  color: var(--text-color);
  border-radius: 4px;
  text-decoration: none;
  font-size: 15px;
  background: #f9f9f9;
}

.woocommerce-pagination li a:hover {
  background: #e9e9e9;
}

.woocommerce-pagination li .current {
  background: var(--blue-color);
  color: #fff;
  border-color: var(--blue-color);
}
@media (max-width: 576px) {
  .product-card {
    font-size: 14px;
    padding: 10px 14px;
  }

  .product-title {
    font-size: 1rem;
  }

  .product-price {
    font-size: 0.9rem;
  }

  .product-description {
    font-size: 13px;
    line-height: 1.4;
  }
}
/* ============================= Product catalog ============================ */
/* ============================= preloader ============================ */
#chavgav-preloader {
  position: fixed;
  z-index: 9999;
  background: var(--bg-color);
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center; /* Центровка текста */
}

#chavgav-preloader .container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

#chavgav-preloader .part1 {
  font-family: 'Varela Round', sans-serif;
  font-weight: 600;
  font-size: 4rem;
  color: var(--green-color);
}

#chavgav-preloader .loader {
  margin-top: 2rem;
  height: 5px;
  width: 15rem;
  background-color: lightgrey;
  overflow: hidden;
  position: relative;
}

#chavgav-preloader .loading {
  background-color: var(--green-color);
  width: 5rem;
  height: 5px;
  animation: chavgav-loading 1.8s infinite;
}

@keyframes chavgav-loading {
  0% {
    transform: translateX(0rem);
  }
  50% {
    transform: translateX(10rem);
  }
  100% {
    transform: translateX(0rem);
  }
}
/* ============================= preloader ============================ */
#cookie-consent {
  position: fixed;
  bottom: 0;
  z-index: 99999;
  padding: 0;
  margin: 10px;
  font-family: inherit;
}
.cookie-message {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: 500px;
  margin: 18px auto;
  background: #00000090;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
  padding: 18px 24px;
  font-size: 1rem;
  color: #fff;
}
.cookie-message a {
  text-decoration: underline;
  transition: color .15s;
}
.cookie-message a:hover { color: var(--orange-color); }


#cookie-accept {
  margin-left: 18px;
  padding: 8px 20px;
  background: var(--blue-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s;
}

#cookie-accept:hover { background: var(--orange-color); }

@media (max-width: 700px) {
  .cookie-message { flex-direction: column; align-items: stretch; }
  #cookie-accept { margin: 12px 0 0 0; width: 100%; }
}

