/* Store Products Cards (Bootstrap 5) */

.product-card{
  border: 1px solid #eee;
  border-radius: 6px; /* ✅ minimal rounding */
  overflow: hidden;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease;
  height: 100%;
  box-shadow: 0 10px 22px rgba(17,24,39,.05);
}

.product-card:hover{
  transform: scale(1.03);
  box-shadow: 0 18px 38px rgba(17,24,39,.10);
}

.product-media{
  position: relative;
  height: 210px; /* ✅ slightly bigger */
  background: #f3f4f6;
  overflow: hidden;
}

@media (min-width: 992px){
  .product-media{
    height: 220px;
  }
}

.product-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease, filter .25s ease;
}

.product-card:hover .product-media img{
  transform: scale(1.06);
  filter: brightness(.92);
}

/* fallback icon (no file needed) */
.product-fallback{
  height: 100%;
  width: 100%;
  display:flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(135deg, rgba(13,110,253,.12), rgba(25,135,84,.10));
}

.product-fallback i{
  font-size: 44px;
  color: var(--secondary);
  opacity: .85;
}

/* overlay */
.product-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.0);
  transition: background .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.product-card:hover .product-overlay{
  background: rgba(0,0,0,.35);
}

/* ✅ Buy button (Secondary transparent) */
.product-buy-btn{
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, background .15s ease;
  border-radius: 6px; /* ✅ minimal rounding */
  padding: 10px 18px;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(13,110,253,.55); /* ✅ secondary transparent */
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(6px);
  white-space: nowrap;
}

.product-card:hover .product-buy-btn{
  opacity: 1;
  transform: translateY(0);
}

/* ✅ on hover: darker */
.product-buy-btn:hover{
  background: rgba(13,110,253,.75);
  color: #fff;
}

.product-body{
  padding: 14px 14px 16px 14px;
}

.product-title{
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 6px;
}

.product-desc{
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
  min-height: 38px;
}

.product-price{
  font-weight: 900;
  color: var(--primary);
  font-size: 14px;
}

.product-meta{
  font-size: 12px;
  color: var(--muted);
}
