/* Product grids: keep Journal's list and slider behavior intact. */
.product-grid .product-thumb {
  background: #fff;
  border: 0;
  box-shadow: none;
}
.product-grid .product-thumb .image {
  position: relative;
}
.product-grid .product-thumb .image > .name {
  display: none;
}
.product-grid .product-thumb .product-img img {
  width: 100%;
  height: auto;
}
.product-grid .product-thumb .product-labels {
  top: 8px;
  right: 8px;
  left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: auto;
  max-width: calc(100% - 16px);
}
.product-grid .product-thumb .product-labels .product-label {
  max-width: 100%;
}
.ay-card-wishlist {
  display: none;
}
.product-grid .ay-card-wishlist {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 14px rgba(0, 0, 0, .12);
  color: #111;
  cursor: pointer;
}
.product-grid .ay-card-wishlist svg {
  display: block;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.product-grid .ay-card-wishlist:focus-visible {
  outline: 2px solid #d66c02;
  outline-offset: 2px;
}
.product-grid .product-thumb .wish-group .btn-wishlist {
  display: none;
}
.product-list .ay-card-wishlist,
.product-list .ay-card-brand,
.product-list .ay-card-sale-percent,
.product-list .ay-card-name-image-setting {
  display: none;
}
.product-grid .product-thumb .caption {
  align-items: stretch;
  text-align: left;
  padding: 12px 0 0;
}
.product-grid .ay-card-brand {
  margin-bottom: 8px;
  color: #626262;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.product-grid .product-thumb .caption .name,
.product-grid .product-thumb .caption .name a {
  display: block;
  text-align: left;
  color: #666;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.product-grid .product-thumb .caption .no-rating {
  display: none;
}
.product-grid .product-thumb .price {
  margin-top: 10px;
  text-align: left;
}
.product-grid .product-thumb .price > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 5px 10px;
}
.product-grid .product-thumb .price .price-old {
  order: -1;
  flex: 0 0 100%;
  color: #191919;
  font-size: 15px;
  font-weight: 700;
  text-decoration: line-through;
}
.product-grid .product-thumb .price .price-new,
.product-grid .product-thumb .price .price-normal {
  color: #c85d05;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}
.product-grid .product-thumb .price .price-new {
  order: 0;
  margin: 0;
}
.product-grid .product-thumb .price .price-normal {
  color: #191919;
}
.product-grid .ay-card-sale-percent {
  order: 1;
  border-left: 1px solid #ddd;
  padding-left: 10px;
  color: #c85d05;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}
.product-grid .product-thumb .promotion-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin-top: 8px;
  color: #c85d05;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
}
.product-grid .product-thumb .promotion-label .label-name,
.product-grid .product-thumb .promotion-label .label-price {
  font-weight: 700;
}
@media (max-width: 767px) {
  .product-grid:not(.swiper-wrapper) > .product-layout {
    box-sizing: border-box;
    width: 50% !important;
    flex-basis: 50% !important;
    max-width: 50%;
  }
  .product-grid .product-thumb .caption {
    padding-top: 10px;
  }
  .product-grid .ay-card-brand {
    font-size: 14px;
  }
  .product-grid .product-thumb .caption .name,
  .product-grid .product-thumb .caption .name a {
    font-size: 13px;
  }
  .product-grid .product-thumb .price > div {
    column-gap: 5px;
  }
  .product-grid .product-thumb .price .price-new,
  .product-grid .product-thumb .price .price-normal {
    font-size: 15px;
  }
  .product-grid .ay-card-sale-percent {
    padding-left: 5px;
    font-size: 10px;
  }
}

/* Softer card hierarchy, based on the approved product-card concept. */
.product-grid .product-thumb .image {
  border-radius: 8px;
}
.product-grid .product-thumb .caption {
  padding: 14px 2px 4px;
}
.product-grid .ay-card-brand {
  margin-bottom: 5px;
  color: #27292a;
  font-size: 15px;
  font-weight: 700;
}
.product-grid .product-thumb .caption .name,
.product-grid .product-thumb .caption .name a {
  color: #686a6b;
  font-size: 13px;
  line-height: 1.4;
}
.product-grid .product-thumb .rating:not(.no-rating) {
  position: static;
  margin: 8px 0 0;
}
.product-grid .product-thumb .rating:not(.no-rating) .rating-stars {
  position: static;
  transform: none;
}
.product-grid .product-thumb .rating-stars .fa-stack {
  width: 1em;
  height: 1em;
  line-height: 1em;
  font-size: 11px;
}
.product-grid .product-thumb .product-promo-badge-simple {
  align-self: flex-start;
  max-width: 100%;
  margin: 9px 0 0;
  padding: 5px 8px;
  border: 0;
  border-radius: 6px;
  background: #e9f7f0;
  color: #2b9b70;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.product-grid .product-thumb .price {
  margin-top: 12px;
}
.product-grid .product-thumb .price .price-old {
  color: #777;
  font-size: 13px;
  font-weight: 400;
}
.product-grid .product-thumb .price .price-new,
.product-grid .product-thumb .price .price-normal {
  color: #27292a;
  font-size: 18px;
}
.product-grid .product-thumb .promotion-label {
  align-items: baseline;
  justify-content: space-between;
  min-width: 0;
  margin-top: 11px;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: #fbf5eb;
  color: #68635d;
  font-size: 11px;
  line-height: 1.3;
}
.product-grid .product-thumb .promotion-label .label-name {
  color: #68635d;
  font-size: inherit;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.product-grid .product-thumb .promotion-label .label-price {
  color: #d66c02;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
@media (max-width: 767px) {
  .product-grid .product-thumb .caption {
    padding: 11px 1px 3px;
  }
  .product-grid .ay-card-brand {
    font-size: 14px;
  }
  .product-grid .product-thumb .caption .name,
  .product-grid .product-thumb .caption .name a {
    font-size: 12px;
  }
  .product-grid .product-thumb .product-promo-badge-simple {
    margin-top: 8px;
    padding: 4px 7px;
    font-size: 9px;
  }
  .product-grid .product-thumb .price {
    margin-top: 10px;
  }
  .product-grid .product-thumb .price .price-new,
  .product-grid .product-thumb .price .price-normal {
    font-size: 15px;
  }
  .product-grid .product-thumb .promotion-label {
    gap: 3px 6px;
    margin-top: 9px;
    padding: 7px 8px;
    font-size: 10px;
  }
  .product-grid .product-thumb .promotion-label .label-price {
    font-size: 13px;
  }
}

/* Make the cart offer the primary price only when it is available. */
.product-grid .product-thumb .price.ay-has-cart-price .price-normal,
.product-grid .product-thumb .price.ay-has-cart-price .price-new {
  color: #686a6b;
  font-size: 14px;
  font-weight: 500;
}
.product-grid .product-thumb .promotion-label .label-price {
  font-size: 18px;
  line-height: 1.2;
}
@media (max-width: 767px) {
  .product-grid .product-thumb .price.ay-has-cart-price .price-normal,
  .product-grid .product-thumb .price.ay-has-cart-price .price-new {
    font-size: 12px;
  }
  .product-grid .product-thumb .promotion-label .label-price {
    font-size: 16px;
  }
}

/* Keep the product information and price blocks aligned across each grid row. */
.ay-card-colors { display: none; }
.product-grid .product-thumb > .caption.label-name { display: none; }
.product-grid .ay-card-colors {
  display: block;
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 4;
  padding: 5px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .94);
  color: #555;
  font-size: 11px;
  line-height: 1.2;
}
.product-grid .ay-card-brand {
  min-height: 1.3em;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-grid .ay-card-name {
  flex: none;
  height: 2.8em;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.4;
}
.product-grid .product-thumb .caption .ay-card-name .name {
  margin: 0;
}
.product-grid .product-thumb .caption .name a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-grid .ay-card-price-section {
  display: flex;
  flex-direction: column;
  margin-top: auto;
}
.product-grid .product-thumb .ay-card-price-section .price {
  min-height: 56px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-top: 12px;
}
.product-grid .ay-cart-offer-slot {
  min-height: 73px;
}
.product-grid .product-thumb .promotion-label {
  box-sizing: border-box;
  min-height: 62px;
  align-content: center;
}
@media (max-width: 767px) {
  .product-grid .ay-card-colors { font-size: 10px; }
  .product-grid .ay-card-name { font-size: 12px; }
  .product-grid .product-thumb .ay-card-price-section .price {
    min-height: 52px;
    margin-top: 10px;
  }
  .product-grid .ay-cart-offer-slot { min-height: 69px; }
  .product-grid .product-thumb .promotion-label { min-height: 60px; }
}
@supports selector(.product-grid:has(.promotion-label)) {
  .product-grid .ay-cart-offer-slot { min-height: 0; }
  .product-grid:has(.promotion-label) .ay-cart-offer-slot { min-height: 73px; }
  @media (max-width: 767px) {
    .product-grid:has(.promotion-label) .ay-cart-offer-slot { min-height: 69px; }
  }
}
.product-grid .product-thumb .caption .buttons-wrapper { margin-top: 0; }
