.seed-tabs {
  width: 100%;
  /*display: flex;*/
}
.seed-tabs__btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #0f5132;
  background: #fff;
  color: #0f5132;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.seed-tabs__btn:hover {
  background: #f3f7f5;
}
.seed-tabs__track {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 2px;
}
.seed-pill {
  border-radius: 999px;
  border: 1px solid #0f5132;
  background: #fff;
  color: #0f5132;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  height: 44px;
  flex: 0 0 auto;
}
.seed-pill.is-active {
  background: #198754;
  border-color: #198754;
  color: #fff;
}
.detailed-layout.no-filters {
  display: block;
}
.detailed-layout.no-filters .detailed-gallery .row {
  justify-content: flex-start;
}

@media (min-width: 992px) {
  .detailed-layout.no-filters .detailed-gallery .col-lg-4 {
    width: 25%;
  }
}
@media (max-width: 991px) and (min-width: 601px) {
  .detailed-layout.no-filters .detailed-gallery .col-md-6 {
    width: 33.333%;
  }
}

.detailed-layout{
  width: 100%;
  display: flex;
  gap: 20px; 
  align-items: flex-start;
  justify-content: center;
}
.detailed-filters{
  width: 295px; 
  flex: 0 0 295px;
}
.detailed-gallery{
  flex: 1 1 auto;
  min-width: 0;
}
.div-tablet-filters{
  display: none;
}
.detailed-filters__card{
  background: #fff;
  border-radius: 40px;
  padding: 24px;
}
.detailed-filters__search-input{
  font-size: 18px;
  border: 0;
  background: #f3f7f5;
  border-radius: 999px 0 0 999px;
  padding: 14px 18px;
}
.detailed-filters__search-input:focus {
  border: none;
  background: #f3f7f5;
}
.detailed-filters__search-icon{
  border: 0;
  background: #f3f7f5;
  border-radius: 0 999px 999px 0;
  color: var(--bs-primary);
  padding: 0 18px;
}
.detailed-accordion{
  --filters-x: 24px;
}
.detailed-accordion .accordion-item{
  border: 0;
  border-radius: 0;
  background: transparent;
}
.detailed-accordion__btn{
  font-size: 16px;
  font-weight: 600;
  padding: 18px 0;
  color: #111;
  background: transparent;
  box-shadow: none !important;
  padding-right: 0;
}
.detailed-accordion__btn::after{
  filter: none;
}
.detailed-accordion__body{
  padding-left: var(--filters-x);
  padding-top: 0;
}
.detailed-accordion__body-range {
  padding: 0;
}
.detailed-check{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}
.detailed-check__label{
  font-size: 14px;
  color: #525252;
  opacity: 0.7;
  font-weight: 600;
}
.detailed-check__input{
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 2px solid var(--bs-primary);
  margin-top: 0;
}
.detailed-check__input:checked{
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}
button.detailed-filters__reset{
  font-size: 16px;
  font-weight: 600;
  color: var(--bs-primary);
  text-decoration: none;
  margin-top: 60px;
}
button.detailed-filters__reset:hover{
  text-decoration: none;
}
.detailed-layout .accordion-button:not(.collapsed) {
  background-color: white;
}
.detailed-range{
  position: relative;
  height: 32px;
  margin: 8px 0 16px;
}
.detailed-range__input{
  position: absolute;
  inset: 0;
  width: 100%;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}
