/* TPS: wishlist toast + stronger heart + keep bar while hovering it */
.tps-wish-toast{
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(16px);
  background: #1c6b38;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.35;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 99999;
  max-width: min(92vw, 420px);
  text-align: center;
}
.tps-wish-toast.is-off{ background:#555; }
.tps-wish-toast.show{
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.tps-wish-toast a{ color:#fff; text-decoration: underline; font-weight: 600; }

.tps-hover-bar .tps-wish.is-on i{
  background-color: #e8a317 !important;
  transform: scale(1.08);
}
.product-small .box-image .tps-hover-bar:hover,
.product-small .box-image .tps-hover-bar:focus-within{
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate(-50%, 0) !important;
  pointer-events: auto !important;
}

/* Hover-bar wishlist: icon-only (title/aria-label = Yêu thích) */
.tps-hover-bar .tps-wish .tps-wish-label{ display: none !important; }



/* ===== Wishlist page layout ===== */
body.page-id-7413 .page-title-bg,
body.page .tps-wish-wrap{ font-family: Montserrat, sans-serif; }

#tps-wishlist-root{
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 4px 48px;
}

.tps-wish-wrap{ width: 100%; }

.tps-wish-hero{
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 22px;
  margin: 0 0 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f3faf6 0%, #ffffff 55%, #fff8e8 100%);
  border: 1px solid #e6efe9;
  box-shadow: 0 4px 18px rgba(28,107,56,.06);
}
.tps-wish-hero-ico{
  flex: 0 0 52px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(232,163,23,.25);
  -webkit-mask: none;
  position: relative;
}
.tps-wish-hero-ico::before{
  content:"";
  position:absolute; inset:15px;
  background-color:#e8a317;
  -webkit-mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAyNCAyNCc+PHBhdGggZD0nTTEyIDIxUzQgMTYuMyA0IDEwLjhBNC44IDQuOCAwIDAgMSAxMiA3LjVhNC44IDQuOCAwIDAgMSA4IDMuM0MyMCAxNi4zIDEyIDIxIDEyIDIxeicvPjwvc3ZnPg==") center/contain no-repeat;
  mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAyNCAyNCc+PHBhdGggZD0nTTEyIDIxUzQgMTYuMyA0IDEwLjhBNC44IDQuOCAwIDAgMSAxMiA3LjVhNC44IDQuOCAwIDAgMSA4IDMuM0MyMCAxNi4zIDEyIDIxIDEyIDIxeicvPjwvc3ZnPg==") center/contain no-repeat;
}
.tps-wish-title{
  margin: 0 0 4px !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  line-height: 1.25 !important;
}
.tps-wish-sub{
  margin: 0;
  font-size: 14px;
  color: #666;
}
.tps-wish-sub strong{ color:#008b4b; }

/* Row 1: continue shopping top-left */
.tps-wish-topbar{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  margin: 0 0 12px;
  padding: 0 2px;
}
.tps-wish-continue{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #008b4b !important;
  background: #fff !important;
  border: 1.5px solid #008b4b !important;
  border-radius: 999px !important;
  padding: 8px 16px !important;
  text-decoration: none !important;
  line-height: 1.2 !important;
  box-shadow: 0 1px 4px rgba(0,139,75,.08);
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.tps-wish-continue:hover{
  background: #008b4b !important;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(0,139,75,.18);
}
.tps-wish-continue::before{
  content: "←";
  font-weight: 700;
  margin-right: 2px;
}

/* Row 2: count badge left + clear all right */
.tps-wish-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 16px;
  padding: 0 2px;
}
.tps-wish-count{
  font-size: 13px;
  font-weight: 600;
  color: #555;
  background: #f3f3f3;
  border-radius: 999px;
  padding: 6px 12px;
}
.tps-wish-toolbar-actions{ display:flex; align-items:center; gap:14px; }
.tps-wish-link{
  font-size: 13px;
  font-weight: 600;
  color: #008b4b !important;
  text-decoration: none !important;
}
.tps-wish-link:hover{ text-decoration: underline !important; }
.tps-wish-clear{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  color: #666;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 999px;
  line-height: 1.2;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.tps-wish-clear:hover{
  color: #c0392b;
  border-color: #c0392b;
  background: #fff5f5;
  text-decoration: none;
}

.tps-wish-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 980px;
}
@media (max-width: 999px){
  .tps-wish-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 699px){
  .tps-wish-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tps-wish-hero{ padding: 16px; }
  .tps-wish-title{ font-size: 18px !important; }
}

.tps-wish-card{
  position: relative;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.tps-wish-card:hover{
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.tps-wish-thumb{
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f7f7;
  overflow: hidden;
}
.tps-wish-thumb img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.tps-wish-noimg{ color:#bbb; font-size:13px; }
.tps-wish-info{
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.tps-wish-name{
  color: #222 !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
.tps-wish-name:hover,
.tps-wish-card .tps-wish-name:hover,
.tps-wish-info a.tps-wish-name:hover{
  color: #fcb900 !important;
}
.tps-wish-price{
  color: #008b4b;
  font-weight: 600;
  font-size: 15px;
  font-family: Montserrat, sans-serif;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  line-height: 1.3;
}
.tps-wish-price del{
  color: #999 !important;
  font-size: 13px;
  font-weight: 400;
  text-decoration: line-through;
}
.tps-wish-price ins{
  color: #008b4b !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.tps-wish-buy{
  margin-top: auto !important;
  width: 100%;
  text-align: center;
  background: #008b4b !important;
  border-color: #008b4b !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}
.tps-wish-buy:hover{
  background: #007a42 !important;
  border-color: #007a42 !important;
}

.tps-wish-remove{
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.tps-wish-remove i{
  display: block;
  width: 18px;
  height: 18px;
  background-color: #e8a317;
  -webkit-mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAyNCAyNCc+PHBhdGggZD0nTTEyIDIxUzQgMTYuMyA0IDEwLjhBNC44IDQuOCAwIDAgMSAxMiA3LjVhNC44IDQuOCAwIDAgMSA4IDMuM0MyMCAxNi4zIDEyIDIxIDEyIDIxeicvPjwvc3ZnPg==") center/contain no-repeat;
  mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAyNCAyNCc+PHBhdGggZD0nTTEyIDIxUzQgMTYuMyA0IDEwLjhBNC44IDQuOCAwIDAgMSAxMiA3LjVhNC44IDQuOCAwIDAgMSA4IDMuM0MyMCAxNi4zIDEyIDIxIDEyIDIxeicvPjwvc3ZnPg==") center/contain no-repeat;
}
.tps-wish-remove:hover i{ background-color: #c0392b; }

.tps-wish-empty{
  text-align: center;
  padding: 48px 20px 56px;
  background: #fafafa;
  border-radius: 16px;
  border: 1px dashed #ddd;
}
.tps-wish-empty-ico{
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  position: relative;
}
.tps-wish-empty-ico::before{
  content:"";
  position:absolute; inset:18px;
  background-color:#ccc;
  -webkit-mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAyNCAyNCc+PHBhdGggZD0nTTEyIDIxUzQgMTYuMyA0IDEwLjhBNC44IDQuOCAwIDAgMSAxMiA3LjVhNC44IDQuOCAwIDAgMSA4IDMuM0MyMCAxNi4zIDEyIDIxIDEyIDIxeicvPjwvc3ZnPg==") center/contain no-repeat;
  mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAyNCAyNCc+PHBhdGggZD0nTTEyIDIxUzQgMTYuMyA0IDEwLjhBNC44IDQuOCAwIDAgMSAxMiA3LjVhNC44IDQuOCAwIDAgMSA4IDMuM0MyMCAxNi4zIDEyIDIxIDEyIDIxeicvPjwvc3ZnPg==") center/contain no-repeat;
}
.tps-wish-empty p{
  margin: 0 0 18px;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}
.tps-wish-cta{
  background: #008b4b !important;
  border-color: #008b4b !important;
  border-radius: 10px !important;
  padding: 10px 22px !important;
  font-weight: 600 !important;
}

/* Cart icon on product hover bar → orange on hover
   Overrides TWO green sources in wp-custom-css (FLOAT):
   1) .tps-hover-bar a:hover .cart-icon strong { background-color:#008b4b !important }
   2) .product-small .add-to-cart-grid:hover .cart-icon strong { background: linear-gradient(green...) !important }
   Previous MU fix only set background-color; green linear-gradient background-image still painted the masked SVG.
   Must clear background-image and set solid orange. Cart only — not eye/heart. */
.product-small .box-image .tps-hover-bar a.add-to-cart-grid:hover .cart-icon strong,
.product-small .box-image .tps-hover-bar a.add_to_cart_button:hover .cart-icon strong,
.product-small .box-image .tps-hover-bar a.ajax_add_to_cart:hover .cart-icon strong,
.product-small .tps-hover-bar a.add-to-cart-grid:hover .cart-icon strong,
.tps-hover-bar a.add-to-cart-grid:hover .cart-icon strong,
.tps-hover-bar a.add_to_cart_button:hover .cart-icon strong,
.tps-hover-bar a.ajax_add_to_cart:hover .cart-icon strong {
  background: #ff6a00 !important;
  background-color: #ff6a00 !important;
  background-image: none !important;
  border-color: #ff6a00 !important;
  color: #ff6a00 !important;
}
