.wdc-products {
  --wdc-columns: 3;
  --wdc-footer: #205f39;
  display: grid;
  grid-template-columns: repeat(var(--wdc-columns), minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  margin: 28px auto;
}

.wdc-products .wdc-product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e6e9e7;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(24, 35, 28, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.wdc-products .wdc-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(24, 35, 28, .16);
}

.wdc-products .wdc-product-card__link {
  display: flex;
  height: 100%;
  flex-direction: column;
  color: inherit;
  text-decoration: none !important;
}

.wdc-products .wdc-product-card__link:focus-visible {
  outline: 3px solid rgba(41, 100, 54, .5);
  outline-offset: 3px;
}

.wdc-products .wdc-product-card__image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.52 / 1;
  overflow: hidden;
  background: #f0f2f0;
}

.wdc-products .wdc-product-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.wdc-products .wdc-product-card:hover .wdc-product-card__image img {
  transform: scale(1.035);
}

.wdc-products .wdc-product-card__badge {
  position: absolute;
  top: 11px;
  left: 11px;
  padding: 6px 10px;
  border-radius: 3px;
  background: #47534a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
}

.wdc-products .wdc-product-card__badge.is-sale {
  background: #a84032;
}

.wdc-products .wdc-product-card__body {
  display: flex;
  min-height: 160px;
  flex: 1;
  flex-direction: column;
  padding: 0;
  background: #fff;
}

.wdc-products .wdc-product-card__content {
  display: flex;
  min-height: 160px;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 20px 16px 17px;
  text-align: center;
}

.wdc-products .wdc-product-card__content h3 {
  margin: 0 0 15px;
  color: #25292b;
  font-size: clamp(19px, 1.7vw, 23px);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.25;
}

.wdc-products .wdc-product-card__description {
  display: grid;
  gap: 6px;
  margin: 0;
  color: #74797c;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
}

.wdc-products .wdc-product-card__description p {
  margin: 0;
}

.wdc-products .wdc-product-card__footer {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 0 17px 0 28px;
  background: var(--wdc-footer);
  color: #fff;
}

.wdc-products .wdc-product-card__price {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.wdc-products .wdc-product-card__price .woocommerce-Price-currencySymbol {
  font-size: inherit;
}

.wdc-products .wdc-product-card__price del {
  margin-right: 5px;
  color: rgba(255, 255, 255, .67);
  font-size: 12px;
  font-weight: 400;
}

.wdc-products .wdc-product-card__price ins {
  color: #fff;
  text-decoration: none;
}

.wdc-products .wdc-product-card__cta {
  display: grid;
  width: 30px;
  height: 34px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 4px;
  color: #fff;
  transition: transform .18s ease, opacity .18s ease;
}

.wdc-products .wdc-product-card__cta span {
  font-size: 23px;
  font-weight: 600;
  line-height: 1;
}

.wdc-products .wdc-product-card:hover .wdc-product-card__cta {
  transform: translateX(3px);
  opacity: .9;
}

.wdc-products .wdc-product-card.is-unavailable {
  background: #fbfbfb;
}

.wdc-products .wdc-product-card.is-unavailable .wdc-product-card__image img {
  filter: grayscale(.35);
  opacity: .65;
}

.wdc-products .wdc-product-card.is-unavailable .wdc-product-card__body {
  min-height: 160px;
}

.wdc-products .wdc-product-card.is-unavailable .wdc-product-card__footer {
  background: #747c76;
}

.wdc-notice {
  margin: 18px 0;
  padding: 15px 18px;
  border: 1px solid #f0d9a9;
  border-left: 4px solid #d49a37;
  border-radius: 6px;
  background: #fff9eb;
  color: #493716;
}

@media (max-width: 1000px) {
  .wdc-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}

@media (max-width: 620px) {
  .wdc-products { grid-template-columns: 1fr; gap: 16px; margin: 20px auto; }
  .wdc-products .wdc-product-card__image { aspect-ratio: 1.52 / 1; }
  .wdc-products .wdc-product-card__content { min-height: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  .wdc-products .wdc-product-card,
  .wdc-products .wdc-product-card__image img,
  .wdc-products .wdc-product-card__cta { transition: none; }
}
