body.woocommerce ul.products li.product .ct-woo-card-actions,
body.woocommerce ul.products li.product .woocommerce-loop-add-to-cart,
body.woocommerce ul.products li.product a.button:not(.cg-native-atc),
body.woocommerce ul.products li.product .button:not(.cg-hover-atc):not(.cg-hover-view){
  display:none !important;
}

body.woocommerce ul.products li.product a.added_to_cart.wc-forward{
  display:none !important;
}

body.woocommerce:not(.single-product) ul.products li.product{ position:relative !important; }

body.woocommerce:not(.single-product) ul.products li.product figure,
body.woocommerce:not(.single-product) ul.products li.product figure.ct-media-container{
  position:relative !important;
  isolation:isolate;
}


.cg-hover-actions{
  position:absolute;
  left:12px;
  right:12px;
  bottom:12px;

  display:grid;
  grid-template-columns:52px minmax(0,1fr);
  gap:10px;
  align-items:stretch;

  opacity:0;
  transform:translateY(10px);
  pointer-events:none;
  transition:opacity .18s ease, transform .18s ease;
  z-index:50;
}

.ct-product:hover .cg-hover-actions,
.ct-product:focus-within .cg-hover-actions,
li.product:hover .cg-hover-actions,
li.product:focus-within .cg-hover-actions{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}

li.product.cg-open .cg-hover-actions,
.ct-product.cg-open .cg-hover-actions{
  opacity:1 !important;
  transform:translateY(0) !important;
  pointer-events:auto !important;
}

.cg-hover-atc,
.cg-hover-view{
  height:52px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;

  border:1px solid rgba(255,255,255,.18) !important;
  outline:none !important;
  cursor:pointer;
  text-decoration:none !important;

  font-weight:700;
  line-height:1;
  white-space:nowrap;

  background:var(--ce-primary,#2f3b8f);
  color:#fff !important;

  box-shadow:0 12px 28px rgba(15,23,42,.18);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  transition:transform .15s ease, box-shadow .15s ease, filter .15s ease;
  -webkit-tap-highlight-color:transparent;
}

.cg-hover-atc--icon{
  width:52px;
  min-width:52px;
  padding:0;
}

.cg-hover-view{
  min-width:0;
  padding:0 16px;
  font-size:13px;
  letter-spacing:.2px;
  overflow:hidden;
  text-overflow:ellipsis;
}

.cg-hover-actions svg{ width:16px; height:16px; flex:0 0 16px; }

.cg-hover-atc.is-loading{
  opacity:.75;
  transform:none;
  pointer-events:none;
}

@media (max-width:1200px){
  .cg-hover-actions{
    grid-template-columns:48px minmax(0,1fr);
    gap:8px;
    left:10px;
    right:10px;
    bottom:10px;
  }
  .cg-hover-atc,.cg-hover-view{ height:48px; }
  .cg-hover-atc--icon{ width:48px; min-width:48px; }
  .cg-hover-view{ font-size:12px; padding:0 12px; letter-spacing:.12px; }

}

@media (max-width:420px){
  .cg-hover-actions{ grid-template-columns:1fr; }
  .cg-hover-atc--icon{ width:100%; min-width:0; }
}

.cg-native-atc{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
  pointer-events:none !important;
  overflow:hidden !important;
  left:-9999px !important;
  top:-9999px !important;
}

.cg-fly{
  position:fixed;
  z-index:999999;
  pointer-events:none;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 18px 44px rgba(15,23,42,.22);
  transform:translate3d(0,0,0) scale(1);
  opacity:.98;
}

/* =========================
   MOBILE: HIDE HOVER ACTIONS
   ========================= */
@media (max-width:560px){
  body.woocommerce:not(.single-product) ul.products li.product .cg-hover-actions,
  body.woocommerce:not(.single-product) ul.products .ct-product .cg-hover-actions,
  .cg-hover-actions,
  .cg-hover-view,
  .cg-hover-atc{
    display:none !important;
    visibility:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
  }
}
