.product-layout {
    display: flex;
    position: relative;
    flex-wrap: wrap;
    gap: 5px;
    align-content: baseline;
    /* padding: 0 16px; */
    /* border-radius: 8px; */
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); */
    /* position: relative; */
    border-radius: 8px;
    border: 1px solid rgb(145 145 145 / 20%);
    overflow: hidden;
}

.product-layout:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease-in-out; 
}


.product-card {
    background: #fff;
    width: 100%;
    /* min-height: 300px; */
    /* padding: 0 16px; */
    /* border-radius: 8px; */
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); */
    position: relative;
    /* border: 1px solid rgb(145 145 145 / 20%); */
}

.product-card:hover {
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease-in-out; */
    box-shadow: none !important;
}

.product-card-info {
    padding: 0 16px;
    width: stretch;
}

.favorite-btn,
.btn.btn-wishlist,
.btn.btn-wishlist:hover,
.btn.btn-wishlist:focus {
    position: absolute;
    z-index: 10;
    top: 0px;
    right: 0px;
    background: none !important;
    border: none !important;
    cursor: pointer;
    width: 24px;
    height: 24px;
    box-shadow: none !important;
}

.btn-wishlist:before {
    color: #333 !important;
}

.favorite-btn svg {
    fill: none;
    stroke: #333 !important;
    stroke-width: 2;
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    /* height: 200px; */
    /* margin-bottom: 16px; */
}

.image-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.badges {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.badge {
    font-size: 11px;
    font-weight: bold;
    padding: 8px 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0px !important;
}

.badge-new {
    background-color: #00cc00;
    color: #fff;
}

.badge-hit {
    background-color: #000;
    color: #fff;
}

.badge-sale {
    background-color: #ff2a2a;
    color: #fff;
    height: fit-content;
}

.title {
    /*font-size: 16px !important;*/
    font-weight: 700;
    /* text-transform: uppercase; */
    color: #000;
    margin-bottom: 12px;
    line-height: 1.3;
        margin-top: 35px;
}
.name-products {
    font-size: 12px !important;
}
@media (max-width: 767px) {
    .product-info .product-manufacturer.brand-image {
        display: none !important;
    }
}


.description {
    font-size: 13px;
    color: #b0b0b0;
    margin-bottom: 16px;
}

.price-container {
    display: flex;
    align-items: flex-start;
    gap: 0px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    flex-flow: column;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.current-price-sale {
   color: #ff2a2a;
}

.old-price {
    font-size: 14px;
    color: #b0b0b0;
    text-decoration: line-line-through;
    text-decoration-line: line-through;
}

.discount {
    background-color: #ffe600;
    color: #000;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 2px;
}

.more-btn {
    display: block;
    width: 100%;
    background-color: #f8f8f8;
    color: #000;
    text-align: center;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.more-btn:hover {
    background-color: #eeeeee;
}

/* Позиционируем сердечко внутри стандартного блока картинки */
.product-thumb .image {
  position: relative !important;
  overflow: hidden;
}

.product-thumb .favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 15;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.product-thumb .favorite-btn svg {
  fill: none;
  stroke: #a5a5a5;
  stroke-width: 2;
  transition: all 0.2s ease;
}

/* Стиль при наведении или если товар уже в избранном */
.product-thumb .favorite-btn:hover svg,
.product-thumb .favorite-btn.wished svg {
  fill: #ff4d4f;
  stroke: #ff4d4f;
}

/* Стилизация вашей зеленой кнопки "Подробнее" */
.product-thumb .more-btn {
  display: block;
  width: 100%;
  background-color: #689f00 !important;
  color: #ffffff !important;
  text-align: center;
  padding: 10px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: bold;
  border: none;
}

.product-thumb .more-btn:hover {
  background-color: #558200 !important;
}

/* карточка товара */
.stats {
    /* position: absolute; */
    width: 100%;
    /* bottom: 32%; */
    /* padding: 16px; */
}
.stats-group {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 12px;
}
.stat-2 {
	margin-left: auto;
}
.stats a,
.stats p,
.stats span  {
    color: #919191;
    text-decoration: none;
}
@media (max-width: 768px) {
  .stats {
      bottom: 32%;
  }
  .stats-group {
    flex-flow: column;
    justify-content: flex-start;
    gap: 4px;
  }
  .stat-2 {
	margin-left: 0;
    display: none;
}
}

/* равки конец */
.name-products {
  display: -webkit-box;
  -webkit-line-clamp: 3 !important;         /* Ограничивает текст двумя строками */
  -webkit-box-orient: vertical !important;  
  overflow: hidden !important;              /* Скрывает текст, который вышел за пределы */
  text-overflow: ellipsis !important;
  margin-top: 8px !important;
} 

/* Перемещение плашек поверх картинки товара */
.product-card {
    position: relative;
}
.product-card .badges {
    position: absolute;
    top: 10px;
    left: 0px;
    z-index: 5;
    margin: 0;
}

.ias-trigger-prev .btn {
    margin: 10px;
    --element-margin: 10px;
    /* width: 500px; */
    max-width: fit-content;
}


-----------------------------------
/* Включаем вертикальный Flexbox для карточки */
.product-card > div {
  display: flex !important;
  flex-direction: column !important;
}

/* --- СТРОГИЙ ПОРЯДОК --- */

/* 1. Картинка (в самом верху) */
.product-card .image-container {
  order: 1 !important;
}

/* 2. ЦЕНА (сразу под картинкой) */
.product-card .price-container,
.product-card .price {
  order: 2 !important;
  margin-top: 8px !important;
  margin-bottom: 4px !important;
}

/* 3. БРЕНД И АРТИКУЛ (под ценой) */
.product-card .stats,
.product-card .stats-group,
.product-card [class*="stat"] {
  order: 3 !important;
  margin-top: 2px !important;
  margin-bottom: 6px !important;
}

/* 4. НАЗВАНИЕ ТОВАРА (в самом низу + обычный шрифт) */
.product-card .title,
.product-card .name-products,
.product-card h2 {
  order: 4 !important;
  text-transform: none !important;
}
