/* Anti-flicker: legacy REHub favourite icon should never appear on articles. */
body.single-post .heart_thumb_wrap,
body.single-post .favorshop_like,
body.single-post .heartplus,
body.single-post .add_to_wishlist,
body.single-post .wpsm_wishlist,
body.single-post .wishaddwrap,
body.single-post .wishaddedwrap,
body.single-post .wishremovedwrap,
body.single .type-post .heart_thumb_wrap,
body.single .type-post .favorshop_like,
body.single .type-post .heartplus,
body.single .type-post .add_to_wishlist,
body.single .type-post .wpsm_wishlist,
body.single .type-post .wishaddwrap,
body.single .type-post .wishaddedwrap,
body.single .type-post .wishremovedwrap {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Stable product-only wishlist */
.vs-wishlist-non-product,
.vs-wishlist-non-product-wrap {
  display: none !important;
}

.heartplus.vs-wishlist-loading,
.add_to_wishlist.vs-wishlist-loading,
.wpsm_wishlist.vs-wishlist-loading,
.vs-product-wishlist-remove.vs-wishlist-loading {
  pointer-events: none !important;
  opacity: 0.55 !important;
}

.heartplus.wishlisted,
.heartplus.alreadywish,
.add_to_wishlist.wishlisted,
.add_to_wishlist.alreadywish,
.wpsm_wishlist.wishlisted,
.wpsm_wishlist.alreadywish {
  color: #cc0000 !important;
}

.vs-product-wishlist-page {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.vs-product-wishlist-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding: 22px 24px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.vs-product-wishlist-toolbar h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  color: #0f172a;
}

.vs-product-wishlist-toolbar p {
  margin: 7px 0 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.4;
}

.vs-product-wishlist-page-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  background: #e8f0fe;
  color: #0f52ad;
  font-size: 14px;
  font-weight: 800;
  flex: 0 0 auto;
}

.vs-product-wishlist-empty {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 34px 24px;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  background: #fff;
  color: #475569;
  text-align: center;
}

.vs-product-wishlist-empty strong {
  color: #0f172a;
  font-size: 18px;
}

.vs-product-wishlist-empty span {
  color: #64748b;
  font-size: 15px;
}

.vs-product-wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.vs-product-wishlist-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: opacity 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.vs-product-wishlist-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.09);
}

.vs-product-wishlist-card.vs-is-removing {
  opacity: 0.45;
  pointer-events: none;
  transform: scale(0.98);
}

.vs-product-wishlist-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 14px;
  background: #f8fafc;
  overflow: hidden;
  text-decoration: none;
}

.vs-product-wishlist-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 185px;
  object-fit: contain;
}

.vs-product-wishlist-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  padding: 16px;
}

.vs-product-wishlist-title {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.35;
}

.vs-product-wishlist-title a {
  color: #0f172a;
  text-decoration: none;
}

.vs-product-wishlist-title a:hover {
  color: #0f52ad;
  text-decoration: none;
}

.vs-product-wishlist-price {
  margin-bottom: 6px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
}

.vs-product-wishlist-stock {
  margin-bottom: 12px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.vs-product-wishlist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.vs-product-wishlist-view,
.vs-product-wishlist-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.vs-product-wishlist-view {
  flex: 1 1 auto;
  border: 1px solid #2f7ac8;
  background: #2f7ac8;
  color: #fff;
}

.vs-product-wishlist-view:hover {
  background: #2569ad;
  border-color: #2569ad;
  color: #fff;
  text-decoration: none;
}

.vs-product-wishlist-remove-text {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #475569;
}

.vs-product-wishlist-remove-text:hover {
  border-color: #fecaca;
  background: #fff5f5;
  color: #b91c1c;
}

.vs-product-wishlist-remove-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #475569;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.vs-product-wishlist-remove-icon:hover {
  border-color: #fecaca;
  background: #fff5f5;
  color: #b91c1c;
}

