/* Home Update — Customer favourites. Scoped to .hk-hu-favs; reuses theme fonts (FreightBig Pro / Now). */
.hk-hu-favs {
  --hk-font-headline: "FreightBig Pro", Georgia, "Times New Roman", serif;
  --hk-font-body:
    "Now", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --hk-navy: #09334a;
  --hk-gold: #8c752c;
  --hk-beige: #edeae3;
  --hk-border: #d7dcdf;
  --hk-card: clamp(220px, 16.47vw, 316px);
  --hk-edge: clamp(16px, 2.083vw, 40px);
}
.hk-hu-favs,
.hk-hu-favs * {
  box-sizing: border-box;
}
/* Header sits on the 1295px grid; the card row bleeds to the viewport edges */
.hk-hu-favs {
  display: grid;
  grid-template-columns: minmax(16px, 1fr) minmax(0, 1295px) minmax(16px, 1fr);
  grid-template-areas:
    ". head ."
    "list list list";
  row-gap: 30px;
  padding-top: 30px;
  padding-bottom: 30px;
  background: #fff;
  overflow: hidden;
  scroll-margin-top: 90px;
}

/* Header */
.hk-hu-favs__head {
  grid-area: head;
  align-self: center;
  min-width: 0;
  padding-right: 360px; /* room for the controls on the same row */
}
.hk-hu-favs__eyebrow {
  display: block;
  font-family: var(--hk-font-body);
  font-weight: 500;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hk-gold);
  margin: 0 0 10px;
}
.hk-hu-favs__title {
  font-family: var(--hk-font-headline) !important;
  font-weight: 600 !important;
  font-size: clamp(26px, 2.1875vw, 42px) !important;
  line-height: 1.25 !important;
  text-transform: none !important;
  color: var(--hk-navy) !important;
  margin: 0 !important;
}

/* Arrows + "All featured" — top right of the header */
.hk-hu-favs__controls {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hk-hu-favs__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 45px;
  width: 45px;
  height: 45px;
  padding: 0;
  color: var(--hk-navy);
  background: var(--hk-beige);
  border: 1px solid rgba(9, 51, 74, 0.1);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.hk-hu-favs__arrow:hover,
.hk-hu-favs__arrow:focus {
  background: var(--hk-navy);
  color: #fff;
}
.hk-hu-favs__arrow--prev svg {
  transform: rotate(180deg);
}
.hk-hu-favs__arrow[disabled] {
  opacity: 0.4;
  cursor: default;
  background: var(--hk-beige);
  color: var(--hk-navy);
}
.hk-hu-favs__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-left: 30px;
  padding: 14px 20px;
  font-family: var(--hk-font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
  white-space: nowrap;
  color: #fff;
  background: var(--hk-navy);
  border: 1px solid var(--hk-navy);
  border-radius: 3px;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.hk-hu-favs__link:hover,
.hk-hu-favs__link:focus {
  background: var(--hk-gold);
  border-color: var(--hk-gold);
  color: #fff;
  text-decoration: none;
}

/* Card row — native horizontal scroll, arrows scroll one card */
.hk-hu-favs__list {
  grid-area: list;
  display: flex;
  align-items: stretch;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 1px var(--hk-edge);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hk-hu-favs__list::-webkit-scrollbar {
  display: none;
}
.hk-hu-favs__item {
  display: flex;
  flex-direction: column;
  flex: 0 0 var(--hk-card);
  width: var(--hk-card);
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid var(--hk-border);
  border-radius: 2px;
}
.hk-hu-favs__item::before {
  display: none;
}
/* Ratio lives on the img: iOS Safari can't resolve height:100% inside an aspect-ratio box */
.hk-hu-favs__media {
  display: block;
  padding: clamp(12px, 1.041vw, 20px);
}
.hk-hu-favs__media img,
.hk-hu-favs__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.hk-hu-favs__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 15px;
  padding: 10px clamp(15px, 1.302vw, 25px) clamp(15px, 1.302vw, 25px);
}
.hk-hu-favs__info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hk-hu-favs__name {
  font-family: var(--hk-font-body) !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
  text-transform: none !important;
  margin: 0 !important;
}
.hk-hu-favs__name a {
  color: var(--hk-navy);
  text-decoration: none;
  transition: color 0.2s ease;
}
.hk-hu-favs__name a:hover {
  color: var(--hk-gold);
}
.hk-hu-favs__desc {
  font-family: var(--hk-font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--hk-navy);
  margin: 0;
}
.hk-hu-favs__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--hk-font-body);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  color: var(--hk-navy);
}
.hk-hu-favs__price ins {
  text-decoration: none;
}
.hk-hu-favs__price del {
  font-weight: 400;
  color: rgba(9, 51, 74, 0.6);
}

@media (max-width: 767px) {
  .hk-hu-favs {
    --hk-card: calc((100vw - 30px) / 1.85);
    --hk-edge: 10px;
    grid-template-columns: 10px minmax(0, 1fr) 10px;
    grid-template-areas:
      ". head ."
      "list list list"
      ". controls .";
    row-gap: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .hk-hu-favs__head {
    padding-right: 0;
  }
  /* Mobile mockup: "All featured" on the left, arrows on the right, under the cards */
  .hk-hu-favs__controls {
    grid-area: controls;
    grid-column: 2;
    grid-row: 3;
    justify-self: stretch;
  }
  .hk-hu-favs__link {
    order: -1;
    flex: 1 1 auto;
    margin: 0 10px 0 0;
  }
  .hk-hu-favs__name {
    font-size: 15px !important;
  }
}
