/* WooCommerce AJAX inserts an extra "View cart" anchor. Homepage uses .boxpopul, not li.product. */
a.added_to_cart.wc-forward,
a.added_to_cart,
.boxpopul a.wc-forward.added_to_cart,
.textpopular a.wc-forward.added_to_cart,
.tf-product-card a.wc-forward.added_to_cart { display:none !important; }
/* TrishFamily mini cart — consistent on the homepage, catalog, categories and product pages. */
.woocommerce ul.products li.product .added_to_cart.wc-forward,
.tf-product-card .added_to_cart.wc-forward,
.woocommerce ul.products li.product a.added_to_cart,
.woocommerce ul.products li.product .butn1 + a.wc-forward,
.woocommerce ul.products li.product .butn1 a.wc-forward,
.woocommerce .tf-product-card a.added_to_cart.wc-forward { display:none !important; }
.tf-mini-cart { position:fixed; top:var(--tf-mini-cart-top, 88px); right:42px; z-index:99990; width:min(300px,calc(100vw - 54px)); box-sizing:border-box; background:#fff; border:1px solid #e7d6d8; border-radius:10px; box-shadow:0 12px 32px rgba(46,24,29,.14); color:#292522; opacity:0; visibility:hidden; transform:translateY(-10px); pointer-events:none; transition:opacity .25s ease,transform .25s ease,visibility .25s ease; }
.tf-mini-cart--open { opacity:1; visibility:visible; transform:translateY(0); pointer-events:auto; }
.tf-mini-cart__inner { padding:15px; }
.tf-mini-cart__head { display:flex; align-items:center; gap:9px; margin-bottom:10px; }
.tf-mini-cart__head strong { flex:1; font-size:13px; font-weight:400; }
.tf-mini-cart__tick { display:flex; justify-content:center; align-items:center; height:24px; width:24px; border-radius:50%; background:#923d50; color:#fff; }
.tf-mini-cart__close { border:0; background:transparent; font-size:23px; line-height:1; padding:3px 6px; cursor:pointer; color:#777; }
.tf-mini-cart__items { max-height: min(340px,43vh); overflow-y:auto; margin:0 0 10px; }
.tf-mini-cart__item { display:flex; gap:10px; padding:9px 0; border-bottom:1px solid #f1e7e8; align-items:center; }
.tf-mini-cart__item img { width:54px; height:54px; flex:0 0 54px; object-fit:cover; border-radius:6px; }
.tf-mini-cart__detail { min-width:0; display:flex; flex-direction:column; gap:4px; }
.tf-mini-cart__name { font-size:12px; line-height:1.3; }
.tf-mini-cart__muted { font-size:11px; color:#777; }
.tf-mini-cart__bottom { font-size:12px; margin:11px 0 13px; }
.tf-mini-cart__link { display:block; padding:11px 12px; text-align:center; color:#fff !important; background:#923d50; border-radius:3px; font-size:12px; font-weight:400; text-decoration:none !important; }
.tf-mini-cart__link:hover { color:#fff !important; background:#762b3b; }
.tf-cart-badge--pulse { animation:tf-cart-pulse .4s ease-out; }
@keyframes tf-cart-pulse { 0% {transform:scale(1)} 45% {transform:scale(1.2)} 100% {transform:scale(1)} }
@media (max-width:767px) {
  /* Compact mobile layout: about 2/3 of the desktop dimensions. */
  .tf-mini-cart { top:var(--tf-mini-cart-top, 88px); right:12px; width:min(195px,calc(100vw - 24px)); max-height:calc(100dvh - var(--tf-mini-cart-top, 88px) - 8px); overflow-y:auto; border-radius:7px; }
  .tf-mini-cart__inner { padding:10px; }
  .tf-mini-cart__head { gap:6px; margin-bottom:7px; }
  .tf-mini-cart__head strong { font-size:10px; }
  .tf-mini-cart__tick { width:16px; height:16px; font-size:10px; }
  .tf-mini-cart__close { font-size:17px; padding:2px 4px; }
  .tf-mini-cart__items { max-height:23vh; margin-bottom:7px; }
  .tf-mini-cart__item { gap:7px; padding:6px 0; }
  .tf-mini-cart__item img { width:36px; height:36px; flex-basis:36px; border-radius:4px; }
  .tf-mini-cart__detail { gap:3px; }
  .tf-mini-cart__name { font-size:9px; }
  .tf-mini-cart__muted { font-size:8px; }
  .tf-mini-cart__bottom { font-size:9px; margin:7px 0 9px; }
  .tf-mini-cart__link { padding:8px; font-size:9px; }

}
@media (prefers-reduced-motion:reduce) { .tf-mini-cart {transition:none} .tf-cart-badge--pulse{animation:none} }

/* Main navigation stays visible on scroll, without the promotional strip. */
header.head .wrapper > .tf-header-fixed-target {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 99980 !important;
  background: #fff !important;
  box-sizing: border-box;
  box-shadow: 0 3px 15px rgba(30,20,20,.08);
  transform: none !important;
}
header.head .wrapper > .tf-header-placeholder { flex: 0 0 auto; width:100%; pointer-events:none; }
@media (max-width:1015px) {
  header.head .wrapper > .tf-header-fixed-target.menu-burger { min-height: 80px; }
}

/* Close toward the shopping-bag icon; preserve exact desktop/mobile offsets. */
.tf-mini-cart { transform-origin:center center; will-change:transform,opacity; }
@media (prefers-reduced-motion:reduce) { .tf-mini-cart { will-change:auto; } }
