/**
 * Product grid & product cards – gedeeld door collection en search pagina's
 */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.products-grid:has(> .empty-state) {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}
@media (min-width: 768px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
@media (min-width: 1024px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1280px) {
  .products-grid { grid-template-columns: repeat(5, 1fr); }
}

.product-card {
  min-width: 0;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  overflow: hidden;
}
.product-card a { text-decoration: none; color: inherit; }
.product-card .img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}
.product-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card .badge {
  position: absolute;
  top: 0.375rem;
  left: 0.375rem;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 10px;
  font-weight: 600;
}
@media (min-width: 768px) {
  .product-card .badge { top: 0.5rem; left: 0.5rem; padding: 0.25rem 0.5rem; font-size: 0.75rem; }
}
.product-card .badge--soldout {
  background: var(--neutral-800, #262626);
  color: #fff;
}
.product-card .badge--discount {
  left: auto;
  right: 0.375rem;
  background: var(--red-600, #dc2626);
  color: #fff;
}
@media (min-width: 768px) {
  .product-card .badge--discount { right: 0.5rem; }
}
.product-card .body { padding: 0.5rem; }
@media (min-width: 768px) {
  .product-card .body { padding: 0.75rem; }
}
.product-card h3 {
  font-family: var(--font-inter);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--neutral-900, #171717);
  margin: 0 0 0.375rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.product-card a:hover h3 { color: var(--color-primary, #a87b4b); }
@media (min-width: 768px) {
  .product-card h3 { font-size: 0.875rem; margin-bottom: 0.5rem; }
}
.product-card .price-row {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  margin-bottom: 0.375rem;
}
@media (min-width: 768px) {
  .product-card .price-row { gap: 0.5rem; margin-bottom: 0.5rem; }
}
.product-card .price {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--red-600, #dc2626);
}
@media (min-width: 768px) {
  .product-card .price { font-size: 1.125rem; }
}
.product-card .price-old {
  font-size: 10px;
  color: var(--neutral-500, #737373);
  text-decoration: line-through;
}
@media (min-width: 768px) {
  .product-card .price-old { font-size: 0.875rem; }
}
.product-card .delivery {
  font-size: 10px;
  color: var(--neutral-500, #737373);
  margin-bottom: 0.375rem;
}
@media (min-width: 768px) {
  .product-card .delivery { font-size: 0.75rem; margin-bottom: 0.5rem; }
}
.product-card .delivery--stock {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--green-600, #16a34a);
}
@media (min-width: 768px) {
  .product-card .delivery--stock { gap: 0.5rem; }
}
.product-card .delivery-dot {
  width: 6px;
  height: 6px;
  background: var(--green-600, #16a34a);
  border-radius: 50%;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .product-card .delivery-dot { width: 8px; height: 8px; }
}
.product-card .delivery-mobile { display: inline; }
.product-card .delivery-desk { display: none; }
@media (min-width: 768px) {
  .product-card .delivery-mobile { display: none; }
  .product-card .delivery-desk { display: inline; }
}
.product-card .btn-cart {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  font-family: var(--font-inter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  transition: background 0.2s;
}
@media (min-width: 768px) {
  .product-card .btn-cart { padding: 0.625rem 1rem; font-size: 0.875rem; gap: 0.5rem; }
}
.product-card .btn-cart--green {
  background: var(--green-500, #22c55e);
  color: #fff;
}
.product-card .btn-cart--green:hover { background: var(--green-600, #16a34a); }
.product-card .btn-cart--disabled {
  background: var(--neutral-300, #d4d4d4);
  color: #fff;
  cursor: not-allowed;
}

/* ========== Toast melding: toegevoegd aan winkelwagen ========== */
.collection-toast {
  position: fixed;
  top: 108px;
  right: 1.25rem;
  transform: translateX(calc(100% + 1.25rem));
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #171717;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  max-width: calc(100vw - 2rem);
}
@media (min-width: 1024px) {
  .collection-toast {
    top: 188px;
  }
}
.collection-toast.visible {
  transform: translateX(0);
  opacity: 1;
}
.collection-toast .collection-toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.collection-toast .collection-toast-icon svg {
  width: 100%;
  height: 100%;
}
