/*
 * Uniforme producttegels – structurele versie.
 * Alle tegeltypen gebruiken dezelfde echte .product-card-actions-rij.
 */
:root {
  --pc-radius: 14px;
  --pc-border: #d3e0e8;
  --pc-border-hover: #73add6;
  --pc-surface: #fff;
  --pc-surface-soft: #f8fbfd;
  --pc-action-surface: #f2f5f7;
  --pc-line: #d7e2e9;
  --pc-shadow: 0 5px 16px rgba(8, 54, 91, .07);
  --pc-shadow-hover: 0 12px 26px rgba(8, 81, 143, .13);
  --pc-action-height: 36px;
  --pc-action-gap: 7px;
  --pc-compare-width: 104px;
  --pc-view-width: 76px;
  --pc-image-size: 104px;
}

.product-list,
.color-product-grid,
.home-popular-grid,
.seo-related-products > div:last-child {
  align-items: stretch;
}

.product-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.product-card-shell,
.color-product-card,
.home-popular-card-shell,
.seo-related-card-shell {
  position: relative;
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(145deg, var(--pc-surface) 0%, var(--pc-surface-soft) 100%);
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius);
  box-shadow: var(--pc-shadow);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.product-card-shell:hover,
.product-card-shell:focus-within,
.color-product-card:hover,
.color-product-card:focus-within,
.home-popular-card-shell:hover,
.home-popular-card-shell:focus-within,
.seo-related-card-shell:hover,
.seo-related-card-shell:focus-within {
  border-color: var(--pc-border-hover);
  box-shadow: var(--pc-shadow-hover);
  transform: translateY(-1px);
}

.product-card-shell.is-saved,
.color-product-card.is-saved,
.home-popular-card-shell.is-saved,
.seo-related-card-shell.is-saved {
  border-color: #df7b2c;
  box-shadow: 0 0 0 2px rgba(223, 123, 44, .12), var(--pc-shadow);
}

.product-card-shell .product-card,
.color-product-card .color-product-main,
.home-popular-card-shell .home-popular-card,
.seo-related-products .seo-related-card {
  position: relative;
  display: grid;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: auto;
  margin: 0;
  color: var(--ink);
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-decoration: none;
  transform: none !important;
}

.product-card-shell .product-card::before,
.product-card-shell .product-card::after,
.color-product-card .color-product-main::before,
.color-product-card .color-product-main::after,
.home-popular-card-shell .home-popular-card::before,
.home-popular-card-shell .home-popular-card::after,
.seo-related-products .seo-related-card::before,
.seo-related-products .seo-related-card::after {
  display: none !important;
  content: none !important;
}

/* Catalogus en keuzehulp. */
.product-card-shell .product-card {
  min-height: 134px;
  grid-template-columns: var(--pc-image-size) minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 14px;
}

.product-card-shell .product-thumb,
.color-product-card .color-product-image,
.home-popular-card-shell .home-popular-image {
  position: relative;
  display: grid;
  width: var(--pc-image-size);
  height: var(--pc-image-size);
  min-height: var(--pc-image-size);
  place-items: center;
  align-self: start;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #f2f6f9 100%);
  border: 1px solid #d9e4eb;
  border-radius: 11px;
}

.product-card-shell .product-thumb img,
.color-product-card .color-product-image img,
.home-popular-card-shell .home-popular-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: none;
  padding: 9px;
  object-fit: contain;
}

.product-card-shell .product-card-body {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  align-items: center;
  gap: 5px 8px;
  padding-top: 1px;
}

