.medicine-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
  max-height: 60vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.5rem 0.5rem 0.5rem 0;
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.medicine-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.65rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(28, 25, 23, 0.04);
}

@media (hover: hover) {
  .medicine-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(28, 25, 23, 0.08);
    border-color: var(--primary);
  }
}

.medicine-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.medicine-card h3 {
  color: var(--text-main);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: color 0.2s;
  flex: 1;
  margin: 0;
}

.notify-bell {
  background: var(--surface-muted, #f5f5f4);
  border: 1px solid var(--border, #e7e5e4);
  border-radius: 999px;
  width: 2.75rem;
  height: 2.75rem;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

@media (hover: hover) {
  .notify-bell:hover:not(:disabled) {
    border-color: var(--primary, #2563eb);
    transform: scale(1.05);
  }
}

.notify-bell:active:not(:disabled) {
  transform: scale(0.95);
}

.notify-bell:disabled {
  opacity: 0.55;
  cursor: progress;
}

.notify-bell--on {
  background: var(--primary, #2563eb);
  border-color: var(--primary, #2563eb);
}

.notify-bell--locked {
  opacity: 0.55;
}

@media (hover: hover) {
  .notify-bell--locked:hover:not(:disabled) {
    border-color: var(--text-muted, #78716c);
    transform: scale(1.05);
  }
}

.notify-error {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: #b91c1c;
}

@media (hover: hover) {
  .medicine-card:hover h3 {
    color: var(--primary);
  }

  .medicine-card:hover .view-pharmacies::after {
    transform: translateX(4px);
  }
}

.medicine-card-body {
  margin-bottom: 1.35rem;
}

.medicine-card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0.25rem;
}

.medicine-card-body strong {
  color: var(--text-main);
  font-weight: 600;
}

.medicine-card-footer {
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}

.view-pharmacies {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.view-pharmacies::after {
  content: "→";
  transition: transform 0.2s;
}

.no-results {
  text-align: center;
  padding: 2.75rem 1.5rem;
  background: var(--surface-muted);
  border-radius: var(--radius);
  color: var(--text-muted);
  border: 1px dashed var(--border-strong);
}
