.ap-products { margin: 24px 0; font-family: inherit; color: #111; }
.ap-products, .ap-products * { box-sizing: border-box; }
.ap-products .ap-products__grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid #eee; border-left: 1px solid #eee; }
.ap-products .ap-products__card { display: flex; flex-direction: column; min-width: 0; padding: 15px 16px 20px; text-align: center; border-right: 1px solid #eee; border-bottom: 1px solid #eee; background: #fff; }
.ap-products .ap-products__photo { display: flex; align-items: center; justify-content: center; height: 140px; margin: 0 0 10px; text-decoration: none; }
.ap-products .ap-products__photo img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; margin: 0}
.ap-products .ap-products__placeholder { color: #999; font-size: 12px; }
.ap-products .ap-products__name { display: block; color: #111; font-size: 13px; line-height: 1.4; text-decoration: none; }
.ap-products .ap-products__name:hover { color: #7251a0; }
.ap-products .ap-products__rating { position: relative; align-self: center; width: 75px; height: 20px; line-height: 20px; margin-top: 3px; font-size: 15px; letter-spacing: 0; text-align: left; white-space: nowrap; }
.ap-products .ap-products__stars { color: #ddd; }
.ap-products .ap-products__stars-fill { position: absolute; left: 0; top: 0; overflow: hidden; color: #ffb800; }
.ap-products .ap-products__meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 8px; color: #999; font-size: 10px; line-height: 1.4; }
.ap-products .ap-products__available { color: #27ae16; font-size: 14px; }
.ap-products .ap-products__unavailable { color: #aaa; font-size: 12px; }
.ap-products .ap-products__price { display: block; margin-top: auto; padding-top: 24px; font-size: 16px; font-weight: 700; line-height: 1.4; }
.ap-products .ap-products__status { margin: 8px 0; font-size: 13px; color: #777; }
.ap-products .ap-products__purchase { padding-top: 32px; }
.ap-products .ap-products__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.ap-products .ap-products__quantity { display: flex; align-items: center; height: 40px; width: 92px; background: #f3f3f5; border-radius: 2px; }
.ap-products .ap-products__quantity-button { display: flex; align-items: center; justify-content: center; flex: 0 0 28px; height: 40px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #777; font: 700 20px/1 Arial,sans-serif; cursor: pointer; }
.ap-products .ap-products__quantity-button:disabled { opacity: .5; cursor: default; }
.ap-products .ap-products__quantity-input { min-width: 0; width: 36px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #666; font: 13px/40px Arial,sans-serif; text-align: center; appearance: textfield; -moz-appearance: textfield; }
.ap-products .ap-products__quantity-input::-webkit-inner-spin-button,
.ap-products .ap-products__quantity-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ap-products .ap-products__button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 10px; border: 1px solid #884495; border-radius: 2px; background: #884495; color: #fff; font: 700 13px/20px Arial,sans-serif; text-decoration: none; cursor: pointer; }
.ap-products .ap-products__button:hover { background: #753981; border-color: #753981; color: #fff; }
.ap-products .ap-products__button:disabled { opacity: .55; cursor: default; }
.ap-products .ap-products__button:focus-visible,
.ap-products .ap-products__quantity-button:focus-visible,
.ap-products .ap-products__quantity-input:focus-visible { outline: 2px solid #884495; outline-offset: 3px; }
.ap-products .ap-products__basket-message { margin: 10px 0 0; color: #666; font-size: 12px; line-height: 1.4; }
.ap-products .ap-products__basket-link { display: inline-block; margin-top: 5px; color: #884495; font-size: 12px; text-decoration: underline; }
.ap-products [hidden] { display: none !important; }
@media (max-width: 767px) {
  .ap-products .ap-products__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ap-products .ap-products__card { padding: 12px 10px 16px; }
  .ap-products .ap-products__photo { height: 125px; }
  .ap-products .ap-products__price { font-size: 14px; }
}
