.breadcrumbs {
  padding-top: 10px;
}
/* ============================================================
   CATALOGUE UI — footer (buttons pinned to edges)
   ============================================================ */

.catalogue-list-item.ajax_buy .btns {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
}

/* артикул по центру */
.catalogue-list-item.ajax_buy .btns .art {
  display: block;
  max-width: 100%;
  text-align: center;
  font-size: 12px;
  color: #9aa0ab;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 44px; /* резерв под кнопки слева/справа */
}

/* кнопки по краям — если они лежат прямо в .btns */
.catalogue-list-item.ajax_buy .btns > a.add-to-favorite {
  position: absolute;
  left: 0;
  top: -10px;
}

.catalogue-list-item.ajax_buy .btns > a.add-to-cart {
  position: absolute;
  right: 0;
  top: -10px;
}

/* кнопки по краям — если они внутри .product-actions */
.catalogue-list-item.ajax_buy .btns .product-actions {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none; /* клики отдадим самим кнопкам */
}

.catalogue-list-item.ajax_buy .btns .product-actions > a.add-to-favorite,
.catalogue-list-item.ajax_buy .btns .product-actions > a.add-to-cart {
  position: absolute;
  top: 0;
  pointer-events: auto;
}

.catalogue-list-item.ajax_buy .btns .product-actions > a.add-to-favorite {
  left: 10px;
  top: -8px;
}

.catalogue-list-item.ajax_buy .btns .product-actions > a.add-to-cart {
  right: 10px;
  top: -8px;
}

@media (max-width: 768px) {
  .catalogue-list-item.ajax_buy a.in-favorite {
    left: auto !important;
    right: 35px;
    top: 10px;
  }
  .product-preview .product-actions a.add-to-favorite svg {
    width: 16px;
    height: 16px;
  }
  .product-preview .product-actions a.add-to-cart svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 375px) {
  .catalogue-list-item.ajax_buy .btns > a.add-to-cart {
    right: 2px;
  }

  .catalogue-list-item.ajax_buy .btns > a.add-to-favorite {
    left: 2px;
  }
  .breadcrumbs li {
    font-size: 11px;
  }
}

/* ============================================================
   CATALOGUE UI — card + reveal
   Боевой: .catalogue-list-item.ajax_buy
   ============================================================ */

/* базовая карточка (работает и для tr>td, и для div/li) */
tr.catalogue-list-item.ajax_buy > td,
.catalogue-list-item.ajax_buy > td,
.catalogue-list-item.ajax_buy:not(tr) {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.3) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  box-shadow:
    0 18px 90px rgb(181 181 181 / 23%),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  overflow: hidden;
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  transition:
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    transform 0.16s ease;
}

tr.catalogue-list-item.ajax_buy:hover > td,
.catalogue-list-item.ajax_buy:hover > td,
.catalogue-list-item.ajax_buy:not(tr):hover {
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
  border-color: rgba(15, 23, 42, 0.16);
  transform: translateY(-1px);
}

tr.catalogue-list-item.ajax_buy:active > td,
.catalogue-list-item.ajax_buy:active > td,
.catalogue-list-item.ajax_buy:not(tr):active {
  transform: translateY(0);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1);
}

/* reveal */
.catalogue-list-item.ajax_buy.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: rgCardIn 0.55s ease forwards;
}

@keyframes rgCardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* картинки внутри карточки */
tr.catalogue-list-item.ajax_buy img,
.catalogue-list-item.ajax_buy img {
  transform: scale(1);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

tr.catalogue-list-item.ajax_buy:hover img,
.catalogue-list-item.ajax_buy:hover img {
  transform: scale(1.035);
}
