.products .product { position: relative; }

.tk-favorite-button {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(20, 38, 67, .14);
  border-radius: 999px;
  color: #17223b;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  height: 42px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: transform .15s ease, box-shadow .15s ease, color .15s ease;
  width: 42px;
}

.tk-favorite-button span { font-size: 27px; transform: translateY(-1px); }
.tk-favorite-button:hover { box-shadow: 0 5px 18px rgba(20, 38, 67, .18); transform: translateY(-1px); }
.tk-favorite-button.is-favorite { color: #5686b7; }
.tk-favorite-button:focus-visible { outline: 3px solid #5686b7; outline-offset: 2px; }

.tk-favorite-loop { background: transparent; border: 0; bottom: 8px; box-shadow: none; height: 32px; position: absolute; right: 6px; top: auto; width: 32px; z-index: 5; }
.tk-favorite-loop span { color: #5686b7; font-size: 24px !important; line-height: 1; }
.tk-favorite-loop:hover { box-shadow: none; }
.tk-favorite-single { align-items: center; background: #f7f9fb; border-radius: 10px; display: flex; gap: 10px; margin: 12px 0 20px; padding: 8px 13px 8px 8px; width: fit-content; }
.tk-favorite-single__label { font-size: 15px; font-weight: 600; line-height: 1.2; }
.tk-favorite-single--below-cart { background: transparent; border: 0; border-radius: 0; clear: both; color: #5686b7; cursor: pointer; gap: 7px; margin: 10px 0 22px; padding: 0; }
.tk-favorite-single--below-cart .tk-favorite-button { background: transparent; border: 0; box-shadow: none; color: #5686b7; height: 30px; width: 30px; }
.tk-favorite-single--below-cart .tk-favorite-button span { font-size: 25px; }
.tk-favorite-single--below-cart .tk-favorite-single__label { color: #415b76; font-size: 14px; }

.tk-favorites-link {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(20, 38, 67, .15);
  border-radius: 999px;
  bottom: 20px;
  box-shadow: 0 7px 24px rgba(20, 38, 67, .18);
  color: #17223b;
  display: flex;
  gap: 8px;
  left: 20px;
  padding: 10px 14px;
  position: fixed;
  text-decoration: none;
  z-index: 999;
}

.tk-favorites-link > span:first-child { font-size: 25px; line-height: 1; }
.tk-favorites-count { align-items: center; background: #5686b7; border-radius: 999px; color: #fff; display: inline-flex; font-size: 12px; height: 22px; justify-content: center; min-width: 22px; padding: 0 5px; }

.tk-favorites-grid { display: grid; gap: 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tk-favorite-card { background: #fff; border: 1px solid rgba(20, 38, 67, .1); border-radius: 12px; overflow: hidden; }
.tk-favorite-card__image { aspect-ratio: 1 / 1; display: block; overflow: hidden; }
.tk-favorite-card__image img { height: 100%; object-fit: cover; width: 100%; }
.tk-favorite-card__body { padding: 16px; }
.tk-favorite-card h2 { font-size: 17px; margin: 0 0 9px; }
.tk-favorite-card .price { font-weight: 700; }
.tk-favorite-card__actions { align-items: center; display: flex; gap: 10px; justify-content: space-between; }
.tk-favorite-card__primary { flex: 1; text-align: center; }
.tk-favorites-empty { align-items: flex-start; display: flex; flex-direction: column; gap: 12px; padding: 25px 0; }
.tk-favorites-empty p { font-size: 22px; font-weight: 700; margin: 0; }
.tk-favorites-empty small { font-size: 16px; }

@media (max-width: 1100px) {
  .tk-favorites-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .tk-favorites-grid { gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk-favorites-link { display: none; }
  .storefront-handheld-footer-bar ul.columns-4 li { width: 25%; }
  .storefront-handheld-footer-bar li.favorites { position: relative; }
  .storefront-handheld-footer-bar li.favorites > a.tk-mobile-favorites::before { color: #fff; content: "♡"; font-family: Arial, sans-serif; font-size: 26px; font-weight: 400; }
  .storefront-handheld-footer-bar li.favorites > a.tk-mobile-favorites.has-favorites::before { content: "♥"; font-size: 24px; }
  .tk-mobile-favorites .tk-favorites-count { background: #fff; color: #5686b7; height: 20px; min-width: 20px; padding: 0 4px; position: absolute; right: 20%; text-indent: 0; top: 4px; z-index: 2; }
  .tk-favorite-loop { bottom: 7px; height: 30px; right: 5px; width: 30px; }
  .tk-favorite-loop span { font-size: 22px !important; }
}

@media (max-width: 420px) {
  .tk-favorites-grid { grid-template-columns: 1fr; }
}
