/* Gifts ad banner (live 20 Nov 2026). Linked with ?v=ASSET_V; bump ASSET_V and sw.js VERSION when this changes. */
.gift-ad {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-sizing: border-box;
  min-height: 3.5rem;
  max-height: 4.5rem;
  margin: 0 0 0.7rem;
  padding: 0.3rem 0.7rem 0.3rem 0.55rem;
  background: #fff;
  border: 2px solid var(--rule);
  border-radius: 999px;
  font-family: var(--brand);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  overflow: hidden;
  white-space: nowrap;
}
.gift-ad-kicker {
  flex-shrink: 0;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.gift-ad-product,
.gift-ad-ffs,
.gift-ad-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.gift-ad-product { flex: 1 1 auto; }
.gift-ad-ffs,
.gift-ad-more { flex: 0 0 auto; }
.gift-ad-product:hover,
.gift-ad-ffs:hover,
.gift-ad-more:hover { color: var(--accent); }
.gift-ad-product:focus-visible,
.gift-ad-ffs:focus-visible,
.gift-ad-more:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
  border-radius: 4px;
}
.gift-ad-tile {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #f3f1ec;
  font-size: 1.2rem;
  line-height: 1;
}
.gift-ad-cover {
  flex-shrink: 0;
  width: auto;
  height: 2.5rem;
  border-radius: 2px;
  display: block;
  box-shadow: 0 1px 2px rgba(40, 35, 25, 0.18);
}
.gift-ad-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gift-ad-more { color: var(--link); }
/* Portrait book column is ~320px; keep the FFS cover and a short Gifts label so the product name can be read. */
.gift-ad-ffs-label { display: none; }
.gift-ad-name { min-width: 7rem; }
@media (min-width: 32rem) {
  .gift-ad-ffs-label { display: inline; }
  .gift-ad-more-short { display: none; }
  .gift-ad-more-full { display: inline; }
}
.gift-ad-more-full { display: none; }


/* Gifts catalogue page tiles */
.gifts-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.gifts-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0 0 1rem;
  line-height: 1.5;
}
.gifts-list .gift-ad-tile,
.gifts-list .gift-ad-cover { margin-top: 0.15rem; }
.gifts-list .gift-ad-cover { height: 3.6rem; }
.gifts-list .gift-ad-tile { width: 3rem; height: 3rem; font-size: 1.35rem; }
.gifts-list .gifts-body { min-width: 0; flex: 1; }
.gifts-price { color: var(--ink-soft); }

/* Whole banner is one link to the gifts page */
.gift-ad-link { display:flex; align-items:center; gap:0.45rem; width:100%; min-width:0; color:inherit; text-decoration:none; }
.gift-ad-link:hover .gift-ad-more { text-decoration: underline; }
.gift-ad-link .gift-ad-name { flex:1 1 auto; min-width:0; }
.gift-ad-link .gift-ad-more { flex:0 0 auto; display:inline; color:var(--link); }
.gift-ad-link:focus-visible { outline:3px solid var(--accent-soft); outline-offset:2px; border-radius:999px; }

/* Seasonal banner (Christmas 2026). Swap title/sub/background for Valentine's, Paddy's Day etc. */
.gift-ad.gift-ad-xmas {
  padding: 0; border-radius: 14px; min-height: 4rem; max-height: none;
  background: #f4efe3 url("../assets/gifts-xmas-banner.webp") right center / auto 100% no-repeat;
}
.gift-ad-xmas .gift-ad-link { padding: 0.45rem 0.8rem; gap: 0.7rem; }
.gift-ad-xmas .gift-ad-cover { height: 3rem; }
.gift-ad-xmas .gift-ad-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.gift-ad-xmas .gift-ad-title { font-size: 1rem; font-weight: 700; color: #b3202a; white-space: normal; }
.gift-ad-xmas .gift-ad-sub { font-size: 0.78rem; font-weight: 600; color: var(--accent); }
.gift-ad-xmas .gift-ad-arrow { color: #b3202a; font-weight: 700; }
.gift-ad-xmas .gift-ad-link:hover .gift-ad-title { text-decoration: underline; }
@media (min-width: 32rem) { .gift-ad-xmas .gift-ad-title { font-size: 1.2rem; } }
.gift-ad-xmas .gift-ad-link { align-items: flex-start; }
.gift-ad-xmas .gift-ad-text { padding-top: 0; margin-top: -0.12rem; }
.gift-ad.gift-ad-xmas { margin-bottom: 0.9rem; }


/* Illustrated gift tiles and catalogue headings */
.gifts-list img.gift-ad-tile {
  display: block;
  flex-shrink: 0;
  width: 3.6rem;
  height: 3.6rem;
  margin-top: 0.15rem;
  padding: 0;
  object-fit: cover;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #f4efe3;
  font-size: 0;
}
.gifts-catalogue h2 {
  font-family: var(--brand);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 1.4rem 0 0.5rem;
  color: var(--ink);
}
.gifts-catalogue h3 {
  font-family: var(--brand);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 1.15rem 0 0.45rem;
  color: var(--ink);
}
