.shop-fab { bottom: calc(2rem + 80px + 1.5rem); }

/* ── Share FAB wrapper ── */
.share-fab-wrap {
  position: fixed;
  bottom: calc(2rem + 40px + 0.75rem);
  right: 2rem;
  z-index: 150;
}

/* ── Share pill button ── */
.share-fab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.15rem;
  border: none;
  border-radius: 100px;
  background: var(--c-accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}
.share-fab svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}
.share-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.4);
}
.share-fab:focus-visible {
  outline: 2px solid var(--c-focus, #4A90D9);
  outline-offset: 2px;
}

/* ── Share modal (popover above button) ── */
.share-modal {
  display: none;
  position: absolute;
  bottom: calc(100% + 0.75rem);
  right: 0;
  width: 220px;
  background: var(--c-surface, #f8f7f4);
  border: 1px solid var(--c-border, #ece9e3);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
  z-index: 151;
}
.share-modal[aria-hidden="false"] {
  display: block;
  animation: shareIn 0.2s ease;
}
@keyframes shareIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Modal header ── */
.share-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--c-border, #ece9e3);
}
.share-modal-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--c-text, #1a1a2e);
}
.share-modal-close {
  background: none;
  border: none;
  color: var(--c-text-muted, #4a4a6a);
  cursor: pointer;
  font-size: 0.9rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.18s;
}
.share-modal-close:hover {
  background: var(--c-border, #ece9e3);
  color: var(--c-text, #1a1a2e);
}
.share-modal-close:focus-visible {
  outline: 2px solid var(--c-focus, #4A90D9);
  outline-offset: 1px;
}

/* ── Share options ── */
.share-modal-body { padding: 0.5rem 0; }

.share-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  color: var(--c-text, #1a1a2e);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.share-option:hover,
.share-option:focus-visible {
  background: var(--c-surface-hover, #ffffff);
}
.share-option:focus-visible {
  outline: 2px solid var(--c-focus, #4A90D9);
  outline-offset: -2px;
}
.share-option svg {
  width: 20px;
  height: 20px;
  fill: var(--c-accent);
  flex-shrink: 0;
}
.share-option span { flex: 1; }

.share-option[data-share-platform="copy"].is-copied span {
  color: var(--c-accent);
  font-weight: 700;
}

/* ── Click-outside backdrop ── */
.share-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 149;
}
.share-backdrop.is-active { display: block; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .share-modal[aria-hidden="false"] { animation: none; }
}

/* ── Print: hide ── */
@media print { .share-fab-wrap { display: none; } }