.sticky-buy {
  position: fixed;
  inset: auto 0 0;
  z-index: 11;
  padding: 14px clamp(24px, 5vw, 76px);
  border-top: 2px solid var(--gold);
  background: rgba(255, 253, 248, .97);
  box-shadow: 0 -14px 36px rgba(17, 54, 46, .12);
  transform: translateY(calc(100% + 18px));
  visibility: hidden;
  transition: transform 360ms cubic-bezier(.16, 1, .3, 1), visibility 0s 360ms;
}

.sticky-buy.is-visible {
  transform: translateY(0);
  visibility: visible;
  transition-delay: 0s;
}

.cart-open .sticky-buy {
  transform: translateY(calc(100% + 18px));
  visibility: hidden;
}

.sticky-buy-inner {
  width: min(1120px, 100%);
  min-height: 76px;
  margin: auto;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 20px;
}

.sticky-buy img {
  width: 70px;
  height: 70px;
  padding: 5px;
  border: 1px solid var(--line);
  background: #efede7;
  object-fit: contain;
}

.sticky-buy-copy { min-width: 0; }
.sticky-rating { margin: 0 0 5px; color: var(--gold); font-size: 12px; letter-spacing: .06em; }
.sticky-rating span { margin-left: 7px; color: var(--muted); font-size: 10px; letter-spacing: 0; }
.sticky-buy-copy > strong { display: block; font-size: 17px; font-weight: 600; }
.sticky-buy-copy > div { display: flex; align-items: baseline; gap: 12px; margin-top: 5px; }
.sticky-buy-copy > div > span { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sticky-buy-copy small { color: var(--muted); font-size: 10px; }
.sticky-buy button {
  min-width: 188px;
  height: 54px;
  padding: 0 24px;
  border: 0;
  background: var(--forest);
  color: #fff;
  font-weight: 700;
  letter-spacing: .07em;
  cursor: pointer;
}
.sticky-buy button:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

@media (max-width: 640px) {
  .sticky-buy { padding: 10px 14px; }
  .sticky-buy-inner { min-height: 62px; grid-template-columns: 52px 1fr auto; gap: 11px; }
  .sticky-buy img { width: 52px; height: 52px; }
  .sticky-rating { display: none; }
  .sticky-buy-copy > strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
  .sticky-buy-copy > div { gap: 7px; margin-top: 4px; }
  .sticky-buy-copy > div > span { font-size: 15px; }
  .sticky-buy-copy small { display: none; }
  .sticky-buy button { min-width: 116px; height: 48px; padding: 0 14px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-buy { transition-duration: 1ms; }
}

/* Hide the product purchase bar while the page footer is in view, including mobile persistent mode. */
body.ovelor-product-page [data-sticky-buy].is-footer-visible{display:none!important}