.product-card-name {
  display: -webkit-box;
  min-width: 0;
  min-height: 2.54em;
  overflow: hidden;
  color: var(--blue-dark);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.27;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card-name.is-long-name { font-size: 14.5px; }
.product-card-name.is-very-long-name { font-size: 13.5px; line-height: 1.23; }

.product-card-shell .product-card-name {
  grid-column: 1 / -1;
  grid-row: 1;
}

.product-card-shell .product-card-body > strong {
  grid-column: 1 / -1;
  grid-row: 2;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.product-card-shell .product-card-price {
  grid-column: 1;
  grid-row: 3;
  color: var(--green-dark);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.3;
  white-space: nowrap;
}

.product-card-shell .product-card-offers {
  grid-column: 2;
  grid-row: 3;
  min-width: 0;
  min-height: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border-radius: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.product-card-shell .product-card-offers::before {
  margin-right: 7px;
  color: #93a3af;
  content: "·";
}

/* Homepage. */
.home-popular-card-shell .home-popular-card {
  min-height: 174px;
  grid-template-columns: var(--pc-image-size) minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 44px 14px 14px;
}

.home-popular-card-shell .home-popular-badge {
  top: 12px;
  left: 14px;
}

.home-popular-card-shell .home-popular-copy {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 5px;
  padding-top: 1px;
}

.home-popular-card-shell .home-popular-copy small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.home-popular-card-shell .home-popular-price {
  color: var(--green-dark);
  font-size: 15px;
  font-weight: 950;
}

.home-popular-card-shell .home-popular-offers {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.home-popular-card-shell .home-popular-provider {
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.3;
}

/* Kleurpagina's. */
.color-product-card .color-product-main {
  min-height: 134px;
  grid-template-columns: var(--pc-image-size) minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 14px;
}

.color-product-card .color-product-copy {
  display: grid;
  min-width: 0;
  grid-column: 2;
  align-content: start;
  gap: 5px;
  padding-top: 1px;
}

.color-product-card .color-product-copy small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.color-product-card .color-product-copy > span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.color-product-card .color-product-copy b {
  color: var(--green-dark);
  font-size: 15px;
  font-weight: 950;
}

/* Gerelateerde producten. */
.seo-related-products .seo-related-card {
  min-height: 128px;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 12px;
}

.seo-related-products .seo-related-thumb {
  position: relative;
  display: grid;
  width: 64px;
  height: 64px;
  min-height: 64px;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #f2f6f9 100%);
  border: 1px solid #d9e4eb;
  border-radius: 11px;
  box-shadow: none;
}

.seo-related-products .seo-related-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: none;
  padding: 7px;
  object-fit: contain;
}

.seo-related-products .seo-related-copy {
  display: grid;
  min-width: 0;
  align-self: start;
  gap: 4px;
}

.seo-related-products .seo-related-copy strong {
  color: var(--blue-dark);
  font-size: 15px;
  line-height: 1.25;
}

.seo-related-products .seo-related-copy .product-card-name {
  min-height: 2.5em;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
}

.seo-related-products .seo-related-copy .product-card-name.is-long-name { font-size: 11.75px; }
.seo-related-products .seo-related-copy .product-card-name.is-very-long-name { font-size: 11px; }

/* Eén echte actierij voor ieder tegeltype. */
.product-card-actions {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: 55px;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--pc-action-gap);
  padding: 9px 12px;
  background: var(--pc-action-surface);
  border-top: 1px solid var(--pc-line);
}

.product-card-actions .product-action-compare,
.product-card-actions .product-action-whatsapp,
.product-card-actions .product-action-view {
  position: static !important;
  inset: auto !important;
  display: inline-flex;
  box-sizing: border-box;
  height: var(--pc-action-height);
  min-height: var(--pc-action-height);
  align-items: center;
  justify-content: center;
  margin: 0;
  line-height: 1;
  text-decoration: none;
  box-shadow: none;
  transition: color .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.product-card-actions .product-action-compare {
  width: var(--pc-compare-width);
  flex: 0 0 var(--pc-compare-width);
  gap: 5px;
  padding: 0 9px;
  overflow: hidden;
  color: #b94b05;
  background: #fff2e8;
  border: 1px solid #d95f0b;
  border-radius: 999px;
  font: inherit;
  font-size: 11.5px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.product-card-actions .product-action-compare:hover:not(:disabled),
.product-card-actions .product-action-compare:focus-visible:not(:disabled) {
  color: #963b03;
  background: #ffe2cc;
  border-color: #b94b05;
  box-shadow: 0 0 0 3px rgba(217, 95, 11, .12);
  outline: 0;
}

.product-card-actions .product-action-compare[aria-pressed="true"] {
  color: #8e3904;
  background: #ffe7d3;
  border-color: #c45108;
}

.product-card-actions .product-action-compare:disabled {
  color: #76523a;
  background: #f8dfcc;
  border-color: #ddb18f;
  cursor: not-allowed;
  opacity: 1;
}

.product-card-actions .product-action-whatsapp {
  width: var(--pc-action-height);
  flex: 0 0 var(--pc-action-height);
  padding: 0;
  color: #087a49;
  background: #eaf8f1;
  border: 1px solid #15975f;
  border-radius: 50%;
  font-size: 0;
}

.product-card-actions .product-action-whatsapp:hover,
.product-card-actions .product-action-whatsapp:focus-visible {
  color: #056b3a;
  background: #d7f1e4;
  border-color: #087a49;
  box-shadow: 0 0 0 3px rgba(21, 151, 95, .12);
  outline: 0;
}

.product-card-actions .product-action-whatsapp svg {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  overflow: visible;
}

.product-card-actions .product-action-whatsapp svg path {
  fill: currentColor !important;
  stroke: none !important;
}

.product-card-actions .product-action-whatsapp > span {
  position: absolute !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.product-card-actions .product-action-view {
  width: var(--pc-view-width);
  flex: 0 0 var(--pc-view-width);
  margin-left: auto;
  padding: 0 10px;
  color: #075ebc;
  background: #eaf4ff;
  border: 1px solid #0b76e8;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 900;
}

.product-card-actions .product-action-view:hover,
.product-card-actions .product-action-view:focus-visible {
  color: #064f9f;
  background: #d8ebff;
  border-color: #075ebc;
  box-shadow: 0 0 0 3px rgba(11, 118, 232, .12);
  outline: 0;
}

.product-card-actions .product-action-compare > span:first-child {
  color: inherit;
  font-size: 14px;
  line-height: 1;
}

.product-card-shell .image-quality-badge,
.color-product-card .image-quality-badge,
.home-popular-card-shell .image-quality-badge,
.seo-related-products .image-quality-badge {
  top: 6px;
  right: 6px;
  min-height: 22px;
  max-width: calc(100% - 12px);
  padding: 3px 7px;
  font-size: 10px !important;
}

@media (max-width: 1040px) {
  .product-list,
  .color-product-grid,
  .home-popular-grid,
  .seo-related-products > div:last-child {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --pc-image-size: 88px;
    --pc-compare-width: 100px;
    --pc-view-width: 74px;
  }

  .product-list,
  .color-product-grid,
  .home-popular-grid,
  .seo-related-products > div:last-child {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .product-card-shell .product-card,
  .color-product-card .color-product-main {
    min-height: 124px;
    gap: 12px;
    padding: 12px;
  }

  .home-popular-card-shell .home-popular-card {
    min-height: 166px;
    gap: 12px;
    padding: 42px 12px 12px;
  }

  .home-popular-card-shell .home-popular-badge {
    top: 10px;
    left: 12px;
  }

  .seo-related-products .seo-related-card {
    min-height: 116px;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .seo-related-products .seo-related-thumb {
    width: 88px;
    height: 88px;
    min-height: 88px;
  }

  .product-card-name {
    font-size: 16px;
  }

  .product-card-name.is-long-name { font-size: 14.5px; }
  .product-card-name.is-very-long-name { font-size: 13.5px; }

  .product-card-actions {
    min-height: 54px;
    padding: 9px 12px;
  }
}

@media (max-width: 360px) {
  :root {
    --pc-compare-width: 94px;
    --pc-view-width: 70px;
    --pc-action-gap: 6px;
  }

  .product-card-actions {
    padding-inline: 10px;
  }

  .product-card-actions .product-action-compare,
  .product-card-actions .product-action-view {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card-shell,
  .color-product-card,
  .home-popular-card-shell,
  .seo-related-card-shell,
  .product-card-actions .product-action-compare,
  .product-card-actions .product-action-whatsapp,
  .product-card-actions .product-action-view {
    transition: none;
  }
}