.kraski-wishlist-btn{
  width: 36px; height: 36px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 999px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

.kraski-wishlist-btn .kraski-heart{
  width: 18px; height: 18px;
  display: block;
  position: relative;
}
.kraski-wishlist-btn .kraski-heart:before{
  content:"";
  position:absolute; inset:0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.35-10-9.2C.2 8.1 2.2 5 5.7 5c1.9 0 3.3 1 4.3 2.2C11 6 12.4 5 14.3 5 17.8 5 19.8 8.1 22 11.8 19.5 16.65 12 21 12 21z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.35-10-9.2C.2 8.1 2.2 5 5.7 5c1.9 0 3.3 1 4.3 2.2C11 6 12.4 5 14.3 5 17.8 5 19.8 8.1 22 11.8 19.5 16.65 12 21 12 21z'/%3E%3C/svg%3E") center/contain no-repeat;
  color: #111;
  opacity: .55;
}

.kraski-wishlist-btn.is-active{
  border-color: rgba(255, 76, 76, .35);
}
.kraski-wishlist-btn.is-active .kraski-heart:before{
  color: #ff4c4c;
  opacity: 1;
}

.kraski-wishlist-btn.is-loading{
  opacity: .6;
  pointer-events: none;
}

.kraski-fly-ghost{
  position: fixed;
  z-index: 999999;
  width: 36px; height: 36px;
  margin-left: -18px; margin-top: -18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  transition: transform .6s cubic-bezier(.2,.9,.2,1), opacity .6s;
  pointer-events: none;
}

.kraski-wishlist-page .kraski-wishlist-head{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; flex-wrap:wrap;
  margin-bottom: 16px;
}
.kraski-wishlist-actions{ display:flex; gap:10px; flex-wrap:wrap; }

.kraski-wishlist-item{
  display:flex; gap:14px; align-items:center;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  margin-bottom: 10px;
}
.kraski-wishlist-thumb img{ width:64px; height:auto; display:block; }
.kraski-wishlist-info{ flex: 1; }
.kraski-wishlist-controls{ display:flex; gap:10px; align-items:center; margin-top: 8px; }
.kraski-wishlist-sku{ opacity:.65; font-size: 13px; }


.kraski-wishlist-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 14px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background:#fff;
  cursor:pointer;
}

.kraski-wishlist-btn .kraski-wishlist-text{
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  opacity: .85;
}

.kraski-wishlist-btn.is-active .kraski-wishlist-text{
  opacity: 1;
}


#products .kwi-text{
  display:none;
}
.kraski-wishlist-btn[data-context="loop"]{
  width:36px; padding:0; justify-content:center;
}


/* Кнопка как текстовая ссылка */
.kraski-wishlist-link{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #111;
  font: inherit;
}

/* SVG размеры */
.kraski-wishlist-link .kwi-heart{
  width: 18px;
  height: 18px;
  display:block;

  /* По умолчанию: обводка, без заливки */
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.6;
  transition: fill .2s ease, stroke .2s ease, transform .2s ease;
  transform-origin: center;
}

/* Текст */
.kraski-wishlist-link .kwi-text{
  font-size: 14px;
  line-height: 1;
  /* opacity: .85; */
}

/* Активное: заливка черным */
.kraski-wishlist-link.is-active .kwi-heart{
  fill: #111;
  stroke: #111;
  transform: scale(1.02);
}

.kraski-wishlist-link:hover .kwi-text{ opacity: 1; }


.kraski-wishlist-link .kwi-ico{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
}
.kraski-wishlist-link .kwi-heart{
  width:18px;
  height:18px;
  display:block;
}


.kwi-fly-img{
  /* box-shadow: 0 16px 40px rgba(0,0,0,.18); */
  will-change: transform, opacity;
}


/* POP + GLOW */
@keyframes kwi-pop-glow {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(0,0,0,0);
  }
  35% {
    transform: scale(1.18);
    box-shadow: 0 0 0 rgba(0,0,0,0);
  }
  55% {
    transform: scale(1.05);
    box-shadow: 0 0 0 rgba(0,0,0,0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(0,0,0,0);
  }
}

