/* ============================================
   BrickForge Product Hover — Linea Template Style
   ============================================ */

/* Image container */
.wc-block-components-product-image {
  position: relative !important;
  overflow: hidden !important;
}

/* Default image fades out on hover */
.wc-block-components-product-image .bf-img-default {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.4s ease;
}

/* Hover image: absolute, fades in */
.wc-block-components-product-image .bf-img-hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Trigger on product card hover */
li.wc-block-product:hover .bf-img-default { opacity: 0; }
li.wc-block-product:hover .bf-img-hover { opacity: 1; transform: scale(1.02); }

/* Fallback: zoom if no hover image */
li.wc-block-product.bf-no-hover .wc-block-components-product-image img {
  transition: transform 0.4s ease !important;
}
li.wc-block-product.bf-no-hover:hover .wc-block-components-product-image img {
  transform: scale(1.04) !important;
}

/* ============================================
   Quick Add — YELLOW per template
   ============================================ */
li.wc-block-product { position: relative; }

.bf-quick-add {
  position: absolute;
  bottom: 72px;
  left: 12px;
  right: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10;
  pointer-events: none;
}

li.wc-block-product:hover .bf-quick-add {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.bf-quick-add button {
  width: 100% !important;
  background: #FFD502 !important;
  color: #141414 !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 11px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
  transition: background 0.15s ease !important;
}

.bf-quick-add button:hover {
  background: #e8c200 !important;
}
