/* Social share + open-from-app helpers */

.share-fab {
  position: fixed;
  right: 16px;
  bottom: 72px;
  z-index: 24;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  padding: 10px 14px;
  cursor: pointer;
  transition: opacity 180ms ease, transform 180ms ease, border-color 160ms ease, color 160ms ease;
}

.share-fab svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.share-fab span {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.share-fab:hover,
.share-fab:focus-visible {
  border-color: var(--rose);
  color: var(--rose);
  outline: none;
}

.share-fab.is-catalog-nearby {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.share-sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: end center;
  padding: 16px;
  background: rgba(35, 33, 31, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.share-sheet.is-open {
  opacity: 1;
  pointer-events: auto;
}

.share-sheet-panel {
  width: min(100%, 420px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
  transform: translateY(12px);
  transition: transform 0.2s ease;
}

.share-sheet.is-open .share-sheet-panel {
  transform: translateY(0);
}

.share-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.share-sheet-copy,
.share-sheet-hint {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: var(--text-sm);
}

.share-sheet-actions {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.share-sheet-actions .primary-link,
.share-sheet-actions .secondary-link,
.share-sheet-actions .secondary-button {
  text-align: center;
}

.social-icon-set {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-icon:hover,
.social-icon:focus-visible {
  border-color: var(--rose);
  color: var(--rose);
  outline: none;
}

.social-icon.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

@media (max-width: 700px) {
  .share-fab {
    display: none;
  }
}
