/* TUN'S WOODS V13 — product-card alignment, desktop/tablet/phone */
/* Only storefront cards: do not change order totals, product modal, flash or coupon logic. */
#productGrid.product-grid { align-items:stretch; }
#productGrid .product-card {
  display:flex;
  flex-direction:column;
  height:100%;
  min-width:0;
  overflow:hidden;
}
#productGrid .product-image { width:100%; flex:none; aspect-ratio:1 / 1; }
#productGrid .product-image img { display:block; width:100%; height:100%; object-fit:contain; }
#productGrid .product-info {
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  min-height:0;
  min-width:0;
  padding:11px 2px 2px;
}
#productGrid .product-mini {
  display:block;
  height:17px;
  line-height:17px;
  margin:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#productGrid .product-name {
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-clamp:2;
  height:43px;
  min-height:43px;
  max-height:43px;
  padding:0;
  margin:5px 0 7px;
  line-height:21px;
  font-size:12px;
  overflow:hidden;
  overflow-wrap:anywhere;
  text-align:left;
}
#productGrid .pc-feature-slot {
  flex:none;
  height:48px;
  min-height:48px;
  overflow:hidden;
  display:flex;
  align-content:flex-start;
  align-items:flex-start;
  flex-wrap:wrap;
  gap:3px;
}
#productGrid .pc-feature-slot .pe-card-tags {
  display:inline-block;
  max-width:100%;
  min-width:0;
  margin:0;
  padding:3px 6px;
  line-height:16px;
  font-size:9px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#productGrid .pc-offer-slot {
  flex:none;
  height:52px;
  min-height:52px;
  overflow:hidden;
}
#productGrid .pc-offer-slot .od-card-ribbons {
  display:flex;
  flex-direction:column;
  flex-wrap:nowrap;
  gap:4px;
  align-items:flex-start;
  margin:0;
  padding:0;
  height:100%;
  overflow:hidden;
}
#productGrid .pc-offer-slot .od-chip {
  display:block;
  flex:none;
  box-sizing:border-box;
  width:max-content;
  max-width:100%;
  height:23px;
  min-height:23px;
  line-height:13px;
  font-size:9px;
  padding:4px 7px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#productGrid .pc-rating-slot {
  flex:none;
  height:29px;
  min-height:29px;
  overflow:hidden;
  display:flex;
  align-items:center;
}
#productGrid .pc-rating-slot .od-rating {
  width:100%;
  min-width:0;
  margin:0;
  display:flex;
  flex-wrap:nowrap;
  gap:4px;
  overflow:hidden;
  white-space:nowrap;
}
#productGrid .pc-rating-slot .od-rating > * { flex-shrink:0; }
#productGrid .pc-rating-slot .od-rating span:last-child { text-overflow:ellipsis; overflow:hidden; min-width:0; }
#productGrid .pc-rating-slot .od-stars { font-size:14px; }
#productGrid .price-row {
  flex:1 1 auto;
  min-height:41px;
  display:flex;
  align-items:flex-end;
  align-content:flex-end;
  flex-wrap:wrap;
  gap:2px 8px;
  overflow:hidden;
  padding-bottom:5px;
}
#productGrid .price-row .price { line-height:1.18; white-space:nowrap; font-variant-numeric:tabular-nums; }
#productGrid .price-row .oldprice { line-height:1.18; white-space:nowrap; }
#productGrid .card-bottom {
  flex:none;
  width:100%;
  margin:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) 38px;
  gap:6px;
  align-items:stretch;
}
#productGrid .card-bottom .add-cart,
#productGrid .card-bottom .go-shop {
  box-sizing:border-box;
  display:flex;
  justify-content:center;
  align-items:center;
  width:100%;
  min-width:0;
  min-height:40px;
  height:40px;
  padding:0 5px;
  border-radius:6px;
  line-height:1.15;
  text-align:center;
  white-space:nowrap;
}
#productGrid .card-bottom .add-cart { font-size:10px; }
#productGrid .card-bottom .go-shop { font-size:15px; }
@media(max-width:600px) {
  #productGrid .product-info { padding:9px 1px 1px; }
  #productGrid .product-name { height:39px;min-height:39px;max-height:39px;font-size:11px;line-height:19px;margin:4px 0 6px; }
  #productGrid .pc-feature-slot { height:44px;min-height:44px; }
  #productGrid .pc-feature-slot .pe-card-tags { font-size:8.5px;line-height:14px; }
  #productGrid .pc-offer-slot { height:50px;min-height:50px; }
  #productGrid .pc-rating-slot { height:26px;min-height:26px; }
  #productGrid .pc-rating-slot .od-stars { font-size:12px; }
  #productGrid .price-row { min-height:41px;gap:2px 5px; }
  #productGrid .price-row .price { font-size:13px; }
  #productGrid .card-bottom { grid-template-columns:minmax(0,1fr) 33px;gap:5px; }
  #productGrid .card-bottom .add-cart,#productGrid .card-bottom .go-shop { min-height:38px;height:38px; }
  #productGrid .card-bottom .add-cart { font-size:9px; }
  #productGrid .card-bottom .go-shop { font-size:13px; }
}
@media(max-width:350px) {
  #productGrid .product-name { font-size:10.5px; }
  #productGrid .price-row .price { font-size:12px; }
  #productGrid .card-bottom .add-cart { font-size:8.5px; }
}
/* Flash deal teaser cards also align names, price, countdown across the row. */
.v9-flash-list { align-items:stretch; }
.v9-flash-card { display:flex;flex-direction:column;height:100%; }
.v9-flash-card-body { display:flex;flex-direction:column;flex:1 1 auto;min-width:0; }
.v9-flash-card-body > b { display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.4;height:38px;min-height:38px;max-height:38px;overflow-wrap:anywhere; }
.v9-flash-cost { margin-top:auto;min-height:26px; }
.v9-timer { flex:none; }
@media(max-width:700px) {.v9-flash-card { height:auto; }}

/* One-line flash countdown sits inside image, so no card grows vertically. */
#productGrid .product-image .pc-flash-countdown.v9-timer {
  position:absolute;
  bottom:8px;
  left:7px;
  right:7px;
  z-index:2;
  display:flex;
  gap:5px;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  width:calc(100% - 14px);
  height:26px;
  min-height:26px;
  margin:0;
  padding:3px 5px;
  font-size:10px;
  line-height:1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  background:#fff6ed;
  border:1px solid #dfab88;
  color:#964222;
  box-shadow:0 2px 8px #00000012;
}
#productGrid .product-image .pc-flash-countdown b{font-size:11px;white-space:nowrap;font-variant-numeric:tabular-nums;letter-spacing:0}
@media(max-width:600px) {
 #productGrid .product-image .pc-flash-countdown.v9-timer{height:24px;min-height:24px;font-size:9px;padding:2px 3px;}
 #productGrid .product-image .pc-flash-countdown b{font-size:10px;}
}
