/* Match the homepage cards without changing the catalog grid or interactions. */
:is(body.category-design #productWedgeGrid, body.product-design #productRecommendedGrid) .product-wedge-card {
  display: flex !important;
  flex-direction: column;
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  gap: 0;
  padding: 14px;
  color: #132235;
  background: #fff;
  border: 1px solid #e2e7ed;
  border-radius: 11px;
  box-shadow: none;
  transition: transform .18s, box-shadow .18s;
}

:is(body.category-design #productWedgeGrid, body.product-design #productRecommendedGrid) .product-wedge-card:is(:hover, :focus-within) {
  border-color: #e2e7ed !important;
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgb(7 17 31 / 7%);
}

:is(body.category-design #productWedgeGrid, body.product-design #productRecommendedGrid) .product-wedge-media {
  display: flex !important;
  flex: 0 0 auto;
  justify-content: center;
  align-items: center;
  min-width: 0;
  height: auto;
  aspect-ratio: 1;
  margin: -3px -3px 14px;
  padding: 0;
  overflow: hidden;
  border-radius: 7px;
  background: #f7f8fa;
}

:is(body.category-design #productWedgeGrid, body.product-design #productRecommendedGrid) .product-wedge-media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  padding: 6px;
  object-fit: contain;
  mix-blend-mode: multiply;
  background: transparent;
  border-radius: 0;
  transform: none;
}

:is(body.category-design #productWedgeGrid, body.product-design #productRecommendedGrid) .product-wedge-body {
  display: flex !important;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: auto;
  gap: 0;
  padding: 0;
}

:is(body.category-design #productWedgeGrid, body.product-design #productRecommendedGrid) .category-product-brand {
  display: block;
  margin: 0 0 7px;
  color: #46586d;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .075em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

:is(body.category-design #productWedgeGrid, body.product-design #productRecommendedGrid) .product-wedge-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  margin: 0 0 12px;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: #132235 !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

:is(body.category-design #productWedgeGrid, body.product-design #productRecommendedGrid) .product-card-stock {
  margin: 0 0 12px;
  padding: 0;
  line-height: 1.4;
}
:is(body.category-design #productWedgeGrid, body.product-design #productRecommendedGrid) .product-card-stock p { margin: 0; }
:is(body.category-design #productWedgeGrid, body.product-design #productRecommendedGrid) .product-card-stock.product-stock-status span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #24744c !important;
  font-size: 12px !important;
  font-weight: 400 !important;
}
:is(body.category-design #productWedgeGrid, body.product-design #productRecommendedGrid) .product-card-stock.product-stock-status span::before {
  content: "";
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
:is(body.category-design #productWedgeGrid, body.product-design #productRecommendedGrid) .product-card-stock.is-out-of-stock span { color: #6a7482 !important; }

:is(body.category-design #productWedgeGrid, body.product-design #productRecommendedGrid) .product-wedge-price-row {
  display: flex !important;
  flex-direction: row;
  justify-content: space-between;
  align-items: end;
  gap: 5px;
  margin-top: auto;
  padding: 0;
}
:is(body.category-design #productWedgeGrid, body.product-design #productRecommendedGrid) .product-wedge-price-row strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -.03em;
  white-space: nowrap;
}
:is(body.category-design #productWedgeGrid, body.product-design #productRecommendedGrid) .category-product-favorite {
  position: absolute;
  top: 19px;
  right: 19px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  min-height: 0;
  padding: 6px;
  background: rgb(255 255 255 / 95%);
  color: #556376;
  border: 1px solid #e2e7ed;
  border-radius: 50%;
  cursor: pointer;
}
:is(body.category-design #productWedgeGrid, body.product-design #productRecommendedGrid) .category-product-favorite svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
:is(body.category-design #productWedgeGrid, body.product-design #productRecommendedGrid) .category-product-favorite[aria-pressed="true"] { color: #086acb; }
:is(body.category-design #productWedgeGrid, body.product-design #productRecommendedGrid) .category-product-favorite[aria-pressed="true"] svg { fill: #dcecff; }
:is(body.category-design #productWedgeGrid, body.product-design #productRecommendedGrid) .category-product-cart {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  flex: 0 0 44px;
  padding: 8px;
  border: 0;
  border-radius: 6px;
  background: #006bd1;
  color: #fff;
  cursor: pointer;
}
:is(body.category-design #productWedgeGrid, body.product-design #productRecommendedGrid) .category-product-cart svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
:is(body.category-design #productWedgeGrid, body.product-design #productRecommendedGrid) .category-product-cart:disabled { background: #e1e6eb; color: #738094; cursor: not-allowed; }
:is(body.category-design #productWedgeGrid, body.product-design #productRecommendedGrid) .category-product-cart[aria-busy="true"] { cursor: progress; }
:is(body.category-design #productWedgeGrid, body.product-design #productRecommendedGrid) :is(a, button):focus-visible { outline: 3px solid #087cf0; outline-offset: 4px; }
body.category-design .category-product-status:empty { display: none; }
body.category-design .category-product-status { margin: 0 0 16px; padding: 12px 16px; color: #14253c; background: #edf5ff; border-radius: 8px; font-size: 14px; }

@media (max-width: 720px) {
  :is(body.category-design #productWedgeGrid, body.product-design #productRecommendedGrid) .product-wedge-card { padding: 10px; border-color: #e4eaf1; border-radius: 9px; }
  :is(body.category-design #productWedgeGrid, body.product-design #productRecommendedGrid) .product-wedge-media { margin: -2px -2px 12px; }
  :is(body.category-design #productWedgeGrid, body.product-design #productRecommendedGrid) .category-product-brand { font-size: 10px; }
  :is(body.category-design #productWedgeGrid, body.product-design #productRecommendedGrid) .product-wedge-title { font-size: 13px; height: 37px; min-height: 37px; max-height: 37px; }
  :is(body.category-design #productWedgeGrid, body.product-design #productRecommendedGrid) .product-wedge-price-row strong { font-size: clamp(17px, 5vw, 22px); }
  :is(body.category-design #productWedgeGrid, body.product-design #productRecommendedGrid) .category-product-favorite { top: 14px; right: 14px; }
}

@media (max-width: 360px) {
  :is(body.category-design #productWedgeGrid, body.product-design #productRecommendedGrid) .product-wedge-price-row { flex-wrap: wrap; }
  :is(body.category-design #productWedgeGrid, body.product-design #productRecommendedGrid) .category-product-cart { margin-left: auto; }
}

@media (pointer: coarse) {
  :is(body.category-design #productWedgeGrid, body.product-design #productRecommendedGrid) .category-product-favorite { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  :is(body.category-design #productWedgeGrid, body.product-design #productRecommendedGrid) .product-wedge-card { transition: none; }
}