@media (max-width: 1040px) {
  .vs-product-wishlist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .vs-product-wishlist-toolbar {
    align-items: flex-start;
    padding: 18px;
  }

  .vs-product-wishlist-toolbar h2 {
    font-size: 24px;
  }

  .vs-product-wishlist-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .vs-product-wishlist-card {
    border-radius: 16px;
  }

  .vs-product-wishlist-card-body {
    padding: 15px;
  }

  .vs-product-wishlist-actions {
    flex-direction: column;
  }

  .vs-product-wishlist-view,
  .vs-product-wishlist-remove-text {
    width: 100%;
  }
}


.vs-product-wishlist-actions > * {
  flex: 1 1 calc(50% - 4px);
}

.vs-product-wishlist-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #16a34a;
  background: #16a34a;
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  cursor: pointer;
}

.vs-product-wishlist-cart:hover {
  border-color: #15803d;
  background: #15803d;
  color: #fff !important;
}

.vs-product-wishlist-cart-secondary {
  border-color: #cbd5e1;
  background: #fff;
  color: #334155 !important;
}

.vs-product-wishlist-cart-secondary:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  color: #0f172a !important;
}

.vs-product-wishlist-view,
.vs-product-wishlist-remove-text {
  flex: 1 1 calc(50% - 4px);
}

.vs-product-wishlist-remove-text {
  flex-basis: 100%;
}

@media (min-width: 1280px) {
  .vs-product-wishlist-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .vs-product-wishlist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .vs-product-wishlist-thumb {
    padding: 10px;
  }

  .vs-product-wishlist-thumb img {
    max-height: 140px;
  }

  .vs-product-wishlist-card-body {
    padding: 12px;
  }

  .vs-product-wishlist-title {
    font-size: 14px;
  }

  .vs-product-wishlist-actions > *,
  .vs-product-wishlist-remove-text,
  .vs-product-wishlist-view,
  .vs-product-wishlist-cart {
    flex-basis: 100%;
    width: 100%;
  }
}


/* v4 compact professional layout */
.vs-product-wishlist-page {
  max-width: 100%;
}

.vs-product-wishlist-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.vs-product-wishlist-card {
  border-radius: 14px;
}

.vs-product-wishlist-thumb {
  padding: 12px;
}

.vs-product-wishlist-thumb img {
  max-height: 165px;
}

.vs-product-wishlist-card-body {
  padding: 14px;
}

.vs-product-wishlist-title {
  font-size: 15px;
  min-height: 2.7em;
}

.vs-product-wishlist-price {
  font-size: 15px;
}

.vs-product-wishlist-stock {
  font-size: 12px;
}

.vs-product-wishlist-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.vs-product-wishlist-actions > * {
  min-width: 0;
}

.vs-product-wishlist-cart,
.vs-product-wishlist-view,
.vs-product-wishlist-compare,
.vs-product-wishlist-remove-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  text-align: center;
  white-space: nowrap;
}

.vs-product-wishlist-cart {
  border: 1px solid #16a34a;
  background: #16a34a;
  color: #fff !important;
}

.vs-product-wishlist-cart:hover {
  border-color: #15803d;
  background: #15803d;
  color: #fff !important;
}

.vs-product-wishlist-cart-secondary {
  border-color: #cbd5e1;
  background: #fff;
  color: #334155 !important;
}

.vs-product-wishlist-cart-secondary:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  color: #0f172a !important;
}

.vs-product-wishlist-compare {
  border: 1px solid #dbe4f0;
  background: #fff;
  color: #334155 !important;
  box-shadow: none !important;
}

.vs-product-wishlist-compare:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8 !important;
}

.vs-product-wishlist-compare i {
  margin-right: 6px;
  font-size: 14px;
}

.vs-product-wishlist-view {
  border: 1px solid #2f7ac8;
  background: #2f7ac8;
  color: #fff !important;
}

.vs-product-wishlist-view:hover {
  background: #2569ad;
  border-color: #2569ad;
  color: #fff !important;
}

.vs-product-wishlist-remove-text {
  grid-column: 1 / -1;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #475569;
}

.vs-product-wishlist-remove-text:hover {
  border-color: #fecaca;
  background: #fff5f5;
  color: #b91c1c;
}

