.seo_text { margin-top: 30px; }
.products-list-wrap {
    margin-top: 30px;
    overflow: visible;
    display: flow-root;
}

.filters_block {
    width: 25%;
    float: left;
}

.select-line-block {
    display: block;
}

.products-content-block {
    width: 75%;
    float: right;
}

.filter-hidden {
    display: none !important;
}
.checkbox_group { margin-bottom: 8px; display: flex; align-items: center; cursor: pointer; }
.checkbox_group input[type="checkbox"] { 
  margin-right: 10px; 
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  position: relative;
}
.checkbox_group input[type="checkbox"]:checked { 
  background: #f7941e;
  border-color: #f7941e;
}
.checkbox_group input[type="checkbox"]:checked::after {
  content: '+';
  position: absolute;
  left: 50%;
  top: calc(50% + 1px);
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  line-height: 14px;
}
.checkbox_group label { cursor: pointer; display: flex; align-items: center; width: 100%; color: #333; font-size: 1.4rem; }
.checkbox_group.active label { color: #f7941e; font-weight: bold; }

.filter_title, .filter_title_other { margin-bottom: 10px; margin-top: 15px; cursor: pointer; user-select: none; }
.filter_title span, .filter_title_other span { font-size:1.8rem; font-weight: bolder; color: #f7941e; }
.filter_block, .filter_block_other { overflow: hidden; transition: max-height .5s ease-in-out; }
.filter_title.animate .toggle-buttons-rotate, .filter_title_other.animate .toggle-buttons-rotate { transform: rotateZ(360deg); }
.toggle-buttons-rotate { position: relative; width: 13px; height: 13px; display: inline-block; padding-left: 40px; transition: transform .6s ease-in-out; }
.toggle-buttons-rotate i { color: #f7941e; transition: opacity .3s ease-in-out; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.filter_title:not(.animate) .toggle-buttons-rotate i.fa-minus { opacity: 0; }
.filter_title:not(.animate) .toggle-buttons-rotate i.fa-plus { opacity: 1; }

.reset-filters-btn {
  display: none;
  margin-top: 15px;
}
.reset-filters-btn.visible { display: inline-block; }

/* PRODUCT CARD STYLES */
.products-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  padding-top: 8px;
}
.products-list-el {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 12px !important;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #ececec;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.products-list-el:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
  border-color: #e6e6e6;
}
.products-list-el .btn,
.products-list-el .recipe-mark {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.products-list-el:hover .btn,
.products-list-el:active .btn,
.products-list-el.active .btn,
.products-list-el:hover .recipe-mark,
.products-list-el:active .recipe-mark,
.products-list-el.active .recipe-mark {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.products-list-el-img {
  display: flex;
  height: 240px;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 5px;
  overflow: visible !important;
}
.products-list-el-img img {
  max-height: 220px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.products-list-el-img .recipe-mark {
  position: absolute !important;
  top: -5px !important;
  right: -5px !important;
  left: auto !important;
  z-index: 10 !important;
  margin: 0 !important;
  width: 55px !important;
  height: 55px !important;
  padding: 5px !important;
  font-size: 0.75rem !important;
  line-height: 1.1 !important;
  color: #fff !important;
  font-weight: 800 !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2) !important;
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-transform: uppercase !important;
  word-break: break-word !important;
}
.recipe-mark-orange { background-color: #f7941e !important; }
.recipe-mark-green { background-color: #04682C !important; }
.products-list-el-title {
  margin-bottom: 8px;
  height: 2.8em;
  overflow: hidden;
  font-size: 1.4rem !important;
  line-height: 1.2;
}
.products-list-el-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.products-list-el-text {
  flex-grow: 1;
  margin-bottom: 8px;
  font-size: 1.25rem !important;
  line-height: 1.3;
}
.products-list-el-desc {
  margin-bottom: 12px;
  font-size: 1.1rem !important;
}
.products-list .btn {
  width: 100%;
  margin-top: auto;
}

/* RESPONSIVE STYLES */
@media (max-width: 1024px) {
  .products-list-wrap {
    display: flex;
    flex-direction: column;
  }
  .filters_block {
    width: 100% !important;
    float: none !important;
    margin-bottom: 30px;
  }
  .products-content-block {
    width: 100% !important;
    float: none !important;
  }
  .products-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-list-el {
    padding: 10px !important;
  }
  .products-list .btn {
    display: block !important;
    width: calc(100% - 100px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 10px 25px !important;
    font-size: 1.2rem !important;
    text-align: center !important;
    box-sizing: border-box;
    white-space: nowrap !important;
  }
}

@media (max-width: 600px) {
  .products-list-wrap {
    display: block !important;
    overflow: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .products-content-block {
    float: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box;
  }
  .products-list {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .products-list-el {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 15px !important;
    box-sizing: border-box;
  }
  .products-list-el-img {
    height: 240px;
  }
  .products-list-el-img img {
    max-height: 220px;
  }
  .products-list-el-img .recipe-mark {
    right: 5px !important;
    top: 5px !important;
    width: 48px !important;
    height: 48px !important;
  }
  .products-list .btn {
    display: block !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 12px 20px !important;
    font-size: 1.2rem !important;
    text-align: center !important;
    box-sizing: border-box;
    white-space: nowrap !important;
  }
}
  .products-list .btn {
    display: block !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 12px 20px !important;
    font-size: 1.2rem !important;
    text-align: center !important;
    box-sizing: border-box;
    white-space: nowrap !important;
  }
}

/* AJAX-фільтрація: фільтри тепер <a> з постійним href для ботів */
a.checkbox_group { text-decoration: none; color: inherit; }
.products-list.is-loading { opacity: 0.5; pointer-events: none; transition: opacity 0.2s; }

/* Мітка «Без рецепта / За рецептом» на картках каталогу (includes/_cards.php): коло із зубчастим обідком («печатка»),
   порожній білий центр, текст кольором обідка; шрифт Roboto Condensed 700 (вузький, з кирилицею) замість 7.5px/800.
   Форма — static/images/recipe-mark-green.svg / recipe-mark-orange.svg. Старий стиль: backup/recipe-mark-before_29.09.2026/ */
.products-list-el-img .recipe-mark {
  top: -6px !important;
  right: -6px !important;
  width: 78px !important;
  height: 78px !important;
  padding: 0 13px !important;
  border-radius: 50% !important;
  background: transparent center / 100% 100% no-repeat !important;
  -webkit-box-shadow: none !important;
          box-shadow: none !important;
  -webkit-filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.14));
          filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.14));
  font-family: 'Roboto Condensed', 'Arial Narrow', 'Source Sans Pro', sans-serif !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  line-height: 1.12 !important;
  letter-spacing: 0.03em;
  word-break: normal !important;
  -webkit-hyphens: none;
          hyphens: none;
}
/* EN: «PRESCRIPTION» — довге слово → мітка трохи більша, шрифт трохи менший */
html[lang^="en"] .products-list-el-img .recipe-mark {
  width: 84px !important;
  height: 84px !important;
  padding: 0 12px !important;
  font-size: 9.5px !important;
  letter-spacing: 0;
}
.products-list-el-img .recipe-mark.recipe-mark-green {
  background-image: url('../images/recipe-mark-green.svg?v=3') !important;
  color: #04682C !important;
}
.products-list-el-img .recipe-mark.recipe-mark-orange {
  background-image: url('../images/recipe-mark-orange.svg?v=3') !important;
  color: #b85c00 !important; /* темніший за обідок #f7941e — читається на білому */
}
@media (max-width: 600px) {
  .products-list-el-img .recipe-mark {
    top: 4px !important;
    right: 4px !important;
    width: 68px !important;
    height: 68px !important;
    padding: 0 11px !important;
    font-size: 10px !important;
  }
  html[lang^="en"] .products-list-el-img .recipe-mark {
    width: 74px !important;
    height: 74px !important;
    padding: 0 10px !important;
    font-size: 8.5px !important;
  }
}
