/* =========================================================
   Cart Upsell — блок «додаткові продажі» у попапі кошика
   ========================================================= */
.cart-modal__cross-sell {
  list-style: none;
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid #ededed;
}

.cart-xsell {
  position: relative;
}

.cart-xsell__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.cart-xsell__title {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  line-height: 1.2;
}

.cart-xsell__nav {
  display: flex;
  gap: 4px;
  flex: none;
}

.cart-xsell__arrow {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
  color: #464646;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .15s ease, border-color .15s ease;
}

.cart-xsell__arrow:hover {
  border-color: #bdbdbd;
}

.cart-xsell__arrow.swiper-button-disabled {
  opacity: .35;
  cursor: default;
}

.cart-xsell__slider {
  overflow: hidden;
}

.cart-xsell__slider .swiper-wrapper {
  align-items: stretch;
}

.cart-xsell__slider .swiper-slide {
  height: auto;
}

.cart-xsell__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 8px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
}

.cart-xsell__img {
  display: block;
  margin-bottom: 6px;
}

.cart-xsell__img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.cart-xsell__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.3;
  color: #464646;
  text-decoration: none;
}

.cart-xsell__name:hover {
  color: #000;
}

.cart-xsell__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
}

.cart-xsell__price {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.cart-xsell__old {
  font-size: 11px;
  color: #999;
  text-decoration: line-through;
}

.cart-xsell__new {
  font-size: 13px;
  font-weight: 700;
  color: #222;
}

.cart-xsell__add {
  flex: none;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: #464646;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity .15s ease;
}

.cart-xsell__add:hover,
.cart-xsell__add:focus {
  color: #fff;
  text-decoration: none;
}

.cart-xsell__add:hover {
  opacity: .85;
}

/* Мікрофідбек після додавання (клас вішає JS, опційно) */
.cart-xsell__add.is-added {
  background: #2e7d32;
}