/* Winkel / productcatalogus — bouwt voort op site.css */

.page-head .theme-switch {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
}

.page-head .theme-switch a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.page-head .theme-switch a:hover {
  color: var(--accent);
  border-bottom-color: rgba(28, 111, 214, 0.35);
}

.empty {
  padding: 1.25rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.toolbar__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.toolbar__field--search {
  position: relative;
}

.toolbar__field--search input {
  padding-right: 2.5rem;
}

.search-clear {
  position: absolute;
  right: 0.45rem;
  bottom: 0.45rem;
  display: none;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.search-clear:hover,
.search-clear:focus-visible {
  background: rgba(20, 37, 54, 0.08);
  color: var(--ink);
  outline: none;
}

.search-clear.is-visible {
  display: inline-flex;
}

/* WebKit native clear verbergen; we gebruiken onze eigen X */
.toolbar__field--search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.toolbar__label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.toolbar input,
.toolbar select {
  width: 100%;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
}

.toolbar input:focus,
.toolbar select:focus {
  outline: none;
  border-color: rgba(28, 111, 214, 0.5);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.results-meta {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.empty--filter {
  margin-bottom: 1.25rem;
}

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

@media (max-width: 800px) {
  .toolbar {
    grid-template-columns: 1fr;
  }
}

.product {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product[hidden] {
  display: none !important;
}

.product:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(20, 37, 54, 0.12);
}

.product__media {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: #fff;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.product__media img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.product__placeholder {
  color: var(--muted);
  font-size: 0.9rem;
}

.product__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 1.1rem 1.2rem;
  flex: 1;
}

.product__category {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 700;
}

.product__title a {
  color: inherit;
  text-decoration: none;
}

.product__title a:hover {
  color: var(--accent);
}

.product__rating {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.product__price-row {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-top: 0.15rem;
}

.product__price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.product__strike {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.95rem;
}

.product__delivery {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.product__cta {
  margin-top: auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 176, 214, 0.35);
  background: rgba(0, 176, 214, 0.08);
  color: #0a7a96;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.product__cta:hover {
  background: rgba(0, 176, 214, 0.16);
  border-color: rgba(0, 176, 214, 0.55);
  color: #086781;
  filter: none;
}

.footnote {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  .product,
  .product__cta {
    transition: none;
  }

  .product:hover {
    transform: none;
  }
}