@media (max-width: 1200px) {
  .vs-product-wishlist-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .vs-product-wishlist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .vs-product-wishlist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .vs-product-wishlist-thumb {
    padding: 10px;
  }

  .vs-product-wishlist-thumb img {
    max-height: 125px;
  }

  .vs-product-wishlist-card-body {
    padding: 12px;
  }

  .vs-product-wishlist-title {
    font-size: 14px;
    min-height: auto;
  }

  .vs-product-wishlist-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .vs-product-wishlist-cart,
  .vs-product-wishlist-view,
  .vs-product-wishlist-compare,
  .vs-product-wishlist-remove-text {
    min-height: 36px;
    padding: 0 10px;
    font-size: 12px;
    white-space: normal;
  }

  .vs-product-wishlist-remove-text {
    grid-column: 1 / -1;
  }
}


/* v5 cleaner action buttons */
.vs-product-wishlist-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.vs-product-wishlist-cart,
.vs-product-wishlist-view,
.vs-product-wishlist-compare {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.vs-product-wishlist-cart,
.vs-product-wishlist-view {
  grid-column: span 1;
}

.vs-product-wishlist-compare {
  grid-column: 1 / -1;
  border: 1px solid #dbe4f0;
  background: #fff;
  color: #334155 !important;
  box-shadow: none !important;
}

.vs-product-wishlist-compare:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8 !important;
}

.vs-product-wishlist-compare .comparelabel {
  display: inline !important;
}

.vs-product-wishlist-compare-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  flex: 0 0 auto;
}

.vs-product-wishlist-compare i {
  display: none !important;
}

.vs-product-wishlist-remove-text {
  display: none !important;
}

@media (max-width: 767px) {
  .vs-product-wishlist-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vs-product-wishlist-compare {
    grid-column: 1 / -1;
  }
}


/* v6 softer button styling */
.vs-product-wishlist-actions {
  gap: 10px;
}

.vs-product-wishlist-cart,
.vs-product-wishlist-view,
.vs-product-wishlist-compare {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
  box-shadow: none !important;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.vs-product-wishlist-cart {
  border: 1px solid #cfe7d9;
  background: #f2fbf5;
  color: #2f7a50 !important;
}

.vs-product-wishlist-cart:hover {
  border-color: #b9dcc7;
  background: #eaf7ef;
  color: #256341 !important;
}

.vs-product-wishlist-view {
  border: 1px solid #d8e4f7;
  background: #f4f8fe;
  color: #3467b3 !important;
}

.vs-product-wishlist-view:hover {
  border-color: #c6d7f3;
  background: #edf4fd;
  color: #2c5a9d !important;
}

.vs-product-wishlist-compare {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569 !important;
}

.vs-product-wishlist-compare:hover {
  border-color: #d3dce8;
  background: #f8fafc;
  color: #334155 !important;
}

.vs-product-wishlist-compare-icon {
  margin-right: 7px;
  opacity: .8;
}

@media (max-width: 767px) {
  .vs-product-wishlist-cart,
  .vs-product-wishlist-view,
  .vs-product-wishlist-compare {
    min-height: 38px;
    font-size: 12px;
    font-weight: 600;
  }
}


/* v7 ultra-clean wishlist polish */
.vs-product-wishlist-card {
  border-color: #e6edf5;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.045);
}

.vs-product-wishlist-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.vs-product-wishlist-thumb {
  position: relative;
  background: #f9fbfd;
}

.vs-product-wishlist-title a {
  font-weight: 750;
  color: #111827;
}

.vs-product-wishlist-price {
  font-weight: 750;
  color: #111827;
}

.vs-product-wishlist-stock-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 10px;
  border: 1px solid #cfe7d9;
  border-radius: 999px;
  background: rgba(242, 251, 245, 0.96);
  color: #2f7a50;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  pointer-events: none;
}

.vs-product-wishlist-actions {
  gap: 9px !important;
}