/* мягкая подсветка */
@keyframes kwi-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(0,0,0,0);
  }
  30% {
    box-shadow: 0 0 0 6px rgba(0,0,0,0.08),
                0 0 0 12px rgba(0,0,0,0.04);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0,0,0,0);
  }
}

/* класс подтверждения */
.kwi-wishlist-impact {
  animation:
    kwi-pop-glow 420ms cubic-bezier(.2,.9,.2,1),
    kwi-glow 500ms ease-out;
  transform-origin: center;
}





/* =====================================================
   WISHLIST BUTTON — PRODUCTS LOOP ONLY
   ===================================================== */

#products .kraski-wishlist-link{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  border-radius: 999px;
  background: transparent;
  border: none;
  padding: 0;

  cursor: pointer;
  color: #111;

  transition:
    background-color .25s ease,
    box-shadow .25s ease;
}

/* сердце чуть больше */
#products .kraski-wishlist-link .kwi-heart{
  width: 20px;
  height: 20px;

  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.6;

  transition:
    fill .25s ease,
    stroke .25s ease,
    transform .25s ease;
}

/* текст в лупе скрываем */
#products .kraski-wishlist-link .kwi-text{
  display: none;
}

/* hover — мягкий круг */
#products .kraski-wishlist-link:hover{
  background: rgba(0,0,0,0.06);
}

/* hover — лёгкий pop */
#products .kraski-wishlist-link:hover .kwi-heart{
  transform: scale(1.12);
}

/* active — заливка */
#products .kraski-wishlist-link.is-active .kwi-heart{
  fill: #111;
  stroke: #111;
}

/* active + hover — чуть плотнее */
#products .kraski-wishlist-link.is-active:hover{
  background: rgba(0,0,0,0.1);
}

/* нажатие */
#products .kraski-wishlist-link:active .kwi-heart{
  transform: scale(0.95);
}

#products .kraski-wishlist-link::before{
  content:'';
  position:absolute;
  inset:0;
  border-radius:50%;
  background: rgba(0,0,0,0.06);
  opacity:0;
  transform: scale(0.6);
  transition: opacity .25s ease, transform .25s ease;
}

.kraski-wishlist-colors{margin:0 0 28px;padding:20px;border-radius:20px;background:#fff;box-shadow:0 12px 34px rgba(20,28,40,.07)}
.kraski-wishlist-colors-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.kraski-wishlist-colors-head h3{margin:0 0 3px;font-size:22px}.kraski-wishlist-colors-head p{margin:0;color:#7d8490}.kraski-wishlist-colors-head>a{color:#ff4658;text-decoration:none;font-weight:700}
.kraski-wishlist-colors-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.kraski-wishlist-color{display:grid;grid-template-columns:58px minmax(0,1fr) 30px;align-items:center;gap:10px;padding:9px;border:1px solid #e6e9ed;border-radius:14px;transition:opacity .2s,transform .2s}.kraski-wishlist-color.is-removing{opacity:0;transform:scale(.96)}.kraski-wishlist-color-swatch{display:block;width:58px;height:48px;border-radius:9px;background:var(--wishlist-color);box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}.kraski-wishlist-color>div{min-width:0}.kraski-wishlist-color b,.kraski-wishlist-color span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kraski-wishlist-color b{font-size:14px}.kraski-wishlist-color span{font-size:11px;color:#7d8490;margin-top:3px}.kraski-wl-remove-color{width:30px;height:30px;border:0;border-radius:50%;background:#f4f5f7;color:#59616c;font-size:20px;line-height:1;cursor:pointer}
@media(max-width:900px){.kraski-wishlist-colors-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.kraski-wishlist-colors{padding:14px}.kraski-wishlist-colors-head{align-items:flex-start}.kraski-wishlist-colors-head>a{font-size:12px}.kraski-wishlist-colors-grid{grid-template-columns:1fr}}

#products .kraski-wishlist-link:hover::before{
  opacity:1;
  transform: scale(1);
}
