/*
 * Magia Flory — stable collection card CTA placement, 2026-08-16.
 * Short and long descriptions must not move the circular arrow vertically.
 */

/* Small collection cards: anchor the circular CTA to the card itself.
 * The user-approved position is the top-right corner on every card. */
.page-home--reference .ref-category:not(.ref-category--feature) {
  position: relative;
}

.page-home--reference .ref-category:not(.ref-category--feature) .ref-category__copy {
  position: static;
  padding-bottom: 24px;
}

.page-home--reference .ref-category:not(.ref-category--feature) .ref-category__copy > b {
  position: absolute;
  z-index: 6;
  top: 20px;
  right: 20px;
  bottom: auto;
  display: grid;
  width: 38px;
  height: 38px;
  margin: 0;
  place-items: center;
  color: var(--ref-green);
  border: 1px solid rgba(35,72,41,.24);
  border-radius: 50%;
  background: rgba(255,253,248,.9);
  box-shadow: 0 7px 18px rgba(35,55,32,.08);
  backdrop-filter: blur(6px);
}

/* The supplied monoaromas PNG has transparency and must be shown intact.
 * Never paint a dark backing surface or crop the artwork. */
.page-home--reference .ref-category--feature .ref-category__media {
  background: transparent !important;
}

.page-home--reference .ref-category--feature .ref-category__media img[src*="essential-oils-set-premium.png"] {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center bottom !important;
  background: transparent !important;
  filter: none !important;
}

@media (hover: hover) and (pointer: fine) {
  .page-home--reference .ref-category:not(.ref-category--feature):hover .ref-category__copy > b {
    color: #fff;
    border-color: var(--ref-green);
    background: var(--ref-green);
  }
}

@media (max-width: 680px) {
  .page-home--reference .ref-category:not(.ref-category--feature) .ref-category__copy {
    padding-bottom: 24px;
  }

  .page-home--reference .ref-category:not(.ref-category--feature) .ref-category__copy > b {
    top: 16px;
    right: 16px;
  }
}
