/* =========================================================
   CAROUSEL
========================================================= */

.kw-carousel-slide {
  display: flex;
  height: 100%;
  padding: 0 7px;
  box-sizing: border-box;
}

.kw-carousel {
  position: relative;
  margin-bottom: 20px;
}
.kw .tns-ovh {
  border: 1px solid #e1e1e1;
  border-radius: 0 0 3px 3px;
  padding: 15px 15px 15px 8px;
}

.kw-featured-grid {
  border: 1px solid #e1e1e1;
  border-radius: 0 0 3px 3px;
  padding: 15px;
  margin-bottom: 20px;
}

/* ===== стрелки ===== */

.kw .tns-controls button {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);

  width: 50px;
  height: 50px;
  background: rgb(226, 243, 250);

  border: none;
  cursor: pointer;

  opacity: 0;
  transition: opacity 0.2s;

  z-index: 10;
}

.kw-carousel:hover .tns-controls button {
  opacity: 1;
}

.kw .tns-controls button:first-child {
  left: 0;
}

.kw .tns-controls button:last-child {
  right: 0;
}

/* ===== bullets ===== */

.kw .tns-nav {
  text-align: center;
  margin-top: 10px;
}

.kw .tns-nav button {
  width: 8px;
  height: 8px;

  border-radius: 50%;
  border: none;

  background: #ccc;
  margin: 0 4px;
}

.kw .tns-nav .tns-nav-active {
  background: #000;
}

/* перемещаем bullets вниз */

.kw-carousel .tns-nav {
  order: 2;
}

.kw-carousel .tns-outer {
  display: flex;
  flex-direction: column;
}

/* =========================================================
   GRID
========================================================= */

.kw-featured-grid {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(var(--xs), 1fr);
}

/* =========================================================
   PRODUCT CARD (общая система для GRID и CAROUSEL)
========================================================= */
.kw.heading-title {
  background: #f0eeee;
  padding: 10px 15px;
  margin: 0;
  border-radius: 3px 3px 0 0;
  font-weight: 600;
}
.kw .product-layout {
  display: flex;
  width: 100%;
  min-width: 0;
}

.kw .rating {
  position: absolute;
  top: 45px;
}

.kw .product-thumb {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 5px;
}

/* ===== image ===== */

.kw .product-thumb .image {
  text-align: center;
}

/* ===== caption ===== */

.kw .product-thumb .caption {
  flex: 1;
  min-height: 0;
}

.kw .product-thumb .caption,
.kw .product-thumb .caption p,
.kw .product-thumb .caption h4 {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ===== ограничение названия (ровные карточки) ===== */

.kw .product-thumb h4 a {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 50px;
  text-transform: none;
  font-weight: 700;
  font-size: 16px;
  color: rgba(35, 56, 81, 1);
}

/* ===== кнопки всегда внизу ===== */

.kw .price-new {
  color: red;
}
.kw .price-old {
  font-weight: 400;
  font-size: 14px;
  color: rgba(109, 118, 125, 1);
  text-decoration: line-through;
  margin: 0;
  order: 2;
}
.kw .product-thumb .button-group {
  margin-top: auto;
  justify-content: space-between;
}

/* =========================================================
   BREAKPOINTS
========================================================= */

/* XS */

@media (max-width: 499px) {
  .kw-featured-grid {
    grid-template-columns: repeat(var(--xs), 1fr);
  }
}

/* SM */

@media (min-width: 500px) {
  .kw-featured-grid {
    grid-template-columns: repeat(var(--sm), 1fr);
  }
}

/* MD */

@media (min-width: 768px) {
  .kw-featured-grid {
    grid-template-columns: repeat(var(--md), 1fr);
  }
}

/* LG */

@media (min-width: 992px) {
  .kw-featured-grid {
    grid-template-columns: repeat(var(--lg), 1fr);
  }
}

/* XL */

@media (min-width: 1200px) {
  .kw-featured-grid {
    grid-template-columns: repeat(var(--xl), 1fr);
  }
}

/* Journal 3 */

/* .kw .btn-cart {
  background: rgba(232, 40, 77, 1);
  padding: 10px 12px;
}
  .kw .btn-cart:hover {
  background: rgba(84, 138, 171, 1) !important;
  padding: 10px 12px;
}
  .kw .btn-cart::before {
  font-size: 16px;
  top: -2px;
  left: -3px;
  }

.kw .btn.btn-wishlist:hover,
.kw .btn.btn-compare:hover {
  background: transparent !important;
  font-size: 18px;
  color: rgb(190, 189, 189) !important;
  box-shadow: none !important;
}
.kw .btn.btn-wishlist,
.kw .btn.btn-compare {
  background: transparent;
  font-size: 18px;
  color: rgba(221, 221, 221, 1);
  padding: 5px;
}
.kw .btn i,
.kw .price-tax {
  display: none !important;
}
.kw .tns-controls button::before {
  content: '\e5c8';
  font-family: icomoon;
  font-size: 18px;
  color: rgba(35, 56, 81, 1);
  display: inline-block;
}
.kw .tns-controls button:first-child::before {
  transform: scaleX(-1);
}

.kw .tns-controls button:last-child::before {
  transform: none;
}
.kw .tns-controls button { font-size: 0;
} */
