/* Product card — one per loop item. Shared by worktops (per metre) and doors (per door). */
.wtd-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;list-style:none;margin:0;padding:0}
@media (min-width:640px){.wtd-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}}
@media (min-width:1100px){.wtd-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.wtd-grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}}
.wtd-card{position:relative;display:flex;flex-direction:column;height:100%;background:#fff;border:1px solid var(--wtd-color-line-soft);transition:border-color var(--wtd-motion-fast)}
.wtd-card:hover,.wtd-card:focus-within{border-color:var(--wtd-color-navy)}
/* White behind the product, not sand. Nick, 5 Nov: "I think all of those
   would be better on a white background with a very light key line around
   the frame." Nearly every photograph here is cut out on white already, so
   a sand panel behind it showed as two cream bands above and below the
   sink, which read as a badly cropped image rather than as a background.
   The card's own border closes three sides of the frame; this closes the
   fourth, so the picture is a framed thing rather than bleeding into the
   name under it. */
.wtd-card__media{position:relative;display:block;aspect-ratio:1/1;overflow:hidden;background:#fff;border-bottom:1px solid var(--wtd-color-line-soft)}
.wtd-card__img{width:100%;height:100%;object-fit:cover;transition:transform var(--wtd-motion-slow)}
.wtd-card:hover .wtd-card__img{transform:scale(1.04)}
.wtd-card__media--placeholder{display:grid;place-items:center;color:var(--wtd-color-tan-700)}
.wtd-card__media--placeholder svg{width:38%;height:auto;opacity:.55}
.wtd-card__media--placeholder span{position:absolute;bottom:10px;left:0;right:0;text-align:center;font-family:var(--wtd-font-display);font-size:var(--wtd-text-2xs);letter-spacing:var(--wtd-tracking-ui);text-transform:uppercase;color:var(--wtd-color-muted)}
.wtd-card__body{display:flex;flex-direction:column;flex:1;gap:6px;padding:12px 12px 14px;text-align:center}
.wtd-card__brand{font-family:var(--wtd-font-display);font-size:var(--wtd-text-2xs);font-weight:var(--wtd-weight-semibold);letter-spacing:var(--wtd-tracking-label);text-transform:uppercase;color:var(--wtd-color-muted);line-height:1.3}
.wtd-card__title{font-family:var(--wtd-font-display);font-size:var(--wtd-text-sm);font-weight:var(--wtd-weight-bold);letter-spacing:.02em;text-transform:uppercase;color:var(--wtd-color-ink);line-height:1.3;margin:0}
@media (min-width:900px){.wtd-card__title{font-size:14px}}
/* clamp long names to 3 lines; full name stays in the DOM + link title for SR / hover */
.wtd-card__title a{color:inherit;text-decoration:none;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.wtd-card__title a::after{content:"";position:absolute;inset:0;z-index:1} /* whole card clickable; actions sit above */
.wtd-card__price{margin-top:auto;padding-top:4px}
.wtd-card__price .wtd-price{justify-content:center}
.wtd-card__stock{display:flex;justify-content:center}
.wtd-card__actions{position:relative;z-index:2;display:flex;flex-direction:column;gap:8px;padding:0 12px 12px}
/* Not every product has a free sample behind it, and the price pins to the
   bottom of the body, so a card with no sample toggle pulled its price 46px
   lower than its neighbours and a row of four showed four price baselines.
   An empty actions row reserves the height the toggle would have occupied.
   46px is the measured height of the rendered toggle on this stylesheet, not
   a guess; it is a token so the two stay together if the toggle changes. */
.wtd-card__actions--empty{box-sizing:content-box;min-height:var(--wtd-card-sample-h)}
.wtd-card--oos .wtd-card__img{filter:grayscale(.6);opacity:.75}
.wtd-card--oos .wtd-price__now{color:var(--wtd-color-muted)}
.wtd-card .wtd-sample{position:relative;z-index:2}
