/* Keep the native showcase, cart controls and collection fan scoped to this template. */
:is([id$="__gifts_for_her"], [id$="__gifts_for_him"], [id$="__picked_for_you"]).shopify-section,
.rtc-shopping-return {
  --rtc-paper: #f3e6c2;
  --rtc-red: #9b292f;
  background: var(--rtc-red);
  color: var(--rtc-paper);
  font-family: 'RTC Christmas Hero Inter', var(--text-font-family, Arial), sans-serif;
}

:is([id$="__gifts_for_her"], [id$="__gifts_for_him"]) {
  .bf-picked.bf-showcase, .bf-showcase__panel { background: var(--rtc-red); color: inherit; }
  .bf-showcase__panel { padding: clamp(64px, 8vw, 112px) clamp(16px, 4vw, 80px) 20px; }
  .bf-showcase__grid { min-height: clamp(465px, calc(100svh - 220px), 700px); gap: clamp(22px, 4.8vw, 75px); }
  .bf-showcase__copy h2 { margin: 0 0 12px; font-family: inherit; font-size: clamp(36px, 3.5vw, 50px); line-height: 1.2; font-weight: 700; }
  .bf-showcase__description { color: inherit; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.45; margin-bottom: 12px; }
  .bf-showcase__link { margin-bottom: 28px; font-size: clamp(14px, 1.1vw, 17px); font-weight: 600; }
  .bf-showcase__link::after { content: '↗' / ''; display: inline-block; margin-inline-start: .4em; }
  .bf-showcase__feature img { aspect-ratio: 4 / 5; max-height: 700px; min-height: 0; object-fit: cover; }
  .bf-picked__card { color: inherit; }
  .bf-picked__image { aspect-ratio: 1; background: #78232b; overflow: hidden; border-radius: 15px; }
  .bf-picked__image img { width: 100%; height: 100%; object-fit: cover; }
  .bf-picked__title { font-size: clamp(13px, 1vw, 16px); line-height: 1.35; font-weight: 550; }
  .bf-picked__title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .bf-picked__price sale-price, .bf-picked__price compare-at-price { color: inherit; }
  .bf-picked__price sale-price { font-weight: 650; }
  .bf-picked__actions :is(button, a) { background: var(--rtc-paper); color: #181716; border: 0; border-radius: 8px; min-height: 44px; font-size: clamp(13px, 1vw, 16px); }
  .bf-picked__actions :is(button, a):disabled { opacity: .7; }
}

[id$="__picked_for_you"].shopify-section, [id$="__picked_return"] .rtc-shopping-return { background: #182118; }
[id$="__picked_for_you"].shopify-section {
  .bf-fan { background: inherit; color: inherit; font-family: inherit; min-height: calc(100svh - 80px); padding: clamp(80px, 19svh, 188px) clamp(12px, 2vw, 40px) 36px; }
  .bf-fan h2 { font: inherit; font-size: clamp(36px, 3.5vw, 50px); font-weight: 700; line-height: 1.2; }
  .bf-fan__pixels { display: none; }
  .bf-fan.is-enhanced .bf-fan__gallery { grid-template-columns: 64px minmax(0, 1fr) 64px; }
  .bf-fan.is-enhanced .bf-fan__stage { height: 412px; }
  .bf-fan.is-enhanced .bf-fan__center { background: var(--rtc-paper); border-radius: 14px; aspect-ratio: 336 / 382; }
  .bf-fan__collection { top: 3%; height: 9%; font: 650 clamp(16px, 1.5vw, 21px)/1.2 'RTC Christmas Hero Inter', sans-serif; }
  .bf-fan__window { top: 14%; height: 72.5%; }
  .bf-fan__arrow { background: var(--rtc-paper); }
  :is(.bf-fan__stage, button, a):focus-visible { outline-color: var(--rtc-paper); }
}

.rtc-shopping-return { padding: 12px 16px 32px; text-align: center; }
.rtc-shopping-return a { display: inline-flex; gap: .4em; align-items: center; padding: 10px; color: inherit; }
.rtc-shopping-return a:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 4px; }

@media (min-width: 701px) and (max-width: 900px) {
  :is([id$="__gifts_for_her"], [id$="__gifts_for_him"]) {
    .bf-showcase__grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, .8fr); }
    .bf-showcase__panel--left .bf-showcase__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.45fr); }
    .bf-showcase__panel--right .bf-showcase__feature { grid-column: 2; }
    .bf-showcase__panel--left .bf-showcase__copy { grid-column: 2; }
    .bf-showcase__copy, .bf-showcase__feature { grid-row: 1; }
    .bf-showcase__feature img { height: 100%; }
  }
}

@media (max-width: 700px) {
  :is([id$="__gifts_for_her"], [id$="__gifts_for_him"]) {
    .bf-showcase__panel { padding: 52px 14px 6px; }
    .bf-showcase__grid { display: flex; flex-direction: column; gap: 0; min-height: 0; }
    .bf-showcase__copy { display: contents; }
    .bf-showcase__copy h2 { font-size: 26px; margin-bottom: 6px; }
    .bf-showcase__description { font-size: 13px; margin-bottom: 0; }
    .bf-showcase__link { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; margin-bottom: 0; }
    .bf-showcase__feature { order: 1; }
    .bf-showcase__feature img { width: 100%; height: min(44svh, 95vw); object-position: center 36%; }
    .bf-showcase__carousel { order: 2; margin-top: 14px; }
    .bf-showcase__products { grid-auto-columns: calc((100% - 16px) / 3); gap: 8px; padding: 0; }
    .bf-picked__image { border-radius: 9px; }
    .bf-picked__title { font-size: 12px; margin: 8px 0 4px; }
    .bf-picked__price { min-height: 26px; padding-bottom: 6px; }
    .bf-picked__price sale-price { font-size: 15px; }
    .bf-picked__price compare-at-price { font-size: 12px; }
    .bf-picked__actions :is(button, a) { padding: 5px 2px; font-size: 12px; }
  }
  [id$="__picked_for_you"].shopify-section {
    .bf-fan { padding-top: clamp(90px, 16svh, 150px); }
    .bf-fan h2 { font-size: 26px; }
    .bf-fan.is-enhanced .bf-fan__gallery { grid-template-columns: 36px minmax(0, 1fr) 36px; }
    .bf-fan.is-enhanced .bf-fan__stage { height: 300px; }
    .bf-fan.is-enhanced .bf-fan__card { height: 205px; }
    .bf-fan__arrow { min-height: 44px; width: 36px; border-radius: 18px; }
  }
  .rtc-shopping-return { padding-bottom: 18px; }
}
