/* Product Cards CSS - Minimal fallback to avoid 404 errors and provide basic styles */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border, #eee);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.product-image-container {
  position: relative;
  aspect-ratio: 4/3;
  background: #f7f7f7;
}
.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: #ff4757;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
}
.product-content {
  padding: 12px;
}
.product-category { color: #6b7280; font-size: 12px; margin-bottom: 4px; }
.product-name { font-size: 16px; margin: 4px 0; }
.product-description { color: #6b7280; font-size: 13px; height: 34px; overflow: hidden; }
.product-rating { display:flex; align-items:center; gap:6px; margin: 6px 0; }
.product-price { display:flex; align-items:center; gap:8px; }
.price-current { color: #111827; font-weight: 700; }
.price-original { color: #9ca3af; text-decoration: line-through; }
.price-discount { color: #10b981; font-size: 12px; font-weight: 600; }
.product-actions { margin-top: 10px; }
.action-btn.btn-primary { background: #111827; color:#fff; border:none; padding:8px 12px; border-radius:8px; cursor:pointer; }

/* Skeletons */
.skeleton-container { display:grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.skeleton-card { background:#fff; border:1px solid #eee; border-radius:12px; padding:12px; }
.skeleton-image { height:160px; background: linear-gradient(90deg,#eee,#f5f5f5,#eee); background-size:200% 100%; animation: shimmer 1.2s infinite; border-radius:8px; }
.skeleton-text { height:12px; margin-top:10px; background: linear-gradient(90deg,#eee,#f5f5f5,#eee); background-size:200% 100%; animation: shimmer 1.2s infinite; border-radius:6px; }
.skeleton-text.title{ height:16px; width:70%; }
.skeleton-text.description{ width:90%; }
.skeleton-text.price{ width:40%; height:14px; }
@keyframes shimmer { 0%{background-position:200% 0;} 100%{background-position:-200% 0;} }

