/* Viru surface/label motion for homepage controls only. Keep native sizes and actions. */
.home .entry-content .bounty-home .bounty-motion-button,
.home .entry-content .bounty-home li.product .bounty-motion-button {
  --bounty-button-surface: var(--bounty-brown);
  --bounty-button-ink: #fff;
  --bounty-button-hover: #4b301f;
  --bounty-button-duration: 750ms;
  --bounty-button-ease: cubic-bezier(.19, 1, .22, 1);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 0 !important;
  border-radius: 10rem !important;
  overflow: visible;
  /* Override the existing WooCommerce card's important surface rules, locally. */
  background: transparent !important;
  box-shadow: none;
  filter: none;
  color: var(--bounty-button-ink) !important;
  text-decoration: none;
}
.home .entry-content .bounty-home .bounty-motion-button::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  width: auto;
  height: auto;
  margin: 0;
  border-radius: inherit;
  background: var(--bounty-button-surface);
  transform: scale(1);
  transform-origin: center;
  pointer-events: none;
  transition:
    transform var(--bounty-button-duration) var(--bounty-button-ease),
    background-color var(--bounty-button-duration) var(--bounty-button-ease);
}
.bounty-home .bounty-button__viewport {
  display: block;
  min-inline-size: 0;
  max-inline-size: 100%;
  overflow: hidden;
}
.bounty-home .bounty-button__track {
  position: relative;
  display: block;
  transition: transform var(--bounty-button-duration) var(--bounty-button-ease);
}
.bounty-home .bounty-button__track > span { display: block; }
.bounty-home .bounty-button__copy {
  position: absolute;
  inset-block-start: 100%;
  inset-inline: 0;
}
/* Keep the outlined CTA's cream/brown palette. Its existing arrow needs a
   separate pseudo-element because ::before now paints the animated surface. */
.home .entry-content .bfp-section > .wp-block-buttons .bounty-motion-button {
  --bounty-button-surface: #fffaf4;
  --bounty-button-ink: #4a2c1e;
  --bounty-button-hover: #fff;
}
.home .entry-content .bfp-section > .wp-block-buttons .bounty-motion-button::after {
  content: '←';
  order: -1;
  font-size: 23px;
  line-height: 1;
}
.home .entry-content .bfp-categories .bounty-motion-button {
  --bounty-button-surface: #fffaf5;
  --bounty-button-ink: #5a3825;
  --bounty-button-hover: #fff4e9;
}
@media (hover: hover) and (pointer: fine) {
  .home .entry-content .bounty-home .bounty-motion-button:not(:disabled):not([aria-disabled='true']):hover::before {
    background-color: var(--bounty-button-hover);
    transform: scale(1.1);
  }
  .bounty-home .bounty-motion-button:not(:disabled):not([aria-disabled='true']):hover .bounty-button__track {
    transform: translateY(-100%);
  }
}
.home .entry-content .bounty-home .bounty-motion-button:not(:disabled):not([aria-disabled='true']):active::before {
  transform: scale(.95);
}
.home .entry-content .bounty-home .bounty-motion-button:focus-visible {
  outline: 3px solid #97683e;
  outline-offset: 6px;
}
.home .entry-content .bounty-home .bounty-motion-button:is(:disabled, [aria-disabled='true']) {
  opacity: .55;
  cursor: not-allowed;
}
@media (prefers-reduced-motion: reduce) {
  .home .entry-content .bounty-home .bounty-motion-button::before,
  .bounty-home .bounty-motion-button .bounty-button__track {
    transition: none;
    transform: none !important;
  }
}
