/* =========================================
   ❤️ ВІШЛІСТ (CLICK ONLY, CLS SAFE)
   ========================================= */

.wishlist-header {
  position: relative;
  display: inline-flex;
}

/* іконка */
.wishlist-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  text-decoration: none;
}

.wishlist-header-icon {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #fff;
  stroke-width: 2px;
}

/* лічильник */
.wishlist-count {
  position: absolute;
  top: -8px;
  right: -10px;
  width: 18px;
  height: 18px;
  background: #fff;
  color: #333;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #8DAC99;
}

/* POPUP — БАЗОВИЙ СТАН */
.wishlist-preview {
  position: absolute;
  top: 100%;
  right: 0;

  width: 380px;
  min-height: 120px;
  margin-top: 10px;

  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,.15);

  padding: 12px;
  z-index: 1000;

  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;

  transition: opacity .15s ease, transform .15s ease;
  will-change: opacity, transform;
}

/* АКТИВНИЙ */
.wishlist-header.is-open .wishlist-preview {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.wishlist-preview-list {
  max-height: 340px;
  overflow-y: auto;
  margin-bottom: 12px;
}

.wishlist-preview-item {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.wishlist-preview-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.wishlist-info {
  flex: 1;
}

.wishlist-info h4 {
  margin: 0;
  font-size: 14px;
  color: #333;
}

.wishlist-price {
  font-size: 13px;
  color: #8DAC99;
  font-weight: 600;
}

.wishlist-remove {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.wishlist-preview-btn {
  display: block;
  width: 100%;
  padding: 14px 16px;
  background: #8DAC99;
  color: #fff;
  text-align: center;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

/* =========================================
   🛒 КОРЗИНА (CLICK ONLY, CLS SAFE)
   ========================================= */

.cart-header {
  position: relative;
  display: inline-flex;
}

.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  text-decoration: none;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  width: 18px;
  height: 18px;
  background: #fff;
  color: #333;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #8DAC99;
}

/* POPUP */
.cart-preview {
  position: absolute;
  top: 100%;
  right: 0;

  width: 380px;
  min-height: 120px;
  margin-top: 10px;

  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,.15);

  padding: 12px;
  z-index: 1000;

  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;

  transition: opacity .15s ease, transform .15s ease;
  will-change: opacity, transform;
}

.cart-header.is-open .cart-preview {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cart-preview-list {
  max-height: 340px;
  overflow-y: auto;
}

.cart-preview-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.cart-preview-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.cart-preview-info h4 {
  margin: 0;
  font-size: 14px;
  color: #333;
}

.cart-price {
  font-size: 13px;
  color: #8DAC99;
  font-weight: 600;
}

.cart-remove {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

.cart-preview-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 14px 16px;
  background: #8DAC99;
  color: #fff;
  text-align: center;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}



/* ======================================================
   POPUPS — HARD DISABLE (START STATE, ZERO CLS)
====================================================== */

/* Попапи не рендеряться на старті */
.popup,
.modal,
.modal-overlay,
.popup-overlay,
.offcanvas,
.offcanvas-panel,
.filter-popup,
.search-popup,
.cart-popup,
.wishlist-popup {
  display: none !important;
}

/* ======================================================
   POPUPS — SAFE MODEL (FOR JS LATER)
====================================================== */

/* Попапи ніколи не впливають на layout */
.popup,
.modal,
.offcanvas {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
}

/* JS буде додавати цей клас */
.popup.is-open,
.modal.is-open,
.offcanvas.is-open {
  display: block !important;
}

/* Overlay окремо */
.modal-overlay,
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}






/* =========================================
   📱 МОБІЛЬНІ — ВИМКНЕНО
   ========================================= */

@media (max-width: 768px) {
  .wishlist-preview