.vs-product-wishlist-cart,
.vs-product-wishlist-view,
.vs-product-wishlist-compare {
  min-height: 38px !important;
  padding: 0 12px !important;
  border-radius: 11px !important;
  border: 1px solid #d9e1ea !important;
  background: #fff !important;
  color: #334155 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}

.vs-product-wishlist-cart:hover {
  border-color: #b7d7c6 !important;
  background: #f4fbf7 !important;
  color: #256341 !important;
}

.vs-product-wishlist-view:hover {
  border-color: #c5d7ef !important;
  background: #f5f8fd !important;
  color: #315f9e !important;
}

.vs-product-wishlist-compare:hover {
  border-color: #cbd5e1 !important;
  background: #f8fafc !important;
  color: #0f172a !important;
}

.vs-product-wishlist-compare-icon {
  margin-right: 7px;
  opacity: .78;
}

@media (max-width: 767px) {
  .vs-product-wishlist-stock-badge {
    top: 8px;
    left: 8px;
    height: 22px;
    padding: 0 8px;
    font-size: 11px;
  }

  .vs-product-wishlist-cart,
  .vs-product-wishlist-view,
  .vs-product-wishlist-compare {
    min-height: 36px !important;
    padding: 0 9px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
  }
}


/* v8: direct cart button, no redirect, no duplicate partner buttons */
button.vs-product-wishlist-cart {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.vs-product-wishlist-cart {
  border-color: #c9d8ee !important;
  background: #f6f9fe !important;
  color: #315f9e !important;
}

.vs-product-wishlist-cart:hover {
  border-color: #b9cdea !important;
  background: #edf4fd !important;
  color: #254f88 !important;
}

.vs-product-wishlist-cart.vs-cart-added {
  border-color: #b9dcc7 !important;
  background: #f2fbf5 !important;
  color: #256341 !important;
}

.vs-product-wishlist-cart.vs-cart-error {
  border-color: #fecaca !important;
  background: #fff5f5 !important;
  color: #b91c1c !important;
}

.vs-product-wishlist-cart[disabled],
.vs-product-wishlist-cart.vs-cart-loading {
  opacity: .72;
  cursor: wait;
}


/* v9: clean actions, real clear button, no duplicate external product buttons */
.vs-product-wishlist-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 9px !important;
}

.vs-product-wishlist-actions.no-cart {
  grid-template-columns: 1fr !important;
}

.vs-product-wishlist-actions.no-cart .vs-product-wishlist-view,
.vs-product-wishlist-actions.no-cart .vs-product-wishlist-compare {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

.vs-product-wishlist-actions.has-cart .vs-product-wishlist-compare {
  grid-column: 1 / -1 !important;
}

.vs-product-wishlist-cart,
.vs-product-wishlist-view,
.vs-product-wishlist-compare {
  width: 100% !important;
  min-width: 0 !important;
  white-space: nowrap;
}

button.vs-product-wishlist-compare,
button.vs-product-wishlist-cart,
button.vs-product-wishlist-clear {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
}

.vs-product-wishlist-compare-native-source {
  display: none !important;
}

.vs-product-wishlist-compare.vs-compare-loading {
  opacity: .72;
  cursor: wait;
}

.vs-product-wishlist-bottom-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.vs-product-wishlist-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #64748b;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.vs-product-wishlist-clear:hover {
  border-color: #fecaca;
  background: #fff7f7;
  color: #b91c1c;
}

.vs-product-wishlist-clear.vs-clear-loading,
.vs-product-wishlist-clear[disabled] {
  opacity: .65;
  cursor: wait;
}

@media (max-width: 767px) {
  .vs-product-wishlist-actions,
  .vs-product-wishlist-actions.no-cart {
    grid-template-columns: 1fr !important;
  }

  .vs-product-wishlist-cart,
  .vs-product-wishlist-view,
  .vs-product-wishlist-compare {
    white-space: normal;
  }

  .vs-product-wishlist-bottom-actions {
    justify-content: stretch;
  }

  .vs-product-wishlist-clear {
    width: 100%;
  }
}


/* v11: compare removed from wishlist grid for stability */
.vs-product-wishlist-compare,
.vs-product-wishlist-compare-native-source {
  display: none !important;
}

.vs-product-wishlist-actions.has-cart {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.vs-product-wishlist-actions.no-cart {
  grid-template-columns: 1fr !important;
}

.vs-product-wishlist-actions.no-cart .vs-product-wishlist-view {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}