.detailed-range__input{ z-index: 1; }
.detailed-range__input:first-child{ z-index: 2; }
.detailed-range__input:last-child::-webkit-slider-runnable-track {
  height: 4px;
  background: #e6eee9;
  border-radius: 4px;
}
.detailed-range__input:last-child::-moz-range-track {
  height: 4px;
  background: #e6eee9;
  border-radius: 4px;
}
.detailed-range__input::-webkit-slider-runnable-track{
  height: 4px;
  background: #e6eee9;
  border-radius: 4px;
}
.detailed-range__input::-moz-range-track{
  height: 4px;
  background: #e6eee9;
  border-radius: 4px;
}
.detailed-range__input:first-child::-webkit-slider-runnable-track {
  background: transparent;
}
.detailed-range__input:first-child::-moz-range-track {
  background: transparent;
}
.detailed-range__input::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bs-primary);
  border: none;
  margin-top: -10px;
}
.detailed-range__input::-moz-range-thumb{
  pointer-events: auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bs-primary);
  border: none;
}
.detailed-range-values{
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.detailed-range-box{
  flex: 1;
  height: 56px;
  border-radius: 16px;
  border: 1px solid #e6e6e6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-weight: 600;
  background: #fff;
}
.detailed-range-box__value{
  font-size: 18px;
  color: #111;
}
.detailed-range-box__unit{
  font-size: 14px;
  color: #9a9a9a;
  text-transform: lowercase;
}
.detailed-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.detailed-page {
  gap: 40px;
}
.detailed-gallery__row{
  margin-left: 0;
  margin-right: 0;
}
.detailed-card{
  border-radius: 30px;
  background: #fff;
  padding: 20px 30px 30px;
  overflow: hidden;
}
.detailed-card__media{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
}
.detailed-card__badges {
  /*position: absolute;*/
  top: 12px;
  left: 12px;
  right: 12px;
  /*z-index: 2;*/
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  pointer-events: none;
}
.detailed-card__image{
  width: 100%;
  height: 160px;
  object-fit: contain;
  display: block;
}
.detailed-card__title{
  padding: 20px 0 10px 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 120%;
  text-align: left;
  width: 100%;
  display: -webkit-box;
  /*-webkit-box-orient: vertical;*/
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.product-price .text-success {
  font-size: 20px;
}
.fav-card__brand{
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.fav-card__brand__bg {
  background-color: #f3f8f3;
  width: fit-content;
}
.fav-card__brand-logo{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--bs-primary);
  display: inline-block;
}
.detailed-badge{
  width: fit-content;
  max-width: 100%;
  padding: 8px 10px;
  font-size: 8px;
  font-weight: 600;
  line-height: 12px;
  white-space: nowrap;
  flex-shrink: 1;
}
.detailed-badge--seasonal{
  background-color: #873177;
  color: white;
}
.detailed-badge--sale{
  background-color: var(--orange);
  color: #fff;
}
.detailed-badge--new{
  background-color: #2F8A3C;
  color: #fff;
}
.detailed-mobile-bar{
  display: none;
}
.pagination {
  padding-top: 78px;
}
.pagination-custom {
  display: flex;
  align-items: center;
  column-gap: 56px;
}
.news nav {
  margin: 0 auto;
}
.pagination-custom .page-link {
  font-size: 18px;
  line-height: 1;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--bs-body-color);
  box-shadow: none;
}
.pagination-custom .page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
}
.pagination-custom .page-item.active .page-link {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--bs-primary);
  color: #fff;
}
.pagination-custom .page-arrow {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  color: var(--bs-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pagination-custom .page-arrow i {
  font-size: 22px;
  line-height: 1;
}
.pagination-custom .page-dots {
  color: var(--bs-body-color);
  opacity: 0.7;
}
.pagination-custom .page-arrow {
  border-radius: 16px !important;
}
.detailed-card__heart.is-favorite i {
    color: #dc3545;
}
.favorite-toggle {
  cursor: pointer;
  background: white;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}



.detailed-card__media a {
  display: block;
  width: 100%;
}

@media (max-width: 1066px){
  .detailed-card{
    padding: 20px;
  }
  .detailed-card__image{
    height: 136px;
  }
  .detailed-card__title{
    font-size: 18px;
    padding-top: 24px;
  }
}

@media (max-width: 992px) {
  .news .col-lg-4 {
    width: 50%;
  }
  .news-card__img-wrap{
    aspect-ratio: 400 / 254;
    height: auto;
    overflow: hidden;
  }
  .pagination-custom .page-item { display: none; }
  .pagination-custom .page-prev,
  .pagination-custom .page-next,
  .pagination-custom .page-item.active,
  .pagination-custom .page-item.prev1,
  .pagination-custom .page-item.prev2,
  .pagination-custom .page-item.next1,
  .pagination-custom .page-item.next2 {
    display: list-item;
  }
  /* фиксируем порядок (чтобы не зависело от HTML) */
  .pagination-custom .page-prev { order: 1; }
  .pagination-custom .page-item.prev2 { order: 2; }
  .pagination-custom .page-item.prev1 { order: 3; }
  .pagination-custom .page-item.active { order: 4; }
  .pagination-custom .page-item.next1 { order: 5; }
  .pagination-custom .page-item.next2 { order: 6; }
  .pagination-custom .page-next { order: 7; }
}


@media (max-width: 768px) {
  .news .col-lg-4 {
    width: 100%;
  }
  .news-card{
    width: 100%;
    height: auto; 
  }
  .news-card__img-wrap{
    width: 100%;
    height: auto;
  }
  .news-card__date{
    font-size: 14px;
  }
  .news-card__heading{
    font-size: 20px;
  }
  .news-card__sub{
    font-size: 14px;
  }
  .news-top {
    flex-direction: column;
    align-items: start!important;
  }
  .pagination-custom .page-item { display: none; }
  .pagination-custom .page-prev,
  .pagination-custom .page-next,
  .pagination-custom .page-item.active,
  .pagination-custom .page-item.prev1,
  .pagination-custom .page-item.next1 {
    display: list-item;
  }
  .pagination-custom .page-prev { order: 1; }
  .pagination-custom .page-item.prev1 { order: 2; }
  .pagination-custom .page-item.active { order: 3; }
  .pagination-custom .page-item.next1 { order: 4; }
  .pagination-custom .page-next { order: 5; }
  .pagination-custom { column-gap: 16px; }
  .pagination-custom .page-item.next2 { display: none !important; }
  .detailed-card{
    padding: 14px;
  }
  .detailed-card__badges {
    top: 8px;
    left: 8px;
    right: 8px;
    gap: 4px;
  }
  .detailed-badge {
    font-size: 8px;
    padding: 6px 8px;
  }
  .seed-tabs__inner {
    margin-left: auto;
    margin-right: auto;
  }
  .detailed-filters {
    width: 238px;
    flex: 0 0 238px;
  }
  .detailed-filters__card {
    padding: 20px;
  }
  .detailed-range-box__value {
    font-size: 14px;
  }
}

@media (max-width: 600px){

  .detailed-layout{
    flex-direction: column;
    gap: 16px;
  }
  .detailed-filters{
    display: none;
  }
  .div-tablet-filters{
    display: block;
    width: 100%;
  }
  .detailed-gallery{
    width: 100%;
  }
  .detailed-gallery .col-12.col-md-6.col-lg-4{
    width: 100%;
  }
  .detailed-mobile-bar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin: 10px 0 16px;
  }
  .detailed-mobile-bar__btn{
    font-size: 14px;
    font-weight: 700;
    color: #525252;
    background: transparent;
    border: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }
  .detailed-mobile-bar__btn:focus{
    box-shadow: none;
  }
  .detailed-sheet{
    border-radius: 24px 24px 0 0;
    height: 80vh;
  }
  .detailed-sheet .offcanvas-header{
    padding: 18px 18px 8px;
  }
  .detailed-sheet__body{
    padding: 8px 18px 120px; 
    overflow: auto;
  }
  .detailed-sheet__actions{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 18px 18px;
    background: #fff;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.08);
  }
  .detailed-sheet__reset{
    color: var(--bs-primary);
    font-weight: 600;
    text-decoration: none;
  }
  .offcanvas.offcanvas-bottom.detailed-sheet{
    --bs-offcanvas-height: 80vh;
    height: 80vh;
    max-height: 90vh;
    border-radius: 24px 24px 0 0;
  }
  .offcanvas.offcanvas-bottom.detailed-sheet .offcanvas-body{
    overflow: auto;
  }
  .detailed-sheet__actions--two{
    display: flex;
    gap: 12px;
  }
  .detailed-sheet__apply{
    flex: 1;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
  }
  .detailed-sheet__clear{
    flex: 1;
    font-size: 18px;
    font-weight: 700;
    border-radius: 999px;
    padding: 14px 24px;
    background: #f0f0f0;
    border: 0;
    color: #5b5b5b;
    text-align: center;
  }
  .detailed-sheet__clear:focus{
    box-shadow: none;
  }
  .detailed-sheet__clear,
  .detailed-sheet__clear:hover,
  .detailed-sheet__clear:focus,
  .detailed-sheet__clear:focus-visible,
  .detailed-sheet__clear:active {
    background: #f0f0f0;
    color: #5b5b5b;
    border: 0;
    box-shadow: none;
    outline: none;
  }
  .detailed-sheet__clear:active{
    transform: none;
  }
  .seed-tabs__track {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    flex: 1 1 auto;
    overflow-x: auto;
    scrollbar-width: none;
  }
  seed-tabs__track::-webkit-scrollbar {
      display: none;
  }
  .seed-pill{
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (max-width: 374px) {
  .seed-tabs__inner {
    margin-left: auto;
    margin-right: auto;
  }
}