/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* Скрывает лишнюю кнопку на карте */
.facetwp-map-filtering {
  display: none;
}

/* Общие отступы для карточек */
.branches-wrapper {
  margin-left: -5px !important;
  margin-right: -5px !important;
  overflow-y: auto;
  display: grid;
  height: 640px;
  grid-template-columns: repeat(2, 1fr); /* две колонки на десктопе */
}

@media (max-width: 767px) {
  .branches-wrapper {
    grid-template-columns: 1fr; /* одна колонка на мобильных */
    overflow-y: visible;
    display: grid;
    height: auto;
  }
}

/* Отступ сверху для списка */
.facetwp-listing {
  margin-top: 30px;
}

/* Отступ снизу для фильтров */
.facetwp-facet {
  margin-bottom: 5px !important;
}

/* Исправлен селектор с точкой */
.filter-wrap {
  position: relative;
  height: 100%;
  width: 100%;
}

/* Высота блока с картой и фильтрами */
.column--right > .content-wrapper,
.column--right > .content-wrapper > .facetwp-facet-locations,
.column--right > .content-wrapper > .facetwp-facet-locations > #facetwp-map {
  height: 100% !important;
}

@media (max-width: 768px) {
  .column--right > .content-wrapper,
  .column--right > .content-wrapper > .facetwp-facet-locations,
  .column--right > .content-wrapper > .facetwp-facet-locations > #facetwp-map {
    height: 450px !important;
  }
}

/* Флекс-контейнер для колонок */
.flex-wrapper {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  overflow: hidden;
}

/* Колонки по 50% ширины на десктопе */
.column {
  flex: 0 0 50%;
  max-width: 50%;
  box-sizing: border-box;
  padding: 1rem;
  min-width: 0;
}

/* Колонки на всю ширину на мобильных */
@media (max-width: 768px) {
  .column {
    flex: 0 0 100%;
    max-width: 100%;
    overflow: visible;
    padding: 0;
  }

  /* Порядок колонок на мобильных */
  .column--right {
    order: 1;
    padding: 0;
  }

  .column--left {
    order: 2;
  }
}

/* Контент-обертка */
.content-wrapper {
  width: 100%;
  box-sizing: border-box;
}

/* Стили карточек */
.branch-card {
  padding: 5px;
}

.info-wrapper {
  border: 1px solid #e3e3e3;
}

.branch-info {
  padding: 15px 15px 0 15px;
  position: relative;
  min-height: 225px !important;
}
.branch-h {
  padding: 15px 15px 0 15px;
  position: relative;
  min-height: 225px !important;
}
.card-logo {
  position: absolute;
  width: 30px;
  height: 30px;
  right: 15px;
}

.branch-address {
  font-size: 16px;
}
.branch-address,
.branch-city {
  font-weight: 600;
}

.material-icons {
  font-size: 18px;
  margin-right: 5px;
  color: black;
}

.branch-city span,
.branch-phone span,
.button-filter span {
  line-height: 1.5;
  vertical-align: middle;
}

.branch-phone span,
.button-filter span {
  font-size: 14px;
  color: #333;
}

.branch-hours {
  margin-top: 7px;
  color: #444;
}

/* Изображение в карточке */
.branch-image {
  width: 100%;
  max-width: 100%;
  height: 155px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.branch-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.branch-image img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .branch-image {
    height: auto;
  }
}

/* Футер карточки */
.card-footer {
  padding: 15px;
  background-color: #e3e3e3;
  font-weight: 600;
}
/* Для Chrome, Edge, Safari */
.branches-wrapper {
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #e0e0e0 #f7f7f7; /* Firefox */
}

/* Chrome, Edge, Safari */
.branches-wrapper::-webkit-scrollbar {
  width: 10px; /* ширина скроллбара */
  background: #f7f7f7; /* цвет фона */
  border-radius: 8px;
}

.branches-wrapper::-webkit-scrollbar-thumb {
  background: #e0e0e0; /* цвет ползунка */
  border-radius: 8px;
  border: 2px solid #f7f7f7;
}

.branches-wrapper::-webkit-scrollbar-thumb:hover {
  background: #cccccc;
}

/* Убрать стрелки у скроллбара (Chrome, Edge, Safari) */
.branches-wrapper::-webkit-scrollbar-button {
  display: none !important;
  height: 0;
  width: 0;
}
.branches-row3 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-left: -5px !important;
  margin-right: -5px !important;
  /* overflow-y: auto; */
  /* height: 320px;  */
}
@media (max-width: 767px) {
  .branches-row3 {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(100px, auto);
    height: auto;
  }
  .branch-card {
    margin-bottom: 10px;
  }
}
.wd-page-title .container .entry-title {
  font-size: 30px !important;
}
@media (max-width: 767px) {
  .wd-page-title .container .entry-title {
    font-size: 24px !important;
  }
}
#menu-main-desktop-right,
#menu-main-desktop-left {
  padding-top: 25px;
}

.hero-section-m {
  display: none !important;
}
@media (max-width: 767px) {
  .hero-section {
    display: none !important;
  }
  .hero-section-m {
    display: block !important;
  }
}
.hero-heading {
  text-shadow: 4px 4px 6px rgba(66, 68, 90, 0.5);
}
.vc_video-bg.vc_hidden-xs {
  display: block !important;
}

.page-template-page-recipes-home .wd-page-title .entry-title {
  margin-top: 30px !important;
}
/* .tax-recipe_category .wd-content-layout {
  padding-block: 0px !important;
} */
